AVX-512. Add byte/word plus/minus/avg.
[gcc.git] / gcc / ChangeLog
1 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Anna Tikhonova <anna.tikhonova@intel.com>
4 Ilya Tocar <ilya.tocar@intel.com>
5 Andrey Turetskiy <andrey.turetskiy@intel.com>
6 Ilya Verbin <ilya.verbin@intel.com>
7 Kirill Yukhin <kirill.yukhin@intel.com>
8 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9
10 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
11 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
12 masking.
13 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
14 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
15 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
16 (define_insn "*mul<mode>3"): Add EVEX version.
17
18 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
19 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
20 Anna Tikhonova <anna.tikhonova@intel.com>
21 Ilya Tocar <ilya.tocar@intel.com>
22 Andrey Turetskiy <andrey.turetskiy@intel.com>
23 Ilya Verbin <ilya.verbin@intel.com>
24 Kirill Yukhin <kirill.yukhin@intel.com>
25 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
26
27 * config/i386/sse.md
28 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
29 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
30 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
31 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
32 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
33 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
34 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
35 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
36 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
37 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
38 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
39 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
40 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
41 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
42 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
43 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
44
45 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
46 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
47 Anna Tikhonova <anna.tikhonova@intel.com>
48 Ilya Tocar <ilya.tocar@intel.com>
49 Andrey Turetskiy <andrey.turetskiy@intel.com>
50 Ilya Verbin <ilya.verbin@intel.com>
51 Kirill Yukhin <kirill.yukhin@intel.com>
52 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
53
54 * config/i386/sse.md
55 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
56 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
57 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
58
59 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
60 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
61 Anna Tikhonova <anna.tikhonova@intel.com>
62 Ilya Tocar <ilya.tocar@intel.com>
63 Andrey Turetskiy <andrey.turetskiy@intel.com>
64 Ilya Verbin <ilya.verbin@intel.com>
65 Kirill Yukhin <kirill.yukhin@intel.com>
66 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
67
68 * config/i386/sse.md
69 (define_mode_iterator VI128_256): New.
70 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
71
72 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
73 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
74 Anna Tikhonova <anna.tikhonova@intel.com>
75 Ilya Tocar <ilya.tocar@intel.com>
76 Andrey Turetskiy <andrey.turetskiy@intel.com>
77 Ilya Verbin <ilya.verbin@intel.com>
78 Kirill Yukhin <kirill.yukhin@intel.com>
79 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
80
81 * config/i386/sse.md
82 (define_mode_iterator VI8_256_512): New.
83 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
84 Ditto.
85 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
86 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
87 Ditto.
88 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
89
90 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
91
92 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
93 pointer to the cumulative reloc value and return the value for
94 this reloc instead.
95 (compute_reloc_for_rtx): Take a const_rtx. Call
96 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
97 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
98 for_each_rtx for the CONST case.
99
100 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
101
102 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
103 (mark_constants_in_pattern): ...this new function to iterate over
104 all the subrtxes.
105 (mark_constants): Update accordingly.
106
107 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
108
109 * varasm.c: Include rtl-iter.h.
110 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
111 Remove the pointer to the cumulative hashval_t and just return
112 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
113 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
114 Accumulate the hashval_ts here instead of const_rtx_hash_1.
115
116 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
117
118 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
119 Give real type of data parameter. Remove return value.
120 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
121 to iterate over subrtxes.
122
123 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
124
125 * var-tracking.c (use_narrower_mode_test): Turn from being a
126 for_each_rtx callback to being a function that examines each
127 subrtx itself.
128 (adjust_mems): Update accordingly.
129
130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
131
132 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
133 callback to being a function that examines each subrtx itself.
134 Remove handling of null rtxes.
135 (add_uses): Update accordingly.
136
137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
138
139 * var-tracking.c: Include rtl-iter.h.
140 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
141 to being a function that examines each subrtx itself.
142 (use_type): Update accordingly.
143
144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
145
146 * store-motion.c: Include rtl-iter.h.
147 (extract_mentioned_regs_1): Delete.
148 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
149 for_each_rtx to iterate over subrtxes.
150
151 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
152
153 * sel-sched.c: Include rtl-iter.h
154 (count_occurrences_1): Delete.
155 (count_occurrences_equiv): Turn rtxes into const_rtxes.
156 Use FOR_EACH_SUBRTX rather than for_each_rtx.
157
158 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
159
160 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
161 * rtlanal.c (tls_referenced_p_1): Delete.
162 (tls_referenced_p): Take a const_rtx rather than an rtx.
163 Use FOR_EACH_SUBRTX rather than for_each_rtx.
164
165 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
166
167 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
168 (for_each_inc_dec): Take an rtx rather than an rtx *.
169 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
170 (cselib_record_sets): Likewise.
171 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
172 (check_for_inc_dec): Likewise.
173 * rtlanal.c (for_each_inc_dec_ops): Delete.
174 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
175 rather than a pointer to the memory address. Replace
176 for_each_inc_dec_ops argument with separate function and data
177 arguments. Abort on non-autoinc addresses.
178 (for_each_inc_dec_find_mem): Delete.
179 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
180 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
181
182 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
183
184 * rtl.h (find_all_hard_regs): Declare.
185 * rtlanal.c (find_all_hard_regs): New function.
186 (record_hard_reg_uses_1): Delete.
187 (record_hard_reg_uses): Use find_all_hard_regs.
188
189 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
190
191 * rtl.h (replace_label_data): Delete.
192 (replace_label): Take the old label, new label and update-nuses flag
193 as direct arguments. Return void.
194 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
195 * rtlanal.c (replace_label): Update interface as above. Handle
196 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
197 iterator. Use FOR_EACH_SUBRTX_PTR.
198
199 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
200
201 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
202 with const_rtx parameters.
203 * varasm.c (get_pool_constant): Likewise.
204 * rtlanal.c (rtx_referenced_p_1): Delete.
205 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
206 Assert that the rtx we're looking for is nonnull. Allow searches
207 for constant pool SYMBOL_REFs.
208
209 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
210
211 * reload1.c: Include rtl-iter.h.
212 (note_reg_elim_costly): Turn from being a for_each_rtx callback
213 to being a function that examines each subrtx itself.
214 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
215
216 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
217
218 * regcprop.c (cprop_find_used_regs_1): Delete.
219 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
220
221 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
222
223 * regcprop.c: Include rtl-iter.h.
224 (kill_value): Take a const_rtx.
225 (kill_autoinc_value): Turn from being a for_each_rtx callback
226 to being a function that examines each subrtx itself.
227 (copyprop_hardreg_forward_1): Update accordingly.
228
229 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
230
231 * reg-stack.c: Include rtl-iter.h.
232 (subst_stack_regs_in_debug_insn): Delete.
233 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
234 instead of for_each_rtx.
235
236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
237
238 * lower-subreg.c (find_decomposable_subregs): Turn from being
239 a for_each_rtx callback to being a function that examines each
240 subrtx itself. Remove handling of null rtxes.
241 (decompose_multiword_subregs): Update accordingly.
242
243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
244
245 * lower-subreg.c (adjust_decomposed_uses): Delete.
246 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
247 Remove handling of null rtxes.
248
249 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
250
251 * lower-subreg.c: Include rtl-iter.h.
252 (resolve_subreg_use): Turn from being a for_each_rtx callback
253 to being a function that examines each subrtx itself. Remove
254 handling of null rtxes.
255 (resolve_reg_notes, resolve_simple_move): Update accordingly.
256 (decompose_multiword_subregs): Likewise.
257
258 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
259
260 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
261 to being a function that examines each subrtx itself.
262 (simplify_using_condition, simplify_using_initial_values): Update
263 accordingly.
264
265 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
266
267 * loop-iv.c: Include rtl-iter.h.
268 (find_single_def_src): New function.
269 (replace_single_def_regs): Turn from being a for_each_rtx callback
270 to being a function that examines each subrtx itself.
271 (replace_in_expr, simplify_using_initial_values): Update accordingly.
272
273 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
274
275 * jump.c (eh_returnjump_p_1): Delete.
276 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
277 Remove handling of null rtxes.
278
279 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
280
281 * jump.c: Include rtl-iter.h.
282 (returnjump_p_1): Delete.
283 (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 * ira.c: Include rtl-iter.h.
289 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
290 to being a function that examines each subrtx itself. Remove
291 handling of null rtxes.
292 (update_equiv_regs): Update call accordingly.
293
294 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
295
296 * fwprop.c: Include rtl-iter.h.
297 (varying_mem_p): Turn from being a for_each_rtx callback to being
298 a function that examines each subrtx itself.
299 (propagate_rtx): Update accordingly.
300
301 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
302
303 * function.c: Include rtl-iter.h
304 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
305 callback to being a function that examines each subrtx itself.
306 Return the changed flag.
307 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
308 (instantiate_virtual_regs): Update calls accordingly.
309
310 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
311
312 * final.c: Include rtl-iter.h.
313 (mark_symbol_ref_as_used): Delete.
314 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
315 for_each_rtx.
316
317 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
318
319 * emit-rtl.c: Include rtl-iter.h.
320 (find_auto_inc): Turn from being a for_each_rtx callback to being
321 a function that examines each subrtx itself. Assume the first operand
322 to an RTX_AUTOINC is the automodified register.
323 (try_split): Update call accordingly.
324
325 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
326
327 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
328 Return a bool, inverting the result so that 0/false means "not ok".
329 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
330 subrtxes of a CONST.
331 (mem_loc_descriptor, add_const_value_attribute)
332 (resolve_addr_in_expr): Update calls accordingly.
333
334 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
335
336 * dwarf2out.c: Include rtl-iter.h.
337 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
338 Remove unused data parameter. Return a bool, inverting the result
339 so that 0/false means "not ok".
340 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
341 instead of for_each_rtx.
342
343 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
344
345 * dse.c: Include rtl-iter.h.
346 (check_mem_read_rtx): Change void * parameter to real type.
347 Remove return value.
348 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
349 for_each_rtx. Don't handle null rtxes.
350
351 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
352
353 * df-problems.c: Include rtl-iter.h.
354 (find_memory): Turn from being a for_each_rtx callback to being
355 a function that examines each subrtx itself. Continue to look for
356 volatile references even after a nonvolatile one has been found.
357 (can_move_insns_across): Update calls accordingly.
358
359 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
360
361 * ddg.c (walk_mems_2, walk_mems_1): Delete.
362 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
363 to iterate over subrtxes. Return a bool rather than an int.
364
365 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
366
367 * ddg.c: Include rtl-iter.h.
368 (mark_mem_use_1): Rename to...
369 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
370 instead of for_each_rtx.
371 (mem_read_insn_p): Update accordingly.
372
373 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
374
375 * cse.c (change_cc_mode_args): Delete.
376 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
377 a function that examines each subrtx itself. Take the fields of
378 change_cc_mode_args as argument and return void.
379 (cse_change_cc_mode_insn): Update calls accordingly.
380
381 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
382
383 * cse.c (is_dead_reg): Change argument to const_rtx.
384 (dead_debug_insn_data): Delete.
385 (is_dead_debug_insn): Expand commentary. Turn from being a
386 for_each_rtx callback to being a function that examines
387 each subrtx itself. Take the fields of dead_debug_insn_data
388 as argument.
389 (delete_trivially_dead_insns): Update call accordingly.
390
391 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
392
393 * cse.c (check_for_label_ref): Move earlier in file. Turn from
394 being a for_each_rtx callback to being a function that examines
395 each subrtx itself.
396 (cse_extended_basic_block): Update call accordingly.
397
398 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
399
400 * cse.c (check_dependence_data): Delete.
401 (check_dependence): Change from being a for_each_rtx callback to being
402 a function that examines all subrtxes itself. Don't handle null rtxes.
403 (invalidate): Update call accordingly.
404
405 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
406
407 * cse.c: Include rtl-iter.h.
408 (approx_reg_cost_1): Delete.
409 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
410 Don't handle null rtxes.
411
412 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
413
414 * cfgcleanup.c: Include rtl-iter.h.
415 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
416 to being a function that examines each subrtx itself.
417 (thread_jump): Update accordingly.
418
419 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
420
421 * combine-stack-adj.c: Include rtl-iter.h.
422 (record_stack_refs_data): Delete.
423 (record_stack_refs): Turn from being a for_each_rtx callback
424 to being a function that examines each subrtx itself.
425 Take a pointer to the reflist. Invert sense of return value
426 so that true means success and false means failure. Don't
427 handle null rtxes.
428 (combine_stack_adjustments_for_block): Update accordingly.
429
430 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
431
432 * combine.c (record_truncated_value): Turn from being a for_each_rtx
433 callback to a function that takes an rtx and returns a bool
434 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
435 for_each_rtx.
436
437 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
438
439 * combine.c: Include rtl-iter.h.
440 (unmentioned_reg_p_1): Delete.
441 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
442 Don't handle null rtxes.
443
444 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
445
446 * calls.c: Include rtl-iter.h.
447 (internal_arg_pointer_based_exp_1): Delete.
448 (internal_arg_pointer_based_exp): Take a const_rtx.
449 Use FOR_EACH_SUBRTX to iterate over subrtxes.
450
451 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
452
453 * caller-save.c: Include rtl-iter.h.
454 (add_used_regs_1): Delete.
455 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
456 to iterate over subrtxes. Assert that any remaining pseudos
457 have been spilled.
458
459 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
460
461 * bt-load.c: Include rtl-iter.h.
462 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
463 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
464 to iterate over subrtxes.
465 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
466 find_btr_use rather than btr_referenced_p.
467
468 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
469
470 * alias.c: Include rtl-iter.h.
471 (refs_newer_value_cb): Delete.
472 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
473
474 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
475
476 * rtl-iter.h: New file.
477 * rtlanal.c: Include it.
478 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
479 (generic_subrtx_iterator <T>::add_single_to_queue)
480 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
481 (generic_subrtx_iterator <T>::free_array): New functions.
482 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
483 (generic_subrtx_iterator <const_rtx_accessor>)
484 (generic_subrtx_iterator <rtx_var_accessor>
485 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
486 (setup_reg_subrtx_bounds): New function.
487 (init_rtlanal): Call it.
488
489 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
490
491 PR target/62261
492 * config/sh/sh.md (ashlsi3): Handle negative shift count for
493 TARGET_SHMEDIA.
494 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
495
496 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
497
498 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
499
500 2014-08-27 David Malcolm <dmalcolm@redhat.com>
501
502 * rtl.h (JUMP_LABEL_AS_INSN): New.
503
504 2014-08-27 David Malcolm <dmalcolm@redhat.com>
505
506 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
507 rtx_expr_list **.
508 (alloc_EXPR_LIST): Strengthen return type from rtx to
509 rtx_expr_list *.
510 (remove_free_EXPR_LIST_node): Likewise for param.
511 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
512 from rtx to rtx_expr_list *.
513 * sched-int.h (struct deps_desc): Strengthen fields
514 "pending_read_mems" and "pending_write_mems" from rtx to
515 rtx_expr_list *.
516
517 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
518 rtx to rtx_expr_list *.
519 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
520 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
521 rtx_expr_list **.
522 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
523 from rtx to rtx_expr_list *.
524 * loop-iv.c (simplify_using_initial_values): Strengthen local
525 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
526 "pnote_next" from rtx * to rtx_expr_list **.
527 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
528 param "exprp" from rtx * to rtx_expr_list **.
529 (add_insn_mem_dependence): Strengthen local "mem_list" from
530 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
531 to rtx_expr_list *.
532 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
533 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
534 param "old_mems_p" from rtx * to rtx_expr_list **.
535 * var-tracking.c (struct adjust_mem_data): Strengthen field
536 "side_effects" from rtx to rtx_expr_list *.
537 (adjust_insn): Replace NULL_RTX with NULL when assigning to
538 rtx_expr_list *.
539 (prepare_call_arguments): Likewise.
540
541 2014-08-27 David Malcolm <dmalcolm@redhat.com>
542
543 * function.h (struct rtl_data): Strengthen field
544 "x_stack_slot_list" from rtx to rtx_expr_list *.
545
546 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
547 when assigning to stack_slot_list.
548
549 2014-08-27 David Malcolm <dmalcolm@redhat.com>
550
551 * function.h (struct rtl_data): Strengthen field
552 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
553 * rtl.h (remove_node_from_expr_list): Strengthen second param from
554 rtx * to rtx_expr_list **.
555
556 * cfgbuild.c (make_edges): In loop over
557 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
558 rtx_expr_list *, and use methods of the latter class to clarify
559 the code.
560 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
561 rtx_expr_list *, and use methods of the latter class to clarify
562 the code.
563 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
564 * reload1.c (set_initial_label_offsets): Likewise for local "x".
565 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
566 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
567 to rtx_expr_list *. Use methods of the latter class to clarify
568 the code.
569
570 2014-08-27 David Malcolm <dmalcolm@redhat.com>
571
572 * function.h (struct expr_status): Strengthen field
573 "x_forced_labels" from rtx to rtx_expr_list *.
574
575 * cfgbuild.c (make_edges): Split local "x" into two locals,
576 strengthening one from rtx to rtx_expr_list *, and using methods
577 of said class.
578 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
579 loop over forced_labels, introduce strengthen it from rtx to
580 rtx_expr_list *, using methods to clarify the code.
581 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
582 to rtx_expr_list *, using methods of said class to clarify the
583 code.
584 * reload1.c (set_initial_label_offsets): Split local "x" into two
585 per-loop variables, strengthening the first from rtx to
586 rtx_expr_list * and using methods.
587
588 2014-08-27 David Malcolm <dmalcolm@redhat.com>
589
590 * coretypes.h (class rtx_expr_list): Add forward declaration.
591 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
592 * gengenrtl.c (special_rtx): Add EXPR_LIST.
593 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
594 invariant: GET_CODE (X) == EXPR_LIST.
595 (is_a_helper <rtx_expr_list *>::test): New.
596 (rtx_expr_list::next): New.
597 (rtx_expr_list::element): New.
598 (gen_rtx_EXPR_LIST): New.
599
600 2014-08-27 David Malcolm <dmalcolm@redhat.com>
601
602 * varasm.c (mark_constants): Convert a GET_CODE check into a
603 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
604 Use methods of rtx_sequence to clarify the code.
605
606 2014-08-27 David Malcolm <dmalcolm@redhat.com>
607
608 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
609 local "seq" via a checked cast, and use methods of rtx_sequence
610 to simplify the code.
611
612 2014-08-27 David Malcolm <dmalcolm@redhat.com>
613
614 * resource.c (mark_referenced_resources): Strengthen local
615 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
616 using methods of rtx_sequence to clarify the code.
617 (find_dead_or_set_registers): Within the switch statement, convert
618 a GET_CODE check to a dyn_cast, introducing local "seq". Within
619 the JUMP_P handling, introduce another local "seq", adding a
620 checked cast to rtx_sequence *. In both cases, use methods of
621 rtx_sequence to clarify the code.
622 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
623 via a checked cast, and use methods of rtx_sequence to simplify
624 the code.
625
626 2014-08-27 David Malcolm <dmalcolm@redhat.com>
627
628 * reorg.c (redundant_insn): In two places in the function, replace
629 a check of GET_CODE with a dyn_cast, introducing local "seq", and
630 usings methods of rtx_sequence to clarify the code.
631
632 2014-08-27 David Malcolm <dmalcolm@redhat.com>
633
634 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
635 local "seq" with a checked cast, and use methods of rtx_sequence
636 to clarify the code.
637
638 2014-08-27 David Malcolm <dmalcolm@redhat.com>
639
640 * function.c (contains): Introduce local "seq" for PATTERN (insn),
641 with a checked cast, in the region for where we know it's a
642 SEQUENCE. Use methods of rtx_sequence.
643
644 2014-08-27 David Malcolm <dmalcolm@redhat.com>
645
646 * final.c (get_attr_length_1): Replace GET_CODE check with a
647 dyn_cast, introducing local "seq" and the use of methods of
648 rtx_sequence.
649 (shorten_branches): Likewise, introducing local "body_seq".
650 Strengthen local "inner_insn" from rtx to rtx_insn *.
651 (reemit_insn_block_notes): Replace GET_CODE check with a
652 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
653 Use methods of rtx_sequence.
654 (final_scan_insn): Likewise, introducing local "seq" for when
655 "body" is known to be a SEQUENCE, using its methods.
656
657 2014-08-27 David Malcolm <dmalcolm@redhat.com>
658
659 * except.c (can_throw_external): Strengthen local "seq" from rtx
660 to rtx_sequence *. Use methods of rtx_sequence.
661 (insn_nothrow_p): Likewise.
662
663 2014-08-27 David Malcolm <dmalcolm@redhat.com>
664
665 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
666 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
667 Use methods of rtx_sequence.
668 (scan_trace): Likewise for local "pat".
669
670 2014-08-27 David Malcolm <dmalcolm@redhat.com>
671
672 * coretypes.h (class rtx_sequence): Add forward declaration.
673 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
674 invariant: GET_CODE (X) == SEQUENCE.
675 (is_a_helper <rtx_sequence *>::test): New.
676 (is_a_helper <const rtx_sequence *>::test): New.
677 (rtx_sequence::len): New.
678 (rtx_sequence::element): New.
679 (rtx_sequence::insn): New.
680
681 2014-08-27 David Malcolm <dmalcolm@redhat.com>
682
683 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
684 rtx_insn_list **.
685 (alloc_INSN_LIST): Strengthen return type from rtx to
686 rtx_insn_list *.
687 (copy_INSN_LIST): Likewise for return type and param.
688 (concat_INSN_LIST): Likewise for both params and return type.
689 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
690 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
691 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
692 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
693
694 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
695 "implicit_sets", "control_uses", "clobbers" from rtx to
696 rtx_insn_list *.
697 (struct deps_desc): Likewise for fields "pending_read_insns",
698 "pending_write_insns", "pending_jump_insns",
699 "last_pending_memory_flush", "last_function_call",
700 "last_function_call_may_noreturn", "sched_before_next_call",
701 "sched_before_next_jump".
702 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
703 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
704
705 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
706 from rtx to rtx_insn_list *.
707 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
708 rtx_insn_list *.
709
710 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
711 to rtx_insn_list **.
712 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
713 rtx_insn_list *.
714 (queue_insn): Likewise for local "link".
715 (struct haifa_saved_data): Strengthen field "insn_queue" from
716 rtx * to rtx_insn_list **.
717 (save_backtrack_point): Update allocation of save->insn_queue to
718 reflect the strengthening of elements from rtx to rtx_insn_list *.
719 (queue_to_ready): Strengthen local "link" from rtx to
720 rtx_insn_list *; use methods "next" and "insn" when traversing the
721 list.
722 (early_queue_to_ready): Likewise for locals "link", "next_link",
723 "prev_link".
724 (schedule_block): Update allocation of insn_queue to reflect the
725 strengthening of elements from rtx to rtx_insn_list *. Strengthen
726 local "link" from rtx to rtx_insn_list *, and use methods when
727 working it.
728 (add_to_speculative_block): Strengthen locals "twins" and
729 "next_node" from rtx to rtx_insn_list *, and use methods when
730 working with them. Strengthen local "twin" from rtx to
731 rtx_insn *, eliminating a checked cast.
732 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
733 from rtx to rtx_insn_list *, and use methods when working with
734 them.
735
736 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
737 from rtx to rtx_insn_list *, adding a checked cast.
738 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
739 rtx_insn_list **.
740 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
741 "newlink" from rtx to rtx_insn_list *. Strengthen local
742 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
743 from rtx to rtx_insn *.
744 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
745 from rtx to rtx_insn_list *. Use methods of the latter class.
746 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
747 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
748 (remove_free_INSN_LIST_node): Strengthen return type and local
749 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
750 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
751 rtx_insn_list *, using "insn" method.
752
753 * sched-deps.c (add_dependence_list): Strengthen param "list"
754 from rtx to rtx_insn_list *, and use methods when working with it.
755 (add_dependence_list_and_free): Strengthen param "listp" from
756 rtx * to rtx_insn_list **.
757 (remove_from_dependence_list): Strenghten param "listp" from rtx *
758 to rtx_insn_list **, and use methods when working with *listp.
759 (remove_from_both_dependence_lists): Strengthen param "listp" from
760 rtx * to rtx_insn_list **
761 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
762 to rtx_insn_list **. Eliminate local "link", in favor of two new
763 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
764 respectively.
765 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
766 by introducing local "cond_deps".
767 (remove_from_deps): Strengthen param "insn" from rtx to
768 rtx_insn *.
769
770 * sched-rgn.c (concat_insn_mem_list): Strengthen param
771 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
772 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
773 Use methods of rtx_insn_list.
774
775 * store-motion.c (struct st_expr): Strengthen fields
776 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
777 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
778 rtx_insn_list *.
779 (find_moveable_store): Split out "tmp" into multiple more-tightly
780 scoped locals. Use methods of rtx_insn_list *.
781 (compute_store_table): Strengthen local "tmp" from rtx to
782 rtx_insn *. Use methods of rtx_insn_list *.
783
784 2014-08-27 David Malcolm <dmalcolm@redhat.com>
785
786 * coretypes.h (class rtx_insn_list): Add forward declaration.
787 * rtl.h (class rtx_insn_list): New subclass of rtx_def
788 (is_a_helper <rtx_insn_list *>::test): New.
789 (rtx_insn_list::next): New.
790 (rtx_insn_list::insn): New.
791 (gen_rtx_INSN_LIST): Add prototype.
792 * emit-rtl.c (gen_rtx_INSN_LIST): New.
793 * gengenrtl.c (special_rtx): Add INSN_LIST.
794
795 2014-08-27 David Malcolm <dmalcolm@redhat.com>
796
797 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
798 "prev" from rtx to rtx_insn *.
799
800 2014-08-27 David Malcolm <dmalcolm@redhat.com>
801
802 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
803 functions. Require merely an rtx for now, not an rtx_insn *.
804 (BLOCK_FOR_INSN): Likewise.
805 (INSN_LOCATION): Likewise.
806 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
807
808 2014-08-27 David Malcolm <dmalcolm@redhat.com>
809
810 * rtl.h (PATTERN): Convert this macro into a pair of inline
811 functions, for now, requiring const_rtx and rtx.
812
813 2014-08-27 David Malcolm <dmalcolm@redhat.com>
814
815 * target.def (unwind_emit): Strengthen param "insn" from rtx to
816 rtx_insn *.
817 (final_postscan_insn): Likewise.
818 (adjust_cost): Likewise.
819 (adjust_priority): Likewise.
820 (variable_issue): Likewise.
821 (macro_fusion_pair_p): Likewise.
822 (dfa_post_cycle_insn): Likewise.
823 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
824 (first_cycle_multipass_issue): Likewise.
825 (dfa_new_cycle): Likewise.
826 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
827 (speculate_insn): Likewise for param "insn".
828 (gen_spec_check): Likewise for params "insn" and "label".
829 (get_insn_spec_ds): Likewise for param "insn".
830 (get_insn_checked_ds): Likewise.
831 (dispatch_do): Likewise.
832 (dispatch): Likewise.
833 (cannot_copy_insn_p): Likewise.
834 (invalid_within_doloop): Likewise.
835 (legitimate_combined_insn): Likewise.
836 (needed): Likewise.
837 (after): Likewise.
838
839 * doc/tm.texi: Automatically updated to reflect changes to
840 target.def.
841
842 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
843 working with insn.
844 (schedule_block): Likewise.
845 (sched_init): Likewise.
846 (sched_speculate_insn): Strengthen param "insn" from rtx to
847 rtx_insn *.
848 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
849 working with insn.
850 * hooks.c (hook_bool_rtx_true): Rename to...
851 hook_bool_rtx_insn_true): ...this, and strengthen first param from
852 rtx to rtx_insn *.
853 (hook_constcharptr_const_rtx_null): Rename to...
854 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
855 first param from const_rtx to const rtx_insn *.
856 (hook_bool_rtx_int_false): Rename to...
857 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
858 param from rtx to rtx_insn *.
859 (hook_void_rtx_int): Rename to...
860 (hook_void_rtx_insn_int): ...this, and strengthen first param from
861 rtx to rtx_insn *.
862
863 * hooks.h (hook_bool_rtx_true): Rename to...
864 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
865 rtx to rtx_insn *.
866 (hook_bool_rtx_int_false): Rename to...
867 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
868 param from rtx to rtx_insn *.
869 (hook_void_rtx_int): Rename to...
870 (hook_void_rtx_insn_int): ...this, and strengthen first param from
871 rtx to rtx_insn *.
872 (hook_constcharptr_const_rtx_null): Rename to...
873 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
874 first param from const_rtx to const rtx_insn *.
875
876 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
877 and local "prev" from rtx to rtx_insn *.
878
879 * sched-int.h (sched_speculate_insn): Strengthen first param from
880 rtx to rtx_insn *.
881
882 * sel-sched.c (create_speculation_check): Likewise for local "label".
883 * targhooks.c (default_invalid_within_doloop): Strengthen param
884 "insn" from const_rtx to const rtx_insn *.
885 * targhooks.h (default_invalid_within_doloop): Strengthen param
886 from const_rtx to const rtx_insn *.
887
888 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
889 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
890
891 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
892 "insn".
893 (arc_invalid_within_doloop): Likewise, with const.
894
895 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
896 (arm_cannot_copy_insn_p): Likewise for param "insn".
897 (arm_unwind_emit): Likewise.
898
899 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
900 "dep_insn".
901
902 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
903 (c6x_variable_issue): Likewise. Removed now-redundant checked
904 cast.
905 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
906
907 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
908 Likewise for param "insn".
909 (epiphany_mode_after): Likewise.
910 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
911 params "insn", "dep_insn".
912 (epiphany_mode_needed): Likewise for param "insn".
913 (epiphany_mode_after): Likewise.
914
915 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
916 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
917 (ix86_avx_u128_mode_needed): Likewise.
918 (ix86_i387_mode_needed): Likewise.
919 (ix86_mode_needed): Likewise.
920 (ix86_avx_u128_mode_after): Likewise.
921 (ix86_mode_after): Likewise.
922 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
923 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
924 (ix86_adjust_priority): Likewise for param "insn".
925 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
926 (do_dispatch): Likewise.
927 (has_dispatch): Likewise.
928 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
929
930 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
931 reflect renaming of default hook implementation from
932 hook_constcharptr_const_rtx_null to
933 hook_constcharptr_const_rtx_insn_null.
934 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
935 rtx to rtx_insn *.
936 (ia64_variable_issue): Likewise for param "insn".
937 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
938 (ia64_dfa_new_cycle): Likewise.
939 (ia64_get_insn_spec_ds): Likewise.
940 (ia64_get_insn_checked_ds): Likewise.
941 (ia64_speculate_insn): Likewise.
942 (ia64_gen_spec_check): Likewise for params "insn", "label".
943 (ia64_asm_unwind_emit): Likewise for param "insn".
944
945 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
946
947 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
948 "insn", "def_insn".
949 (m68k_sched_variable_issue): Likewise for param "insn".
950
951 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
952 "def_insn".
953
954 * config/microblaze/microblaze.c (microblaze_adjust_cost):
955 Likewise for params "insn", "dep".
956
957 * config/mips/mips.c (mips_adjust_cost): Likewise.
958 (mips_variable_issue): Likewise for param "insn".
959 (mips_final_postscan_insn): Likewise.
960
961 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
962 for params "insn", "dep".
963
964 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
965 "dep_insn".
966 (pa_adjust_priority): Likewise for param "insn".
967
968 * config/picochip/picochip.c (picochip_sched_adjust_cost):
969 Likewise for params "insn", "dep_insn".
970
971 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
972 param "insn".
973 (rs6000_variable_issue): Likewise.
974 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
975 (rs6000_debug_adjust_cost): Likewise.
976 (rs6000_adjust_priority): Likewise for param "insn".
977 (rs6000_use_sched_lookahead_guard): Likewise.
978 (get_next_active_insn): Likewise for return type and both params.
979 (redefine_groups): Likewise for params "prev_head_insn", "tail"
980 and locals "insn", "next_insn".
981 (pad_groups): Likewise.
982
983 * config/s390/s390.c (s390_adjust_priority): Likewise for param
984 "insn".
985 (s390_cannot_copy_insn_p): Likewise.
986 (s390_sched_variable_issue): Likewise for third param, eliminating
987 checked cast.
988 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
989 default hook implementation from hook_constcharptr_const_rtx_null
990 to hook_constcharptr_const_rtx_insn_null.
991
992 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
993 from rtx to rtx_insn *.
994 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
995 (sh_variable_issue): Likewise for param "insn".
996 (sh_dfa_new_cycle): Likewise.
997 (sh_mode_needed): Likewise.
998 (sh_mode_after): Likewise.
999
1000 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
1001 params "insn", "dep_insn".
1002 (hypersparc_adjust_cost): Likewise.
1003 (sparc_adjust_cost): Likewise.
1004
1005 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
1006 param, eliminated checked cast.
1007 (spu_sched_adjust_cost): Likewise for first and third params.
1008
1009 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
1010 params "insn" and "dep_insn" from rtx to rtx_insn *.
1011
1012 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
1013
1014 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1015
1016 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
1017 (set_is_load_p): ...this, updating to work on a SET pattern rather
1018 than an insn.
1019 (is_store_insn): Rename to...
1020 (set_is_store_p): ...this, updating to work on a SET pattern
1021 rather than an insn.
1022 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
1023 top of function to where it is needed. Rewrite the bogus
1024 condition that checks for "insn" and "dep" being PARALLEL to
1025 instead use single_set, introducing locals "insn_set" and
1026 "dep_set". Given that we only ever returned "cost" for a non-pair
1027 of SETs, bail out early if we don't have a pair of SET.
1028 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
1029 use the new locals "insn_set" and "dep_set", and update calls to
1030 is_load_insn and is_store_insn to be calls to set_is_load_p and
1031 set_is_store_p.
1032
1033 2014-08-27 Guozhi Wei <carrot@google.com>
1034
1035 PR target/62262
1036 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
1037 amount before using it.
1038
1039 2014-08-27 Richard Biener <rguenther@suse.de>
1040
1041 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
1042 get_maxval_strlen inside a more useful API.
1043 (gimple_fold_builtin_with_strlen): Remove and fold into ...
1044 (gimple_fold_builtin): ... caller.
1045 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
1046 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
1047 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
1048 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
1049 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
1050 gimple_fold_builtin_sprintf): Adjust to compute maxval
1051 themselves.
1052
1053 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
1054
1055 PR other/62248
1056 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1057
1058 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1059 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1060 Anna Tikhonova <anna.tikhonova@intel.com>
1061 Ilya Tocar <ilya.tocar@intel.com>
1062 Andrey Turetskiy <andrey.turetskiy@intel.com>
1063 Ilya Verbin <ilya.verbin@intel.com>
1064 Kirill Yukhin <kirill.yukhin@intel.com>
1065 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1066
1067 * config/i386/sse.md
1068 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
1069 Use `concat_tg_mode' attribute to determine asm register size.
1070
1071 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1072 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1073 Anna Tikhonova <anna.tikhonova@intel.com>
1074 Ilya Tocar <ilya.tocar@intel.com>
1075 Andrey Turetskiy <andrey.turetskiy@intel.com>
1076 Ilya Verbin <ilya.verbin@intel.com>
1077 Kirill Yukhin <kirill.yukhin@intel.com>
1078 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1079
1080 * config/i386/sse.md
1081 (define_mode_iterator VI48_AVX512VL): New.
1082 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
1083 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
1084 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
1085 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1086 with VI1): Change mode iterator.
1087 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1088 with VI_ULOADSTORE_BW_AVX512VL): New.
1089 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1090 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1091 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1092 with VI1): Change mode iterator.
1093 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1094 with VI_ULOADSTORE_BW_AVX512VL): New.
1095 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1096 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1097 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1098 with VI1): Change mode iterator.
1099 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1100 with VI_ULOADSTORE_BW_AVX512VL): New.
1101 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1102 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
1103 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
1104 (define_insn "<avx512>_storedqu<mode>_mask" with
1105 VI48_AVX512VL): New.
1106 (define_insn "<avx512>_storedqu<mode>_mask" with
1107 VI12_AVX512VL): Ditto.
1108
1109 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1110 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1111 Anna Tikhonova <anna.tikhonova@intel.com>
1112 Ilya Tocar <ilya.tocar@intel.com>
1113 Andrey Turetskiy <andrey.turetskiy@intel.com>
1114 Ilya Verbin <ilya.verbin@intel.com>
1115 Kirill Yukhin <kirill.yukhin@intel.com>
1116 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1117
1118 * config/i386/sse.md
1119 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
1120 (define_mode_iterator VI48_AVX512BW): New.
1121 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
1122 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1123 with VI48_AVX2_48_AVX512F): New.
1124 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1125 with VI2_AVX512VL): Ditto.
1126
1127 2014-08-27 Richard Biener <rguenther@suse.de>
1128
1129 PR middle-end/62239
1130 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
1131 (fold_builtin_3): Do not fold strcat_chk here.
1132 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
1133 from builtins.c.
1134 (gimple_fold_builtin): Fold strcat_chk here.
1135
1136 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
1137
1138 * dwarf2out.h (dwarf2out_decl): Remove prototype.
1139 * dwarf2out.c (dwarf2out_decl): Make static.
1140
1141 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
1142
1143 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1144
1145 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1146
1147 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
1148 from rtx to rtx_insn *.
1149 (cselib_lookup_from_insn): Likewise for final param.
1150 (cselib_subst_to_values_from_insn): Likewise.
1151 (cselib_add_permanent_equiv): Likewise.
1152
1153 * cselib.c (cselib_current_insn): Likewise for this variable.
1154 (cselib_subst_to_values_from_insn): Likewise for param "insn".
1155 (cselib_lookup_from_insn): Likewise.
1156 (cselib_add_permanent_equiv): Likewise for param "insn" and local
1157 "save_cselib_current_insn".
1158 (cselib_process_insn): Replace use of NULL_RTX with NULL.
1159
1160 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
1161 from rtx to rtx_insn *.
1162
1163 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1164
1165 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
1166 rtx_insn *.
1167
1168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1169
1170 * df.h (df_dump_insn_problem_function): Strengthen first param of
1171 this callback from const_rtx to const rtx_insn *.
1172 (struct df_insn_info): Strengthen field "insn" from rtx to
1173 rtx_insn *.
1174 (DF_REF_INSN): Eliminate this function, reinstating the older
1175 macro definition.
1176 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
1177 (df_reg_defined): Likewise.
1178 (df_find_use): Likewise.
1179 (df_reg_used): Likewise.
1180 (df_dump_insn_top): Strengthen param 1 from const_rtx to
1181 const rtx_insn *.
1182 (df_dump_insn_bottom): Likewise.
1183 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
1184 (df_insn_debug_regno): Likewise.
1185 (debug_df_insn): Likewise.
1186 (df_rd_simulate_one_insn): Likewise for param 2.
1187 (df_word_lr_simulate_defs): Likewise for param 1.
1188 (df_word_lr_simulate_uses): Likewise.
1189 (df_md_simulate_one_insn): Likewise for param 2.
1190 (df_simulate_find_noclobber_defs): Likewise for param 1.
1191 (df_simulate_find_defs): Likewise.
1192 (df_simulate_defs): Likewise.
1193 (df_simulate_uses): Likewise.
1194 (df_simulate_one_insn_backwards): Likewise for param 2.
1195 (df_simulate_one_insn_forwards): Likewise.
1196 (df_uses_create): Likewise for param 2.
1197 (df_insn_create_insn_record): Likewise for param 1.
1198 (df_insn_delete): Likewise.
1199 (df_insn_rescan): Likewise.
1200 (df_insn_rescan_debug_internal): Likewise.
1201 (df_insn_change_bb): Likewise.
1202 (df_notes_rescan): Likewise.
1203 * rtl.h (remove_death): Likewise for param 2.
1204 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1205 const rtx_insn *.
1206 * sched-int.h (reemit_notes): Strengthen param from rtx to
1207 rtx_insn *.
1208 * valtrack.h (propagate_for_debug): Likewise for param 1.
1209
1210 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1211 local "tmp_rtx" from const_rtx to const rtx_insn *.
1212 * combine.c (remove_death): Strengthen param "insn" from rtx to
1213 rtx_insn *.
1214 (move_deaths): Likewise for local "where_dead".
1215 * cse.c (delete_trivially_dead_insns): Introduce local
1216 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1217 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1218 rtx_insn *.
1219 (df_reg_defined): Likewise.
1220 (df_find_use): Likewise.
1221 (df_reg_used): Likewise.
1222 (df_dump_insn_problem_data): Strengthen param "insn" from
1223 const_rtx to const rtx_insn *.
1224 (df_dump_insn_top): Likewise.
1225 (df_dump_insn_bottom): Likewise.
1226 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1227 (df_insn_debug_regno): Likewise.
1228 (debug_df_insn): Likewise.
1229 (DF_REF_INSN): Delete.
1230 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1231 from rtx to rtx_insn *.
1232 (df_chain_insn_top_dump): Strengthen param "insn" from
1233 const_rtx to const rtx_insn *.
1234 (df_chain_insn_bottom_dump): Likewise.
1235 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1236 rtx_insn *.
1237 (df_word_lr_simulate_uses): Likewise.
1238 (df_print_note): Likewise.
1239 (df_remove_dead_and_unused_notes): Likewise.
1240 (df_set_unused_notes_for_mw): Likewise.
1241 (df_set_dead_notes_for_mw): Likewise.
1242 (df_create_unused_note): Likewise.
1243 (df_simulate_find_defs): Likewise.
1244 (df_simulate_find_uses): Likewise.
1245 (df_simulate_find_noclobber_defs): Likewise.
1246 (df_simulate_defs): Likewise.
1247 (df_simulate_uses): Likewise.
1248 (df_simulate_one_insn_backwards): Likewise.
1249 (df_simulate_one_insn_forwards): Likewise.
1250 (df_md_simulate_one_insn): Likewise.
1251 * df-scan.c (df_uses_create): Likewise.
1252 (df_insn_create_insn_record): Likewise.
1253 (df_insn_delete): Likewise.
1254 (df_insn_rescan): Likewise.
1255 (df_insn_rescan_debug_internal): Likewise.
1256 (df_insn_change_bb): Likewise.
1257 (df_notes_rescan): Likewise.
1258 (df_refs_add_to_chains): Likewise.
1259 (df_insn_refs_verify): Likewise.
1260 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1261 when invoking df_insn_delete.
1262 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1263 (set_unique_reg_note): Add checked cast.
1264 * final.c (cleanup_subreg_operands): Likewise.
1265 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1266 "insn" from rtx to rtx_insn *.
1267 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1268 "last" from rtx to rtx_insn *.
1269 * ira-emit.c (change_regs_in_insn): New function.
1270 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1271 Invoke change_regs_in_insn rather than change_regs.
1272 * ira.c (update_equiv_regs): Strengthen locals "insn",
1273 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1274 for_each_rtx_in_insn rather than for_each_rtx.
1275 * recog.c (confirm_change_group): Add checked casts.
1276 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1277 Add checked cast.
1278 (peep2_fill_buffer): Add checked cast.
1279 * rtlanal.c (remove_note): Likewise.
1280 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1281 locals "next" "end" from rtx to rtx_insn *.
1282
1283 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1284
1285 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1286 to rtx_insn *.
1287 (struct reg_use_data): Likewise for field "insn".
1288 (insn_cost): Likewise for param.
1289 (real_insn_for_shadow): Likewise for return type and param.
1290 (increase_insn_priority): Likewise for param 1.
1291 (debug_dependencies): Likewise for both params.
1292
1293 * haifa-sched.c (insn_delay): Likewise for param "insn".
1294 (real_insn_for_shadow): Likewise for return type and param "insn".
1295 (update_insn_after_change): Likewise for param "insn".
1296 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1297 "other".
1298 (insn_cost): Likewise for param "insn".
1299 (increase_insn_priority): Likewise.
1300 (calculate_reg_deaths): Likewise.
1301 (setup_insn_reg_pressure_info): Likewise.
1302 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1303 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1304 (model_recompute): Likewise.
1305 (must_restore_pattern_p): Likewise for param "next".
1306 (model_excess_cost): Likewise for param "insn".
1307 (queue_remove): Likewise.
1308 (adjust_priority): Likewise for param "prev".
1309 (update_register_pressure): Likewise for param "insn".
1310 (setup_insn_max_reg_pressure): Likewise for local "insn".
1311 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1312 (model_add_to_schedule): Likewise.
1313 (model_reset_queue_indices): Likewise for local "insn".
1314 (unschedule_insns_until): Strengthen local "recompute_vec" from
1315 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1316 "con" from rtx to rtx_insn *.
1317 (restore_last_backtrack_point): Likewise for both locals "x". Add
1318 checked casts.
1319 (estimate_insn_tick): Likewise for param "insn".
1320 (commit_schedule): Likewise for params "prev_head", "tail" and
1321 local "x".
1322 (verify_shadows): Likewise for locals "i1", "i2".
1323 (dump_insn_stream): Likewise for params "head", "tail" and locals
1324 "next_tail", "insn".
1325 (schedule_block): Likewise for locals "insn", "x". Add a checked
1326 cast.
1327 (fix_inter_tick): Likewise for params "head", "tail".
1328 (create_check_block_twin): Likewise for local "jump".
1329 (haifa_change_pattern): Likewise for param "insn".
1330 (haifa_speculate_insn): Likewise.
1331 (dump_new_block_header): Likewise for params "head", "tail".
1332 (fix_jump_move): Likewise for param "jump".
1333 (move_block_after_check): Likewise.
1334 (sched_init_insn_luid): Likewise for param "insn".
1335 (sched_init_luids): Likewise for local "insn".
1336 (insn_luid): Likewise for param "insn".
1337 (init_h_i_d): Likewise.
1338 (haifa_init_h_i_d): Likewise for local "insn".
1339 (haifa_init_insn): Likewise for param "insn".
1340 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1341 "other".
1342 (create_insn_reg_use): Likewise for param "insn".
1343 (setup_insn_reg_uses): Likewise. Add a checked cast.
1344 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1345 "tail" from rtx to rtx_insn *.
1346 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1347 "insn", "next_tail".
1348
1349 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1350
1351 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1352 from rtx to rtx_insn *.
1353 (model_add_to_schedule): Likewise for locals "start", "end",
1354 "iter".
1355
1356 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1357
1358 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1359 rtx_insn *.
1360 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1361 "to" and locals "insn", "next", "copy". Remove now-redundant
1362 checked cast.
1363
1364 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1365
1366 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1367 rtx_insn * and param 4 from rtx * to rtx_insn **.
1368 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1369 param 2 from rtx * to rtx_insn **.
1370
1371 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1372 rtx_insn * and final param from rtx * to rtx_insn **.
1373
1374 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1375 from rtx to rtx_insn *.
1376 (try_head_merge_bb): Likewise for both locals named "move_upto".
1377 * df-problems.c (can_move_insns_across): Likewise for params
1378 "from", "to", "across_from", "across_to" and locals "insn",
1379 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1380 rtx_insn **.
1381 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1382 from rtx to rtx_insn *.
1383 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1384 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1385 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1386 rtx_insn *.
1387 (noce_try_abs): Likewise.
1388 (noce_get_condition): Likewise for param "jump". Strengthen param
1389 "earliest" from rtx * to rtx_insn **.
1390 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1391 rtx_insn *.
1392 (find_cond_trap): Likewise.
1393 (dead_or_predicable): Likewise for local "earliest".
1394 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1395 checked cast.
1396 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1397 and local "prev". Strengthen param "earliest" from rtx * to
1398 rtx_insn **.
1399 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1400 Strengthen param "earliest" from rtx * to rtx_insn **.
1401
1402 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1403
1404 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1405 "to" and local "insn" from rtx to rtx_insn *.
1406
1407 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1408
1409 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1410 from rtx to rtx_insn *.
1411 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1412 (code_motion_path_driver): Likewise for local "last_insn".
1413 (simplify_changed_insns): Likewise for local "insn".
1414
1415 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1416
1417 * rtl.h (push_to_sequence): Strengthen param from rtx to
1418 rtx_insn *.
1419 (push_to_sequence2): Likewise for both params.
1420 (delete_insns_since): Likewise for param.
1421 (reorder_insns_nobb): Likewise for all three params.
1422 (set_new_first_and_last_insn): Likewise for both params.
1423
1424 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1425 rtx_insn *. Remove now-redundant cast.
1426 (set_last_insn): Likewise.
1427
1428 * builtins.c (expand_builtin_return): Strengthen local
1429 "call_fusage" from rtx to rtx_insn *.
1430 * cfgrtl.c (create_basic_block_structure): Likewise for local
1431 "after".
1432 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1433 "first", "last" and local "insn".
1434 (delete_insns_since): Likewise for param "from".
1435 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1436 and local "x".
1437 (push_to_sequence): Likewise for param "first" and local "last".
1438 (push_to_sequence2): Likewise for params "first" and "last".
1439 * lra.c (emit_add3_insn): Likewise for local "last".
1440 (lra_emit_add): Likewise.
1441 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1442 "last_insn".
1443 (process_address_1): Likewise for locals "insn", last".
1444 * modulo-sched.c (ps_first_note): Likewise for return type.
1445 * optabs.c (expand_binop_directly): Likewise for param "last".
1446
1447 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1448
1449 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1450 to rtx_insn*.
1451 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1452
1453 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1454
1455 * function.h (struct sequence_stack): Strengthen fields "first"
1456 and "last" from rtx to rtx_insn *.
1457 (struct emit_status): Likewise for fields "x_first_insn" and
1458 "x_last_insn".
1459
1460 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1461 (set_first_insn): Add checked cast.
1462 (get_last_insn): Remove now-redundant checked cast.
1463 (set_last_insn): Add checked cast.
1464
1465 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1466 "saved_first" and "saved_last" from rtx to rtx_insn *.
1467
1468 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1469
1470 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1471 (unlink_insn_chain): Strengthen both params from rtx to
1472 rtx_insn *.
1473
1474 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1475 variable.
1476 (unlink_insn_chain): Likewise for params "first" and "last".
1477 Remove now-redundant checked cast.
1478 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1479 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1480 rtx_insn *.
1481 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1482 params.
1483 (add_insn): Likewise for param "insn" and local "prev".
1484 (add_insn_after_nobb): Likewise for both params and local "next".
1485 (add_insn_before_nobb): Likewise for both params and local "prev".
1486 (add_insn_after): Rename param "after" to "uncast_after",
1487 introducing local "after" with another checked cast.
1488 (add_insn_before): Rename params "insn" and "before", giving them
1489 "uncast_" prefixes, adding the old names back using checked casts.
1490 (emit_note_after): Likewise for param "after".
1491 (emit_note_before): Likewise for param "before".
1492 (emit_label): Add a checked cast.
1493
1494 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1495
1496 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1497 "insn" from rtx to rtx_insn *.
1498
1499 * cselib.c (cselib_record_sets_hook): Likewise.
1500
1501 * var-tracking.c (add_with_sets): Likewise, renaming back from
1502 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1503 to rtx_insn *.
1504
1505 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1506
1507 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1508 and "header_" from rtx to rtx_insn *.
1509 (struct basic_block_d): Likewise for field "head_" within "x"
1510 field of union basic_block_il_dependent.
1511 (BB_HEAD): Drop function...
1512 (SET_BB_HEAD): ...and this function in favor of...
1513 (BB_HEAD): ...reinstate macro.
1514 (BB_END): Drop function...
1515 (SET_BB_END): ...and this function in favor of...
1516 (BB_END): ...reinstate macro.
1517 (BB_HEADER): Drop function...
1518 (SET_BB_HEADER): ...and this function in favor of...
1519 (BB_HEADER): ...reinstate macro.
1520
1521 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1522 (fix_crossing_unconditional_branches): Likewise.
1523 * caller-save.c (save_call_clobbered_regs): Likewise.
1524 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1525 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1526 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1527 (merge_blocks_move_successor_nojumps): Likewise.
1528 (outgoing_edges_match): Update use of for_each_rtx to
1529 for_each_rtx_in_insn.
1530 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1531 (expand_gimple_cond): Likewise.
1532 (expand_gimple_tailcall): Likewise.
1533 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1534 SET_BB_END.
1535 (construct_exit_block): Drop use of SET_BB_END.
1536 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1537 rtx_insn *.
1538 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1539 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1540 SET_BB_HEAD and SET_BB_END.
1541 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1542 SET_BB_END.
1543 (rtl_delete_block): Drop use of SET_BB_HEAD.
1544 (rtl_split_block): Drop use of SET_BB_END.
1545 (emit_nop_for_unique_locus_between): Likewise.
1546 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1547 (block_label): Drop use of SET_BB_HEAD.
1548 (fixup_abnormal_edges): Drop use of SET_BB_END.
1549 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1550 (relink_block_chain): Likewise.
1551 (fixup_reorder_chain): Drop use of SET_BB_END.
1552 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1553 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1554 rtx_insn **. Drop use of SET_BB_HEADER.
1555 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1556 SET_BB_HEAD.
1557 (BB_HEAD): Delete this function.
1558 (SET_BB_HEAD): Likewise.
1559 (BB_END): Likewise.
1560 (SET_BB_END): Likewise.
1561 (BB_HEADER): Likewise.
1562 (SET_BB_HEADER): Likewise.
1563 * emit-rtl.c (add_insn_after): Rename param "insn" to
1564 "uncast_insn", adding a new local "insn" and a checked cast to
1565 rtx_insn *. Drop use of SET_BB_END.
1566 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1567 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1568 (reorder_insns): Drop use of SET_BB_END.
1569 (emit_insn_after_1): Strengthen param "first" and locals "last",
1570 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1571 (emit_pattern_after_noloc): Add checked cast.
1572 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1573 (restore_other_notes): Likewise.
1574 (move_insn): Likewise.
1575 (sched_extend_bb): Likewise.
1576 (fix_jump_move): Likewise.
1577 * ifcvt.c (noce_process_if_block): Likewise.
1578 (dead_or_predicable): Likewise.
1579 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1580 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1581 * sel-sched-ir.c (sel_move_insn): Likewise.
1582 * sel-sched.c (move_nop_to_previous_block): Likewise.
1583
1584 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1585 SET_BB_END.
1586 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1587
1588 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1589
1590 * basic-block.h (create_basic_block_structure): Strengthen params
1591 1 "head" and 2 "end" from rtx to rtx_insn *.
1592 * cfgrtl.c (create_basic_block_structure): Likewise.
1593 (rtl_create_basic_block): Update casts from void * to rtx to
1594 rtx_insn *, so that we can pass them as rtx_insn * to
1595 create_basic_block_structure.
1596 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1597
1598 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1599
1600 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1601 rtx_insn **.
1602 (check_for_inc_dec): Strengthen param "insn" from rtx to
1603 rtx_insn *.
1604
1605 * cselib.h (cselib_process_insn): Likewise.
1606
1607 * cselib.c (cselib_record_sets): Likewise.
1608 (cselib_process_insn): Likewise.
1609
1610 * dse.c (struct insn_info): Likewise for field "insn".
1611 (check_for_inc_dec_1): Likewise for local "insn".
1612 (check_for_inc_dec): Likewise for param "insn".
1613 (scan_insn): Likewise.
1614 (dse_step1): Likewise for local "insn".
1615
1616 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1617 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1618
1619 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1620
1621 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1622 from rtx to rtx_insn *.
1623 (DEP_PRO): Delete this function and...
1624 (SET_DEP_PRO): ...this function in favor of...
1625 (DEP_PRO): ...reinstate this macro.
1626 (DEP_CON): Delete this function and...
1627 (SET_DEP_CON): ...this function in favor of...
1628 (DEP_CON): ...reinstate this old macro.
1629 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1630 (init_dep): Likewise.
1631 (set_priorities): Likewise for both params.
1632 (sd_copy_back_deps): Likewise for params 1 and 2.
1633
1634 * haifa-sched.c (priority): Likewise for param "insn" and local
1635 "next".
1636 (set_priorities): Likewise for params "head" and "tail" and local
1637 "insn".
1638 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1639 local "consumer".
1640 (add_to_speculative_block): Add a checked cast.
1641 (create_check_block_twin): Drop use of SET_DEP_CON.
1642 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1643 rtx to rtx_insn *.
1644
1645 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1646 Drop use of SET_DEP_PRO
1647 (init_dep): Strengthen params "pro" and "con" from rtx to
1648 rtx_insn *.
1649 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1650 use of SET_DEP_CON.
1651 (DEP_PRO): Delete.
1652 (DEP_CON): Delete.
1653 (SET_DEP_PRO): Delete.
1654 (SET_DEP_CON): Delete.
1655
1656 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1657
1658 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1659 from rtx to rtx_insn *.
1660 (VINSN_INSN_RTX): Eliminate rvalue function and...
1661 (SET_VINSN_INSN): ...lvalue function in favor of...
1662 (VINSN_INSN_RTX): reinstate this old macro.
1663
1664 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1665 in favor of VINSN_INSN_RTX.
1666 (VINSN_INSN_RTX): Delete this function.
1667 (SET_VINSN_INSN_RTX): Likewise.
1668
1669 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1670
1671 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1672 (BND_TO): Delete this function and...
1673 (SET_BND_TO): ...this functions in favor of...
1674 (BND_TO): ...reinstating this macro.
1675 (struct _fence): Strengthen field "executing_insns" from
1676 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1677 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1678 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1679 and param "insn" from rtx to insn_t.
1680 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1681 rtx_insn *.
1682
1683 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1684 vec<rtx_insn *> .
1685 (rtx_vec_t): Likewise.
1686 (struct sched_deps_info_def): Strengthen param of "start_insn"
1687 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1688 "note_mem_dep" callback and first param of "note_dep" callback.
1689
1690 * haifa-sched.c (add_to_speculative_block): Strengthen param
1691 "insn" from rtx to rtx_insn *.
1692 (clear_priorities): Likewise.
1693 (calc_priorities): Likewise for local "insn".
1694
1695 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1696 Remove redundant checked cast.
1697 (haifa_note_mem_dep): Likewise for param "pending_insn".
1698 (haifa_note_dep): Likewise for param "elem".
1699 (note_mem_dep): Likewise for param "e".
1700 (sched_analyze_1): Add checked casts.
1701 (sched_analyze_2): Likewise.
1702
1703 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1704 from rtx to rtx_insn *.
1705 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1706 from vec<rtx> * to vec<rtx_insn *> *.
1707
1708 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1709 scaffolding.
1710 (flist_add): Strengthen param "executing_insns" from
1711 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1712 (advance_deps_context): Remove now-redundant checked cast.
1713 (init_fences): Replace uses of NULL_RTX with NULL.
1714 (merge_fences): Strengthen params "last_scheduled_insn" and
1715 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1716 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1717 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1718 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1719 an instruction, rather than doing double-duty as a pattern.
1720 (return_nop_to_pool): Update for change of insn_t.
1721 (deps_init_id): Remove now-redundant checked cast.
1722 (struct sched_scan_info_def): Strengthen param of "init_insn"
1723 callback from rtx to insn_t.
1724 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1725 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1726 NULL.
1727 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1728 "end" from rtx to rtx_insn *.
1729 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1730 (rtx insn_rtx, bool force_unique_p)
1731 (BND_TO): Delete function.
1732 (SET_BND_TO): Delete function.
1733
1734 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1735 rtx to rtx_insn *.
1736 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1737 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1738 rtx to rtx_insn *.
1739 (undo_transformations): Likewise for param "insn".
1740 (update_liveness_on_insn): Likewise.
1741 (compute_live_below_insn): Likewise for param "insn" and local
1742 "succ".
1743 (update_data_sets): Likewise for param "insn".
1744 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1745 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1746 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1747 rtx_insn *.
1748 (move_cond_jump): Likewise for param "insn".
1749 (move_cond_jump): Drop use of SET_BND_TO.
1750 (compute_av_set_on_boundaries): Likewise.
1751 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1752 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1753 from rtx to rtx_insn *.
1754 (maybe_emit_renaming_copy): Likewise for param "insn".
1755 (maybe_emit_speculative_check): Likewise.
1756 (handle_emitting_transformations): Likewise.
1757 (remove_insn_from_stream): Likewise.
1758 (code_motion_process_successors): Strengthen local "succ" from rtx
1759 to insn_t.
1760
1761 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1762
1763 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1764 ilist_t, not _xlist_t;
1765 (ILIST_INSN): Define in terms of new union field "insn".
1766 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1767 _XLIST_NEXT.
1768 (struct _list_node): Add new field "insn" to the union, of type
1769 insn_t.
1770 (ilist_add): Replace macro with an inline function, requiring an
1771 insn_t.
1772 (ilist_remove): Define this macro directly in terms of
1773 _list_remove, rather than indirectly via _xlist_remove.
1774 (ilist_clear): Likewise, in terms of _list_clear rather than
1775 _xlist_clear.
1776 (ilist_is_in_p): Replace macro with an inline function, requiring
1777 an insn_t.
1778 (_list_iter_cond_insn): New function.
1779 (ilist_iter_remove): Define this macro directly in terms of
1780 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1781 (ilist_iterator): Define directly in terms of _list_iterator
1782 rather than indirectly through _xlist_iterator.
1783 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1784 than in terms of _FOR_EACH_X.
1785 (FOR_EACH_INSN_1): Likewise.
1786
1787 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1788
1789 PR target/60606
1790 PR target/61330
1791 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1792 DECL_HARD_REGISTER and return for invalid register specifications.
1793 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1794 DECL_HARD_REGISTER, call expand_one_error_var.
1795 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1796 CC_REGNUM with non-MODE_CC modes.
1797 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1798
1799 2014-08-26 Marek Polacek <polacek@redhat.com>
1800
1801 PR c/61271
1802 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1803
1804 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1805
1806 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1807 qi cost; add di cost.
1808 (cortexa57_addrcost_table): Likewise.
1809
1810 2014-08-26 Marek Polacek <polacek@redhat.com>
1811
1812 PR c/61271
1813 * expr.c (is_aligning_offset): Remove logical not.
1814
1815 2014-08-26 Marek Polacek <polacek@redhat.com>
1816
1817 PR c/61271
1818 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1819 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1820
1821 2014-08-26 Richard Biener <rguenther@suse.de>
1822
1823 PR tree-optimization/62175
1824 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1825 expand possibly trapping operations.
1826
1827 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1828
1829 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1830 "insn" from rtx to rtx_insn *.
1831 (permute_load): Likewise for param "insn".
1832 (permute_store): Likewise.
1833 (handle_special_swappables): Likewise for local "insn".
1834 (replace_swap_with_copy): Likewise for locals "insn" and
1835 "new_insn".
1836 (rs6000_analyze_swaps): Likewise for local "insn".
1837
1838 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1839
1840 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1841 to rtx_insn *.
1842
1843 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1844
1845 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1846 "note_list" from rtx to rtx_insn *.
1847 (BB_NOTE_LIST): Replace this function and...
1848 (SET_BB_NOTE_LIST): ...this function with...
1849 (BB_NOTE_LIST): ...the former macro implementation.
1850
1851 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1852 local "from_start" from rtx to rtx_insn *. Strengthen param
1853 "to_endp" from rtx * to rtx_insn **.
1854
1855 * haifa-sched.c (concat_note_lists): Likewise.
1856 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1857 BB_NOTE_LIST.
1858 (sel_restore_notes): Likewise.
1859 (move_bb_info): Likewise.
1860 (BB_NOTE_LIST): Delete this function.
1861 (SET_BB_NOTE_LIST): Delete this function.
1862 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1863 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1864
1865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1866
1867 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1868 from rtx * to rtx_insn **.
1869 (reorder2): Likewise.
1870 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1871 from rtx to rtx_insn *.
1872
1873 * doc/tm.texi: Update mechanically for above change to target.def.
1874
1875 * sched-int.h (note_list): Strengthen this variable from rtx to
1876 rtx_insn *.
1877 (remove_notes): Likewise for both params.
1878 (restore_other_notes): Likewise for return type and first param.
1879 (struct ready_list): Strengthen field "vec" from rtx * to
1880 rtx_insn **.
1881 (struct dep_replacement): Strenghten field "insn" from rtx to
1882 rtx_insn *.
1883 (struct deps_desc): Likewise for fields "last_debug_insn",
1884 "last_args_size".
1885 (struct haifa_sched_info): Likewise for callback field
1886 "can_schedule_ready_p"'s param, for first param of "new_ready"
1887 callback field, for both params of "rank" callback field, for
1888 first field of "print_insn" callback field (with a const), for
1889 both params of "contributes_to_priority" callback, for param
1890 of "insn_finishes_block_p" callback, for fields "prev_head",
1891 "next_tail", "head", "tail", for first param of "add_remove_insn"
1892 callback, for first param of "begin_schedule_ready" callback, for
1893 both params of "begin_move_insn" callback, and for second param
1894 of "advance_target_bb" callback.
1895 (add_dependence): Likewise for params 1 and 2.
1896 (sched_analyze): Likewise for params 2 and 3.
1897 (deps_analyze_insn): Likewise for param 2.
1898 (ready_element): Likewise for return type.
1899 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1900 (try_ready): Strenghten param from rtx to rtx_insn *.
1901 (sched_emit_insn): Likewise for return type.
1902 (record_delay_slot_pair): Likewise for params 1 and 2.
1903 (add_delay_dependencies): Likewise for param.
1904 (contributes_to_priority): Likewise for both params.
1905 (find_modifiable_mems): Likewise.
1906
1907 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1908 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1909 "first_older_only_insn" from rtx to rtx_insn *.
1910 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1911 rtx_insn **.
1912
1913 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1914 "last_scheduled_iter0" from rtx to rtx_insn *.
1915 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1916 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1917 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1918 "insn" from rtx to rtx_insn *.
1919 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1920 rtx_insn **.
1921 (c6x_sched_reorder2): Strengthen param "ready" and locals
1922 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1923 "insn" from rtx to rtx_insn *.
1924 (c6x_variable_issue): Add a checked cast when assigning from insn
1925 to ss.last_scheduled_iter0.
1926 (split_delayed_branch): Strengthen param "insn" and local "i1"
1927 from rtx to rtx_insn *.
1928 (split_delayed_nonbranch): Likewise.
1929 (undo_split_delayed_nonbranch): Likewise for local "insn".
1930 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1931 "entry_after", "end_packet", "head_insn", "tail_insn",
1932 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1933 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1934 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1935 but add a checked cast on loop->start_label. Consolidate calls to
1936 avoid assigning result of gen_spkernel to "insn", now an
1937 rtx_insn *.
1938
1939 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1940 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1941 rtx to rtx_insn *.
1942 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1943 rtx_insn **. Strengthen locals "top", "next" from rtx to
1944 rtx_insn *.
1945 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1946 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1947 (add_parameter_dependencies): Strengthen params "call", "head" and
1948 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1949 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1950 (add_dependee_for_func_arg): Likewise for param "arg" and local
1951 "insn".
1952 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1953 "tail" and locals "insn", "first_arg".
1954
1955 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1956 for params "head", "tail" and locals "insn", "next", "next_tail".
1957 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1958 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1959 "insn", "lowest", "highest" from rtx to rtx_insn *.
1960 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1961 rtx_insn **.
1962 (ia64_sched_reorder2): Likewise.
1963
1964 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1965 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1966 from rtx * to rtx_insn **.
1967 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1968 rtx_insn **.
1969 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1970 rtx_insn *.
1971 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1972 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1973 to rtx_insn *.
1974
1975 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1976 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1977 to rtx_insn *.
1978 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1979 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1980 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1981 rtx_insn **.
1982 (vr4130_reorder): Likewise.
1983 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1984 rtx to rtx_insn *.
1985 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1986 rtx_insn **.
1987 (mips_sched_reorder): Likewise.
1988 (mips_sched_reorder2): Likewise.
1989
1990 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1991
1992 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1993 Strengthen local "tmp" from rtx to rtx_insn *.
1994 (rs6000_sched_reorder2): Likewise.
1995
1996 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1997 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1998 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1999 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
2000
2001 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
2002 "tmp2" from rtx to rtx_insn *.
2003 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
2004 Strengthen local "insn" from rtx to rtx_insn *.
2005 (ready_reorder): Strengthen param "ready" from rtx * to
2006 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
2007 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
2008 (sh_reorder2): Likewise.
2009
2010 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
2011 local "insn" from rtx to rtx_insn *.
2012
2013 * haifa-sched.c (note_list): Strengthen this variable from rtx to
2014 rtx_insn *.
2015 (scheduled_insns): Strengthen this variable from vec<rtx> to
2016 vec<rtx_insn *>.
2017 (set_modulo_params): Likewise for locals "i1", "i2".
2018 (record_delay_slot_pair): Likewise for params "i1", "i2".
2019 (add_delay_dependencies): Likewise for param "insn".
2020 (cond_clobbered_p): Likewise.
2021 (recompute_todo_spec): Likewise for local "prev".
2022 (last_scheduled_insn): Likewise for this variable.
2023 (nonscheduled_insns_begin): Likewise.
2024 (model_set_excess_costs): Strengthen param "insns" from rtx * to
2025 rtx_insn **.
2026 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
2027 rtx_insn *.
2028 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
2029 Strengthen local "insn" from rtx to rtx_insn *.
2030 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
2031 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2032 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
2033 (ready_remove_first): Likewise for return type and local "t".
2034 (ready_element): Likewise for return type.
2035 (ready_remove): Likewise for return type and local "t".
2036 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
2037 (check_clobbered_conditions): Strengthen local "x" from rtx to
2038 rtx_insn *, adding a checked cast.
2039 (schedule_insn): Likewise for param "insn".
2040 (remove_notes): Likewise for params "head", "tail" and locals
2041 "next_tail", "insn", "next".
2042 (struct haifa_saved_data): Likewise for fields
2043 "last_scheduled_insn", "nonscheduled_insns_begin".
2044 (save_backtrack_point): Update for change to field "vec" of
2045 struct ready_list.
2046 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
2047 rtx_insn **.
2048 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
2049 from rtx to rtx_insn *
2050 (resolve_dependencies): Strengthen param "insn" from rtx to
2051 rtx_insn *
2052 (restore_other_notes): Likewise for return type, for param "head"
2053 and local "note_head".
2054 (undo_all_replacements): Likewise for local "insn".
2055 (first_nonscheduled_insn): Likewise for return type and local "insn".
2056 (queue_to_ready): Likewise for local "insn", adding checked casts.
2057 (early_queue_to_ready): Likewise for local "insn".
2058 (debug_ready_list_1): Strengthen local "p" from rtx * to
2059 rtx_insn **.
2060 (move_insn): Strengthen param "insn" and local "note" from rtx to
2061 rtx_insn *
2062 (insn_finishes_cycle_p): Likewise for param "insn".
2063 (max_issue): Likewise for local "insn".
2064 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
2065 to rtx_insn **.
2066 (commit_schedule): Strengthen param "prev_head" and local "insn"
2067 from rtx to rtx_insn *
2068 (prune_ready_list): Likewise for local "insn".
2069 (schedule_block): Likewise for locals "prev_head", "head", "tail",
2070 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
2071 (set_priorities): Likewise for local "prev_head".
2072 (try_ready): Likewise for param "next".
2073 (fix_tick_ready): Likewise.
2074 (change_queue_index): Likewise.
2075 (sched_extend_ready_list): Update for change to field "vec" of
2076 struct ready_list.
2077 (generate_recovery_code): Strengthen param "insn" from rtx to
2078 rtx_insn *.
2079 (begin_speculative_block): Likewise.
2080 (create_check_block_twin): Likewise for param "insn" and locals
2081 "label", "check", "twin". Introduce local "check_pat" to avoid
2082 "check" being used as a plain rtx before being used as an insn.
2083 (fix_recovery_deps): Add a checked cast to rtx_insn * when
2084 extracting elements from ready_list.
2085 (sched_remove_insn): Strengthen param "insn" from rtx to
2086 rtx_insn *.
2087 (sched_emit_insn): Likewise for return type.
2088 (ready_remove_first_dispatch): Likewise for return type and local
2089 "insn".
2090
2091 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
2092
2093 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
2094 const rtx_insn *.
2095
2096 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
2097 from rtx to rtx_insn *.
2098 (add_dependence_list): Likewise for param "insn". Add a checked
2099 cast.
2100 (add_dependence_list_and_free): Strengthen param "insn" from rtx
2101 to rtx_insn *. Strengthen param "list_p" from rtx * to
2102 rtx_insn **.
2103 (chain_to_prev_insn): Strengthen param "insn" and locals
2104 "prec_nonnote", "i" from rtx to rtx_insn *.
2105 (flush_pending_lists): Likewise for param "insn".
2106 (cur_insn): Likewise for this variable.
2107 (haifa_start_insn): Add a checked cast.
2108 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
2109 (sched_analyze_reg): Likewise for param "insn".
2110 (sched_analyze_1): Likewise.
2111 (sched_analyze_2): Likewise. Add checked casts.
2112 (sched_analyze_insn): Likewise. Also for local "prev".
2113 (deps_analyze_insn): Likewise for param "insn".
2114 (sched_analyze): Likewise for params "head", "tail" and local "insn".
2115 (add_dependence_1): Likewise for params "insn", "elem".
2116 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
2117 (parse_add_or_inc): Likewise for param "insn".
2118 (find_inc): Likewise for local "inc_cand".
2119 (find_modifiable_mems): Likewise for params "head", "tail" and
2120 locals "insn", "next_tail".
2121
2122 * sched-ebb.c (init_ready_list): Likewise for local "insn".
2123 (begin_schedule_ready): Likewise for param "insn".
2124 (begin_move_insn): Likewise for params "insn" and "last".
2125 (ebb_print_insn): Strengthen param "insn" from const_rtx to
2126 const rtx_insn *.
2127 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
2128 (ebb_contributes_to_priority): Likewise for params "next", "insn".
2129 (ebb_add_remove_insn): Likewise for param "insn".
2130 (advance_target_bb): Likewise.
2131
2132 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
2133 "insn".
2134 (check_live): Likewise for param "insn".
2135 (init_ready_list): Likewise for local "insn".
2136 (can_schedule_ready_p): Likewise for param "insn".
2137 (begin_schedule_ready): Likewise.
2138 (new_ready): Likewise for param "next".
2139 (rgn_print_insn): Likewise for param "insn".
2140 (rgn_rank): Likewise for params "insn1", "insn2".
2141 (contributes_to_priority): Likewise for params "next", "insn".
2142 (rgn_insn_finishes_block_p): Likewise for param "insn".
2143 (add_branch_dependences): Likewise for params "head", "tail" and
2144 locals "insn", "last".
2145 (rgn_add_remove_insn): Likewise for param "insn".
2146 (advance_target_bb): Likewise.
2147
2148 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
2149 const_rtx to const rtx_insn *.
2150
2151 * sel-sched-dump.h (sel_print_insn): Likewise.
2152
2153 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
2154 (deps_init_id): Likewise.
2155
2156 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
2157 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
2158 rtx_insn **.
2159
2160 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2161
2162 * output.h (final_start_function): Strengthen param 1 from rtx to
2163 rtx_insn *.
2164
2165 * final.c (final_start_function): Likewise, renaming back from
2166 "uncast_first" to "first", and dropping the checked cast from rtx
2167 to rtx_insn *.
2168
2169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2170
2171 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
2172 * final.c (final): Likewise. Rename param back from
2173 "uncast_first" to "first" and eliminate the checked cast from rtx
2174 to rtx_insn *.
2175
2176 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2177
2178 * output.h (shorten_branches): Strengthen param from rtx to
2179 rtx_insn *.
2180
2181 * final.c (shorten_branches): Likewise, renaming param back from
2182 "uncast_first" to "first", and dropping the checked cast from rtx
2183 to rtx_insn *.
2184
2185 * genattr.c (gen_attr): Likewise when writing out the prototype of
2186 shorten_branches.
2187
2188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2189
2190 * sched-int.h (struct haifa_sched_info): Strengthen fields
2191 "prev_head" and "next_tail" from rtx to rtx_insn *.
2192
2193 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2194
2195 * rtl.h (rtx_jump_table_data::get_labels): New method.
2196 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
2197 with use of the new rtx_jump_table_data::get_labels method.
2198 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2199 to rtx_jump_table_data *. Simplify by using get_labels method.
2200 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2201 a dyn_cast, introducing local "table", using it to replace
2202 label-lookup logic with a get_labels method call.
2203 (patch_jump_insn): Simplify using get_labels method.
2204 * dwarf2cfi.c (create_trace_edges): Likewise.
2205 * rtlanal.c (label_is_jump_target_p): Likewise.
2206
2207 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2208
2209 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2210 to rtx_insn *.
2211
2212 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2213 (unshare_all_rtl_again): Likewise, also for local "p".
2214
2215 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2216
2217 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2218 to rtx_insn *.
2219 * cfgrtl.c (delete_insn_and_edges): Likewise.
2220
2221 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2222
2223 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2224 from rtx to rtx_insn *.
2225
2226 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2227
2228 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2229
2230 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2231 locals "returnjump", "epilogue_end", "insn", "next".
2232
2233 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2234 "returnjump" from rtx * to rtx_insn **.
2235 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2236
2237 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2238
2239 * basic-block.h (struct edge_def). Strengthen "r" within
2240 union edge_def_insns from rtx to rtx_insn *.
2241
2242 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2243 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2244 rtx_insn *.
2245 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2246 from rtx to rtx_insn *.
2247 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2248 rtx_insn *.
2249 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2250 (reg_used_on_edge): Likewise.
2251 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2252 (gt_pch_nx): New overload for rtx_insn *&.
2253 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2254 from rtx to rtx_insn *.
2255
2256 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2257
2258 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2259 from rtx to rtx_insn *.
2260 (BB_FOOTER): Replace function with access macro.
2261 (SET_BB_FOOTER): Delete.
2262
2263 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2264 with BB_FOOTER.
2265 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2266 (emit_barrier_after_bb): Likewise.
2267 (record_effective_endpoints): Likewise.
2268 (relink_block_chain): Likewise.
2269 (fixup_fallthru_exit_predecessor): Likewise.
2270 (cfg_layout_duplicate_bb): Likewise.
2271 (cfg_layout_split_block): Likewise.
2272 (cfg_layout_delete_block): Likewise.
2273 (cfg_layout_merge_blocks): Likewise.
2274 (BB_FOOTER): Delete function.
2275 (SET_BB_FOOTER): Delete function.
2276 * combine.c (update_cfg_for_uncondjump): Replace uses of
2277 SET_BB_FOOTER with BB_FOOTER.
2278
2279 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2280
2281 * except.h (struct eh_landing_pad_d): Strengthen field
2282 "landing_pad" from rtx to rtx_code_label *.
2283
2284 * except.c (sjlj_emit_dispatch_table): Likewise for param
2285 "dispatch_label"
2286 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2287
2288 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2289
2290 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2291 first param from rtx to rtx_insn *.
2292 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2293 field "set_frame_ptr_insn".
2294 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2295 "csend" from rtx to rtx_code_label *.
2296 (xtensa_expand_atomic): Likewise for local "csloop".
2297 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2298 rtx_insn *.
2299 (xtensa_call_tls_desc): Likewise for return type and locals
2300 "call_insn", "insns".
2301 (xtensa_legitimize_tls_address): Likewise for local "insns".
2302 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2303
2304 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2305
2306 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2307 first param from rtx to rtx_insn *.
2308 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2309 "insn".
2310
2311 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2312
2313 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2314 Strengthen param 1 from rtx to rtx_insn *.
2315 (tilepro_output_cbranch): Likewise.
2316 (tilepro_adjust_insn_length): Likewise.
2317 (tilepro_final_prescan_insn): Likewise for sole param.
2318
2319 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2320 Likewise for local "last".
2321 (cbranch_predicted_p): Likewise for param "insn".
2322 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2323 (tilepro_output_cbranch_with_opcode): Likewise.
2324 (tilepro_output_cbranch): Likewise.
2325 (frame_emit_load): Likewise for return type and locals "seq",
2326 "insn".
2327 (emit_sp_adjust): Likewise for return type and local "insn".
2328 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2329 "insn".
2330 (tilepro_adjust_insn_length): Likewise for param "insn".
2331 (next_insn_to_bundle): Likewise for return type and params
2332 "r", "end".
2333 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2334 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2335 local "new_insns".
2336 (match_addli_pcrel): Likewise for param "insn".
2337 (replace_addli_pcrel): Likewise.
2338 (match_auli_pcrel): Likewise.
2339 (replace_auli_pcrel): Likewise.
2340 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2341 "next_insn".
2342 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2343 "queue", "next_queue", "prev".
2344 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2345 (tilepro_final_prescan_insn): Likewise for param "insn".
2346
2347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2348
2349 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2350 Strengthen param 1 from rtx to rtx_insn *.
2351 (tilegx_output_cbranch): Likewise.
2352 (tilegx_adjust_insn_length): Likewise.
2353 (tilegx_final_prescan_insn): Likewise for sole param.
2354
2355 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2356 or local "last".
2357 (cbranch_predicted_p): Likewise for param "insn".
2358 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2359 (tilegx_output_cbranch_with_opcode): Likewise.
2360 (tilegx_output_cbranch): Likewise.
2361 (frame_emit_load): Likewise for return type.
2362 (set_frame_related_p): Likewise for locals "seq", "insn".
2363 (emit_sp_adjust): Likewise for return type, and for local "insn".
2364 Introduce local "pat" for use in place of "insn" where the latter
2365 isn't an instruction.
2366 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2367 from rtx to rtx_insn *.
2368 (tilegx_adjust_insn_length): Likewise for param "insn".
2369 (next_insn_to_bundle): Likewise for return type and params "r" and
2370 "end".
2371 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2372 "end".
2373 (replace_insns): Likewise for params "old_insn", "new_insns".
2374 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2375 "new_insns".
2376 (replace_mov_pcrel_step2): Likewise.
2377 (replace_mov_pcrel_step3): Likewise.
2378 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2379 "next_insn".
2380 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2381 "queue", "next_queue", "prev".
2382 (tilegx_output_mi_thunk): Likewise for local "insn".
2383 (tilegx_final_prescan_insn): Likewise for param "insn".
2384
2385 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2386
2387 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2388 rtx to rtx_insn *.
2389 (frame_emit_load): Likewise.
2390 (frame_emit_add_imm): Likewise, also for local "insn".
2391 (spu_expand_prologue): Likewise for local "insn".
2392 (struct spu_bb_info): Likewise for field "prop_jump".
2393 (emit_nop_for_insn): Likewise for param "insn" and local
2394 "new_insn".
2395 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2396 "hbr_insn".
2397 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2398 locals "hint", "insn".
2399 (get_branch_target): Likewise for param "branch".
2400 (insn_clobbers_hbr): Likewise for param "insn".
2401 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2402 locals "insn", "before_4", "before_16".
2403 (insert_hbrp): Likewise for local "insn".
2404 (spu_machine_dependent_reorg): Likewise for locals "branch",
2405 "insn", "next", "bbend".
2406 (uses_ls_unit): Likewise for param "insn".
2407 (get_pipe): Likewise.
2408 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2409 introducing a checked cast.
2410 (spu_sched_adjust_cost): Likewise for params "insn" and
2411 "dep_insn".
2412 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2413 (spu_sms_res_mii): Likewise.
2414
2415 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2416
2417 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2418 from rtx to rtx_insn *.
2419 (output_cbranch): Likewise for param 6.
2420 (output_return): Likewise for param 1.
2421 (output_sibcall): Likewise.
2422 (output_v8plus_shift): Likewise.
2423 (output_v8plus_mult): Likewise.
2424 (output_v9branch): Likewise for param 7.
2425 (output_cbcond): Likewise for param 3.
2426
2427 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2428 for local "insn".
2429 (sparc_legitimize_pic_address): Likewise.
2430 (sparc_emit_call_insn): Likewise.
2431 (emit_save_or_restore_regs): Likewise.
2432 (emit_window_save): Likewise for return type and local "insn".
2433 (sparc_expand_prologue): Likewise for local "insn".
2434 (sparc_flat_expand_prologue): Likewise.
2435 (output_return): Likewise for param "insn".
2436 (output_sibcall): Likewise for param "insn" and local "delay".
2437 (output_ubranch): Likewise for param "insn".
2438 (output_cbranch): Likewise.
2439 (output_cbcond): Likewise.
2440 (output_v9branch): Likewise.
2441 (output_v8plus_shift): Likewise.
2442 (sparc_output_mi_thunk): Likewise for local "insn".
2443 (get_some_local_dynamic_name): Likewise.
2444 (output_v8plus_mult): Likewise for param "insn".
2445
2446 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2447
2448 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2449 from rtx to rtx_insn *.
2450 (output_branchy_insn): Likewise for param 3.
2451 (output_far_jump): Likewise for param 1.
2452 (final_prescan_insn): Likewise.
2453 (sh_insn_length_adjustment): Likewise for sole param.
2454
2455 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2456 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2457 rtx_code_label *.
2458 (sh_emit_compare_and_set): Likewise for local "lab".
2459 (output_far_jump): Strengthen param "insn" and local "prev" from
2460 rtx to rtx_insn *.
2461 (output_branchy_insn): Likewise for param "insn" and local
2462 "next_insn".
2463 (output_ieee_ccmpeq): Likewise for param "insn".
2464 (struct label_ref_list_d): Strengthen field "label" from rtx to
2465 rtx_code_label *.
2466 (pool_node): Likewise.
2467 (pool_window_label): Likewise for this global.
2468 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2469 (dump_table): Strengthen params "start", "barrier" and local
2470 "scan" from rtx to rtx_insn *.
2471 (broken_move): Likewise for param "insn".
2472 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2473 Strengthen param "first_mova" from rtx * to rtx_insn **.
2474 (mova_p): Likewise for param "insn".
2475 (fixup_mova): Likewise for param "mova".
2476 (find_barrier): Likewise for return type, params "mova" and
2477 "from", and locals "barrier_before_mova", "found_barrier",
2478 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2479 "label" from rtx to rtx_code_label *.
2480 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2481 rtx to rtx_insn *.
2482 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2483 (split_branches): Likewise for param "first" and local "insn".
2484 (final_prescan_insn): Likewise for param "insn".
2485 (sequence_insn_p): Likewise for locals "prev", "next".
2486 (sh_insn_length_adjustment): Likewise for param "insn".
2487 (sh_can_redirect_branch): Likewise for local "insn".
2488 (find_r0_life_regions): Likewise for locals "end", "insn".
2489 (sh_output_mi_thunk): Likewise for local "insns".
2490
2491 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2492
2493 * config/score/score.c (score_output_mi_thunk): Strengthen local
2494 "insn" from rtx to rtx_insn *.
2495 (score_prologue): Likewise.
2496
2497 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2498
2499 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2500 1 from rtx to rtx_insn *.
2501 (s390_emit_jump): Likewise for return type.
2502 (s390_emit_call): Likewise.
2503 (s390_load_got): Likewise.
2504
2505 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2506 variable.
2507 (s390_match_ccmode): Likewise for param "insn".
2508 (s390_emit_jump): Likewise for return type.
2509 (s390_split_branches): Likewise for local "label".
2510 (struct constant): Strengthen field "label" from rtx to
2511 rtx_code_label *.
2512 (struct constant_pool): Likewise for field "label". Strengthen
2513 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2514 rtx_insn *.
2515 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2516 insns.
2517 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2518 (s390_end_pool): Likewise.
2519 (s390_dump_pool): Likewise for local "insn".
2520 (s390_mainpool_start): Likewise.
2521 (s390_chunkify_start): Likewise.
2522 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2523 with insns. Strengthen locals "label", "jump", "barrier", "next",
2524 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2525 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2526 rtx_insn *.
2527 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2528 "jump", "label", "next_insn".
2529 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2530 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2531 "tbegin_insn".
2532 (s390_load_got): Likewise for return type and local "insns".
2533 (s390_save_gprs_to_fprs): Likewise for local "insn".
2534 (s390_restore_gprs_from_fprs): Likewise.
2535 (pass_s390_early_mach::execute): Likewise.
2536 (s390_emit_prologue): Likewise for local "insns".
2537 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2538 rtx_code_label *.
2539 (s390_emit_call): Strengthen return type and local "insn" from
2540 rtx to rtx_insn *.
2541 (s390_emit_tpf_eh_return): Likewise for local "insn".
2542 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2543 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2544 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2545 local "cur_insn".
2546 (s390_non_addr_reg_read_p): Likewise for param "insn".
2547 (find_cond_jump): Likewise for return type and param "insn".
2548 (s390_swap_cmp): Likewise for param "insn".
2549 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2550 "prev_insn", "next_insn".
2551 (s390_reorg): Likewise for locals "insn", "target".
2552 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2553 (s390_sched_variable_issue): For now, rename param "insn" to
2554 "uncast_insn", introducing a checked cast.
2555 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2556 insn.
2557 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2558 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2559
2560 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2561
2562 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2563 param from rtx to rtx_insn *.
2564 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2565
2566 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2567
2568 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2569 4 from rtx to rtx_insn *.
2570 (rs6000_final_prescan_insn): Likewise for first param.
2571 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2572 local "insn".
2573 (rs6000_get_some_local_dynamic_name): Likewise.
2574 (output_cbranch): Likewise for param "insn".
2575 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2576 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2577 (rs6000_emit_allocate_stack): Likewise for local "insn".
2578 (load_cr_save): Likewise.
2579 (restore_saved_cr): Likewise.
2580 (restore_saved_lr): Likewise.
2581 (emit_cfa_restores): Likewise.
2582 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2583 "deleted_debug_label".
2584 (rs6000_output_mi_thunk): Likewise for local "insn".
2585 (rs6000_final_prescan_insn): Likewise for param "insn".
2586
2587 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2588
2589 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2590 Strengthen param "insn" from rtx to rtx_insn *.
2591 * config/picochip/picochip.c (picochip_current_prescan_insn):
2592 Likewise for this variable.
2593 (picochip_final_prescan_insn): Likewise for param "insn".
2594
2595 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2596
2597 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2598 from rtx to rtx_insn *.
2599 (pa_output_indirect_call): Likewise.
2600 (pa_adjust_insn_length): Likewise.
2601 (pa_attr_length_millicode_call): Likewise.
2602 (pa_attr_length_call): Likewise.
2603 (pa_attr_length_indirect_call): Likewise.
2604
2605 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2606 "insn".
2607 (pa_attr_length_millicode_call): Likewise.
2608 (pa_attr_length_call): Likewise.
2609 (pa_output_call): Likewise.
2610 (pa_attr_length_indirect_call): Likewise.
2611 (pa_output_indirect_call): Likewise.
2612
2613 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2614
2615 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2616 Strengthen first param from rtx to rtx_insn *.
2617 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2618 param "insn".
2619
2620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2621
2622 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2623 type from rtx to rtx_insn *.
2624 (mips_expand_call): Likewise.
2625 (mips_adjust_insn_length): Likewise for first param.
2626 (mips_output_conditional_branch): Likewise.
2627 (mips_output_order_conditional_branch): Likewise.
2628 (mips_final_prescan_insn): Likewise.
2629
2630 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2631 rtx_insn * for the SEQUENCE case.
2632 (SEQ_END): Likewise.
2633 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2634 (mips_emit_call_insn): Likewise, also for local "insn".
2635 (mips16_gp_pseudo_reg): Likewise for local "scan".
2636 (mips16_build_call_stub): Likewise for return type and for local
2637 "insn". Introduce a new local "pattern" so that "insn" can indeed
2638 be an insn.
2639 (mips_expand_call): Strengthen return type and local "insn" from
2640 rtx to rtx_insn *.
2641 (mips_block_move_loop): Strengthen local "label" from rtx to
2642 rtx_code_label *.
2643 (mips_expand_synci_loop): Likewise for locals "label",
2644 "end_label".
2645 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2646 rtx_insn *.
2647 (mips16e_collect_argument_saves): Likewise for locals "insn",
2648 "next".
2649 (mips_find_gp_ref): Likewise for param of callback for "pred"
2650 param, and for local "insn".
2651 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2652 (mips_insn_has_flexible_gp_ref_p): Likewise.
2653 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2654 local "insn".
2655 (mips_epilogue_set_cfa): Likewise for local "insn".
2656 (mips_expand_epilogue): Likewise.
2657 (mips_adjust_insn_length): Likewise for param "insn".
2658 (mips_output_conditional_branch): Likewise.
2659 (mips_output_order_conditional_branch): Likewise.
2660 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2661 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2662 "falu2_turn_enabled_insn".
2663 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2664 "done_label" from rtx to rtx_code_label *.
2665 (struct mips16_constant): Likewise for field "label".
2666 (mips16_add_constant): Likewise for return type.
2667 (mips16_emit_constants_1): Strengthen return type and param "insn"
2668 from rtx to rtx_insn *.
2669 (mips16_emit_constants): Likewise for param "insn".
2670 (mips16_insn_length): Likewise.
2671 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2672 to rtx_code_label *.
2673 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2674 from rtx to rtx_insn *.
2675 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2676 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2677 (r10k_simplify_address): Strengthen param "insn" and local
2678 "def_insn" from rtx to rtx_insn *.
2679 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2680 rtx_insn *.
2681 (r10k_needs_protection_p_1): Update target type of cast of data
2682 from to rtx to rtx_insn *.
2683 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2684 rtx * to rtx_insn **.
2685 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2686 rtx_insn *.
2687 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2688 (mips_call_expr_from_insn): Likewise for param "insn".
2689 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2690 (mips_find_pic_call_symbol): Likewise for param "insn".
2691 (mips_annotate_pic_calls): Likewise for local "insn".
2692 (mips_sim_insn): Likewise for this variable.
2693 (struct mips_sim): Likewise for field "insn" within elements of
2694 last_set array.
2695 (mips_sim_wait_reg): Likewise for param "insn".
2696 (mips_sim_wait_regs): Likewise.
2697 (mips_sim_wait_units): Likewise.
2698 (mips_sim_wait_insn): Likewise.
2699 (mips_sim_issue_insn): Likewise.
2700 (mips_sim_finish_insn): Likewise.
2701 (mips_seq_time): Likewise for param "seq" and local "insn".
2702 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2703 locals "first", "second".
2704 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2705 "last", "last2", "next".
2706 (mips_avoid_hazard): Likewise for params "after", "insn".
2707 (mips_reorg_process_insns): Likewise for locals "insn",
2708 "last_insn", "subinsn", "next_insn".
2709 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2710 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2711 "jump_sequence".
2712 (mips_output_mi_thunk): Likewise for local "insn".
2713 (mips_final_prescan_insn): Likewise for param "insn".
2714
2715 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2716
2717 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2718 Strengthen return type and local "insns" from rtx to rtx_insn *.
2719 (microblaze_legitimize_tls_address): Likewise for local "insns".
2720 (microblaze_block_move_loop): Strengthen local "label" from rtx
2721 to rtx_code_label *.
2722 (microblaze_expand_prologue): Strengthen two locals named "insn"
2723 from rtx to rtx_insn *.
2724 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2725 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2726 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2727 to rtx_code_label *.
2728
2729 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2730
2731 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2732 param from rtx to rtx_insn *.
2733 (mep_reuse_lo): Likewise for third param.
2734 (mep_use_post_modify_p): Likewise for first param.
2735 (mep_core_address_length): Likewise.
2736 (mep_cop_address_length): Likewise.
2737 (mep_final_prescan_insn): Likewise.
2738 (mep_store_data_bypass_p): Likewise for both params.
2739 (mep_mul_hilo_bypass_p): Likewise.
2740 (mep_ipipe_ldc_p): Likewise for param.
2741
2742 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2743 (mep_rewrite_mult): Likewise.
2744 (mep_rewrite_mulsi3): Likewise.
2745 (mep_rewrite_maddsi3): Likewise.
2746 (mep_reuse_lo_p_1): Likewise.
2747 (mep_reuse_lo_p): Likewise.
2748 (mep_frame_expr): Likewise.
2749 (mep_make_parallel): Likewise for both params.
2750 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2751 local "insn".
2752 (mep_use_post_modify_p): Likewise for param "insn".
2753 (mep_core_address_length): Likewise.
2754 (mep_cop_address_length): Likewise.
2755 (mep_reg_set_in_function): Likewise for local "insn".
2756 (mep_asm_without_operands_p): Likewise.
2757 (F): Likewise for return type and param "x".
2758 (add_constant): Likewise for local "insn".
2759 (maybe_dead_move): Likewise for return type and local "insn".
2760 (mep_expand_prologue): Likewise for local "insn".
2761 (mep_final_prescan_insn): Likewise for param "insn".
2762 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2763 "next", "follow", "x".
2764 (mep_insert_repeat_label_last): Likewise for return type, param
2765 "last_insn", and locals "next", "prev". Strengthen param "label"
2766 from rtx to rtx_code_label *.
2767 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2768 rtx_insn *.
2769 (struct mep_doloop_end): Likewise for fields "insn" and
2770 "fallthrough".
2771 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2772 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2773 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2774 rtx_insn *.
2775 (mep_invert_branch): Likewise for params "insn" and "after".
2776 (mep_reorg_erepeat): Likewise for param "insns" and locals
2777 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2778 "l" from rtx to rtx_code_label *.
2779 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2780 from rtx to rtx_insn *.
2781 (mep_reorg_addcombine): Likewise for param "insns" and locals
2782 "i", "n".
2783 (add_sp_insn_p): Likewise for param "insn".
2784 (mep_reorg_noframe): Likewise for param "insns" and locals
2785 "start_frame_insn", "end_frame_insn", "next".
2786 (mep_reorg): Likewise for local "insns".
2787 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2788 cast.
2789 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2790 (mep_mul_hilo_bypass_p): Likewise.
2791 (mep_ipipe_ldc_p): Likewise for param "insn".
2792 (mep_make_bundle): Likewise for return type, param "cop" and local
2793 "insn", splitting out the latter into a new local "seq" for when it
2794 is a SEQUENCE rather than an insn.
2795 (core_insn_p): Likewise for param "insn".
2796 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2797 "last", "first", "note", "prev", "core_insn".
2798
2799 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2800
2801 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2802 rtx to rtx_insn *.
2803 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2804 (m68k_final_prescan_insn): Likewise for first param.
2805
2806 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2807 (m68k_set_frame_related): Likewise for param "insn".
2808 (output_btst): Likewise for param "insn".
2809 (m68k_final_prescan_insn): Likewise.
2810 (m68k_move_to_reg): Likewise for local "insn".
2811 (m68k_call_tls_get_addr): Likewise for local "insns".
2812 (m68k_call_m68k_read_tp): Likewise.
2813 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2814 (m68k_output_mi_thunk): Likewise for local "insn".
2815
2816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2817
2818 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2819 first param from rtx to rtx_insn *.
2820 (iq2000_adjust_insn_length): Likewise.
2821 (iq2000_output_conditional_branch): Likewise.
2822 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2823 "insn" and local "nop_insn".
2824 (iq2000_annotate_frame_insn): Likewise for param "insn".
2825 (iq2000_expand_prologue): Likewise for both locals "insn".
2826 (iq2000_adjust_insn_length): Likewise for param "insn".
2827 (iq2000_output_conditional_branch): Likewise.
2828
2829 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2830
2831 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2832 "insns" from rtx to rtx_insn *.
2833 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2834 (struct spill_fill_data): Likewise for field "init_after" and for
2835 elements of array field "prev_insn".
2836 (spill_restore_mem): Likewise for locals "insn", "first".
2837 (do_spill): Likewise for local "insn".
2838 (do_restore): Likewise.
2839 (ia64_expand_prologue): Likewise.
2840 (ia64_expand_epilogue): Likewise.
2841 (emit_insn_group_barriers): Likewise for locals "insn",
2842 "last_label".
2843 (emit_all_insn_group_barriers): Likewise for locals "insn",
2844 "last".
2845 (dfa_stop_insn): Likewise for this global.
2846 (dfa_pre_cycle_insn): Likewise.
2847 (ia64_nop): Likewise.
2848 (final_emit_insn_group_barriers): Likewise for locals "insn",
2849 "last".
2850 (emit_predicate_relation_info): Likewise for locals "head", "n",
2851 "insn", "b", "a".
2852 (ia64_reorg): Likewise for local "insn".
2853 (ia64_output_mi_thunk): Likewise.
2854 (expand_vec_perm_interleave_2): Likewise for local "seq".
2855
2856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2857
2858 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2859 param 1 "insn" from rtx to rtx_insn *.
2860 (ix86_use_lea_for_mov): Likewise.
2861 (ix86_avoid_lea_for_addr): Likewise.
2862 (ix86_split_lea_for_addr): Likewise.
2863 (ix86_lea_for_add_ok): Likewise.
2864 (ix86_output_call_insn): Likewise.
2865
2866 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2867 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2868 (ix86_output_function_epilogue): Likewise for locals "insn",
2869 "deleted_debug_label".
2870 (legitimize_tls_address): Likewise for local "insn".
2871 (get_some_local_dynamic_name): Likewise.
2872 (increase_distance): Likewise for params "prev", "next".
2873 (distance_non_agu_define_in_bb): Likewise for params "insn",
2874 "start" and locals "prev", "next".
2875 (distance_non_agu_define): Likewise for param "insn".
2876 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2877 locals "next", "prev".
2878 (distance_agu_use): Likewise for param "insn".
2879 (ix86_lea_outperforms): Likewise.
2880 (ix86_ok_to_clobber_flags): Likewise.
2881 (ix86_avoid_lea_for_add): Likewise.
2882 (ix86_use_lea_for_mov): Likewise.
2883 (ix86_avoid_lea_for_addr): Likewise.
2884 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2885 (ix86_split_lea_for_addr): Likewise for param "insn".
2886 (ix86_lea_for_add_ok): Likewise for param "insn".
2887 (ix86_expand_carry_flag_compare): Likewise for local
2888 "compare_seq".
2889 (ix86_expand_int_movcc): Likewise.
2890 (ix86_output_call_insn): Likewise for param "insn".
2891 (ix86_output_call_insn): Likewise for local "i".
2892 (x86_output_mi_thunk): Introduce local "insn", using it in place
2893 of "tmp" when dealing with insns.
2894 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2895 "start".
2896 (ix86_pad_returns): Likewise for locals "ret", "prev".
2897 (ix86_count_insn_bb): Likewise for local "insn".
2898 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2899 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2900 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2901 (expand_vec_perm_interleave2): Likewise for local "seq".
2902 (expand_vec_perm_vperm2f128_vblend): Likewise.
2903 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2904 call to for_each_rtx with for_each_rtx_in_insn.
2905
2906 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2907
2908 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2909 "label" from rtx to rtx_code_label *.
2910 (ix86_expand_prologue): Likewise.
2911 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2912 "varargs_label".
2913 (ix86_split_idivmod): Likewise for locals "end_label" and
2914 "qimode_label".
2915 (ix86_expand_branch): Likewise for local "label2".
2916 (ix86_expand_aligntest): Likewise for return type and local "label".
2917 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2918 "top_label".
2919 (expand_movmem_epilogue): Likewise for the various locals named
2920 "label".
2921 (expand_setmem_epilogue): Likewise.
2922 (expand_small_movmem_or_setmem): Likewise for local "label".
2923 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2924 Strengthen param "done_label" from rtx * to rtx_code_label **.
2925 Strengthen locals "loop_label" and "label" from rtx to
2926 rtx_code_label *.
2927 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2928 Likewise for locals "loop_label", "label".
2929 (ix86_expand_set_or_movmem): Likewise for locals "label",
2930 "jump_around_label", "hot_label".
2931 (ix86_expand_strlensi_unroll_1): Likewise for locals
2932 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2933 "end_2_label".
2934 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2935 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2936 "label2", "jump_label".
2937 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2938 local "label".
2939 (ix86_expand_lfloorceil): Likewise for local "label".
2940 (ix86_expand_rint): Likewise.
2941 (ix86_expand_floorceildf_32): Likewise.
2942 (ix86_expand_floorceil): Likewise.
2943 (ix86_expand_rounddf_32): Likewise.
2944 (ix86_expand_trunc): Likewise.
2945 (ix86_expand_truncdf_32): Likewise.
2946 (ix86_expand_round): Likewise.
2947
2948 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2949
2950 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2951 first param from rtx to rtx_insn *.
2952 (h8300_insn_length_from_table): Likewise.
2953 * config/h8300/h8300.c (F): Likewise for return type and param
2954 "x".
2955 (Fpa): Add a checked cast to rtx_insn *.
2956 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2957 rtx_insn *.
2958 (final_prescan_insn): Likewise for param "insn".
2959 (h8300_binary_length): Likewise.
2960 (h8300_insn_length_from_table): Likewise.
2961
2962 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2963
2964 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2965 Strengthen first param "insn" from rtx to rtx_insn *.
2966
2967 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2968 Likewise.
2969 (frame_insn): Likewise for return type. Introduce local "insn"
2970 for use in place of local "x" for use as an rtx_insn *.
2971 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2972 (epiphany_expand_prologue): Likewise for local "insn".
2973 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2974 * config/epiphany/resolve-sw-modes.c
2975 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2976 "seq".
2977
2978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2979
2980 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2981 param from rtx to rtx_insn *.
2982 (c6x_final_prescan_insn): Likewise for first param.
2983
2984 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2985 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2986 (c6x_expand_compare): Strengthen local "insns" from rtx to
2987 rtx_insn *.
2988 (c6x_get_unit_specifier): Likewise for param "insn".
2989 (c6x_print_unit_specifier_field): Likewise.
2990 (c6x_final_prescan_insn): Likewise.
2991 (emit_add_sp_const): Likewise for local "insn".
2992 (c6x_expand_prologue): Likewise.
2993
2994 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2995
2996 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2997 param 1 from rtx to rtx_insn *.
2998 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2999 the various locals named "insn".
3000 (expand_epilogue_reg_restore): Likewise.
3001 (frame_related_constant_load): Likewise.
3002 (add_to_reg): Likewise.
3003 (emit_link_insn): Likewise.
3004 (do_link): Likewise.
3005 (expand_interrupt_handler_prologue): Likewise.
3006 (branch_dest): Likewise for param "branch".
3007 (asm_conditional_branch): Likewise for param "insn".
3008 (gen_one_bundle): Likewise for elements of param "slot" and local
3009 "t".
3010 (bfin_gen_bundles): Likewise for locals "insn", "next" and
3011 elements of local "slot".
3012 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3013 "queue", "next_queue", "prev".
3014 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
3015 (add_sched_insns_for_speculation): Likewise for local "insn".
3016
3017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3018
3019 * config/avr/avr-protos.h (output_movqi): Strengthen first param
3020 from rtx to rtx_insn *.
3021 (output_movhi): Likewise.
3022 (output_movsisf): Likewise.
3023 (avr_out_tstsi): Likewise.
3024 (avr_out_tsthi): Likewise.
3025 (avr_out_tstpsi): Likewise.
3026 (avr_out_compare): Likewise.
3027 (avr_out_compare64): Likewise.
3028 (avr_out_movpsi): Likewise.
3029 (ashlqi3_out): Likewise.
3030 (ashlhi3_out): Likewise.
3031 (ashlsi3_out): Likewise.
3032 (ashrqi3_out): Likewise.
3033 (ashrhi3_out): Likewise.
3034 (ashrsi3_out): Likewise.
3035 (lshrqi3_out): Likewise.
3036 (lshrhi3_out): Likewise.
3037 (lshrsi3_out): Likewise.
3038 (avr_out_ashlpsi3): Likewise.
3039 (avr_out_ashrpsi3): Likewise.
3040 (avr_out_lshrpsi3): Likewise.
3041 (avr_out_fract): Likewise.
3042 (avr_out_sbxx_branch): Likewise.
3043 (avr_out_round): Likewise.
3044 (avr_out_xload): Likewise.
3045 (avr_out_movmem): Likewise.
3046 (adjust_insn_length): Likewise.
3047 (avr_out_lpm): Likewise.
3048 (reg_unused_after): Likewise.
3049 (_reg_unused_after): Likewise.
3050 (avr_jump_mode): Likewise for second param.
3051 (jump_over_one_insn): Likewise for first param.
3052 (avr_final_prescan_insn): Likewise.
3053 (out_shift_with_cnt): Likewise for second param.
3054
3055 * config/avr/avr.c (get_sequence_length): Likewise for param
3056 "insns" and local "insn".
3057 (emit_push_byte): Likewise for local "insn".
3058 (emit_push_sfr): Likewise.
3059 (avr_prologue_setup_frame): Likewise for locals "insn",
3060 "fp_plus_insns", "sp_plus_insns".
3061 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
3062 "sp_plus_insns".
3063 (avr_jump_mode): Likewise for param "insn".
3064 (avr_final_prescan_insn): Likewise.
3065 (avr_find_unused_d_reg): Likewise.
3066 (avr_out_lpm_no_lpmx): Likewise.
3067 (avr_out_lpm): Likewise.
3068 (avr_out_xload): Likewise.
3069 (output_movqi): Likewise.
3070 (output_movhi): Likewise.
3071 (out_movqi_r_mr): Likewise.
3072 (out_movhi_r_mr): Likewise.
3073 (out_movsi_r_mr): Likewise.
3074 (out_movsi_mr_r): Likewise.
3075 (output_movsisf): Likewise.
3076 (avr_out_load_psi): Likewise.
3077 (avr_out_store_psi): Likewise.
3078 (avr_out_movpsi): Likewise.
3079 (out_movqi_mr_r): Likewise.
3080 (avr_out_movhi_mr_r_xmega): Likewise.
3081 (out_movhi_mr_r): Likewise.
3082 (compare_condition): Likewise for param "insn" and local "next".
3083 (compare_sign_p): Likewise for param "insn".
3084 (compare_diff_p): Likewise.
3085 (compare_eq_p): Likewise.
3086 (avr_out_compare): Likewise.
3087 (avr_out_compare64): Likewise.
3088 (avr_out_tsthi): Likewise.
3089 (avr_out_tstpsi): Likewise.
3090 (avr_out_tstsi): Likewise.
3091 (out_shift_with_cnt): Likewise.
3092 (ashlqi3_out): Likewise.
3093 (ashlhi3_out): Likewise.
3094 (avr_out_ashlpsi3): Likewise.
3095 (ashlsi3_out): Likewise.
3096 (ashrqi3_out): Likewise.
3097 (ashrhi3_out): Likewise.
3098 (avr_out_ashrpsi3): Likewise.
3099 (ashrsi3_out): Likewise.
3100 (lshrqi3_out): Likewise.
3101 (lshrhi3_out): Likewise.
3102 (avr_out_lshrpsi3): Likewise.
3103 (lshrsi3_out): Likewise.
3104 (avr_out_fract): Likewise.
3105 (avr_out_round): Likewise.
3106 (avr_adjust_insn_length): Likewise.
3107 (reg_unused_after): Likewise.
3108 (_reg_unused_after): Likewise.
3109 (avr_compare_pattern): Likewise.
3110 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
3111 and locals "branch1", "branch2", "insn2", "jump".
3112 (avr_reorg): Likewise for local "insn".
3113 (avr_2word_insn_p): Likewise for param "insn".
3114 (jump_over_one_insn_p): Likewise.
3115 (avr_out_sbxx_branch): Likewise.
3116 (avr_out_movmem): Likewise.
3117
3118 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3119
3120 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
3121 param from rtx to rtx_insn *.
3122 (thumb1_final_prescan_insn): Likewise.
3123 (thumb2_final_prescan_insn): Likewise.
3124
3125 * config/arm/arm.c (emit_set_insn): Strengthen return type from
3126 rtx to rtx_insn *.
3127 (struct minipool_node): Likewise for field "insn".
3128 (dump_minipool): Likewise for param "scan".
3129 (create_fix_barrier): Likewise for local "from". Strengthen local
3130 "label" from rtx to rtx_code_label *.
3131 (push_minipool_barrier): Strengthen param "insn" from rtx to
3132 rtx_insn *.
3133 (push_minipool_fix): Likewise.
3134 (note_invalid_constants): Likewise.
3135 (thumb2_reorg): Likewise for local "insn".
3136 (arm_reorg): Likewise.
3137 (thumb2_final_prescan_insn): Likewise for param
3138 "insn" and local "first_insn".
3139 (arm_final_prescan_insn): Likewise for param "insn" and locals
3140 "start_insn", "this_insn".
3141 (arm_debugger_arg_offset): Likewise for param "insn".
3142 (thumb1_emit_multi_reg_push): Likewise for return type and local
3143 "insn".
3144 (thumb1_final_prescan_insn): Likewise for param "insn".
3145 (thumb_far_jump_used_p): Likewise for local "insn".
3146 (thumb1_expand_prologue): Likewise.
3147 (arm_expand_epilogue_apcs_frame): Likewise.
3148 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
3149 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
3150 from rtx to rtx_code_label *.
3151 (arm_split_atomic_op): Likewise for local "label".
3152 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
3153
3154 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3155
3156 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
3157 first param from rtx to rtx_insn *.
3158 (arc_verify_short): Likewise.
3159 (arc_short_long): Likewise.
3160 (arc_need_delay): Likewise.
3161
3162 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
3163 "target_insn".
3164 (arc_ccfsm_advance): Likewise for param "insn" and locals
3165 "start_insn", "this_insn".
3166 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
3167 (arc_ccfsm_post_advance): Likewise for param "insn".
3168 (arc_next_active_insn): Likewise for return type and param "insn".
3169 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
3170 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
3171 (output_short_suffix): Likewise for local "insn".
3172 (arc_final_prescan_insn): Likewise for param "insn". Remove
3173 now-redundant checked cast.
3174 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
3175 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
3176 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
3177 for use where lc_set became an insn.
3178 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
3179 rtx to rtx_insn *.
3180 (arc_get_insn_variants): Likewise for local "prev".
3181 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
3182 "next".
3183 (arc_predicate_delay_insns): Likewise for local "insn".
3184 (arc_pad_return): Likewise for local "prev". For now, add a
3185 checked cast when extracting the insn from "final_sequence".
3186 (arc_short_long): Likewise for param "insn".
3187 (arc_need_delay): Likewise for param "insn" and local "next".
3188 (arc_label_align): Likewise for locals "prev", "next".
3189
3190 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3191
3192 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
3193 "insn" from rtx to rtx_insn *.
3194 (alpha_gp_save_rtx): Likewise for local "seq".
3195 (alpha_instantiate_decls): Likewise for local "top".
3196 (get_some_local_dynamic_name): Likewise for local "insn".
3197 (alpha_does_function_need_gp): Likewise.
3198 (set_frame_related_p): Likewise for return type and for locals
3199 "seq" and "insn".
3200 (emit_frame_store_1): Likewise for local "insn".
3201 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3202 (alpha_end_function): Likewise for local "insn".
3203 (alpha_output_mi_thunk_osf): Likewise.
3204 (alphaev4_insn_pipe): Likewise for param "insn".
3205 (alphaev5_insn_pipe): Likewise.
3206 (alphaev4_next_group): Likewise for return type and param 1
3207 "insn".
3208 (alphaev5_next_group): Likewise.
3209 (alpha_align_insns_1): Likewise for return type and param 1 of
3210 callback param "next_group", and for locals "i", "next", "prev",
3211 "where", "where2", "insn".
3212
3213 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3214
3215 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3216 rather than modifying the stmt.
3217
3218 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3219
3220 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3221 cgraph_state conversion.
3222
3223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3224
3225 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3226 Strengthen local "insns" from rtx to rtx_insn *.
3227 (aarch64_set_frame_expr): Likewise for local "insn".
3228 (aarch64_save_or_restore_fprs): Likewise.
3229 (aarch64_save_or_restore_callee_save_registers): Likewise.
3230 (aarch64_expand_prologue): Likewise.
3231 (aarch64_expand_epilogue): Likewise.
3232 (aarch64_output_mi_thunk): Likewise.
3233 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3234 "label2" from rtx to rtx_code_label *.
3235 (aarch64_split_atomic_op): Likewise for local "label".
3236
3237 2014-08-25 Martin Liska <mliska@suse.cz>
3238
3239 * cgraph.h (symtab_node):
3240 (bool needed_p (void)): created from decide_is_symbol_needed
3241 (bool referred_to_p (void)): created from referred_to_p
3242 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3243 * cgraph.h (cgraph_node):
3244 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3245 (void expand (void)): created from expand_function
3246 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3247 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3248 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3249 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3250 * cgraph.h (varpool_node):
3251 (static void add (tree decl): created from varpool_add_new_variable
3252 * cgraph.h (cgraph_edge):
3253 void remove (void);
3254 (void remove_caller (void)): created from cgraph_edge_remove_caller
3255 (void remove_callee (void)): created from cgraph_edge_remove_callee
3256 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3257 created from cgraph_set_call_stmt
3258 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3259 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3260 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3261 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3262 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3263 created from cgraph_speculative_call_info
3264 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3265 int freq_scale, bool update_original)): created from cgraph_clone_edge
3266 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3267 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3268 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3269 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3270 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3271 (static void rebuild_references (void)): created from cgraph_rebuild_references
3272 * cgraph.h (symbol_table):
3273 (create_reference): renamed from add_reference
3274 (maybe_create_reference): renamed from maybe_add_reference
3275 (void register_symbol (symtab_node *node)): new function
3276 (void clear_asm_symbols (void)): new function
3277 (void unregister (symtab_node *node)): new function
3278 (void release_symbol (cgraph_node *node, int uid)): new function
3279 (cgraph_node * allocate_cgraph_symbol (void)): new function
3280 (void initialize (void)): created from cgraph_init
3281 (symtab_node *first_symbol (void)):new function
3282 (asm_node *first_asm_symbol (void)):new function
3283 (symtab_node *first_defined_symbol (void)):new function
3284 (varpool_node *first_variable (void)):new function
3285 (varpool_node *next_variable (varpool_node *node)):new function
3286 (varpool_node *first_static_initializer (void)):new function
3287 (varpool_node *next_static_initializer (varpool_node *node)):new function
3288 (varpool_node *first_defined_variable (void)):new function
3289 (varpool_node *next_defined_variable (varpool_node *node)):new function
3290 (cgraph_node *first_defined_function (void)):new function
3291 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3292 (cgraph_node *first_function (void)):new function
3293 (cgraph_node *next_function (cgraph_node *node)):new function
3294 (cgraph_node *first_function_with_gimple_body (void)):new function
3295 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3296 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3297 created from symtab_remove_unreachable_nodes
3298 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3299 (void process_new_functions (void)): created from cgraph_process_new_functions
3300 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3301 (bool output_variables (void)): created from varpool_node::output_variables
3302 (void output_asm_statements (void)): created from output_asm_statements
3303 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3304 (void compile (void)): created from compile
3305 (void output_weakrefs (void)): created from output_weakrefs
3306 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3307 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3308 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3309 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3310 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3311 created from cgraph_next_function_with_gimple_body
3312 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3313 created from cgraph_remove_edge_removal_hook
3314 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3315 created from cgraph_add_node_removal_hook
3316 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3317 created from cgraph_remove_node_removal_hook
3318 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3319 created from varpool_add_node_removal_hook
3320 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3321 created from varpool_remove_node_removal_hook
3322 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3323 created from cgraph_add_function_insertion_hook
3324 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3325 created from cgraph_remove_function_insertion_hook
3326 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3327 created from varpool_add_variable_insertion_hook
3328 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3329 created from varpool_remove_variable_insertion_hook
3330 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3331 created from cgraph_add_edge_duplication_hook
3332 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3333 created from cgraph_remove_edge_duplication_hook
3334 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3335 created from cgraph_add_node_duplication_hook
3336 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3337 created from cgraph_remove_node_duplication_hook
3338 (void call_edge_removal_hooks (cgraph_edge *e)):
3339 created from cgraph_call_edge_removal_hooks
3340 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3341 created from call_function_insertion_hooks
3342 (void call_cgraph_removal_hooks (cgraph_node *node)):
3343 created from cgraph_call_node_removal_hooks
3344 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3345 created from cgraph_node::call_duplication_hooks
3346 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3347 created from cgraph_call_edge_duplication_hooks
3348 (void call_varpool_removal_hooks (varpool_node *node)):
3349 created from varpool_call_node_removal_hooks
3350 (void call_varpool_insertion_hooks (varpool_node *node)):
3351 created from varpool_call_variable_insertion_hooks
3352 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3353 created from insert_to_assembler_name_hash
3354 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3355 created from unlink_from_assembler_name_hash
3356 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3357 created from symtab_prevail_in_asm_name_hash
3358 (void symtab_initialize_asm_name_hash (void)):
3359 created from symtab_initialize_asm_name_hash
3360 (void change_decl_assembler_name (tree decl, tree name)):
3361 created from change_decl_assembler_name
3362 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3363 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3364 created from decl_assembler_name_hash
3365 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3366 created from decl_assembler_name_equal
3367 (static hashval_t hash_node_by_assembler_name (const void *p)):
3368 created from hash_node_by_assembler_name
3369 (static int eq_assembler_name (const void *p1, const void *p2)):
3370 created from eq_assembler_name
3371
3372 2014-08-25 Marek Polacek <polacek@redhat.com>
3373
3374 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3375
3376 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3377
3378 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3379 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3380 SWI1248_AVX512BW mode iterator.
3381
3382 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3383
3384 PR target/62111
3385 * config/sh/predicates.md (general_extend_operand): Disable
3386 TRUNCATE before reload completes.
3387
3388 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3389
3390 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3391
3392 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3393
3394 PR target/61996
3395 * config/sh/sh.opt (musermode): Allow negative form.
3396 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3397 targets that don't support it.
3398 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3399 Document -mno-usermode option.
3400
3401 2014-08-24 Kito Cheng <kito@0xlab.org>
3402
3403 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3404 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3405 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3406 * doc/tm.texi: Regenerate.
3407
3408 2014-08-24 Kito Cheng <kito@0xlab.org>
3409
3410 * ira.c: Fix typo in comment.
3411
3412 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3413
3414 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3415 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3416
3417 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3418
3419 PR target/62038
3420 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3421 last_address when the current function is a thunk.
3422 (pa_asm_output_mi_thunk): When we don't have named sections or they
3423 are not being used, check that thunk can reach the stub table with a
3424 short branch.
3425
3426 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3427
3428 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3429 rtx_insn *.
3430 (pass_web::execute): Likewise for local "insn".
3431
3432 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3433
3434 * var-tracking.c (struct micro_operation_def): Strengthen field
3435 "insn" from rtx to rtx_insn *.
3436 (struct emit_note_data_def): Likewise.
3437 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3438 (vt_stack_adjustments): Likewise for local "insn".
3439 (adjust_insn): Likewise for param "insn".
3440 (val_store): Likewise.
3441 (val_resolve): Likewise.
3442 (struct count_use_info): Likewise for field "insn".
3443 (log_op_type): Likewise for param "insn".
3444 (reverse_op): Likewise.
3445 (prepare_call_arguments): Likewise.
3446 (add_with_sets): The initial param takes an insn, but we can't
3447 yet strengthen it from rtx to rtx_insn * since it's used as a
3448 cselib_record_sets_hook callback. For now rename initial param
3449 from "insn" to "uncast_insn", and introduce a local "insn" of
3450 the stronger rtx_insn * type, with a checked cast.
3451 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3452 rtx_insn *.
3453 (emit_note_insn_var_location): Likewise.
3454 (emit_notes_for_changes): Likewise.
3455 (emit_notes_for_differences): Likewise.
3456 (next_non_note_insn_var_location): Likewise for return type and
3457 for param "insn".
3458 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3459 (vt_initialize): Likewise for local "insn".
3460 (delete_debug_insns): Likewise for locals "insn" and "next".
3461
3462 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3463
3464 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3465 rtx_insn *.
3466 (mark_constant_pool): Likewise for local "insn".
3467
3468 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3469
3470 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3471 rtx to rtx_insn *.
3472 (dead_debug_promote_uses): Likewise.
3473 (dead_debug_insert_temp): Likewise.
3474
3475 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3476
3477 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3478 from const_rtx to const rtx_insn *.
3479 (store_killed_after): Likewise. Strengthen locals "last", "act"
3480 from rtx to rtx_insn *.
3481 (store_killed_before): Strengthen param "insn" from const_rtx to
3482 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3483 (find_moveable_store): Strengthen param "insn" from rtx to
3484 rtx_insn *.
3485 (compute_store_table): Likewise for local "insn".
3486 (insert_insn_start_basic_block): Likewise for param "insn" and
3487 locals "prev", "before", "insn".
3488 (insert_store): For now, add a checked cast to rtx_insn * on the
3489 result of gen_move_insn.
3490 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3491 to rtx_insn *.
3492 (replace_store_insn): Likewise. For now, add a checked cast to
3493 rtx_insn * on the result of gen_move_insn.
3494
3495 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3496
3497 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3498 rtx_insn *.
3499 (expand_sjlj_dispatch_table): Likewise.
3500
3501 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3502
3503 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3504 "insn" from rtx to rtx_insn *.
3505
3506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3507
3508 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3509 "insn" from rtx to rtx_insn *.
3510 (dup_block_and_redirect): Likewise for param 3 "before".
3511
3512 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3513 from rtx to rtx_insn *.
3514 (move_insn_for_shrink_wrap): Likewise.
3515 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3516 (dup_block_and_redirect): Likewise for param "before" and local
3517 "insn".
3518 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3519 "end".
3520 (convert_to_simple_return): Likewise for local "start".
3521
3522 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3523 Strengthen local "insn" from rtx to rtx_insn *, for use when
3524 invoking requires_stack_frame_p.
3525
3526 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3527
3528 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3529 rtx_insn *.
3530 (speculate_expr): Likewise for locals "orig_insn_rtx",
3531 "spec_insn_rtx".
3532 (eq_transformed_insns): Likewise for locals "i1", "i2".
3533 (check_for_new_jump): Likewise for return type and local "end".
3534 (find_new_jump): Likewise for return type and local "jump".
3535 (sel_split_edge): Likewise for local "jump".
3536 (sel_create_recovery_block): Likewise.
3537 (sel_redirect_edge_and_branch_force): Likewise.
3538 (sel_redirect_edge_and_branch): Likewise.
3539
3540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3541
3542 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3543 "new_insn" from rtx to rtx_insn *.
3544 (create_insn_rtx_with_rhs): Likewise for return type and for local
3545 "insn_rtx".
3546 (create_insn_rtx_with_lhs): Likewise.
3547 (create_speculation_check): Likewise for local "insn_rtx".
3548 (implicit_clobber_conflict_p): Likewise for local "insn".
3549 (get_expr_cost): Likewise.
3550 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3551 (move_cond_jump): Likewise for locals "next", "prev", "link",
3552 "head", "from", "to".
3553
3554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3555
3556 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3557 "next" from rtx to rtx_insn *.
3558 (find_conditional_protection): Likewise for local "next".
3559 (is_conditionally_protected): Likewise for local "insn1".
3560 (is_pfree): Likewise for locals "insn1", "insn2".
3561
3562 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3563
3564 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3565 from rtx to rtx_insn *.
3566
3567 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3568 locals "insn1", "insn2" from rtx to rtx_insn *.
3569 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3570 locals "insn", "prev", "last_jump", "next_tail".
3571 (schedule_ebb): Likewise for params "head", "tail".
3572 (schedule_ebbs): Likewise for locals "tail", "head".
3573
3574 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3575 to rtx_insn on "last_insn" in one of the invocations of
3576 schedule_ebb.
3577
3578 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3579
3580 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3581 "elem", "insn" from rtx to rtx_insn *.
3582 (change_spec_dep_to_hard): Likewise.
3583 (get_back_and_forw_lists): Likewise for local "con".
3584 (sd_add_dep): Likewise for locals "elem", "insn".
3585 (sd_resolve_dep): Likewise for locals "pro", "con".
3586 (sd_unresolve_dep): Likewise.
3587 (sd_delete_dep): Likewise.
3588 (chain_to_prev_insn): Likewise for local "pro".
3589 (find_inc): Likewise for locals "pro", "con".
3590
3591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3592
3593 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3594 to rtx_insn *.
3595 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3596 const rtx_insn *.
3597 (modified_between_p): Strengthen local "insn" from rtx to
3598 rtx_insn *.
3599 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3600 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3601 const rtx_insn *.
3602
3603 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3604
3605 * resource.c (next_insn_no_annul): Strengthen local "next" from
3606 rtx to rtx_insn *.
3607 (mark_referenced_resources): Likewise for local "insn".
3608
3609 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3610
3611 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3612 to rtx_insn *.
3613 (find_reloads): Likewise for param 1.
3614 (subst_reloads): Likewise for sole param.
3615 (find_equiv_reg): Likwise for param 2.
3616 (regno_clobbered_p): Likwise for param 2.
3617 (reload): Likewise for param 1.
3618
3619 * caller-save.c (save_call_clobbered_regs): Strengthen local
3620 "insn" from rtx to rtx_insn *.
3621 (insert_one_insn): Likewise for local "insn".
3622
3623 * reload.c (this_insn): Likewise for this global.
3624 (find_reloads): Likewise for param "insn".
3625 (find_reloads_toplev): Likewise.
3626 (find_reloads_address): Likewise.
3627 (subst_reg_equivs): Likewise.
3628 (update_auto_inc_notes): Likewise.
3629 (find_reloads_address_1): Likewise.
3630 (find_reloads_subreg_address): Likewise.
3631 (subst_reloads): Likewise.
3632 (find_equiv_reg): Likewise, also for local "p".
3633 (regno_clobbered_p): Likewise for param "insn".
3634
3635 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3636 array.
3637 (spill_reg_store): Likewise for the elements of this array.
3638 (remove_init_insns): Likewise for local "equiv_insn".
3639 (will_delete_init_insn_p): Likewise for param "insn".
3640 (reload): Likewise for param ""first" and local "insn".
3641 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3642 rtx_insn *.
3643 (calculate_elim_costs_all_insns): Likewise.
3644 (delete_caller_save_insns): Likewise.
3645 (spill_failure): Likewise for param "insn".
3646 (delete_dead_insn): Likewise.
3647 (set_label_offsets): Likewise.
3648 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3649 "prev_insn".
3650 (elimination_costs_in_insn): Likewise for param "insn".
3651 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3652 when referring to an insn.
3653 (set_initial_label_offsets): Likewise.
3654 (set_offsets_for_label): Strengthen param "insn" from rtx to
3655 rtx_insn *.
3656 (init_eliminable_invariants): Likewise for param "first" and local
3657 "insn".
3658 (fixup_eh_region_note): Likewise for param "insn".
3659 (reload_as_needed): Likewise for locals "prev", "insn",
3660 "old_next", "old_prev", "next".
3661 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3662 "last".
3663 (reload_inheritance_insn): Strengthen elements of this array from
3664 rtx to rtx_insn *.
3665 (failed_reload): Likewise for param "insn".
3666 (choose_reload_regs): Likewise for local "insn". Replace use of
3667 NULL_RTX with NULL when referring to an insn.
3668 (input_reload_insns): Strengthen elements of this array from rtx
3669 to rtx_insn *.
3670 (other_input_address_reload_insns): Likewise for this global.
3671 (other_input_reload_insns): Likewise for this global.
3672 (input_address_reload_insns): Likwise for the elements of this
3673 array.
3674 (inpaddr_address_reload_insns): Likwise for the elements of this
3675 array.
3676 (output_reload_insns): Likewise for the elements of this array.
3677 (output_address_reload_insns): Likewise for the elements of this
3678 array.
3679 (outaddr_address_reload_insns): Likewise for the elements of this
3680 array.
3681 (operand_reload_insns): Likewise for this global.
3682 (other_operand_reload_insns): Likewise for this global.
3683 (other_output_reload_insns): Likewise for the elements of this
3684 array.
3685 (new_spill_reg_store): Likewise for the elements of this
3686 array.
3687 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3688 Strengthen local "where" from rtx * to rtx_insn **.
3689 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3690 from rtx to rtx_insn *.
3691 (do_input_reload): Likewise for local "insn".
3692 (do_output_reload): Likewise for local "insn".
3693 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3694 (emit_insn_if_valid_for_reload): Likewise for return type and local
3695 "last". Add checked cast to rtx_insn when returning "insn" since
3696 this has been through emit_insn.
3697 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3698 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3699 returning "insn" since it's been through
3700 emit_insn_if_valid_for_reload at this point.
3701 (delete_output_reload): Strengthen param "insn" and locals
3702 "output_reload_insn", "i2" from rtx to rtx_insn *.
3703 (delete_address_reloads): Likewise for params "dead_insn",
3704 "current_insn" and locals "prev", "next".
3705 (delete_address_reloads_1): Likewise for params "dead_insn",
3706 "current_insn" and locals "prev", "i2".
3707 (inc_for_reload): Likewise for locals "last", "add_insn".
3708 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3709 rtx_insn *.
3710
3711 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3712 param of this duplicate of the prototype from reload.h
3713
3714 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3715
3716 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3717 rtx to rtx_insn *.
3718 (regstat_bb_compute_calls_crossed): Likewise.
3719
3720 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3721
3722 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3723 to rtx_insn *.
3724 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3725 with an insn.
3726 (regrename_analyze): Strengthen local "insn" from rtx to
3727 rtx_insn *.
3728 (scan_rtx_reg): Likewise for param "insn".
3729 (scan_rtx_address): Likewise.
3730 (scan_rtx): Likewise.
3731 (restore_operands): Likewise.
3732 (record_out_operands): Likewise.
3733 (build_def_use): Likewise for local "insn". Replace use of
3734 NULL_RTX with NULL when dealing with an insn.
3735
3736 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3737
3738 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3739 * reginfo.c (reg_scan): Likewise, also for local "insn".
3740 (reg_scan_mark_refs): Likewise for param "insn".
3741 (init_subregs_of_mode): Likewise for local "insn".
3742
3743 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3744
3745 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3746 "insn" from rtx to rtx_insn *.
3747 (replace_oldest_value_reg): Likewise for param "insn".
3748 (replace_oldest_value_addr): Likewise.
3749 (replace_oldest_value_mem): Likewise.
3750 (apply_debug_insn_changes): Likewise for local "last_insn".
3751 (copyprop_hardreg_forward_1): Likewise for local "insn".
3752
3753 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3754
3755 * reg-stack.c (next_flags_user): Strengthen return type and param
3756 "insn" from rtx to rtx_insn *.
3757 (straighten_stack): Likewise for param "insn".
3758 (check_asm_stack_operands): Likewise.
3759 (remove_regno_note): Likewise.
3760 (emit_pop_insn): Likewise for return type, param "insn", local
3761 "pop_insn".
3762 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3763 "limit" from rtx to rtx_insn *.
3764 (swap_to_top): Likewise for param "insn".
3765 (move_for_stack_reg): Likewise.
3766 (move_nan_for_stack_reg): Likewise.
3767 (swap_rtx_condition): Likewise.
3768 (compare_for_stack_reg): Likewise.
3769 (subst_all_stack_regs_in_debug_insn): Likewise.
3770 (subst_stack_regs_pat): Likewise, and local "insn2".
3771 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3772 rtx_insn *.
3773 (subst_stack_regs): Likewise.
3774 (change_stack): Likewise.
3775 (convert_regs_1): Likewise for locals "insn", "next".
3776
3777 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3778
3779 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3780 rtx_insn *.
3781 (combine_set_extension): Likewise for param "curr_insn".
3782 (transform_ifelse): Likewise for param "def_insn".
3783 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3784 from vec<rtx> * to vec<rtx_insn *> *.
3785 (is_cond_copy_insn): Likewise for param "insn".
3786 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3787 to vec<rtx_insn *>.
3788 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3789 local "def_insn" from rtx to rtx_insn *.
3790 (get_sub_rtx): Likewise for param "def_insn".
3791 (merge_def_and_ext): Likewise.
3792 (combine_reaching_defs): Likewise.
3793 (add_removable_extension): Likewise for param "insn".
3794 (find_removable_extensions): Likewise for local "insn".
3795 (find_and_remove_re): Likewise for locals "curr_insn" and
3796 "def_insn". Strengthen locals "reinsn_del_list" and
3797 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3798
3799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3800
3801 * recog.c (split_insn): Strengthen param "insn" and locals
3802 "first", "last" from rtx to rtx_insn *.
3803 (split_all_insns): Likewise for locals "insn", "next".
3804 (split_all_insns_noflow): Likewise.
3805
3806 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3807
3808 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3809 const rtx_insn *.
3810 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3811 (debug_rtx_find): Likewise for param 1 "x".
3812
3813 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3814 const_rtx to const rtx_insn *. Likewise for local "insn".
3815 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3816 (debug_rtx_find): Likewise for param 1 "x".
3817 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3818 from const_rtx to const rtx_insn * within the appropriate cases of
3819 the switch statement.
3820
3821 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3822 Strengthen local "insns" from rtx to rtx_insn * since this is
3823 passed to a call to debug_rtx_list.
3824
3825 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3826
3827 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3828 to rtx_insn *.
3829
3830 * function.c (stack_protect_epilogue): Add checked cast to
3831 rtx_insn for now when invoking predict_insn_def.
3832
3833 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3834 rtx_insn *.
3835 (predict_insn_def): Likewise.
3836 (rtl_predict_edge): Likewise for local "last_insn".
3837 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3838 const rtx_insn *.
3839 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3840 to rtx_insn *.
3841 (bb_estimate_probability_locally): Likewise for local "last_insn".
3842 (expensive_function_p): Likewise for local "insn".
3843
3844 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3845 local "jmp", since this is used when invoking predict_insn_def.
3846
3847 2014-08-22 Marek Polacek <polacek@redhat.com>
3848
3849 PR c++/62199
3850 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3851
3852 2014-08-22 Marek Polacek <polacek@redhat.com>
3853
3854 PR c/61271
3855 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3856 a comparison in parens.
3857 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3858 in parens.
3859
3860 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3861
3862 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3863 rtx_insn *.
3864
3865 * cprop.c (fis_get_condition): Likewise.
3866
3867 * postreload.c (reload_cse_regs): Likewise for param "first".
3868 (reload_cse_simplify): Likewise for param "insn".
3869 (reload_cse_regs_1): Likewise for local "insn".
3870 (reload_cse_simplify_set): Likewise for param "insn".
3871 (reload_cse_simplify_operands): Likewise.
3872 (struct reg_use): Likewise for field "insn".
3873 (reload_combine_purge_insn_uses): Likewise for param "insn".
3874 (fixup_debug_insns): Likewise for params "from", "to" and local
3875 "insn".
3876 (try_replace_in_use): Likewise for local "use_insn".
3877 (reload_combine_recognize_const_pattern): Likewise for param
3878 "insn" and locals "add_moved_after_insn", "use_insn".
3879 (reload_combine_recognize_pattern): Likewise for param "insn" and
3880 local "prev".
3881 (reload_combine): Likewise for locals "insn", "prev".
3882 (reload_combine_note_use): Likewise for param "insn".
3883 (move2add_use_add2_insn): Likewise.
3884 (move2add_use_add3_insn): Likewise.
3885 (reload_cse_move2add): Likewise, also for local "next".
3886 (move2add_note_store): Likewise for local "insn".
3887
3888 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3889
3890 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3891 rtx to rtx_insn *.
3892 (struct unoccr): Likewise.
3893 (struct modifies_mem): Likewise.
3894 (alloc_mem): Likewise for local "insn".
3895 (insert_expr_in_table): Likewise for param "insn".
3896 (dump_expr_hash_table_entry): Likewise for local "insn".
3897 (oprs_unchanged_p): Likewise for param "insn".
3898 (load_killed_in_block_p): Likewise for local "setter".
3899 (record_last_reg_set_info): Likewise for param "insn".
3900 (record_last_reg_set_info_regno): Likewise.
3901 (record_last_mem_set_info): Likewise.
3902 (record_last_set_info): Likewise for local "last_set_insn".
3903 (record_opr_changes): Likewise for param "insn".
3904 (hash_scan_set): Likewise.
3905 (compute_hash_table): Likewise for local "insn".
3906 (get_avail_load_store_reg): Likewise for param "insn".
3907 (eliminate_partially_redundant_load): Likewise, also for locals
3908 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3909 RTX for insns.
3910 (eliminate_partially_redundant_loads): Likewise for local "insn".
3911
3912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3913
3914 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3915 rtx to rtx_insn *.
3916 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3917 (expand_twoval_unop): Likewise for locals entry_last", "last".
3918 (expand_twoval_binop): Likewise.
3919 (expand_twoval_binop_libfunc): Likewise for local "insns".
3920 (widen_leading): Likewise for local "last".
3921 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3922 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3923 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3924 (expand_parity): Likewise for locals "last" and "seq".
3925 (expand_ffs): Likewise for local "seq". Strengthen local
3926 "nonzero_label" from rtx to rtx_code_label *.
3927 (expand_absneg_bit): Strengthen local "insns" from rtx to
3928 rtx_insn *.
3929 (expand_unop_direct): Likewise for local "last".
3930 (expand_unop): Likewise for locals "last", "insns".
3931 (expand_abs_nojump): Likewise for local "last".
3932 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3933 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3934 rtx_insn *.
3935 (expand_copysign_absneg): Strengthen local "label" from rtx to
3936 rtx_code_label *.
3937 (expand_copysign_bit): Strengthen local "insns" from rtx to
3938 rtx_insn *.
3939 (struct no_conflict_data): Likewise for fields "first", "insn".
3940 (emit_libcall_block_1): Likewise for param "insns" and locals
3941 "next", "last", "insn".
3942 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3943 on "insns" when invoking emit_libcall_block_1. Ultimately we
3944 want to strengthen insns itself.
3945 (prepare_cmp_insn): Strengthen local "last" from rtx to
3946 rtx_insn *.
3947 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3948 (prepare_float_lib_cmp): Likewise for local "insns".
3949 (emit_conditional_move): Likewise for local "last".
3950 (emit_conditional_add): Likewise.
3951 (have_sub2_insn): Likewise for local "seq".
3952 (expand_float): Likewise for local "insns". Strengthen locals
3953 "label", "neglabel" from rtx to rtx_code_label *.
3954 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3955 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3956 (expand_fixed_convert): Likewise for local "insns" (to
3957 rtx_insn *).
3958 (expand_sfix_optab): Likewise for local "last".
3959 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3960 to rtx_code_label *.
3961 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3962 from rtx to rtx_insn *.
3963 (expand_atomic_fetch_op): Likewise for local "insn".
3964 (maybe_legitimize_operand_same_code): Likewise for local "last".
3965 (maybe_legitimize_operands): Likewise.
3966
3967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3968
3969 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3970 "insn" from rtx to rtx_insn *.
3971 (ps_rtl_insn): Likewise for return type.
3972 (doloop_register_get): Likewise for params "head", "tail" and
3973 locals "insn", "first_insn_not_to_check".
3974 (schedule_reg_move): Likewise for local "this_insn".
3975 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3976 of gen_move_insn for now.
3977 (reset_sched_times): Strengthen local "insn" from rtx to
3978 rtx_insn *.
3979 (permute_partial_schedule): Likewise.
3980 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3981 (dump_insn_location): Likewise for param "insn".
3982 (loop_canon_p): Likewise for local "insn".
3983 (sms_schedule): Likewise.
3984 (print_partial_schedule): Likewise.
3985 (ps_has_conflicts): Likewise.
3986
3987 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3988
3989 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3990 "tailp" from rtx * to rtx_insn **.
3991
3992 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3993 from rtx to rtx_insn *.
3994 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3995 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3996 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3997 rtx to rtx_insn *.
3998 * modulo-sched.c (const_iteration_count): Strengthen return type
3999 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
4000 use of NULL_RTX with NULL when working with insns.
4001 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
4002 to rtx_insn *.
4003 (sms_schedule): Likewise.
4004 * sched-rgn.c (init_ready_list): Likewise, also for locals
4005 "src_head" and "src_next_tail".
4006 (compute_block_dependences): Likewise.
4007 (free_block_dependencies): Likewise.
4008 (debug_rgn_dependencies): Likewise.
4009 (free_rgn_deps): Likewise.
4010 (compute_priorities): Likewise.
4011 (schedule_region): Likewise.
4012 * sel-sched.c (find_ebb_boundaries): Likewise.
4013
4014 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
4015 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
4016
4017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4018
4019 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
4020 from rtx to rtx_insn *.
4021 (new_seginfo): Likewise for param "insn".
4022 (create_pre_exit): Likewise for locals "last_insn",
4023 "before_return_copy", "return_copy".
4024 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
4025 "mode_set".
4026
4027 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4028
4029 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
4030 from rtx to rtx_insn *.
4031 (lra_push_insn): Likewise for 1st param.
4032 (lra_push_insn_and_update_insn_regno_info): Likewise.
4033 (lra_pop_insn): Likewise for return type.
4034 (lra_invalidate_insn_data): Likewise for 1st param.
4035 (lra_set_insn_deleted): Likewise.
4036 (lra_delete_dead_insn): Likewise.
4037 (lra_process_new_insns): Likewise for first 3 params.
4038 (lra_set_insn_recog_data): Likewise for 1st param.
4039 (lra_update_insn_recog_data): Likewise.
4040 (lra_set_used_insn_alternative): Likewise.
4041 (lra_invalidate_insn_regno_info): Likewise.
4042 (lra_update_insn_regno_info): Likewise.
4043 (lra_former_scratch_operand_p): Likewise.
4044 (lra_eliminate_regs_1): Likewise.
4045 (lra_get_insn_recog_data): Likewise.
4046
4047 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
4048 rtx to rtx_insn *.
4049
4050 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
4051 "mv1" and "mv2".
4052 (substitute_within_insn): New.
4053 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
4054 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
4055 Replace call to "substitute" with call to substitute_within_insn.
4056
4057 * lra-constraints.c (curr_insn): Strengthen from rtx to
4058 rtx_insn *.
4059 (get_equiv_with_elimination): Likewise for param "insn".
4060 (match_reload): Strengthen params "before" and "after" from rtx *
4061 to rtx_insn **.
4062 (emit_spill_move): Likewise for return type. Add a checked cast
4063 to rtx_insn * on result of gen_move_insn for now.
4064 (check_and_process_move): Likewise for local "before". Replace
4065 NULL_RTX with NULL when referring to insns.
4066 (process_addr_reg): Strengthen params "before" and "after" from
4067 rtx * to rtx_insn **.
4068 (insert_move_for_subreg): Likewise.
4069 (simplify_operand_subreg): Strengthen locals "before" and "after"
4070 from rtx to rtx_insn *.
4071 (process_address_1): Strengthen params "before" and "after" from
4072 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
4073 rtx to rtx_insn *.
4074 (process_address): Strengthen params "before" and "after" from
4075 rtx * to rtx_insn **.
4076 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
4077 (curr_insn_transform): Strengthen locals "before" and "after"
4078 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
4079 to insns.
4080 (loc_equivalence_callback): Update cast of "data", changing
4081 resulting type from rtx to rtx_insn *.
4082 (substitute_pseudo_within_insn): New.
4083 (inherit_reload_reg): Strengthen param "insn" from rtx to
4084 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
4085 NULL when referring to insns. Add a checked cast to rtx_insn *
4086 when using usage_insn to invoke lra_update_insn_regno_info.
4087 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
4088 likewise for locals "restore", "save". Add checked casts to
4089 rtx_insn * when using usage_insn to invoke
4090 lra_update_insn_regno_info and lra_process_new_insns. Replace
4091 NULL_RTX with NULL when referring to insns.
4092 (split_if_necessary): Strengthen param "insn" from rtx to
4093 rtx_insn *.
4094 (update_ebb_live_info): Likewise for params "head", "tail" and local
4095 "prev_insn".
4096 (get_last_insertion_point): Likewise for return type and local "insn".
4097 (get_live_on_other_edges): Likewise for local "last".
4098 (inherit_in_ebb): Likewise for params "head", "tail" and locals
4099 "prev_insn", "next_insn", "restore".
4100 (remove_inheritance_pseudos): Likewise for local "prev_insn".
4101 (undo_optional_reloads): Likewise for local "insn".
4102
4103 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
4104 "insn".
4105 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
4106 insns.
4107 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
4108 rtx_insn *.
4109 (spill_pseudos): Likewise for local "insn".
4110 (init_elimination): Likewise.
4111 (process_insn_for_elimination): Likewise for param "insn".
4112
4113 * lra-lives.c (curr_insn): Likewise.;
4114
4115 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
4116 (remove_pseudos): Likewise for param "insn".
4117 (spill_pseudos): Likewise for local "insn".
4118 (lra_final_code_change): Likewise for locals "insn", "curr".
4119
4120 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
4121 (lra_set_insn_deleted): Likewise.
4122 (lra_delete_dead_insn): Likewise, and for local "prev".
4123 (new_insn_reg): Likewise for param "insn".
4124 (lra_set_insn_recog_data): Likewise.
4125 (lra_update_insn_recog_data): Likewise.
4126 (lra_set_used_insn_alternative): Likewise.
4127 (get_insn_freq): Likewise.
4128 (invalidate_insn_data_regno_info): Likewise.
4129 (lra_invalidate_insn_regno_info): Likewise.
4130 (lra_update_insn_regno_info): Likewise.
4131 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
4132 vec<rtx_insn *>.
4133 (lra_push_insn_1): Strengthen param "insn" from rtx to
4134 rtx_insn *.
4135 (lra_push_insn): Likewise.
4136 (lra_push_insn_and_update_insn_regno_info): Likewise.
4137 (lra_pop_insn): Likewise for return type and local "insn".
4138 (push_insns): Likewise for params "from", "to", and local "insn".
4139 (setup_sp_offset): Likewise for params "from", "last" and locals
4140 "before", "insn".
4141 (lra_process_new_insns): Likewise for params "insn", "before",
4142 "after" and local "last".
4143 (struct sloc): Likewise for field "insn".
4144 (lra_former_scratch_operand_p): Likewise for param "insn".
4145 (remove_scratches): Likewise for locals "insn", "last".
4146 (check_rtl): Likewise for local "insn".
4147 (add_auto_inc_notes): Likewise for param "insn".
4148 (update_inc_notes): Likewise for local "insn".
4149 (lra): Replace NULL_RTX with NULL when referring to insn.
4150
4151 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4152
4153 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
4154 to rtx_insn *.
4155 (resolve_reg_notes): Likewise.
4156 (resolve_simple_move): Likewise for return type, param "insn", and
4157 locals "insns", "minsn".
4158 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
4159 (resolve_use): Likewise.
4160 (resolve_debug): Likewise.
4161 (find_decomposable_shift_zext): Likewise.
4162 (resolve_shift_zext): Likewise for return type, param "insn", and
4163 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
4164 (decompose_multiword_subregs): Likewise for local "insn",
4165 "orig_insn", "decomposed_shift", "end".
4166
4167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4168
4169 * basic-block.h (basic_block split_edge_and_insert): Strengthen
4170 param "insns" from rtx to rtx_insn *.
4171
4172 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
4173 rtx to rtx_insn *.
4174 (struct iv_to_split): Likewise.
4175 (loop_exit_at_end_p): Likewise for local "insn".
4176 (split_edge_and_insert): Likewise for param "insns".
4177 (compare_and_jump_seq): Likewise for return type, param "cinsn",
4178 and locals "seq", "jump".
4179 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
4180 "branch_code"; update invocations of compare_and_jump_seq to
4181 eliminate NULL_RTX in favor of NULL.
4182 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
4183 rtx to rtx_insn *.
4184 (reset_debug_uses_in_loop): Likewise.
4185 (analyze_insn_to_expand_var): Likewise for param "insn".
4186 (analyze_iv_to_split_insn): Likewise.
4187 (analyze_insns_in_loop): Likewise for local "insn".
4188 (insert_base_initialization): Likewise for param
4189 "insn" and local "seq".
4190 (split_iv): Likewise for param "insn" and local "seq".
4191 (expand_var_during_unrolling): Likewise for param "insn".
4192 (insert_var_expansion_initialization): Likewise for local "seq".
4193 (combine_var_copies_in_loop_exit): Likewise.
4194 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
4195 "insn".
4196 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
4197 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4198 "next".
4199
4200 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4201
4202 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4203 rtx_insn *.
4204 (iv_analyze_result): Likewise.
4205 (iv_analyze_expr): Likewise.
4206 (biv_p): Likewise.
4207
4208 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4209 local "def_insn" from rtx to rtx_insn *.
4210 (get_biv_step_1): Likewise for local "insn".
4211 (iv_analyze_expr): Likewise for param "insn".
4212 (iv_analyze_def): Likewise for local "insn".
4213 (iv_analyze_op): Likewise for param "insn".
4214 (iv_analyze): Likewise.
4215 (iv_analyze_result): Likewise.
4216 (biv_p): Likewise.
4217 (suitable_set_for_replacement): Likewise.
4218 (simplify_using_initial_values): Likewise for local "insn".
4219 (iv_number_of_iterations): Likewise for param "insn".
4220 (check_simple_exit): Add checked cast to rtx_insn when invoking
4221 iv_number_of_iterations for now (until get_condition is
4222 strengthened).
4223
4224 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4225 "insn" from rtx to rtx_insn *.
4226 (analyze_insns_in_loop): Likewise for local "insn".
4227
4228 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4229
4230 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4231 to rtx_insn *.
4232 (struct invariant): Likewise.
4233 (hash_invariant_expr_1): Likewise for param "insn".
4234 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4235 (find_exits): Likewise for local "insn".
4236 (create_new_invariant): Likewise for param "insn".
4237 (check_dependencies): Likewise.
4238 (find_invariant_insn): Likewise.
4239 (record_uses): Likewise.
4240 (find_invariants_insn): Likewise.
4241 (find_invariants_bb): Likewise for local "insn".
4242 (get_pressure_class_and_nregs): Likewise for param "insn".
4243 (calculate_loop_reg_pressure): Likewise for local "insn".
4244
4245 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4246
4247 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4248 to rtx_insn *.
4249 (add_test): Likewise for locals "seq", "jump".
4250 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4251
4252 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4253
4254 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4255 rtx_insn *.
4256 (rebuild_jump_labels_chain): Likewise for param "chain".
4257
4258 * cfgexpand.c (pass_expand::execute): Add checked cast to
4259 rtx_insn * when calling rebuild_jump_labels_chain in region where
4260 we know e->insns.r is non-NULL.
4261
4262 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4263 rtx_insn *.
4264 (rebuild_jump_labels): Likewise.
4265 (rebuild_jump_labels_chain): Likewise for param "chain".
4266 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4267 (init_label_info): Likewise for param "f".
4268 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4269 "prev_nonjump_insn".
4270 (mark_all_labels): Likewise for param "f" and locals "insn",
4271 "prev_nonjump_insn".
4272
4273 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4274
4275 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4276 from rtx to rtx_insn *insn.
4277 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4278 (ira_add_allocno_copy): Likewise.
4279 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4280 rtx to rtx_insn *.
4281 (ira_create_copy): Likewise.
4282 (ira_add_allocno_copy): Likewise.
4283 (create_bb_allocnos): Likewise for local "insn".
4284 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4285 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4286 process_regs_for_copy for rtx_insn * param.
4287 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4288 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4289 process_regs_for_copy for rtx_insn * param.
4290 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4291 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4292 (record_operand_costs): Likewise.
4293 (scan_one_insn): Likewise for return type, and for param "insn".
4294 (process_bb_for_costs): Likewise for local "insn".
4295 (process_bb_node_for_hard_reg_moves): Likewise.
4296 * ira-emit.c (struct move): Likewise for field "insn".
4297 (create_move): Eliminate use of NULL_RTX when dealing with an
4298 rtx_insn *.
4299 (emit_move_list): Strengthen return type and locals "result",
4300 "insn" from rtx to rtx_insn *insn.
4301 (emit_moves): Likewise for locals "insns", "tmp".
4302 (ira_emit): Likewise for local "insn".
4303 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4304 "insn".
4305 (find_call_crossed_cheap_reg): Likewise.
4306 (process_bb_node_lives): Likewise for local "insn".
4307 * ira.c (decrease_live_ranges_number): Likewise.
4308 (compute_regs_asm_clobbered): Likewise.
4309 (build_insn_chain): Likewise.
4310 (find_moveable_pseudos): Likewise, also locals "def_insn",
4311 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4312 to rtx_insn **. Add a checked cast when assigning from
4313 "closest_use" into closest_uses array in a region where we know
4314 it's a non-NULL insn.
4315 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4316 to rtx_insn *.
4317 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4318 "last_interesting_insn", "uin".
4319 (move_unallocated_pseudos): Likewise for locals "def_insn",
4320 "move_insn", "newinsn".
4321
4322 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4323
4324 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4325 Strengthen locals "done_label", "do_error" from rtx to
4326 rtx_code_label *.
4327 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4328 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4329 rtx_code_label *.
4330 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4331 "done_label", "do_error" to rtx_code_label * and local "last" to
4332 rtx_insn *.
4333 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4334 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4335 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4336 "after_lopart_neg", "do_overflow", "hipart_different" to
4337 rtx_code_label * and local "last" to rtx_insn *.
4338
4339 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4340
4341 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4342 "insn" and "move_insn" from rtx to rtx_insn *.
4343
4344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4345
4346 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4347 rtx_insn *.
4348 (cheap_bb_rtx_cost_p): Likewise.
4349 (first_active_insn): Likewise for return type and local "insn".
4350 (last_active_insn): Likewise for return type and locals "insn",
4351 "head".
4352 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4353 "insn_b".
4354 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4355 "seq".
4356 (noce_try_move): Likewise for local "seq".
4357 (noce_try_store_flag): Likewise.
4358 (noce_try_store_flag_constants): Likewise.
4359 (noce_try_addcc): Likewise.
4360 (noce_try_store_flag_mask): Likewise.
4361 (noce_try_cmove): Likewise.
4362 (noce_try_minmax): Likewise.
4363 (noce_try_abs): Likewise.
4364 (noce_try_sign_mask): Likewise.
4365 (noce_try_bitop): Likewise.
4366 (noce_can_store_speculate_p): Likewise for local "insn".
4367 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4368 seq".
4369 (check_cond_move_block): Likewise for local "insn".
4370 (cond_move_convert_if_block): Likewise.
4371 (cond_move_process_if_block): Likewise for locals "seq",
4372 "loc_insn".
4373 (noce_find_if_block): Likewise for local "jump".
4374 (merge_if_block): Likewise for local "last".
4375 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4376 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4377 (block_has_only_trap): Likewise for return type and local "trap".
4378 (find_if_case_1): Likewise for local "jump".
4379 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4380 "insn".
4381
4382 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4383
4384 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4385 "last_insn", "loop_end" from rtx to rtx_insn *.
4386
4387 * hw-doloop.c (scan_loop): Likewise for local "insn".
4388 (discover_loop): Likewise for param "tail_insn".
4389 (discover_loops): Likewise for local "tail".
4390
4391 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4392 cast to rtx_insn * when assigning from an rtx local to a
4393 hwloop_info's "last_insn" field.
4394
4395 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4396
4397 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4398 (add_delay_dependencies): Strengthen local "pro" from rtx to
4399 rtx_insn *.
4400 (recompute_todo_spec): Likewise.
4401 (dep_cost_1): Likewise for locals "insn", "used".
4402 (schedule_insn): Likewise for local "dbg".
4403 (schedule_insn): Likewise for locals "pro", "next".
4404 (unschedule_insns_until): Likewise for local "con".
4405 (restore_pattern): Likewise for local "next".
4406 (estimate_insn_tick): Likewise for local "pro".
4407 (resolve_dependencies): Likewise for local "next".
4408 (fix_inter_tick): Likewise.
4409 (fix_tick_ready): Likewise for local "pro".
4410 (add_to_speculative_block): Likewise for locals "check", "twin",
4411 "pro".
4412 (sched_extend_bb): Likewise for locals "end", "insn".
4413 (init_before_recovery): Likewise for local "x".
4414 (sched_create_recovery_block): Likewise for local "barrier".
4415 (create_check_block_twin): Likewise for local "pro".
4416 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4417 "consumer".
4418 (unlink_bb_notes): Update for change to type of bb_header.
4419 Strengthen locals "prev", "label", "note", "next" from rtx to
4420 rtx_insn *.
4421 (clear_priorities): Likewise for local "pro".
4422
4423 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4424
4425 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4426 rtx_insn *.
4427 (test_insn): Likewise for this global.
4428 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4429 const rtx_insn *.
4430 (oprs_anticipatable_p): Likewise.
4431 (oprs_available_p): Likewise.
4432 (insert_expr_in_table): Strengthen param "insn" from rtx to
4433 rtx_insn *.
4434 (hash_scan_set): Likewise.
4435 (hash_scan_clobber): Likewise.
4436 (hash_scan_call): Likewise.
4437 (hash_scan_insn): Likewise.
4438 (compute_hash_table_work): Likewise for local "insn".
4439 (process_insert_insn): Likewise for return type and local "pat".
4440 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4441 "pat", "pat_end", "maybe_cc0_setter".
4442 (pre_edge_insert): Likewise for local "insn".
4443 (pre_insert_copy_insn): Likewise for param "insn".
4444 (pre_insert_copies): Likewise for local "insn".
4445 (struct set_data): Likewise for field "insn".
4446 (single_set_gcse): Likewise for param "insn".
4447 (gcse_emit_move_after): Likewise.
4448 (pre_delete): Likewise for local "insn".
4449 (update_bb_reg_pressure): Likewise for param "from" and local
4450 "insn".
4451 (should_hoist_expr_to_dom): Likewise for param "from".
4452 (hoist_code): Likewise for local "insn".
4453 (get_pressure_class_and_nregs): Likewise for param "insn".
4454 (calculate_bb_reg_pressure): Likewise for local "insn".
4455 (compute_ld_motion_mems): Likewise.
4456
4457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4458
4459 * genpeep.c (main): Rename param back from "uncast_ins1" to
4460 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4461 checked cast.
4462
4463 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4464
4465 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4466
4467 PR target/62195
4468 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4469 documentation to state it is only for VSX operations.
4470
4471 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4472 constraint only active if VSX.
4473
4474 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4475 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4476 (lfiwzx): Likewise.
4477
4478 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4479
4480 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4481 Strengthen local "insn" from rtx to rtx_insn *.
4482 (use_killed_between): Likewise for param "target_insn".
4483 (all_uses_available_at): Likewise for param "target_insn" and
4484 local "next".
4485 (update_df_init): Likewise for params "def_insn", "insn".
4486 (update_df): Likewise for param "insn".
4487 (try_fwprop_subst): Likewise for param "def_insn" and local
4488 "insn".
4489 (free_load_extend): Likewise for param "insn".
4490 (forward_propagate_subreg): Likewise for param "def_insn" and
4491 local "use_insn".
4492 (forward_propagate_asm): Likewise for param "def_insn" and local
4493 "use_insn".
4494 (forward_propagate_and_simplify): Likewise for param "def_insn"
4495 and local "use_insn".
4496 (forward_propagate_into): Likewise for locals "def_insn" and
4497 "use_insn".
4498
4499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4500
4501 * function.c (emit_initial_value_sets): Strengthen local "seq"
4502 from rtx to rtx_insn *.
4503 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4504 local "seq".
4505 (instantiate_virtual_regs): Likewise for local "insn".
4506 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4507 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4508 (expand_function_end): Likewise for locals "insn" and "seq".
4509 (epilogue_done): Likewise for local "insn".
4510 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4511 "last", "trial".
4512 (reposition_prologue_and_epilogue_notes): Likewise for locals
4513 "insn", "last", "note", "first".
4514 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4515 (pass_match_asm_constraints::execute): Likewise for local "insn".
4516
4517 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4518
4519 * output.h (final_scan_insn): Strengthen return type from rtx to
4520 rtx_insn *.
4521 (final_forward_branch_p): Likewise for param.
4522 (current_output_insn): Likewise for this global.
4523
4524 * final.c (rtx debug_insn): Likewise for this variable.
4525 (current_output_insn): Likewise.
4526 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4527 adding "insn" back in as an rtx_insn * with a checked cast, so
4528 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4529 first param.
4530 (compute_alignments): Strengthen local "label" from rtx to
4531 rtx_insn *.
4532 (shorten_branches): Rename param from "first" to "uncast_first",
4533 introducing a new local rtx_insn * "first" using a checked cast to
4534 effectively strengthen "first" from rtx to rtx_insn * without
4535 affecting the type signature. Strengthen locals "insn", "seq",
4536 "next", "label" from rtx to rtx_insn *.
4537 (change_scope): Strengthen param "orig_insn" and local "insn" from
4538 rtx to rtx_insn *.
4539 (final_start_function): 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 local "insn" from rtx to
4543 rtx_insn *.
4544 (dump_basic_block_info): Strengthen param "insn" from rtx to
4545 rtx_insn *.
4546 (final): 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 locals "insn", "next"
4550 from rtx to rtx_insn *.
4551 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4552 rtx_insn *.
4553 (call_from_call_insn): Strengthen param "insn" from rtx to
4554 rtx_call_insn *.
4555 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4556 introducing a new local rtx_insn * "insn" using a checked cast to
4557 effectively strengthen "insn" from rtx to rtx_insn * without
4558 affecting the type signature. Strengthen return type and locals
4559 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4560 now-redundant checked cast to rtx_insn * from both invocations of
4561 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4562 introducing a local "call_insn" for use when invoking
4563 call_from_call_insn.
4564 (notice_source_line): Strengthen param "insn" from rtx to
4565 rtx_insn *.
4566 (leaf_function_p): Likewise for local "insn".
4567 (final_forward_branch_p): Likewise.
4568 (leaf_renumber_regs): Likewise for param "first".
4569 (rest_of_clean_state): Likewise for locals "insn" and "next".
4570 (self_recursive_call_p): Likewise for param "insn".
4571 (collect_fn_hard_reg_usage): Likewise for local "insn".
4572 (get_call_fndecl): Likewise for param "insn".
4573 (get_call_cgraph_rtl_info): Likewise.
4574 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4575 introducing a new local rtx_insn * "insn" using a checked cast to
4576 effectively strengthen "insn" from rtx to rtx_insn * without
4577 affecting the type signature.
4578
4579 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4580 cast when assigning from param "insn" to current_output_insn.
4581 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4582 so that we can assign it back to current_output_insn.
4583
4584 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4585
4586 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4587 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4588 atmxt540s and atmxt540sreva devices.
4589 * config/avr/avr-tables.opt: Regenerate.
4590 * config/avr/t-multilib: Regenerate.
4591 * doc/avr-mmcu.texi: Regenerate.
4592
4593 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4594
4595 * expr.c (convert_move): Strengthen local "insns" from rtx to
4596 rtx_insn *.
4597 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4598 "top_label" from rtx to rtx_code_label *.
4599 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4600 rtx_insn *.
4601 (emit_single_push_insn): Likewise for locals "prev", "last".
4602 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4603 to rtx_code_label *.
4604 (store_constructor): Likewise for locals "loop_start", "loop_end".
4605 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4606 rtx_insn *.
4607 (expand_expr_real_2): Likewise.
4608 (expand_expr_real_1): Strengthen local "label" from rtx to
4609 rtx_code_label *.
4610
4611 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4612
4613 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4614 from rtx to rtx_insn *.
4615 (store_bit_field_1): Likewise.
4616 (extract_bit_field_1): Likewise.
4617 (expand_mult_const): Likewise for local "insns".
4618 (expmed_mult_highpart): Strengthen local "label" from rtx to
4619 rtx_code_label *.
4620 (expand_smod_pow2): Likewise.
4621 (expand_sdiv_pow2): Likewise.
4622 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4623 rtx_insn *. Strengthen locals "label", "label1", "label2",
4624 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4625 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4626 (emit_store_flag): Likewise.
4627 (emit_store_flag_force): Strengthen local "label" from rtx to
4628 rtx_code_label *.
4629 (do_cmp_and_jump): Likewise for param "label".
4630
4631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4632
4633 * explow.c (force_reg): Strengthen local "insn" from rtx to
4634 rtx_insn *.
4635 (adjust_stack_1): Likewise.
4636 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4637 "final_label", "available_label", "space_available" from rtx to
4638 rtx_code_label *.
4639 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4640 (anti_adjust_stack_and_probe): Likewise.
4641
4642 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4643
4644 * except.h (sjlj_emit_function_exit_after): Strengthen param
4645 "after" from rtx to rtx_insn *. This is only called with
4646 result of get_last_insn (in function.c) so type-change should be
4647 self-contained.
4648
4649 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4650 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4651 to rtx_insn *. These fields are only used from except.c so this
4652 type-change should be self-contained to this patch.
4653
4654 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4655 local "last" from rtx to rtx_insn *.
4656 (dw2_build_landing_pads): Likewise for local "seq".
4657 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4658 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4659 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4660 rtx to rtx_insn *.
4661 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4662 to rtx_insn *.
4663 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4664 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4665 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4666 referring to an insn. Strengthen local "dispatch_label" from
4667 rtx to rtx_code_label *.
4668 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4669 rtx_insn *.
4670 (expand_eh_return): Strengthen local "around_label" from
4671 rtx to rtx_code_label *.
4672 (convert_to_eh_region_ranges): Strengthen locals "iter",
4673 "last_action_insn", "first_no_action_insn",
4674 "first_no_action_insn_before_switch",
4675 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4676
4677 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4678
4679 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4680 from rtx to rtx_insn *.
4681 (cached_next_real_insn): Likewise.
4682 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4683 working with insns.
4684 (dwarf2out_var_location): Strengthen locals "next_real",
4685 "next_note", "expected_next_loc_note", "last_start", "insn" from
4686 rtx to rtx_insn *.
4687
4688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4689
4690 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4691 from rtx to rtx_insn *.
4692 (create_pseudo_cfg): Likewise for local "insn".
4693
4694 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4695
4696 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4697 from rtx to rtx_insn *.
4698 (df_bb_regno_last_def_find): Likewise.
4699
4700 * df-problems.c (df_rd_bb_local_compute): Likewise.
4701 (df_lr_bb_local_compute): Likewise.
4702 (df_live_bb_local_compute): Likewise.
4703 (df_chain_remove_problem): Likewise.
4704 (df_chain_create_bb): Likewise.
4705 (df_word_lr_bb_local_compute): Likewise.
4706 (df_remove_dead_eq_notes): Likewise for param "insn".
4707 (df_note_bb_compute): Likewise for local "insn".
4708 (simulate_backwards_to_point): Likewise.
4709 (df_md_bb_local_compute): Likewise.
4710
4711 * df-scan.c (df_scan_free_bb_info): Likewise.
4712 (df_scan_start_dump): Likewise.
4713 (df_scan_start_block): Likewise.
4714 (df_install_ref_incremental): Likewise for local "insn".
4715 (df_insn_rescan_all): Likewise.
4716 (df_reorganize_refs_by_reg_by_insn): Likewise.
4717 (df_reorganize_refs_by_insn_bb): Likewise.
4718 (df_recompute_luids): Likewise.
4719 (df_bb_refs_record): Likewise.
4720 (df_update_entry_exit_and_calls): Likewise.
4721 (df_bb_verify): Likewise.
4722
4723 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4724
4725 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4726 "first_note" from rtx to rtx_insn *.
4727 (get_node_of_insn): Likewise for param 2 "insn".
4728 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4729
4730 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4731 rtx_insn *.
4732 (mem_write_insn_p): Likewise.
4733 (mem_access_insn_p): Likewise.
4734 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4735 (def_has_ccmode_p): Likewise for param "insn".
4736 (add_cross_iteration_register_deps): Likewise for locals
4737 "def_insn" and "use_insn".
4738 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4739 (build_intra_loop_deps): Likewise for local "src_insn".
4740 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4741 to rtx_insn *.
4742 (get_node_of_insn): Likewise for param "insn".
4743
4744 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4745
4746 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4747 (deletable_insn_p): Strengthen param "insn" from rtx to
4748 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4749 find_call_stack_args, since this is guarded by CALL_P (insn).
4750 (marked_insn_p): Strengthen param "insn" from rtx to
4751 rtx_insn *.
4752 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4753 invoking find_call_stack_args, since this is guarded by
4754 CALL_P (insn).
4755 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4756 rtx_insn *; we know this is an insn since this was called by
4757 mark_nonreg_stores.
4758 (mark_nonreg_stores_2): Likewise.
4759 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4760 rtx_insn *.
4761 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4762 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4763 to rtx_insn *.
4764 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4765 from rtx to rtx_insn *.
4766 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4767 "next", "ref_insn".
4768 (delete_unmarked_insns): Likewise for locals "insn", "next".
4769 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4770 (mark_reg_dependencies): Likewise for param "insn".
4771 (rest_of_handle_ud_dce): Likewise for local "insn".
4772 (word_dce_process_block): Likewise.
4773 (dce_process_block): Likewise.
4774
4775 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4776
4777 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4778 from rtx to rtx_insn *.
4779 (struct change_cc_mode_args): Likewise for field "insn".
4780 (this_insn): Strengthen from rtx to rtx_insn *.
4781 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4782 with insn.
4783 (validate_canon_reg): Strengthen param "insn" from rtx to
4784 rtx_insn *.
4785 (canon_reg): Likewise.
4786 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4787 dealing with insn.
4788 (record_jump_equiv): Strengthen param "insn" from rtx to
4789 rtx_insn *.
4790 (try_back_substitute_reg): Likewise, also for locals "prev",
4791 "bb_head".
4792 (find_sets_in_insn): Likewise for param "insn".
4793 (canonicalize_insn): Likewise.
4794 (cse_insn): Likewise. Add a checked cast.
4795 (invalidate_from_clobbers): Likewise for param "insn".
4796 (invalidate_from_sets_and_clobbers): Likewise.
4797 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4798 dealing with insn.
4799 (cse_prescan_path): Strengthen local "insn" from rtx to
4800 rtx_insn *.
4801 (cse_extended_basic_block): Likewise for locals "insn" and
4802 "prev_insn".
4803 (cse_main): Likewise for param "f".
4804 (check_for_label_ref): Likewise for local "insn".
4805 (set_live_p): Likewise for second param ("insn").
4806 (insn_live_p): Likewise for first param ("insn") and for local
4807 "next".
4808 (cse_change_cc_mode_insn): Likewise for first param "insn".
4809 (cse_change_cc_mode_insns): Likewise for first and second params
4810 "start" and "end".
4811 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4812 and "end".
4813 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4814 "cc_src_insn".
4815
4816 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4818 Anna Tikhonova <anna.tikhonova@intel.com>
4819 Ilya Tocar <ilya.tocar@intel.com>
4820 Andrey Turetskiy <andrey.turetskiy@intel.com>
4821 Ilya Verbin <ilya.verbin@intel.com>
4822 Kirill Yukhin <kirill.yukhin@intel.com>
4823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4824
4825 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4826 New.
4827 * config/i386/sse.md
4828 (define_mode_iterator VI248_AVX2): Delete.
4829 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4830 (define_mode_iterator VI48_AVX2): Ditto.
4831 (define_insn <shift_insn><mode>3): Delete.
4832 (define_insn "<shift_insn><mode>3<mask_name>" with
4833 VI2_AVX2_AVX512BW): New.
4834 (define_insn "<shift_insn><mode>3<mask_name>" with
4835 VI48_AVX2): Ditto.
4836
4837 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4839 Anna Tikhonova <anna.tikhonova@intel.com>
4840 Ilya Tocar <ilya.tocar@intel.com>
4841 Andrey Turetskiy <andrey.turetskiy@intel.com>
4842 Ilya Verbin <ilya.verbin@intel.com>
4843 Kirill Yukhin <kirill.yukhin@intel.com>
4844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4845
4846 * config/i386/sse.md
4847 (define_mode_iterator VI4F_BRCST32x2): New.
4848 (define_mode_attr 64x2_mode): Ditto.
4849 (define_mode_attr 32x2mode): Ditto.
4850 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4851 with VI4F_BRCST32x2): Ditto.
4852 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4853 with V16FI mode iterator): Ditto.
4854 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4855 with V16FI): Ditto.
4856 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4857 with VI8F_BRCST64x2): Ditto.
4858
4859 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4860 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4861 Anna Tikhonova <anna.tikhonova@intel.com>
4862 Ilya Tocar <ilya.tocar@intel.com>
4863 Andrey Turetskiy <andrey.turetskiy@intel.com>
4864 Ilya Verbin <ilya.verbin@intel.com>
4865 Kirill Yukhin <kirill.yukhin@intel.com>
4866 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4867
4868 * config/i386/sse.md
4869 (define_mode_iterator VI8_AVX512VL): New.
4870 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4871
4872 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4873
4874 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4875 (define_mode_iterator V48_AVX512VL): New.
4876 (define_mode_iterator V12_AVX512VL): Ditto.
4877 (define_insn <avx512>_load<mode>_mask): Split into two similar
4878 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4879 Refactor output template.
4880 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4881
4882 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4883
4884 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4885 rtx_insn *.
4886 (reg_available_p): Likewise for param "insn".
4887 (insert_set_in_table): Likewise.
4888 (hash_scan_set): Likewise.
4889 (hash_scan_insn): Likewise.
4890 (make_set_regs_unavailable): Likewise.
4891 (compute_hash_table_work): Likewise for local "insn".
4892 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4893 const rtx_insn *.
4894 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4895 (try_replace_reg): Likewise.
4896 (find_avail_set): Likewise.
4897 (cprop_jump): Likewise for params "setcc", "jump".
4898 (constprop_register): Likewise for param "insn".
4899 (cprop_insn): Likewise.
4900 (do_local_cprop): Likewise.
4901 (local_cprop_pass): Likewise for local "insn".
4902 (bypass_block): Likewise for params "setcc" and "jump".
4903 (bypass_conditional_jumps): Likewise for locals "setcc" and
4904 "insn".
4905 (one_cprop_pass): Likewise for local "insn".
4906
4907 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4908
4909 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4910 from rtx to rtx_insn *.
4911 (struct comparison): Likewise, also for field "prev_clobber".
4912 (conforming_compare): Likewise for param "insn".
4913 (arithmetic_flags_clobber_p): Likewise.
4914 (find_flags_uses_in_insn): Likewise.
4915 (find_comparison_dom_walker::before_dom_children): Likewise for
4916 locals "insn", "next", "last_clobber".
4917 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4918
4919 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4920
4921 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4922 "insn" from rtx to rtx_insn *.
4923 (single_set_for_csa): Likewise for param "insn".
4924 (record_one_stack_ref): Likewise.
4925 (try_apply_stack_adjustment): Likewise.
4926 (struct record_stack_refs_data): Likewise for field "insn".
4927 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4928 (prev_active_insn_bb): Likewise for return type and param "insn".
4929 (next_active_insn_bb): Likewise.
4930 (force_move_args_size_note): Likewise for params "prev" and "last"
4931 and locals "test", "next_candidate", "prev_candidate".
4932 (combine_stack_adjustments_for_block): Strengthen locals
4933 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4934 rtx_insn *.
4935
4936 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4937
4938 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4939 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4940 (subst_insn): Likewise for this variable.
4941 (added_links_insn): Likewise.
4942 (struct insn_link): Likewise for field "insn".
4943 (alloc_insn_link): Likewise for param "insn".
4944 (struct undobuf): Likewise for field "other_insn".
4945 (find_single_use): Likewise for param "insn" and local "next".
4946 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4947 (delete_noop_moves): Likewise for locals "insn", "next".
4948 (create_log_links): Likewise for locals "insn", "use_insn".
4949 Strengthen local "next_use" from rtx * to rtx_insn **.
4950 (insn_a_feeds_b): Likewise for params "a", "b".
4951 (combine_instructions): Likewise for param "f" and locals "insn",
4952 "next", "prev", "first", "last_combined_insn", "link", "link1",
4953 "temp". Replace use of NULL_RTX with NULL when referring to
4954 insns.
4955 (setup_incoming_promotions): Likewise for param "first"
4956 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4957 (can_combine_p): Likewise for params "insn", "i3", "pred",
4958 "pred2", "succ", "succ2" and for local "p".
4959 (combinable_i3pat): Likewise for param "i3".
4960 (cant_combine_insn_p): Likewise for param "insn".
4961 (likely_spilled_retval_p): Likewise.
4962 (adjust_for_new_dest): Likewise.
4963 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4964 (try_combine): Likewise for return type and for params "i3", "i2",
4965 "i1", "i0", "last_combined_insn", and for locals "insn",
4966 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4967 "i0_insn". Eliminate local "tem" in favor of new locals
4968 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4969 checked cast for now to rtx_insn * on the return type of
4970 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4971 insns.
4972 (find_split_point): Strengthen param "insn" from rtx to
4973 rtx_insn *.
4974 (simplify_set): Likewise for local "other_insn".
4975 (recog_for_combine): Likewise for param "insn".
4976 (record_value_for_reg): Likewise.
4977 (record_dead_and_set_regs_1): Likewise for local
4978 "record_dead_insn".
4979 (record_dead_and_set_regs): Likewise for param "insn".
4980 (record_promoted_value): Likewise.
4981 (check_promoted_subreg): Likewise.
4982 (get_last_value_validate): Likewise.
4983 (reg_dead_at_p): Likewise.
4984 (move_deaths): Likewise for param "to_insn".
4985 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4986 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4987 in favor of new locals "tem_note" and "tem_insn", the latter being
4988 an rtx_insn *.
4989 (distribute_links): Strengthen locals "place", "insn" from rtx to
4990 rtx_insn *.
4991
4992 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4993
4994 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4995 than a const_rtx.
4996 (can_delete_label_p): Require a const rtx_code_label * rather than
4997 a const_rtx.
4998 (delete_insn): Add checked cast to rtx_code_label * when we know
4999 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
5000 rtx to rtx_insn *.
5001 (delete_insn_chain): Strengthen locals "prev" and "current" from
5002 rtx to rtx_insn *. Add a checked cast when assigning from
5003 "finish" (strengthening the params will come later). Add a
5004 checked cast to rtx_note * in region where we know
5005 NOTE_P (current).
5006 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
5007 rtx_insn *.
5008 (compute_bb_for_insn): Likewise.
5009 (free_bb_for_insn): Likewise for local "insn".
5010 (compute_bb_for_insn): Likewise.
5011 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
5012 local "insn" from rtx to rtx_insn *
5013 (flow_active_insn_p): Require a const rtx_insn * rather than a
5014 const_rtx.
5015 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
5016 rtx_insn *.
5017 (can_fallthru): Likewise for locals "insn" and "insn2".
5018 (bb_note): Likewise for local "note".
5019 (first_insn_after_basic_block_note): Likewise for local "note" and
5020 for return type.
5021 (rtl_split_block): Likewise for locals "insn" and "next".
5022 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
5023 "end".
5024 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
5025 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
5026 "prev", "tmp".
5027 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
5028 them), "kill_from", "barrier", "new_insn".
5029 (patch_jump_insn): Likewise for params "insn", "old_label".
5030 (redirect_branch_edge): Likewise for locals "old_label", "insn".
5031 (force_nonfallthru_and_redirect): Likewise for locals "insn",
5032 "old_label", "new_label".
5033 (rtl_tidy_fallthru_edge): Likewise for local "q".
5034 (rtl_split_edge): Likewise for locals "before", "last".
5035 (commit_one_edge_insertion): Likewise for locals "before",
5036 "after", "insns", "tmp", "last", adding a checked cast where
5037 currently necessary.
5038 (commit_edge_insertions): Likewise.
5039 (rtl_dump_bb): Likewise for locals "insn", "last".
5040 (print_rtl_with_bb): Likewise for local "x".
5041 (rtl_verify_bb_insns): Likewise for local "x".
5042 (rtl_verify_bb_pointers): Likewise for local "insn".
5043 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
5044 "head", "end".
5045 (rtl_verify_fallthru): Likewise for local "insn".
5046 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
5047 (purge_dead_edges): Likewise for local "insn".
5048 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
5049 (skip_insns_after_block): Likewise for return type and for locals
5050 "insn", "last_insn", "next_head", "prev".
5051 (record_effective_endpoints): Likewise for locals "next_insn",
5052 "insn", "end".
5053 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
5054 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
5055 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
5056 (duplicate_insn_chain): For now, add checked cast from rtx to
5057 rtx_insn * when returning insn.
5058 (cfg_layout_duplicate_bb): Likewise for local "insn".
5059 (cfg_layout_delete_block): Likewise for locals "insn", "next",
5060 "prev", "remaints".
5061 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
5062 (rtl_block_empty_p): Likewise.
5063 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
5064 "split_point", "last".
5065 (rtl_block_ends_with_call_p): Likewise for local "insn".
5066 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
5067 const rtx_insn *.
5068 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
5069 "split_at_insn" from rtx to rtx_insn *.
5070 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
5071 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
5072 to const rtx_insn *.
5073 (rtl_account_profile_record): Likewise.
5074
5075 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5076
5077 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
5078 rtx to rtx_insn *.
5079 (average_num_loop_insns): Likewise.
5080 (init_set_costs): Likewise for local "seq".
5081 (seq_cost): Likewise for param "seq", from const_rtx to const
5082 rtx_insn *.
5083
5084 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5085
5086 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
5087 rtx to rtx_insn *.
5088
5089 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5090
5091 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
5092 "f1" and "f2" from rtx * to rtx_insn **.
5093 (flow_find_head_matching_sequence): Likewise.
5094
5095 * cfgcleanup.c (try_simplify_condjump): Strengthen local
5096 "cbranch_insn" from rtx to rtx_insn *.
5097 (thread_jump): Likewise for local "insn".
5098 (try_forward_edges): Likewise for local "last".
5099 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
5100 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
5101 "real_b_end".
5102 (can_replace_by): Likewise for params "i1", "i2".
5103 (old_insns_match_p): Likewise.
5104 (merge_notes): Likewise.
5105 (walk_to_nondebug_insn): Likewise for param "i1".
5106 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
5107 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
5108 "afterlast1", "afterlast2" from rtx to rtx_insn *.
5109 (flow_find_head_matching_sequence): Strengthen params "f1" and
5110 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
5111 "last1", "last2", "beforelast1", "beforelast2" from rtx to
5112 rtx_insn *.
5113 (outgoing_edges_match): Likewise for locals "last1", "last2".
5114 (try_crossjump_to_edge): Likewise for local "insn".
5115 Replace call to for_each_rtx with for_each_rtx_in_insn.
5116
5117 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
5118 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
5119 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
5120 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
5121 (try_optimize_cfg): Strengthen local "last" from rtx to
5122 rtx_insn *.
5123 (delete_dead_jumptables): Likewise for locals "insn", "next",
5124 "label".
5125
5126 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
5127 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
5128 "rtx else_first_tail", to reflect the basic-block.h changes above.
5129
5130 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5131
5132 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
5133 rtx_insn *.
5134 (purge_dead_tablejump_edges): Likewise.
5135 (find_bb_boundaries): Likewise for locals "insn", "end",
5136 "flow_transfer_insn".
5137
5138 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5139
5140 * caller-save.c (save_call_clobbered_regs): Strengthen locals
5141 "ins" and "prev" from rtx to rtx_insn *.
5142
5143 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5144
5145 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
5146 rtx_insn *.
5147 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
5148 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
5149 "scan_start".
5150 (load_register_parameters): Likewise for local "before_arg".
5151 (check_sibcall_argument_overlap): Likewise for param "insn".
5152 (expand_call): Likewise for locals "normal_call_insns",
5153 "tail_call_insns", "insns", "before_call", "after_args",
5154 "before_arg", "last", "prev". Strengthen one of the "last" from
5155 rtx to rtx_call_insn *.
5156 (fixup_tail_calls): Strengthen local "insn" from rtx to
5157 rtx_insn *.
5158 (emit_library_call_value_1): Likewise for locals "before_call" and
5159 "last".
5160
5161 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5162
5163 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
5164 and "last" from rtx to rtx_insn *.
5165 (expand_builtin_nonlocal_goto): Likewise for local "insn".
5166 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
5167 rtx_call_insn *.
5168 (expand_errno_check): Strengthen local "lab" from rtx to
5169 rtx_code_label *.
5170 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
5171 rtx_insn *.
5172 (expand_builtin_mathfn_2): Likewise.
5173 (expand_builtin_mathfn_ternary): Likewise.
5174 (expand_builtin_mathfn_3): Likewise.
5175 (expand_builtin_interclass_mathfn): Likewise for local "last".
5176 (expand_builtin_int_roundingfn): Likewise for local "insns".
5177 (expand_builtin_int_roundingfn_2): Likewise.
5178 (expand_builtin_strlen): Likewise for local "before_strlen".
5179 (expand_builtin_strncmp): Likewise for local "seq".
5180 (expand_builtin_signbit): Likewise for local "last".
5181 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
5182 from rtx to rtx_code_label *.
5183 (expand_stack_restore): Strengthen local "prev" from rtx to
5184 rtx_insn *.
5185
5186 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5187
5188 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
5189 to rtx_insn *.
5190 (struct btr_def_s): Likewise.
5191 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
5192 const rtx_insn *.
5193 (add_btr_def): Likewise.
5194 (new_btr_user): Likewise.
5195 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
5196 rtx to rtx_insn *.
5197 (link_btr_uses): Likewise.
5198 (move_btr_def): Likewise for locals "insp", "old_insn",
5199 "new_insn". Add checked cast to rtx_insn * for now on result of
5200 gen_move_insn.
5201 (can_move_up): Strengthen param "insn" from const_rtx to
5202 const rtx_insn *.
5203
5204 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5205
5206 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5207 rtx_insn *.
5208 (get_uncond_jump_length): Likewise for locals "label", "jump".
5209 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5210 "jump", "insn".
5211 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5212 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5213 (find_jump_block): Likewise for local "insn".
5214 (fix_crossing_conditional_branches): Likewise for locals
5215 "old_jump", "new_jump".
5216 (fix_crossing_unconditional_branches): Likewise for locals
5217 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5218 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5219
5220 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5221
5222 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5223 rtx to rtx_insn *.
5224 (struct mem_insn): Likewise for field "insn".
5225 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5226 (reg_next_inc_use): Likewise.
5227 (reg_next_def): Likewise.
5228 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5229 from rtx to rtx_insn *.
5230 (move_insn_before): Likewise for param "next_insn" and local "insns".
5231 (attempt_change): Likewise for local "mov_insn".
5232 (try_merge): Likewise for param "last_insn".
5233 (get_next_ref): Likewise for return type and local "insn".
5234 Strengthen param "next_array" from rtx * to rtx_insn **.
5235 (parse_add_or_inc): Strengthen param "insn" from rtx to
5236 rtx_insn *.
5237 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5238 the latter).
5239 (merge_in_block): Likewise for locals "insn", "curr",
5240 "other_insn".
5241 (pass_inc_dec::execute): Update allocations of the arrays to
5242 reflect the stronger types.
5243
5244 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5245
5246 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5247 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5248 from rtx to rtx_code_label *.
5249
5250 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5251
5252 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5253 to rtx_insn *.
5254
5255 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5256
5257 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5258 generated a warning and prevented bootstrapping the compiler.
5259
5260 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5261
5262 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5263 rtx_insn *.
5264
5265 * jump.c (delete_related_insns): Likewise, also for locals "next"
5266 and "prev".
5267
5268 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5269
5270 * genautomata.c (output_internal_insn_latency_func): When writing
5271 the function "internal_insn_latency" to insn-automata.c,
5272 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5273 allowing the optional guard function of (define_bypass) clauses to
5274 expect a pair of rtx_insn *, rather than a pair of rtx.
5275 (output_insn_latency_func): When writing the function
5276 "insn_latency", add an "uncast_" prefix to params "insn" and
5277 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5278 using checked casts from the params, thus enabling the above
5279 change to the generated "internal_insn_latency" function.
5280
5281 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5282
5283 PR tree-optimization/62091
5284 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5285 handle correctly arrays.
5286 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5287 inheritance binfos.
5288 (record_known_type): Walk into inner type.
5289 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5290 condition on no type changes.
5291
5292 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5293
5294 * genattrtab.c (write_attr_get): Within the generated get_attr_
5295 functions, rename param "insn" to "uncast_insn" and reintroduce
5296 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5297 is an rtx_insn * within insn-attrtab.c
5298
5299 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5300
5301 * output.h (peephole): Strengthen return type from rtx to
5302 rtx_insn *.
5303 * rtl.h (delete_for_peephole): Likewise for both params.
5304 * genpeep.c (main): In generated "peephole" function, strengthen
5305 return type and local "insn" from rtx to rtx_insn *. For now,
5306 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5307 rtx_insn *, with a checked cast.
5308 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5309 locals "insn", "next", "prev" from rtx to rtx_insn *.
5310
5311 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5312
5313 PR tree-optimization/62112
5314 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5315 * gimple-iterator.h (gsi_replace): Return bool.
5316 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5317 moved from ref_may_alias_global_p.
5318 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5319 New overloads.
5320 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5321 (stmt_kills_ref_p_1): Rename...
5322 (stmt_kills_ref_p): ... to this.
5323 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5324 stmt_kills_ref_p): Declare.
5325 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5326 Move the self-assignment case...
5327 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5328
5329 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5330
5331 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5332
5333 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5334 "after". For now, don't strengthen param "trial", which requires
5335 adding checked casts when returning it.
5336
5337 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5338
5339 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5340 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5341 "var_location" hook from rtx to rtx_insn *.
5342 (debug_nothing_rtx): Delete in favor of...
5343 (debug_nothing_rtx_code_label): New prototype.
5344 (debug_nothing_rtx_rtx): Delete unused prototype.
5345 (debug_nothing_rtx_insn): New prototype.
5346
5347 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5348 invoking debug_hooks->var_location (in two places, one in a NOTE
5349 case of a switch statement, the other guarded by a CALL_P
5350 conditional. Add checked cast to rtx_code_label * when invoking
5351 debug_hooks->label (within CODE_LABEL case of switch statement).
5352
5353 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5354 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5355 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5356 (xcoff_debug_hooks): Likewise.
5357 * debug.c (do_nothing_debug_hooks): Likewise.
5358 (debug_nothing_rtx): Delete in favor of...
5359 (debug_nothing_rtx_insn): New function.
5360 (debug_nothing_rtx_rtx): Delete unused function.
5361 (debug_nothing_rtx_code_label): New function.
5362 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5363 debug_nothing_rtx to debug_nothing_rtx_code_label.
5364 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5365 to rtx_insn *.
5366 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5367 debug_nothing_rtx to debug_nothing_rtx_insn.
5368 (sdbout_label): Strengthen param "insn" from rtx to
5369 rtx_code_label *.
5370 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5371 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5372 "var_location" hook from debug_nothing_rtx to
5373 debug_nothing_rtx_insn.
5374
5375 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5376
5377 * recog.h (insn_output_fn): Update this function typedef to match
5378 the changes below to the generated output functions, strengthening
5379 the 2nd param from rtx to rtx_insn *.
5380
5381 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5382 insn when invoking an output function, to match the new signature
5383 of insn_output_fn with a stronger second param.
5384
5385 * genconditions.c (write_header): In the generated code for
5386 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5387 to match the other changes in this patch.
5388
5389 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5390 the generated "gen_" functions from rtx to rtx_insn * within their
5391 implementations.
5392
5393 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5394 the subfunctions within the generated "recog_", "split", "peephole2"
5395 function trees from rtx to rtx_insn *. For now, the top-level
5396 generated functions ("recog", "split", "peephole2") continue to
5397 take a plain rtx for "insn", to avoid introducing dependencies on
5398 other patches. Rename this 2nd param from "insn" to
5399 "uncast_insn", and reintroduce "insn" as a local variable of type
5400 rtx_insn *, initialized at the top of the generated function with
5401 a checked cast on "uncast_insn".
5402 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5403 the generated "gen_" functions from rtx to rtx_insn * within their
5404 prototypes.
5405
5406 * genoutput.c (process_template): Strengthen the 2nd param within
5407 the generated "output_" functions "insn" from rtx to rtx_insn *.
5408
5409 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5410
5411 * tree-profile.c (tree_profiling): Skip external functions
5412 when doing coverage instrumentation.
5413 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5414
5415 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5416
5417 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5418 (vec_mergee): Likewise.
5419 (vec_mergeo): Likewise.
5420 (vec_cntlz): Likewise.
5421 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5422 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5423 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5424 VMRGEW, and VMRGOW.
5425 * doc/extend.texi: Document various forms of vec_cpsgn,
5426 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5427 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5428 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5429 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5430 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5431
5432 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5433
5434 * config/rs6000/rs6000.c (context.h): New include.
5435 (tree-pass.h): Likewise.
5436 (make_pass_analyze_swaps): New decl.
5437 (rs6000_option_override): Register pass_analyze_swaps.
5438 (swap_web_entry): New subsclass of web_entry_base (df.h).
5439 (special_handling_values): New enum.
5440 (union_defs): New function.
5441 (union_uses): Likewise.
5442 (insn_is_load_p): Likewise.
5443 (insn_is_store_p): Likewise.
5444 (insn_is_swap_p): Likewise.
5445 (rtx_is_swappable_p): Likewise.
5446 (insn_is_swappable_p): Likewise.
5447 (chain_purpose): New enum.
5448 (chain_contains_only_swaps): New function.
5449 (mark_swaps_for_removal): Likewise.
5450 (swap_const_vector_halves): Likewise.
5451 (adjust_subreg_index): Likewise.
5452 (permute_load): Likewise.
5453 (permute_store): Likewise.
5454 (handle_special_swappables): Likewise.
5455 (replace_swap_with_copy): Likewise.
5456 (dump_swap_insn_table): Likewise.
5457 (rs6000_analyze_swaps): Likewise.
5458 (pass_data_analyze_swaps): New pass_data.
5459 (pass_analyze_swaps): New rtl_opt_pass.
5460 (make_pass_analyze_swaps): New function.
5461 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5462
5463 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5464
5465 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5466 type from rtx to rtx_insn *.
5467 (create_copy_of_insn_rtx): Likewise.
5468 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5469 (create_copy_of_insn_rtx): Likewise, also for local "res".
5470
5471 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5472
5473 * rtl.h (find_first_parameter_load): Strengthen return type from
5474 rtx to rtx_insn *.
5475 * rtlanal.c (find_first_parameter_load): Strengthen return type
5476 from rtx to rtx_insn *. Add checked cast for now, to postpone
5477 strengthening the params.
5478
5479 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5480
5481 PR fortran/44054
5482 * diagnostic.c: Set default caret.
5483 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5484 line is needed.
5485 * diagnostic.h (struct diagnostic_context):
5486
5487 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5488
5489 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5490 (sel_bb_head): Strengthen return type insn_t (currently just an
5491 rtx) to rtx_insn *.
5492 (sel_bb_end): Likewise.
5493
5494 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5495 (sel_bb_head): Strengthen return type and local "head" from
5496 insn_t (currently just an rtx) to rtx_insn *.
5497 (sel_bb_end): Likewise for return type.
5498 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5499 working with insn.
5500
5501 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5502
5503 * basic-block.h (get_last_bb_insn): Strengthen return type from
5504 rtx to rtx_insn *.
5505 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5506 end".
5507
5508 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5509
5510 PR fortran/44054
5511 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5512 to here ...
5513 (diagnostic_report_diagnostic): ... from here.
5514 * toplev.c (general_init): Move code to c-family.
5515
5516 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5517
5518 * df.h (web_entry_base): Replace existing struct web_entry with a
5519 new class web_entry_base with only the predecessor member.
5520 (unionfind_root): Remove declaration and move to class member.
5521 (unionfind_union): Remove declaration and move to friend
5522 function.
5523 (union_defs): Remove declaration.
5524 * web.c (web_entry_base::unionfind_root): Modify to be member
5525 function and adjust accessors.
5526 (unionfind_union): Modify to be friend function and adjust
5527 accessors.
5528 (web_entry): New subclass of web_entry_base containing the reg
5529 member.
5530 (union_match_dups): Modify for struct -> class changes.
5531 (union_defs): Likewise.
5532 (entry_register): Likewise.
5533 (pass_web::execute): Likewise.
5534
5535 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5536
5537 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5538 builtin define __VEC_ELEMENT_REG_ORDER__.
5539
5540 2014-08-20 Martin Jambor <mjambor@suse.cz>
5541 Wei Mi <wmi@google.com>
5542
5543 PR ipa/60449
5544 PR middle-end/61776
5545 * tree-ssa-operands.c (update_stmt_operands): Remove
5546 MODIFIED_NORETURN_CALLS.
5547 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5548 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5549 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5550 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5551 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5552 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5553 (gimple_call_set_ctrl_altering): New func.
5554 (gimple_call_ctrl_altering_p): Ditto.
5555 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5556 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5557 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5558 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5559 remove MODIFIED_NORETURN_CALLS.
5560
5561 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5562
5563 * coverage.c (coverage_compute_profile_id): Return non-0;
5564 also handle symbols with unique name.
5565 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5566
5567 2014-08-20 Steve Ellcey <sellcey@mips.com>
5568
5569 PR middle-end/49191
5570 * doc/sourcebuild.texi (non_strict_align): New.
5571
5572 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5573
5574 * cgraphunit.c (ipa_passes, compile): Reshedule
5575 symtab_remove_unreachable_nodes passes; update comments.
5576 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5577 TODO_remove_functions before the pass; the functions ought to be
5578 already removed.
5579 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5580 TODO_remove_functions.
5581 * passes.c (pass_data_early_local_passes): Do not schedule function
5582 removal.
5583 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5584
5585 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5586
5587 PR c/59304
5588 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5589 before setting the option.
5590 * diagnostic.c (diagnostic_classify_diagnostic): Record
5591 command-line status.
5592
5593 2014-08-20 Richard Biener <rguenther@suse.de>
5594
5595 PR lto/62190
5596 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5597 to build uint{16,32,64}_type_node.
5598
5599 2014-08-20 Terry Guo <terry.guo@arm.com>
5600
5601 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5602 with immediate_operand.
5603
5604 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5605
5606 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5607 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5608 NULL.
5609
5610 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5611
5612 PR preprocessor/51303
5613 * incpath.c (remove_duplicates): Use cpp_warning.
5614
5615 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5616
5617 PR c/60975
5618 PR c/53063
5619 * doc/options.texi (CPP): Document it.
5620 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5621 * optc-gen.awk: Handle CPP.
5622 * opth-gen.awk: Likewise.
5623
5624 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5625
5626 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5627 rtx_insn *.
5628 (duplicate_insn_chain): Likewise.
5629 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5630 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5631 checked cast for now (until we can strengthen the params in the
5632 same way).
5633 (duplicate_insn_chain): Likewise.
5634
5635 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5636
5637 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5638 rtx_insn *.
5639 (prev_cc0_setter): Likewise.
5640
5641 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5642 rtx_insn *, adding checked casts for now as necessary.
5643 (prev_cc0_setter): Likewise.
5644
5645 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5646
5647 * expr.h (emit_move_insn): Strengthen return type from rtx to
5648 rtx_insn *.
5649 (emit_move_insn_1): Likewise.
5650 (emit_move_complex_push): Likewise.
5651 (emit_move_complex_parts): Likewise.
5652
5653 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5654 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5655 with insns.
5656 (emit_move_complex_push): Strengthen return type from rtx to
5657 rtx_insn *.
5658 (emit_move_complex): Likewise, also for local "ret".
5659 (emit_move_ccmode): Likewise.
5660 (emit_move_multi_word): Likewise for return type and locals
5661 "last_insn", "seq".
5662 (emit_move_insn_1): Likewise for return type and locals "result",
5663 "ret".
5664 (emit_move_insn): Likewise for return type and local "last_insn".
5665 (compress_float_constant): Likewise.
5666
5667 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5668
5669 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5670 from rtx to rtx_insn *.
5671
5672 * rtl.h (emit_insn_before): Likewise.
5673 (emit_insn_before_noloc): Likewise.
5674 (emit_insn_before_setloc): Likewise.
5675 (emit_jump_insn_before): Likewise.
5676 (emit_jump_insn_before_noloc): Likewise.
5677 (emit_jump_insn_before_setloc): Likewise.
5678 (emit_call_insn_before): Likewise.
5679 (emit_call_insn_before_noloc): Likewise.
5680 (emit_call_insn_before_setloc): Likewise.
5681 (emit_debug_insn_before): Likewise.
5682 (emit_debug_insn_before_noloc): Likewise.
5683 (emit_debug_insn_before_setloc): Likewise.
5684 (emit_label_before): Likewise.
5685 (emit_insn_after): Likewise.
5686 (emit_insn_after_noloc): Likewise.
5687 (emit_insn_after_setloc): Likewise.
5688 (emit_jump_insn_after): Likewise.
5689 (emit_jump_insn_after_noloc): Likewise.
5690 (emit_jump_insn_after_setloc): Likewise.
5691 (emit_call_insn_after): Likewise.
5692 (emit_call_insn_after_noloc): Likewise.
5693 (emit_call_insn_after_setloc): Likewise.
5694 (emit_debug_insn_after): Likewise.
5695 (emit_debug_insn_after_noloc): Likewise.
5696 (emit_debug_insn_after_setloc): Likewise.
5697 (emit_label_after): Likewise.
5698 (emit_insn): Likewise.
5699 (emit_debug_insn): Likewise.
5700 (emit_jump_insn): Likewise.
5701 (emit_call_insn): Likewise.
5702 (emit_label): Likewise.
5703 (gen_clobber): Likewise.
5704 (emit_clobber): Likewise.
5705 (gen_use): Likewise.
5706 (emit_use): Likewise.
5707 (emit): Likewise.
5708
5709 (emit_barrier_before): Strengthen return type from rtx to
5710 rtx_barrier *.
5711 (emit_barrier_after): Likewise.
5712 (emit_barrier): Likewise.
5713
5714 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5715 from rtx to rtx_insn *. Add checked casts for now when converting
5716 "last" from rtx to rtx_insn *.
5717 (emit_insn_before_noloc): Likewise for return type.
5718 (emit_jump_insn_before_noloc): Likewise.
5719 (emit_call_insn_before_noloc): Likewise.
5720 (emit_debug_insn_before_noloc): Likewise.
5721 (emit_barrier_before): Strengthen return type and local "insn"
5722 from rtx to rtx_barrier *.
5723 (emit_label_before): Strengthen return type from rtx to
5724 rtx_insn *. Add checked cast for now when returning param
5725 (emit_pattern_after_noloc): Strengthen return type from rtx to
5726 rtx_insn *. Add checked casts for now when converting "last" from
5727 rtx to rtx_insn *.
5728 (emit_insn_after_noloc): Strengthen return type from rtx to
5729 rtx_insn *.
5730 (emit_jump_insn_after_noloc): Likewise.
5731 (emit_call_insn_after_noloc): Likewise.
5732 (emit_debug_insn_after_noloc): Likewise.
5733 (emit_barrier_after): Strengthen return type from rtx to
5734 rtx_barrier *.
5735 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5736 Add checked cast for now when converting "label" from rtx to
5737 rtx_insn *.
5738 (emit_pattern_after_setloc): Strengthen return type from rtx to
5739 rtx_insn *. Add checked casts for now when converting "last" from
5740 rtx to rtx_insn *.
5741 (emit_pattern_after): Strengthen return type from rtx to
5742 rtx_insn *.
5743 (emit_insn_after_setloc): Likewise.
5744 (emit_insn_after): Likewise.
5745 (emit_jump_insn_after_setloc): Likewise.
5746 (emit_jump_insn_after): Likewise.
5747 (emit_call_insn_after_setloc): Likewise.
5748 (emit_call_insn_after): Likewise.
5749 (emit_debug_insn_after_setloc): Likewise.
5750 (emit_debug_insn_after): Likewise.
5751 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5752 when converting "last" from rtx to rtx_insn *.
5753 (emit_pattern_before): Strengthen return type from rtx to
5754 rtx_insn *.
5755 (emit_insn_before_setloc): Likewise.
5756 (emit_insn_before): Likewise.
5757 (emit_jump_insn_before_setloc): Likewise.
5758 (emit_jump_insn_before): Likewise.
5759 (emit_call_insn_before_setloc): Likewise.
5760 (emit_call_insn_before): Likewise.
5761 (emit_debug_insn_before_setloc): Likewise.
5762 (emit_debug_insn_before): Likewise.
5763 (emit_insn): Strengthen return type and locals "last", "insn",
5764 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5765 within cases where we know we have an insn.
5766 (emit_debug_insn): Likewise.
5767 (emit_jump_insn): Likewise.
5768 (emit_call_insn): Strengthen return type and local "insn" from rtx
5769 to rtx_insn *.
5770 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5771 a checked cast to rtx_insn * for now on "label".
5772 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5773 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5774 (emit_use): Likewise.
5775 (gen_use): Likewise, also for local "seq".
5776 (emit): Likewise for return type and local "insn".
5777 (rtx_insn): Likewise for return type and local "new_rtx".
5778
5779 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5780 from rtx to rtx_barrier *.
5781
5782 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5783 changed return type from rtx to rtx_insn *, we must update
5784 "emit_fn" type, and this in turn means updating...
5785 (frame_insn): ...this. Strengthen return type from rtx to
5786 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5787
5788 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5789
5790 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5791 rtx to rtx_jump_table_data *. Also for local.
5792 * rtl.h (emit_jump_table_data): Likewise.
5793
5794 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5795
5796 * basic-block.h (create_basic_block_structure): Strengthen third
5797 param "bb_note" from rtx to rtx_note *.
5798 * rtl.h (emit_note_before): Strengthen return type from rtx to
5799 rtx_note *.
5800 (emit_note_after): Likewise.
5801 (emit_note): Likewise.
5802 (emit_note_copy): Likewise. Also, strengthen param similarly.
5803 * function.h (struct rtl_data): Strengthen field
5804 "x_stack_check_probe_note" from rtx to rtx_note *.
5805
5806 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5807 from rtx to rtx_note *.
5808 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5809 "bb_note" from rtx to rtx_note *.
5810 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5811 when calling emit_note_copy.
5812 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5813 rtx_note *.
5814 (emit_note_after): Likewise.
5815 (emit_note_before): Likewise.
5816 (emit_note_copy): Likewise. Also, strengthen param similarly.
5817 (emit_note): Likewise.
5818 * except.c (emit_note_eh_region_end): Likewise for return type.
5819 Strengthen local "next" from rtx to rtx_insn *.
5820 (convert_to_eh_region_ranges): Strengthen local "note"
5821 from rtx to rtx_note *.
5822 * final.c (change_scope): Likewise.
5823 (reemit_insn_block_notes): Likewise, for both locals named "note".
5824 Also, strengthen local "insn" from rtx to rtx_insn *.
5825 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5826 rtx to rtx_note *.
5827 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5828 strengthen local "seq" from rtx to rtx_insn *.
5829 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5830 to rtx_note *.
5831 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5832 vec<rtx_note *>.
5833 (get_bb_note_from_pool): Strengthen return type from rtx to
5834 rtx_note *.
5835 (sel_create_basic_block): Strengthen local "new_bb_note" from
5836 insn_t to rtx_note *.
5837 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5838 "note" from rtx to rtx_note *.
5839 (emit_notes_in_bb): Likewise.
5840
5841 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5842
5843 * function.h (struct rtl_data): Strengthen field
5844 "x_parm_birth_insn" from rtx to rtx_insn *.
5845 * function.c (struct assign_parm_data_all): Strengthen fields
5846 "first_conversion_insn" and "last_conversion_insn" from rtx to
5847 rtx_insn *.
5848
5849 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5850
5851 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5852 to rtx_insn *; also for local "var_end_seq".
5853 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5854 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5855 "insn".
5856 (expand_gimple_cond): Likewise for locals "last2" and "last".
5857 (mark_transaction_restart_calls): Likewise for local "insn".
5858 (expand_gimple_stmt): Likewise for return type and locals "last"
5859 and "insn".
5860 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5861 (avoid_complex_debug_insns): Likewise for param "insn".
5862 (expand_debug_locations): Likewise for locals "insn", "last",
5863 "prev_insn" and "insn2".
5864 (expand_gimple_basic_block): Likewise for local "last".
5865 (construct_exit_block): Likewise for locals "head", "end",
5866 "orig_end".
5867 (pass_expand::execute): Likewise for locals "var_seq",
5868 "var_ret_seq", "next".
5869
5870 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5871
5872 * asan.h (asan_emit_stack_protection): Strengthen return type from
5873 rtx to rtx_insn *.
5874 * asan.c (asan_emit_stack_protection): Likewise. Add local
5875 "insns" to hold the return value.
5876
5877 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5878
5879 * basic-block.h (bb_note): Strengthen return type from rtx to
5880 rtx_note *.
5881 * sched-int.h (bb_note): Likewise.
5882 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5883
5884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5885
5886 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5887 rtx_insn *.
5888
5889 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5890 "insn" from rtx to rtx_insn *.
5891 (make_debug_insn_raw): Strengthen return type from rtx to
5892 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5893 (make_jump_insn_raw): Strengthen return type from rtx to
5894 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5895 (make_call_insn_raw): Strengthen return type from rtx to
5896 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5897 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5898 callback from rtx to rtx_insn *; likewise for local "insn" and
5899 "next", adding a checked cast to rtx_insn in the relevant cases of
5900 the switch statement.
5901 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5902 callback from rtx to rtx_insn *.
5903 (emit_pattern_after_setloc): Likewise.
5904 (emit_pattern_after): Likewise.
5905 (emit_pattern_before_setloc): Likewise.
5906 (emit_pattern_before): Likewise.
5907
5908 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5909
5910 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5911 rtx_call_insn *.
5912 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5913 accepting an rtx_insn *.
5914 (last_call_insn): Strengthen return type from rtx to
5915 rtx_call_insn *.
5916
5917 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5918
5919 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5920 "insns" from rtx to rtx_insn *.
5921 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5922 locals "insn" and "prev".
5923
5924 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5925
5926 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5927 rtx_jump_table_data **.
5928
5929 * cfgbuild.c (make_edges): Introduce local "table", using it in
5930 place of "tmp" for jump table data.
5931 (find_bb_boundaries): Strengthen local "table" from rtx to
5932 rtx_jump_table_data *.
5933 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5934 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5935 (try_crossjump_to_edge): Likewise.
5936 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5937 "table".
5938 (patch_jump_insn): Introduce local "table", using it in place of
5939 "tmp" for jump table data.
5940 (force_nonfallthru_and_redirect): Introduce local "table", so that
5941 call to tablejump_p can receive an rtx_jump_table_data **. Update
5942 logic around the call to overwrite "note" appropriately if
5943 tablejump_p returns non-zero.
5944 (get_last_bb_insn): Introduce local "table", using it in place of
5945 "tmp" for jump table data.
5946 * dwarf2cfi.c (create_trace_edges): Likewise.
5947
5948 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5949 from rtx to rtx_jump_table_data *.
5950 (create_fix_barrier): Strengthen local "tmp" from rtx to
5951 rtx_jump_table_data *.
5952 (arm_reorg): Likewise for local "table".
5953
5954 * config/s390/s390.c (s390_chunkify_start): Likewise.
5955
5956 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5957
5958 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5959 rtx to rtx_jump_table_data *.
5960
5961 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5962 rtx_jump_table_data **. Add a checked cast when writing through
5963 the pointer: we know there that local "table" is non-NULL and that
5964 JUMP_TABLE_DATA_P (table) holds.
5965 (label_is_jump_target_p): Introduce local "table", using it in
5966 place of "tmp" for jump table data.
5967
5968 2014-08-19 Marek Polacek <polacek@redhat.com>
5969
5970 PR c++/62153
5971 * doc/invoke.texi: Document -Wbool-compare.
5972
5973 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5974
5975 * rtl.h (entry_of_function): Strengthen return type from rtx to
5976 rtx_insn *.
5977 * cfgrtl.c (entry_of_function): Likewise.
5978
5979 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5980
5981 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5982 rtx_insn *, adding a checked cast for now.
5983 (get_last_insn): Likewise.
5984
5985 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5986
5987 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5988 rtx_code_label *.
5989
5990 * emit-rtl.c (gen_label_rtx): Likewise.
5991
5992 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5993
5994 * rtl.h (previous_insn): Strengthen return type from rtx to
5995 rtx_insn *.
5996 (next_insn): Likewise.
5997 (prev_nonnote_insn): Likewise.
5998 (prev_nonnote_insn_bb): Likewise.
5999 (next_nonnote_insn): Likewise.
6000 (next_nonnote_insn_bb): Likewise.
6001 (prev_nondebug_insn): Likewise.
6002 (next_nondebug_insn): Likewise.
6003 (prev_nonnote_nondebug_insn): Likewise.
6004 (next_nonnote_nondebug_insn): Likewise.
6005 (prev_real_insn): Likewise.
6006 (next_real_insn): Likewise.
6007 (prev_active_insn): Likewise.
6008 (next_active_insn): Likewise.
6009
6010 * emit-rtl.c (next_insn): Strengthen return type from rtx to
6011 rtx_insn *, adding a checked cast.
6012 (previous_insn): Likewise.
6013 (next_nonnote_insn): Likewise.
6014 (next_nonnote_insn_bb): Likewise.
6015 (prev_nonnote_insn): Likewise.
6016 (prev_nonnote_insn_bb): Likewise.
6017 (next_nondebug_insn): Likewise.
6018 (prev_nondebug_insn): Likewise.
6019 (next_nonnote_nondebug_insn): Likewise.
6020 (prev_nonnote_nondebug_insn): Likewise.
6021 (next_real_insn): Likewise.
6022 (prev_real_insn): Likewise.
6023 (next_active_insn): Likewise.
6024 (prev_active_insn): Likewise.
6025
6026 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
6027 param "stepfunc" so that it returns an rtx_insn * rather than an
6028 rtx, to track the change to prev_nonnote_insn_bb, which is the
6029 only function this is called with.
6030 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
6031
6032 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
6033
6034 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
6035 assert.
6036
6037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6038
6039 * coretypes.h (class rtx_debug_insn): Add forward declaration.
6040 (class rtx_nonjump_insn): Likewise.
6041 (class rtx_jump_insn): Likewise.
6042 (class rtx_call_insn): Likewise.
6043 (class rtx_jump_table_data): Likewise.
6044 (class rtx_barrier): Likewise.
6045 (class rtx_code_label): Likewise.
6046 (class rtx_note): Likewise.
6047
6048 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
6049 adding the invariant DEBUG_INSN_P (X).
6050 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
6051 the invariant NONJUMP_INSN_P (X).
6052 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
6053 the invariant JUMP_P (X).
6054 (class rtx_call_insn): New, a subclass of rtx_insn, adding
6055 the invariant CALL_P (X).
6056 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
6057 invariant JUMP_TABLE_DATA_P (X).
6058 (class rtx_barrier): New, a subclass of rtx_insn, adding the
6059 invariant BARRIER_P (X).
6060 (class rtx_code_label): New, a subclass of rtx_insn, adding
6061 the invariant LABEL_P (X).
6062 (class rtx_note): New, a subclass of rtx_insn, adding
6063 the invariant NOTE_P(X).
6064 (is_a_helper <rtx_debug_insn *>::test): New.
6065 (is_a_helper <rtx_nonjump_insn *>::test): New.
6066 (is_a_helper <rtx_jump_insn *>::test): New.
6067 (is_a_helper <rtx_call_insn *>::test): New.
6068 (is_a_helper <rtx_jump_table_data *>::test): New functions,
6069 overloaded for both rtx and rtx_insn *.
6070 (is_a_helper <rtx_barrier *>::test): New.
6071 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
6072 for both rtx and rtx_insn *.
6073 (is_a_helper <rtx_note *>::test): New.
6074
6075 2014-08-19 Marek Polacek <polacek@redhat.com>
6076
6077 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
6078 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6079 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
6080 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6081
6082 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6083
6084 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
6085 rtx_insn *. To help with transition, for now, convert from an
6086 access macro into a pair of functions: BND_TO, returning an
6087 rtx_insn *, and...
6088 (SET_BND_TO): New function, for use where BND_TO is used as an
6089 lvalue.
6090
6091 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
6092 SET_BND_TO.
6093 (BND_TO): New function, adding a checked cast.
6094 (SET_BND_TO): New function.
6095
6096 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
6097 SET_BND_TO.
6098 (compute_av_set_on_boundaries): Likewise.
6099
6100 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6101
6102 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
6103 destination if it is used in source.
6104 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
6105 (*popcount<mode>2_falsedep_1): Likewise.
6106
6107 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6108
6109 PR other/62168
6110 * configure.ac: Set install_gold_as_default to no first.
6111 * configure: Regenerated.
6112
6113 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6114
6115 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
6116 "note_list" field will eventually be an rtx_insn *. To help with
6117 transition, for now, convert from an access macro into a pair of
6118 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
6119 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
6120 used as an lvalue.
6121
6122 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
6123 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
6124
6125 * sel-sched-ir.c (init_bb): Likewise.
6126 (sel_restore_notes): Likewise.
6127 (move_bb_info): Likewise.
6128 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
6129 (SET_BB_NOTE_LIST): New function.
6130
6131 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6132
6133 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
6134 field will eventually be an rtx_insn *. To help with transition,
6135 for now, convert from an access macro into a pair of functions:
6136 VINSN_INSN_RTX, returning an rtx_insn *, and...
6137 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
6138 is used as an lvalue.
6139
6140 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
6141 SET_VINSN_INSN_RTX where it's used as an lvalue.
6142 (VINSN_INSN_RTX): New function.
6143 (SET_VINSN_INSN_RTX): New function.
6144
6145 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6146
6147 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
6148 eventually be rtx_insn *, but to help with transition, for now,
6149 convert from an access macro into a pair of functions: DEP_PRO
6150 returning an rtx_insn * and...
6151 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
6152 lvalue, returning an rtx&.
6153 (DEP_CON): Analogous changes to DEP_PRO above.
6154 (SET_DEP_CON): Likewise.
6155
6156 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
6157 an lvalue to SET_DEP_CON.
6158 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
6159 (sd_copy_back_deps): Likewise for DEP_CON.
6160 (DEP_PRO): New function, adding a checked cast for now.
6161 (DEP_CON): Likewise.
6162 (SET_DEP_PRO): New function.
6163 (SET_DEP_CON): Likewise.
6164
6165 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6166
6167 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
6168 (extra_options): Add i386/cygwin.opt.
6169 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
6170 (CPP_SPEC): Accept -pthread.
6171 (LINK_SPEC): Ditto.
6172 (GOMP_SELF_SPECS): Update comment.
6173 * config/i386/cygwin.opt: New file for -pthread flag.
6174
6175 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6176
6177 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
6178 * df.h (DF_REF_INSN): Convert from a macro to a function, so
6179 that we can return an rtx_insn *.
6180
6181 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6182
6183 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
6184 when building executables, not DLLs. Add --large-address-aware
6185 under the same conditions.
6186 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
6187 when building executables, not DLLs. Add --large-address-aware
6188 under the same conditions when using -m32.
6189
6190 * config/i386/cygwin-stdint.h: Throughout, make type
6191 definitions dependent on target architecture, not host.
6192
6193 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6194
6195 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
6196 the return type from rtx to rtx_insn *, which will enable various
6197 conversions in followup patches. For now this is is done by a
6198 checked cast.
6199 (NEXT_INSN): Likewise.
6200 (SET_PREV_INSN): Convert to an inline function. This is intended
6201 for use as an lvalue, and so returns an rtx& to allow in-place
6202 modification.
6203 (SET_NEXT_INSN): Likewise.
6204
6205 2014-07-08 Mark Wielaard <mjw@redhat.com>
6206
6207 PR debug/59051
6208 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6209
6210 2014-08-19 Marek Polacek <polacek@redhat.com>
6211
6212 PR c/61271
6213 * cgraphunit.c (handle_alias_pairs): Fix condition.
6214
6215 2014-08-19 Richard Biener <rguenther@suse.de>
6216
6217 * gimple-fold.c (fold_gimple_assign): Properly build a
6218 null-pointer constant when devirtualizing addresses.
6219
6220 2014-07-07 Mark Wielaard <mjw@redhat.com>
6221
6222 * dwarf2out.c (decl_quals): New function.
6223 (modified_type_die): Take one cv_quals argument instead of two,
6224 one for const and one for volatile.
6225 (add_type_attribute): Likewise.
6226 (generic_parameter_die): Call add_type_attribute with one modifier
6227 argument.
6228 (base_type_for_mode): Likewise.
6229 (add_bounds_info): Likewise.
6230 (add_subscript_info): Likewise.
6231 (gen_array_type_die): Likewise.
6232 (gen_descr_array_type_die): Likewise.
6233 (gen_entry_point_die): Likewise.
6234 (gen_enumeration_type_die): Likewise.
6235 (gen_formal_parameter_die): Likewise.
6236 (gen_subprogram_die): Likewise.
6237 (gen_variable_die): Likewise.
6238 (gen_const_die): Likewise.
6239 (gen_field_die): Likewise.
6240 (gen_pointer_type_die): Likewise.
6241 (gen_reference_type_die): Likewise.
6242 (gen_ptr_to_mbr_type_die): Likewise.
6243 (gen_inheritance_die): Likewise.
6244 (gen_subroutine_type_die): Likewise.
6245 (gen_typedef_die): Likewise.
6246 (force_type_die): Likewise.
6247
6248 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6249
6250 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6251 if unset.
6252 * configure: Regenerate.
6253
6254 2014-08-19 Richard Biener <rguenther@suse.de>
6255
6256 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6257 DECL_EXTERNALs in BLOCKs as non-references.
6258 * tree-streamer-out.c (streamer_write_chain): Likewise.
6259
6260 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6262 Anna Tikhonova <anna.tikhonova@intel.com>
6263 Ilya Tocar <ilya.tocar@intel.com>
6264 Andrey Turetskiy <andrey.turetskiy@intel.com>
6265 Ilya Verbin <ilya.verbin@intel.com>
6266 Kirill Yukhin <kirill.yukhin@intel.com>
6267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6268
6269 * config/i386/sse.md
6270 (define_mode_iterator VI48_AVX512F): Delete.
6271 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6272 (define_mode_iterator VI2_AVX512VL): Ditto.
6273 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6274 Delete.
6275 (define_insn
6276 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6277 New.
6278 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6279 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6280 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6281 with VI48_AVX512F_AVX512VL): New.
6282 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6283 with VI2_AVX512VL): Ditto.
6284
6285 2014-08-19 Marek Polacek <polacek@redhat.com>
6286
6287 * doc/invoke.texi: Document -Wc99-c11-compat.
6288
6289 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6290
6291 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6292 for rvalues, and...
6293 (SET_PREV_INSN): New macro, for use as an lvalue.
6294 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6295
6296 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6297 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6298 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6299 (fixup_abnormal_edges): Likewise.
6300 (unlink_insn_chain): Likewise.
6301 (fixup_reorder_chain): Likewise.
6302 (cfg_layout_delete_block): Likewise.
6303 (cfg_layout_merge_blocks): Likewise.
6304 * combine.c (update_cfg_for_uncondjump): Likewise.
6305 * emit-rtl.c (link_insn_into_chain): Likewise.
6306 (remove_insn): Likewise.
6307 (delete_insns_since): Likewise.
6308 (reorder_insns_nobb): Likewise.
6309 (emit_insn_after_1): Likewise.
6310 * final.c (rest_of_clean_state): Likewise.
6311 (final_scan_insn): Likewise.
6312 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6313 * haifa-sched.c (concat_note_lists): Likewise.
6314 (remove_notes): Likewise.
6315 (restore_other_notes): Likewise.
6316 (move_insn): Likewise.
6317 (unlink_bb_notes): Likewise.
6318 (restore_bb_notes): Likewise.
6319 * jump.c (delete_for_peephole): Likewise.
6320 * optabs.c (emit_libcall_block_1): Likewise.
6321 * reorg.c (emit_delay_sequence): Likewise.
6322 (fill_simple_delay_slots): Likewise.
6323 * sel-sched-ir.c (sel_move_insn): Likewise.
6324 (sel_remove_insn): Likewise.
6325 (get_bb_note_from_pool): Likewise.
6326 * sel-sched.c (move_nop_to_previous_block): Likewise.
6327
6328 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6329 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6330 (c6x_gen_bundles): Likewise.
6331 (hwloop_optimize): Likewise.
6332 * config/frv/frv.c (frv_function_prologue): Likewise.
6333 (frv_register_nop): Likewise.
6334 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6335 (ia64_reorg): Likewise.
6336 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6337 (mep_make_bundle): Likewise.
6338 (mep_bundle_insns): Likewise.
6339 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6340 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6341 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6342
6343 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6344
6345 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6346 return type from rtx to rtx_insn *.
6347 (BB_END): Likewise.
6348 (BB_HEADER): Likewise.
6349 (BB_FOOTER): Likewise.
6350 (SET_BB_HEAD): Convert to a function.
6351 (SET_BB_END): Likewise.
6352 (SET_BB_HEADER): Likewise.
6353 (SET_BB_FOOTER): Likewise.
6354
6355 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6356 Strengthen the return type from rtx to rtx_insn *. For now, this
6357 is done by adding a checked cast, but this will eventually
6358 become a field lookup.
6359 (BB_END): Likewise.
6360 (BB_HEADER): Likewise.
6361 (BB_FOOTER): Likewise.
6362 (SET_BB_HEAD): New function, from macro of same name. This is
6363 intended for use as an lvalue, and so returns an rtx& to allow
6364 in-place modification.
6365 (SET_BB_END): Likewise.
6366 (SET_BB_HEADER): Likewise.
6367 (SET_BB_FOOTER): Likewise.
6368
6369 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6370
6371 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6372 for rvalues, and...
6373 (SET_BB_HEAD): New macro, for use as a lvalue.
6374 (BB_END, SET_BB_END): Likewise.
6375 (BB_HEADER, SET_BB_HEADER): Likewise.
6376 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6377
6378 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6379 of BB_* macros into SET_BB_* macros.
6380 (fix_crossing_unconditional_branches): Likewise.
6381 * caller-save.c (save_call_clobbered_regs): Likewise.
6382 (insert_one_insn): Likewise.
6383 * cfgbuild.c (find_bb_boundaries): Likewise.
6384 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6385 (outgoing_edges_match): Likewise.
6386 (try_optimize_cfg): Likewise.
6387 * cfgexpand.c (expand_gimple_cond): Likewise.
6388 (expand_gimple_tailcall): Likewise.
6389 (expand_gimple_basic_block): Likewise.
6390 (construct_exit_block): Likewise.
6391 * cfgrtl.c (delete_insn): Likewise.
6392 (create_basic_block_structure): Likewise.
6393 (rtl_delete_block): Likewise.
6394 (rtl_split_block): Likewise.
6395 (emit_nop_for_unique_locus_between): Likewise.
6396 (rtl_merge_blocks): Likewise.
6397 (block_label): Likewise.
6398 (try_redirect_by_replacing_jump): Likewise.
6399 (emit_barrier_after_bb): Likewise.
6400 (fixup_abnormal_edges): Likewise.
6401 (record_effective_endpoints): Likewise.
6402 (relink_block_chain): Likewise.
6403 (fixup_reorder_chain): Likewise.
6404 (fixup_fallthru_exit_predecessor): Likewise.
6405 (cfg_layout_duplicate_bb): Likewise.
6406 (cfg_layout_split_block): Likewise.
6407 (cfg_layout_delete_block): Likewise.
6408 (cfg_layout_merge_blocks): Likewise.
6409 * combine.c (update_cfg_for_uncondjump): Likewise.
6410 * emit-rtl.c (add_insn_after): Likewise.
6411 (remove_insn): Likewise.
6412 (reorder_insns): Likewise.
6413 (emit_insn_after_1): Likewise.
6414 * haifa-sched.c (get_ebb_head_tail): Likewise.
6415 (restore_other_notes): Likewise.
6416 (move_insn): Likewise.
6417 (sched_extend_bb): Likewise.
6418 (fix_jump_move): Likewise.
6419 * ifcvt.c (noce_process_if_block): Likewise.
6420 (dead_or_predicable): Likewise.
6421 * ira.c (update_equiv_regs): Likewise.
6422 * reg-stack.c (change_stack): Likewise.
6423 * sel-sched-ir.c (sel_move_insn): Likewise.
6424 * sel-sched.c (move_nop_to_previous_block): Likewise.
6425
6426 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6427 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6428
6429 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6430
6431 * rtl.h (for_each_rtx_in_insn): New function.
6432 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6433
6434 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6435
6436 * coretypes.h (class rtx_insn): Add forward declaration.
6437
6438 * rtl.h: Include is-a.h.
6439 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6440 workaround to ensure gengtype knows inheritance is occurring,
6441 whilst continuing to use the pre-existing special-casing for
6442 rtx_def.
6443 (class rtx_insn): New subclass of rtx_def, adding the
6444 invariant that we're dealing with something we can sanely use
6445 INSN_UID, NEXT_INSN, PREV_INSN on.
6446 (is_a_helper <rtx_insn *>::test): New.
6447 (is_a_helper <const rtx_insn *>::test): New.
6448
6449 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6450
6451 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6452
6453 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6454
6455 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6456 comdats as extern.
6457
6458 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6459
6460 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6461 to BUILT_IN_UNREACHABLE.
6462
6463 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6464
6465 PR target/62011
6466 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6467 New tune flag.
6468 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6469 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6470 (ffs<mode>2): Do not expand with tzcnt for
6471 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6472 (ffssi2_no_cmove): Ditto.
6473 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6474 (ctz<mode>2): New expander.
6475 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6476 (*ctz<mode>2_falsedep): New insn.
6477 (*ctz<mode>2): Rename from ctz<mode>2.
6478 (clz<mode>2_lzcnt): New expander.
6479 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6480 (*clz<mode>2_lzcnt_falsedep): New insn.
6481 (*clz<mode>2): Rename from ctz<mode>2.
6482 (popcount<mode>2): New expander.
6483 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6484 (*popcount<mode>2_falsedep): New insn.
6485 (*popcount<mode>2): Rename from ctz<mode>2.
6486 (*popcount<mode>2_cmp): Remove.
6487 (*popcountsi2_cmp_zext): Ditto.
6488
6489 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6490
6491 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6492 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6493 * config/microblaze/microblaze.h
6494 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6495
6496 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6497
6498 PR other/62168
6499 * configure.ac: Set install_gold_as_default to no for
6500 --enable-gold=no.
6501 * configure: Regenerated.
6502
6503 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6504
6505 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6506 * config.in: Add undef of HAVE_isl.
6507 * configure: Regenerate.
6508 * configure.ac: Add definition of HAVE_isl.
6509 * graphite-blocking.c: Add checking of HAVE_isl.
6510 * graphite-dependences.c: Likewise.
6511 * graphite-interchange.c: Likewise.
6512 * graphite-isl-ast-to-gimple.c: Likewise.
6513 * graphite-optimize-isl.c: Likewise.
6514 * graphite-poly.c: Likewise.
6515 * graphite-scop-detection.c: Likewise.
6516 * graphite-sese-to-poly.c: Likewise.
6517 * graphite.c: Likewise.
6518 * toplev.c: Replace the checking of HAVE_cloog with the checking
6519 of HAVE_isl.
6520
6521 2014-08-18 Richard Biener <rguenther@suse.de>
6522
6523 PR tree-optimization/62090
6524 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6525 (fold_builtin_3): Do not fold snprintf.
6526 (fold_builtin_4): Likewise.
6527 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6528 moved from builtins.c.
6529 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6530 (gimple_fold_builtin): Do not fold sprintf here.
6531
6532 2014-08-18 Richard Biener <rguenther@suse.de>
6533
6534 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6535 code to ...
6536 (maybe_canonicalize_mem_ref_addr): ... this function.
6537 (fold_stmt_1): Apply it here before all simplification.
6538
6539 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6540
6541 PR ipa/61800
6542 * cgraph.h (cgraph_node::create_indirect_edge): Add
6543 compute_indirect_info param.
6544 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6545 indirect_info only when it is required.
6546 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6547 indirect_info fore cloned indirect edge.
6548
6549 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6550 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6551 Anna Tikhonova <anna.tikhonova@intel.com>
6552 Ilya Tocar <ilya.tocar@intel.com>
6553 Andrey Turetskiy <andrey.turetskiy@intel.com>
6554 Ilya Verbin <ilya.verbin@intel.com>
6555 Kirill Yukhin <kirill.yukhin@intel.com>
6556 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6557
6558 * config/i386/sse.md
6559 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6560 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6561
6562 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6563 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6564 Anna Tikhonova <anna.tikhonova@intel.com>
6565 Ilya Tocar <ilya.tocar@intel.com>
6566 Andrey Turetskiy <andrey.turetskiy@intel.com>
6567 Ilya Verbin <ilya.verbin@intel.com>
6568 Kirill Yukhin <kirill.yukhin@intel.com>
6569 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6570
6571 * config/i386/sse.md
6572 (define_mode_iterator VF1_AVX512VL): New.
6573 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6574 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6575 New.
6576
6577 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6578 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6579 Anna Tikhonova <anna.tikhonova@intel.com>
6580 Ilya Tocar <ilya.tocar@intel.com>
6581 Andrey Turetskiy <andrey.turetskiy@intel.com>
6582 Ilya Verbin <ilya.verbin@intel.com>
6583 Kirill Yukhin <kirill.yukhin@intel.com>
6584 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6585
6586 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6587 * config/i386/i386.md
6588 (define_code_iterator any_float): New.
6589 (define_code_attr floatsuffix): New.
6590 * config/i386/sse.md
6591 (define_mode_iterator VF1_128_256VL): New.
6592 (define_mode_iterator VF2_512_256VL): New.
6593 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6594 TARGET check.
6595 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6596 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6597 New.
6598 (define_mode_attr qq2pssuff): New.
6599 (define_mode_attr sselongvecmode): New.
6600 (define_mode_attr sselongvecmodelower): New.
6601 (define_mode_attr sseintvecmode3): New.
6602 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6603 New.
6604 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6605 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6606 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6607 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6608
6609 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6610 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6611 Anna Tikhonova <anna.tikhonova@intel.com>
6612 Ilya Tocar <ilya.tocar@intel.com>
6613 Andrey Turetskiy <andrey.turetskiy@intel.com>
6614 Ilya Verbin <ilya.verbin@intel.com>
6615 Kirill Yukhin <kirill.yukhin@intel.com>
6616 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6617
6618 * config/i386/sse.md
6619 (define_mode_iterator VF2_AVX512VL): New.
6620 (define_mode_attr sseintvecmode2): New.
6621 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6622 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6623 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6624 (define_insn
6625 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6626 Ditto.
6627 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6628 Ditto.
6629 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6630 Ditto.
6631
6632 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6633 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6634 Anna Tikhonova <anna.tikhonova@intel.com>
6635 Ilya Tocar <ilya.tocar@intel.com>
6636 Andrey Turetskiy <andrey.turetskiy@intel.com>
6637 Ilya Verbin <ilya.verbin@intel.com>
6638 Kirill Yukhin <kirill.yukhin@intel.com>
6639 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6640
6641 * config/i386/i386.md
6642 (define_insn "*movoi_internal_avx"): Add evex version.
6643 (define_insn "*movti_internal"): Ditto.
6644
6645 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6646 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6647 Anna Tikhonova <anna.tikhonova@intel.com>
6648 Ilya Tocar <ilya.tocar@intel.com>
6649 Andrey Turetskiy <andrey.turetskiy@intel.com>
6650 Ilya Verbin <ilya.verbin@intel.com>
6651 Kirill Yukhin <kirill.yukhin@intel.com>
6652 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6653
6654 * config/i386/i386.md
6655 (define_attr "isa"): Add avx512dq, noavx512dq.
6656 (define_attr "enabled"): Ditto.
6657 * config/i386/sse.md
6658 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6659
6660 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6661 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6662 Anna Tikhonova <anna.tikhonova@intel.com>
6663 Ilya Tocar <ilya.tocar@intel.com>
6664 Andrey Turetskiy <andrey.turetskiy@intel.com>
6665 Ilya Verbin <ilya.verbin@intel.com>
6666 Kirill Yukhin <kirill.yukhin@intel.com>
6667 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6668
6669 * config/i386/i386.c
6670 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6671 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6672 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6673 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6674 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6675 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6676 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6677 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6678 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6679 * config/i386/sse.md
6680 (define_mode_iterator VMOVE): Allow V4TI mode.
6681 (define_mode_iterator V_AVX512VL): New.
6682 (define_mode_iterator V): New handling for AVX512VL.
6683 (define_insn "avx512f_load<mode>_mask"): Delete.
6684 (define_insn "<avx512>_load<mode>_mask"): New.
6685 (define_insn "avx512f_store<mode>_mask"): Delete.
6686 (define_insn "<avx512>_store<mode>_mask"): New.
6687
6688
6689 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6690
6691 PR sanitizer/62089
6692 * asan.c (instrument_derefs): Fix bitfield check.
6693
6694 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6695
6696 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6697 * config/rs6000/htm.md (ttest): Remove clobber.
6698 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6699 (and_operand): Reformat.
6700 (and_2rld_operand): New predicate.
6701 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6702 parameter.
6703 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6704 parameter. Handle AND directly.
6705 (rs6000_split_logical_di): Remove last parameter.
6706 (rs6000_split_logical): Remove last parameter. Remove obsolete
6707 comment.
6708 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6709 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6710 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6711 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6712 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6713 and 5 anonymous splitters): Delete.
6714 (and<mode>3): New expander.
6715 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6716 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6717 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6718 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6719 (floatdisf2_internal1): Remove clobbers.
6720 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6721 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6722 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6723 (and<mode>3 for BOOL_128): Remove clobber.
6724 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6725 rs6000_split_logical.
6726 (*bool<mode>3_internal for BOOL_128): Adjust call of
6727 rs6000_split_logical.
6728 (*boolc<mode>3_internal1 for BOOL_128,
6729 *boolc<mode>3_internal2 for BOOL_128,
6730 *boolcc<mode>3_internal1 for BOOL_128,
6731 *boolcc<mode>3_internal2 for BOOL_128,
6732 *eqv<mode>3_internal1 for BOOL_128,
6733 *eqv<mode>3_internal2 for BOOL_128,
6734 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6735 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6736 clobber.
6737 (*vec_reload_and_reg_<mptrsize>): Delete.
6738
6739 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6740
6741 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6742 and split, *boolccsi3_internal3 and split): Delete.
6743 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6744 *boolccdi3_internal3 and split): Delete.
6745 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6746 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6747
6748 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6749
6750 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6751 and split, *boolcsi3_internal3 and split): Delete.
6752 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6753 *boolcdi3_internal3 and split): Delete.
6754 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6755
6756 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6757
6758 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6759 <'u'>: Also support printing the low-order 16 bits.
6760 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6761 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6762 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6763 *booldi3_internal3 and split): Delete.
6764 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6765 *bool<mode>3_dot2): New.
6766 (two anonymous define_splits for non_logical_cint_operand): Merge.
6767
6768 2014-08-17 Marek Polacek <polacek@redhat.com>
6769 Manuel López-Ibáñez <manu@gcc.gnu.org>
6770
6771 PR c/62059
6772 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6773 (diagnostic_show_locus): Don't print caret diagnostic
6774 if a column is larger than the line_width.
6775
6776 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6777
6778 * common.opt: Make the ISL AST generator to be the main code generator
6779 of Graphite.
6780
6781 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6782
6783 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6784
6785 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6786
6787 PR target/61641
6788 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6789 Declare.
6790 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6791 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6792 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6793 Define.
6794 * config/pa/pa.md (begin_brtab): Delete insn.
6795 (end_brtab): Likewise.
6796
6797 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6798
6799 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6800
6801 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6802
6803 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6804 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6805 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6806 (get_dynamic_type): Remove.
6807 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6808 (clear_speculation): Bring to ipa-deivrt.h
6809 (get_class_context): Rename to ...
6810 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6811 (contains_type_p): Update.
6812 (get_dynamic_type): Rename to ...
6813 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6814 (possible_polymorphic_call_targets): UPdate.
6815 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6816 * ipa-prop.c (ipa_analyze_call_uses): Update.
6817
6818 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6819
6820 * doc/invoke.texi (SH options): Document missing processor variant
6821 options. Remove references to Hitachi. Undocument deprecated mspace
6822 option.
6823
6824 2014-08-15 Jason Merrill <jason@redhat.com>
6825
6826 * tree.c (type_hash_canon): Uncomment assert.
6827
6828 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6829
6830 * input.h (in_system_header_at): Add comment.
6831
6832 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6833
6834 PR fortran/44054
6835 * diagnostic.c (build_message_string): Make it extern.
6836 * diagnostic.h (build_message_string): Make it extern.
6837
6838 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6839
6840 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6841 load/store from/to non-floating class pseudo.
6842
6843 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6844
6845 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6846
6847 2014-08-15 Richard Biener <rguenther@suse.de>
6848
6849 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6850 (get_constraint_for_ssa_var): Remove dead code.
6851 (get_constraint_for_1): Adjust.
6852 (find_what_var_points_to): Likewise.
6853 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6854
6855 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6856
6857 PR target/61878
6858 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6859 (_mm512_mask_cmpge_epu32_mask): Ditto.
6860 (_mm512_cmpge_epu32_mask): Ditto.
6861 (_mm512_mask_cmpge_epi64_mask): Ditto.
6862 (_mm512_cmpge_epi64_mask): Ditto.
6863 (_mm512_mask_cmpge_epu64_mask): Ditto.
6864 (_mm512_cmpge_epu64_mask): Ditto.
6865 (_mm512_mask_cmple_epi32_mask): Ditto.
6866 (_mm512_cmple_epi32_mask): Ditto.
6867 (_mm512_mask_cmple_epu32_mask): Ditto.
6868 (_mm512_cmple_epu32_mask): Ditto.
6869 (_mm512_mask_cmple_epi64_mask): Ditto.
6870 (_mm512_cmple_epi64_mask): Ditto.
6871 (_mm512_mask_cmple_epu64_mask): Ditto.
6872 (_mm512_cmple_epu64_mask): Ditto.
6873 (_mm512_mask_cmplt_epi32_mask): Ditto.
6874 (_mm512_cmplt_epi32_mask): Ditto.
6875 (_mm512_mask_cmplt_epu32_mask): Ditto.
6876 (_mm512_cmplt_epu32_mask): Ditto.
6877 (_mm512_mask_cmplt_epi64_mask): Ditto.
6878 (_mm512_cmplt_epi64_mask): Ditto.
6879 (_mm512_mask_cmplt_epu64_mask): Ditto.
6880 (_mm512_cmplt_epu64_mask): Ditto.
6881 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6882 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6883 (_mm512_cmpneq_epu32_mask): Ditto.
6884 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6885 (_mm512_cmpneq_epi64_mask): Ditto.
6886 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6887 (_mm512_cmpneq_epu64_mask): Ditto.
6888 (_mm512_castpd_ps): Ditto.
6889 (_mm512_castpd_si512): Ditto.
6890 (_mm512_castps_pd): Ditto.
6891 (_mm512_castps_si512): Ditto.
6892 (_mm512_castsi512_ps): Ditto.
6893 (_mm512_castsi512_pd): Ditto.
6894 (_mm512_castpd512_pd128): Ditto.
6895 (_mm512_castps512_ps128): Ditto.
6896 (_mm512_castsi512_si128): Ditto.
6897 (_mm512_castpd512_pd256): Ditto.
6898 (_mm512_castps512_ps256): Ditto.
6899 (_mm512_castsi512_si256): Ditto.
6900 (_mm512_castpd128_pd512): Ditto.
6901 (_mm512_castps128_ps512): Ditto.
6902 (_mm512_castsi128_si512): Ditto.
6903 (_mm512_castpd256_pd512): Ditto.
6904 (_mm512_castps256_ps512): Ditto.
6905 (_mm512_castsi256_si512): Ditto.
6906 (_mm512_cmpeq_epu32_mask): Ditto.
6907 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6908 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6909 (_mm512_cmpeq_epu64_mask): Ditto.
6910 (_mm512_cmpgt_epu32_mask): Ditto.
6911 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6912 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6913 (_mm512_cmpgt_epu64_mask): Ditto.
6914 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6915 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6916 * config/i386/i386.c (enum ix86_builtins): Add
6917 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6918 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6919 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6920 (bdesc_args): Add __builtin_ia32_si512_256si,
6921 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6922 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6923 __builtin_ia32_pd512_pd.
6924 (ix86_expand_args_builtin): Handle new FTYPEs.
6925 * config/i386/sse.md (castmode): Add 512-bit modes.
6926 (AVX512MODE2P): New.
6927 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6928 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6929
6930 2014-08-15 Richard Biener <rguenther@suse.de>
6931
6932 * fold-const.c (tree_swap_operands_p): Put all constants
6933 last, also strip sign-changing NOPs when considering further
6934 canonicalization. Canonicalize also when optimizing for size.
6935
6936 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6937
6938 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6939 one_match > zero_match case to just before simple_sequence.
6940
6941 2014-08-15 Richard Biener <rguenther@suse.de>
6942
6943 * data-streamer.h (streamer_string_index, string_for_index):
6944 Remove.
6945 * data-streamer-out.c (streamer_string_index): Make static.
6946 * data-streamer-in.c (string_for_index): Likewise.
6947 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6948 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6949
6950 2014-08-15 Richard Biener <rguenther@suse.de>
6951
6952 PR tree-optimization/62031
6953 * tree-data-ref.c (dr_analyze_indices): Do not set
6954 DR_UNCONSTRAINED_BASE.
6955 (dr_may_alias_p): All indirect accesses have to go the
6956 formerly DR_UNCONSTRAINED_BASE path.
6957 * tree-data-ref.h (struct indices): Remove
6958 unconstrained_base member.
6959 (DR_UNCONSTRAINED_BASE): Remove.
6960
6961 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6962
6963 PR middle-end/62092
6964 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6965 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6966 in OMP_CLAUSE_MAP in some outer target region.
6967
6968 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6969
6970 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6971 name_expansion_cache.
6972 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6973 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6974 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6975 (difference_cannot_overflow_p): New parameter. Use affine
6976 expansion for equality check.
6977 (iv_elimination_compare_lt): Pass new argument.
6978
6979 2014-08-14 DJ Delorie <dj@redhat.com>
6980
6981 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6982 variables to the accumulator.
6983
6984 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6985 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6986 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6987 with far-far moves.
6988
6989 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6990 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6991 (umulqihi3_virt): Likewise.
6992 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6993 (umulqihi3_real): Likewise.
6994
6995 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6996
6997 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6998
6999 PR tree-optimization/62091
7000 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
7001 function_entry_reached.
7002 (walk_aliased_vdefs): Clear it here.
7003 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
7004
7005 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7006
7007 * ipa-utils.h (compare_virtual_tables): Declare.
7008 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
7009
7010 2014-08-14 Marek Polacek <polacek@redhat.com>
7011
7012 DR 458
7013 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
7014 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
7015
7016 2014-08-14 Tom de Vries <tom@codesourcery.com>
7017
7018 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
7019
7020 2014-08-14 Tom de Vries <tom@codesourcery.com>
7021
7022 PR rtl-optimization/62004
7023 PR rtl-optimization/62030
7024 * ifcvt.c (rtx_interchangeable_p): New function.
7025 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
7026 * emit-rtl.h (mem_attrs_eq_p): Declare.
7027
7028 2014-08-14 Roman Gareev <gareevroman@gmail.com>
7029
7030 * graphite-scop-detection.c:
7031 Add inclusion of cp-tree.h.
7032 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
7033 in case they are pointers to object types
7034
7035 2014-08-14 Richard Biener <rguenther@suse.de>
7036
7037 * BASE-VER: Change to 5.0.0
7038
7039 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7040 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7041 Anna Tikhonova <anna.tikhonova@intel.com>
7042 Ilya Tocar <ilya.tocar@intel.com>
7043 Andrey Turetskiy <andrey.turetskiy@intel.com>
7044 Ilya Verbin <ilya.verbin@intel.com>
7045 Kirill Yukhin <kirill.yukhin@intel.com>
7046 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7047
7048 * config/i386/sse.md (define_mode_attr avx512): New.
7049 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
7050 V4DI modes.
7051 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
7052 (define_mode_attr ssse3_avx2): Ditto.
7053 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
7054 (define_mode_attr avx2_avx512bw): New.
7055 (define_mode_attr ssedoublemodelower): New.
7056 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
7057 V32HI, V64QI modes.
7058 (define_mode_attr ssebytemode): Allow V8DI modes.
7059 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
7060 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
7061 (define_mode_attr ssePSmode2): New.
7062 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
7063 V16HI, V32HI modes.
7064 (define_mode_attr dbpsadbwmode): New.
7065 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
7066 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
7067 (vi8_sse4_1_avx2_avx512): New.
7068 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
7069 mode attribute.
7070 (define_mode_attr blendbits): Move before its immediate use.
7071
7072 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7073 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7074 Anna Tikhonova <anna.tikhonova@intel.com>
7075 Ilya Tocar <ilya.tocar@intel.com>
7076 Andrey Turetskiy <andrey.turetskiy@intel.com>
7077 Ilya Verbin <ilya.verbin@intel.com>
7078 Kirill Yukhin <kirill.yukhin@intel.com>
7079 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7080
7081 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
7082 * config/i386/subst.md
7083 (define_mode_iterator SUBST_V): Update.
7084 (define_mode_iterator SUBST_A): Ditto.
7085 (define_subst_attr "mask_operand7"): New.
7086 (define_subst_attr "mask_operand10"): New.
7087 (define_subst_attr "mask_operand_arg34") : New.
7088 (define_subst_attr "mask_expand_op3"): New.
7089 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
7090 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
7091 (define_subst_attr "mask_avx512vl_condition"): New.
7092 (define_subst_attr "round_mask_operand4"): Ditto.
7093 (define_subst_attr "round_mask_scalar_op3"): Delete.
7094 (define_subst_attr "round_mask_op4"): New.
7095 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
7096 V16SImode.
7097 (define_subst_attr "round_modev8sf_condition"): New.
7098 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
7099 <MODE>mode.
7100 (define_subst_attr "round_saeonly_mask_operand4"): New.
7101 (define_subst_attr "round_saeonly_mask_op4"): New.
7102 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
7103 V8DImode, V16SImode.
7104 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
7105 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
7106 (define_subst_attr "mask_expand4_args"): New.
7107 (define_subst "mask_expand4"): New.
7108
7109 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7110 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7111 Anna Tikhonova <anna.tikhonova@intel.com>
7112 Ilya Tocar <ilya.tocar@intel.com>
7113 Andrey Turetskiy <andrey.turetskiy@intel.com>
7114 Ilya Verbin <ilya.verbin@intel.com>
7115 Kirill Yukhin <kirill.yukhin@intel.com>
7116 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7117
7118 * config/i386/i386.md
7119 (define_attr "isa"): Add avx512bw,noavx512bw.
7120 (define_attr "enabled"): Ditto.
7121 (define_split): Add 32/64-bit mask logic.
7122 (define_insn "*k<logic>qi"): New.
7123 (define_insn "*k<logic>hi"): New.
7124 (define_insn "*anddi_1"): Add mask version.
7125 (define_insn "*andsi_1"): Ditto.
7126 (define_insn "*<code><mode>_1"): Ditto.
7127 (define_insn "*<code>hi_1"): Ditto.
7128 (define_insn "kxnor<mode>"): New.
7129 (define_insn "kunpcksi"): New.
7130 (define_insn "kunpckdi"): New.
7131 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
7132 (define_insn "*one_cmplhi2_1"): Ditto.
7133
7134 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7135 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7136 Anna Tikhonova <anna.tikhonova@intel.com>
7137 Ilya Tocar <ilya.tocar@intel.com>
7138 Andrey Turetskiy <andrey.turetskiy@intel.com>
7139 Ilya Verbin <ilya.verbin@intel.com>
7140 Kirill Yukhin <kirill.yukhin@intel.com>
7141 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7142
7143 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
7144 V32HImode.
7145
7146 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7147 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7148 Anna Tikhonova <anna.tikhonova@intel.com>
7149 Ilya Tocar <ilya.tocar@intel.com>
7150 Andrey Turetskiy <andrey.turetskiy@intel.com>
7151 Ilya Verbin <ilya.verbin@intel.com>
7152 Kirill Yukhin <kirill.yukhin@intel.com>
7153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7154
7155 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
7156 registers.
7157 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
7158 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
7159 xmm/ymm16+ when availble.
7160 * config/i386/i386.h
7161 (HARD_REGNO_NREGS): Add mask regs.
7162 (VALID_AVX512F_REG_MODE): Ditto.
7163 (VALID_AVX512F_REG_MODE) : Define.
7164 (VALID_MASK_AVX512BW_MODE): Ditto.
7165 (reg_class) (MASK_REG_P(X)): Define.
7166 * config/i386/i386.md: Do not split long moves with mask register,
7167 use kmovb if avx512bw is availible.
7168 (movdi_internal): Handle mask registers.
7169
7170 2014-08-14 Richard Biener <rguenther@suse.de>
7171
7172 PR tree-optimization/62081
7173 * tree-ssa-loop.c (pass_fix_loops): New pass.
7174 (pass_tree_loop::gate): Do not fixup loops here.
7175 * tree-pass.h (make_pass_fix_loops): Declare.
7176 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
7177
7178 2014-08-14 Richard Biener <rguenther@suse.de>
7179
7180 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
7181 (type_hash_canon): ... this and avoid 2nd lookup for the add.
7182
7183 2014-08-14 Richard Biener <rguenther@suse.de>
7184
7185 PR tree-optimization/62090
7186 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
7187 (fold_builtin_2): Do not fold sprintf.
7188 (fold_builtin_3): Likewise.
7189 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
7190 moved from builtins.c.
7191 (gimple_fold_builtin): Fold sprintf.
7192
7193 2014-08-14 Richard Biener <rguenther@suse.de>
7194
7195 PR rtl-optimization/62079
7196 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
7197 run cleanup_cfg.
7198
7199 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7200
7201 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7202 current_function_decl.
7203
7204 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7205
7206 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7207 cgraph_function_node to cgraph_node::function_symbol
7208 refactoring.
7209
7210 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7211
7212 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7213 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7214
7215 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7216
7217 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7218 warning.
7219
7220 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7221
7222 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7223 generator.
7224
7225 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7226
7227 PR target/62025
7228 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7229 any registers that are used in mem_insn.
7230
7231 2014-08-12 Steve Ellcey <sellcey@mips.com>
7232
7233 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7234
7235 2014-08-12 Steve Ellcey <sellcey@mips.com>
7236
7237 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7238 (MULTILIB_DIRNAMES): Ditto.
7239 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7240 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7241 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7242 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7243 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7244 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7245
7246 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7247
7248 PR target/61413
7249 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7250 of __ARM_SIZEOF_WCHAR_T.
7251
7252 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7253
7254 PR target/62098
7255 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7256 Remove unnecessary attributes.
7257
7258 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7259
7260 * internal-fn.c (init_internal_fns): Fix off-by-one.
7261
7262 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7263 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7264 Anna Tikhonova <anna.tikhonova@intel.com>
7265 Ilya Tocar <ilya.tocar@intel.com>
7266 Andrey Turetskiy <andrey.turetskiy@intel.com>
7267 Ilya Verbin <ilya.verbin@intel.com>
7268 Kirill Yukhin <kirill.yukhin@intel.com>
7269 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7270
7271 * config/i386/i386.c (standard_sse_constant_opcode): Use
7272 vpxord/vpternlog if avx512 is availible.
7273
7274 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7275
7276 PR middle-end/62103
7277 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7278 bitfields, that is when size doesn't match the size of type or the
7279 size of the constructor.
7280
7281 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7282
7283 * config/rs6000/constraints.md (wh constraint): New constraint,
7284 for FP registers if direct move is available.
7285 (wi constraint): New constraint, for VSX/FP registers that can
7286 handle 64-bit integers.
7287 (wj constraint): New constraint for VSX/FP registers that can
7288 handle 64-bit integers for direct moves.
7289 (wk constraint): New constraint for VSX/FP registers that can
7290 handle 64-bit doubles for direct moves.
7291 (wy constraint): Make documentation match implementation.
7292
7293 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7294 scalar_in_vmx_p field to simplify tests of whether SFmode or
7295 DFmode can go in the Altivec registers.
7296 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7297 (rs6000_setup_reg_addr_masks): Likewise.
7298 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7299 field, and wh/wi/wj/wk constraints.
7300 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7301 the wh/wi/wj/wk constraints.
7302 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7303 upper registers, prefer VSX registers unless the operation is a
7304 memory operation with REG+OFFSET addressing.
7305
7306 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7307 DImode. Change SFmode to use ww constraint instead of d to allow
7308 SF registers in the upper registers.
7309 (VSr2): Likewise.
7310 (VSr3): Likewise.
7311 (VSr5): Fix thinko in comment.
7312 (VSa): New mode attribute that is an alternative to wa, that
7313 returns the VSX register class that a mode can go in, but may not
7314 be the preferred register class.
7315 (VS_64dm): New mode attribute for appropriate register classes for
7316 referencing 64-bit elements of vectors for direct moves and normal
7317 moves.
7318 (VS_64reg): Likewise.
7319 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7320 register allocator to only registers the data type can handle.
7321 (vsx_le_perm_load_<mode>): Likewise.
7322 (vsx_le_perm_store_<mode>): Likewise.
7323 (vsx_xxpermdi2_le_<mode>): Likewise.
7324 (vsx_xxpermdi4_le_<mode>): Likewise.
7325 (vsx_lxvd2x2_le_<mode>): Likewise.
7326 (vsx_lxvd2x4_le_<mode>): Likewise.
7327 (vsx_stxvd2x2_le_<mode>): Likewise.
7328 (vsx_add<mode>3): Likewise.
7329 (vsx_sub<mode>3): Likewise.
7330 (vsx_mul<mode>3): Likewise.
7331 (vsx_div<mode>3): Likewise.
7332 (vsx_tdiv<mode>3_internal): Likewise.
7333 (vsx_fre<mode>2): Likewise.
7334 (vsx_neg<mode>2): Likewise.
7335 (vsx_abs<mode>2): Likewise.
7336 (vsx_nabs<mode>2): Likewise.
7337 (vsx_smax<mode>3): Likewise.
7338 (vsx_smin<mode>3): Likewise.
7339 (vsx_sqrt<mode>2): Likewise.
7340 (vsx_rsqrte<mode>2): Likewise.
7341 (vsx_tsqrt<mode>2_internal): Likewise.
7342 (vsx_fms<mode>4): Likewise.
7343 (vsx_nfma<mode>4): Likewise.
7344 (vsx_eq<mode>): Likewise.
7345 (vsx_gt<mode>): Likewise.
7346 (vsx_ge<mode>): Likewise.
7347 (vsx_eq<mode>_p): Likewise.
7348 (vsx_gt<mode>_p): Likewise.
7349 (vsx_ge<mode>_p): Likewise.
7350 (vsx_xxsel<mode>): Likewise.
7351 (vsx_xxsel<mode>_uns): Likewise.
7352 (vsx_copysign<mode>3): Likewise.
7353 (vsx_float<VSi><mode>2): Likewise.
7354 (vsx_floatuns<VSi><mode>2): Likewise.
7355 (vsx_fix_trunc<mode><VSi>2): Likewise.
7356 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7357 (vsx_x<VSv>r<VSs>i): Likewise.
7358 (vsx_x<VSv>r<VSs>ic): Likewise.
7359 (vsx_btrunc<mode>2): Likewise.
7360 (vsx_b2trunc<mode>2): Likewise.
7361 (vsx_floor<mode>2): Likewise.
7362 (vsx_ceil<mode>2): Likewise.
7363 (vsx_<VS_spdp_insn>): Likewise.
7364 (vsx_xscvspdp): Likewise.
7365 (vsx_xvcvspuxds): Likewise.
7366 (vsx_float_fix_<mode>2): Likewise.
7367 (vsx_set_<mode>): Likewise.
7368 (vsx_extract_<mode>_internal1): Likewise.
7369 (vsx_extract_<mode>_internal2): Likewise.
7370 (vsx_extract_<mode>_load): Likewise.
7371 (vsx_extract_<mode>_store): Likewise.
7372 (vsx_splat_<mode>): Likewise.
7373 (vsx_xxspltw_<mode>): Likewise.
7374 (vsx_xxspltw_<mode>_direct): Likewise.
7375 (vsx_xxmrghw_<mode>): Likewise.
7376 (vsx_xxmrglw_<mode>): Likewise.
7377 (vsx_xxsldwi_<mode>): Likewise.
7378 (vsx_xscvdpspn): Tighten constraints to only use register classes
7379 the types use.
7380 (vsx_xscvspdpn): Likewise.
7381 (vsx_xscvdpspn_scalar): Likewise.
7382
7383 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7384 wj, and wk constraints.
7385 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7386 general purpose registers.
7387
7388 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7389 direct moves.
7390 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7391 DImode instead of wm. Use wk constraint for direct move of DFmode
7392 instead of wm.
7393 (extendsidi2_lfiwax): Likewise.
7394 (lfiwax): Likewise.
7395 (lfiwzx): Likewise.
7396 (movdi_internal64): Likewise.
7397
7398 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7399 wk constraints. Make the wy constraint documentation match them
7400 implementation.
7401
7402 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7403
7404 Replacement of isl_int by isl_val
7405 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7406 (compute_bounds_for_param): use isl_val instead of isl_int
7407 (compute_bounds_for_loop): likewise
7408 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7409 (build_linearized_memory_access): use isl_val instead of isl_int
7410 (pdr_stride_in_loop): likewise
7411 * graphite-optimize-isl.c:
7412 (getPrevectorMap): use isl_val instead of isl_int
7413 * graphite-poly.c:
7414 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7415 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7416 (extern the_isl_ctx): declare
7417 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7418 (extract_affine_gmp): likewise
7419 (wrap): likewise
7420 (build_loop_iteration_domains): likewise
7421 (add_param_constraints): likewise
7422
7423 2014-08-11 Richard Biener <rguenther@suse.de>
7424
7425 PR tree-optimization/62075
7426 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7427 handle uses in patterns.
7428
7429 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7430 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7431 Anna Tikhonova <anna.tikhonova@intel.com>
7432 Ilya Tocar <ilya.tocar@intel.com>
7433 Andrey Turetskiy <andrey.turetskiy@intel.com>
7434 Ilya Verbin <ilya.verbin@intel.com>
7435 Kirill Yukhin <kirill.yukhin@intel.com>
7436 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7437
7438 * common/config/i386/i386-common.c
7439 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7440 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7441 (ix86_handle_option): Handle OPT_mavx512vl.
7442 * config/i386/cpuid.h (bit_AVX512VL): Define.
7443 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7444 set -mavx512vl accordingly.
7445 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7446 OPTION_MASK_ISA_AVX512VL.
7447 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7448 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7449 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7450 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7451 * config/i386/i386.h (TARGET_AVX512VL): Define.
7452 (TARGET_AVX512VL_P(x)): Ditto.
7453 * config/i386/i386.opt: Add mavx512vl.
7454
7455 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7456
7457 PR tree-optimization/62073
7458 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7459 a basic block.
7460
7461 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7463 Anna Tikhonova <anna.tikhonova@intel.com>
7464 Ilya Tocar <ilya.tocar@intel.com>
7465 Andrey Turetskiy <andrey.turetskiy@intel.com>
7466 Ilya Verbin <ilya.verbin@intel.com>
7467 Kirill Yukhin <kirill.yukhin@intel.com>
7468 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7469
7470 * common/config/i386/i386-common.c
7471 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7472 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7473 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7474 (ix86_handle_option): Handle OPT_mavx512bw.
7475 * config/i386/cpuid.h (bit_AVX512BW): Define.
7476 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7477 set -mavx512bw accordingly.
7478 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7479 OPTION_MASK_ISA_AVX512BW.
7480 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7481 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7482 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7483 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7484 * config/i386/i386.h (TARGET_AVX512BW): Define.
7485 (TARGET_AVX512BW_P(x)): Ditto.
7486 * config/i386/i386.opt: Add mavx512bw.
7487
7488 2014-08-11 Richard Biener <rguenther@suse.de>
7489
7490 PR tree-optimization/62070
7491 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7492 Remove SSA checking.
7493
7494 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7495
7496 * asan.c (asan_check_flags): New enum.
7497 (build_check_stmt_with_calls): Removed function.
7498 (build_check_stmt): Split inlining logic to
7499 asan_expand_check_ifn.
7500 (instrument_derefs): Rename parameter.
7501 (instrument_mem_region_access): Rename parameter.
7502 (instrument_strlen_call): Likewise.
7503 (asan_expand_check_ifn): New function.
7504 (asan_instrument): Remove old code.
7505 (pass_sanopt::execute): Change handling of
7506 asan-instrumentation-with-call-threshold.
7507 (asan_clear_shadow): Fix formatting.
7508 (asan_function_start): Likewise.
7509 (asan_emit_stack_protection): Likewise.
7510 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7511 Update description.
7512 * internal-fn.c (expand_ASAN_CHECK): New function.
7513 * internal-fn.def (ASAN_CHECK): New internal function.
7514 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7515 Update description.
7516 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7517 * tree.c: Small comment fix.
7518
7519 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7520
7521 * gimple.c (gimple_call_fnspec): Support internal functions.
7522 (gimple_call_return_flags): Use const.
7523 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7524 * internal-fn.def: Add fnspec information.
7525 * internal-fn.h (internal_fn_fnspec): New function.
7526 (init_internal_fns): Declare new function.
7527 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7528 (init_internal_fns): New function.
7529 * tree-core.h: Update macro call.
7530 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7531
7532 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7533
7534 * lto-streamer.h (struct output_block::symbol): Change from
7535 struct symtab_node to plain symtab_node.
7536 (referenced_from_this_partition_p): Change first parameter
7537 from struct symtab_node to plain symtab_node.
7538
7539 2014-08-10 Marek Polacek <polacek@redhat.com>
7540
7541 PR c/51849
7542 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7543
7544 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7545
7546 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7547 DECL correctly; do not give up on types in static storage.
7548
7549 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7550
7551 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7552
7553 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7554
7555 * graphite-isl-ast-to-gimple.c:
7556 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7557
7558 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7559
7560 2014-08-08 Guozhi Wei <carrot@google.com>
7561
7562 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7563
7564 2014-08-08 Cary Coutant <ccoutant@google.com>
7565
7566 * dwarf2out.c (get_skeleton_type_unit): Remove.
7567 (output_skeleton_debug_sections): Remove skeleton type units.
7568 (output_comdat_type_unit): Likewise.
7569 (dwarf2out_finish): Likewise.
7570
7571 2014-08-07 Yi Yang <ahyangyi@google.com>
7572
7573 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7574
7575 2014-08-08 Richard Biener <rguenther@suse.de>
7576
7577 * lto-streamer.h (struct lto_input_block): Make it a class
7578 with a constructor.
7579 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7580 (struct lto_function_header, struct lto_simple_header,
7581 struct lto_simple_header_with_strings,
7582 struct lto_decl_header, struct lto_function_header): Make
7583 a simple inheritance hieararchy. Remove unused fields.
7584 (struct lto_asm_header): Remove.
7585 * lto-streamer-out.c (produce_asm): Adjust.
7586 (lto_output_toplevel_asms): Likewise.
7587 (produce_asm_for_decls): Likewise.
7588 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7589 * data-streamer-in.c (string_for_index): Likewise.
7590 * ipa-inline-analysis.c (inline_read_section): Likewise.
7591 * ipa-prop.c (ipa_prop_read_section): Likewise.
7592 (read_replacements_section): Likewise.
7593 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7594 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7595 (lto_destroy_simple_input_block): Likewise.
7596 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7597 (lto_input_toplevel_asms): Likewise.
7598
7599 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7600 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7601 Anna Tikhonova <anna.tikhonova@intel.com>
7602 Ilya Tocar <ilya.tocar@intel.com>
7603 Andrey Turetskiy <andrey.turetskiy@intel.com>
7604 Ilya Verbin <ilya.verbin@intel.com>
7605 Kirill Yukhin <kirill.yukhin@intel.com>
7606 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7607
7608 * common/config/i386/i386-common.c
7609 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7610 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7611 (ix86_handle_option): Handle OPT_mavx512dq.
7612 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7613 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7614 set -mavx512dq accordingly.
7615 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7616 OPTION_MASK_ISA_AVX512DQ.
7617 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7618 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7619 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7620 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7621 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7622 (TARGET_AVX512DQ_P(x)): Ditto.
7623 * config/i386/i386.opt: Add mavx512dq.
7624
7625 2014-08-08 Richard Biener <rguenther@suse.de>
7626
7627 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7628 target_percent, target_percent_s): Export.
7629 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7630 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7631 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7632 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7633 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7634 Move to gimple-fold.c.
7635 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7636 strcat and strcpy.
7637 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7638 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7639 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7640 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7641 (rewrite_call_expr_array): Remove.
7642 (fold_builtin_sprintf_chk): Likewise.
7643 (fold_builtin_snprintf_chk): Likewise.
7644 (fold_builtin_varargs): Remove handling of sprintf_chk,
7645 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7646 (gimple_fold_builtin_sprintf_chk): Remove.
7647 (gimple_fold_builtin_snprintf_chk): Likewise.
7648 (gimple_fold_builtin_varargs): Likewise.
7649 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7650 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7651 * gimple.c (gimple_seq_add_seq_without_update): New function.
7652 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7653 * gimple-fold.c: Include output.h.
7654 (gsi_replace_with_seq_vops): New function, split out from ...
7655 (gimplify_and_update_call_from_tree): ... here.
7656 (replace_call_with_value): New function.
7657 (replace_call_with_call_and_fold): Likewise.
7658 (var_decl_component_p): Moved from builtins.c.
7659 (gimple_fold_builtin_memory_op): Moved from builtins.c
7660 fold_builtin_memory_op and rewritten to GIMPLE.
7661 (gimple_fold_builtin_memset): Likewise.
7662 (gimple_fold_builtin_strcpy): Likewise.
7663 (gimple_fold_builtin_strncpy): Likewise.
7664 (gimple_fold_builtin_strcat): Likewise.
7665 (gimple_fold_builtin_fputs): Likewise.
7666 (gimple_fold_builtin_memory_chk): Likewise.
7667 (gimple_fold_builtin_stxcpy_chk): Likewise.
7668 (gimple_fold_builtin_stxncpy_chk): Likewise.
7669 (gimple_fold_builtin_snprintf_chk): Likewise.
7670 (gimple_fold_builtin_sprintf_chk): Likewise.
7671 (gimple_fold_builtin_strlen): New function.
7672 (gimple_fold_builtin_with_strlen): New function split out from
7673 gimple_fold_builtin.
7674 (gimple_fold_builtin): Change signature and handle
7675 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7676 here. Call gimple_fold_builtin_with_strlen.
7677 (gimple_fold_call): Adjust.
7678
7679 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7680
7681 * calls.c (precompute_arguments): Check
7682 promoted_for_signed_and_unsigned_p and set the promoted mode.
7683 (promoted_for_signed_and_unsigned_p): New function.
7684 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7685 and set the promoted mode.
7686 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7687 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7688 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7689
7690
7691 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7692
7693 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7694 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7695 (expand_call): Likewise.
7696 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7697 to get promoted mode.
7698 * combine.c (record_promoted_value): Skip > 0 comparison with
7699 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7700 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7701 of SUBREG_PROMOTED_UNSIGNED_P.
7702 (convert_modes): Likewise.
7703 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7704 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7705 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7706 SUBREG_PROMOTED_UNSIGNED_SET.
7707 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7708 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7709 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7710 SUBREG_PROMOTED_SET.
7711 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7712 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7713 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7714 of SUBREG_PROMOTED_UNSIGNED_P.
7715 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7716 (SUBREG_PROMOTED_SET): New define.
7717 (SUBREG_PROMOTED_GET): Likewise.
7718 (SUBREG_PROMOTED_SIGN): Likewise.
7719 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7720 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7721 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7722 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7723 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7724 (nonzero_bits1): Skip > 0 comparison with the results as
7725 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7726 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7727 of !SUBREG_PROMOTED_UNSIGNED_P.
7728 * simplify-rtx.c (simplify_unary_operation_1): Use new
7729 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7730 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7731 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7732 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7733
7734 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7735
7736 * ipa-devirt.c: Include gimple-pretty-print.h
7737 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7738 further tests.
7739 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7740 (get_polymorphic_call_info): Fix return value
7741 (type_change_info): New sturcture based on ipa-prop
7742 variant.
7743 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7744 based on ipa-prop variant.
7745 (extr_type_from_vtbl_ptr_store): New function
7746 based on ipa-prop variant.
7747 (record_known_type): New function.
7748 (check_stmt_for_type_change): New function.
7749 (get_dynamic_type): New function.
7750 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7751 * tree-ssa-pre.c: ipa-utils.h
7752 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7753 machinery; sanity check with ipa-prop devirtualization.
7754 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7755 polymorphic flag.
7756
7757 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7758
7759 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7760 * alias.c, cfgexpand.c, cgraphbuild.c,
7761 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7762 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7763 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7764 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7765 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7766 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7767 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7768 dse.c, except.c, gengtype.c, gimple-expr.c,
7769 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7770 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7771 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7772 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7773 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7774 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7775 pointer-set.h.
7776 * pointer-set.c: Remove file.
7777 * pointer-set.h: Remove file.
7778
7779 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7780
7781 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7782 * config/arm/types.md (f_sels, f_seld): Delete.
7783
7784 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7785
7786 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7787 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7788 (aarch64_movdi_<mode>high): Likewise.
7789 (aarch64_mov<mode>high_di): Likewise.
7790 (aarch64_movdi_<mode>low): Likewise.
7791 (aarch64_mov<mode>low_di): Likewise.
7792 (aarch64_movtilow_tilow): Likewise.
7793 Add comment explaining usage of fp,simd attributes and of
7794 TARGET_FLOAT and TARGET_SIMD.
7795
7796 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7797 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7798
7799 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7800 Use MOVN when one of the half-words is 0xffff.
7801
7802 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7803
7804 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7805
7806 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7807
7808 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7809 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7810 (rfs_str): String corresponding to RFS_* constants.
7811 (rank_for_schedule_stats_t): New typedef.
7812 (rank_for_schedule_stats): New static variable.
7813 (rfs_result): New static function.
7814 (rank_for_schedule): Track statistics for deciding heuristics.
7815 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7816 static functions.
7817 (ready_sort): Use them for debug printouts.
7818 (schedule_block): Init statistics state. Print statistics on
7819 rank_for_schedule decisions.
7820
7821 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7822
7823 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7824
7825 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7826
7827 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7828 constraint.
7829
7830 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7831
7832 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7833 function to not conflict.
7834 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7835 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7836 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7837 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7838 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7839 of pointer_map.
7840
7841 2014-08-07 Marek Polacek <polacek@redhat.com>
7842
7843 * fold-const.c (fold_binary_loc): Add folding of
7844 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7845
7846 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7847
7848 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7849 instead of type size.
7850 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7851
7852 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7853
7854 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7855 (*thumb1_movqi_insn): Likewise.
7856 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7857
7858 2014-08-07 Tom de Vries <tom@codesourcery.com>
7859
7860 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7861 (glibc_2_11_or_earlier): Remove effective-target keywords.
7862
7863 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7864
7865 * config/arm/arm.c (bdesc_2arg): Fix typo.
7866 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7867
7868 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7869
7870 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7871
7872 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7873
7874 PR debug/61923
7875 * haifa-sched.c (advance_one_cycle): Fix dump.
7876 (schedule_block): Don't advance cycle if we are already at the
7877 beginning of the cycle.
7878
7879 2014-08-06 Martin Jambor <mjambor@suse.cz>
7880
7881 PR ipa/61393
7882 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7883
7884 2014-08-06 Richard Biener <rguenther@suse.de>
7885
7886 PR lto/62034
7887 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7888 SCCs here.
7889 (lto_input_tree): Pop SCCs here.
7890
7891 2014-08-06 Richard Biener <rguenther@suse.de>
7892
7893 PR tree-optimization/61320
7894 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7895 handle misaligned loads.
7896
7897 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7898
7899 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7900 (aarch64_expand_vec_perm_const): Check for dup before zip.
7901
7902 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7903
7904 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7905 CONST_INT_P instead of GET_CODE and compare.
7906 (aarch64_select_cc_mode): Likewise.
7907 (aarch64_print_operand): Likewise.
7908 (aarch64_rtx_costs): Likewise.
7909 (aarch64_simd_valid_immediate): Likewise.
7910 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7911 (aarch64_simd_emit_pair_result_insn): Likewise.
7912
7913 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7914
7915 * gdbhooks.py (find_gcc_source_dir): New helper function.
7916 (class PassNames): New class, locating and parsing passes.def.
7917 (class BreakOnPass): New command "break-on-pass".
7918
7919 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7920
7921 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7922 getting olde.
7923
7924 2014-08-05 Richard Biener <rguenther@suse.de>
7925
7926 PR rtl-optimization/61672
7927 * emit-rtl.h (mem_attrs_eq_p): Declare.
7928 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7929 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7930 * cfgcleanup.c (merge_memattrs): Likewise.
7931 Include emit-rtl.h.
7932
7933 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7934
7935 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7936 rather than singleton vectors.
7937 (vqdmlsls_lane_s32): Likewise.
7938
7939 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7940
7941 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7942 Use VSDQ_HSI mode iterator.
7943 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7944 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7945 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7946 Use BUILTIN_VDQHS macro.
7947 (sqrdmulh_laneq): Likewise.
7948 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7949 (vqdmlals_laneq_s32): Likewise.
7950 (vqdmlslh_laneq_s16): Likewise.
7951 (vqdmlsls_laneq_s32): Likewise.
7952 (vqdmulhh_laneq_s16): Likewise.
7953 (vqdmulhs_laneq_s32): Likewise.
7954 (vqrdmulhh_laneq_s16): Likewise.
7955 (vqrdmulhs_laneq_s32): Likewise.
7956
7957 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7958
7959 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7960 (vmuld_laneq_f64): Likewise.
7961 (vmuls_laneq_f32): Likewise.
7962 (vmul_n_f64): Likewise.
7963 (vmuld_lane_f64): Reimplement in C.
7964 (vmuls_lane_f32): Likewise.
7965
7966 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7967
7968 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7969 to reservation.
7970 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7971
7972 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7973
7974 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7975 (rbitsi2): Likewise.
7976 (*arm_rev): Set predicable and predicable_short_it attributes.
7977
7978 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7979
7980 * convert.c (convert_to_integer): Guard transformation to lrint by
7981 -fno-math-errno.
7982
7983 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7984
7985 * config/aarch64/aarch64-builtins.c
7986 (aarch64_simd_builtin_type_mode): Delete.
7987 (v8qi_UP): Remap to V8QImode.
7988 (v4hi_UP): Remap to V4HImode.
7989 (v2si_UP): Remap to V2SImode.
7990 (v2sf_UP): Remap to V2SFmode.
7991 (v1df_UP): Remap to V1DFmode.
7992 (di_UP): Remap to DImode.
7993 (df_UP): Remap to DFmode.
7994 (v16qi_UP):V16QImode.
7995 (v8hi_UP): Remap to V8HImode.
7996 (v4si_UP): Remap to V4SImode.
7997 (v4sf_UP): Remap to V4SFmode.
7998 (v2di_UP): Remap to V2DImode.
7999 (v2df_UP): Remap to V2DFmode.
8000 (ti_UP): Remap to TImode.
8001 (ei_UP): Remap to EImode.
8002 (oi_UP): Remap to OImode.
8003 (ci_UP): Map to CImode.
8004 (xi_UP): Remap to XImode.
8005 (si_UP): Remap to SImode.
8006 (sf_UP): Remap to SFmode.
8007 (hi_UP): Remap to HImode.
8008 (qi_UP): Remap to QImode.
8009 (aarch64_simd_builtin_datum): Make mode a machine_mode.
8010 (VAR1): Build builtin name.
8011 (aarch64_init_simd_builtins): Remove dead code.
8012
8013 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8014
8015 * graphite-isl-ast-to-gimple.c:
8016 (set_options): New function.
8017 (scop_to_isl_ast): Add calling of set_options.
8018
8019 2014-08-05 Jakub Jelinek <jakub@redhat.com>
8020
8021 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
8022 (analyze_iv_to_split_insn): Don't initialize them.
8023 (get_ivts_expr): Removed.
8024 (allocate_basic_variable, insert_base_initialization): Use
8025 SET_SRC instead of *get_ivts_expr.
8026 (split_iv): Use &SET_SRC instead of get_ivts_expr.
8027
8028 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8029
8030 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
8031 (translate_isl_ast_for_loop): Add checking of the
8032 flag_loop_parallelize_all.
8033 (ast_build_before_for): New function.
8034 (scop_to_isl_ast): Add checking of the
8035 flag_loop_parallelize_all.
8036 * graphite-dependences.c: Move the defenition of the
8037 scop_get_dependences from graphite-optimize-isl.c to this file.
8038 (apply_schedule_on_deps): Add checking of the ux's emptiness.
8039 (carries_deps): Add checking of the x's value.
8040 * graphite-optimize-isl.c: Move the defenition of the
8041 scop_get_dependences to graphite-dependences.c.
8042 * graphite-poly.h: Add declarations of scop_get_dependences
8043 and carries_deps.
8044
8045 2014-08-04 Rohit <rohitarulraj@freescale.com>
8046
8047 PR target/60102
8048 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
8049 names.
8050 (alt_reg_names): Likewise.
8051 (rs6000_dwarf_register_span): For SPE high registers, replace
8052 dwarf register numbers with GCC hard register numbers.
8053 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
8054 (rs6000_dbx_register_number): For SPE high registers, return dwarf
8055 register number for the corresponding GCC hard register number.
8056 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
8057 newly added GCC hard register numbers for SPE high registers.
8058 (DWARF_FRAME_REGISTERS): Likewise.
8059 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
8060 (DWARF_FRAME_REGNUM): Likewise.
8061 (FIXED_REGISTERS): Likewise.
8062 (CALL_USED_REGISTERS): Likewise.
8063 (CALL_REALLY_USED_REGISTERS): Likewise.
8064 (REG_ALLOC_ORDER): Likewise.
8065 (enum reg_class): Likewise.
8066 (REG_CLASS_NAMES): Likewise.
8067 (REG_CLASS_CONTENTS): Likewise.
8068 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
8069
8070 2014-08-04 Richard Biener <rguenther@suse.de>
8071
8072 * gimple-fold.h (gimple_fold_builtin): Remove.
8073 * gimple-fold.c (gimple_fold_builtin): Make static.
8074 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
8075 fold_stmt, not gimple_fold_builtin.
8076
8077 2014-08-04 Martin Liska <mliska@suse.cz>
8078
8079 * cgraph.h (csi_end_p): Removed.
8080 (csi_next): Likewise.
8081 (csi_node): Likewise.
8082 (csi_start): Likewise.
8083 (cgraph_node_in_set_p): Likewise.
8084 (cgraph_node_set_size): Likewise.
8085 (vsi_end_p): Likewise.
8086 (vsi_next): Likewise.
8087 (vsi_node): Likewise.
8088 (vsi_start): Likewise.
8089 (varpool_node_set_size): Likewise.
8090 (cgraph_node_set_nonempty_p): Likewise.
8091 (varpool_node_set_nonempty_p): Likewise.
8092 * cgraphunit.c (cgraph_process_new_functions): vec replaces
8093 cgraph_node_set.
8094 * ipa-inline-transform.c: Likewise.
8095 * ipa-utils.c (cgraph_node_set_new): Removed.
8096 (cgraph_node_set_add): Likewise.
8097 (cgraph_node_set_remove): Likewise.
8098 (cgraph_node_set_find): Likewise.
8099 (dump_cgraph_node_set): Likewise.
8100 (debug_cgraph_node_set): Likewise.
8101 (free_cgraph_node_set): Likewise.
8102 (varpool_node_set_new): Likewise.
8103 (varpool_node_set_add): Likewise.
8104 (varpool_node_set_remove): Likewise.
8105 (varpool_node_set_find): Likewise.
8106 (dump_varpool_node_set): Likewise.
8107 (free_varpool_node_set): Likewise.
8108 (debug_varpool_node_set): Likewise.
8109 * tree-emutls.c (struct tls_var_data):
8110 (emutls_index): Removed.
8111 (emutls_decl): Likewise.
8112 (gen_emutls_addr): Function implementation uses newly added
8113 hash_map<varpool_node *, tls_var_data>.
8114 (clear_access_vars): Likewise.
8115 (create_emultls_var): Likewise.
8116 (ipa_lower_emutls): Likewise.
8117 (reset_access): New function.
8118
8119 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8120
8121 * config/i386/i386.c (ix86_option_override_internal): Add
8122 PTA_RDRND and PTA_MOVBE for bdver4.
8123
8124 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8125 James Greenhalgh <james.greenhalgh@arm.com>
8126
8127 * doc/md.texi (clrsb): Document.
8128 (clz): Change reference to x into operand 1.
8129 (ctz): Likewise.
8130 (popcount): Likewise.
8131
8132 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8133
8134 PR target/61713
8135 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
8136 move to subtarget in serial version if result is ignored.
8137
8138 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8139 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8140
8141 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
8142 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
8143 (sched_analyze_insn): Update use of try_group_insn to
8144 sched_macro_fuse_insns.
8145 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
8146 arguments that are not conditional jumps.
8147
8148 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8149
8150 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
8151 family information. Handle BTVER2 cpu with cpuid family value.
8152
8153 2014-08-04 Tom de Vries <tom@codesourcery.com>
8154
8155 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8156 (glibc_2_11_or_earlier): Document effective-target keywords.
8157
8158 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8159
8160 * ipa-devirt.c (odr_type_warn_count): Add type.
8161 (possible_polymorphic_call_targets): Set it.
8162 (ipa_devirt): Use it.
8163
8164 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8165
8166 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
8167 Document.
8168 * ipa-devirt.c: Include hash-map.h
8169 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
8170 (clear_speculation): Break out of ...
8171 (get_class_context): ... here; speed up handling obviously useless
8172 speculations.
8173 (odr_type_warn_count, decl_warn_count): New structures.
8174 (final_warning_record): New structure.
8175 (final_warning_records): New static variable.
8176 (possible_polymorphic_call_targets): Cleanup handling of
8177 speculative info; do not build speculation when user do not care;
8178 record info about warnings when asked for.
8179 (add_decl_warning): New function.
8180 (type_warning_cmp): New function.
8181 (decl_warning_cmp): New function.
8182 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
8183 (gate): Enable pass when warnings are requested.
8184 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
8185 options.
8186
8187 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8188
8189 * hash-map.h (default_hashmap_traits::mark_key_deleted):
8190 Fix cast.
8191 (hash_map::remove): New method.
8192 (hash_map::traverse): New method.
8193 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
8194 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
8195 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
8196 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
8197 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8198 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8199 pointer_map.
8200
8201 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8202
8203 * hash-set.h: new File.
8204 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8205 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8206 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8207 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8208 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8209 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8210 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8211 varpool.c: Use hash_set instead of pointer_set.
8212
8213 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8214
8215 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8216
8217 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8218
8219 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8220 for frame access when strict_p is false.
8221
8222 2014-08-01 Renlin Li <renlin.li@arm.com>
8223 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8224
8225 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8226 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8227 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8228 Declaration.
8229 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8230 predicate.
8231 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8232 aarch64_mem_pair_offset.
8233
8234 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8235
8236 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8237 offset.
8238 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8239 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8240
8241 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8242
8243 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8244
8245 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8246
8247 PR regression/61510
8248 * cgraphunit.c (analyze_functions): Use get_create rather than get
8249 for decls which are clones of abstract functions.
8250
8251 2014-08-01 Martin Liska <mliska@suse.cz>
8252
8253 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8254 * ipa-prop.h (count_formal_params): Global function created from static.
8255 * ipa-prop.c (count_formal_params): Likewise.
8256 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8257 profiles for semantically equivalent functions.
8258 * passes.c (do_per_function): If we load body of a function
8259 during WPA, this condition should behave same.
8260 * varpool.c (ctor_for_folding): More tolerant assert for variable
8261 aliases created during WPA.
8262
8263 2014-08-01 Martin Liska <mliska@suse.cz>
8264
8265 * doc/invoke.texi (Options That Control Optimization): Documentation
8266 for -foptimize-strlen introduced. Optimization levels default options
8267 fixed.
8268
8269 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8270
8271 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8272 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8273 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8274 type to bool.
8275 * stor-layout.h (min_align_of_type): New prototype.
8276 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8277 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8278 check.
8279 * ubsan.c: Include builtins.h.
8280 (ubsan_expand_bounds_ifn): Change return type to bool,
8281 always return true.
8282 (ubsan_expand_null_ifn): Change return type to bool, change
8283 argument to gimple_stmt_iterator *. Handle both null and alignment
8284 sanitization, take type from ckind argument's type rather than
8285 first argument.
8286 (instrument_member_call): Removed.
8287 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8288 Handle both null and alignment sanitization, don't say whole
8289 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8290 call instead of 2 argument.
8291 (instrument_null): Adjust instrument_mem_ref caller. Don't
8292 instrument calls here.
8293 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8294 like SANITIZE_NULL.
8295 * stor-layout.c (min_align_of_type): New function.
8296 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8297 Or it into SANITIZE_UNDEFINED.
8298 * doc/invoke.texi (-fsanitize=alignment): Document.
8299
8300 2014-07-31 Andi Kleen <ak@linux.intel.com>
8301
8302 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8303
8304 2014-07-31 Andi Kleen <ak@linux.intel.com>
8305
8306 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8307 inchash.
8308 (vn_reference_compute_hash): Dito.
8309 (vn_nary_op_compute_hash): Dito.
8310 (vn_phi_compute_hash): Dito.
8311 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8312
8313 2014-07-31 Andi Kleen <ak@linux.intel.com>
8314
8315 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8316 Rename to inchash:add_expr_commutative. Convert to inchash.
8317 (iterative_hash_hashable_expr): Rename to
8318 inchash:add_hashable_expr. Convert to inchash.
8319 (avail_expr_hash): Dito.
8320
8321 2014-07-31 Andi Kleen <ak@linux.intel.com>
8322
8323 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8324 Convert to inchash.
8325
8326 2014-07-31 Andi Kleen <ak@linux.intel.com>
8327
8328 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8329
8330 2014-07-31 Andi Kleen <ak@linux.intel.com>
8331
8332 * Makefile.in (OBJS): Add rtlhash.o
8333 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8334 (loc_checksum): Dito.
8335 (loc_checksum_ordered): Dito.
8336 (hash_loc_operands): Dito.
8337 (hash_locs): Dito.
8338 (hash_loc_list): Dito.
8339 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8340 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8341 * rtlhash.c: New file.
8342 * rtlhash.h: New file.
8343
8344 2014-07-31 Andi Kleen <ak@linux.intel.com>
8345
8346 * inchash.h (inchash): Change inchash class to namespace.
8347 (class hash): ... Rename from inchash.
8348 (add_object): Move from macro to class template.
8349 * lto-streamer-out.c (hash_tree): Change inchash
8350 to inchash::hash.
8351 * tree.c (build_type_attribute_qual_variant): Dito.
8352 (type_hash_list): Dito.
8353 (attribute_hash_list): Dito.
8354 (iterative_hstate_expr): Rename to inchash::add_expr
8355 (build_range_type_1): Change inchash to inchash::hash
8356 and use hash::add_expr.
8357 (build_array_type_1): Dito.
8358 (build_function_type): Dito
8359 (build_method_type_directly): Dito.
8360 (build_offset_type): Dito.
8361 (build_complex_type): Dito.
8362 (make_vector_type): Dito.
8363 * tree.h (iterative_hash_expr): Dito.
8364
8365 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8366
8367 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8368
8369 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8370
8371 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8372 correct alphabetical position.
8373 (vpaddd_f64): Rewrite using builtins.
8374 (vpaddd_s64): Move to correct alphabetical position.
8375 (vpaddd_u64): New.
8376
8377 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8378
8379 PR target/61844
8380 * config/sh/sh.c (sh_legitimate_address_p,
8381 sh_legitimize_reload_address): Handle reg+reg address modes when
8382 ALLOW_INDEXED_ADDRESS is false.
8383 * config/sh/predicates.md (general_movsrc_operand,
8384 general_movdst_operand): Likewise.
8385
8386 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8387
8388 * config/aarch64/aarch64-builtins.c
8389 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8390 BYTES_BIG_ENDIAN.
8391
8392 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8393
8394 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8395 the generated mask based on BYTES_BIG_ENDIAN.
8396 (aarch64_simd_check_vect_par_cnst_half): New.
8397 * config/aarch64/aarch64-protos.h
8398 (aarch64_simd_check_vect_par_cnst_half): New.
8399 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8400 the check out to aarch64_simd_check_vect_par_cnst_half.
8401 (vect_par_cnst_lo_half): Likewise.
8402 * config/aarch64/aarch64-simd.md
8403 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8404 (move_hi_quad_<mode>): Always generate a low mask.
8405
8406 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8407
8408 * doc/invoke.texi (AVR Options): Add documentation about
8409 __AVR_DEVICE_NAME__ built-in macro.
8410
8411 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8412
8413 PR target/61948
8414 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8415 constraints are satisfied.
8416 (<shift>di3_neon): Likewise.
8417
8418 2014-07-31 Richard Biener <rguenther@suse.de>
8419
8420 PR tree-optimization/61964
8421 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8422 by structural equality.
8423
8424 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8425
8426 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8427 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8428 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8429 New enums.
8430 * gcc.c (sanitize_spec_function): Support new option.
8431 (SANITIZER_SPEC): Remove now redundant check.
8432 * opts.c (common_handle_option): Support new option.
8433 (finish_options): Check for incompatibilities.
8434 * toplev.c (process_options): Split userspace-specific checks.
8435
8436 2014-07-31 Richard Biener <rguenther@suse.de>
8437
8438 * lto-streamer.h (struct output_block): Remove global.
8439 (struct data_in): Remove labels, num_named_labels and
8440 num_unnamed_labels.
8441 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8442 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8443
8444 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8445
8446 PR c++/60517
8447 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8448 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8449 (isolate_path): New argument to avoid inserting a trap.
8450 (find_implicit_erroneous_behaviour): Handle returning the address
8451 of a local variable.
8452 (find_explicit_erroneous_behaviour): Likewise.
8453
8454 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8455
8456 PR lto/61868
8457 * toplev.c (init_random_seed): Move piece of code never called to
8458 set_random_seed.
8459 (set_random_seed): see above.
8460
8461 2014-07-31 Tom de Vries <tom@codesourcery.com>
8462
8463 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8464
8465 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8466
8467 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8468 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8469
8470 2014-07-31 Richard Biener <rguenther@suse.de>
8471
8472 * data-streamer.h (streamer_write_data_stream): Declare here,
8473 renamed from ...
8474 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8475 * lto-cgraph.c (lto_output_node): Adjust.
8476 (lto_output_varpool_node): Likewise.
8477 * data-streamer-out.c (streamer_string_index): Likewise.
8478 (streamer_write_data_stream, lto_append_block): Move from ...
8479 * lto-section-out.c (lto_output_data_stream,
8480 lto_append_block): ... here.
8481
8482 2014-07-30 Mike Stump <mikestump@comcast.net>
8483
8484 * configure.ac: Also check for popen.
8485 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8486 * configure: Regenerate.
8487 * config.in: Regenerate.
8488
8489 2014-07-30 Martin Jambor <mjambor@suse.cz>
8490
8491 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8492 parameter to gimple.
8493
8494 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8495
8496 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8497 address as second parameter to __tpf_eh_return routine.
8498
8499 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8500
8501 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8502 Thumb2.
8503
8504 2014-07-30 Tom Tromey <tromey@redhat.com>
8505
8506 PR c/59855
8507 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8508 * doc/extend.texi (Type Attributes): Document designated_init
8509 attribute.
8510
8511 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8512
8513 * graphite-isl-ast-to-gimple.c:
8514 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8515 (gcc_expression_from_isl_expression): Pass type to
8516 gcc_expression_from_isl_ast_expr_id.
8517
8518 2014-07-30 Richard Biener <rguenther@suse.de>
8519
8520 * lto-streamer.h (lto_write_data): New function.
8521 * langhooks.c (lhd_append_data): Do not free block.
8522 * lto-section-out.c (lto_write_data): New function writing
8523 raw data to the current section.
8524 (lto_write_stream): Adjust for langhook semantic change.
8525 (lto_destroy_simple_output_block): Write header directly.
8526 * lto-opts.c (lto_write_options): Write options directly.
8527 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8528 (lto_output_toplevel_asms): Likewise.
8529 (copy_function_or_variable): Copy data directly.
8530 (write_global_references): Output index table directly.
8531 (lto_output_decl_state_refs): Likewise.
8532 (write_symbol): Write data directly.
8533 (produce_symtab): Adjust.
8534 (produce_asm_for_decls): Output header and refs directly.
8535
8536 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8537
8538 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8539 to speculative_targets
8540 (get_class_context): Fix handling of contextes without outer type;
8541 avoid matching non-polymorphic types in LTO.
8542 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8543 parameter to speculative_targetsp; handle speculation.
8544 (dump_possible_polymorphic_call_targets): Update dumping.
8545
8546 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8547
8548 * common.opt (Wodr): Enable by default.
8549
8550 2014-07-29 Olivier Hainque <hainque@adacore.com>
8551
8552 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8553
8554 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8555
8556 PR bootstrap/61914
8557 * gengtype.c (strtoken): New function.
8558 (create_user_defined_type): Replace strtok with strtoken.
8559
8560 2014-07-29 Nathan Sidwell <nathan@acm.org>
8561
8562 * gcov-io.c (gcov_var): Make hidden.
8563 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8564 (gcov_do_dump): Declare.
8565 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8566
8567 2014-07-29 Martin Jambor <mjambor@suse.cz>
8568
8569 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8570 parameter to gimple.
8571 (sra_modify_assign): Likewise.
8572
8573 2014-07-29 Richard Biener <rguenther@suse.de>
8574
8575 PR middle-end/52478
8576 * expr.c (expand_expr_real_2): Revert last change.
8577
8578 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8579
8580 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8581 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8582 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8583 call.
8584 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8585 (contains_type_p): Forward declare.
8586 (polymorphic_call_target_hasher::hash): Hash speculative info.
8587 (polymorphic_call_target_hasher::equal): Compare speculative info.
8588 (get_class_context): Handle speuclation.
8589 (contains_type_p): Update.
8590 (get_polymorphic_call_info_for_decl): Update.
8591 (walk_ssa_copies): Break out from ...
8592 (get_polymorphic_call_info): ... here; set speculative context
8593 before giving up.
8594 * ipa-prop.c (ipa_write_indirect_edge_info,
8595 ipa_read_indirect_edge_info): Stream speculative context.
8596 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8597 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8598 SPECULATIVE_MAYBE_DERIVED_TYPE).
8599 (possible_polymorphic_call_targets overriders): Update.
8600 (dump_possible_polymorphic_call_targets overriders): Update.
8601 (dump_possible_polymorphic_call_target_p overriders): Update.
8602
8603 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8604
8605 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8606 ipa-devirt path; fix thinko there.
8607
8608 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8609
8610 * config/i386/i386.c (ix86_return_in_memory): Replace one
8611 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8612
8613 2014-07-28 Marek Polacek <polacek@redhat.com>
8614
8615 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8616
8617 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8618
8619 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8620 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8621 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8622 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8623 (USE_LD_AS_NEEDED): Likewise.
8624 (ASM_APP_ON): Likewise.
8625 (ASM_APP_OFF): Likewise.
8626 (TARGET_POSIX_IO): Likewise.
8627 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8628 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8629 (USE_LD_AS_NEEDED): Likewise.
8630 (ASM_APP_ON): Likewise.
8631 (ASM_APP_OFF): Likewise.
8632 (TARGET_POSIX_IO): Likewise.
8633
8634 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8635
8636 PR middle-end/61734
8637 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8638 operators other than the equality operators.
8639
8640 2014-07-28 Richard Biener <rguenther@suse.de>
8641
8642 PR middle-end/52478
8643 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8644 sure to register SImode ones, not only >= word_mode ones.
8645 * expr.c (expand_expr_real_2): When expanding -ftrapv
8646 binops do not use OPTAB_LIB_WIDEN.
8647
8648 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8649
8650 PR middle-end/61919
8651 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8652 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8653 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8654 inserting them in the insn stream.
8655
8656 2014-07-28 Marek Polacek <polacek@redhat.com>
8657
8658 PR middle-end/61913
8659 * common.opt (Wodr): Add Var.
8660
8661 2014-07-28 Richard Biener <rguenther@suse.de>
8662
8663 PR tree-optimization/61921
8664 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8665 if there is a varpool node before dereferencing it.
8666
8667 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8668
8669 * graphite-sese-to-poly.c:
8670 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8671 id of the pbb), which contains pointer to the pbb1.
8672
8673 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8674
8675 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8676
8677 * graphite-isl-ast-to-gimple.c:
8678 (graphite_create_new_guard): New function.
8679 (translate_isl_ast_node_if): New function.
8680 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8681
8682 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8683
8684 2014-07-27 Anthony Green <green@moxielogic.com>
8685
8686 * config.gcc: Add moxie-*-moxiebox* configuration.
8687 * config/moxie/moxiebox.h: New file.
8688
8689 2014-07-26 Andrew Pinski <apinski@cavium.com>
8690
8691 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8692 from the read only register.
8693
8694 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8695
8696 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8697 as the allocation class if it isn't likely to be spilled.
8698
8699 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8700
8701 * rtl.h (tls_referenced_p): Declare.
8702 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8703 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8704 (mips_cannot_force_const_mem): Use tls_referenced_p.
8705 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8706 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8707 instead of pa_tls_referenced_p.
8708 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8709 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8710 (pa_legitimate_constant_p): Likewise.
8711 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8712 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8713 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8714 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8715 rs6000_tls_referenced_p.
8716 (rs6000_tls_symbol_ref_1): Delete.
8717
8718 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8719
8720 PR target/44551
8721 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8722 Optimize inverse of a VEC_CONCAT.
8723
8724 2014-07-25 Xinliang David Li <davidxl@google.com>
8725
8726 * params.def: New parameter.
8727 * coverage.c (get_coverage_counts): Check new flag.
8728 (coverage_compute_profile_id): Check new flag.
8729 (coverage_begin_function): Check new flag.
8730 (coverage_end_function): Check new flag.
8731 * value-prof.c (coverage_node_map_initialized_p): New function.
8732 (init_node_map): Populate map with all functions.
8733 * doc/invoke.texi: Document new parameter.
8734
8735 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8736 Richard Biener <rguenther@suse.de>
8737
8738 * lto-streamer-out.c (struct sccs): Turn to ...
8739 (class DFS): ... this one; refactor the DFS walk so it can
8740 be re-done on per-SCC basis.
8741 (DFS::DFS): New constructor.
8742 (DFS::~DFS): New destructor.
8743 (hash_tree): Add new MAP argument holding in-SCC hash values;
8744 remove POINTER_TYPE hashing hack.
8745 (scc_entry_compare): Rename to ...
8746 (DFS::scc_entry_compare): ... this one.
8747 (hash_scc): Rename to ...
8748 (DFS::hash_scc): ... this one; pass output_block instead
8749 of streamer_cache; work harder to get unique and stable SCC
8750 hashes.
8751 (DFS_write_tree): Rename to ...
8752 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8753 (lto_output_tree): Update.
8754
8755 2014-07-25 Andi Kleen <ak@linux.intel.com>
8756
8757 * lto-streamer-out.c (hash_tree): Convert to inchash.
8758
8759 2014-07-25 Andi Kleen <ak@linux.intel.com>
8760
8761 * tree.c (build_type_attribute_qual_variant): Use inchash.
8762 (type_hash_list): Dito.
8763 (attribute_hash_list): Dito
8764 (iterative_hstate_expr): Dito.
8765 (iterative_hash_expr): Dito.
8766 (build_range_type_1): Dito.
8767 (build_array_type_1): Dito.
8768 (build_function_type): Dito.
8769 (build_method_type_directly): Dito.
8770 (build_offset_type): Dito.
8771 (build_complex_type): Dito.
8772 (make_vector_type): Dito.
8773 * tree.h (iterative_hash_expr): Add compat wrapper.
8774 (iterative_hstate_expr): Add.
8775
8776 2014-07-25 Andi Kleen <ak@linux.intel.com>
8777
8778 * Makefile.in (OBJS): Add inchash.o.
8779 (PLUGIN_HEADERS): Add inchash.h.
8780 * ipa-devirt.c: Include inchash.h.
8781 * lto-streamer-out.c: Dito.
8782 * tree-ssa-dom.c: Dito.
8783 * tree-ssa-pre.c: Dito.
8784 * tree-ssa-sccvn.c: Dito.
8785 * tree-ssa-tail-merge.c: Dito.
8786 * asan.c: Dito.
8787 * tree.c (iterative_hash_hashval_t): Move to ...
8788 (iterative_hash_host_wide_int): Move to ...
8789 * inchash.c: Here. New file.
8790 * tree.h (iterative_hash_hashval_t): Move to ...
8791 (iterative_hash_host_wide_int): Move to ...
8792 * inchash.h: Here. New file.
8793
8794 2014-07-25 Richard Biener <rguenther@suse.de>
8795
8796 PR middle-end/61762
8797 PR middle-end/61894
8798 * fold-const.c (native_encode_int): Add and handle offset
8799 parameter to do partial encodings of expr.
8800 (native_encode_fixed): Likewise.
8801 (native_encode_real): Likewise.
8802 (native_encode_complex): Likewise.
8803 (native_encode_vector): Likewise.
8804 (native_encode_string): Likewise.
8805 (native_encode_expr): Likewise.
8806 * fold-const.c (native_encode_expr): Add offset parameter
8807 defaulting to -1.
8808 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8809 (fold_ctor_reference): Handle all reads from tcc_constant
8810 ctors.
8811
8812 2014-07-25 Richard Biener <rguenther@suse.de>
8813
8814 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8815 as possibly unused.
8816
8817 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8818
8819 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8820
8821 2014-07-24 Kyle McMartin <kyle@redhat.com>
8822
8823 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8824
8825 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8826
8827 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8828 Add prototype.
8829 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8830 function.
8831 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8832 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8833 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8834
8835 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8836
8837 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8838 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8839 aggregate types. Instead, *all* aggregate types, except for single-
8840 element or homogeneous float/vector aggregates, are quadword-aligned
8841 if required by their type alignment. Issue -Wpsabi note when a type
8842 is now treated differently than before.
8843
8844 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8845
8846 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8847 does not fit fully into floating-point registers, and there is still
8848 space in the register parameter area, use GPRs to pass those parts
8849 of the argument. Issue -Wpsabi note if any parameter is now treated
8850 differently than before.
8851 (rs6000_arg_partial_bytes): Update.
8852
8853 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8854
8855 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8856
8857 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8858
8859 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8860 * toplev.c (initialize_rtl): Don't use it. Move previously
8861 "language-dependent" calls to...
8862 (backend_init): ...here.
8863 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8864 Assert that RTL initialization hasn't happend yet.
8865
8866 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8867
8868 PR rtl-optimization/61629
8869 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8870 they have already been initialized.
8871
8872 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8873
8874 PR middle-end/61268
8875 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8876 DECL_INCOMING_RTL and entry_parm.
8877 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8878 * calls.c (load_register_parameters): Likewise argument values.
8879 (emit_library_call_value_1, store_one_arg): Likewise argument
8880 save areas.
8881 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8882 stack slot.
8883 * explow.c (validize_mem): Modify the argument in-place.
8884
8885 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8886
8887 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8888 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8889
8890 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8891
8892 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8893 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8894
8895 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8896
8897 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8898 (aarch64_save_callee_saves): New parameter "skip_wb".
8899 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8900
8901 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8902
8903 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8904 "wb_candidate2".
8905 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8906
8907 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8908
8909 * graphite-isl-ast-to-gimple.c:
8910 (graphite_create_new_loop): Add calling of isl_id_free to properly
8911 decrement reference counts.
8912
8913 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8914
8915 2014-07-24 Martin Liska <mliska@suse.cz>
8916 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8917 function used.
8918 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8919 (rs6000_code_end): Likewise.
8920
8921 2014-07-24 Martin Liska <mliska@suse.cz>
8922
8923 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8924 symtab_node funtion used.
8925 (rs6000_xcoff_declare_object_name): Likewise.
8926
8927 2014-07-24 Martin Liska <mliska@suse.cz>
8928
8929 * cgraphunit.c (compile): Correct function used.
8930
8931 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8932
8933 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8934 as non-indexable.
8935
8936 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8937
8938 PR lto/61802
8939 * varasm.c (bss_initializer_p): Handle offlined ctors.
8940 (align_variable, get_variable_align): Likewise.
8941 (make_decl_one_only): Likewise.
8942 (default_binds_local_p_1): Likewise.
8943 (decl_binds_to_current_def_p): Likewise.
8944 (get_variable_section): Get constructor if it is offlined.
8945 (assemble_variable_contents): Sanity check that the caller
8946 streamed in the ctor in LTO.
8947
8948 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8949
8950 * graphite-isl-ast-to-gimple.c:
8951 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8952 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8953 isl_ast_op_pdiv_r to the different case.
8954
8955 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8956
8957 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8958
8959 PR middle-end/61876
8960 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8961 when flag_errno_math is on.
8962
8963 2014-07-24 Martin Liska <mliska@suse.cz>
8964
8965 * cgraph.h (varpool_node):
8966 (availability get_availability (void)):
8967 created from cgraph_variable_initializer_availability
8968 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8969 created from: cgraph_variable_initializer_availability
8970 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8971 (void finalize_named_section_flags (void)):
8972 created from varpool_finalize_named_section_flags
8973 (bool assemble_decl (void)): created from varpool_assemble_decl
8974 (void analyze (void)): created from varpool_analyze_node
8975 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8976 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8977 (void remove_initializer (void)): created from varpool_remove_initializer
8978 (tree get_constructor (void)): created from varpool_get_constructor
8979 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8980 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8981 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8982 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8983 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8984 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8985 (static bool output_variables (void)): created from varpool_output_variables
8986 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8987 created from varpool_extra_name_alias
8988 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8989 (static void dump_varpool (FILE *f)): created from dump_varpool
8990 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8991 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8992 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8993 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8994 (void assemble_aliases (void)): created from assemble_aliases
8995
8996 2014-07-24 Martin Liska <mliska@suse.cz>
8997
8998 * cgraph.h (symtab_node):
8999 (void register_symbol (void)): created from symtab_register_node
9000 (void remove (void)): created from symtab_remove_node
9001 (void dump (FILE *f)): created from dump_symtab_node
9002 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
9003 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
9004 (struct ipa_ref *add_reference (symtab_node *referred_node,
9005 enum ipa_ref_use use_type)): created from add_reference
9006 (struct ipa_ref *add_reference (symtab_node *referred_node,
9007 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
9008 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
9009 gimple stmt)): created from maybe_add_reference
9010 (bool semantically_equivalent_p (symtab_node *target)): created from
9011 symtab_semantically_equivalent_p
9012 (void remove_from_same_comdat_group (void)): created from
9013 remove_from_same_comdat_group
9014 (void add_to_same_comdat_group (symtab_node *old_node)): created from
9015 symtab_add_to_same_comdat_group
9016 (void dissolve_same_comdat_group_list (void)): created from
9017 symtab_dissolve_same_comdat_group_list
9018 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
9019 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
9020 created from symtab_alias_ultimate_target
9021 (inline symtab_node *next_defined_symbol (void)): created from
9022 symtab_next_defined_symbol
9023 (bool resolve_alias (symtab_node *target)): created from
9024 symtab_resolve_alias
9025 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
9026 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
9027 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
9028 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
9029 (void set_section (const char *section)): created from set_section_1
9030 (enum availability get_availability (void)): created from symtab_node_availability
9031 (void make_decl_local (void)): created from symtab_make_decl_local
9032 (bool real_symbol_p (void)): created from symtab_read_node
9033 (can_be_discarded_p (void)): created from symtab_can_be_discarded
9034 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
9035 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
9036 symtab_in_same_comdat_p;
9037 (bool address_taken_from_non_vtable_p (void)): created from
9038 address_taken_from_non_vtable_p
9039 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
9040 (static void dump_table (FILE *)): created from dump_symtab
9041 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
9042 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
9043 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
9044 symtab_used_from_object_file_p
9045 (void dump_base (FILE *)): created from dump_symtab_base
9046 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
9047 (void unregister (void)): created from symtab_unregister_node
9048 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
9049 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
9050 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
9051 symtab_nonoverwritable_alias_1
9052 * cgraph.h (cgraph_node):
9053 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
9054 created from cgraph_remove_node_and_inline_clones
9055 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
9056 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
9057 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
9058 (cgraph_node *function_symbol (enum availability *avail = NULL)):
9059 created from cgraph_function_node
9060 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
9061 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
9062 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
9063 created from cgraph_create_clone
9064 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
9065 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
9066 created from cgraph_create_virtual_clone
9067 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
9068 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
9069 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
9070 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
9071 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
9072 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
9073 created from cgraph_function_version_info
9074 (struct cgraph_function_version_info *insert_new_function_version (void)):
9075 created from insert_new_cgraph_node_version
9076 (struct cgraph_function_version_info *function_version (void)): created from
9077 get_cgraph_node_version
9078 (void analyze (void)): created from analyze_function
9079 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
9080 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
9081 tree real_alias) cgraph_add_thunk
9082 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
9083 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
9084 created from cgraph_function_or_thunk_node
9085 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
9086 created from expand_thunk
9087 (void reset (void)): created from cgraph_reset_node
9088 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
9089 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
9090 (void remove (void)): created from cgraph_remove_node
9091 (void dump (FILE *f)): created from dump_cgraph_node
9092 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
9093 (bool get_body (void)): created from cgraph_get_body
9094 (void release_body (void)): created from cgraph_release_function_body
9095 (void unnest (void)): created from cgraph_unnest_node
9096 (void make_local (void)): created from cgraph_make_node_local
9097 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
9098 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
9099 gcov_type count, int freq)): created from cgraph_create_edge
9100 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
9101 gcov_type count, int freq)): created from cgraph_create_indirect_edge
9102 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
9103 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
9104 created from cgraph_create_edge_including_clones
9105 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
9106 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
9107 (void remove_callers (void)): created from cgraph_node_remove_callers
9108 (void remove_callees (void)): created from cgraph_node_remove_callees
9109 (enum availability get_availability (void)): created from cgraph_function_body_availability
9110 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
9111 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
9112 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
9113 (void call_duplication_hooks (cgraph_node *node2)): created from
9114 cgraph_call_node_duplication_hooks
9115 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
9116 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
9117 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
9118 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
9119 (void call_function_insertion_hooks (void)):
9120 created from cgraph_call_function_insertion_hooks
9121 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
9122 (bool local_p (void)): created from cgraph_local_node
9123 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
9124 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
9125 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
9126 (inline bool only_called_directly_or_aliased_p (void)):
9127 created from cgraph_only_called_directly_or_aliased_p
9128 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
9129 created from cgraph_will_be_removed_from_program_if_no_direct_calls
9130 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
9131 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
9132 (bool can_remove_if_no_direct_calls_p (void)):
9133 created from cgraph_can_remove_if_no_direct_calls_p
9134 (inline bool has_gimple_body_p (void)):
9135 created from cgraph_function_with_gimple_body_p
9136 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
9137 (static void dump_cgraph (FILE *f)): created from dump_cgraph
9138 (static inline void debug_cgraph (void)): created from debug_cgraph
9139 (static void record_function_versions (tree decl1, tree decl2)):
9140 created from record_function_versions
9141 (static void delete_function_version (tree decl)):
9142 created from delete_function_version
9143 (static void add_new_function (tree fndecl, bool lowered)):
9144 created from cgraph_add_new_function
9145 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
9146 (static cgraph_node * create (tree decl)): created from cgraph_create_node
9147 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
9148 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
9149 (static cgraph_node *get_for_asmname (tree asmname)):
9150 created from cgraph_node_for_asm
9151 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
9152 created from cgraph_same_body_alias
9153 (static bool used_from_object_file_p_worker (cgraph_node *node,
9154 void *): new function
9155 (static bool non_local_p (cgraph_node *node, void *)):
9156 created from cgraph_non_local_node_p_1
9157 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
9158 created from verify_cgraph
9159 (static bool make_local (cgraph_node *node, void *)):
9160 created from cgraph_make_node_local
9161 (static cgraph_node *create_alias (tree alias, tree target)):
9162 created from cgraph_create_function_alias
9163 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
9164 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
9165 created from cgraph_create_edge_1
9166 * cgraph.h (varpool_node):
9167 (void remove (void)): created from varpool_remove_node
9168 (void dump (FILE *f)): created from dump_varpool_node
9169
9170 2014-07-24 Richard Biener <rguenther@suse.de>
9171
9172 PR ipa/61823
9173 * tree-ssa-structalias.c (create_variable_info_for_1):
9174 Use varpool_get_constructor.
9175 (create_variable_info_for): Likewise.
9176
9177 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9178
9179 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
9180 subtract outgoing area size when restoring stack_pointer_rtx.
9181
9182 2014-07-24 Nick Clifton <nickc@redhat.com>
9183
9184 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
9185 that operations are taking place in parallel.
9186 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
9187
9188 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
9189
9190 * omp-low.c (extract_omp_for_data): Add missing break statement.
9191
9192 2014-07-24 Richard Biener <rguenther@suse.de>
9193
9194 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
9195 * tree-inline.c (estimate_move_cost): Add speed_p parameter
9196 and adjust MOVE_RATIO query accordingly.
9197 (estimate_num_insns): Adjust callers.
9198 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9199 * ipa-cp.c (gather_context_independent_values,
9200 estimate_local_effects): Likewise.
9201 * ipa-split.c (consider_split): Likewise.
9202
9203 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9204
9205 * config/i386/driver-i386.c: Remove names of unused arguments and
9206 unnecessary unused attributes.
9207 * config/i386/host-mingw32.c: Likewise.
9208 * config/i386/i386.c: Likewise.
9209 * config/i386/winnt-stubs.c: Likewise.
9210 * config/i386/winnt.c: Likewise.
9211
9212 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9213
9214 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9215 (aarch64_gen_loadwb_pair): New helper function.
9216 (aarch64_expand_epilogue): Simplify code using new helper functions.
9217 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9218
9219 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9220
9221 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9222 (aarch64_gen_storewb_pair): New helper function.
9223 (aarch64_expand_prologue): Simplify code using new helper functions.
9224 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9225
9226 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9227
9228 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9229 Rename to aarch64_save_callee_saves, remove restore code.
9230 (aarch64_restore_callee_saves): New function.
9231
9232 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9233
9234 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9235 (aarch64_save_callee_saves): New function to handle reg save
9236 for both core and vectore regs.
9237
9238 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9239
9240 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9241 (aarch64_gen_store_pair): New helper function.
9242 (aarch64_save_or_restore_callee_save_registers)
9243 (aarch64_save_or_restore_fprs): Use new helper functions.
9244
9245 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9246
9247 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9248 (aarch64_save_or_restore_callee_save_registers)
9249 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9250
9251 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9252
9253 * config/aarch64/aarch64.c
9254 (aarch64_save_or_restore_callee_save_registers)
9255 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9256
9257 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9258
9259 * config/aarch64/aarch64.c
9260 (aarch64_save_or_restore_callee_save_registers)
9261 (aarch64_save_or_restore_fprs): Remove 'increment'.
9262
9263 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9264
9265 * config/aarch64/aarch64.c
9266 (aarch64_save_or_restore_callee_save_registers)
9267 (aarch64_save_or_restore_fprs): Use register offset in
9268 cfun->machine->frame.reg_offset.
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): Remove base_rtx.
9275
9276 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9277
9278 * config/aarch64/aarch64.c
9279 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9280 to 'start_offset'. Remove local variable 'start_offset'.
9281
9282 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9283
9284 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9285 type to HOST_WIDE_INT.
9286
9287 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9288
9289 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9290 (aarch64_save_or_restore_fprs)
9291 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9292
9293 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9294
9295 * config/arm/t-rtems-eabi: Add
9296 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9297 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9298 mbig-endian/mthumb/march=armv7-r, and
9299 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9300 multilibs.
9301
9302 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9303 Chris Johns <chrisj@rtems.org>
9304 Joel Sherrill <joel.sherrill@oarcorp.com>
9305
9306 * config.gcc: Add nios2-*-rtems*.
9307 * config/nios2/rtems.h: New file.
9308 * gcc/config/nios2/t-rtems: New file.
9309
9310 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9311
9312 PR target/61396
9313 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9314 constant numbers, not general constants.
9315 (rs6000_expand_vector_init): Ditto.
9316
9317 2014-07-23 Nathan Sidwell <nathan@acm.org>
9318
9319 * gcov-tool.c (gcov_list): Declare here.
9320 (set_gcov_list): Remove.
9321 (gcov_output_files): Set gcov_list directly.
9322
9323 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9324
9325 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9326
9327 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9328
9329 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9330 callee-saved registers are available for padding purpose
9331 and r3 is not mandatory, then prefer use those callee-saved
9332 instead of r3.
9333
9334 2014-07-23 Richard Biener <rguenther@suse.de>
9335
9336 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9337 * combine.c: Include statistics.h and params.h.
9338 (combine_instructions): Guard three and four insn combines
9339 with max-combine-insns value. Record statistics for combines
9340 performed.
9341 * doc/invoke.texi (max-combine-insns): Document new param.
9342
9343 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9344
9345 * graphite-isl-ast-to-gimple.c:
9346 (translate_isl_ast_node_block): New function.
9347 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9348
9349 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9350 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9351
9352 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9353
9354 * graphite-isl-ast-to-gimple.c:
9355 (get_max_schedule_dimensions): New function.
9356 (extend_schedule): Likewise.
9357 (generate_isl_schedule): Add calling of extend_schedule and
9358 get_max_schedule_dimensions.
9359
9360 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9361
9362 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9363 (case UNSPEC): Handle UNSPEC_RBIT.
9364
9365 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9366
9367 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9368 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9369
9370 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9371
9372 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9373
9374 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9375
9376 * graphite-isl-ast-to-gimple.c:
9377 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9378 (ivs_params_clear):
9379 (build_iv_mapping): New function.
9380 (translate_isl_ast_node_user): Likewise.
9381 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9382
9383 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9384 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9385 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9386
9387 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9388
9389 PR target/55701
9390 * config/arm/arm.md (setmem): New pattern.
9391 * config/arm/arm-protos.h (struct tune_params): New fields.
9392 (arm_gen_setmem): New prototype.
9393 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9394 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9395 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9396 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9397 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9398 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9399 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9400 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9401 (arm_const_inline_cost): New function.
9402 (arm_block_set_max_insns): New function.
9403 (arm_block_set_non_vect_profit_p): New function.
9404 (arm_block_set_vect_profit_p): New function.
9405 (arm_block_set_unaligned_vect): New function.
9406 (arm_block_set_aligned_vect): New function.
9407 (arm_block_set_unaligned_non_vect): New function.
9408 (arm_block_set_aligned_non_vect): New function.
9409 (arm_block_set_vect, arm_gen_setmem): New functions.
9410
9411 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9412
9413 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9414
9415 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9416
9417 PR target/61855
9418 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9419 out of #ifdef __OPTIMIZE__.
9420
9421 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9422
9423 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9424 different trapping status if -fnon-call-exceptions is enabled.
9425
9426 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9427
9428 * expr.c (store_field): Handle VOIDmode for calls that return values
9429 in multiple locations.
9430
9431 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9432
9433 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9434 (altivec_vsldoi_<mode>): Likewise.
9435
9436 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9437
9438 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9439 to the number of characters in the line.
9440
9441 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9442
9443 * graphite-isl-ast-to-gimple.c: Add using of
9444 build_nonstandard_integer_type instead of int128_integer_type_node.
9445
9446 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9447
9448 * toplev.c (output_stack_usage): Adjust the location of the warning.
9449
9450 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9451
9452 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9453 (*membar_storeload): Disable for LEON3.
9454
9455 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9456
9457 PR rtl-optimization/61461
9458 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9459
9460 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9461
9462 PR target/61794
9463 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9464 Fix instruction constraint.
9465 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9466
9467 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9468
9469 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9470
9471 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9472
9473 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9474 GNU coding standards.
9475 (nds32_register_move_cost): Likewise.
9476 (nds32_memory_move_cost): Likewise.
9477 (nds32_address_cost): Likewise.
9478
9479 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9480
9481 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9482
9483 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9484
9485 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9486 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9487 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9488 (HAVE_sync_compare_and_swapqi): Define.
9489 (HAVE_sync_compare_and_swaphi): Likewise.
9490 (HAVE_sync_compare_and_swapsi): Likewise.
9491
9492 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9493
9494 * config/mips/p5600.md: Add missing cpu tests.
9495
9496 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9497
9498 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9499 (vmla_f64): Likewise.
9500 (vfms_f64): Likewise.
9501 (vmls_f64): Likewise.
9502
9503 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9504
9505 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9506 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9507
9508 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9509
9510 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9511 (vmlal_high_lane_s32): Likewise.
9512 (vmlal_high_lane_u16): Likewise.
9513 (vmlal_high_lane_u32): Likewise.
9514 (vmlsl_high_lane_s16): Likewise.
9515 (vmlsl_high_lane_s32): Likewise.
9516 (vmlsl_high_lane_u16): Likewise.
9517 (vmlsl_high_lane_u32): Likewise.
9518
9519 2014-07-17 Terry Guo <terry.guo@arm.com>
9520
9521 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9522 (alus_reg): Renamed to alus_sreg.
9523 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9524 from alu_reg to alu_sreg. Change type of dsp instructions from
9525 alu_reg to alu_dsp_reg.
9526 * config/arm/thumb1.md: Likewise.
9527 * config/arm/thumb2.md: Likewise.
9528 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9529 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9530 with alu_sreg and alus_sreg.
9531 * config/arm/arm1026ejs.md (alu_op): Likewise.
9532 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9533 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9534 * config/arm/fa526.md (526_alu_op): Likewise.
9535 * config/arm/fa606te.md (606te_alu_op): Likewise.
9536 * config/arm/fa626te.md (626te_alu_op): Likewise.
9537 * config/arm/fa726te.md (726te_alu_op): Likewise.
9538 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9539 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9540 alu_sreg, alu_dsp_reg and alus_sreg.
9541 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9542 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9543 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9544 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9545 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9546 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9547 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9548 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9549 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9550 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9551 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9552 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9553 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9554 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9555 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9556 alus_reg to alus_sreg.
9557
9558 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9559
9560 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9561 infinity format.
9562
9563 2014-07-17 Richard Biener <rguenther@suse.de>
9564
9565 PR rtl-optimization/61801
9566 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9567 don't set reg_pending_barrier if it appears in a debug-insn.
9568
9569 2014-07-16 DJ Delorie <dj@redhat.com>
9570
9571 * config/rx/rx.c (rx_option_override): Fix alignment values.
9572 (rx_align_for_label): Likewise.
9573
9574 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9575
9576 PR target/61737.
9577 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9578 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9579 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9580 functions.
9581 (cris_print_index, cris_print_operand, cris_constant_index_p)
9582 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9583 (cris_address_cost): Ditto last CONSTANT_P.
9584 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9585 callers changed. Yield cris_offsettable_symbol for non-PIC
9586 constant symbolic expressions including labels. Yield cris_unspec
9587 for all unspecs.
9588 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9589 target to pic_offset_table_rtx for calls that will likely go
9590 through PLT, const0_rtx when they can't. All callers changed.
9591 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9592 symbolic expressions to be PICified. Remove second, redundant,
9593 assert on can_create_pseudo_p returning non-zero. Use
9594 replace_equiv_address_nv, not replace_equiv_address, for final
9595 operand update.
9596 * config/cris/cris.md ("movsi"): Move variable t to pattern
9597 toplevel. Adjust assert for new cris_symbol_type member. Use
9598 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9599 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9600 for lapc stricter.
9601 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9602 ("call", "call_value"): Use second incoming operand as a marker
9603 for pic-offset-table-register being used.
9604 ("*expanded_call_non_v32", "*expanded_call_v32")
9605 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9606 second incoming operand to CALL, match cris_call_type_marker.
9607 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9608 ("*expanded_call_side"): Ditto. Fix typo in comment.
9609 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9610 CONSTANT_P.
9611 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9612 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9613 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9614 users changed. Add members cris_offsettable_symbol and cris_unspec.
9615 (cris_symbol_type): Rename from cris_pic_symbol_type.
9616 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9617 just CONSTANT_P.
9618 * config/cris/cris-protos.h (cris_symbol_type_of,
9619 cris_expand_pic_call_address): Adjust prototypes.
9620 (cris_legitimate_constant_p): New prototype.
9621
9622 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9623 an existing tmake_file. Don't add t-slibgcc and t-linux.
9624
9625 2014-07-17 Jason Merrill <jason@redhat.com>
9626
9627 PR c++/61623
9628 * symtab.c (symtab_remove_from_same_comdat_group): Also
9629 set_comdat_group to NULL_TREE.
9630 (verify_symtab): Fix diagnostic.
9631
9632 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9633
9634 PR target/61662
9635 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9636
9637 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9638
9639 Support location tracking for built-in macro tokens
9640 * input.h (is_location_from_builtin_token): New function declaration.
9641 * input.c (is_location_from_builtin_token): New function definition.
9642 * toplev.c (general_init): Tell libcpp what the pre-defined
9643 spelling location for built-in tokens is.
9644
9645 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9646
9647 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9648 on the FUNCTION_DECL.
9649
9650 2014-07-16 Richard Biener <rguenther@suse.de>
9651
9652 PR other/61782
9653 * doc/extend.texi (always_inline): Clarify.
9654
9655 2014-07-15 Eric Christopher <echristo@gmail.com>
9656
9657 * doc/invoke.texi (Link Options): Document -z option.
9658
9659 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9660
9661 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9662 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9663
9664 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9665
9666 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9667
9668 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9669
9670 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9671 varpool_assemble_decl.
9672 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9673 true.
9674
9675 2014-07-15 Michael Matz <matz@suse.de>
9676
9677 PR rtl-optimization/61772
9678 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9679
9680 2014-07-15 Richard Biener <rguenther@suse.de>
9681
9682 * opts.c (default_options_table): Disable bit-ccp at -Og.
9683
9684 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9685
9686 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9687
9688 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9689
9690 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9691 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9692 call langhook for unknown declaration.
9693 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9694 * tree.h (DECL_ARGUMENTS): Update.
9695 * print-tree.c (print_node): Update.
9696 * tree-core.h (tree_decl_non_common): Remove arguments.
9697 (tree_function_decl): Add arguments.
9698
9699 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9700
9701 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9702
9703 2014-07-14 Richard Biener <rguenther@suse.de>
9704
9705 PR tree-optimization/61779
9706 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9707 simplifying a condition.
9708
9709 2014-07-14 Richard Biener <rguenther@suse.de>
9710
9711 * builtins.c (c_strlen): Make only_value == 2 really only
9712 affect warning generation.
9713
9714 2014-07-14 Richard Biener <rguenther@suse.de>
9715
9716 PR tree-optimization/61757
9717 PR tree-optimization/61783
9718 PR tree-optimization/61787
9719 * tree-ssa-dom.c (record_equality): Revert canonicalization
9720 change and add comment.
9721 (propagate_rhs_into_lhs): Revert previous fix, removing
9722 loop depth restriction again.
9723
9724 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9725
9726 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9727 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9728 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9729 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9730 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9731 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9732 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9733
9734 2014-07-14 Richard Biener <rguenther@suse.de>
9735
9736 * cgraph.h (decl_in_symtab_p): Make inline.
9737
9738 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR middle-end/61294
9741 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9742
9743 PR target/61656
9744 * config/i386/i386.c (classify_argument): Don't merge classes above
9745 number of words.
9746
9747 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9748
9749 * cgraph.h (symtab_node): Add nonzero_address.
9750 (decl_in_symtab_p): Break out from ...
9751 (symtab_get_node): ... here.
9752 * fold-const.c: Include cgraph.h
9753 (tree_single_nonzero_warnv_p): Use symtab to determine
9754 if symbol is non-zero.
9755 * symtab.c (symtab_node::nonzero_address): New method.
9756
9757 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9758
9759 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9760 forgotten in previous commit.
9761
9762 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9763
9764 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9765 on builtin types.
9766 * ipa-devirt.c: Include stor-layout.h and intl.h
9767 (odr_subtypes_equivalent_p): New function.
9768 (warn_odr): New function.
9769 (warn_type_mismatch): New function.
9770 (odr_types_equivalent_p): New function.
9771 (add_type_duplicate): Use it.
9772 * common.opt (Wodr): New flag.
9773 * doc/invoke.texi (Wodr): Document new warning.
9774
9775 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9776
9777 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9778 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9779 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9780 (varpool_get_constructor): Push CTORS_IN timevar.
9781 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9782
9783 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9784
9785 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9786 Remove VOID_FTYPE_PUSHORT.
9787 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9788 Change code to USHORT_FTYPE_VOID.
9789 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9790 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9791 (ix86_atomic_assign_expand_fenv): Update for
9792 __builtin_ia32_fnstsw changes.
9793 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9794 (fnstsw): Change operand 0 to nonimmediate operand.
9795
9796 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9797
9798 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9799 (varpool_get_constructor): New function.
9800 (varpool_ctor_useable_for_folding_p): Break out from ...
9801 (ctor_for_folding): ... here; use varpool_get_constructor.
9802 (varpool_assemble_decl): Likewise.
9803 * lto-streamer.h (struct output_block): Turn cgraph_node
9804 to symbol filed.
9805 (lto_input_variable_constructor): Declare.
9806 * ipa-visibility.c (function_and_variable_visibility): Use
9807 varpool_get_constructor.
9808 * cgraph.h (varpool_get_constructor): Declare.
9809 (varpool_ctor_useable_for_folding_p): New function.
9810 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9811 parameter; return error_mark_node for non-trivial constructors.
9812 (lto_write_tree_1, DFS_write_tree): Update use of
9813 get_symbol_initial_value.
9814 (output_function): Update initialization of symbol.
9815 (output_constructor): New function.
9816 (copy_function): Rename to ..
9817 (copy_function_or_variable): ... this one; handle vars too.
9818 (lto_output): Output variable sections.
9819 * lto-streamer-in.c (input_constructor): New function.
9820 (lto_read_body): Rename from ...
9821 (lto_read_body_or_constructor): ... this one; handle vars too.
9822 (lto_input_variable_constructor): New function.
9823 * ipa-prop.c (ipa_prop_write_jump_functions,
9824 ipa_prop_write_all_agg_replacement): Update.
9825 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9826 (output_cgraph_opt_summary): Set symbol to NULL.
9827
9828 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9829
9830 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9831 non-polymorphic types.
9832 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9833 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9834 of types is not polymorphic.
9835
9836 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9837
9838 * lra-constraints.c (remove_inheritance_pseudos): Process
9839 destination pseudo too.
9840
9841 2014-07-11 Rong Xu <xur@google.com>
9842
9843 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9844 commit r212448.
9845
9846 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9847
9848 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9849 * config/avr/avr-devices.c (AVR_MCU): Same.
9850 (avr_mcu_types): add text start value to end of device list.
9851 * config/avr/avr-mcus.def: Add text section start for all devices.
9852 (ata5782): Add new avr5 device.
9853 (ata5831): Same.
9854 * config/avr/avr-tables.opt: Regenerate.
9855 * config/avr/avr.h: Add declaration for text section start handler.
9856 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9857 SPEC functions.
9858 (LINK_SPEC): Include text section start handler to linker spec.
9859 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9860 pass -Ttext option to linker if the text section start for the device
9861 is not zero.
9862 * config/avr/t-multilib: Regenerate.
9863 * doc/avr-mmcu.texi: Regenerate.
9864
9865 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9866
9867 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9868 * config/rs6000/aix52.h (LINK_SPEC): Same.
9869 * config/rs6000/aix53.h (LINK_SPEC): Same.
9870 * config/rs6000/aix61.h (LINK_SPEC): Same.
9871 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9872
9873 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9874
9875 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9876 (graphite_verify): New function.
9877 (ivs_params_clear): New function.
9878 (gcc_expression_from_isl_ast_expr_id): New function.
9879 (gcc_expression_from_isl_expr_int): New function.
9880 (binary_op_to_tree): New function.
9881 (ternary_op_to_tree): New function.
9882 (unary_op_to_tree): New function.
9883 (nary_op_to_tree): New function.
9884 (gcc_expression_from_isl_expr_op): New function.
9885 (gcc_expression_from_isl_expression): New function.
9886 (graphite_create_new_loop): New function.
9887 (translate_isl_ast_for_loop): New function.
9888 (get_upper_bound): New function.
9889 (graphite_create_new_loop_guard): New function.
9890 (translate_isl_ast_node_for): New function.
9891 (translate_isl_ast): New function.
9892 (add_parameters_to_ivs_params): New function.
9893 (scop_to_isl_ast): New parameter ip.
9894 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9895
9896 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9897
9898 * config/xtensa/predicates.md (call expander): Update for
9899 DECL_SECTION_NAME being string.
9900
9901 2014-07-11 Richard Biener <rguenther@suse.de>
9902
9903 PR middle-end/61473
9904 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9905 can be implemented with a single load followed by a single store.
9906 (c_strlen): Only warn when only_value is not 2.
9907
9908 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9909
9910 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9911
9912 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9913
9914 PR target/61561
9915 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9916 (*movhi_bytes): Likewise.
9917 (*arm_movqi_insn): Likewise.
9918
9919 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9920
9921 PR target/56858
9922 * config/alpha/alpha.c: Include tree-pass.h, context.h
9923 and pass_manager.h.
9924 (pass_data_handle_trap_shadows): New pass.
9925 (pass_handle_trap_shadows::gate): New pass gate function.
9926 (make_pass_handle_trap_shadows): New function.
9927 (rest_of_handle_trap_shadows): Ditto.
9928
9929 (alpha_align_insns_1): Rename from alpha_align_insns.
9930 (pass_data_align_insns): New pass.
9931 (pass_align_insns::gate): New pass gate function.
9932 (make_pass_aling_insns): New function.
9933 (rest_of_align_insns): Ditto.
9934 (alpha_align_insns): Ditto.
9935
9936 (alpha_option_override): Declare handle_trap_shadows info
9937 and align_insns_info. Register handle_trap_shadows and align_insns
9938 passes here.
9939 (alpha_reorg): Do not call alpha_trap_shadows and
9940 alpha_align_insn from here.
9941
9942 (alpha_pad_function_end): Do not skip BARRIERs.
9943
9944 2014-07-10 Rong Xu <xur@google.com>
9945
9946 Add gcov-tool: an offline gcda profile processing tool support.
9947 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9948 (gcov_is_error): Ditto.
9949 (gcov_read_string): Ditto.
9950 (gcov_read_sync): Ditto.
9951 * gcov-io.h: Move counter defines to gcov-counter.def.
9952 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9953 * coverage.c: Ditto.
9954 * gcov-tool.c: Offline gcda profile processing tool.
9955 (unlink_gcda_file): Remove one gcda file.
9956 (unlink_profile_dir): Remove gcda files from the profile path.
9957 (gcov_output_files): Output gcda files to an output dir.
9958 (profile_merge): Merge two profiles in directory.
9959 (print_merge_usage_message): Print merge usage.
9960 (merge_usage): Print merge usage and exit.
9961 (do_merge): Driver for profile merge sub-command.
9962 (profile_rewrite): Rewrite profile.
9963 (print_rewrite_usage_message): Print rewrite usage.
9964 (rewrite_usage): Print rewrite usage and exit.
9965 (do_rewrite): Driver for profile rewrite sub-command.
9966 (print_usage): Print gcov-info usage and exit.
9967 (print_version): Print gcov-info version.
9968 (process_args): Process arguments.
9969 (main): Main routine for gcov-tool.
9970 * Makefile.in: Build and install gcov-tool.
9971 * gcov-counter.def: New file split from gcov-io.h.
9972 * doc/gcc.texi: Include gcov-tool.texi.
9973 * doc/gcov-tool.texi: Document for gcov-tool.
9974
9975 2014-07-10 Richard Biener <rguenther@suse.de>
9976
9977 PR tree-optimization/61757
9978 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9979 (propagate_rhs_into_lhs): Revert part of last change.
9980
9981 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9982
9983 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9984 FUNCTION_DECLs.
9985
9986 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9987
9988 PR middle-end/53590
9989 * function.c (allocate_struct_function): Revert r188667 change.
9990
9991 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9992
9993 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9994
9995 * doc/install.texi: Remove links to defunct package providers for
9996 Solaris.
9997
9998 2014-07-09 Tom de Vries <tom@codesourcery.com>
9999
10000 * final.c (get_call_fndecl): Declare.
10001 (self_recursive_call_p): New function.
10002 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
10003
10004 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10005
10006 * ipa-devirt.c (record_node): Walk through aliases.
10007
10008 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10009
10010 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
10011
10012 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10013
10014 Revert:
10015 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10016
10017 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10018
10019 * ipa-visibility.c (function_and_variable_visibility): Remove
10020 temporary hack disabling local aliases on AIX.
10021
10022 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10023
10024 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
10025 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
10026
10027 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10028
10029 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
10030 * rs6000/rs6000.c: Inline output of .set instruction.
10031 (declare_alias_data): New struct.
10032 (rs6000_declare_alias): New function.
10033 (rs6000_xcoff_declare_function_name): Use it.
10034 (rs6000_xcoff_declare_object_name): New function.
10035 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
10036 (ASM_OUTPUT_DEF): Turn to empty definition.
10037
10038 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10039
10040 PR bootstrap/61679
10041 * hash-table.h: use hash_table::value_type instead of
10042 Descriptor::value_type in the return types of several methods.
10043
10044 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10045
10046 * tree-pass.h (pass_data): Remove has_execute member.
10047 * passes.c (execute_one_pass): Don't check pass->has_execute.
10048 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10049 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10050 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10051 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10052 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10053 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10054 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10055 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10056 gimple-low.c, gimple-ssa-isolate-paths.c,
10057 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10058 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
10059 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
10060 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
10061 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
10062 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10063 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
10064 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
10065 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
10066 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
10067 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
10068 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10069 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10070 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10071 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10072 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10073 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10074 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10075 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10076 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10077 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10078 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10079 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
10080 web.c: Remove initializer for pass_data::has_execute.
10081
10082 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10083
10084 * graphite-htab.h: Use hash_map instead of hash_table.
10085 * graphite-clast-to-gimple.c: Adjust.
10086 * passes.c: Use hash_map instead of hash_table.
10087 * sese.c: Likewise.
10088 * sese.h: Remove now unused code.
10089
10090 2014-07-08 Sriraman Tallam <tmsriram@google.com>
10091
10092 PR target/61599
10093 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
10094 than zero.
10095
10096 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10097
10098 PR rtl-optimization/61673
10099 * combine.c (simplify_comparison): Test just mode's sign bit
10100 in tmode rather than the sign bit and any bits above it.
10101
10102 2014-07-08 Roman Gareev <gareevroman@gmail.com>
10103
10104 * graphite-isl-ast-to-gimple.c (generate_isl_context):
10105 Add __isl_give to the declaration.
10106 (generate_isl_schedule): Likewise.
10107 (scop_to_isl_ast): Likewise.
10108
10109 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10110
10111 * config/arm/arm.c (cortexa5_extra_costs): New table.
10112 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
10113
10114 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10115
10116 PR tree-optimization/61725
10117 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
10118 range, use range_includes_zerop_p instead of integer_zerop on
10119 vr0->min, only use log2 of max if min is not negative.
10120
10121 2014-07-08 Richard Biener <rguenther@suse.de>
10122
10123 * tree-ssa-dom.h (loop_depth_of_name): Remove.
10124 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
10125 restriction on loop depth difference.
10126 (record_equality): Likewise.
10127 (propagate_rhs_into_lhs): Likewise. Simplify condition.
10128 (loop_depth_of_name): Remove.
10129 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
10130 restriction on loop depth difference.
10131 (init_copy_prop): Likewise.
10132
10133 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10134
10135 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
10136 parameter.
10137 (walk_aliased_vdefs): Likewise.
10138 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
10139 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
10140 (detect_type_change_from_memory_writes): Check if entry was reached.
10141
10142 2014-07-08 Richard Biener <rguenther@suse.de>
10143
10144 PR tree-optimization/61681
10145 * tree-ssa-structalias.c (find_what_var_points_to): Expand
10146 NONLOCAL inside ESCAPED.
10147
10148 2014-07-08 Richard Biener <rguenther@suse.de>
10149
10150 PR tree-optimization/61680
10151 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10152 Handle properly all read-write dependences with group accesses.
10153
10154 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10155
10156 PR tree-optimization/61576
10157 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
10158 block containing reduction statement is predecessor of phi basi block.
10159
10160 2014-07-08 Marek Polacek <polacek@redhat.com>
10161
10162 PR c/60226
10163 * fold-const.c (round_up_loc): Change the parameter type.
10164 Remove assert.
10165 * fold-const.h (round_up_loc): Adjust declaration.
10166 * stor-layout.c (finalize_record_size): Check for too large types.
10167
10168 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
10169
10170 * symtab.c: Include calls.h.
10171 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
10172
10173 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
10174
10175 * config/rs6000/rs6000.c (output_vec_const_move): Handle
10176 little-endian code generation.
10177 * config/rs6000/spe.md (spe_evmergehi): Rename to...
10178 (vec_perm00_v2si): ... this. Handle little-endian code generation.
10179 (spe_evmergehilo): Rename to...
10180 (vec_perm01_v2si): ... this. Handle little-endian code generation.
10181 (spe_evmergelo): Rename to...
10182 (vec_perm11_v2si): ... this. Handle little-endian code generation.
10183 (spe_evmergelohi): Rename to...
10184 (vec_perm10_v2si): ... this. Handle little-endian code generation.
10185 (spe_evmergehi, spe_evmergehilo): New expanders.
10186 (spe_evmergelo, spe_evmergelohi): Likewise.
10187 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
10188 (*frob_tf_ti): Likewise.
10189 (*frob_<mode>_di_2): Likewise.
10190 (*frob_tf_di_8_2): Likewise.
10191 (*frob_di_<mode>): Likewise.
10192 (*frob_ti_tf): Likewise.
10193 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
10194 (*frob_ti_<mode>_8_2): Likewise.
10195 (*frob_ti_tf_2): Likewise.
10196 (mov_si<mode>_e500_subreg0): Rename to...
10197 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10198 endianness only.
10199 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10200 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10201 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10202 the big endianness only.
10203 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10204 (*mov_si<mode>_e500_subreg0_2): Rename to...
10205 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10206 big big endianness only.
10207 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10208 (*mov_si<mode>_e500_subreg4): Rename to...
10209 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10210 endianness only.
10211 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10212 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10213 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10214 the big endianness only.
10215 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10216 pattern.
10217 (*mov_si<mode>_e500_subreg4_2): Rename to...
10218 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10219 endianness only.
10220 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10221 (*mov_sitf_e500_subreg8): Rename to...
10222 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10223 endianness only.
10224 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10225 (*mov_sitf_e500_subreg8_2): Rename to...
10226 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10227 endianness only.
10228 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10229 (*mov_sitf_e500_subreg12): Rename to...
10230 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10231 endianness only.
10232 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10233 (*mov_sitf_e500_subreg12_2): Rename to...
10234 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10235 endianness only.
10236 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10237
10238 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10239
10240 * asan.c (instrument_strlen_call): Do not instrument first byte
10241 in strlen if already instrumented.
10242
10243 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10244
10245 * config/arm/arm.opt (mwords-little-endian): Delete.
10246 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10247 of TARGET_LITTLE_WORDS.
10248 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10249 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10250 warning.
10251 * doc/invoke.texi: Remove references to -mwords-little-endian.
10252
10253 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10254
10255 * expmed.c (struct init_expmed_rtl): Change all fields but
10256 pow2 and cint from struct rtx_def to rtx.
10257 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10258 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10259 at the end again.
10260
10261 2014-07-06 Marek Polacek <polacek@redhat.com>
10262
10263 PR c/6940
10264 * doc/invoke.texi: Document -Wsizeof-array-argument.
10265
10266 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10267
10268 * wide-int.h (wide_int_storage): Change declaration from struct
10269 to class.
10270
10271 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10272
10273 * cgraph.c (cgraph_create_indirect_edge): Update call of
10274 get_polymorphic_call_info.
10275 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10276 (possible_polymorphic_call_targets): Add parameter call.
10277 (decl_maybe_in_construction_p): New predicate.
10278 (get_polymorphic_call_info): Add parameter call;
10279 use decl_maybe_in_construction_p.
10280 * gimple-fold.c (fold_gimple_assign): Update use of
10281 possible_polymorphic_call_targets.
10282 (gimple_fold_call): Likewise.
10283 * ipa-prop.c: Inlcude calls.h
10284 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10285 (param_type_may_change_p): New predicate.
10286 (detect_type_change_from_memory_writes): Break out from ...
10287 (detect_type_change): ... this one; use param_type_may_change_p.
10288 (detect_type_change_ssa): Use param_type_may_change_p.
10289 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10290
10291 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10292
10293 PR target/49423
10294 * config/arm/arm-protos.h (arm_legitimate_address_p,
10295 arm_is_constant_pool_ref): Add prototypes.
10296 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10297 (arm_is_constant_pool_ref) New function.
10298 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10299 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10300 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10301 operand. Remove pool_range and neg_pool_range attributes.
10302 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10303 pool_range and neg_pool_range attributes.
10304 * config/arm/constraints.md (Uh): New constraint.
10305 (Uq): Don't allow constant pool references.
10306
10307 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10308
10309 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10310 (move_lo_quad_internal_be_<mode>): Likewise.
10311 (move_lo_quad_<mode>): Convert to define_expand.
10312 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10313 (aarch64_simd_move_hi_quad_be_<mode>): New.
10314 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10315 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10316 (aarch64_combinez_be<mode>): New.
10317 (aarch64_combine<mode>): Convert to define_expand.
10318 (aarch64_combine_internal<mode>): New.
10319 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10320
10321 2014-07-04 Tom de Vries <tom@codesourcery.com>
10322
10323 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10324 combination of earlyclobber and read/write modifiers.
10325
10326 2014-07-04 Tom de Vries <tom@codesourcery.com>
10327
10328 * config/aarch64/aarch64-simd.md
10329 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10330
10331 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10332
10333 PR target/61714
10334 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10335
10336 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10337
10338 PR middle-end/61654
10339 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10340
10341 PR tree-optimization/61684
10342 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10343 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10344
10345 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10346 Kito Cheng <kito@0xlab.org>
10347 Monk Chiang <sh.chiang04@gmail.com>
10348
10349 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10350 (nds32_symbol_load_store_p): Move to ...
10351 (nds32_fp_as_gp_check_available): Move to ...
10352 * config/nds32/nds32-fp-as-gp.c: ... here.
10353 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10354 extern declaration.
10355
10356 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10357 Kito Cheng <kito@0xlab.org>
10358 Monk Chiang <sh.chiang04@gmail.com>
10359
10360 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10361 (nds32_expand_store_multiple): Move to ...
10362 (nds32_expand_movmemqi): Move to ...
10363 * config/nds32/nds32-memory-manipulation.c: ... here.
10364
10365 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10366 Kito Cheng <kito@0xlab.org>
10367 Monk Chiang <sh.chiang04@gmail.com>
10368
10369 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10370 (nds32_output_casesi_pc_relative): Move to ...
10371 (nds32_output_casesi): Move to ...
10372 (nds32_mem_format): Move to ...
10373 (nds32_output_16bit_store): Move to ...
10374 (nds32_output_16bit_load): Move to ...
10375 (nds32_output_32bit_store): Move to ...
10376 (nds32_output_32bit_load): Move to ...
10377 (nds32_output_32bit_load_s): Move to ...
10378 (nds32_output_stack_push): Move to ...
10379 (nds32_output_stack_pop): Move to ...
10380 * config/nds32/nds32-md-auxiliary.c: ... here.
10381
10382 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10383 Ling-Hua Tseng <uranus@tinlans.org>
10384
10385 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10386 the purpose of this file.
10387
10388 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10389 Kito Cheng <kito@0xlab.org>
10390 Monk Chiang <sh.chiang04@gmail.com>
10391
10392 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10393 (nds32_address_cost): Move implementation to ...
10394 * config/nds32/nds32-cost.c: ... here.
10395 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10396 (nds32_address_cost_impl): Declare.
10397
10398 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10399 Kito Cheng <kito@0xlab.org>
10400 Monk Chiang <sh.chiang04@gmail.com>
10401
10402 * config/nds32/nds32.c
10403 (nds32_consecutive_registers_load_store_p): Move to ...
10404 (nds32_valid_multiple_load_store): Move to ...
10405 (nds32_valid_stack_push_pop): Move to ...
10406 (nds32_can_use_bclr_p): Move to ...
10407 (nds32_can_use_bset_p): Move to ...
10408 (nds32_can_use_btgl_p): Move to ...
10409 (nds32_can_use_bitci_p): Move to ...
10410 * config/nds32/nds32-predicates.c: ... here.
10411
10412 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10413 Kito Cheng <kito@0xlab.org>
10414 Monk Chiang <sh.chiang04@gmail.com>
10415
10416 * config/nds32/nds32.c
10417 (nds32_expand_builtin_null_ftype_reg): Move to ...
10418 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10419 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10420 (nds32_init_builtins): Move implementation to ...
10421 (nds32_expand_builtin): Move implementation to ...
10422 * config/nds32/nds32-intrinsic.c: ... here.
10423 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10424 (nds32_expand_builtin_impl): Declare.
10425
10426 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10427 Kito Cheng <kito@0xlab.org>
10428 Monk Chiang <sh.chiang04@gmail.com>
10429
10430 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10431 (nds32_emit_section_tail_template): Move to ...
10432 (nds32_emit_isr_jmptbl_section): Move to ...
10433 (nds32_emit_isr_vector_section): Move to ...
10434 (nds32_emit_isr_reset_conten): Move to ...
10435 (nds32_check_isr_attrs_conflict): Move to ...
10436 (nds32_construct_isr_vectors_information): Move to ...
10437 (nds32_asm_file_start): Move implementation to ...
10438 (nds32_asm_file_end): Move implementation to ...
10439 * config/nds32/nds32-isr.c: ... here.
10440 * config/nds32/nds32-protos.h
10441 (nds32_check_isr_attrs_conflict): Declare.
10442 (nds32_construct_isr_vectors_information): Declare.
10443 (nds32_asm_file_start_for_isr): Declare.
10444 (nds32_asm_file_end_for_isr): Declare.
10445
10446 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10447 Kito Cheng <kito@0xlab.org>
10448 Monk Chiang <sh.chiang04@gmail.com>
10449
10450 * config.gcc (nds32*): Add new modules to extra_objs.
10451 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10452 (nds32be-*-*): Likewise.
10453 * config/nds32/nds32-cost.c: New file.
10454 * config/nds32/nds32-fp-as-gp.c: New file.
10455 * config/nds32/nds32-intrinsic.c: New file.
10456 * config/nds32/nds32-isr.c: New file.
10457 * config/nds32/nds32-md-auxiliary.c: New file.
10458 * config/nds32/nds32-memory-manipulation.c: New file.
10459 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10460 * config/nds32/nds32-predicates.c: New file.
10461 * config/nds32/t-nds32: New file.
10462
10463 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10464
10465 PR tree-optimization/61682
10466 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10467 using cases and when one of the operands is equal to 1.
10468
10469 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10470
10471 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10472 ashr<mode>3): Correct mode of operands[2].
10473 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10474 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10475 Correct mode of operands[2]. Fix split condition.
10476
10477 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10478
10479 * arm.md (arch): Add armv6_or_vfpv3.
10480 (arch_enabled): Add test for the above.
10481 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10482 on VFP9.
10483 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10484
10485 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10486
10487 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10488 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10489 HWI 1 and negate the unsigned value.
10490 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10491 use AND instead of shift.
10492 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10493
10494 2014-07-03 Marek Polacek <polacek@redhat.com>
10495
10496 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10497 (-fsanitize=float-divide-by-zero): Move to the table with
10498 -fsanitize=undefined suboptions.
10499 (-fsanitize=float-cast-overflow): Likewise.
10500
10501 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10502
10503 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10504 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10505 endianness.
10506
10507 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10508
10509 * loop-invariant.c (struct invariant): Add a new member: eqno;
10510 (find_identical_invariants): Update eqno;
10511 (create_new_invariant): Init eqno;
10512 (get_inv_cost): Compute comp_cost with eqno;
10513
10514 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10515
10516 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10517 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10518 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10519 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10520 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10521
10522 2014-07-02 Christian Bruel <christian.bruel@st.com>
10523
10524 PR target/29349
10525 PR target/53513
10526 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10527 (make_preds_opaque): Delete.
10528 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10529 (commit_mode_sets): New function.
10530 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10531 Process all modes at once.
10532 * basic-block.h (pre_edge_lcm_avs): Declare.
10533 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10534 Call clear_aux_for_edges. Fix comments.
10535 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10536 (pre_edge_rev_lcm): Idem.
10537 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10538 parameter.
10539 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10540 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10541 Idem.
10542 * config/i386/i386.c (x96_emit_mode_set): Idem.
10543 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10544 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10545 (fpscr_toggle) Disallow from delay slot.
10546 * target.def (emit_mode_set): Add prev_mode parameter.
10547 * doc/tm.texi: Regenerate.
10548
10549 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10550
10551 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10552 variable i.
10553
10554 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10555
10556 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10557 vtable_pointer_value_to_vtable): Constify.
10558 (contains_polymorphic_type_p): Declare.
10559 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10560 vtable_pointer_value_to_vtable): Constify.
10561 (contains_polymorphic_type_p): New predicate.
10562 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10563 polymorphic types.
10564 (ipa_set_ancestor_jf): Likewise.
10565 (detect_type_change): Return false in easy cases.
10566 (compute_complex_assign_jump_func): Require type to contain
10567 polymorphic type.
10568 (compute_known_type_jump_func): Likewise.
10569
10570 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10571
10572 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10573 Remove.
10574 (type_in_anonymous_namespace_p): Constify argument.
10575 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10576 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10577 (main_odr_variant): New function.
10578 (hash_type_name): Make static; update assert; do not ICE on
10579 non-records.
10580 (types_same_for_odr): Bring here from tree.c; simplify and remove
10581 old structural comparing code that doesn't work for templates.
10582 (odr_hasher::equal): Update assert.
10583 (add_type_duplicate): Return true when bases should be computed;
10584 replace incomplete loader by complete; do not output duplicated
10585 warnings; do not ICE on non-records; set odr_violated flag.
10586 (get_odr_type): Be ready to replace incomplete type by complete
10587 one; work on ODR variants instead of main variants; reorder item
10588 in array so bases have still smaller indexes.
10589 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10590 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10591
10592 2014-07-01 Cary Coutant <ccoutant@google.com>
10593
10594 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10595 lookup.
10596 (resolve_addr_in_expr): When replacing the rtx in a location list
10597 entry, get a new address table entry.
10598 (dwarf2out_finish): Call index_location_lists even if there are no
10599 addr_index_table entries yet.
10600
10601 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10602
10603 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10604 change for not being obvious.
10605
10606 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10607
10608 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10609 unused argument.
10610
10611 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10612
10613 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10614 (vcagt_f64): Likewise.
10615 (vcale_f64): Likewise.
10616 (vcaled_f64): Likewise.
10617 (vcales_f32): Likewise.
10618 (vcalt_f64): Likewise.
10619 (vcaltd_f64): Likewise.
10620 (vcalts_f32): Likewise.
10621
10622 2014-07-01 Marek Polacek <polacek@redhat.com>
10623
10624 * doc/invoke.texi: Document -Wint-conversion.
10625
10626 2014-07-01 Marek Polacek <polacek@redhat.com>
10627
10628 PR c/58286
10629 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10630
10631 2014-07-01 Martin Liska <mliska@suse.cz>
10632
10633 IPA REF alias refactoring
10634 * cgraph.h (iterate_direct_aliases): New function.
10635 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10636 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10637 FOR_EACH_ALIAS added.
10638 (cgraph_for_node_and_aliases): Likewise.
10639 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10640 * ipa-inline.c (reset_edge_caches): Likewise.
10641 (update_caller_keys): Likewise.
10642 * trans-mem.c (ipa_tm_execute): Likewise.
10643 *varpool.c (varpool_analyze_node): Likewise.
10644 (varpool_for_node_and_aliases): Likewise.
10645 * ipa-ref.h (first_alias): New function.
10646 (last_alias): Likewise.
10647 (has_aliases_p): Likewise.
10648 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10649 is sensitive to IPA_REF_ALIASes.
10650 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10651 are put at the beginning of the list.
10652 (symtab_node::iterate_direct_aliases): New function.
10653
10654 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10655
10656 Revert:
10657 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10658 type is complete.
10659 (write_ts_type_common_tree_pointers): Do not stream fields not set
10660 for incomplete types; do not stream duplicated fields for variants;
10661 sanity check that variant and type match.
10662 (write_ts_type_non_common_tree_pointers): Likewise.
10663 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10664 TYPE_SIZE whether type is complete.
10665 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10666 write_ts_type_common_tree_pointers
10667 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10668
10669 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10670
10671 * var-tracking.c (add_stores): Return instead of asserting if old
10672 and new values for conditional store are the same.
10673
10674 2014-06-30 Richard Henderson <rth@redhat.com>
10675
10676 PR rtl-opt/61608
10677 PR target/39284
10678 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10679 the cfg if there were any changes.
10680 * passes.def: Revert move of peephole2 after reorder_blocks;
10681 move duplicate_computed_gotos before peephole2.
10682
10683 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10684
10685 * except.c (emit_note_eh_region_end): New helper function.
10686 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10687 emit EH_REGION_END note.
10688 * jump.c (cleanup_barriers): Do not split a call and its
10689 corresponding CALL_ARG_LOCATION note.
10690
10691 2014-06-30 Jeff Law <law@redhat.com>
10692
10693 PR tree-optimization/61607
10694 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10695 deeper into the SSA_NAME_VALUE chain.
10696
10697 2014-06-30 Marek Polacek <polacek@redhat.com>
10698
10699 * convert.c (convert_to_integer): Don't instrument conversions if the
10700 function has no_sanitize_undefined attribute.
10701 * ubsan.c: Don't run the ubsan pass if the function has
10702 no_sanitize_undefined attribute.
10703
10704 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10705
10706 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10707 -fsanitize=undefined suboptions.
10708
10709 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10710
10711 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10712 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10713 against bigendian and adjust indices.
10714
10715 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10716
10717 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10718
10719 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10720
10721 PR target/61633
10722 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10723 Add alternative; make early clobber. Adjust both split patterns
10724 to use operand 0 as the working register.
10725
10726 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10727
10728 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10729 as ira_object_id_map might be NULL, or 1.
10730
10731 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10732
10733 * loop-invariant.c (get_inv_cost): Handle register class.
10734 (gain_for_invariant): Check the register pressure of the inv
10735 and its overlapped register class, other than all.
10736
10737 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10738
10739 * doc/invoke.texi (Optimize Options): Fix descriptions of
10740 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10741
10742 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10743
10744 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10745 documentation.
10746
10747 2014-06-29 Tobias Grosser <tobias@grosser.es>
10748
10749 PR bootstrap/61650
10750 * graphite-isl-ast-to-gimple.c: Add missing guards.
10751
10752 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10753
10754 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10755 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10756 * flag-types.h: Add new enum fgraphite_generator.
10757 * graphite-isl-ast-to-gimple.c: New.
10758 * graphite-isl-ast-to-gimple.h: New.
10759 * graphite.c (graphite_transform_loops): Add choice of Graphite
10760 code generator, which depends on flag_graphite_code_gen.
10761
10762 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10763
10764 * graphite-dependences.c (subtract_commutative_associative_deps):
10765 Add NULL checking of the following variables: must_raw_no_source,
10766 may_raw_no_source, must_war_no_source, may_war_no_source,
10767 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10768 must_war, may_war, must_waw, may_waw.
10769
10770 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10771
10772 * graphite-clast-to-gimple.c: gloog is renamed to
10773 graphite_regenerate_ast_cloog. gloog_error is renamed to
10774 graphite_regenerate_error.
10775 * graphite-clast-to-gimple.h: The definition of the struct
10776 bb_pbb_def is moved to graphite-htab.h.
10777 Add inclusion of the hash-table.h.
10778 * graphite-htab.h: The declaration of the function gloog is moved
10779 to graphite-clast-to-gimple.h and renamed to
10780 graphite_regenerate_ast_cloog.
10781 * graphite.c (graphite_transform_loops): gloog is renamed
10782 to graphite_regenerate_ast_cloog.
10783
10784 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10785
10786 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10787 type is complete.
10788 (write_ts_type_common_tree_pointers): Do not stream fields not set
10789 for incomplete types; do not stream duplicated fields for variants;
10790 sanity check that variant and type match.
10791 (write_ts_type_non_common_tree_pointers): Likewise.
10792 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10793 TYPE_SIZE whether type is complete.
10794 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10795 write_ts_type_common_tree_pointers
10796 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10797
10798 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10799
10800 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10801
10802 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10803
10804 * tree-inline.c (remap_type_1): Do not duplicate fields
10805 that are shared in between type and its main variant.
10806
10807 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10808
10809 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10810 of the type.
10811 (ipa_set_ancestor_jf) Likewise.
10812 (check_stmt_for_type_change): Check that we work on main variant.
10813 (detect_type_change): Look into main variant.
10814 (compute_known_type_jump_func): Check that main variant has BINFO.
10815
10816 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10817
10818 * ipa-devirt.c (set_type_binfo): New function.
10819 (add_type_duplicate): Use it.
10820 (get_odr_type): Sanity check that binfos points to main variants.
10821 (get_class_context): Be sure the context's outer_type is main variant.
10822 (contains_type_p): Walk main variant.
10823 (get_polymorphic_call_info_for_decl): Set outer_type to be
10824 main variant.
10825 (get_polymorphic_call_info): Likewise.
10826 (possible_polymorphic_call_targets): Sanity check that we operate
10827 on main variant.
10828
10829 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10830
10831 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10832
10833 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10834
10835 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10836 accidental change due to wide-int branch merge.
10837
10838 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10839
10840 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10841 compressed debug support.
10842 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10843 * configure: Regenerate.
10844 * config.in: Regenerate.
10845 * common.opt (compressed_debug_sections): New enum.
10846 (gz, gz=): New options.
10847 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10848 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10849 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10850 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10851 LINK_COMPRESS_DEBUG_SPEC.
10852 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10853 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10854 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10855 (Debugging Options): Document -gz[=type].
10856
10857 2014-06-27 Martin Jambor <mjambor@suse.cz>
10858
10859 PR ipa/61160
10860 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10861 args_to_skip, use those from node instead. Copy args_to_skip and
10862 combined_args_to_skip from node to the new thunk.
10863 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10864 (cgraph_create_virtual_clone): Moved computation of
10865 combined_args_to_skip...
10866 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10867
10868 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10869
10870 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10871 redundant diagnostic machinary.
10872
10873 2014-06-27 Richard Biener <rguenther@suse.de>
10874
10875 * tree-ssa-math-opts.c (bswap_replace): Fix
10876 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10877
10878 2014-06-27 Martin Liska <mliska@suse.cz>
10879
10880 * gimple.h (gimple_location_safe): New function introduced.
10881 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10882 of gimple_location_safe replaces gimple_location.
10883 (gimple_fold_call): Likewise.
10884 * ipa-devirt.c (ipa_devirt): Likewise.
10885 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10886 * ipa.c (walk_polymorphic_call_targets): Likewise.
10887 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10888
10889 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10890
10891 PR tree-optimization/57233
10892 PR tree-optimization/61299
10893 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10894 functions.
10895 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10896 would be lowered to scalar shifts, check if corresponding
10897 shifts and vector BIT_IOR_EXPR are supported and don't lower
10898 or lower just to narrower vector type in that case.
10899 * expmed.c (expand_shift_1): Fix up handling of vector
10900 shifts and rotates.
10901
10902 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10903
10904 PR target/61586
10905 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10906
10907 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10908
10909 * doc/invoke.texi (-fsemantic-interposition): Document.
10910 * common.opt (fsemantic-interposition): New flag.
10911 * varasm.c (decl_replaceable_p): Use it.
10912
10913 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10914
10915 PR target/61542
10916 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10917 extraction other than index 3.
10918
10919 2014-06-26 Teresa Johnson <tejohnson@google.com>
10920
10921 * doc/invoke.texi: Fix typo.
10922 * dumpfile.c: Add support for documented -fdump-* options
10923 optimized/missed/note/optall.
10924
10925 2014-06-26 Martin Jambor <mjambor@suse.cz>
10926
10927 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10928 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10929 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10930 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10931 * opts.c (default_options_optimization): Set
10932 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10933 * doc/invoke.texi (allow-load-data-races)
10934 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10935 (allow-store-data-races): Document the new default.
10936
10937 2014-06-26 Martin Jambor <mjambor@suse.cz>
10938
10939 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10940 renamed to ipa_impossible_devirt_target. Fix typo.
10941 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10942 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10943 ipa_impossible_devirt_target.
10944
10945 2014-06-26 Richard Biener <rguenther@suse.de>
10946
10947 PR tree-optimization/61607
10948 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10949 explaining why we restrict copies on loop depth.
10950 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10951 on loop depth.
10952 (record_equivalences_from_phis): Instead add it here.
10953
10954 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10955
10956 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10957 (LTO_WRAPPER_OBJS): New variable.
10958 (lto-wrapper$(exeext)): Use it.
10959 * collect2.c: Include "collect-utils.h".
10960 (verbose, debug): Remove variables.
10961 (at_file_supplied): No longer static.
10962 (tool_name): New variable.
10963 (do_wait, fork_execute, maybe_unlink): Don't declare.
10964 (tool_cleanup): No longer static.
10965 (notice): Remove function.
10966 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10967 fork_execute calls.
10968 (collect_wait, do_wait, collect_execute): Remove functions.
10969 (maybe_unlink): No longer static.
10970 * collect2.h (verbose, debug): Don't declare.
10971 (at_file_supplied): Declare.
10972 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10973 changed.
10974 (collect_execute): Replace with implementation from collect2, plus a
10975 new arg use_atfile. All callers changed.
10976 (collect_wait): Replace with implementation from collect2.
10977 (maybe_unlink_file): Remove function.
10978 (fork_execute): Replace with implementation from collect2, plus a
10979 new arg use_atfile. All callers changed.
10980 (do_wait): Add call to utils_cleanup to the error path.
10981 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10982 (tool_cleanup): Adjust declarations.
10983 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10984 * tlink.c: Include "collect-utils.h".
10985 (tlink_execute): New arg use_atfile. All callers changed.
10986 (tlink_init, tlink_execute): Remove declarations.
10987
10988 * collect-utils.c (save_temps): New variable.
10989 (do_wait): Use it instead of debug. Use fatal_error.
10990 * collect-utils.h (save_temps): Declare.
10991 * collect2.c (verbose): Rename from vflag. All uses changed.
10992 (tool_cleanup): New function, copied from collect_atexit.
10993 (collect_atexit, handler): Just call it.
10994 * collect2.h (verbose): Declaration renamed from vflag.
10995 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10996 debug.
10997
10998 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10999 (lto-wrapper$(exeext)): Link with collect-utils.o.
11000 * collect-utils.c: New file.
11001 * collect-utils.h: New file.
11002 * lto-wrapper.c: Include "collect-utils.h".
11003 (args_name): Delete variable.
11004 (tool_name): New variable.
11005 (tool_cleanup): New function.
11006 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
11007 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
11008 (fork_execute): Remove functions.
11009
11010 2014-06-26 Nick Clifton <nickc@redhat.com>
11011
11012 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
11013
11014 * doc/extend.texi (Function Attributes): Fix typo in description
11015 of RX vector attribute.
11016
11017 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11018
11019 * config.gcc (supported_defaults): Error when passing either
11020 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
11021
11022 2014-06-26 Richard Biener <rguenther@suse.de>
11023
11024 * tree-ssa-dom.c (cprop_operand): Remove restriction on
11025 propagating volatile pointers.
11026
11027 2014-06-26 Richard Biener <rguenther@suse.de>
11028
11029 PR tree-optimization/61607
11030 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
11031 loop if we redirected its latch edge.
11032 (thread_block_1): Do not cancel loops prematurely.
11033
11034 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
11035
11036 * toplev.c (backend_init_target): Move init_emit_regs and
11037 init_regs to...
11038 (backend_init) ... here; skip ira_init_once and backend_init_target.
11039 (target_reinit) ... and here; clear
11040 this_target_rtl->lang_dependent_initialized.
11041 (lang_dependent_init_target): Clear
11042 this_target_rtl->lang_dependent_initialized;
11043 break out rtl initialization to ...
11044 (initialize_rtl): ... here; call also backend_init_target
11045 and ira_init_once.
11046 * toplev.h (initialize_rtl): New function.
11047 * function.c: Include toplev.h
11048 (init_function_start): Call initialize_rtl.
11049 * rtl.h (target_rtl): Add target_specific_initialized,
11050 lang_dependent_initialized.
11051
11052 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
11053 Jakub Jelinek <jakub@redhat.com>
11054
11055 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
11056
11057 2014-06-25 Tom de Vries <tom@codesourcery.com>
11058
11059 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
11060
11061 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11062
11063 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
11064 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
11065 Issue a strict overflow warning if appropriate.
11066
11067 2014-06-25 Martin Liska <mliska@suse.cz>
11068
11069 IPA REF refactoring
11070 * Makefile.in: Removed header file (ipa-ref-inline.h).
11071 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
11072 called.
11073 (cgraph_speculative_call_info): Likewise.
11074 (cgraph_for_node_thunks_and_aliases): Likewise.
11075 (cgraph_for_node_and_aliases): Likewise.
11076 (verify_cgraph_node): Likewise.
11077 * cgraph.h: Batch of IPA REF functions become member functions of
11078 symtab_node: add_reference, maybe_add_reference, clone_references,
11079 clone_referring, clone_reference, find_reference,
11080 remove_stmt_references, remove_all_references,
11081 remove_all_referring, dump_references, dump_referring,
11082 has_alias_p, iterate_reference, iterate_referring.
11083 * cgraphbuild.c (record_reference): New IPA REF function used.
11084 (record_type_list): Likewise.
11085 (record_eh_tables): Likewise.
11086 (mark_address): Likewise.
11087 (mark_load): Likewise.
11088 (mark_store): Likewise.
11089 (pass_build_cgraph_edges): Likewise.
11090 (rebuild_cgraph_edge): Likewise.
11091 (cgraph_rebuild_references): Likewise.
11092 (pass_remove_cgraph_callee_edges): Likewise.
11093 * cgraphclones.c (cgraph_clone_node): Likewise.
11094 (cgraph_create_virtual_clone): Likewise.
11095 (cgraph_materialize_clone): Likewise.
11096 (cgraph_materialize_all_clones): Likewise.
11097 * cgraphunit.c (cgraph_reset_node): Likewise.
11098 (cgraph_reset_node): Likewise.
11099 (analyze_function): Likewise.
11100 (assemble_thunks_and_aliases): Likewise.
11101 (expand_function): Likewise.
11102 * ipa-comdats.c (propagate_comdat_group): Likewise.
11103 (enqueue_references): Likewise.
11104 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
11105 (create_specialized_node): Likewise.
11106 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
11107 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
11108 * ipa-inline.c (reset_edge_caches): Likewise.
11109 (update_caller_keys): Likewise.
11110 (execute): Likewise.
11111 * ipa-prop.c (remove_described_reference): Likewise.
11112 (propagate_controlled_uses): Likewise.
11113 (ipa_edge_duplication_hook): Likewise.
11114 (ipa_modify_call_arguments): Likewise.
11115 * ipa-pure-const.c (propagate_pure_const): Likewise.
11116 * ipa-ref-inline.h: Header file removed, functions moved
11117 to symtab_node class.
11118 * ipa-ref.c (remove_reference): New class member function.
11119 (cannot_lead_to_return): New class member function.
11120 (referring_ref_list): Likewise.
11121 (referred_ref_list): Likewise.
11122 Rest of functions moved to symtab_node class.
11123 * ipa-ref.h: New member functions remove_reference,
11124 cannot_lead_to_return, referring_ref_list, referred_ref_list added
11125 to ipa_ref class.
11126 ipa_ref_list class has new member functions: first_reference,
11127 first_referring, clear, nreferences.
11128 * ipa-reference.c (analyze_function): New IPA REF function used.
11129 (write_node_summary_p): Likewise.
11130 (ipa_reference_write_optimization_summary): Likewise.
11131 * ipa-split.c (split_function): Likewise.
11132 * ipa-utils.c (ipa_reverse_postorder): Likewise.
11133 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
11134 (function_and_variable_visibility): Likewise.
11135 * ipa.c (has_addr_references_p): Likewise.
11136 (process_references): Argument type changed.
11137 (symtab_remove_unreachable_nodes): New IPA REF function used.
11138 (process_references): Likewise.
11139 (set_writeonly_bit): Likewise.
11140 * lto-cgraph.c: Implementation of new symtab_node member functions
11141 that uses new IPA REF functions.
11142 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
11143 function used.
11144 * lto-streamer-out.c (output_symbol_p): Likewise.
11145 * lto-streamer.h (referenced_from_this_partition_p): Argument type
11146 changed.
11147 * symtab.c: Implementation of new IPA REF API.
11148 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
11149 (ipa_tm_create_version): Likewise.
11150 (ipa_tm_execute): Likewise.
11151 * tree-emutls.c (gen_emutls_addr): Likewise.
11152 * tree-inline.c (copy_bb): Likewise.
11153 (delete_unreachable_blocks_update_callgraph): Likewise.
11154 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
11155 (varpool_for_node_and_aliases): Likewise.
11156
11157 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11158
11159 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
11160
11161 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11162
11163 PR bootstrap/61598
11164 * fold-const.c (fold_checksum_tree): Use a hash_table of const
11165 tree_node * instead of tree_node *.
11166 (fold): Adjust.
11167 (print_fold_checksum): Likewise.
11168 (fold_check_failed): Likewise.
11169 (debug_fold_checksum): Likewise.
11170 (fold_build1_stat_loc): Likewise.
11171 (fold_build2_stat_loc): Likewise.
11172 (fold_build3_stat_loc): Likewise.
11173 (fold_build_call_array_loc): Likewise.
11174
11175 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
11176
11177 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
11178 implementation with call to...
11179 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
11180 function.
11181 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
11182 Declare.
11183
11184 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
11185
11186 PR tree-optimization/57742
11187 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
11188 after replacing the statement.
11189
11190 2014-06-25 Nick Clifton <nickc@redhat.com>
11191
11192 * config/v850/v850.c (GHS_default_section_names): Change to const
11193 char * type.
11194 (GHS_current_section_names): Likewise.
11195 (v850_insert_attributes): Do not build strings, just assign the
11196 names directly. Change the type of 'chosen_section' to const
11197 char*.
11198 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11199 directly to the array entry.
11200 * config/v850/v850.h (GHS_default_section_names): Change to const
11201 char * type.
11202 (GHS_current_section_names): Likewise.
11203
11204 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11205
11206 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11207 (LANG_HOOKS_DECLS): Add it.
11208 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11209 has correct type.
11210 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11211 * langhooks.h (struct lang_hooks_for_decls): Add
11212 omp_clause_linear_ctor hook.
11213 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11214 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11215 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11216 combined simd loop use omp_clause_linear_ctor hook.
11217
11218 2014-06-24 Cong Hou <congh@google.com>
11219
11220 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11221 pattern recognition.
11222 (type_conversion_p): PROMOTION is true if it's a type promotion
11223 conversion, and false otherwise. Return true if the given expression
11224 is a type conversion one.
11225 * tree-vectorizer.h: Adjust the number of patterns.
11226 * tree.def: Add SAD_EXPR.
11227 * optabs.def: Add sad_optab.
11228 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11229 * expr.c (expand_expr_real_2): Likewise.
11230 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11231 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11232 * optabs.c (optab_for_tree_code): Likewise.
11233 * tree-cfg.c (estimate_operator_cost): Likewise.
11234 * tree-ssa-operands.c (get_expr_operands): Likewise.
11235 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11236 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11237 * doc/generic.texi: Add document for SAD_EXPR.
11238 * doc/md.texi: Add document for ssad and usad.
11239
11240 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11241
11242 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11243 qualification in cast.
11244
11245 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11246
11247 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11248 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11249 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11250 (tree_function_decl): ... here.
11251 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11252 streaming of vindex to ...
11253 (write_ts_function_decl_tree_pointers): ... here.
11254 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11255 Do not stream DECL_VINDEX.
11256 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11257
11258 2014-06-24 Catherine Moore <clm@codesourcery.com>
11259 Sandra Loosemore <sandra@codesourcery.com>
11260
11261 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11262 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11263 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11264
11265 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11266
11267 * doc/invoke.texi (Warning Options): Remove duplicated
11268 -Wmaybe-uninitialized.
11269
11270 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11271
11272 PR tree-optimization/57742
11273 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11274 (handle_builtin_malloc, handle_builtin_memset): New functions.
11275 (strlen_optimize_stmt): Call them.
11276 * passes.def: Move strlen after loop+dom but before vrp.
11277
11278 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11279
11280 PR target/61570
11281 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11282 model family 6 CPU with has_longmode never use a CPU without
11283 64-bit support.
11284
11285 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11286
11287 PR target/61570
11288 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11289 the last change.
11290
11291 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11292
11293 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11294 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11295 pointer_map.
11296 * hash-map.h: New file.
11297 * ipa-comdats.c: Use hash_map instead of pointer_map.
11298 * ipa.c: Likewise.
11299 * lto-section-out.c: Adjust.
11300 * lto-streamer.h: Replace pointer_map with hash_map.
11301 * symtab.c (verify_symtab): Likewise.
11302 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11303 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11304 * tree-streamer.h: Likewise.
11305 * tree-streamer.c: Adjust.
11306 * pointer-set.h: Remove pointer_map.
11307
11308 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11309
11310 * hash-table.h: Add a template arg to choose between storing values
11311 and storing pointers to values, and then provide partial
11312 specializations for both.
11313 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11314 should store, not the type values should point to.
11315 * tree-into-ssa.c (var_info_hasher): Likewise.
11316 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11317 * tree-complex.c: Adjust.
11318 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11319 table instead of int_tree_map *.
11320 * tree-parloops.c: Adjust.
11321 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11322 type is being stored.
11323 * tree-vectorizer.c: Adjust.
11324
11325 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11326
11327 * hash-table.h: Remove a layer of indirection from hash_table so that
11328 it contains the hash table's data instead of a pointer to the data.
11329 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11330 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11331 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11332 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11333 fold-const.c, gcse.c, ggc-common.c,
11334 gimple-ssa-strength-reduction.c, gimplify.c,
11335 graphite-clast-to-gimple.c, graphite-dependences.c,
11336 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11337 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11338 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11339 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11340 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11341 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11342 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11343 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11344 tree-ssa-live.c, tree-ssa-loop-im.c,
11345 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11346 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11347 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11348 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11349 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11350 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11351 vtable-verify.c, vtable-verify.h: Adjust.
11352
11353 2014-06-24 Richard Biener <rguenther@suse.de>
11354
11355 PR tree-optimization/61572
11356 * tree-ssa-sink.c (statement_sink_location): Do not sink
11357 loads from hard registers.
11358
11359 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11360
11361 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11362 not mentioned in clauses use private clause if the iterator is
11363 declared in #pragma omp for simd, and when adding lastprivate
11364 instead, add it to the outer #pragma omp for too. Diagnose
11365 if the variable is private in outer context. For simd collapse > 1
11366 loops, replace all iterators with temporaries.
11367 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11368 same even in collapse > 1 loops.
11369
11370 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11371 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11372 non-NULL.
11373 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11374 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11375 non-NULL.
11376 (gimplify_adjust_omp_clauses): Likewise.
11377 * omp-low.c (lower_rec_simd_input_clauses,
11378 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11379 safelen the same as safelen(1).
11380 * tree-nested.c (convert_nonlocal_omp_clauses,
11381 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11382 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11383 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11384 Fixup handling of GIMPLE_OMP_TARGET.
11385 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11386 GIMPLE_OMP_TARGET.
11387
11388 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11389
11390 PR tree-optimization/61554
11391 * tree-ssa-propagate.c: Include "bitmap.h".
11392 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11393 properly update constructor/destructor.
11394 (substitute_and_fold_dom_walker::before_dom_children):
11395 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11396 need_eh_cleaup instead.
11397 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11398 need_eh_cleanup.
11399
11400 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11401
11402 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11403 * tree-pass.h (make_pass_ipa_single_use): New pass.
11404 * cgraph.h (used_by_single_function): New flag.
11405 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11406 Stream it.
11407 * passes.def (pass_ipa_single_use): Scedule.
11408 * ipa.c (BOTTOM): New macro.
11409 (meet): New function
11410 (propagate_single_user): New function.
11411 (ipa_single_use): New function.
11412 (pass_data_ipa_single_use): New pass.
11413 (pass_ipa_single_use): New pass.
11414 (pass_ipa_single_use::gate): New gate.
11415 (make_pass_ipa_single_use): New function.
11416
11417 2014-06-23 Kai Tietz <ktietz@redhat.com>
11418
11419 PR target/39284
11420 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11421 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11422
11423 2014-06-23 Richard Biener <rguenther@suse.de>
11424
11425 * tree-ssa-loop.c (gate_loop): New function.
11426 (pass_tree_loop::gate): Call it.
11427 (pass_data_tree_no_loop, pass_tree_no_loop,
11428 make_pass_tree_no_loop): New.
11429 * tree-vectorizer.c: Include tree-scalar-evolution.c
11430 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11431 required.
11432 (pass_slp_vectorize::clone): New method.
11433 * timevar.def (TV_TREE_NOLOOP): New.
11434 * tree-pass.h (make_pass_tree_no_loop): Declare.
11435 * passes.def (pass_tree_no_loop): New pass group with
11436 SLP vectorizer.
11437
11438 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11439
11440 PR target/61570
11441 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11442 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11443
11444 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11445
11446 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11447 "yes" where needed.
11448
11449 2014-06-23 Alan Modra <amodra@gmail.com>
11450
11451 PR bootstrap/61583
11452 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11453 to zero on debug statements.
11454
11455 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11456
11457 PR target/60825
11458 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11459 Ignore third operand if present by marking qualifier_internal.
11460
11461 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11462
11463 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11464 vector extension.
11465 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11466 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11467 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11468 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11469 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11470 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11471 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11472 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11473 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11474 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11475 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11476 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11477 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11478 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11479 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11480 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11481 logic in GCC vector extensions
11482
11483 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11484 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11485 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11486 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11487 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11488 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11489 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11490 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11491 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11492 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11493
11494 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11495
11496 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11497 extensions.
11498
11499 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11500 (vget_low_s64): Use __GET_LOW macro.
11501 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11502 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11503 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11504 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11505 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11506
11507 (vcombine_s64): Use GCC vector extensions; remove cast.
11508 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11509 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11510 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11511 Fix type signature; remove cast.
11512
11513 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11514
11515 PR target/60825
11516 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11517 V1DFmode.
11518 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11519 add V1DFmode
11520 (BUILTIN_VD1): New.
11521 (BUILTIN_VD_RE): Remove.
11522 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11523 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11524 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11525 variant but not df.
11526 (vreinterpretv1df*, vreinterpret*v1df): New.
11527 (vreinterpretdf*, vreinterpret*df): Remove.
11528 * config/aarch64/aarch64-simd.md (aarch64_create,
11529 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11530 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11531 (VD1): New.
11532 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11533 (vcreate_f64): Remove cast, use v1df builtin.
11534 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11535 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11536 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11537 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11538 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11539 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11540 add range check using __builtin_aarch64_im_lane_boundsi.
11541 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11542 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11543 type signature, use gcc vector extensions.
11544 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11545 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11546 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11547 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11548 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11549 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11550 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11551 vreinterpret_u64_f64): Use v1df builtin not df.
11552
11553 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11554
11555 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11556 vector registers.
11557
11558 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11559
11560 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11561 priority directly.
11562
11563 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11564
11565 * loop-invariant.c (pre_check_invariant_p): New function.
11566 (find_invariant_insn): Call pre_check_invariant_p.
11567
11568 2014-06-22 Richard Henderson <rth@redhat.com>
11569
11570 PR target/61565
11571 * compare-elim.c (struct comparison): Add eh_note.
11572 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11573 a redundant comparison in a different EH region. Purge EH edges if
11574 necessary.
11575
11576 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11577
11578 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11579 (var_shift): Use it.
11580 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11581 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11582 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11583 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11584 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11585 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11586 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11587 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11588 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11589 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11590 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11591 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11592 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11593 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11594 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11595 *rotldi3_internal15be): Use the new attribute. Merge register and
11596 integer alternatives.
11597
11598 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11599
11600 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11601 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11602 split, *ashrdi3_internal3 and split): Delete, merge into...
11603 (ashr<mode>3): New expander.
11604 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11605 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11606
11607 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11608
11609 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11610 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11611 *rotldi3_internal3 and split): Delete, merge into...
11612 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11613 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11614 Use "rotlw" extended mnemonic.
11615
11616 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11617
11618 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11619 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11620 and split, *ashldi3_internal3 and split): Delete, merge into...
11621 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11622 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11623
11624 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11625
11626 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11627 (lshrsi3, two anonymous define_insns and define_splits,
11628 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11629 *lshrdi3_internal3 and split): Delete, merge into...
11630 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11631 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11632
11633 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11634
11635 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11636 Remove "O" alternative.
11637
11638 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11639
11640 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11641 (mips_move_from_gpr_cost): Likewise.
11642 (mips_register_move_cost): Update accordingly.
11643 (mips_secondary_reload_class): Remove name of in_p.
11644
11645 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11646
11647 PR target/61503
11648 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11649 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11650
11651 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11652
11653 * config/nios2/nios2.c: Include "builtins.h".
11654
11655 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11656
11657 * cgraph.h (tls_model_names): New variable.
11658 * print-tree.c (print_node): Simplify.
11659 * varpool.c (tls_model_names): New variable.
11660 (dump_varpool_node): Output tls model.
11661
11662 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11663
11664 * ipa-visibility.c (function_and_variable_visibility): Disable
11665 temporarily local aliases for some targets.
11666
11667 2014-06-20 Marek Polacek <polacek@redhat.com>
11668
11669 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11670 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11671 into SANITIZE_UNDEFINED.
11672 * doc/invoke.texi: Describe -fsanitize=bounds.
11673 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11674 functions created in the FEs.
11675 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11676 (expand_UBSAN_BOUNDS): New function.
11677 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11678 * internal-fn.h: Don't define internal functions here.
11679 * opts.c (common_handle_option): Add -fsanitize=bounds.
11680 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11681 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11682 * tree-core.h: Define internal functions here.
11683 (struct tree_base): Add ifn field.
11684 * tree-pretty-print.c: Include "internal-fn.h".
11685 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11686 * tree.c (get_callee_fndecl): Likewise.
11687 (build_call_expr_internal_loc): New function.
11688 * tree.def (CALL_EXPR): Update description.
11689 * tree.h (CALL_EXPR_IFN): Define.
11690 (build_call_expr_internal_loc): Declare.
11691 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11692 types.
11693 (ubsan_type_descriptor): Change bool parameter to enum
11694 ubsan_print_style. Adjust the code. Add handling of
11695 UBSAN_PRINT_ARRAY.
11696 (ubsan_expand_bounds_ifn): New function.
11697 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11698 (ubsan_build_overflow_builtin): Likewise.
11699 (instrument_bool_enum_load): Likewise.
11700 (ubsan_instrument_float_cast): Likewise.
11701 * ubsan.h (enum ubsan_print_style): New enum.
11702 (ubsan_expand_bounds_ifn): Declare.
11703 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11704
11705 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11706
11707 * config/rs6000/rs6000.md: Append `DONE' to preparation
11708 statements of `bswap' pattern splitters.
11709
11710 2014-06-20 Tom de Vries <tom@codesourcery.com>
11711
11712 * target.def (call_fusage_contains_non_callee_clobbers): Update
11713 definition.
11714 * doc/tm.texi: Regenerate.
11715
11716 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11717 Max Ostapenko <m.ostapenko@partner.samsung.com>
11718
11719 PR sanitizer/61547
11720 * asan.c (instrument_strlen_call): Fixed instrumentation of
11721 trailing byte.
11722
11723 2014-06-20 Martin Jambor <mjambor@suse.cz>
11724
11725 PR ipa/61540
11726 * ipa-prop.c (impossible_devirt_target): New function.
11727 (try_make_edge_direct_virtual_call): Use it, also instead of
11728 asserting.
11729
11730 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11731 Max Ostapenko <m.ostapenko@partner.samsung.com>
11732
11733 PR sanitizer/61530
11734 * asan.c (build_check_stmt): Add condition.
11735
11736 2014-06-20 Martin Jambor <mjambor@suse.cz>
11737
11738 PR ipa/61211
11739 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11740 expanded clones.
11741
11742 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11743
11744 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11745 Update comments.
11746 (VCONQ): Make comment more helpful.
11747 (VCON): Delete.
11748 * config/aarch64/aarch64-simd.md
11749 (aarch64_sqdmulh_lane<mode>):
11750 Use VCOND for operands 2. Update lane checking and flipping logic.
11751 (aarch64_sqrdmulh_lane<mode>): Likewise.
11752 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11753 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11754 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11755 attribute of operand 3 to VCOND.
11756 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11757 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11758 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11759 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11760 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11761 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11762 define_insn.
11763 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11764 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11765 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11766 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11767 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11768 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11769 operand to VCOND. Update lane flipping and bounds checking logic.
11770 (aarch64_sqdmlal2_lane<mode>): Likewise.
11771 (aarch64_sqdmlsl_lane<mode>): Likewise.
11772 (aarch64_sqdmull_lane<mode>): Likewise.
11773 (aarch64_sqdmull2_lane<mode>): Likewise.
11774 (aarch64_sqdmlal_laneq<mode>):
11775 Replace VCON usage with VCONQ.
11776 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11777 (aarch64_sqdmlal2_laneq<mode>): Emit
11778 aarch64_sqdmlal2_laneq<mode>_internal insn.
11779 Replace VCON with VCONQ.
11780 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11781 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11782 (aarch64_sqdmull_laneq<mode>): Emit
11783 aarch64_sqdmull_laneq<mode>_internal insn.
11784 Replace VCON with VCONQ.
11785 (aarch64_sqdmull2_laneq<mode>): Emit
11786 aarch64_sqdmull2_laneq<mode>_internal insn.
11787 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11788 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11789 of 3rd argument to int16x4_t.
11790 (vqdmlalh_lane_s16): Likewise.
11791 (vqdmlslh_lane_s16): Likewise.
11792 (vqdmull_high_lane_s16): Likewise.
11793 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11794 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11795 (vqdmlsl_lane_s16): Likewise.
11796 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11797 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11798 (vqdmlals_lane_s32): Likewise.
11799 (vqdmlsls_lane_s32): Likewise.
11800 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11801 (vqdmulls_lane_s32): Likewise.
11802 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11803 (vqdmlsl_lane_s32): Likewise.
11804 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11805 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11806 (vqrdmulhh_lane_s16): Likewise.
11807 (vqdmlsl_high_lane_s16): Likewise.
11808 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11809 (vqdmlsl_high_lane_s32): Likewise.
11810 (vqrdmulhs_lane_s32): Likewise.
11811
11812 2014-06-20 Tom de Vries <tom@codesourcery.com>
11813
11814 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11815 get_call_reg_set_usage.
11816
11817 2014-06-20 Tom de Vries <tom@codesourcery.com>
11818
11819 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11820 it contains all call_used_regs.
11821
11822 2014-06-20 Tom de Vries <tom@codesourcery.com>
11823
11824 * final.c (collect_fn_hard_reg_usage): Add and use variable
11825 function_used_regs.
11826
11827 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11828
11829 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11830 (set_init_priority, get_init_priority, set_fini_priority,
11831 get_fini_priority): New methods.
11832 * tree.c (init_priority_for_decl): Remove.
11833 (init_ttree): Do not initialize init priority.
11834 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11835 (decl_priority_info): Remove.
11836 (decl_init_priority_insert): Rewrite.
11837 (decl_fini_priority_insert): Rewrite.
11838 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11839 tree_priority_map_marked_p): Remove.
11840 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11841 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11842 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11843 not output priorities.
11844 (pack_ts_function_decl_value_fields): Likewise.
11845 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11846 not input priorities.
11847 (unpack_ts_function_decl_value_fields): Likewise.
11848 * symtab.c (symbol_priority_map): Declare.
11849 (init_priority_hash): Declare.
11850 (symtab_unregister_node): Unregister from priority hash, too.
11851 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11852 New methods.
11853 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11854 (symbol_priority_info): New function.
11855 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11856 New methods.
11857 * tree-core.h (tree_priority_map): Remove.
11858
11859 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11860
11861 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11862 0xff to uint64_t before shifting it up.
11863
11864 2014-06-20 Julian Brown <julian@codesourcery.com>
11865 Chung-Lin Tang <cltang@codesourcery.com>
11866
11867 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11868 TARGET_THUMB1_ONLY. Add comments.
11869
11870 2014-06-19 Tom de Vries <tom@codesourcery.com>
11871
11872 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11873 return type to void.
11874 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11875
11876 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11877
11878 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11879 as "move", from depends_on.
11880
11881 2014-06-19 Terry Guo <terry.guo@arm.com>
11882
11883 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11884 stage.
11885
11886 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11887
11888 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11889 Remove cr5.
11890 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11891
11892 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11893
11894 PR target/61550
11895 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11896 addresses here if reload in progress or completed.
11897
11898 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11899
11900 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11901 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11902 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11903 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11904 (mips_register_priority): New function that implements the target
11905 hook TARGET_REGISTER_PRIORITY.
11906 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11907 (mips_lra_p): Likewise for TARGET_LRA_P.
11908 (TARGET_REGISTER_PRIORITY): Define macro.
11909 (TARGET_SPILL_CLASS): Likewise.
11910 (TARGET_LRA_P): Likewise.
11911 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11912 classes.
11913 (REG_CLASS_NAMES): Likewise.
11914 (REG_CLASS_CONTENTS): Likewise.
11915 (BASE_REG_CLASS): Use M16_SP_REGS.
11916 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11917 New set attribute to enable alternatives depending on the register
11918 allocator used.
11919 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11920 (*lea64): Disable pattern for MIPS16.
11921 * config/mips/mips.opt (mlra): New option.
11922
11923 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11924
11925 * lra-constraints.c (base_to_reg): New function.
11926 (process_address): Use new function.
11927
11928 2014-06-18 Tom de Vries <tom@codesourcery.com>
11929
11930 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11931 * config/aarch64/aarch64.c
11932 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11933 (aarch64_emit_call_insn): New function.
11934 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11935 of emit_call_insn.
11936 * config/aarch64/aarch64.md (define_expand "call_internal")
11937 (define_expand "call_value_internal", define_expand "sibcall_internal")
11938 (define_expand "sibcall_value_internal"): New.
11939 (define_expand "call", define_expand "call_value")
11940 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11941 expand variant and aarch64_emit_call_insn.
11942
11943 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11944 Tom de Vries <tom@codesourcery.com>
11945
11946 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11947 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11948 Redefine to true.
11949 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11950 clobbers to CALL_INSN_FUNCTION_USAGE.
11951 (define_expand "sibcall_internal")
11952 (define_expand "sibcall_value_internal"): New.
11953 (define_expand "call", define_expand "call_value"): Add argument to
11954 arm_emit_call_insn.
11955 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11956 (define_expand "sibcall_value"): Use sibcall_value_internal and
11957 arm_emit_call_insn.
11958
11959 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11960
11961 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11962
11963 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11964
11965 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11966 __udivmoddi4.
11967
11968 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11969
11970 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11971 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11972 annotations. Fix DWARF information.
11973
11974 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11975
11976 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11977 __udivmoddi4, and fixups for negative operands.
11978
11979 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11980
11981 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11982
11983 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11984
11985 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11986 to __udivmoddi4.
11987
11988 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11989
11990 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11991 manipulation.
11992
11993 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11994
11995 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11996 describing register usage on function entry and exit.
11997
11998 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11999
12000 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
12001 (__aeabi_ldivmod): Fix whitespace.
12002
12003 2014-06-18 Andreas Schwab <schwab@suse.de>
12004
12005 * doc/md.texi (Standard Names): Use @itemx for grouped items.
12006 Remove blank line after @item.
12007
12008 2014-06-18 Richard Henderson <rth@redhat.com>
12009
12010 PR target/61545
12011 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
12012
12013 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12014
12015 * config/arm/arm.c (neon_vector_mem_operand): Allow register
12016 POST_MODIFY for neon loads and stores.
12017 (arm_print_operand): Output post-index register for neon loads and
12018 stores.
12019
12020 2014-06-18 Richard Biener <rguenther@suse.de>
12021
12022 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
12023
12024 2014-06-18 Richard Biener <rguenther@suse.de>
12025
12026 * tree-pass.h (make_pass_dce_loop): Remove.
12027 * passes.def: Replace pass_dce_loop with pass_dce.
12028 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
12029 changed free niter estimates and reset the scev cache.
12030 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
12031 make_pass_dce_loop): Remove.
12032 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
12033 (fini_copy_prop): Return whether something changed. Always
12034 let substitute_and_fold perform DCE and free niter estimates
12035 and reset the scev cache if so.
12036 (execute_copy_prop): If sth changed schedule cleanup-cfg.
12037 (pass_data_copy_prop): Do not unconditionally schedule
12038 cleanup-cfg or update-ssa.
12039
12040 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12041
12042 PR tree-optimization/61518
12043 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12044 reduction var is used in reduction stmt or phi-function only.
12045
12046 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12047
12048 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
12049
12050 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12051
12052 PR tree-optimization/61517
12053 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
12054 whose rhs's first tree is the source expression instead of the
12055 expression itself.
12056 (find_bswap_or_nop): Likewise.
12057 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
12058 gimple stmt whose rhs's first tree is the source. In the memory source
12059 case, move the stmt to be replaced close to one of the original load to
12060 avoid the problem of a store between the load and the stmt's original
12061 location.
12062 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
12063 signature.
12064
12065 2014-06-18 Andreas Schwab <schwab@suse.de>
12066
12067 PR rtl-optimization/54555
12068 * postreload.c (move2add_use_add2_insn): Substitute
12069 STRICT_LOW_PART only if it is cheaper.
12070
12071 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
12072
12073 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
12074 Do not use unspec as call operand. Use memory_operand instead of
12075 memory_nox32_operand and add "m" operand constraint. Disable
12076 pattern for TARGET_X32.
12077 (*sibcall_pop_memory): Ditto.
12078 (*sibcall_value_memory): Ditto.
12079 (*sibcall_value_pop_memory): Ditto.
12080 (sibcall peepholes): Merge SImode and DImode patterns using
12081 W mode iterator. Use memory_operand instead of memory_nox32_operand.
12082 Disable pattern for TARGET_X32. Check if eliminated register is
12083 really dead after call insn. Generate call RTX without unspec operand.
12084 (sibcall_value peepholes): Ditto.
12085 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
12086 instead of memory_nox32_operand. Check if eliminated register is
12087 really dead after call insn. Generate call RTX without unspec operand.
12088 (sibcall_value_pop peepholes): Ditto.
12089 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
12090
12091 2014-06-18 Terry Guo <terry.guo@arm.com>
12092
12093 PR target/61544
12094 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
12095 reach the head.
12096
12097 2014-06-18 Olivier Hainque <hainque@adacore.com>
12098
12099 * tree-core.h (tree_block): Add an "end_locus" field, allowing
12100 memorization of the end of block source location.
12101 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
12102 * gimplify.c (gimplify_bind_expr): Propagate the block start and
12103 end source location info we have on the block entry/exit code we
12104 generate.
12105
12106 2014-06-18 Richard Biener <rguenther@suse.de>
12107
12108 * common.opt (fssa-phiopt): New option.
12109 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
12110 but not with -Og.
12111 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
12112 * doc/invoke.texi (-fssa-phiopt): Document.
12113
12114 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12115
12116 * genattrtab.c (n_bypassed): New variable.
12117 (process_bypasses): Initialise n_bypassed.
12118 Count number of bypassed reservations.
12119 (make_automaton_attrs): Allocate space for bypassed reservations
12120 rather than number of bypasses.
12121
12122 2014-06-18 Richard Biener <rguenther@suse.de>
12123
12124 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
12125 we propagated anything.
12126 (substitute_and_fold_dom_walker::before_dom_children): Something
12127 changed if we propagated into PHI arguments.
12128 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
12129 we removed a stmt.
12130
12131 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
12132
12133 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
12134 vector case.
12135 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
12136 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
12137 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
12138 Introduces alternative way of loads group permutaions.
12139 (vect_transform_grouped_load): Try alternative way of permutations.
12140
12141 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12142
12143 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
12144 changed in ORT_TARGET region, don't jump to do_outer.
12145 (struct gimplify_adjust_omp_clauses_data): New type.
12146 (gimplify_adjust_omp_clauses_1): Adjust for data being
12147 a struct gimplify_adjust_omp_clauses_data pointer instead
12148 of tree *. Pass pre_p as a new argument to
12149 lang_hooks.decls.omp_finish_clause hook.
12150 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
12151 splay_tree_foreach to pass both list_p and pre_p.
12152 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
12153 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
12154 gimplify_adjust_omp_clauses callers.
12155 * langhooks.c (lhd_omp_finish_clause): New function.
12156 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
12157 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
12158 * langhooks.h (struct lang_hooks_for_decls): Add a new
12159 gimple_seq * argument to omp_finish_clause hook.
12160 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
12161 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
12162 (scan_omp_parallel, lower_omp_for): When adding
12163 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
12164 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
12165 * tree-nested.c (convert_nonlocal_omp_clauses,
12166 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
12167 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
12168
12169 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
12170
12171 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
12172 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
12173
12174 2014-06-17 Xinliang David Li <davidxl@google.com>
12175
12176 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
12177 * passes.c (pass_init_dump_file): Do not set initialize
12178 flag to false unconditionally.
12179
12180 2014-06-17 Richard Biener <rguenther@suse.de>
12181
12182 * genopinit.c (main): Use vec<>::qsort method.
12183 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12184 Likewise.
12185 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
12186
12187 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
12188
12189 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
12190 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
12191 (mips_move_to_gpr_cost): Remove ST_REGS case.
12192 (mips_move_from_gpr_cost): Likewise.
12193 (mips_register_move_cost): Likewise.
12194 (mips_secondary_reload_class): Likewise.
12195
12196 2014-06-17 Richard Biener <rguenther@suse.de>
12197
12198 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12199 (pass_all_optimizations): Move 3rd copy-prop pass from after
12200 fre to before ifcombine/phiopt.
12201
12202 2014-06-17 Richard Biener <rguenther@suse.de>
12203
12204 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12205 and allow all blocks to be forwarders.
12206
12207 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12208
12209 PR target/61483
12210 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12211 variable 'size'; calculate 'size' right in the front; use
12212 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12213 pcum->aapcs_stack_words.
12214
12215 2014-06-17 Nick Clifton <nickc@redhat.com>
12216
12217 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12218 (umulhi3, mulsidi3, umulsidi3): Likewise.
12219
12220 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12221
12222 PR middle-end/61508
12223 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12224 check for section name.
12225
12226 2014-06-17 Richard Biener <rguenther@suse.de>
12227
12228 * tree-ssa-propagate.c: Include domwalk.h.
12229 (substitute_and_fold): Outline main worker into a domwalker ...
12230 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12231 Schedule stmts we can fully propagate for removal. Remove
12232 poor-mans DCE.
12233 (substitute_and_fold): Apply a dominator walk to perform
12234 substitution. Process stmts scheduled for removal here.
12235
12236 2014-06-17 Richard Biener <rguenther@suse.de>
12237
12238 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12239 of PHI node moving.
12240
12241 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12242
12243 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12244 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12245 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12246 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12247 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12248 TARGET_HARD_FLOAT.
12249 (get_fpscr) : Likewise.
12250
12251 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12252
12253 PR rtl-optimization/61325
12254 * lra-constraints.c (valid_address_p): Add forward declaration.
12255 (simplify_operand_subreg): Check address validity before and after
12256 alter_reg of memory subreg.
12257
12258 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12259
12260 * config/i386/i386.c (decide_alg): Correctly handle
12261 maximum size of stringop algorithm.
12262
12263 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12264
12265 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12266
12267 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12268
12269 PR rtl-optimization/61522
12270 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12271
12272 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12273
12274 Revert:
12275 * symtab.c (symtab_node::reset_section): New method.
12276 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12277 for localization.
12278 * cgraph.h (reset_section): Declare.
12279 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12280 do not consider comdat locals.
12281 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12282 for new symbol.
12283 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12284 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12285 reset sections of symbols dragged out of the comdats.
12286 (function_and_variable_visibility): Reset sections of
12287 localized symbols.
12288
12289 2014-06-16 Richard Biener <rguenther@suse.de>
12290
12291 PR tree-optimization/61482
12292 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12293 [-INF(OVF), +INF(OVF)] range.
12294
12295 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12296
12297 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12298 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12299 handling 32-bit multiplication.
12300
12301 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12302
12303 PR middle-end/61430
12304 * lra-lives.c (process_bb_lives): Skip creating copy during
12305 insn scan when src/dest has constrained to same regno.
12306
12307 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12308
12309 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12310 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12311
12312 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12313
12314 * asan.c (check_func): New function.
12315 (maybe_create_ssa_name): Likewise.
12316 (build_check_stmt_with_calls): Likewise.
12317 (use_calls_p): Likewise.
12318 (report_error_func): Change interface.
12319 (build_check_stmt): Allow non-integer lengths; add support
12320 for new parameter.
12321 (asan_instrument): Likewise.
12322 (instrument_mem_region_access): Moved code to build_check_stmt.
12323 (instrument_derefs): Likewise.
12324 (instrument_strlen_call): Likewise.
12325 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12326 * doc/invoke.texi: Describe new parameter.
12327 * params.def: Define new parameter.
12328 * params.h: Likewise.
12329 * sanitizer.def: Describe new builtins.
12330
12331 2014-06-16 Richard Biener <rguenther@suse.de>
12332
12333 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12334 Make all defs available at the end.
12335 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12336
12337 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12338
12339 PR plugins/45078
12340 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12341
12342 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12343
12344 PR bootstrap/61516
12345 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12346 initialization. Replace remaining use of uid.
12347
12348 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12349
12350 * c-family/c-common.c (handle_tls_model_attribute): Use
12351 set_decl_tls_model.
12352 * c-family/c-common.c (handle_tls_model_attribute): Use
12353 set_decl_tls_model.
12354 * cgraph.h (struct varpool_node): Add tls_model.
12355 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12356 * tree.h (DECL_TLS_MODEL): Update.
12357 (DECL_THREAD_LOCAL_P): Check that variable is static.
12358 (decl_tls_model): Declare.
12359 (set_decl_tls_model): Declare.
12360 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12361 set symbol prorperties.
12362 (get_emutls_init_templ_addr): Cleanup.
12363 (new_emutls_decl): Update.
12364 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12365 (lto_input_varpool_node): Likewise.
12366 * lto-streamer-out.c (hash_tree): Likewise.
12367 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12368 not stream DECL_TLS_MODEL.
12369 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12370 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12371
12372 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12373
12374 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12375
12376 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12377
12378 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12379 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12380 lists.
12381 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12382 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12383 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12384 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12385 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12386 (df_get_artificial_defs, df_get_artificial_uses)
12387 (df_single_def, df_single_use): Update accordingly.
12388 (df_refs_chain_dump): Take the first element in a linked list as
12389 parameter, rather than a pointer to an array of pointers.
12390 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12391 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12392 (df_chain_create_bb_process_use): Likewise.
12393 (df_md_bb_local_compute_process_def): Likewise.
12394 * fwprop.c (process_defs, process_uses): Likewise.
12395 (register_active_defs, update_uses): Likewise.
12396 (forward_propagate_asm): Update for new df_ref linking.
12397 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12398 (df_null_ref_rec, df_null_mw_rec): Likewise.
12399 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12400 explicitly.
12401 (df_scan_free_bb_info): Remove check for null artificial_defs.
12402 (df_install_ref_incremental): Adjust for new df_ref linking.
12403 Use a single-element insertion rather than a full sort.
12404 (df_ref_chain_delete_du_chain): Take the first element
12405 in a linked list as parameter, rather than a pointer to an array of
12406 pointers.
12407 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12408 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12409 (df_insn_info_delete): Remove check for null defs and call to
12410 df_scan_free_mws_vec.
12411 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12412 null rather than df_null_*_rec.
12413 (df_insn_rescan_debug_internal): Likewise, and update null
12414 checks in the same way. Remove check for null defs.
12415 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12416 Move a single element rather doing a full sort.
12417 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12418 linking.
12419 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12420 Initialize df_ref and df_mw_hardreg lists to null rather than
12421 df_null_*_rec.
12422 (df_ref_compare): Take df_refs as parameter, transferring the
12423 old interface to...
12424 (df_ref_ptr_compare): ...this new function.
12425 (df_sort_and_compress_refs): Update accordingly.
12426 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12427 old interface to...
12428 (df_mw_ptr_compare): ...this new function.
12429 (df_sort_and_compress_mws): Update accordingly.
12430 (df_install_refs, df_install_mws): Return a linked list rather than
12431 an array of pointers.
12432 (df_refs_add_to_chains): Assert that old lists are empty rather
12433 than freeing them.
12434 (df_insn_refs_verify): Don't handle null defs speciailly.
12435 * web.c (union_match_dups): Update for new df_ref linking.
12436
12437 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12438
12439 * df.h (df_ref_create, df_ref_remove): Delete.
12440 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12441 (df_ref_remove): Likewise.
12442
12443 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12444
12445 * df.h (df_single_def, df_single_use): New functions.
12446 * ira.c (find_moveable_pseudos): Use them.
12447
12448 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12449
12450 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12451 * df-problems.c (df_note_bb_compute): Use it.
12452 * regstat.c (regstat_bb_compute_ri): Likewise.
12453
12454 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12455
12456 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12457 * cse.c (cse_extended_basic_block): Use them.
12458 * dce.c (mark_artificial_use): Likewise.
12459 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12460 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12461 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12462 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12463 (df_simulate_initialize_backwards): Likewise.
12464 (df_simulate_finalize_backwards): Likewise.
12465 (df_simulate_initialize_forwards): Likewise.
12466 (df_md_simulate_artificial_defs_at_top): Likewise.
12467 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12468 * regrename.c (init_rename_info): Likewise.
12469 * regstat.c (regstat_bb_compute_ri): Likewise.
12470 (regstat_bb_compute_calls_crossed): Likewise.
12471
12472 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12473
12474 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12475 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12476 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12477 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12478 * combine.c (create_log_links): Likewise.
12479 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12480 (try_eliminate_compare): Likewise.
12481 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12482 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12483 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12484 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12485 (word_dce_process_block, dce_process_block): Likewise.
12486 * ddg.c (def_has_ccmode_p): Likewise.
12487 * df-core.c (df_bb_regno_first_def_find): Likewise.
12488 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12489 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12490 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12491 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12492 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12493 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12494 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12495 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12496 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12497 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12498 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12499 * fwprop.c (local_ref_killed_between_p): Likewise.
12500 (all_uses_available_at, free_load_extend): Likewise.
12501 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12502 * hw-doloop.c (scan_loop): Likewise.
12503 * ifcvt.c (dead_or_predicable): Likewise.
12504 * init-regs.c (initialize_uninitialized_regs): Likewise.
12505 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12506 (process_bb_node_lives): Likewise.
12507 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12508 (find_moveable_pseudos): Likewise.
12509 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12510 * recog.c (peep2_find_free_register): Likewise.
12511 * ree.c (get_defs): Likewise.
12512 * regstat.c (regstat_bb_compute_ri): Likewise.
12513 (regstat_bb_compute_calls_crossed): Likewise.
12514 * sched-deps.c (find_inc, find_mem): Likewise.
12515 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12516 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12517 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12518 (prepare_shrink_wrap): Likewise.
12519 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12520 * web.c (union_defs, pass_web::execute): Likewise.
12521 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12522 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12523
12524 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12525
12526 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12527 to inheritance pseudos.
12528 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12529
12530 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12531
12532 PR target/61415
12533 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12534 (BU_MISC_2): Rename to ...
12535 (BU_LDBL128_2): ... this.
12536 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12537 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12538 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12539 RS6000_BTM_LDBL128.
12540 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12541 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12542 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12543 (unpacktf_1): Likewise.
12544 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12545 (__builtin_longdouble_dw1): Likewise.
12546 * doc/sourcebuild.texi (longdouble128): Document.
12547
12548 2014-06-13 Jeff Law <law@redhat.com>
12549
12550 PR rtl-optimization/61094
12551 PR rtl-optimization/61446
12552 * ree.c (combine_reaching_defs): Get the mode for the copy from
12553 the extension insn rather than the defining insn.
12554
12555 2014-06-13 Dehao Chen <dehao@google.com>
12556
12557 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12558
12559 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12560
12561 * doc/install.texi (--enable-linker-plugin-configure-flags)
12562 (--enable-linker-plugin-flags): Document new flags.
12563
12564 2014-06-13 Martin Jambor <mjambor@suse.cz>
12565
12566 PR ipa/61186
12567 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12568 cache_token if returning early.
12569
12570 2014-06-13 Nick Clifton <nickc@redhat.com>
12571
12572 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12573 requested alignment is active.
12574 (LABEL_ALIGN): Likewise.
12575 (LOOP_ALIGN): Likewise.
12576
12577 2014-06-13 Richard Biener <rguenther@suse.de>
12578
12579 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12580 Rewrite to propagate the VN result into all uses where
12581 possible and to remove stmts becoming dead because of that.
12582 (eliminate): Generalize stmt removal handling, remove in
12583 reverse dominator order to support proper debug stmt
12584 generation. Update stmts before removing stmts.
12585 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12586
12587 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12588
12589 PR tree-optimization/61375
12590 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12591 symbolic number cannot be represented in an uint64_t.
12592 (find_bswap_or_nop_1): Likewise.
12593
12594 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12595
12596 * symtab.c (symtab_node::reset_section): New method.
12597 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12598 for localization.
12599 * cgraph.h (reset_section): Declare.
12600 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12601 do not consider comdat locals.
12602 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12603 for new symbol.
12604 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12605 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12606 reset sections of symbols dragged out of the comdats.
12607 (function_and_variable_visibility): Reset sections of
12608 localized symbols.
12609
12610 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12611
12612 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12613 to use symtab and decl_binds_to_current_def_p
12614 * tree-vectorizer.c (increase_alignment): Increase alignment
12615 of alias target, too.
12616
12617 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12618
12619 PR middle-end/61486
12620 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12621 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12622 if outer combined construct is distribute.
12623 (gimplify_omp_for): For OMP_DISTRIBUTE set
12624 gimplify_omp_ctxp->distribute.
12625 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12626 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12627 mapping into decl map.
12628
12629 2014-06-12 Jason Merrill <jason@redhat.com>
12630
12631 * common.opt (fabi-version): Change default to 0.
12632
12633 2014-06-12 Jason Merrill <jason@redhat.com>
12634
12635 * toplev.c (process_options): Reject -fabi-version=1.
12636
12637 2014-06-12 Jeff Law <law@redhat.com>
12638
12639 PR tree-optimization/61009
12640 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12641 value when we stop processing a block due to problematic PHIs.
12642
12643 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12644
12645 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12646 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12647 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12648 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12649 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12650 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12651 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12652 are not in the spec.
12653
12654 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12655
12656 PR target/59843
12657 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12658 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12659 Support V1DFmode.
12660
12661 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12662
12663 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12664
12665 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12666
12667 PR target/61443
12668 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12669 loading from address spaces.
12670
12671 2014-06-12 Martin Liska <mliska@suse.cz>
12672
12673 PR ipa/61462
12674 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12675 statement is reachable.
12676
12677 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12678
12679 * symtab.c (section_hash): New hash.
12680 (symtab_unregister_node): Clear section before freeing.
12681 (hash_section_hash_entry): New haser.
12682 (eq_sections): New function.
12683 (symtab_node::set_section_for_node): New method.
12684 (set_section_1): Update.
12685 (symtab_node::set_section): Take string instead of tree as parameter.
12686 (symtab_resolve_alias): Update.
12687 * cgraph.h (section_hash_entry_d): New structure.
12688 (section_hash_entry): New typedef.
12689 (cgraph_node): Change comdat_group_ to x_comdat_group,
12690 change section_ to x_section and turn into section_hash_entry;
12691 update accestors; put set_section_for_node offline.
12692 * tree.c (decl_section_name): Turn into string.
12693 (set_decl_section_name): Change parameter to be string.
12694 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12695 * sdbout.c (sdbout_one_type): Update.
12696 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12697 * varasm.c (IN_NAMED_SECTION, get_named_section,
12698 resolve_unique_section, hot_function_section, get_named_text_section,
12699 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12700 make_decl_rtl, default_unique_section): Update.
12701 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12702 (c6x_elf_unique_section): Update.
12703 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12704 * config/pa/pa.c (pa_function_section): Update.
12705 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12706 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12707 * config/arc/arc.c (arc_in_small_data_p): Update.
12708 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12709 * config/mcore/mcore.c (mcore_unique_section): Update.
12710 * config/mips/mips.c (mips16_build_function_stub): Update.
12711 (mips16_build_call_stub): Update.
12712 (mips_function_rodata_section): Update.
12713 (mips_in_small_data_p): Update.
12714 * config/score/score.c (score_in_small_data_p): Update.
12715 * config/rx/rx.c (rx_in_small_data): Update.
12716 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12717 (rs6000_xcoff_asm_named_section): Update.
12718 (rs6000_xcoff_unique_section): Update.
12719 * config/frv/frv.c (frv_string_begins_with): Update.
12720 (frv_in_small_data_p): Update.
12721 * config/v850/v850.c (v850_encode_data_area): Update.
12722 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12723 (bfin_handle_l1_data_attribute): Update.
12724 (bfin_handle_l2_attribute): Update.
12725 * config/mep/mep.c (mep_unique_section): Update.
12726 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12727 Update.
12728 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12729 (h8300_handle_tiny_data_attribute): Update.
12730 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12731 (m32r_in_small_data_p): Update.
12732 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12733 * config/i386/i386.c (ix86_in_large_data_p): Update.
12734 * config/i386/winnt.c (i386_pe_unique_section): Update.
12735 * config/darwin.c (darwin_function_section): Update.
12736 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12737 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12738 (new_emutls_decl): Update.
12739 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12740 input_varpool_node): Update.
12741 (ead_string_cst): Turn to ...
12742 (read_string): ... this one.
12743 * dwarf2out.c (secname_for_decl): Update.
12744 * asan.c (asan_protect_global): Update.
12745
12746 2014-06-11 DJ Delorie <dj@redhat.com>
12747
12748 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12749 cache lines.
12750 * config/rx/rx.c (rx_option_override): Likewise.
12751 (rx_align_for_label): Likewise.
12752
12753 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12754
12755 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12756
12757 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12758 prototype.
12759
12760 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12761
12762 * common.md: New file.
12763 * doc/md.texi: Update description of generic, machine-independent
12764 constraints.
12765 * config/s390/constraints.md (e): Delete.
12766 * Makefile.in (md_file): Include common.md.
12767 * config/m32c/t-m32c (md_file): Likewise.
12768 * genpreds.c (general_mem): New array.
12769 (generic_constraint_letters): Remove constraints now defined by
12770 common.md.
12771 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12772 Allow the first character to be '<' or '>' as well.
12773 * genoutput.c (general_mem): New array.
12774 (indep_constraints): Remove constraints now defined by common.md.
12775 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12776 Remove special handling of 'm'.
12777 * ira-costs.c (record_reg_classes): Remove special handling of
12778 constraints now defined by common.md.
12779 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12780 * ira-lives.c (single_reg_class): Likewise.
12781 (ira_implicitly_set_insn_hard_regs): Likewise.
12782 * lra-constraints.c (reg_class_from_constraints): Likewise.
12783 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12784 * postreload.c (reload_cse_simplify_operands): Likewise.
12785 * reload.c (push_secondary_reload, scratch_reload_class)
12786 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12787 * reload1.c (maybe_fix_stack_asms): Likewise.
12788 * targhooks.c (default_secondary_reload): Likewise.
12789 * stmt.c (parse_output_constraint): Likewise.
12790 * recog.c (preprocess_constraints): Likewise.
12791 (constrain_operands, peep2_find_free_register): Likewise.
12792 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12793 must be handled specially.
12794
12795 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12796
12797 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12798 * genpreds.c (have_const_dbl_constraints): Delete.
12799 (add_constraint): Don't set it.
12800 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12801 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12802 constraints using the lookup_constraint logic.
12803 * ira-lives.c (single_reg_class): Likewise.
12804 * ira.c (ira_setup_alts): Likewise.
12805 * lra-constraints.c (process_alt_operands): Likewise.
12806 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12807 * reload.c (find_reloads): Likewise.
12808
12809 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12810
12811 * genpreds.c (const_int_start, const_int_end): New variables.
12812 (choose_enum_order): Output CONST_INT constraints before memory
12813 constraints.
12814 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12815 Add CT_CONST_INT.
12816 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12817 * ira.c (ira_setup_alts): Likewise.
12818 * lra-constraints.c (process_alt_operands): Likewise.
12819 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12820 * reload.c (find_reloads): Likewise.
12821
12822 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12823
12824 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12825 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12826 * recog.c (preprocess_constraints): Update accordingly.
12827
12828 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12829
12830 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12831 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12832 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12833 * genpreds.c (print_type_tree): New function.
12834 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12835 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12836 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12837 Write out enum constraint_type and get_constraint_type.
12838 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12839 constraint_num rather than a constraint string.
12840 (satisfies_address_constraint_p): Likewise.
12841 (reg_class_from_constraints): Avoid old constraint macros.
12842 (process_alt_operands, process_address_1): Likewise.
12843 (curr_insn_transform): Likewise.
12844 * ira-costs.c (record_reg_classes): Likewise.
12845 (record_operand_costs): Likewise.
12846 * ira-lives.c (single_reg_class): Likewise.
12847 (ira_implicitly_set_insn_hard_regs): Likewise.
12848 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12849 * postreload.c (reload_cse_simplify_operands): Likewise.
12850 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12851 (constrain_operands, peep2_find_free_register): Likewise.
12852 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12853 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12854 * reload1.c (maybe_fix_stack_asms): Likewise.
12855 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12856 * targhooks.c (default_secondary_reload): Likewise.
12857 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12858 to EXTRA_CONSTRAINT_STR.
12859 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12860
12861 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12862
12863 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12864 (write_constraint_satisfied_p_array): ...this new function.
12865 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12866 an array.
12867 (write_insn_preds_c): Update accordingly.
12868
12869 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12870
12871 * genpreds.c (write_lookup_constraint): Rename to...
12872 (write_lookup_constraint_1): ...this.
12873 (write_lookup_constraint_array): New function.
12874 (write_tm_preds_h): Define lookup_constraint as an inline function
12875 that uses write_lookup_constraint_array where possible.
12876 (write_insn_preds_c): Update for the changes above.
12877
12878 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12879
12880 * doc/md.texi (regclass_for_constraint): Rename to...
12881 (reg_class_for_constraint): ...this.
12882 * genpreds.c (num_constraints, enum_order, register_start)
12883 (register_end, satisfied_start, memory_start, memory_end)
12884 (address_start, address_end): New variables.
12885 (add_constraint): Count the number of constraints.
12886 (choose_enum_order): New function.
12887 (write_enum_constraint_num): Iterate over enum_order.
12888 (write_regclass_for_constraint): Rename to...
12889 (write_reg_class_for_constraint_1): ...this and update output
12890 accordingly.
12891 (write_constraint_satisfied_p): Rename to...
12892 (write_constraint_satisfied_p_1): ...this and update output
12893 accordingly. Do nothing if all extra constraints are register
12894 constraints.
12895 (write_insn_extra_memory_constraint): Delete.
12896 (write_insn_extra_address_constraint): Delete.
12897 (write_range_function): New function.
12898 (write_tm_preds_h): Define constraint_satisfied_p and
12899 reg_class_for_constraint as inline functions that do a range check
12900 before calling the out-of-line function. Use write_range_function
12901 to implement insn_extra_{register,memory,address}_constraint,
12902 the first of which is new.
12903 (write_insn_preds_c): Update after above changes to write_* functions.
12904 (main): Call choose_enum_order.
12905
12906 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12907
12908 PR tree-optimization/61306
12909 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12910 expression instead of its size.
12911 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12912 false to prevent optimization when the result is unpredictable due to
12913 arithmetic right shift of signed type with highest byte is set.
12914 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12915 (init_symbolic_number): Likewise.
12916 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12917 when the result is unpredictable due to sign extension.
12918
12919 2014-06-11 Terry Guo <terry.guo@arm.com>
12920
12921 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12922 (*thumb1_addsi3): Ditto.
12923 (*thumb_subdi3): Ditto.
12924 (thumb1_subsi3_insn): Ditto.
12925 (*thumb_mulsi3): Ditto.
12926 (*thumb_mulsi3_v6): Ditto.
12927 (*thumb1_andsi3_insn): Ditto.
12928 (thumb1_bicsi3): Ditto.
12929 (*thumb1_iorsi3_insn): Ditto.
12930 (*thumb1_xorsi3_insn): Ditto.
12931 (*thumb1_ashlsi3): Ditto.
12932 (*thumb1_ashrsi3): Ditto.
12933 (*thumb1_lshrsi3): Ditto.
12934 (*thumb1_rotrsi3): Ditto.
12935 (*thumb1_negdi2): Ditto.
12936 (*thumb1_negsi2): Ditto.
12937 (*thumb1_abssi2): Ditto.
12938 (*thumb1_neg_abssi2): Ditto.
12939 (*thumb1_one_cmplsi2): Ditto.
12940 (*thumb1_zero_extendhisi2): Ditto.
12941 (*thumb1_zero_extendqisi2): Ditto.
12942 (*thumb1_zero_extendqisi2_v6): Ditto.
12943 (thumb1_extendhisi2): Ditto.
12944 (thumb1_extendqisi2): Ditto.
12945 (*thumb1_movdi_insn): Ditto.
12946 (*thumb1_movsi_insn): Ditto.
12947 (*thumb1_movhi_insn): Ditto.
12948 (thumb_movhi_clobber): Ditto.
12949 (*thumb1_movqi_insn): Ditto.
12950 (*thumb1_movhf): Ditto.
12951 (*thumb1_movsf_insn): Ditto.
12952 (*thumb_movdf_insn): Ditto.
12953 (movmem12b): Ditto.
12954 (movmem8b): Ditto.
12955 (cbranchqi4): Ditto.
12956 (cbranchsi4_insn): Ditto.
12957 (cbranchsi4_scratch): Ditto.
12958 (*negated_cbranchsi4): Ditto.
12959 (*tbit_cbranch): Ditto.
12960 (*tlobits_cbranch): Ditto.
12961 (*tstsi3_cbranch): Ditto.
12962 (*cbranchne_decr1): Ditto.
12963 (*addsi3_cbranch): Ditto.
12964 (*addsi3_cbranch_scratch): Ditto.
12965 (*thumb_cmpdi_zero): Ditto.
12966 (cstoresi_eq0_thumb1): Ditto.
12967 (cstoresi_ne0_thumb1): Ditto.
12968 (*cstoresi_eq0_thumb1_insn): Ditto.
12969 (*cstoresi_ne0_thumb1_insn): Ditto.
12970 (cstoresi_nltu_thumb1): Ditto.
12971 (cstoresi_ltu_thumb1): Ditto.
12972 (thumb1_addsi3_addgeu): Ditto.
12973 (*thumb_jump): Ditto.
12974 (*call_reg_thumb1_v5): Ditto.
12975 (*call_reg_thumb1): Ditto.
12976 (*call_value_reg_thumb1_v5): Ditto.
12977 (*call_value_reg_thumb1): Ditto.
12978 (*call_insn): Ditto.
12979 (*call_value_insn): Ditto.
12980 (thumb1_casesi_internal_pic): Ditto.
12981 (thumb1_casesi_dispatch): Ditto.
12982 (*thumb1_indirect_jump): Ditto.
12983 (prologue_thumb1_interwork): Ditto.
12984 (*epilogue_insns): Ditto.
12985 (consttable_1): Ditto.
12986 (consttable_2): Ditto.
12987 (tablejump): Ditto.
12988 (*thumb1_tablejump): Ditto.
12989 (thumb_eh_return): Ditto.
12990 (define_peephole2): Two of them are thumb1 only and got moved into
12991 new file thumb1.md.
12992 (define_split): Six of them are thumb1 only and got moved into new
12993 file thumb1.md.
12994 * config/arm/thumb1.md: New file comprised of above thumb1 only
12995 patterns.
12996
12997 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12998
12999 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
13000 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
13001 dependencies.
13002 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
13003 (aarch64_crc_builtin_datum): New struct.
13004 (aarch64_crc_builtin_data): New.
13005 (aarch64_init_crc32_builtins): New function.
13006 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
13007 (aarch64_crc32_expand_builtin): New.
13008 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
13009 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13010 __ARM_FEATURE_CRC32 when appropriate.
13011 (TARGET_CRC32): Define.
13012 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
13013 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
13014 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
13015 (aarch64_<crc_variant>): New pattern.
13016 * config/aarch64/arm_acle.h: New file.
13017 * config/aarch64/iterators.md (CRC): New int iterator.
13018 (crc_variant, crc_mode): New int attributes.
13019 * doc/aarch64-acle-intrinsics.texi: New file.
13020 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
13021 Include aarch64-acle-intrinsics.texi.
13022
13023 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
13024
13025 * tree-vect-data-refs.c (vect_grouped_store_supported): New
13026 check for stores group of length 3.
13027 (vect_permute_store_chain): New permutations for stores group of
13028 length 3.
13029 * tree-vect-stmts.c (vect_model_store_cost): Change cost
13030 of vec_perm_shuffle for the new permutations.
13031
13032 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13033
13034 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
13035 table rewriting temporarily on targets not supporting ONE_ONLY.
13036
13037 2014-06-11 Richard Biener <rguenther@suse.de>
13038
13039 PR middle-end/61437
13040 Revert
13041 2014-06-04 Richard Biener <rguenther@suse.de>
13042
13043 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13044 TREE_PUBLIC and DECL_EXTERNAL decls.
13045
13046 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13047
13048 * varasm.c (set_implicit_section): New function.
13049 (resolve_unique_section): Use it to set implicit section
13050 for aliases, too.
13051 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
13052 (default_function_section): Likewise.
13053 (decl_binds_to_current_def_p): Constify argument.
13054 * varasm.h (decl_binds_to_current_def_p): Update prototype.
13055 * asan.c (asan_protect_global): Use
13056 symtab_get_node (decl)->implicit_section.
13057 * symtab.c (dump_symtab_base): Dump implicit sections.
13058 (verify_symtab_base): Verify sanity of sectoins and comdats.
13059 (symtab_resolve_alias): Alias share the section of its target.
13060 (set_section_1): New function.
13061 (symtab_node::set_section): Move here, recurse to aliases.
13062 (verify_symtab): Check for duplicated symtab lists.
13063 * tree-core.h (implicit_section_name_p): Remove.
13064 * tree-vect-data-refs.c: Include varasm.h.
13065 (vect_can_force_dr_alignment_p): Fix conditional on when
13066 decl bints to current definition; use
13067 symtab_get_node (decl)->implicit_section.
13068 * cgraph.c (cgraph_make_node_local_1): Fix section set.
13069 * cgraph.h (struct symtab_node): Add implicit_section.
13070 (set_section): Rename to ...
13071 (set_section_for_node): ... this one.
13072 (set_section): Declare.
13073 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
13074 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
13075 input_overwrite_node, input_varpool_node): Stream implicit_section.
13076 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
13077 removal; it will fail in LTO.
13078
13079 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13080
13081 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
13082 Change second alternative type to f_mcr.
13083 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
13084 and 12th alternatives' types to f_mcr and f_mrc.
13085 (*movdi_aarch64): Same for 12th and 13th alternatives.
13086 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
13087 (aarch64_movtilow_tilow): Change type to fmov.
13088
13089 2014-06-10 Jiong Wang <jiong.wang@arm.com>
13090
13091 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
13092 (aarch64_save_or_restore_callee_save_registers): Fix layout.
13093
13094 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13095
13096 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
13097 New expander.
13098 (aarch64_sqrdmulh_lane<mode>): Likewise.
13099 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13100 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13101 (aarch64_sqdmulh_laneq<mode>): New expander.
13102 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13103 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
13104 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
13105 (aarch64_sqdmulh_lane<mode>): New expander.
13106 (aarch64_sqrdmulh_lane<mode>): Likewise.
13107 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13108 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13109 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
13110 (aarch64_sqdmlal_laneq<mode>): Likewise.
13111 (aarch64_sqdmlsl_lane<mode>): Likewise.
13112 (aarch64_sqdmlsl_laneq<mode>): Likewise.
13113 (aarch64_sqdmlal2_lane<mode>): Likewise.
13114 (aarch64_sqdmlal2_laneq<mode>): Likewise.
13115 (aarch64_sqdmlsl2_lane<mode>): Likewise.
13116 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13117 (aarch64_sqdmull_lane<mode>): Likewise.
13118 (aarch64_sqdmull_laneq<mode>): Likewise.
13119 (aarch64_sqdmull2_lane<mode>): Likewise.
13120 (aarch64_sqdmull2_laneq<mode>): Likewise.
13121
13122 2014-06-10 Richard Biener <rguenther@suse.de>
13123
13124 PR tree-optimization/61438
13125 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
13126 (eliminate_dom_walker::before_dom_children): Only try to inhibit
13127 insertion of IVs if running PRE.
13128 (eliminate): Adjust.
13129 (pass_pre::execute): Likewise.
13130 (pass_fre::execute): Likewise.
13131
13132 2014-06-10 Richard Biener <rguenther@suse.de>
13133
13134 PR middle-end/61456
13135 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
13136 Do not use the main variant for the type comparison.
13137 (ncr_compar): Likewise.
13138 (nonoverlapping_component_refs_p): Likewise.
13139
13140 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
13141
13142 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
13143 REG_CFA_RESTORE mode.
13144
13145 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
13146
13147 * config/i386/i386.c (expand_vec_perm_pblendv): New.
13148 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
13149 expand_vec_perm_pblendv.
13150
13151 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13152
13153 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
13154 available.
13155 Simplify description of __crc32d and __crc32cd intrinsics.
13156 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
13157 availability.
13158
13159 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
13160
13161 PR lto/61334
13162 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
13163 * config.in: Regenerate.
13164 * configure: Likewise.
13165
13166 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13167
13168 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
13169 and public vars.
13170 (intersect_static_var_sets): Remove.
13171 (propagate): Do not prune local statics.
13172
13173 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13174
13175 PR fortran/60928
13176 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
13177 Set lastprivate_firstprivate even if omp_private_outer_ref
13178 langhook returns true.
13179 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
13180 langhook, call unshare_expr on new_var and call
13181 build_outer_var_ref to get the last argument.
13182
13183 2014-06-10 Marek Polacek <polacek@redhat.com>
13184
13185 PR c/60988
13186 * doc/extend.texi: Add cindex for transparent_union.
13187
13188 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
13189
13190 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
13191 init_symbolic_number ().
13192
13193 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
13194
13195 PR middle-end/61141
13196 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
13197 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13198 (verify_rtl_sharing): Likewise.
13199
13200 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13201
13202 PR c++/54442
13203 * tree.c (build_qualified_type): Use a canonical type for
13204 TYPE_CANONICAL.
13205
13206 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13207
13208 * config/arm/arm-modes.def: Remove XFmode.
13209
13210 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13211
13212 PR target/61062
13213 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13214 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13215 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13216 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13217 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13218 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13219 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13220 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13221 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13222
13223 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13224
13225 * tree-core.h (tree_decl_with_vis): Remove section_name.
13226
13227 2014-06-09 Kito Cheng <kito@0xlab.org>
13228
13229 * ira.c (ira): Don't call init_caller_save if LRA enabled
13230 since LRA use its own infrastructure to handle that.
13231
13232 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13233
13234 * symtab.c (dump_symtab_base): Update dumping.
13235 (symtab_make_decl_local): Clear only DECL_COMDAT.
13236 * tree-vect-data-refs.c (Check that variable is static before
13237 tampering with sections.
13238 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13239 (cgraph_create_virtual_clone): Likewise.
13240 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13241 (decl_section_name, set_decl_section_name): New accessors.
13242 (find_decls_types_r): Do not walk section name
13243 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13244 (decl_comdat_group, decl_comdat_group_id): Constify.
13245 (decl_section_name, set_decl_section_name): Update.
13246 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13247 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13248 (cgraph_make_node_local_1): Clear section and comdat group.
13249 * cgraph.h (set_comdat_group): Sanity check.
13250 (get_section, set_section): New.
13251 * ipa-comdats.c (ipa_comdats): Use get_section.
13252 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13253 * lto-streamer-out.c: Do not follow section names.
13254 * c-family/c-common.c (handle_section_attribute): Update.
13255 * lto-cgraph.c (lto_output_node): Output section.
13256 (lto_output_varpool_node): Likewise.
13257 (read_comdat_group): Rename to ...
13258 (read_identifier): ... this one.
13259 (read_string_cst): New function.
13260 (input_node, input_varpool_node): Input section names.
13261 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13262 (new_emutls_decl): Update.
13263 (secname_for_decl): Check section names only of static vars.
13264 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13265 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13266 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13267 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13268 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13269 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13270 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13271 * config/v850/v850.c (v850_insert_attributes): Likewise.
13272 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13273 Likewise.
13274 (h8300_handle_tiny_data_attribute): Likewise.
13275 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13276 (bfin_handle_l2_attribute): Likewise.
13277
13278 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13279
13280 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13281 remove static initializer.
13282
13283 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13284
13285 * varasm.c (use_blocks_for_decl_p): Check symbol table
13286 instead of alias attribute.
13287 (place_block_symbol): Recurse on aliases.
13288
13289 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13290
13291 * ipa-visibility.c: Include varasm.h
13292 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13293
13294 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13295
13296 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13297 outputting aliases.
13298
13299 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13300
13301 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13302 from test_insn into GGC space escape via SET_SRC.
13303
13304 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13305
13306 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13307 call statement, if any.
13308 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13309 statements, if any. Tidy up.
13310
13311 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13312
13313 PR target/61431
13314 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13315 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13316 handles swapping the two 64-bit double words on little endian
13317 systems. Include V1TImode and optionally TImode in VSX_LE so that
13318 these types are properly swapped. Change all of the insns and
13319 splits that do the 64-bit swaps to use VSX_LE.
13320 (vsx_le_perm_load_<mode>): Likewise.
13321 (vsx_le_perm_store_<mode>): Likewise.
13322 (splitters for little endian memory operations): Likewise.
13323 (vsx_xxpermdi2_le_<mode>): Likewise.
13324 (vsx_lxvd2x2_le_<mode>): Likewise.
13325 (vsx_stxvd2x2_le_<mode>): Likewise.
13326
13327 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13328
13329 PR target/61423
13330 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13331 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13332 and corresponding splitters. Zero extend general register
13333 or memory input operand to XMM temporary. Enable for
13334 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13335 (floatunssi<mode>2): Update expander predicate.
13336
13337 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13338
13339 PR rtl-optimization/61325
13340 * lra-constraints.c (process_address_1): Check scale equal to one
13341 to prevent transformation: base + scale * index => base + new_reg.
13342
13343 2014-06-06 Richard Biener <rguenther@suse.de>
13344
13345 PR tree-optimization/59299
13346 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13347 a def operand.
13348 (nearest_common_dominator_of_uses): Likewise.
13349 (statement_sink_location): Adjust. Support sinking loads.
13350
13351 2014-06-06 Martin Jambor <mjambor@suse.cz>
13352
13353 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13354 (build_agg_jump_func_from_list): Likewise.
13355 (determine_known_aggregate_parts): Renamed to
13356 determine_locally_known_aggregate_parts. Moved some functionality
13357 to the two functions above, removed bound checks.
13358
13359 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13360
13361 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13362 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13363 (aarch64_progress_pointer): Likewise.
13364 (aarch64_copy_one_part_and_move_pointers): Likewise.
13365 (aarch64_expand_movmen): Likewise.
13366 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13367 * config/aarch64/aarch64.md (movmem<mode>): New.
13368
13369 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13370
13371 * targhooks.c (default_add_stmt_cost): Call target specific
13372 hook instead of default one.
13373
13374 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13375
13376 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13377 endianness instead of host endianness.
13378 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13379 comments.
13380
13381 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13382
13383 PR debug/53927
13384 * function.c (instantiate_decls): Process the saved static chain.
13385 (expand_function_start): If not optimizing, save the static chain
13386 onto the stack.
13387 * tree-nested.c (convert_all_function_calls): Always create the static
13388 chain for nested functions if not optimizing.
13389
13390 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13391
13392 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13393
13394 2014-06-06 Richard Biener <rguenther@suse.de>
13395
13396 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13397 (construct_init_block): Likewise.
13398 (construct_exit_block): Likewise.
13399 (pass_expand::execute): Likewise.
13400 * graphite.c (graphite_transforms): Replace check for current_loops
13401 with a check for > 1 loops.
13402 (pass_graphite_transforms::execute): Adjust.
13403 * ipa-split.c (split_function): Remove check for current_loops.
13404 * omp-low.c (expand_parallel_call): Likewise.
13405 (expand_omp_for_init_counts): Likewise.
13406 (extract_omp_for_update_vars): Likewise.
13407 (expand_omp_for_generic): Likewise.
13408 (expand_omp_sections): Likewise.
13409 (expand_omp_target): Likewise.
13410 * tracer.c (tail_duplicate): Likewise.
13411 (pass_tracer::execute): Likewise.
13412 * trans-mem.c (expand_transaction): Likewise.
13413 * tree-complex.c (expand_complex_div_wide): Likewise.
13414 * tree-eh.c (lower_resx): Likewise.
13415 (cleanup_empty_eh_merge_phis): Likewise.
13416 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13417 current_loops with a check for > 1 loops.
13418 (pass_predcom::execute): Adjust.
13419 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13420 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13421 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13422 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13423 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13424 * tree-switch-conversion.c (process_switch): Likewise.
13425 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13426 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13427 (execute_vrp): Likewise.
13428 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13429
13430 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13431
13432 * rtl.h (insn_location): Declare.
13433 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13434 with UNKNOWN_LOCATION.
13435 * emit-rtl.c (insn_location): New function.
13436 * final.c (notice_source_line): Check that the instruction has a
13437 location before retrieving it and use insn_location.
13438 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13439 * print-rtl.c (print_rtx): Likewise.
13440
13441 2014-06-06 Richard Biener <rguenther@suse.de>
13442
13443 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13444
13445 2014-06-06 Christian Bruel <christian.bruel@st.com>
13446
13447 PR tree-optimization/43934
13448 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13449 cost.
13450
13451 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13452
13453 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13454 return NO_REGS for extra address and memory constraints. Handle
13455 operands that match (or are equivalent to something that matches)
13456 extra constant constraints. Ignore other non-register operands.
13457
13458 2014-06-06 Alan Modra <amodra@gmail.com>
13459
13460 PR target/61300
13461 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13462 * doc/tm.texi: Regenerate.
13463 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13464 Use throughout in place of REG_PARM_STACK_SPACE.
13465 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13466 "incoming" param. Pass to rs6000_function_parms_need_stack.
13467 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13468 prototype_p when incoming. Use function decl when incoming
13469 to handle K&R style functions.
13470 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13471 (INCOMING_REG_PARM_STACK_SPACE): Define.
13472
13473 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13474
13475 PR target/52472
13476 * cfgexpand.c (expand_debug_expr): Use address space of nested
13477 TREE_TYPE for ADDR_EXPR and MEM_REF.
13478
13479 2014-06-05 Jeff Law <law@redhat.com>
13480
13481 PR tree-optimization/61289
13482 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13483 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13484 looking for those which match LHS. All callers changed.
13485 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13486 parameters and code which manipulated them. All callers changed.
13487 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13488 and DST_MAP parameters. Simplify invalidation code by just calling
13489 invalidate_equivalences. All callers changed.
13490 (thread_across_edge): Simplify now that we don't need to maintain
13491 the map of equivalences to invalidate.
13492
13493 2014-06-05 Kai Tietz <ktietz@redhat.com>
13494 Richard Henderson <rth@redhat.com>
13495
13496 PR target/46219
13497 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13498 checking for !TARGET_X32.
13499 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13500 (sibcall_intern): New define_insn, plus required peepholes.
13501 (sibcall_pop_intern): Likewise.
13502 (sibcall_value_intern): Likewise.
13503 (sibcall_value_pop_intern): Likewise.
13504
13505 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13506
13507 * tree-inline.c (tree_function_versioning): Check DF info existence
13508 before accessing it.
13509
13510 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13511
13512 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13513 frame_size.
13514 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13515 aarch64_frame hard_fp_offset and frame_size.
13516 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13517 frame_size; remove original_frame_size.
13518 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13519 (aarch64_initial_elimination_offset): Remove frame_size and
13520 offset. Use aarch64_frame frame_size.
13521
13522 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13523 Jiong Wang <jiong.wang@arm.com>
13524 Renlin <renlin.li@arm.com>
13525
13526 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13527 initialization of R30 offset. Update offset. Iterate core
13528 regisers upto X30. Remove X29, X30 specific code.
13529
13530 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13531 Jiong Wang <jiong.wang@arm.com>
13532
13533 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13534 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13535 (aarch64_register_saved_on_entry): Adjust test.
13536
13537 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13538
13539 * config/aarch64/aarch64.h (machine_function): Move
13540 saved_varargs_size from here...
13541 (aarch64_frame): ... to here.
13542
13543 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13544 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13545 (aarch64_initial_elimination_offset)
13546 (aarch64_setup_incoming_varargs): Adjust location of
13547 saved_varargs_size.
13548
13549 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13550
13551 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13552 layout comment.
13553
13554 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13555 Prachi Godbole <Prachi.Godbole@imgtec.com>
13556
13557 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13558 mips32r5 entry to use PROCESSOR_P5600.
13559 * config/mips/mips-tables.opt: Regenerate.
13560 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13561 * config/mips/mips.c (mips_fmadd_bypass): New function.
13562 (mips_rtx_cost_data): Add costs for p5600.
13563 (mips_issue_rate): Add support for p5600.
13564 (mips_multipass_dfa_lookahead): Likewise.
13565 * config/mips/mips.h (TUNE_P5600): New define.
13566 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13567 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13568 * config/mips/mips.md: Include p5600.md.
13569 (processor): Add p5600.
13570 * config/mips/p5600.md: New file.
13571
13572 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13573
13574 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13575 * config/i386/predicates.md (palignr_operand): New.
13576 Indicates if permutation is suitable for palignr instruction.
13577
13578 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13579
13580 PR tree-optimization/61319
13581 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13582 stmt belongs to loop.
13583
13584 2014-06-05 Richard Biener <rguenther@suse.de>
13585
13586 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13587 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13588 (lookup_tmp_var): Adjust.
13589 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13590
13591 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13592
13593 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13594
13595 2014-06-05 Marek Polacek <polacek@redhat.com>
13596
13597 PR c/49706
13598 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13599
13600 2014-06-04 Tom de Vries <tom@codesourcery.com>
13601
13602 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13603 CONST_INT.
13604
13605 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13606
13607 PR tree-optimization/61385
13608 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13609
13610 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13611
13612 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13613 changed to use fatal_error.
13614 (main): Ensure lto_wrapper_cleanup is run atexit.
13615
13616 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13617
13618 * lra-constraints.c (valid_address_p): Move earlier in file.
13619 (address_eliminator): New structure.
13620 (satisfies_memory_constraint_p): New function.
13621 (satisfies_address_constraint_p): Likewise.
13622 (process_alt_operands, process_address, curr_insn_transform): Use them.
13623
13624 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13625
13626 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13627 const pointer.
13628 (target_lra_int, default_target_lra_int, this_target_lra_int)
13629 (op_alt_data): Delete.
13630 * lra.h (lra_init): Delete.
13631 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13632 (init_insn_code_data_once): Remove op_alt_data handling.
13633 (finish_insn_code_data_once): Likewise.
13634 (init_op_alt_data): Delete.
13635 (get_static_insn_data): Initialize operand_alternative to null.
13636 (free_insn_recog_data): Cast operand_alternative before freeing it.
13637 (setup_operand_alternative): Take the operand_alternative as
13638 parameter and assume it isn't already cached in the static
13639 insn data.
13640 (lra_set_insn_recog_data): Update accordingly.
13641 (lra_init): Delete.
13642 * ira.c (ira_init): Don't call lra_init.
13643 * target-globals.h (this_target_lra_int): Declare.
13644 (target_globals): Remove lra_int.
13645 (restore_target_globals): Update accordingly.
13646 * target-globals.c: Don't include lra-int.h.
13647 (default_target_globals, save_target_globals): Remove lra_int.
13648
13649 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13650
13651 * recog.h (operand_alternative): Convert reg_class, reject,
13652 matched and matches into bitfields.
13653 (preprocess_constraints): New overload.
13654 (preprocess_insn_constraints): New function.
13655 (preprocess_constraints): Take the insn as parameter.
13656 (recog_op_alt): Change into a pointer.
13657 (target_recog): Add x_op_alt.
13658 * recog.c (asm_op_alt): New variable.
13659 (recog_op_alt): Change into a pointer.
13660 (preprocess_constraints): New overload, replacing the old function
13661 definition with one that doesn't use global state.
13662 (preprocess_insn_constraints): New function.
13663 (preprocess_constraints): Use them. Take the insn as parameter.
13664 Use asm_op_alt for asms.
13665 (recog_init): Free existing x_op_alt entries.
13666 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13667 pointer const.
13668 (make_early_clobber_and_input_conflicts): Likewise.
13669 (process_bb_node_lives): Pass the insn to process_constraints.
13670 * reg-stack.c (check_asm_stack_operands): Likewise.
13671 (subst_asm_stack_regs): Likewise.
13672 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13673 * regrename.c (build_def_use): Likewise.
13674 * sched-deps.c (sched_analyze_insn): Likewise.
13675 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13676 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13677 (note_invalid_constants): Likewise.
13678 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13679 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13680 const.
13681
13682 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13683
13684 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13685 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13686 alternatives.
13687 (make_early_clobber_and_input_conflicts): Likewise.
13688 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13689
13690 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13691
13692 * recog.h (alternative_class): New function.
13693 (which_op_alt): Return a const recog_op_alt.
13694 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13695 (subst_asm_stack_regs): Likewise.
13696 * config/arm/arm.c (note_invalid_constants): Likewise.
13697 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13698 the operand_alternative; use alternative class instead.
13699 * sel-sched.c (get_reg_class): Likewise.
13700 * regrename.c (build_def_use): Likewise.
13701 (hide_operands, restore_operands, record_out_operands): Update type
13702 accordingly.
13703
13704 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13705
13706 * recog.h (recog_op_alt): Convert to a flat array.
13707 (which_op_alt): New function.
13708 * recog.c (recog_op_alt): Convert to a flat array.
13709 (preprocess_constraints): Update accordingly, grouping all
13710 operands of the same alternative together, rather than the
13711 other way around.
13712 * ira-lives.c (check_and_make_def_conflict): Likewise.
13713 (make_early_clobber_and_input_conflicts): Likewise.
13714 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13715 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13716 (subst_asm_stack_regs): Likewise.
13717 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13718 * regrename.c (hide_operands, record_out_operands): Likewise.
13719 (build_def_use): Likewise.
13720 * sel-sched.c (get_reg_class): Likewise.
13721 * config/arm/arm.c (note_invalid_constants): Likewise.
13722
13723 2014-06-04 Jason Merrill <jason@redhat.com>
13724
13725 PR c++/51253
13726 PR c++/61382
13727 * gimplify.c (gimplify_arg): Non-static.
13728 * gimplify.h: Declare it.
13729
13730 2014-06-04 Richard Biener <rguenther@suse.de>
13731
13732 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13733 TREE_PUBLIC and DECL_EXTERNAL decls.
13734
13735 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13736
13737 * regcprop.c (copyprop_hardreg_forward_1): Account for
13738 HARD_REGNO_CALL_PART_CLOBBERED.
13739
13740 2014-06-04 Richard Biener <rguenther@suse.de>
13741
13742 * configure.ac: Check whether the underlying type of int64_t
13743 is long or long long.
13744 * configure: Regenerate.
13745 * config.in: Likewise.
13746 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13747 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13748
13749 2014-06-04 Richard Biener <rguenther@suse.de>
13750
13751 PR tree-optimization/60098
13752 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13753 we hit a kill.
13754 (dse_optimize_stmt): Simplify, now that we found a kill
13755 earlier.
13756
13757 2014-06-04 Richard Biener <rguenther@suse.de>
13758
13759 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13760 of accesses with non-invariant address.
13761
13762 2014-06-04 Martin Liska <mliska@suse.cz>
13763
13764 * cgraph.h (cgraph_make_wrapper): New function introduced.
13765 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13766 * ipa-inline.h (inline_analyze_function): The function is global.
13767 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13768
13769 2014-06-04 Martin Liska <mliska@suse.cz>
13770
13771 * tree.h (private_lookup_attribute_starting): New function.
13772 (lookup_attribute_starting): Likewise.
13773 * tree.c (private_lookup_attribute_starting): Likewise.
13774
13775 2014-06-04 Martin Liska <mliska@suse.cz>
13776
13777 * cgraph.h (expand_thunk): New argument added.
13778 (address_taken_from_non_vtable_p): New global function.
13779 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13780 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13781 * cgraphunit.c (analyze_function): Likewise.
13782 (assemble_thunks_and_aliases): Argument added to call.
13783 (expand_thunk): New argument forces to produce GIMPLE thunk.
13784
13785 2014-06-04 Martin Liska <mliska@suse.cz>
13786
13787 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13788 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13789 * profile.c (branch_prob): Likewise.
13790
13791 2014-06-04 Martin Jambor <mjambor@suse.cz>
13792
13793 PR ipa/61340
13794 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13795 handler for switch on an ipa_ref_use enum.
13796 * ipa-reference.c (analyze_function): Likewise.
13797
13798 2014-06-04 Kai Tietz <ktietz@redhat.com>
13799
13800 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13801 from old call-instruction.
13802
13803 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13804
13805 * config/aarch64/aarch64.c (aarch64_classify_address)
13806 (aarch64_legitimize_reload_address): Support full addressing modes
13807 for vector modes.
13808 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13809 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13810
13811 2014-06-03 Andrew Pinski <apinski@cavium.com>
13812
13813 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13814 for OP0.
13815
13816 2014-06-03 Andrew Pinski <apinski@cavium.com>
13817
13818 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13819 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13820
13821 2014-06-03 Kai Tietz <ktietz@redhat.com>
13822
13823 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13824 for 64-bit ms-abi.
13825
13826 2014-06-03 Dehao Chen <dehao@google.com>
13827
13828 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13829 the same loop.
13830
13831 2014-06-03 Marek Polacek <polacek@redhat.com>
13832
13833 PR c/60439
13834 * doc/invoke.texi: Document -Wswitch-bool.
13835 * function.c (stack_protect_epilogue): Cast controlling expression of
13836 the switch to int.
13837 * gengtype.c (walk_type): Generate switch expression with its
13838 controlling expression cast to int.
13839
13840 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13841
13842 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13843 and attiny841.
13844 * config/avr/avr-tables.opt: Regenerate.
13845 * config/avr/t-multilib: Regenerate.
13846 * doc/avr-mmcu.texi: Regenerate.
13847
13848 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13849 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13850
13851 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13852 (ata6617c, ata664251): Add new avr35 devices.
13853 (ata6612c): Add new avr4 device.
13854 (ata6613c, ata6614q): Add new avr5 devices.
13855 * config/avr/avr-tables.opt: Regenerate.
13856 * config/avr/t-multilib: Regenerate.
13857 * doc/avr-mmcu.texi: Regenerate.
13858
13859 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13860
13861 * gcc/config/aarch64/aarch64-builtins.c
13862 (aarch64_types_binop_ssu_qualifiers): New static data.
13863 (TYPES_BINOP_SSU): Define.
13864 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13865 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13866 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13867 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13868 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13869 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13870 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13871 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13872 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13873 suffix to builtin function name, remove cast.
13874 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13875 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13876 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13877
13878 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13879
13880 * gcc/config/aarch64/aarch64-builtins.c
13881 (aarch64_types_binop_uus_qualifiers,
13882 aarch64_types_shift_to_unsigned_qualifiers,
13883 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13884 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13885 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13886 sqshlu_n, uqshl_n): Update qualifiers.
13887 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13888 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13889 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13890 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13891 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13892 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13893 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13894 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13895 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13896 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13897 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13898 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13899 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13900 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13901 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13902 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13903 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13904 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13905 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13906 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13907 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13908 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13909 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13910 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13911 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13912 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13913 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13914
13915 2014-06-03 Teresa Johnson <tejohnson@google.com>
13916
13917 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13918
13919 2014-06-02 Jason Merrill <jason@redhat.com>
13920
13921 PR c++/61020
13922 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13923
13924 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13925
13926 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13927 location == 0.
13928
13929 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13930
13931 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13932 New pattern.
13933 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13934 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13935 * config/aarch64/iterators.md (REVERSE): New iterator.
13936 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13937 (rev_op): New int_attribute.
13938 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13939 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13940 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13941 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13942 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13943 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13944 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13945 Replace temporary __asm__ with __builtin_shuffle.
13946
13947 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13948
13949 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13950 mips64r5.
13951 * config/mips/mips-tables.opt: Regenerate.
13952 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13953 to use mips_isa_rev rather than ISA_MIPS32R2.
13954 * config/mips/mips.h (ISA_MIPS32R3): New define.
13955 (ISA_MIPS32R5): New define.
13956 (ISA_MIPS64R3): New define.
13957 (ISA_MIPS64R5): New define.
13958 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13959 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13960 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13961 and mips64r5.
13962 (MIPS_ISA_SYNCI_SPEC): Likewise.
13963 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13964 (LINK_SPEC): Added mips32r3 and mips32r5.
13965 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13966 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13967 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13968 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13969 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13970 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13971 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13972
13973 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13974
13975 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13976 options.
13977 * config/mips/mips.opt (mxpa): New option.
13978 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13979 assembler.
13980
13981 2014-06-03 Martin Jambor <mjambor@suse.cz>
13982
13983 PR ipa/61160
13984 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13985 thunks.
13986
13987 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13988
13989 PR tree-optimization/61328
13990 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13991 initialization from find_bswap_or_nop_1.
13992 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13993 in source_expr2 before using the size value the function sets. Also
13994 make use of init_symbolic_number () in both the old place and
13995 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13996 doing recursion in the GIMPLE_BINARY_RHS case.
13997
13998 2014-06-03 Richard Biener <rguenther@suse.de>
13999
14000 PR tree-optimization/61383
14001 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
14002 stmts can't trap.
14003
14004 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
14005
14006 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
14007 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
14008 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
14009 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
14010 in this file.
14011 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
14012 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
14013 * system.h: ...here and make it unconditional.
14014 * target.def (conditional_register_usage): Mention
14015 define_register_constraint instead of old-style constraint macros.
14016 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
14017 * doc/tm.texi: Regenerate.
14018 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
14019 protected by !USE_MD_CONSTRAINTS.
14020 * config/frv/frv.md: Remove quote from old version of documentation.
14021 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
14022 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
14023 CONST_DOUBLE_OK_FOR_LETTER.
14024 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
14025
14026 2014-06-02 Andrew Pinski <apinski@cavium.com>
14027
14028 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
14029 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
14030 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
14031 file whose name depends on -mabi= and -mbig-endian.
14032 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
14033 Handle LP64 better and handle ilp32 too.
14034 (MULTILIB_OPTIONS): Delete.
14035 (MULTILIB_DIRNAMES): Delete.
14036
14037 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
14038
14039 * expr.h: Remove prototypes of functions defined in builtins.c.
14040 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
14041 Remove prototypes of functions defined in builtins.c.
14042 * builtins.h: Update prototype list to include all exported functions.
14043 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
14044 no_c99_libc_has_function): Move to targhooks.c
14045 (build_string_literal, build_call_expr_loc_array,
14046 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
14047 to tree.c.
14048 (expand_builtin_object_size, fold_builtin_object_size): Make static.
14049 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
14050 no_c99_libc_has_function): Relocate from builtins.c.
14051 * tree.c: Include builtins.h.
14052 (build_call_expr_loc_array, build_call_expr_loc_vec,
14053 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
14054 from builtins.c.
14055 * fold-const.h (fold_fma): Move prototype to builtins.h.
14056 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
14057 * asan.c: Include builtins.h.
14058 * cfgexpand.c: Likewise.
14059 * convert.c: Likewise.
14060 * emit-rtl.c: Likewise.
14061 * except.c: Likewise.
14062 * expr.c: Likewise.
14063 * fold-const.c: Likewise.
14064 * gimple-fold.c: Likewise.
14065 * gimple-ssa-strength-reduction.c: Likewise.
14066 * gimplify.c: Likewise.
14067 * ipa-inline.c: Likewise.
14068 * ipa-prop.c: Likewise.
14069 * lto-streamer-out.c: Likewise.
14070 * stmt.c: Likewise.
14071 * tree-inline.c: Likewise.
14072 * tree-object-size.c: Likewise.
14073 * tree-sra.c: Likewise.
14074 * tree-ssa-ccp.c: Likewise.
14075 * tree-ssa-forwprop.c: Likewise.
14076 * tree-ssa-loop-ivcanon.c: Likewise.
14077 * tree-ssa-loop-ivopts.c: Likewise.
14078 * tree-ssa-math-opts.c: Likewise.
14079 * tree-ssa-reassoc.c: Likewise.
14080 * tree-ssa-threadedge.c: Likewise.
14081 * tree-streamer-in.c: Likewise.
14082 * tree-vect-data-refs.c: Likewise.
14083 * tree-vect-patterns.c: Likewise.
14084 * tree-vect-stmts.c: Likewise.
14085 * config/aarch64/aarch64.c: Likewise.
14086 * config/alpha/alpha.c: Likewise.
14087 * config/arc/arc.c: Likewise.
14088 * config/arm/arm.c: Likewise.
14089 * config/avr/avr.c: Likewise.
14090 * config/bfin/bfin.c: Likewise.
14091 * config/c6x/c6x.c: Likewise.
14092 * config/cr16/cr16.c: Likewise.
14093 * config/cris/cris.c: Likewise.
14094 * config/epiphany/epiphany.c: Likewise.
14095 * config/fr30/fr30.c: Likewise.
14096 * config/frv/frv.c: Likewise.
14097 * config/h8300/h8300.c: Likewise.
14098 * config/i386/i386.c: Likewise.
14099 * config/i386/winnt.c: Likewise.
14100 * config/ia64/ia64.c: Likewise.
14101 * config/iq2000/iq2000.c: Likewise.
14102 * config/lm32/lm32.c: Likewise.
14103 * config/m32c/m32c.c: Likewise.
14104 * config/m32r/m32r.c: Likewise.
14105 * config/m68k/m68k.c: Likewise.
14106 * config/mcore/mcore.c: Likewise.
14107 * config/mep/mep.c: Likewise.
14108 * config/microblaze/microblaze.c: Likewise.
14109 * config/mips/mips.c: Likewise.
14110 * config/mmix/mmix.c: Likewise.
14111 * config/mn10300/mn10300.c: Likewise.
14112 * config/moxie/moxie.c: Likewise.
14113 * config/msp430/msp430.c: Likewise.
14114 * config/nds32/nds32.c: Likewise.
14115 * config/pa/pa.c: Likewise.
14116 * config/pdp11/pdp11.c: Likewise.
14117 * config/picochip/picochip.c: Likewise.
14118 * config/rl78/rl78.c: Likewise.
14119 * config/rs6000/rs6000.c: Likewise.
14120 * config/rx/rx.c: Likewise.
14121 * config/s390/s390.c: Likewise.
14122 * config/score/score.c: Likewise.
14123 * config/sh/sh.c: Likewise.
14124 * config/sparc/sparc.c: Likewise.
14125 * config/spu/spu.c: Likewise.
14126 * config/stormy16/stormy16.c: Likewise.
14127 * config/tilegx/tilegx.c: Likewise.
14128 * config/tilepro/tilepro.c: Likewise.
14129 * config/v850/v850.c: Likewise.
14130 * config/vax/vax.c: Likewise.
14131 * config/xtensa/xtensa.c: Likewise.
14132
14133 2014-06-02 Jeff Law <law@redhat.com>
14134
14135 PR rtl-optimization/61094
14136 * ree.c (combine_reaching_defs): Do not reextend an insn if it
14137 was marked as do_no_reextend. If a copy is needed to eliminate
14138 an extension, then mark it as do_not_reextend.
14139
14140 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
14141
14142 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
14143
14144 2014-06-02 Richard Henderson <rth@redhat.com>
14145
14146 PR target/61336
14147 * config/alpha/alpha.c (print_operand_address): Allow symbolic
14148 addresses inside asms. Use output_operand_lossage instead of
14149 gcc_unreachable.
14150
14151 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
14152
14153 PR target/61239
14154 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
14155 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
14156
14157 2014-06-02 Tom de Vries <tom@codesourcery.com>
14158
14159 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
14160 case that x has VOIDmode.
14161
14162 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
14163
14164 * varasm.c (copy_constant): Delete function.
14165 (build_constant_desc): Don't call it.
14166
14167 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14168
14169 PR target/61154
14170 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
14171 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
14172 with immediate_operand.
14173
14174 2014-06-02 Andreas Schwab <schwab@suse.de>
14175
14176 * config/ia64/ia64.c
14177 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
14178 pending_data_specs first.
14179
14180 2014-06-02 Richard Biener <rguenther@suse.de>
14181
14182 PR tree-optimization/61378
14183 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
14184 valueized_anything.
14185
14186 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
14187
14188 * config/i386/constraints.md (Bw): Rename from 'w'.
14189 (Bz): Rename from 'z'.
14190 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
14191
14192 2014-06-01 Kai Tietz <ktietz@redhat.com>
14193
14194 PR target/61377
14195 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
14196 * config/i386/i386.md (sibcall_insn_operand): Use Bs
14197 instead of m constraint.
14198
14199 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14200
14201 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14202 a separate alternative where the scratch operand 2 is marked as
14203 early clobber.
14204
14205 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14206
14207 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14208 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14209 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14210 and __builtins_arm_get_fpscr.
14211 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14212 __builtins_arm_get_fpscr.
14213 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14214 __builtins_arm_ldfpscr.
14215 (arm_atomic_assign_expand_fenv): New function.
14216 * config/arm/vfp.md (set_fpscr): New pattern.
14217 (get_fpscr) : Likewise.
14218 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14219 VUNSPEC_SET_FPSCR.
14220 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14221 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14222
14223 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14224
14225 * asan.c (report_error_func): Add SLOW_P argument, use
14226 BUILT_IN_ASAN_*_N if set.
14227 (build_check_stmt): Likewise.
14228 (instrument_derefs): If T has insufficient alignment,
14229 force same handling as for odd sizes.
14230
14231 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14232 BUILT_IN_ASAN_REPORT_STORE_N): New.
14233 * asan.c (struct asan_mem_ref): Change access_size type to
14234 HOST_WIDE_INT.
14235 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14236 update_mem_ref_hash_table): Likewise.
14237 (asan_mem_ref_hasher::hash): Hash in a HWI.
14238 (report_error_func): Change size_in_bytes argument to HWI.
14239 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14240 two.
14241 (build_shadow_mem_access): New function.
14242 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14243 Handle size_in_bytes not power of two or larger than 16.
14244 (instrument_derefs): Don't give up if size_in_bytes is not
14245 power of two or is larger than 16.
14246
14247 2014-05-30 Kai Tietz <ktietz@redhat.com>
14248
14249 PR target/60104
14250 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14251 for sibling-tail-calls.
14252 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14253 to its use.
14254 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14255 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14256
14257 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14258
14259 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14260 * config/avr/avr-tables.opt: Regenerate.
14261 * config/avr/t-multilib: Regenerate.
14262 * doc/avr-mmcu.texi: Regenerate.
14263
14264 2014-05-30 Ian Lance Taylor <iant@google.com>
14265
14266 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14267 target("sse").
14268
14269 2014-05-30 Tom de Vries <tom@codesourcery.com>
14270
14271 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14272 Redefine as true.
14273
14274 2014-05-30 Tom de Vries <tom@codesourcery.com>
14275
14276 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14277 * lra.c (initialize_lra_reg_info_element): Add init of
14278 actual_call_used_reg_set field.
14279 (lra): Call lra_create_live_ranges before lra_inheritance for
14280 -fuse-caller-save.
14281 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14282 -fuse-caller-save.
14283 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14284 instead of call_used_reg_set for -fuse-caller-save.
14285 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14286
14287 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14288
14289 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14290 to mov_imm.
14291 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14292
14293 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14294
14295 * ira.c (ira_get_dup_out_num): Check for output operands at
14296 the start of the loop. Handle cases where an included alternative
14297 follows an excluded one.
14298
14299 2014-05-29 Mike Stump <mikestump@comcast.net>
14300
14301 PR debug/61352
14302 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14303 post ld passes when lto is used.
14304
14305 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14306
14307 PR rtl-optimization/61325
14308 * lra-constraints.c (process_address): Rename to process_address_1.
14309 (process_address): New function.
14310
14311 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14312
14313 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14314 TYPES_BINOPV): New static data.
14315 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14316 New builtin.
14317 * config/aarch64/aarch64-simd.md (aarch64_ext,
14318 aarch64_im_lane_boundsi): New patterns.
14319 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14320 patterns for EXT.
14321 (aarch64_evpc_ext): New function.
14322
14323 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14324
14325 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14326 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14327 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14328 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14329 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14330
14331 2014-05-29 Tom de Vries <tom@codesourcery.com>
14332
14333 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14334
14335 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14336 Richard Sandiford <rdsandiford@googlemail.com>
14337
14338 * arm/iterators.md (shiftable_ops): New code iterator.
14339 (t2_binop0, arith_shift_insn): New code attributes.
14340 * arm/predicates.md (shift_nomul_operator): New predicate.
14341 * arm/arm.md (insn_enabled): Delete.
14342 (enabled): Remove insn_enabled test.
14343 (*arith_shiftsi): Delete. Replace with ...
14344 (*<arith_shift_insn>_multsi): ... new pattern.
14345 (*<arith_shift_insn>_shiftsi): ... new pattern.
14346 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14347
14348 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14349 Tom de Vries <tom@codesourcery.com>
14350
14351 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14352 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14353 clobber.
14354 (mips_split_call): Use POST_CALL_TMP_REG.
14355 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14356
14357 2014-05-29 Tom de Vries <tom@codesourcery.com>
14358
14359 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14360 with #ifdef STACK_REGS.
14361
14362 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14363
14364 * varasm.c (get_variable_section): Walk aliases.
14365 (place_block_symbol): Walk aliases.
14366
14367 2014-05-28 Tom de Vries <tom@codesourcery.com>
14368
14369 Revert:
14370 2014-05-28 Tom de Vries <tom@codesourcery.com>
14371
14372 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14373 * lra.c (initialize_lra_reg_info_element): Add init of
14374 actual_call_used_reg_set field.
14375 (lra): Call lra_create_live_ranges before lra_inheritance for
14376 -fuse-caller-save.
14377 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14378 -fuse-caller-save.
14379 * lra-constraints.c (need_for_call_save_p): Use
14380 actual_call_used_reg_set instead of call_used_reg_set for
14381 -fuse-caller-save.
14382 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14383
14384 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14385
14386 * doc/md.texi: Document that the % constraint character must
14387 be at the beginning of the string.
14388 * genoutput.c (validate_insn_alternatives): Check that '=',
14389 '+' and '%' only appear at the beginning of a constraint.
14390 * ira.c (commutative_constraint_p): Delete.
14391 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14392 at the start of the string.
14393 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14394 duplicate '='s.
14395 * config/arm/neon.md (bicdi3_neon): Likewise.
14396 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14397 (slt_si, sltu_si): Likewise.
14398 * config/vax/vax.md (sbcdi3): Likewise.
14399 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14400 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14401 (mul64): Move '%' to beginning of constraint.
14402 * config/arm/arm.md (*xordi3_insn): Likewise.
14403 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14404 (xorsi3): Likewise.
14405
14406 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14407
14408 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14409
14410 2014-05-28 Jason Merrill <jason@redhat.com>
14411
14412 PR c++/47202
14413 * cgraph.h (symtab_node::get_comdat_group_id): New.
14414 * cgraphunit.c (analyze_functions): Call it.
14415 * symtab.c (dump_symtab_node): Likewise.
14416 * tree.c (decl_comdat_group_id): New.
14417 * tree.h: Declare it.
14418 * lto-streamer-out.c (write_symbol): Use it.
14419 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14420
14421 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14422
14423 PR bootstrap/PR61146
14424 * wide-int.cc: Do not include longlong.h when compiling with clang.
14425
14426 2014-05-28 Richard Biener <rguenther@suse.de>
14427
14428 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14429 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14430 (vrp_visit_assignment_or_call): Print less vertical space.
14431 (vrp_visit_stmt): Likewise.
14432 (vrp_visit_phi_node): Likewise. For a PHI argument with
14433 VR_VARYING range consider recording it as copy.
14434
14435 2014-05-28 Richard Biener <rguenther@suse.de>
14436
14437 Revert
14438 2014-05-28 Richard Biener <rguenther@suse.de>
14439
14440 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14441
14442 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14443
14444 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14445 sufficiently aligned and an offset is used at the same time.
14446 (expand_expr_real_1): Likewise.
14447
14448 2014-05-28 Richard Biener <rguenther@suse.de>
14449
14450 PR middle-end/61045
14451 * fold-const.c (fold_comparison): When folding
14452 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14453 the sign of the remaining constant operand stays the same.
14454
14455 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14456
14457 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14458 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14459 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14460 to the assembler.
14461 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14462 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14463 (m32bit-doubles) Likewise.
14464 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14465 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14466 option for RL78.
14467
14468 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14469
14470 * configure.ac ($gcc_cv_ld_clearcap): New test.
14471 * configure: Regenerate.
14472 * config.in: Regenerate.
14473 * config/sol2.opt (mclear-hwcap): New option.
14474 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14475 * config/sol2-clearcap.map: Moved here from
14476 testsuite/gcc.target/i386/clearcap.map.
14477 * config/sol2-clearcapv2.map: Move here from
14478 gcc.target/i386/clearcapv2.map.
14479 * config/t-sol2 (install): Depend on install-clearcap-map.
14480 (install-clearcap-map): New target.
14481 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14482 -mclear-hwcap.
14483
14484 2014-05-28 Richard Biener <rguenther@suse.de>
14485
14486 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14487 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14488 ... here and remove the rest.
14489 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14490
14491 2014-05-28 Richard Biener <rguenther@suse.de>
14492
14493 PR tree-optimization/61335
14494 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14495 new range fails, drop to varying.
14496
14497 2014-05-28 Olivier Hainque <hainque@adacore.com>
14498
14499 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14500 (CPP_SPEC): Add entry for -mcpu=8548.
14501 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14502 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14503
14504 2014-05-28 Tom de Vries <tom@codesourcery.com>
14505
14506 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14507 * lra.c (initialize_lra_reg_info_element): Add init of
14508 actual_call_used_reg_set field.
14509 (lra): Call lra_create_live_ranges before lra_inheritance for
14510 -fuse-caller-save.
14511 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14512 -fuse-caller-save.
14513 * lra-constraints.c (need_for_call_save_p): Use
14514 actual_call_used_reg_set instead of call_used_reg_set for
14515 -fuse-caller-save.
14516 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14517
14518 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14519 Tom de Vries <tom@codesourcery.com>
14520
14521 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14522 to gccoptlist.
14523 (@item -fuse-caller-save): New item.
14524
14525 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14526 Tom de Vries <tom@codesourcery.com>
14527
14528 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14529 OPT_fuse_caller_save.
14530
14531 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14532 Tom de Vries <tom@codesourcery.com>
14533
14534 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14535 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14536 get_call_reg_set_usage.
14537 * resource.c (mark_set_resources, mark_target_live_regs): Use
14538 get_call_reg_set_usage.
14539 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14540 field.
14541 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14542 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14543 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14544 * ira-build.c (ira_create_allocno): Init
14545 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14546 (create_cap_allocno, propagate_allocno_info)
14547 (propagate_some_info_from_allocno)
14548 (copy_info_to_removed_store_destinations): Handle
14549 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14550 * ira-costs.c (ira_tune_allocno_costs): Use
14551 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14552
14553 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14554 Tom de Vries <tom@codesourcery.com>
14555
14556 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14557 and function_used_regs_valid fields.
14558 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14559 find_all_hard_reg_sets.
14560 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14561 (get_call_reg_set_usage): New function.
14562 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14563 * regs.h (get_call_reg_set_usage): Declare.
14564
14565 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14566
14567 PR libgcc/61152
14568 * config/dbx.h (License): Add Runtime Library Exception.
14569 * config/newlib-stdint.h (License): Same.
14570 * config/rtems.h (License): Same
14571 * config/initfini-array.h (License): Same
14572 * config/v850/v850.h (License): Same.
14573 * config/v850/v850-opts.h (License): Same
14574 * config/v850/rtems.h (License): Same.
14575
14576 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14577
14578 PR target/61044
14579 * doc/extend.texi (Local Labels): Note that label differences are
14580 not supported for AVR.
14581
14582 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14583 Olivier Hainque <hainque@adacore.com>
14584
14585 * rtl.h (set_for_reg_notes): Declare.
14586 * emit-rtl.c (set_for_reg_notes): New function.
14587 (set_unique_reg_note): Use it.
14588 * optabs.c (add_equal_note): Likewise
14589
14590 2014-05-27 Andrew Pinski <apinski@cavium.com>
14591
14592 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14593 Use <w> for the register in assembly template.
14594 (stack_protect_test): Use the mode of operands[0] for the result.
14595 (stack_protect_test_<mode>): Use <w> for the register
14596 in assembly template.
14597
14598 2014-05-27 DJ Delorie <dj@redhat.com>
14599
14600 * config/rx/rx.c (add_vector_labels): New.
14601 (rx_output_function_prologue): Call it.
14602 (rx_handle_func_attribute): Don't require empty arguments.
14603 (rx_handle_vector_attribute): New.
14604 (rx_attribute_table): Add "vector" attribute.
14605 * doc/extend.texi (interrupt, vector): Document new/changed
14606 RX-specific attributes.
14607
14608 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14609
14610 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14611
14612 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14613 predicate to detect a negative quotient.
14614
14615 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14616
14617 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14618 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14619 Add X - Y CMP 0 to X CMP Y transformation.
14620 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14621
14622 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14623
14624 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14625 before printing.
14626
14627 2014-05-27 Steve Ellcey <sellcey@mips.com>
14628
14629 * config/mips/mips.c: Add include of cgraph.h.
14630
14631 2014-05-27 Richard Biener <rguenther@suse.de>
14632
14633 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14634
14635 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14636
14637 PR libgcc/61152
14638 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14639 * config/arm/arm-cores.def (License): Same.
14640 * config/arm/arm-opts.h (License): Same.
14641 * config/arm/aout.h (License): Same.
14642 * config/arm/bpabi.h (License): Same.
14643 * config/arm/elf.h (License): Same.
14644 * config/arm/linux-elf.h (License): Same.
14645 * config/arm/linux-gas.h (License): Same.
14646 * config/arm/netbsd-elf.h (License): Same.
14647 * config/arm/uclinux-eabi.h (License): Same.
14648 * config/arm/uclinux-elf.h (License): Same.
14649 * config/arm/vxworks.h (License): Same.
14650
14651 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14652
14653 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14654 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14655 (arm_init_neon_builtins): Handle NEON_BSWAP.
14656 Define required type nodes.
14657 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14658 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14659 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14660 * config/arm/iterators.md (VDQHSD): New mode iterator.
14661
14662 2014-05-27 Richard Biener <rguenther@suse.de>
14663
14664 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14665 Try using literal operands when comparing value-ranges failed.
14666
14667 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14668
14669 * ira.c (commutative_operand): Adjust for change to recog_data.
14670 [Missing from previous commit.]
14671
14672 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14673
14674 * system.h (TEST_BIT): New macro.
14675 * recog.h (alternative_mask): New type.
14676 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14677 (recog_data_d): Replace alternative_enabled_p array with
14678 enabled_alternatives.
14679 (target_recog): New structure.
14680 (default_target_recog, this_target_recog): Declare.
14681 (get_enabled_alternatives, recog_init): Likewise.
14682 * recog.c (default_target_recog, this_target_recog): New variables.
14683 (get_enabled_alternatives): New function.
14684 (extract_insn): Use it.
14685 (recog_init): New function.
14686 (preprocess_constraints, constrain_operands): Adjust for change to
14687 recog_data.
14688 * postreload.c (reload_cse_simplify_operands): Likewise.
14689 * reload.c (find_reloads): Likewise.
14690 * ira-costs.c (record_reg_classes): Likewise.
14691 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14692 all alternatives after a disabled one would be skipped.
14693 (ira_implicitly_set_insn_hard_regs): Likewise.
14694 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14695 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14696 with enabled_alternatives.
14697 * lra.c (free_insn_recog_data): Update accordingly.
14698 (lra_update_insn_recog_data): Likewise.
14699 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14700 * lra-constraints.c (process_alt_operands): Likewise. Handle
14701 only_alternative as part of the enabled mask.
14702 * target-globals.h (this_target_recog): Declare.
14703 (target_globals): Add a recog field.
14704 (restore_target_globals): Restore this_target_recog.
14705 * target-globals.c: Include recog.h.
14706 (default_target_globals): Initialize recog field.
14707 (save_target_globals): Likewise.
14708 * reginfo.c (reinit_regs): Call recog_init.
14709 * toplev.c (backend_init_target): Likewise.
14710
14711 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14712
14713 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14714 rather than any named insn's code.
14715
14716 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14717
14718 PR libgcc/61152
14719 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14720 * config/arm/arm-cores.def (License): Same.
14721
14722 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14723
14724 * tree.h (decl_comdat_group): Declare.
14725 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14726 * tree.c (decl_comdat_group): Here.
14727
14728 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14729
14730 PR rtl-optimization/61222
14731 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14732 the shift, truncate the PLUS operand to the result mode.
14733
14734 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14735
14736 PR target/61271
14737 * config/i386/i386.c (ix86_rtx_costs)
14738 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14739 Fix condition.
14740
14741 2014-05-26 Martin Jambor <mjambor@suse.cz>
14742
14743 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14744 subreg uses.
14745
14746 2014-05-26 Richard Biener <rguenther@suse.de>
14747
14748 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14749 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14750 Provide specializations.
14751 (wi::int_traits <HOST_WIDE_INT>,
14752 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14753
14754 2014-05-26 Alan Modra <amodra@gmail.com>
14755
14756 PR target/61098
14757 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14758 params and return a bool. Remove dead code. Update comment.
14759 Assert we have a const_int source. Remove bogus code from
14760 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14761 handling of constants > 2G and reg_equal note, from..
14762 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14763 return value. Update comment. If we can, use a new pseudo
14764 for intermediate calculations.
14765 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14766 prototype.
14767 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14768 call to rs6000_emit_set_const in splitter.
14769 (movdi_internal64+2, +3): Likewise.
14770
14771 2014-05-26 Richard Biener <rguenther@suse.de>
14772
14773 * system.h: Define __STDC_FORMAT_MACROS before
14774 including inttypes.h.
14775 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14776 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14777 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14778 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14779 HOST_WIDEST_INT_C): Remove.
14780 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14781 if C99 inttypes.h is not available.
14782 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14783 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14784 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14785 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14786 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14787 (struct output_info): Likewise.
14788 (print_statistics): Adjust.
14789 (dump_bitmap_statistics): Likewise.
14790 * bt-load.c (migrate_btr_defs): Print with PRId64.
14791 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14792 (MAX_SAFE_MULTIPLIER): Adjust.
14793 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14794 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14795 dump_cgraph_node): Likewise.
14796 * final.c (dump_basic_block_info): Likewise.
14797 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14798 * gcov.c (format_gcov): Likewise.
14799 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14800 for calculation.
14801 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14802 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14803 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14804 Use PRId64 for dumping.
14805 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14806 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14807 (add_allocno_hard_regs): Adjust.
14808 * loop-doloop.c (doloop_modify): Print using PRId64.
14809 * loop-iv.c (inverse): Compute in uint64_t.
14810 (determine_max_iter, iv_number_of_iterations): Likewise.
14811 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14812 Print using PRId64.
14813 * lto-streamer-out.c (write_symbol): Use uint64_t.
14814 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14815 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14816 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14817 * modulo-sched.c (const_iteration_count): Use int64_t.
14818 (sms_schedule): Dump using PRId64.
14819 * predict.c (dump_prediction): Likewise.
14820 * pretty-print.h (pp_widest_integer): Remove.
14821 * profile.c (get_working_sets, is_edge_inconsistent,
14822 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14823 * tree-pretty-print.c (pp_double_int): Remove case handling
14824 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14825 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14826 and adjust users.
14827 (pass_optimize_bswap::execute): Remove restriction on hosts.
14828 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14829 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14830 * tree.c (widest_int_cst_value): Remove.
14831 * tree.h (widest_int_cst_value): Likewise.
14832 * value-prof.c (dump_histogram_value): Print using PRId64.
14833 * gengtype.c (main): Also inject int64_t.
14834 * ggc-page.c (struct max_alignment): Use int64_t.
14835 * alloc-pool.c (struct allocation_object_def): Likewise.
14836 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14837 for computation.
14838 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14839 * doc/tm.texi: Regenerated.
14840 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14841 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14842 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14843 mmix_output_register_setting): Use [u]int64_t in prototypes.
14844 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14845 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14846 mmix_output_octa, mmix_output_shifted_value): Adjust.
14847 (mmix_intval): Adjust. Remove unreachable case.
14848 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14849
14850 2014-05-26 Richard Biener <rguenther@suse.de>
14851
14852 * configure.ac: Drop __int64 type check. Insist that we
14853 found uint64_t and int64_t.
14854 * hwint.h (HOST_BITS_PER___INT64): Remove.
14855 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14856 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14857 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14858 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14859 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14860 for dst_q_src_df_rms_cdt.
14861 * configure: Regenerate.
14862 * config.in: Likewise.
14863
14864 2014-05-26 Michael Tautschnig <mt@debian.org>
14865
14866 PR target/61249
14867 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14868 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14869
14870 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14871
14872 PR rtl-optimization/61278
14873 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14874
14875 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14876
14877 PR rtl-optimization/61220
14878 Part of PR rtl-optimization/61225
14879 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14880 insn; skip split_edge for a block with only one successor.
14881
14882 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14883
14884 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14885 for variables.
14886
14887 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14888
14889 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14890 (update_vtable_references): New function.
14891 (function_and_variable_visibility): Rewrite also vtable initializers.
14892 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14893
14894 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14895
14896 * ggc.h (ggc_grow): New function.
14897 * ggc-none.c (ggc_grow): New function.
14898 * ggc-page.c (ggc_grow): Likewise.
14899
14900 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14901
14902 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14903 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14904 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14905 varpool_externally_visible_p, can_replace_by_local_alias,
14906 update_visibility_by_resolution_info, function_and_variable_visibility,
14907 pass_data_ipa_function_and_variable_visibility,
14908 make_pass_ipa_function_and_variable_visibility,
14909 whole_program_function_and_variable_visibility,
14910 pass_data_ipa_whole_program_visibility,
14911 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14912 * cgraph.h (cgraph_local_node_p): Declare.
14913 * ipa-visibility.c: New file.
14914 * Makefile.in (OBJS): Add ipa-visiblity.o
14915
14916 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14917
14918 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14919 that var decl is available.
14920
14921 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14922
14923 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14924 symtab_node pointer.
14925 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14926 (find_decls_types_r): Do not walk COMDAT_GROUP.
14927 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14928 * varasm.c (make_decl_one_only): Use set_comdat_group;
14929 create node if needed.
14930 * ipa-inline-transform.c (save_inline_function_body): Update
14931 way we decl->symtab mapping.
14932 * symtab.c (symtab_hash, hash_node, eq_node
14933 symtab_insert_node_to_hashtable): Remove.
14934 (symtab_register_node): Update.
14935 (symtab_unregister_node): Update.
14936 (symtab_get_node): Reimplement as inline function.
14937 (symtab_add_to_same_comdat_group): Update.
14938 (symtab_dissolve_same_comdat_group_list): Update.
14939 (dump_symtab_base): Update.
14940 (verify_symtab_base): Update.
14941 (symtab_make_decl_local): Update.
14942 (fixup_same_cpp_alias_visibility): Update.
14943 (symtab_nonoverwritable_alias): Update.
14944 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14945 * ipa.c (update_visibility_by_resolution_info): UPdate.
14946 * bb-reorder.c: Include cgraph.h
14947 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14948 with comdat groups.
14949 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14950 * cgraph.c (cgraph_get_create_node): Update.
14951 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14952 and comdat_group_.
14953 (symtab_get_node): Make inline.
14954 (symtab_insert_node_to_hashtable): Remove.
14955 (symtab_can_be_discarded): Update.
14956 (decl_comdat_group): New function.
14957 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14958 Update.
14959 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14960 comdat group name.
14961 (read_comdat_group): New function.
14962 (input_node, input_varpool_node): Use it.
14963 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14964 comdat groups.
14965 * mips.c (mips_start_unique_function): Likewise.
14966 (ix86_code_end): Likewise.
14967 (rs6000_code_end): Likweise.
14968 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14969
14970 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14971
14972 * gengtype-state.c (fatal_reading_state): Bring offline.
14973 * optabs.c (widening_optab_handler): Bring offline.
14974 * optabs.h (widening_optab_handler): Likewise.
14975 * final.c (get_attr_length_1): Likewise.
14976
14977 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14978
14979 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14980
14981 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14982
14983 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14984 (ppc440-compare): Include shift with dot.
14985 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14986 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14987 without dot.
14988 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14989 without dot.
14990 (e6500_sfx2): Include it.
14991 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14992 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14993 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14994 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14995 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14996 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14997 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14998 *lshiftrt_internal1le, *lshiftrt_internal1be,
14999 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
15000 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
15001 *rotldi3_internal10le, *rotldi3_internal10be,
15002 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
15003 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
15004 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
15005 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
15006 define_insns): Use type "shift" in the appropriate alternatives.
15007
15008 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15009
15010 * config/rs6000/rs6000.md (type): Add "logical". Delete
15011 "fast_compare".
15012 (dot): Adjust comment.
15013 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
15014 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
15015 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
15016 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
15017 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
15018 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
15019 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
15020 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15021
15022 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15023 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15024 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15025 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15026 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15027 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15028 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15029 * config/rs6000/8540.md (ppc8540_su): Adjust.
15030 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15031 cell-cmp-microcoded): Adjust.
15032 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15033 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15034 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15035 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15036 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15037 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15038 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15039 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15040 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15041 Adjust.
15042 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15043 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
15044 Adjust. Adjust comment.
15045 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15046 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15047
15048 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15049
15050 * config/rs6000/rs6000.md (type): Add "add".
15051 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
15052 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
15053 define_insns): Use it.
15054 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15055
15056 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15057 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15058 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15059 * config/rs6000/601.md (ppc601-integer): Adjust.
15060 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15061 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15062 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15063 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15064 * config/rs6000/8540.md (ppc8540_su): Adjust.
15065 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15066 cell-cmp-microcoded): Adjust.
15067 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15068 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15069 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15070 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15071 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15072 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15073 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15074 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15075 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15076 Adjust.
15077 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15078 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
15079 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15080 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15081
15082 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15083
15084 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
15085 "delayed_compare", "var_delayed_compare".
15086 (var_shift): New attribute.
15087 (cell_micro): Adjust.
15088 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
15089 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
15090 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
15091 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15092 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15093 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15094 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15095 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
15096 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
15097 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15098 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
15099 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
15100 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
15101 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
15102 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
15103 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
15104 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
15105 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
15106 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
15107 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
15108 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
15109 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
15110 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
15111 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15112 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15113
15114 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15115 * config/rs6000/440.md (ppc440-integer): Adjust.
15116 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15117 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
15118 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15119 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15120 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15121 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15122 * config/rs6000/8540.md (ppc8540_su): Adjust.
15123 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15124 cell-cmp-microcoded): Adjust.
15125 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
15126 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15127 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
15128 e500mc64_delayed): Adjust.
15129 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
15130 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
15131 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15132 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
15133 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
15134 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
15135 power6-delayed-compare, power6-var-delayed-compare): Adjust.
15136 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
15137 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
15138 Adjust comment.
15139 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15140 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15141
15142 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15143
15144 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
15145 (bits): New mode_attr.
15146 (idiv_ldiv): Delete mode_attr.
15147 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
15148 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15149 rs6000_adjust_priority, is_nonpipeline_insn,
15150 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15151
15152 * config/rs6000/40x.md (ppc403-idiv): Adjust.
15153 * config/rs6000/440.md (ppc440-idiv): Adjust.
15154 * config/rs6000/476.md (ppc476-idiv): Adjust.
15155 * config/rs6000/601.md (ppc601-idiv): Adjust.
15156 * config/rs6000/603.md (ppc603-idiv): Adjust.
15157 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
15158 ppc620-ldiv): Adjust.
15159 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
15160 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
15161 * config/rs6000/8540.md (ppc8540_divide): Adjust.
15162 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
15163 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
15164 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
15165 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
15166 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
15167 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
15168 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
15169 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
15170 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
15171 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
15172 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
15173 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
15174 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
15175 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
15176 * config/rs6000/titan.md (titan_fxu_div): Adjust.
15177
15178 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15179
15180 * config/rs6000/rs6000.md (type): Delete "insert_word",
15181 "insert_dword". Add "insert".
15182 (size): Update comment.
15183 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15184 insn_must_be_first_in_group): Adjust.
15185 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15186 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15187 *insvsi_internal6, insvdi_internal): Adjust.
15188
15189 * config/rs6000/40x.md (ppc403-integer): Adjust.
15190 * config/rs6000/440.md (ppc440-integer): Adjust.
15191 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
15192 * config/rs6000/601.md (ppc601-integer): Adjust.
15193 * config/rs6000/603.md (ppc603-integer): Adjust.
15194 * config/rs6000/6xx.md (ppc604-integer): Adjust.
15195 * config/rs6000/7450.md (ppc7450-integer): Adjust.
15196 * config/rs6000/7xx.md (ppc750-integer): Adjust.
15197 * config/rs6000/8540.md (ppc8540_su): Adjust.
15198 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15199 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15200 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15201 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15202 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15203 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15204 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15205 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15206 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15207 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15208 * config/rs6000/power7.md (power7-integer): Adjust.
15209 * config/rs6000/power8.md (power8-1cyc): Adjust.
15210 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15211 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15212
15213 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15214
15215 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15216 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15217 (size): New attribute.
15218 (dot): New attribute.
15219 (cell_micro): Adjust.
15220 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15221 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15222 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15223 umuldi3_highpart): Adjust.
15224 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15225 rs6000_adjust_priority, is_nonpipeline_insn,
15226 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15227
15228 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15229 ppc405-imul3): Adjust.
15230 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15231 * config/rs6000/476.md (ppc476-imul): Adjust.
15232 * config/rs6000/601.md (ppc601-imul): Adjust.
15233 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15234 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15235 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15236 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15237 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15238 Adjust.
15239 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15240 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15241 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15242 cell-imul): Adjust.
15243 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15244 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15245 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15246 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15247 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15248 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15249 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15250 power4-lmul, power4-imul, power4-imul3): Adjust.
15251 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15252 power5-lmul, power5-imul, power5-imul3): Adjust.
15253 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15254 power6-lmul, power6-imul, power6-imul3): Adjust.
15255 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15256 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15257
15258 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15259 rs64a-lmul): Adjust.
15260 * config/rs6000/titan.md (titan_imul): Adjust.
15261
15262 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15263
15264 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15265 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15266 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15267 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15268 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15269 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15270 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15271 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15272 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15273 * config/rs6000/titan.md: Delete nonsensical comment.
15274 (titan_imul): Add type imul3.
15275 (titan_mulhw): Remove type imul3; add type halfmul.
15276
15277 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15278
15279 * config/rs6000/rs6000.md (type): Reorder, reformat.
15280
15281 2014-05-23 Martin Jambor <mjambor@suse.cz>
15282
15283 PR tree-optimization/53787
15284 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15285 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15286 analysis_done, update all uses.
15287 * ipa-prop.c: Include domwalk.h
15288 (param_analysis_info): Removed.
15289 (param_aa_status): New type.
15290 (ipa_bb_info): Likewise.
15291 (func_body_info): Likewise.
15292 (ipa_get_bb_info): New function.
15293 (aa_overwalked): Likewise.
15294 (find_dominating_aa_status): Likewise.
15295 (parm_bb_aa_status_for_bb): Likewise.
15296 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15297 (load_from_unmodified_param): Accept func_body_info as a parameter
15298 instead of parms_ainfo.
15299 (parm_ref_data_preserved_p): Changed to use new param AA info.
15300 (parm_ref_data_pass_through_p): Likewise.
15301 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15302 (compute_complex_assign_jump_func): Changed to use new param AA info.
15303 (compute_complex_ancestor_jump_func): Likewise.
15304 (ipa_compute_jump_functions_for_edge): Likewise.
15305 (ipa_compute_jump_functions): Removed.
15306 (ipa_compute_jump_functions_for_bb): New function.
15307 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15308 declarations down.
15309 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15310 and info, moved variable declarations down.
15311 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15312 node and info.
15313 (ipa_analyze_stmt_uses): Likewise.
15314 (ipa_analyze_params_uses): Removed.
15315 (ipa_analyze_params_uses_in_bb): New function.
15316 (ipa_analyze_controlled_uses): Likewise.
15317 (free_ipa_bb_info): Likewise.
15318 (analysis_dom_walker): New class.
15319 (ipa_analyze_node): Handle node-specific forbidden analysis,
15320 initialize and free func_body_info, use dominator walker.
15321 (ipcp_modif_dom_walker): New class.
15322 (ipcp_transform_function): Create and free func_body_info, use
15323 ipcp_modif_dom_walker, moved a lot of functionality there.
15324
15325 2014-05-23 Marek Polacek <polacek@redhat.com>
15326 Jakub Jelinek <jakub@redhat.com>
15327
15328 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15329 * gcc.c (sanitize_spec_function): Likewise.
15330 * convert.c (convert_to_integer): Include "ubsan.h". Add
15331 floating-point to integer instrumentation.
15332 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15333 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15334 SANITIZE_NONDEFAULT.
15335 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15336 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15337 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15338 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15339 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15340 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15341 float/double/long double.
15342 (ubsan_instrument_float_cast): New function.
15343 * ubsan.h (ubsan_instrument_float_cast): Declare.
15344
15345 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15346
15347 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15348 predicate.
15349 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15350 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15351 Adjust for tailcalling through registers.
15352 * config/aarch64/aarch64.h (enum reg_class): New caller save
15353 register class.
15354 (REG_CLASS_NAMES): Likewise.
15355 (REG_CLASS_CONTENTS): Likewise.
15356 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15357 Allow tailcalling without decls.
15358
15359 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15360
15361 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15362 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15363
15364 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15365 gsi, and variables v_* to v*.
15366
15367 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15368
15369 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15370
15371 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15372
15373 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15374 * omp-low.c: Update accordingly.
15375
15376 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15377 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15378 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15379 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15380 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15381 GF_OMP_TARGET_KIND_UPDATE.
15382
15383 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15384 Explicitly enumerate the expected region types.
15385
15386 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15387
15388 PR other/56955
15389 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15390 documentation; the old documentation didn't clearly state the
15391 constraints on the contents of the pointed-to storage.
15392
15393 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15394
15395 Fix bootstrap error on ia64
15396 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15397 Return default value.
15398
15399 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15400
15401 PR tree-optimization/54733
15402 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15403 (CMPNOP): Define.
15404 (find_bswap_or_nop_load): New.
15405 (find_bswap_1): Renamed to ...
15406 (find_bswap_or_nop_1): This. Also add support for memory source.
15407 (find_bswap): Renamed to ...
15408 (find_bswap_or_nop): This. Also add support for memory source and
15409 detection of bitwise operations equivalent to load in target
15410 endianness.
15411 (execute_optimize_bswap): Likewise. Also move its leading comment back
15412 in place and split statement transformation into ...
15413 (bswap_replace): This.
15414
15415 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15416
15417 PR rtl-optimization/61215
15418 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15419 simplify_gen_subreg until final substitution.
15420
15421 2014-05-23 Alan Modra <amodra@gmail.com>
15422
15423 PR target/61231
15424 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15425 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15426 Use "Y" constraint rather than "m".
15427
15428 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15429
15430 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15431 define.
15432 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15433 New function declaration.
15434 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15435 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15436 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15437 (aarch64_init_builtins) : Initialize builtins
15438 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15439 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15440 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15441 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15442 and __builtins_aarch64_set_fpsr.
15443 (aarch64_atomic_assign_expand_fenv): New function.
15444 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15445 (get_fpcr) : Likewise.
15446 (set_fpsr) : Likewise.
15447 (get_fpsr) : Likewise.
15448 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15449 and UNSPECV_SET_FPSR.
15450 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15451 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15452 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15453
15454 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15455
15456 PR rtl-optimization/60969
15457 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15458 constraints. Set up mem cost for NO_REGS case.
15459
15460 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15461
15462 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15463
15464 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15465
15466 * config/darwin.c: Include "lto-section-names.h".
15467 (LTO_SEGMENT_NAME): Don't define.
15468 * config/i386/winnt.c: Include "lto-section-names.h".
15469 * lto-streamer.c: Include "lto-section-names.h".
15470 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15471 * lto-wrapper.c: Include "lto-section-names.h".
15472 (LTO_SECTION_NAME_PREFIX): Don't define.
15473 * lto-section-names.h: New file.
15474 * cgraphunit.c: Include "lto-section-names.h".
15475
15476 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15477
15478 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15479
15480 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15481
15482 PR target/61208
15483 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15484
15485 2014-05-22 Nick Clifton <nickc@redhat.com>
15486
15487 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15488
15489 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15490
15491 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15492 -> (T)A transformation to integer types.
15493
15494 2014-05-22 Teresa Johnson <tejohnson@google.com>
15495
15496 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15497 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15498 (gcov_rewrite): Use gcov_nonruntime_assert.
15499 (gcov_open): Ditto.
15500 (gcov_write_words): Ditto.
15501 (gcov_write_length): Ditto.
15502 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15503 gcc_assert from IN_LIBGCOV code.
15504 (gcov_read_summary): Use gcov_error to flag profile corruption.
15505 (gcov_sync): Use gcov_nonruntime_assert.
15506 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15507 (gcov_histo_index): Use gcov_nonruntime_assert.
15508 (static void gcov_histogram_merge): Ditto.
15509 (compute_working_sets): Ditto.
15510 * gcov-io.h (gcov_nonruntime_assert): Define.
15511 (gcov_error): Define for !IN_LIBGCOV
15512
15513 2014-05-22 Richard Biener <rguenther@suse.de>
15514
15515 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15516 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15517 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15518 and deallocation site.
15519 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15520 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15521 passing through the incoming points-to set.
15522 (handle_lhs_call): Use flags argument instead of recomputing it.
15523 (find_func_aliases_for_call): Call handle_lhs_call with proper
15524 call return flags.
15525
15526 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15527
15528 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15529 all padding bits in REAL_VALUE_TYPE are cleared.
15530
15531 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15532
15533 Cleanup and improve multipass_dfa_lookahead_guard
15534 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15535 (core2i7_first_cycle_multipass_begin,)
15536 (core2i7_first_cycle_multipass_issue,)
15537 (core2i7_first_cycle_multipass_backtrack): Update signature.
15538 * config/ia64/ia64.c
15539 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15540 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15541 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15542 hook definition.
15543 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15544 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15545 values.
15546 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15547 return values.
15548 * doc/tm.texi: Regenerate.
15549 * doc/tm.texi.in
15550 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15551 * haifa-sched.c (ready_try): Make signed to allow negative values.
15552 (rebug_ready_list_1): Update.
15553 (choose_ready): Simplify.
15554 (sched_extend_ready_list): Update.
15555
15556 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15557
15558 Remove IA64 speculation tweaking flags
15559 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15560 speculation tuning flags.
15561 (msched-prefer-non-data-spec-insns,)
15562 (msched-prefer-non-control-spec-insns): Obsolete options.
15563 * haifa-sched.c (choose_ready): Remove handling of
15564 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15565 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15566 and PREFER_NON_DATA_SPEC.
15567 * sel-sched.c (process_spec_exprs): Remove handling of
15568 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15569
15570 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15571
15572 Improve scheduling debug output
15573 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15574 (advance_one_cycle): Update.
15575 (schedule_insn, queue_to_ready): Add debug printouts.
15576 (debug_ready_list_1): New static function.
15577 (debug_ready_list): Update.
15578 (max_issue): Add debug printouts.
15579 (dump_insn_stream): New static function.
15580 (schedule_block): Use it. Also better indent printouts.
15581
15582 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15583
15584 Fix sched_insn debug counter
15585 * haifa-sched.c (schedule_insn): Update.
15586 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15587 (save_backtrack_point, restore_backtrack_point): Update.
15588 (first_nonscheduled_insn): New static function.
15589 (queue_to_ready, choose_ready): Use it.
15590 (schedule_block): Init nonscheduled_insns_begin.
15591 (sched_emit_insn): Update.
15592
15593
15594 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15595
15596 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15597 to GENERAL_REGS.
15598 (aarch64_secondary_reload) : LikeWise.
15599 (aarch64_class_max_nregs) : Remove CORE_REGS.
15600 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15601 (REG_CLASS_NAMES) : Likewise.
15602 (REG_CLASS_CONTENTS) : LikeWise.
15603 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15604
15605 2014-05-21 Guozhi Wei <carrot@google.com>
15606
15607 PR target/61202
15608 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15609 constraint.
15610 (vqdmulhq_n_s16): Likewise.
15611
15612 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15613
15614 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15615
15616 2014-05-21 Marek Polacek <polacek@redhat.com>
15617
15618 PR sanitizer/61272
15619 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15620
15621 2014-05-21 Martin Jambor <mjambor@suse.cz>
15622
15623 * doc/invoke.texi (Optimize Options): Document parameters
15624 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15625 ipa-cp-array-index-hint-bonus.
15626
15627 2014-05-21 Mark Wielaard <mjw@redhat.com>
15628
15629 PR debug/16063
15630 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15631 version >= 3 or not strict DWARF.
15632 * langhooks.h (struct lang_hooks_for_types): Add
15633 enum_underlying_base_type.
15634 * langhooks.c (lhd_enum_underlying_base_type): New function.
15635 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15636 enum_underlying_base_type.
15637 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15638 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15639 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15640
15641 2014-05-21 Richard Biener <rguenther@suse.de>
15642
15643 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15644
15645 2014-05-21 John Marino <gnugcc@marino.st>
15646
15647 * config.gcc (*-*-dragonfly*): New target.
15648 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15649 * configure: Regenerate.
15650 * config/dragonfly-stdint.h: New.
15651 * config/dragonfly.h: New.
15652 * config/dragonfly.opt: New.
15653 * config/i386/dragonfly.h: New.
15654 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15655
15656 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15657
15658 * tree.def (VOID_CST): New.
15659 * tree-core.h (TI_VOID): New.
15660 * tree.h (void_node): New.
15661 * tree.c (tree_node_structure_for_code, tree_code_size)
15662 (iterative_hash_expr): Handle VOID_CST.
15663 (build_common_tree_nodes): Initialize void_node.
15664
15665 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15666
15667 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15668 functions.
15669 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15670
15671 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15672 more places.
15673
15674 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15675 flag_reorder_blocks_and_partition.
15676 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15677
15678 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15679
15680 PR target/54236
15681 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15682 constraints.
15683 (*addc_r_t): Add new insn_and_split.
15684
15685 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15686
15687 PR middle-end/61252
15688 * omp-low.c (handle_simd_reference): New function.
15689 (lower_rec_input_clauses): Use it. Defer adding reference
15690 initialization even for reduction without placeholder if in simd,
15691 handle it properly later on.
15692
15693 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15694
15695 PR tree-optimization/60899
15696 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15697 assume all static symbols will have definition wile parsing and
15698 check the do have definition later in compilation; check that
15699 variable referring symbol will be output before concluding that
15700 reference is safe; be conservative for referring local statics;
15701 be more precise about when comdat is output in other partition.
15702
15703 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15704
15705 PR bootstrap/60984
15706 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15707 parameter.
15708 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15709 (ipa_inline): Loop inline_to_all_callers until no more aliases
15710 are removed.
15711
15712 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15713
15714 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15715 set writeonly flag only for vars actually written to.
15716
15717 2014-05-20 Dehao Chen <dehao@google.com>
15718
15719 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15720 and callee count to get clone count.
15721 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15722 count in copy_body.
15723
15724 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15725
15726 PR rtl-optimization/61243
15727 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15728
15729 2014-05-20 Xinliang David Li <davidxl@google.com>
15730
15731 * cgraphunit.c (walk_polymorphic_call_targets): Add
15732 dbgcnt and fopt-info support.
15733 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15734 * ipa-devirt.c (ipa_devirt): Ditto.
15735 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15736 * ipa.c (walk_polymorphic_call_targets): Ditto.
15737 * gimple-fold.c (fold_gimple_assign): Ditto.
15738 (gimple_fold_call): Ditto.
15739 * dbgcnt.def: New counter.
15740
15741 2014-05-20 DJ Delorie <dj@redhat.com>
15742
15743 * config/msp430/msp430.md (split): Don't allow subregs when
15744 splitting SImode adds.
15745 (andneghi): Fix subtraction logic.
15746 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15747
15748 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15749
15750 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15751 symbols.
15752 * except.c (switch_to_exception_section, resolve_unique_section,
15753 get_named_text_section, default_function_rodata_section,
15754 align_variable, get_block_for_decl, default_section_type_flags):
15755 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15756 * symtab.c (symtab_add_to_same_comdat_group,
15757 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15758 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15759 Likewise.
15760 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15761 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15762 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15763 (c6x_function_in_section_p): Likewise.
15764 * config/darwin.c (machopic_select_section): Likewise.
15765 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15766 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15767 * config/mep/mep.c (mep_select_section): LIkewise.
15768 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15769
15770 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15771
15772 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15773 EH region of calls to pure functions that can throw an exception.
15774 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15775 (copy_reference_ops_from_call): Also copy the EH region of the call if
15776 it can throw an exception.
15777
15778 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15779
15780 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15781 nested VEC_SELECTs that are inverses of each other.
15782
15783 2014-05-20 Richard Biener <rguenther@suse.de>
15784
15785 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15786 (extract_and_process_scc_for_name): not here.
15787 (cond_dom_walker::before_dom_children): Only process
15788 stmts that end the BB in interesting ways.
15789 (run_scc_vn): Mark param uses as visited.
15790
15791 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15792
15793 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15794 arm_restrict_it.
15795
15796 2014-05-20 Nick Clifton <nickc@redhat.com>
15797
15798 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15799 (msp430_gimplify_va_arg_expr): New function.
15800 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15801
15802 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15803 operand 0 in order to prevent confusion about the number of
15804 registers involved.
15805
15806 2014-05-20 Richard Biener <rguenther@suse.de>
15807
15808 PR tree-optimization/61221
15809 * tree-ssa-pre.c (el_to_update): Remove.
15810 (eliminate_dom_walker::before_dom_children): Handle released
15811 VDEFs by value-numbering them to the associated VUSE. Update
15812 stmt immediately for substituted call address.
15813 (eliminate): Remove delayed stmt updating code.
15814 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15815 possibly late re-numbered vuses.
15816 (vn_reference_lookup_2): Adjust.
15817 (vn_reference_lookup_pieces): Likewise.
15818 (vn_reference_lookup): Likewise.
15819
15820 2014-05-20 Richard Biener <rguenther@suse.de>
15821
15822 * config.gcc: Remove need_64bit_hwint.
15823 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15824 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15825 it to be true.
15826 * config.in: Regenerate.
15827 * configure: Likewise.
15828
15829 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15830
15831 * doc/extend.texi: Create Label Attributes section,
15832 move all label attributes into it and reference it.
15833
15834 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15835
15836 * arm.c (thumb1_reorg): When scanning backwards skip anything
15837 that's not a proper insn.
15838
15839 2014-05-19 Richard Biener <rguenther@suse.de>
15840
15841 PR tree-optimization/61221
15842 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15843 Do nothing for unreachable blocks.
15844 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15845 Improve unreachability detection.
15846
15847 2014-05-19 Richard Biener <rguenther@suse.de>
15848
15849 PR tree-optimization/61209
15850 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15851
15852 2014-05-19 Nick Clifton <nickc@redhat.com>
15853
15854 * except.c (init_eh): Fix computation of builtin setjmp buffer
15855 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15856
15857 2014-05-19 Richard Biener <rguenther@suse.de>
15858
15859 PR tree-optimization/61184
15860 * tree-vrp.c (is_negative_overflow_infinity): Use
15861 TREE_OVERFLOW_P and do that check first.
15862 (is_positive_overflow_infinity): Likewise.
15863 (is_overflow_infinity): Likewise.
15864 (vrp_operand_equal_p): Properly treat operands with
15865 differing overflow as not equal.
15866
15867 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15868
15869 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15870 shift simplification where it was intended.
15871
15872 2014-05-19 Christian Bruel <christian.bruel@st.com>
15873
15874 PR target/61195
15875 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15876
15877 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15878
15879 PR target/61084
15880 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15881 than wide_int.
15882
15883 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15884
15885 * reg-notes.def (CROSSING_JUMP): Likewise.
15886 * rtl.h (rtx_def): Update comment for jump flag.
15887 (CROSSING_JUMP_P): Define.
15888 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15889 of a REG_CROSSING_JUMP note.
15890 * cfghooks.c (tidy_fallthru_edges): Likewise.
15891 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15892 * emit-rtl.c (try_split): Likewise.
15893 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15894 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15895 * jump.c (redirect_jump_2): Likewise.
15896 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15897 (relax_delay_slots): Likewise.
15898 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15899 (bbit_di): Likewise.
15900 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15901 * config/sh/sh.md (jump_compact): Likewise.
15902 * bb-reorder.c (rotate_loop): Likewise.
15903 (pass_duplicate_computed_gotos::execute): Likewise.
15904 (add_reg_crossing_jump_notes): Rename to...
15905 (update_crossing_jump_flags): ...this.
15906 (pass_partition_blocks::execute): Update accordingly.
15907
15908 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15909
15910 * tree.h: Remove extraneous template <>.
15911
15912 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15913
15914 * ipa.c (symtab_remove_unreachable_nodes): Remove
15915 symbol from comdat group if its body was eliminated.
15916 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15917 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15918 (symtab_unregister_node): ... this one.
15919 (verify_symtab_base): More strict checking of comdats.
15920 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15921
15922 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15923
15924 * tree-pass.h (make_pass_ipa_comdats): New pass.
15925 * timevar.def (TV_IPA_COMDATS): New timevar.
15926 * passes.def (pass_ipa_comdats): Add.
15927 * Makefile.in (OBJS): Add ipa-comdats.o
15928 * ipa-comdats.c: New file.
15929
15930 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15931
15932 * ipa.c (update_visibility_by_resolution_info): New function.
15933 (function_and_variable_visibility): Use it.
15934
15935 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15936
15937 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15938 New functions.
15939 (FOR_EACH_DEFINED_SYMBOL): New macro.
15940 (varpool_first_static_initializer, varpool_next_static_initializer,
15941 varpool_first_defined_variable, varpool_next_defined_variable):
15942 Fix comments.
15943 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15944
15945 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15946
15947 * ggc-page.c (ggc_handle_finalizers): Add comment.
15948
15949 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15950
15951 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15952 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15953 (ggc_internal_cleared_alloc): Likewise.
15954 * ggc-page.c (finalizer): New class.
15955 (vec_finalizer): Likewise.
15956 (globals::finalizers): New member.
15957 (globals::vec_finalizers): Likewise.
15958 (ggc_internal_alloc): Record the finalizer if any for the block being
15959 allocated.
15960 (ggc_handle_finalizers): New function.
15961 (ggc_collect): Call ggc_handle_finalizers.
15962 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15963 finalizer.
15964 (ggc_internal_cleared_alloc): Likewise.
15965 (finalize): New function.
15966 (need_finalization_p): Likewise.
15967 (ggc_alloc): Install the type's destructor as the finalizer if it
15968 might do something.
15969 (ggc_cleared_alloc): Likewise.
15970 (ggc_vec_alloc): Likewise.
15971 (ggc_cleared_vec_alloc): Likewise.
15972
15973 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15974
15975 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15976
15977 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15978
15979 * alias.c (record_alias_subset): Adjust.
15980 * bitmap.c (bitmap_element_allocate): Likewise.
15981 (bitmap_gc_alloc_stat): Likewise.
15982 * cfg.c (init_flow): Likewise.
15983 (alloc_block): Likewise.
15984 (unchecked_make_edge): Likewise.
15985 * cfgloop.c (alloc_loop): Likewise.
15986 (flow_loops_find): Likewise.
15987 (rescan_loop_exit): Likewise.
15988 * cfgrtl.c (init_rtl_bb_info): Likewise.
15989 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15990 (cgraph_allocate_node): Likewise.
15991 (cgraph_create_edge_1): Likewise.
15992 (cgraph_allocate_init_indirect_info): Likewise.
15993 * cgraphclones.c (cgraph_clone_edge): Likewise.
15994 * cgraphunit.c (add_asm_node): Likewise.
15995 (init_lowered_empty_function): Likewise.
15996 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15997 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15998 (alpha_use_linkage): Likewise.
15999 * config/arc/arc.c (arc_init_machine_status): Likewise.
16000 * config/arm/arm.c (arm_init_machine_status): Likewise.
16001 * config/avr/avr.c (avr_init_machine_status): Likewise.
16002 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16003 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
16004 * config/cris/cris.c (cris_init_machine_status): Likewise.
16005 * config/darwin.c (machopic_indirection_name): Likewise.
16006 (darwin_build_constant_cfstring): Likewise.
16007 (darwin_enter_string_into_cfstring_table): Likewise.
16008 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
16009 * config/frv/frv.c (frv_init_machine_status): Likewise.
16010 * config/i386/i386.c (get_dllimport_decl): Likewise.
16011 (ix86_init_machine_status): Likewise.
16012 (assign_386_stack_local): Likewise.
16013 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16014 (i386_pe_maybe_record_exported_symbol): Likewise.
16015 (i386_pe_record_stub): Likewise.
16016 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16017 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16018 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16019 (m32c_note_pragma_address): Likewise.
16020 * config/mep/mep.c (mep_init_machine_status): Likewise.
16021 (mep_note_pragma_flag): Likewise.
16022 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16023 (mips16_local_alias): Likewise.
16024 (mips_init_machine_status): Likewise.
16025 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16026 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16027 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
16028 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
16029 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
16030 * config/pa/pa.c (pa_init_machine_status): Likewise.
16031 (pa_get_deferred_plabel): Likewise.
16032 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
16033 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16034 (rs6000_init_machine_status): Likewise.
16035 (output_toc): Likewise.
16036 * config/s390/s390.c (s390_init_machine_status): Likewise.
16037 * config/score/score.c (score_output_external): Likewise.
16038 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16039 * config/spu/spu.c (spu_init_machine_status): Likewise.
16040 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16041 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
16042 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16043 * coverage.c (coverage_end_function): Likewise.
16044 * dbxout.c (dbxout_init): Likewise.
16045 * doc/gty.texi: Don't mention variable_size attribute.
16046 * dwarf2cfi.c (new_cfi): Adjust.
16047 (new_cfi_row): Likewise.
16048 (copy_cfi_row): Likewise.
16049 (create_cie_data): Likewise.
16050 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
16051 (new_loc_descr): Likewise.
16052 (find_AT_string_in_table): Likewise.
16053 (add_addr_table_entry): Likewise.
16054 (new_die): Likewise.
16055 (add_var_loc_to_decl): Likewise.
16056 (clone_die): Likewise.
16057 (clone_as_declaration): Likewise.
16058 (break_out_comdat_types): Likewise.
16059 (new_loc_list): Likewise.
16060 (add_loc_descr_to_each): Likewise.
16061 (add_location_or_const_value_attribute): Likewise.
16062 (add_linkage_name): Likewise.
16063 (lookup_filename): Likewise.
16064 (dwarf2out_var_location): Likewise.
16065 (new_line_info_table): Likewise.
16066 (dwarf2out_init): Likewise.
16067 (mem_loc_descriptor): Likewise.
16068 (loc_descriptor): Likewise.
16069 (add_const_value_attribute): Likewise.
16070 (tree_add_const_value_attribute): Likewise.
16071 (comp_dir_string): Likewise.
16072 (dwarf2out_vms_debug_main_pointer): Likewise.
16073 (string_cst_pool_decl): Likewise.
16074 * emit-rtl.c (set_mem_attrs): Likewise.
16075 (get_reg_attrs): Likewise.
16076 (start_sequence): Likewise.
16077 (init_emit): Likewise.
16078 (init_emit_regs): Likewise.
16079 * except.c (init_eh_for_function): Likewise.
16080 (gen_eh_region): Likewise.
16081 (gen_eh_region_catch): Likewise.
16082 (gen_eh_landing_pad): Likewise.
16083 (add_call_site): Likewise.
16084 * function.c (add_frame_space): Likewise.
16085 (insert_temp_slot_address): Likewise.
16086 (assign_stack_temp_for_type): Likewise.
16087 (get_hard_reg_initial_val): Likewise.
16088 (allocate_struct_function): Likewise.
16089 (prepare_function_start): Likewise.
16090 (types_used_by_var_decl_insert): Likewise.
16091 * gengtype.c (variable_size_p): Remove function.
16092 (enum alloc_quantity): Remove enum.
16093 (write_typed_alloc_def): Remove function.
16094 (write_typed_struct_alloc_def): Likewise.
16095 (write_typed_typedef_alloc_def): Likewise.
16096 (write_typed_alloc_defns): Likewise.
16097 (main): Adjust.
16098 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
16099 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
16100 * ggc.h (ggc_alloc): new function.
16101 (ggc_cleared_alloc): Likewise.
16102 (ggc_vec_alloc): Template on type of vector element, and remove
16103 element size argument.
16104 (ggc_cleared_vec_alloc): Likewise.
16105 * gimple.c (gimple_build_omp_for): Adjust.
16106 (gimple_copy): Likewise.
16107 * ipa-cp.c (get_replacement_map): Likewise.
16108 (find_aggregate_values_for_callers_subset): Likewise.
16109 (known_aggs_to_agg_replacement_list): Likewise.
16110 * ipa-devirt.c (get_odr_type): Likewise.
16111 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
16112 (read_agg_replacement_chain): Likewise.
16113 * loop-iv.c (get_simple_loop_desc): Likewise.
16114 * lto-cgraph.c (input_node_opt_summary): Likewise.
16115 * lto-section-in.c (lto_new_in_decl_state): Likewise.
16116 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16117 (input_eh_region): Likewise.
16118 (input_eh_lp): Likewise.
16119 (input_cfg): Likewise.
16120 * optabs.c (set_optab_libfunc): Likewise.
16121 (init_tree_optimization_optabs): Likewise.
16122 (set_conv_libfunc): Likewise.
16123 * passes.c (do_per_function_toporder): Likewise.
16124 * rtl.h: Don't use variable_size gty attribute.
16125 * sese.c (if_region_set_false_region): Adjust.
16126 * stringpool.c (gt_pch_save_stringpool): Likewise.
16127 * target-globals.c (save_target_globals): Likewise.
16128 * toplev.c (general_init): Likewise.
16129 * trans-mem.c (record_tm_replacement): Likewise.
16130 (split_bb_make_tm_edge): Likewise.
16131 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16132 * tree-data-ref.h (lambda_vector_new): Likewise.
16133 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16134 * tree-iterator.c (tsi_link_before): Likewise.
16135 (tsi_link_after): Likewise.
16136 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16137 * tree-ssa-loop-niter.c (record_estimate): Likewise.
16138 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
16139 * tree-ssa-operands.h: Don't use variable_size gty attribute.
16140 * tree-ssa.c (init_tree_ssa): Adjust.
16141 * tree-ssanames.c (set_range_info): Likewise.
16142 (get_ptr_info): Likewise.
16143 (duplicate_ssa_name_ptr_info): Likewise.
16144 (duplicate_ssa_name_range_info): Likewise.
16145 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
16146 (unpack_ts_fixed_cst_value_fields): Likewise.
16147 * tree.c (build_fixed): Likewise.
16148 (build_real): Likewise.
16149 (build_string): Likewise.
16150 (decl_priority_info): Likewise.
16151 (decl_debug_expr_insert): Likewise.
16152 (decl_value_expr_insert): Likewise.
16153 (decl_debug_args_insert): Likewise.
16154 (type_hash_add): Likewise.
16155 (build_omp_clause): Likewise.
16156 * ubsan.c (decl_for_type_insert): Likewise.
16157 * varasm.c (get_unnamed_section): Likewise.
16158 (get_noswitch_section): Likewise.
16159 (get_section): Likewise.
16160 (get_block_for_section): Likewise.
16161 (create_block_symbol): Likewise.
16162 (build_constant_desc): Likewise.
16163 (create_constant_pool): Likewise.
16164 (force_const_mem): Likewise.
16165 (record_tm_clone_pair): Likewise.
16166 * varpool.c (varpool_create_empty_node): Likewise.
16167
16168 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16169
16170 * dwarf2out.c (tree_add_const_value_attribute): Call
16171 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
16172 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
16173 instead of ggc_internal_<x>alloc_stat.
16174 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
16175 (ggc_realloc): Likewise.
16176 * ggc-none.c (ggc_internal_alloc): Likewise.
16177 (ggc_internal_cleared_alloc): Likewise.
16178 * ggc-page.c: Likewise.
16179 * ggc.h (ggc_internal_alloc_stat): Likewise.
16180 (ggc_internal_alloc): Remove macro.
16181 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
16182 (ggc_internal_cleared_alloc): Remove macro.
16183 (GGC_RESIZEVEC): Adjust.
16184 (ggc_resizevar): Remove macro.
16185 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
16186 (ggc_internal_cleared_vec_alloc_stat): Likewise.
16187 (ggc_internal_vec_cleared_alloc): Remove macro.
16188 (ggc_alloc_atomic_stat): Drop _stat suffix.
16189 (ggc_alloc_atomic): Remove macro.
16190 (ggc_alloc_cleared_atomic): Remove macro.
16191 (ggc_alloc_string_stat): Drop _stat suffix.
16192 (ggc_alloc_string): Remove macro.
16193 (ggc_alloc_rtx_def_stat): Adjust.
16194 (ggc_alloc_tree_node_stat): Likewise.
16195 (ggc_alloc_cleared_tree_node_stat): Likewise.
16196 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
16197 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16198 * gimple.c (gimple_build_omp_for): Likewise.
16199 (gimple_copy): Likewise.
16200 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16201 * toplev.c (realloc_for_line_map): Adjust.
16202 * tree-data-ref.h (lambda_vector_new): Likewise.
16203 * tree-phinodes.c (allocate_phi_node): Likewise.
16204 * tree.c (grow_tree_vec_stat): Likewise.
16205 * vec.h (va_gc::reserve): Adjust.
16206
16207 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16208
16209 * config/microblaze/microblaze.c (break_handler): New Declaration.
16210 (microblaze_break_function_p,microblaze_is_break_handler): New.
16211 (compute_frame_size): Use microblaze_break_function_p.
16212 Add the test of break_handler.
16213 (microblaze_function_prologue) : Add the test of variable
16214 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16215 (microblaze_function_epilogue) : Add the test of break_handler.
16216 (microblaze_globalize_label) : Add the test of break_handler.
16217 Check the name by BREAK_HANDLER_NAME.
16218
16219 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16220
16221 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16222 microblaze_is_break_handler test.
16223 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16224 Use SYMBOL_REF_DECL.
16225
16226 * config/microblaze/microblaze-protos.h
16227 (microblaze_break_function_p,microblaze_is_break_handler):
16228 New Declaration.
16229
16230 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16231 new MicroBlaze break_handler functions.
16232
16233 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16234
16235 * doc/extend.texi (Size of an asm): Move node text according
16236 to its @menu entry position.
16237
16238 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16239
16240 PR tree-optimization/61140
16241 PR tree-optimization/61150
16242 PR tree-optimization/61197
16243 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16244
16245 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16246
16247 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16248
16249 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16250
16251 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16252 __SIZEOF_INT128__ is defined.
16253
16254 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16255
16256 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16257 (rs6000_delegitimize_address): Use it.
16258
16259 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16260
16261 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16262 inplace argument. Store the new address in the original MEM when true.
16263 * emit-rtl.c (change_address_1): Likewise.
16264 (adjust_address_1, adjust_automodify_address_1, offset_address):
16265 Update accordingly.
16266 * rtl.h (plus_constant): Add an inplace argument.
16267 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16268 when true. Avoid generating (plus X (const_int 0)).
16269 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16270 in-place. Pass true to plus_constant.
16271 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16272
16273 2014-05-16 Dehao Chen <dehao@google.com>
16274
16275 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16276
16277 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16278
16279 PR target/54089
16280 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16281 patterns.
16282 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16283
16284 2014-05-16 Dehao Chen <dehao@google.com>
16285
16286 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16287 optimize_function_for_size_p.
16288 * regs.h (REG_FREQ_FROM_BB): Likewise.
16289
16290 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16291
16292 PR target/51244
16293 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16294 negt_reg_operand cases.
16295 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16296 predicate.
16297 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16298
16299 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16300
16301 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16302 target variants.
16303
16304 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16305
16306 Revert:
16307 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16308
16309 * tree-cfg.c (dump_function_to_file): Dump the return type of
16310 functions, in a line to itself before the function body, mimicking
16311 the layout of a C function.
16312
16313 2014-05-16 Dehao Chen <dehao@google.com>
16314
16315 * cfghooks.c (make_forwarder_block): Use direct computation to
16316 get fall-through edge's count and frequency.
16317
16318 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16319
16320 * config/arc/arc.c (arc_init): Fix typo in error message.
16321 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16322 (split_stack_prologue_scratch_regno): Likewise.
16323 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16324 word from error message.
16325
16326 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16327
16328 * ira-costs.c: Fix typo in comment.
16329
16330 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16331
16332 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16333
16334 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16335
16336 * varpool.c (dump_varpool_node): Dump write-only flag.
16337 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16338 write-only flag.
16339 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16340 write-only variables.
16341 * ipa.c (process_references): New function.
16342 (set_readonly_bit): New function.
16343 (set_writeonly_bit): New function.
16344 (clear_addressable_bit): New function.
16345 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16346 fix handling of aliases.
16347 * cgraph.h (struct varpool_node): Add writeonly flag.
16348
16349 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16350
16351 PR rtl-optimization/60969
16352 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16353 Calculate costs for this case.
16354
16355 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16356
16357 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16358 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16359
16360 2014-05-16 Richard Biener <rguenther@suse.de>
16361
16362 PR tree-optimization/61194
16363 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16364 bool patterns ending in a COND_EXPR.
16365
16366 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16367
16368 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16369
16370 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16371
16372 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16373 where we were unable to cost an RTX.
16374
16375 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16376
16377 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16378 HIGH, LO_SUM.
16379
16380 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16381 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16382
16383 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16384
16385 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16386 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16387
16388 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16389 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16390
16391 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16392 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16393
16394 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16395 operators.
16396
16397 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16398 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16399
16400 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16401 DIV/MOD.
16402
16403 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16404 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16405
16406 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16407 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16408
16409 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16410 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16411
16412 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16413 rotates and shifts.
16414
16415 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16416 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16417
16418 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16419 ZERO_EXTEND and SIGN_EXTEND better.
16420
16421 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16422 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16423
16424 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16425 logical operations.
16426
16427 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16428 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16429
16430 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16431 costs when costing loads and stores to memory.
16432
16433 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16434 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16435
16436 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16437 for SET RTX.
16438
16439 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16440
16441 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16442
16443 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16444 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16445
16446 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16447 to...
16448 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16449 well formed.
16450 (aarch64_rtx_mult_cost): New.
16451 (aarch64_rtx_costs): Use it, refactor as appropriate.
16452
16453 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16454 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16455
16456 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16457 emit instructions, return number of instructions which would
16458 be emitted.
16459 (aarch64_add_constant): Update call to aarch64_build_constant.
16460 (aarch64_output_mi_thunk): Likewise.
16461 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16462 a CONST_DOUBLE.
16463
16464 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16465
16466 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16467 (TARGET_RTX_COSTS): Call it.
16468
16469 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16470
16471 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16472 (cortexa57_vector_cost): Likewise.
16473 (cortexa57_tunings): Use them.
16474
16475 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16476
16477 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16478 (cpu_addrcost_table): Use it.
16479 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16480 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16481 move it.
16482
16483 2014-05-16 Richard Biener <rguenther@suse.de>
16484
16485 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16486 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16487 (visit_phi): Ignore edges marked as not executable.
16488 (class cond_dom_walker): New.
16489 (cond_dom_walker::before_dom_children): Value-number
16490 control statements and mark successor edges as not
16491 executable if possible.
16492 (run_scc_vn): First walk all control statements in
16493 dominator order, marking edges as not executable.
16494 * tree-inline.c (copy_edges_for_bb): Be not confused
16495 about random edge flags.
16496
16497 2014-05-16 Richard Biener <rguenther@suse.de>
16498
16499 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16500
16501 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16502
16503 PR target/61193
16504 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16505 (__TM_simple_begin): Use it.
16506 (__TM_begin): Likewise.
16507
16508 2014-05-15 Martin Jambor <mjambor@suse.cz>
16509
16510 PR ipa/61085
16511 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16512 type_preserved flag when the indirect edge is polymorphic.
16513
16514 2014-05-15 Martin Jambor <mjambor@suse.cz>
16515
16516 PR tree-optimization/61090
16517 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16518 build_ref_for_model.
16519
16520 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16521
16522 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16523 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16524
16525 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16526
16527 PR tree-optimization/61158
16528 * fold-const.c (fold_binary_loc): If X is zero-extended and
16529 shiftc >= prec, make sure zerobits is all ones instead of
16530 invoking undefined behavior.
16531
16532 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16533
16534 * regcprop.h: New file.
16535 * regcprop.c (skip_debug_insn_p): New decl.
16536 (replace_oldest_value_reg): Check skip_debug_insn_p.
16537 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16538 * shrink-wrap.c: Include regcprop.h.
16539 (prepare_shrink_wrap): Call
16540 copyprop_hardreg_forward_bb_without_debug_insn.
16541
16542 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16543
16544 * shrink-wrap.h: Update comment.
16545 * shrink-wrap.c: Update comment.
16546 (next_block_for_reg): Rename to live_edge_for_reg.
16547 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16548 (move_insn_for_shrink_wrap): Split live_edge.
16549 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16550
16551 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16552
16553 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16554 Delete.
16555 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16556 * config/sparc/sparc.md (fptype_ut699): New attribute.
16557 (in_branch_delay): Return false if -mfix-ut699 is specified and
16558 fptype_ut699 is set to single.
16559 (truncdfsf2): Add fptype_ut699 attribute.
16560 (fix_truncdfsi2): Likewise.
16561 (floatsisf2): Change fptype attribute.
16562 (fix_truncsfsi2): Likewise.
16563 (negtf2_notv9): Delete.
16564 (negtf2_v9): Likewise.
16565 (negtf2_hq): New instruction.
16566 (negtf2): New instruction and splitter.
16567 (negdf2_notv9): Rewrite.
16568 (abstf2_notv9): Delete.
16569 (abstf2_hq_v9): Likewise.
16570 (abstf2_v9): Likewise.
16571 (abstf2_hq): New instruction.
16572 (abstf2): New instruction and splitter.
16573 (absdf2_notv9): Rewrite.
16574
16575 2014-05-14 Cary Coutant <ccoutant@google.com>
16576
16577 PR debug/61013
16578 * opts.c (common_handle_option): Don't special-case "-g".
16579 (set_debug_level): Default to at least level 2 with "-g".
16580
16581 2014-05-14 DJ Delorie <dj@redhat.com>
16582
16583 * config/msp430/msp430.c (msp430_builtin): Add
16584 MSP430_BUILTIN_DELAY_CYCLES.
16585 (msp430_init_builtins): Register void __delay_cycles(long long).
16586 (msp430_builtin_decl): Add it.
16587 (cg_magic_constant): New.
16588 (msp430_expand_delay_cycles): New.
16589 (msp430_expand_builtin): Call it.
16590 (msp430_print_operand_raw): Change integer printing from "int" to
16591 HOST_WIDE_INT.
16592 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16593 (delay_cycles_start): New.
16594 (delay_cycles_end): New.
16595 (delay_cycles_32): New.
16596 (delay_cycles_32x): New.
16597 (delay_cycles_16): New.
16598 (delay_cycles_16x): New.
16599 (delay_cycles_2): New.
16600 (delay_cycles_1): New.
16601 * doc/extend.texi: Document __delay_cycles().
16602
16603 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16604
16605 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16606 length attribute computation.
16607
16608 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16609
16610 PR debug/61188
16611 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16612
16613 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16614
16615 PR target/61084
16616 * config/sparc/sparc.md: Fix types of low and high in DI constant
16617 splitter. Use gen_int_mode in some other splitters.
16618
16619 2014-05-14 Martin Jambor <mjambor@suse.cz>
16620
16621 PR ipa/60897
16622 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16623
16624 2014-05-14 James Norris <jnorris@codesourcery.com>
16625
16626 * omp-low.c (expand_parallel_call): Remove shadow variable.
16627 (expand_omp_taskreg): Likewise.
16628
16629 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16630
16631 * common/config/i386/i386-common.c
16632 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16633 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16634 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16635 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16636 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16637 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16638 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16639 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16640 xsavecintrin.h, xsavesintrin.h.
16641 (x86_64-*-*): Ditto.
16642 * config/i386/clflushoptintrin.h: New.
16643 * config/i386/xsavecintrin.h: Ditto.
16644 * config/i386/xsavesintrin.h: Ditto.
16645 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16646 (bit_XSAVES): Ditto.
16647 (bit_XSAVES): Ditto.
16648 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16649 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16650 -mno-clflushopt.
16651 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16652 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16653 OPTION_MASK_ISA_XSAVES.
16654 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16655 -mxsavec, -mxsaves.
16656 (PTA_CLFLUSHOPT) Define.
16657 (PTA_XSAVEC): Ditto.
16658 (PTA_XSAVES): Ditto.
16659 (ix86_option_override_internal): Handle new options.
16660 (ix86_valid_target_attribute_inner_p): Ditto.
16661 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16662 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16663 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16664 (bdesc_special_args): Add __builtin_ia32_xsaves,
16665 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16666 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16667 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16668 (ix86_expand_builtin): Handle new builtins.
16669 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16670 (TARGET_CLFLUSHOPT_P): Ditto.
16671 (TARGET_XSAVEC): Ditto.
16672 (TARGET_XSAVEC_P): Ditto.
16673 (TARGET_XSAVES): Ditto.
16674 (TARGET_XSAVES_P): Ditto.
16675 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16676 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16677 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16678 (ANY_XRSTOR): New.
16679 (ANY_XRSTOR64): Ditto.
16680 (xrstor): Ditto.
16681 (xrstor): Change into <xrstor>.
16682 (xrstor_rex64): Change into <xrstor>_rex64.
16683 (xrstor64): Change into <xrstor>64
16684 (clflushopt): New.
16685 * config/i386/i386.opt (mclflushopt): New.
16686 (mxsavec): Ditto.
16687 (mxsaves): Ditto.
16688 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16689 xsavecintrin.h.
16690 * doc/invoke.texi: Document new options.
16691
16692 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16693
16694 PR rtl-optimization/60866
16695 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16696 Default it to -1. Pass it down to init_simplejump_data.
16697 (init_simplejump_data): New parameter old_seqno. Pass it down
16698 to get_seqno_for_a_jump.
16699 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16700 initializing new jump seqno as a last resort. Add comment.
16701 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16702 jump and pass it down to sel_init_new_insn.
16703 (sel_redirect_edge_and_branch_force): Likewise.
16704
16705 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16706
16707 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16708 shifted values to avoid build warning.
16709
16710 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16711
16712 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16713 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16714 (cfg_layout_merge_blocks): Likewise.
16715 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16716
16717 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16718
16719 PR rtl-optimization/60901
16720 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16721 bb predecessor belongs to the same scheduling region. Adjust comment.
16722
16723 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16724
16725 * doc/sourcebuild.texi: (dfp_hw): Document.
16726 (p8vector_hw): Likewise.
16727 (powerpc_eabi_ok): Likewise.
16728 (powerpc_elfv2): Likewise.
16729 (powerpc_htm_ok): Likewise.
16730 (ppc_recip_hw): Likewise.
16731 (vsx_hw): Likewise.
16732
16733 2014-05-13 Cary Coutant <ccoutant@google.com>
16734
16735 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16736
16737 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16738
16739 * gengtype-parse.c (require3): Eliminate in favor of...
16740 (require4): New.
16741 (require_template_declaration): Update to support optional single *
16742 on a type.
16743
16744 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16745 (create_user_defined_type): Handle a single level of explicit
16746 pointerness within template arguments.
16747 (struct write_types_data): Add field "kind".
16748 (filter_type_name): Handle "*" character.
16749 (write_user_func_for_structure_ptr): Require a write_types_data
16750 rather than just a prefix string, so that we can look up the kind
16751 of the wtd and use it as an index into wrote_user_func_for_ptr,
16752 ensuring that such functions are written at most once. Support
16753 subclasses by invoking the marking function of the ultimate base class.
16754 (write_user_func_for_structure_body): Require a write_types_data
16755 rather than just a prefix string, so that we can pass this to
16756 write_user_func_for_structure_ptr.
16757 (write_func_for_structure): Likewise.
16758 (ggc_wtd): Add initializer of new "kind" field.
16759 (pch_wtd): Likewise.
16760
16761 * gengtype.h (enum write_types_kinds): New.
16762 (struct type): Add field wrote_user_func_for_ptr to the "s"
16763 union member.
16764
16765 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16766
16767 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16768 instead of const_binop.
16769 (fold_binary_loc): Likewise.
16770
16771 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16772
16773 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16774 calculation to match get_ref_base_and_extent.
16775
16776 2014-05-13 Catherine Moore <clm@codesourcery.com>
16777 Sandra Loosemore <sandra@codesourcery.com>
16778
16779 * configure.ac: Fix assembly for explicit JALR relocation check.
16780 * configure: Regenerate.
16781
16782 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16783
16784 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16785 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16786 Remove associated type declarations and initialisations.
16787 (arm_expand_neon_builtin): Likewise.
16788 (neon_emit_pair_result_insn): Delete.
16789 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16790 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16791 (neon_vzip<mode>): Likewise.
16792 (neon_vuzp<mode>): Likewise.
16793
16794 2014-05-13 Richard Biener <rguenther@suse.de>
16795
16796 PR ipa/60973
16797 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16798 it needs revisiting whether the call still may be tail-called.
16799
16800 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16801
16802 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16803 * rtl.h (block_symbol): Reduce number of fields to 2.
16804 (rtx_def): Add u2.symbol_ref_flags.
16805 (SYMBOL_REF_FLAGS): Use it.
16806 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16807 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16808 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16809 Lower index of SYMBOL_REF_DATA.
16810 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16811 Print SYMBOL_REF_FLAGS at the same time.
16812 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16813
16814 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16815
16816 * rtl.def (VAR_LOCATION): Remove "i" field.
16817 * rtl.h (rtx_def): Add u2.var_location_status.
16818 (PAT_VAR_LOCATION_STATUS): Use it.
16819 (gen_rtx_VAR_LOCATION): Declare.
16820 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16821 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16822 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16823
16824 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16825
16826 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16827 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16828
16829 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16830
16831 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16832 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16833 * rtl.h (rtx_def): Add insn_uid to u2 field.
16834 (RTX_FLAG_CHECK8): Delete in favor of...
16835 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16836 (INSN_DELETED_P): Update accordingly.
16837 (INSN_UID): Use u2.insn_uid.
16838 (INSN_CHAIN_CODE_P): Define.
16839 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16840 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16841 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16842 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16843 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16844 indices accordingly.
16845 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16846 Update indices for insn-chain rtxes.
16847 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16848 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16849 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16850 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16851 * combine.c (try_combine): Likewise.
16852 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16853
16854 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16855
16856 * rtl.def (REG): Remove middle field.
16857 * rtl.h (rtx_def): Add orignal_regno to u2.
16858 (ORIGINAL_REGNO): Use it instead of field 1.
16859 (REG_ATTRS): Lower field index accordingly.
16860 * gengtype.c (adjust_field_rtx_def): Remove handling of
16861 ORIGINAL_REGNO. Move REG_ATTRS index down.
16862 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16863 code that prints the REGNO.
16864
16865 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16866
16867 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16868 GENERATOR_FILE.
16869
16870 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16871
16872 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16873
16874 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16875
16876 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16877 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16878
16879 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16880
16881 * config/aarch64/aarch64-protos.h
16882 (aarch64_hard_regno_caller_save_mode): New prototype.
16883 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16884 New function.
16885 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16886
16887 2014-05-13 Christian Bruel <christian.bruel@st.com>
16888
16889 * target.def (mode_switching): New hook vector.
16890 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16891 (mode_exit, modepriority_to_mode): Likewise.
16892 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16893 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16894 * target.h: Include tm.h and hard-reg-set.h.
16895 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16896 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16897 * doc/tm.texi Regenerate.
16898 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16899 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16900 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16901 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16902 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16903 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16904 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16905 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16906 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16907 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16908 (ix86_emit_mode_set): Hookify.
16909 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16910 Delete.
16911 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16912 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16913 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16914 (epiphany_mode_priority_to_mode): Remove declaration.
16915 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16916 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16917 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16918 Likewise.
16919 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16920 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16921 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16922
16923 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16924
16925 PR target/61060
16926 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16927 is const0_rtx, return immediately. Don't test count == 0 when
16928 it is always true.
16929
16930 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16931
16932 * Makefile.in: add shrink-wrap.o.
16933 * config/i386/i386.c: include "shrink-wrap.h"
16934 * function.c: Likewise.
16935 (requires_stack_frame_p, next_block_for_reg,
16936 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16937 dup_block_and_redirect): Move to shrink-wrap.c
16938 (thread_prologue_and_epilogue_insns): Extract three code segments
16939 as functions in shrink-wrap.c
16940 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16941 shrink-wrap.h
16942 * shrink-wrap.c: New file.
16943 * shrink-wrap.h: New file.
16944
16945 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16946
16947 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16948 reference to Solaris.
16949
16950 2014-05-12 Mike Stump <mikestump@comcast.net>
16951
16952 PR other/31778
16953 * genattrtab.c (filename): Add.
16954 (convert_set_attr_alternative): Improve error message.
16955 (check_defs): Restore read_md_filename for error messages.
16956 (gen_insn): Save filename.
16957
16958 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16959
16960 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16961 -fno-local-ivars and -fivar-visibility.
16962 * c-family/c.opt: Make -Wshadow also implicitly enable
16963 -Wshadow-ivar.
16964
16965 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16966
16967 * doc/tm.texi: Remove reference to deleted macro.
16968 * doc/tm.texi.in: Likewise.
16969
16970 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16971
16972 PR target/60991
16973 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16974 to restore Y.
16975
16976 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16977
16978 PR libgcc/61152
16979 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16980 * config/arm/aout.h (License): Same.
16981 * config/arm/bpabi.h (License): Same.
16982 * config/arm/elf.h (License): Same.
16983 * config/arm/linux-elf.h (License): Same.
16984 * config/arm/linux-gas.h (License): Same.
16985 * config/arm/netbsd-elf.h (License): Same.
16986 * config/arm/uclinux-eabi.h (License): Same.
16987 * config/arm/uclinux-elf.h (License): Same.
16988 * config/arm/vxworks.h (License): Same.
16989
16990 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16991
16992 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16993 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16994 number of operands to 3.
16995 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16996 * tree-nested.c (convert_nonlocal_omp_clauses,
16997 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16998 * gimplify.c (gimplify_scan_omp_clauses): Handle
16999 OMP_CLAUSE_LINEAR_STMT.
17000 * omp-low.c (lower_rec_input_clauses): Fix typo.
17001 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
17002 cast between Fortran boolean_type_node and C _Bool if
17003 needed.
17004
17005 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
17006
17007 PR tree-optimization/61136
17008 * wide-int.h (multiple_of_p): Define a version that doesn't return
17009 the quotient.
17010 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
17011 integer_zerop/const_binop pair.
17012 (multiple_of_p): Likewise, converting both operands to widest_int
17013 precision.
17014
17015 2014-05-09 Teresa Johnson <tejohnson@google.com>
17016
17017 * cgraphunit.c (analyze_functions): Use correct dump file.
17018
17019 2014-05-09 Florian Weimer <fweimer@redhat.com>
17020
17021 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
17022 expand_used_vars.
17023 (stack_protect_return_slot_p): New function.
17024 (expand_used_vars): Call stack_protect_decl_p and
17025 stack_protect_return_slot_p for -fstack-protector-strong.
17026
17027 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
17028 Andrew Haley <aph@redhat.com>
17029 Richard Sandiford <rdsandiford@googlemail.com>
17030
17031 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
17032 pages.
17033
17034 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
17035
17036 PR middle-end/61111
17037 * fold-const.c (fold_binary_loc): Changed width of mask.
17038
17039 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17040
17041 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
17042 unsigned int initializers for regno_in, regno_out.
17043
17044 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17045
17046 PR target/61055
17047 * config/avr/avr.md (cc): Add new attribute set_vzn.
17048 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
17049 Set cc insn attribute to set_vzn instead of set_zn for alternatives
17050 with INC, DEC or NEG.
17051 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
17052 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
17053 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
17054
17055 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17056
17057 Revert:
17058 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17059
17060 * wide-int.cc (UTItype): Define.
17061 (UDWtype): Define for appropriate W_TYPE_SIZE.
17062
17063 2014-05-09 Richard Biener <rguenther@suse.de>
17064
17065 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
17066 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
17067 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
17068 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
17069 ssa_propagate): Adjust.
17070
17071 2014-05-08 Jeff Law <law@redhat.com>
17072
17073 PR tree-optimization/61009
17074 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
17075 tri-state rather than a boolean. When a block is too big to
17076 thread through, inform caller via negative return value.
17077 (thread_across_edge): If a block was too big for normal threading,
17078 then it's too big for a joiner too, so remove temporary equivalences
17079 and return immediately.
17080
17081 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17082 Matthias Klose <doko@ubuntu.com>
17083
17084 PR driver/61106
17085 * optc-gen.awk: Fix option handling for -Wunused-parameter.
17086
17087 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17088
17089 PR target/59952
17090 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
17091
17092 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17093
17094 PR target/61092
17095 * config/alpha/alpha.c: Include gimple-iterator.h.
17096 (alpha_gimple_fold_builtin): New function. Move
17097 ALPHA_BUILTIN_UMULH folding from ...
17098 (alpha_fold_builtin): ... here.
17099 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
17100
17101 2014-05-08 Wei Mi <wmi@google.com>
17102
17103 PR target/58066
17104 * config/i386/i386.c (ix86_compute_frame_layout): Update
17105 preferred_stack_boundary for call, expanded from tls descriptor.
17106 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
17107 to depend on SP register.
17108 (*tls_local_dynamic_base_32_gnu): Ditto.
17109 (*tls_local_dynamic_32_once): Ditto.
17110 (tls_global_dynamic_64_<mode>): Set
17111 ix86_tls_descriptor_calls_expanded_in_cfun.
17112 (tls_local_dynamic_base_64_<mode>): Ditto.
17113 (tls_global_dynamic_32): Set
17114 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
17115 to depend on SP register.
17116 (tls_local_dynamic_base_32): Ditto.
17117
17118 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17119
17120 * config/arm/arm_neon.h: Update comment.
17121 * config/arm/neon-docgen.ml: Delete.
17122 * config/arm/neon-gen.ml: Delete.
17123 * doc/arm-neon-intrinsics.texi: Update comment.
17124
17125 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17126
17127 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
17128 and v4sf versions.
17129 (vand, vorr, veor, vorn, vbic): Remove.
17130 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
17131 iterator.
17132 (neon_vsub_unspec): Likewise.
17133 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
17134
17135 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17136
17137 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
17138 (vadd_s16): Likewise.
17139 (vadd_s32): Likewise.
17140 (vadd_f32): Likewise.
17141 (vadd_u8): Likewise.
17142 (vadd_u16): Likewise.
17143 (vadd_u32): Likewise.
17144 (vadd_s64): Likewise.
17145 (vadd_u64): Likewise.
17146 (vaddq_s8): Likewise.
17147 (vaddq_s16): Likewise.
17148 (vaddq_s32): Likewise.
17149 (vaddq_s64): Likewise.
17150 (vaddq_f32): Likewise.
17151 (vaddq_u8): Likewise.
17152 (vaddq_u16): Likewise.
17153 (vaddq_u32): Likewise.
17154 (vaddq_u64): Likewise.
17155 (vmul_s8): Likewise.
17156 (vmul_s16): Likewise.
17157 (vmul_s32): Likewise.
17158 (vmul_f32): Likewise.
17159 (vmul_u8): Likewise.
17160 (vmul_u16): Likewise.
17161 (vmul_u32): Likewise.
17162 (vmul_p8): Likewise.
17163 (vmulq_s8): Likewise.
17164 (vmulq_s16): Likewise.
17165 (vmulq_s32): Likewise.
17166 (vmulq_f32): Likewise.
17167 (vmulq_u8): Likewise.
17168 (vmulq_u16): Likewise.
17169 (vmulq_u32): Likewise.
17170 (vsub_s8): Likewise.
17171 (vsub_s16): Likewise.
17172 (vsub_s32): Likewise.
17173 (vsub_f32): Likewise.
17174 (vsub_u8): Likewise.
17175 (vsub_u16): Likewise.
17176 (vsub_u32): Likewise.
17177 (vsub_s64): Likewise.
17178 (vsub_u64): Likewise.
17179 (vsubq_s8): Likewise.
17180 (vsubq_s16): Likewise.
17181 (vsubq_s32): Likewise.
17182 (vsubq_s64): Likewise.
17183 (vsubq_f32): Likewise.
17184 (vsubq_u8): Likewise.
17185 (vsubq_u16): Likewise.
17186 (vsubq_u32): Likewise.
17187 (vsubq_u64): Likewise.
17188 (vand_s8): Likewise.
17189 (vand_s16): Likewise.
17190 (vand_s32): Likewise.
17191 (vand_u8): Likewise.
17192 (vand_u16): Likewise.
17193 (vand_u32): Likewise.
17194 (vand_s64): Likewise.
17195 (vand_u64): Likewise.
17196 (vandq_s8): Likewise.
17197 (vandq_s16): Likewise.
17198 (vandq_s32): Likewise.
17199 (vandq_s64): Likewise.
17200 (vandq_u8): Likewise.
17201 (vandq_u16): Likewise.
17202 (vandq_u32): Likewise.
17203 (vandq_u64): Likewise.
17204 (vorr_s8): Likewise.
17205 (vorr_s16): Likewise.
17206 (vorr_s32): Likewise.
17207 (vorr_u8): Likewise.
17208 (vorr_u16): Likewise.
17209 (vorr_u32): Likewise.
17210 (vorr_s64): Likewise.
17211 (vorr_u64): Likewise.
17212 (vorrq_s8): Likewise.
17213 (vorrq_s16): Likewise.
17214 (vorrq_s32): Likewise.
17215 (vorrq_s64): Likewise.
17216 (vorrq_u8): Likewise.
17217 (vorrq_u16): Likewise.
17218 (vorrq_u32): Likewise.
17219 (vorrq_u64): Likewise.
17220 (veor_s8): Likewise.
17221 (veor_s16): Likewise.
17222 (veor_s32): Likewise.
17223 (veor_u8): Likewise.
17224 (veor_u16): Likewise.
17225 (veor_u32): Likewise.
17226 (veor_s64): Likewise.
17227 (veor_u64): Likewise.
17228 (veorq_s8): Likewise.
17229 (veorq_s16): Likewise.
17230 (veorq_s32): Likewise.
17231 (veorq_s64): Likewise.
17232 (veorq_u8): Likewise.
17233 (veorq_u16): Likewise.
17234 (veorq_u32): Likewise.
17235 (veorq_u64): Likewise.
17236 (vbic_s8): Likewise.
17237 (vbic_s16): Likewise.
17238 (vbic_s32): Likewise.
17239 (vbic_u8): Likewise.
17240 (vbic_u16): Likewise.
17241 (vbic_u32): Likewise.
17242 (vbic_s64): Likewise.
17243 (vbic_u64): Likewise.
17244 (vbicq_s8): Likewise.
17245 (vbicq_s16): Likewise.
17246 (vbicq_s32): Likewise.
17247 (vbicq_s64): Likewise.
17248 (vbicq_u8): Likewise.
17249 (vbicq_u16): Likewise.
17250 (vbicq_u32): Likewise.
17251 (vbicq_u64): Likewise.
17252 (vorn_s8): Likewise.
17253 (vorn_s16): Likewise.
17254 (vorn_s32): Likewise.
17255 (vorn_u8): Likewise.
17256 (vorn_u16): Likewise.
17257 (vorn_u32): Likewise.
17258 (vorn_s64): Likewise.
17259 (vorn_u64): Likewise.
17260 (vornq_s8): Likewise.
17261 (vornq_s16): Likewise.
17262 (vornq_s32): Likewise.
17263 (vornq_s64): Likewise.
17264 (vornq_u8): Likewise.
17265 (vornq_u16): Likewise.
17266 (vornq_u32): Likewise.
17267 (vornq_u64): Likewise.
17268
17269 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17270
17271 * wide-int.cc (UTItype): Define.
17272 (UDWtype): Define for appropriate W_TYPE_SIZE.
17273
17274 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17275
17276 PR tree-optimization/59100
17277 * tree-ssa-phiopt.c: Include tree-inline.h.
17278 (neutral_element_p, absorbing_element_p): New functions.
17279 (value_replacement): Handle conditional binary operations with a
17280 neutral or absorbing element.
17281
17282 2014-05-08 Richard Biener <rguenther@suse.de>
17283
17284 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17285 folding the expression.
17286 (valueize_expr): Remove.
17287 (visit_reference_op_load): Do not valueize the result of
17288 vn_get_expr_for.
17289 (simplify_binary_expression): Likewise.
17290 (simplify_unary_expression): Likewise.
17291
17292 2014-05-08 Richard Biener <rguenther@suse.de>
17293
17294 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17295 looking at TYPE_ARG_TYPES.
17296
17297 2014-05-08 Richard Biener <rguenther@suse.de>
17298
17299 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17300 pointer propagation special-case.
17301
17302 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17303
17304 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17305 core part of address expressions.
17306
17307 2014-05-08 Alan Modra <amodra@gmail.com>
17308
17309 PR target/60737
17310 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17311 loads and stores when -mno-strict-align at any alignment.
17312 (expand_block_clear): Similarly. Also correct calculation of
17313 instruction count.
17314
17315 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17316
17317 PR middle-end/39246
17318 * tree-complex.c (expand_complex_move): Keep line info when expanding
17319 complex move.
17320 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17321 of complex expression. Use new argument to display correct location
17322 for values coming from phi statement.
17323 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17324 (warn_uninitialized_phi): Pass location of phi argument to
17325 warn_uninit.
17326 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17327 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17328
17329 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17330
17331 * config/rs6000/predicates.md (indexed_address_mem): New.
17332 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17333 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17334 fpstore_ux, fpstore_u.
17335 (sign_extend, indexed, update): New.
17336 (cell_micro): Adjust.
17337 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17338 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17339 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17340 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17341 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17342 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17343 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17344 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17345 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17346 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17347 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17348 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17349 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17350 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17351 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17352
17353 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17354 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17355 *vsx_extract_<mode>_store): Adjust.
17356 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17357 is_cracked_insn, insn_must_be_first_in_group,
17358 insn_must_be_last_in_group): Adjust.
17359
17360 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17361 Adjust.
17362 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17363 ppc440-fpstore): Adjust.
17364 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17365 ppc476-fpstore): Adjust.
17366 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17367 ppc601-fpstore): Adjust.
17368 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17369 Adjust.
17370 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17371 Adjust.
17372 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17373 ppc7450-fpstore): Adjust.
17374 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17375 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17376 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17377 Adjust.
17378 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17379 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17380 cell-fpstore, cell-fpstore-update): Adjust.
17381 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17382 ppce300c3_store, ppce300c3_fpstore): Adjust.
17383 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17384 e500mc_fpstore): Adjust.
17385 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17386 e500mc64_store, e500mc64_fpstore): Adjust.
17387 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17388 e5500_fpstore): Adjust.
17389 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17390 e6500_fpstore): Adjust.
17391 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17392 Adjust.
17393 * config/rs6000/power4.md (power4-load, power4-load-ext,
17394 power4-load-ext-update, power4-load-ext-update-indexed,
17395 power4-load-update-indexed, power4-load-update, power4-fpload,
17396 power4-fpload-update, power4-store, power4-store-update,
17397 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17398 Adjust.
17399 * config/rs6000/power5.md (power5-load, power5-load-ext,
17400 power5-load-ext-update, power5-load-ext-update-indexed,
17401 power5-load-update-indexed, power5-load-update, power5-fpload,
17402 power5-fpload-update, power5-store, power5-store-update,
17403 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17404 Adjust.
17405 * config/rs6000/power6.md (power6-load, power6-load-ext,
17406 power6-load-update, power6-load-update-indexed,
17407 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17408 power6-fpload-update, power6-store, power6-store-update,
17409 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17410 Adjust.
17411 * config/rs6000/power7.md (power7-load, power7-load-ext,
17412 power7-load-update, power7-load-update-indexed,
17413 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17414 power7-fpload-update, power7-store, power7-store-update,
17415 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17416 Adjust.
17417 * config/rs6000/power8.md (power8-load, power8-load-update,
17418 power8-load-ext, power8-load-ext-update, power8-fpload,
17419 power8-fpload-update, power8-store, power8-store-update-indexed,
17420 power8-fpstore, power8-fpstore-update): Adjust.
17421 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17422 Adjust.
17423 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17424 titan_lsu_store, titan_lsu_fpstore): Adjust.
17425 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17426
17427 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17428
17429 PR target/60884
17430 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17431 unrolled byte insns. Emit address increments after move insns.
17432
17433 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17434
17435 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17436 const_gimple, rather than a gimple.
17437 (gimple_call_builtin_p): Likewise, for the three variants.
17438
17439 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17440 (gimple_call_builtin_p): Likewise, for the three variants.
17441
17442 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17443
17444 PR tree-optimization/61095
17445 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17446
17447 2014-05-07 Richard Biener <rguenther@suse.de>
17448
17449 PR tree-optimization/61034
17450 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17451 (maybe_skip_until): Use translate to take into account
17452 lattices when trying to do disambiguations.
17453 (get_continuation_for_phi_1): Likewise.
17454 (get_continuation_for_phi): Adjust for added translate arguments.
17455 (walk_non_aliased_vuses): Likewise.
17456 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17457 (walk_non_aliased_vuses): Likewise.
17458 (call_may_clobber_ref_p_1): Declare.
17459 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17460 calls. Stop early if we are only supposed to disambiguate.
17461 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17462
17463 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17464
17465 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17466 Emit an error when the function has arguments.
17467
17468 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17469
17470 * cfgloop.h (unswitch_loops): Remove.
17471 * doc/passes.texi: Remove references to loop-unswitch.c
17472 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17473
17474 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17475
17476 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17477 check for loads group of length 3.
17478 (vect_permute_load_chain): New permutations for loads group of
17479 length 3.
17480 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17481 of vec_perm_shuffle for the new permutations.
17482
17483 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17484
17485 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17486 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17487 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17488 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17489 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17490 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17491 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17492 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17493
17494 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17495
17496 * loop-unswitch.c: Delete.
17497
17498 2014-05-07 Richard Biener <rguenther@suse.de>
17499
17500 * config.gcc: Always set need_64bit_hwint to yes.
17501
17502 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17503
17504 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17505 of using optimize_size.
17506
17507 2014-05-06 Mike Stump <mikestump@comcast.net>
17508
17509 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17510
17511 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17512
17513 * config/i386/sse.md (*mov<mode>_internal)
17514 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17515 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17516 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17517 (*<code><mode>3, *andnot<mode>3<mask_name>)
17518 (<mask_codefor><code><mode>3<mask_name>): Only consider
17519 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17520
17521 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17522
17523 Revert:
17524 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17525
17526 * lra-constraints.c (valid_address_p): Move earlier in file.
17527 Add a constraint argument to the address_info version.
17528 (satisfies_memory_constraint_p): New function.
17529 (satisfies_address_constraint_p): Likewise.
17530 (process_alt_operands, curr_insn_transform): Use them.
17531 (process_address): Pass the constraint to valid_address_p when
17532 checking address operands.
17533
17534 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17535
17536 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17537 to their respective blocks. Fix inadvertent use of "node".
17538
17539 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17540
17541 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17542 out from...
17543 (init_emit_once): ...here.
17544 * rtl.h (init_derived_machine_modes): Declare.
17545 * toplev.c (do_compile): Call it even if no_backend.
17546
17547 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17548 Mike Stump <mikestump@comcast.net>
17549 Richard Sandiford <rdsandiford@googlemail.com>
17550 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17551
17552 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17553 (rtx_equal_for_memref_p): Update comment.
17554 (adjust_offset_for_component_ref): Use wide-int interfaces.
17555 * builtins.c (get_object_alignment_2): Likewise.
17556 (c_readstr): Likewise.
17557 (target_char_cast): Add comment.
17558 (determine_block_size): Use wide-int interfaces.
17559 (expand_builtin_signbit): Likewise.
17560 (fold_builtin_int_roundingfn): Likewise.
17561 (fold_builtin_bitop): Likewise.
17562 (fold_builtin_bswap): Likewise.
17563 (fold_builtin_logarithm): Use signop.
17564 (fold_builtin_pow): Likewise.
17565 (fold_builtin_memory_op): Use wide-int interfaces.
17566 (fold_builtin_object_size): Likewise.
17567 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17568 nb_iterations_estimate.
17569 (record_niter_bound): Use wide-int interfaces.
17570 (get_estimated_loop_iterations_int): Likewise.
17571 (get_estimated_loop_iterations): Likewise.
17572 (get_max_loop_iterations): Likewise.
17573 * cfgloop.h: Include wide-int.h.
17574 (struct nb_iter_bound): Change bound to widest_int.
17575 (struct loop): Change nb_iterations_upper_bound and
17576 nb_iterations_estimate to widest_int.
17577 (record_niter_bound): Switch to use widest_int.
17578 (get_estimated_loop_iterations): Likewise.
17579 (get_max_loop_iterations): Likewise.
17580 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17581 update for wide-int.
17582 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17583 * combine.c (try_combine): Likewise.
17584 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17585 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17586 interfaces.
17587 (aarch64_float_const_representable_p): Likewise.
17588 * config/arc/arc.c: Include wide-int.h.
17589 (arc_can_use_doloop_p): Use wide-int interfaces.
17590 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17591 (vfp3_const_double_index): Likewise.
17592 * config/avr/avr.c (avr_out_round): Likewise.
17593 (avr_fold_builtin): Likewise.
17594 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17595 (bfin_can_use_doloop_p): Likewise.
17596 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17597 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17598 * config/i386/i386.c: Include wide-int.h.
17599 (ix86_data_alignment): Use wide-int interfaces.
17600 (ix86_local_alignment): Likewise.
17601 (ix86_emit_swsqrtsf): Update real_from_integer.
17602 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17603 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17604 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17605 (zero_constant): Likewise.
17606 (input_operand): Likewise.
17607 (splat_input_operand): Likewise.
17608 (non_logical_cint_operand): Change const_double to const_wide_int.
17609 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17610 (easy_altivec_constant): Remove comment.
17611 (paired_expand_vector_init): Use CONSTANT_P.
17612 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17613 (rs6000_emit_move): Update checks.
17614 (rs6000_aggregate_candidate): Use wide-int interfaces.
17615 (rs6000_expand_ternop_builtin): Likewise.
17616 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17617 (rs6000_assemble_integer): Likewise.
17618 (rs6000_hash_constant): Likewise.
17619 (output_toc): Likewise.
17620 (rs6000_rtx_costs): Likewise.
17621 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17622 * config/rs6000/rs6000-c.c: Include wide-int.h.
17623 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17624 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17625 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17626 Handle CONST_WIDE_INT.
17627 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17628 Use tree_fits_uhwi_p.
17629 * config/sparc/sparc.c: Include wide-int.h.
17630 (sparc_fold_builtin): Use wide-int interfaces.
17631 * config/vax/vax.c: Include wide-int.h.
17632 (vax_float_literal): Use real_from_integer.
17633 * coretypes.h (struct hwivec_def): New.
17634 (hwivec): New.
17635 (const_hwivec): New.
17636 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17637 (equiv_constant): Handle CONST_WIDE_INT.
17638 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17639 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17640 * dbxout.c (stabstr_U): Use wide-int interfaces.
17641 (dbxout_type): Update to use cst_fits_shwi_p.
17642 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17643 (TARGET_SUPPORTS_WIDE_INT): Add default.
17644 * dfp.c: Include wide-int.h.
17645 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17646 decimal_real_to_integer.
17647 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17648 decimal_real_to_integer.
17649 * doc/generic.texi (Constant expressions): Update for wide_int.
17650 * doc/rtl.texi (const_double): Likewise.
17651 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17652 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17653 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17654 (REAL_VALUE_FROM_INT): Remove.
17655 (TARGET_SUPPORTS_WIDE_INT): New.
17656 * doc/tm.texi: Regenerate.
17657 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17658 * double-int.h: Include wide-int.h.
17659 (struct wi::int_traits): New.
17660 * dwarf2out.c (get_full_len): New.
17661 (dw_val_equal_p): Add case dw_val_class_wide_int.
17662 (size_of_loc_descr): Likewise.
17663 (output_loc_operands): Likewise.
17664 (insert_double): Remove.
17665 (insert_wide_int): New.
17666 (add_AT_wide): New.
17667 (print_die): Add case dw_val_class_wide_int.
17668 (attr_checksum): Likewise.
17669 (attr_checksum_ordered): Likewise.
17670 (same_dw_val_p): Likewise.
17671 (size_of_die): Likewise.
17672 (value_format): Likewise.
17673 (output_die): Likewise.
17674 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17675 Use wide-int.
17676 (clz_loc_descriptor): Use wide-int interfaces.
17677 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17678 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17679 (round_up_to_align): Use wide-int interfaces.
17680 (field_byte_offset): Likewise.
17681 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17682 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17683 CONST_DOUBLE handling. Use wide-int interfaces.
17684 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17685 (gen_enumeration_type_die): Use add_AT_wide.
17686 (hash_loc_operands): Add case dw_val_class_wide_int.
17687 (compare_loc_operands): Likewise.
17688 * dwarf2out.h: Include wide-int.h.
17689 (wide_int_ptr): New.
17690 (enum dw_val_class): Add dw_val_class_wide_int.
17691 (struct dw_val_struct): Add val_wide.
17692 * emit-rtl.c (const_wide_int_htab): New.
17693 (const_wide_int_htab_hash): New.
17694 (const_wide_int_htab_eq): New.
17695 (lookup_const_wide_int): New.
17696 (const_double_htab_hash): Use wide-int interfaces.
17697 (const_double_htab_eq): Likewise.
17698 (rtx_to_double_int): Conditionally compile for wide-int.
17699 (immed_double_int_const): Rename to immed_wide_int_const and
17700 update for wide-int.
17701 (immed_double_const): Conditionally compile for wide-int.
17702 (init_emit_once): Use wide-int interfaces.
17703 * explow.c (plus_constant): Likewise.
17704 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17705 (lshift_value): Use wide-int interfaces.
17706 (expand_mult): Likewise.
17707 (choose_multiplier): Likewise.
17708 (expand_smod_pow2): Likewise.
17709 (make_tree): Likewise.
17710 * expr.c (convert_modes): Consolidate handling of constants.
17711 Use wide-int interfaces.
17712 (emit_group_load_1): Add note.
17713 (store_expr): Update comment.
17714 (get_inner_reference): Use wide-int interfaces.
17715 (expand_constructor): Update comment.
17716 (expand_expr_real_2): Use wide-int interfaces.
17717 (expand_expr_real_1): Likewise.
17718 (reduce_to_bit_field_precision): Likewise.
17719 (const_vector_from_tree): Likewise.
17720 * final.c: Include wide-int-print.h.
17721 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17722 * fixed-value.c: Include wide-int.h.
17723 (fixed_from_string): Use wide-int interfaces.
17724 (fixed_to_decimal): Likewise.
17725 (fixed_convert_from_real): Likewise.
17726 (real_convert_from_fixed): Likewise.
17727 * fold-const.h (mem_ref_offset): Return an offset_int.
17728 (div_if_zero_remainder): Remove code parameter.
17729 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17730 Use wide-int interfaces.
17731 (may_negate_without_overflow_p): Use wide-int interfaces.
17732 (negate_expr_p): Likewise.
17733 (fold_negate_expr): Likewise.
17734 (int_const_binop_1): Likewise.
17735 (const_binop): Likewise.
17736 (fold_convert_const_int_from_int): Likewise.
17737 (fold_convert_const_int_from_real): Likewise.
17738 (fold_convert_const_int_from_fixed): Likewise.
17739 (fold_convert_const_fixed_from_int): Likewise.
17740 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17741 (sign_bit_p): Use wide-int interfaces.
17742 (make_range_step): Likewise.
17743 (build_range_check): Likewise. Pass an integer of the correct type
17744 instead of using integer_one_node.
17745 (range_predecessor): Pass an integer of the correct type instead
17746 of using integer_one_node.
17747 (range_successor): Likewise.
17748 (merge_ranges): Likewise.
17749 (unextend): Use wide-int interfaces.
17750 (extract_muldiv_1): Likewise.
17751 (fold_div_compare): Likewise.
17752 (fold_single_bit_test): Likewise.
17753 (fold_sign_changed_comparison): Likewise.
17754 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17755 (fold_plusminus_mult_expr): Use wide-int interfaces.
17756 (native_encode_int): Likewise.
17757 (native_interpret_int): Likewise.
17758 (fold_unary_loc): Likewise.
17759 (pointer_may_wrap_p): Likewise.
17760 (size_low_cst): Likewise.
17761 (mask_with_tz): Likewise.
17762 (fold_binary_loc): Likewise.
17763 (fold_ternary_loc): Likewise.
17764 (multiple_of_p): Likewise.
17765 (tree_call_nonnegative_warnv_p): Update calls to
17766 tree_int_cst_min_precision and real_from_integer.
17767 (fold_negate_const): Use wide-int interfaces.
17768 (fold_abs_const): Likewise.
17769 (fold_relational_const): Use tree_int_cst_lt.
17770 (round_up_loc): Use wide-int interfaces.
17771 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17772 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17773 * gengtype.c: Remove include of double-int.h.
17774 (do_typedef): Use wide-int interfaces.
17775 (open_base_files): Add wide-int.h.
17776 (main): Add offset_int and widest_int typedefs.
17777 * gengtype-lex.l: Handle "^".
17778 (CXX_KEYWORD): Add "static".
17779 * gengtype-parse.c (require3): New.
17780 (require_template_declaration): Handle constant template arguments
17781 and nested templates.
17782 * gengtype-state.c: Don't include "double-int.h".
17783 * genpreds.c (write_one_predicate_function): Update comment.
17784 (write_tm_constrs_h): Add check for hval and lval use in
17785 CONST_WIDE_INT.
17786 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17787 (add_to_sequence): Likewise.
17788 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17789 and const_double_operand.
17790 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17791 interfaces.
17792 * gimple-fold.c (get_base_constructor): Likewise.
17793 (fold_array_ctor_reference): Likewise.
17794 (fold_nonarray_ctor_reference): Likewise.
17795 (fold_const_aggregate_ref_1): Likewise.
17796 (gimple_val_nonnegative_real_p): Likewise.
17797 (gimple_fold_indirect_ref): Likewise.
17798 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17799 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17800 (struct slsr_cand_d): Change index to be widest_int.
17801 (struct incr_info_d): Change incr to be widest_int.
17802 (alloc_cand_and_find_basis): Use wide-int interfaces.
17803 (slsr_process_phi): Likewise.
17804 (backtrace_base_for_ref): Likewise. Return a widest_int.
17805 (restructure_reference): Take a widest_int instead of a double_int.
17806 (slsr_process_ref): Use wide-int interfaces.
17807 (create_mul_ssa_cand): Likewise.
17808 (create_mul_imm_cand): Likewise.
17809 (create_add_ssa_cand): Likewise.
17810 (create_add_imm_cand): Take a widest_int instead of a double_int.
17811 (slsr_process_add): Use wide-int interfaces.
17812 (slsr_process_cast): Likewise.
17813 (slsr_process_copy): Likewise.
17814 (dump_candidate): Likewise.
17815 (dump_incr_vec): Likewise.
17816 (replace_ref): Likewise.
17817 (cand_increment): Likewise. Return a widest_int.
17818 (cand_abs_increment): Likewise.
17819 (replace_mult_candidate): Take a widest_int instead of a double_int.
17820 (replace_unconditional_candidate): Use wide-int interfaces.
17821 (incr_vec_index): Take a widest_int instead of a double_int.
17822 (create_add_on_incoming_edge): Likewise.
17823 (create_phi_basis): Use wide-int interfaces.
17824 (replace_conditional_candidate): Likewise.
17825 (record_increment): Take a widest_int instead of a double_int.
17826 (record_phi_increments): Use wide-int interfaces.
17827 (phi_incr_cost): Take a widest_int instead of a double_int.
17828 (lowest_cost_path): Likewise.
17829 (total_savings): Likewise.
17830 (analyze_increments): Use wide-int interfaces.
17831 (ncd_with_phi): Take a widest_int instead of a double_int.
17832 (ncd_of_cand_and_phis): Likewise.
17833 (nearest_common_dominator_for_cands): Likewise.
17834 (insert_initializers): Use wide-int interfaces.
17835 (all_phi_incrs_profitable): Likewise.
17836 (replace_one_candidate): Likewise.
17837 (replace_profitable_candidates): Likewise.
17838 * godump.c: Include wide-int-print.h.
17839 (go_output_typedef): Use wide-int interfaces.
17840 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17841 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17842 (build_loop_iteration_domains): Likewise.
17843 * hooks.h: Include wide-int.h rather than double-int.h.
17844 (hook_bool_dint_dint_uint_bool_true): Delete.
17845 (hook_bool_wint_wint_uint_bool_true): Declare.
17846 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17847 (hook_bool_wint_wint_uint_bool_true): New.
17848 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17849 interfaces.
17850 (ubsan_expand_si_overflow_mul_check): Likewise.
17851 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17852 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17853 (get_ancestor_addr_info): Likewise.
17854 (ipa_modify_call_arguments): Likewise.
17855 * loop-doloop.c (doloop_modify): Likewise.
17856 (doloop_optimize): Likewise.
17857 * loop-iv.c (iv_number_of_iterations): Likewise.
17858 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17859 (unroll_loop_constant_iterations): Likewise.
17860 (decide_unroll_runtime_iterations): Likewise.
17861 (unroll_loop_runtime_iterations): Likewise.
17862 (decide_peel_simple): Likewise.
17863 (decide_unroll_stupid): Likewise.
17864 * lto-streamer-in.c (streamer_read_wi): Add.
17865 (input_cfg): Use wide-int interfaces.
17866 (lto_input_tree_1): Likewise.
17867 * lto-streamer-out.c (streamer_write_wi): Add.
17868 (hash_tree): Use wide-int interfaces.
17869 (output_cfg): Likewise.
17870 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17871 (GTFILES): Add wide-int.h and signop.h.
17872 (TAGS): Look for .cc files too.
17873 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17874 * optabs.c (expand_subword_shift): Likewise.
17875 (expand_doubleword_shift): Likewise.
17876 (expand_absneg_bit): Likewise.
17877 (expand_copysign_absneg): Likewise.
17878 (expand_copysign_bit): Likewise.
17879 * postreload.c (reload_cse_simplify_set): Likewise.
17880 * predict.c (predict_iv_comparison): Likewise.
17881 * pretty-print.h: Include wide-int-print.h.
17882 (pp_wide_int) New.
17883 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17884 * print-tree.c: Include wide-int-print.h.
17885 (print_node_brief): Use wide-int interfaces.
17886 (print_node): Likewise.
17887 * read-rtl.c (validate_const_wide_int): New.
17888 (read_rtx_code): Add CONST_WIDE_INT case.
17889 * real.c: Include wide-int.h.
17890 (real_to_integer2): Delete.
17891 (real_to_integer): New function, returning a wide_int.
17892 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17893 (ten_to_ptwo): Update call to real_from_integer.
17894 (real_digit): Likewise.
17895 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17896 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17897 (REAL_VALUE_TO_INT): Delete.
17898 (real_to_integer): Declare a wide-int form.
17899 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17900 * recog.c (const_int_operand): Improve comment.
17901 (const_scalar_int_operand): New.
17902 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17903 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17904 (split_double): Likewise.
17905 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17906 (rtx_size): Likewise.
17907 (rtx_alloc_stat_v): New.
17908 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17909 (cwi_output_hex): New.
17910 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17911 (cwi_check_failed_bounds): New.
17912 * rtl.def (CONST_WIDE_INT): New.
17913 * rtl.h: Include <utility> and wide-int.h.
17914 (struct hwivec_def): New.
17915 (CWI_GET_NUM_ELEM): New.
17916 (CWI_PUT_NUM_ELEM): New.
17917 (struct rtx_def): Add num_elem and hwiv.
17918 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17919 (CASE_CONST_UNIQUE): Likewise.
17920 (CASE_CONST_ANY): Likewise.
17921 (CONST_SCALAR_INT_P): Likewise.
17922 (CONST_WIDE_INT_P): New.
17923 (CWI_ELT): New.
17924 (HWIVEC_CHECK): New.
17925 (cwi_check_failed_bounds): New.
17926 (CWI_ELT): New.
17927 (HWIVEC_CHECK): New.
17928 (CONST_WIDE_INT_VEC) New.
17929 (CONST_WIDE_INT_NUNITS) New.
17930 (CONST_WIDE_INT_ELT) New.
17931 (rtx_mode_t): New type.
17932 (wi::int_traits <rtx_mode_t>): New.
17933 (wi::shwi): New.
17934 (wi::min_value): New.
17935 (wi::max_value): New.
17936 (rtx_alloc_v) New.
17937 (const_wide_int_alloc): New.
17938 (immed_wide_int_const): New.
17939 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17940 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17941 * signop.h: New file.
17942 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17943 (simplify_const_unary_operation): Use wide-int interfaces.
17944 (simplify_binary_operation_1): Likewise.
17945 (simplify_const_binary_operation): Likewise.
17946 (simplify_const_relational_operation): Likewise.
17947 (simplify_immed_subreg): Likewise.
17948 * stmt.c (expand_case): Likewise.
17949 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17950 signop rather than a bool.
17951 * stor-layout.c (layout_type): Use wide-int interfaces.
17952 (initialize_sizetypes): Update calls to
17953 set_min_and_max_values_for_integral_type.
17954 (set_min_and_max_values_for_integral_type): Take a signop rather
17955 than a bool. Use wide-int interfaces.
17956 (fixup_signed_type): Update accordingly. Remove
17957 HOST_BITS_PER_DOUBLE_INT limit.
17958 (fixup_unsigned_type): Likewise.
17959 * system.h (STATIC_CONSTANT_P): New.
17960 (STATIC_ASSERT): New.
17961 * target.def (can_use_doloop_p): Take widest_ints rather than
17962 double_ints.
17963 * target.h: Include wide-int.h rather than double-int.h.
17964 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17965 than double_ints.
17966 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17967 rather than INT_CST_LT_UNSIGNED.
17968 (can_use_doloop_if_innermost): Take widest_ints rather than
17969 double_ints.
17970 * tree-affine.c: Include wide-int-print.h.
17971 (double_int_ext_for_comb): Delete.
17972 (wide_int_ext_for_comb): New.
17973 (aff_combination_zero): Use wide-int interfaces.
17974 (aff_combination_const): Take a widest_int instead of a double_int.
17975 (aff_combination_elt): Use wide-int interfaces.
17976 (aff_combination_scale): Take a widest_int instead of a double_int.
17977 (aff_combination_add_elt): Likewise.
17978 (aff_combination_add_cst): Likewise.
17979 (aff_combination_add): Use wide-int interfaces.
17980 (aff_combination_convert): Likewise.
17981 (tree_to_aff_combination): Likewise.
17982 (add_elt_to_tree): Take a widest_int instead of a double_int.
17983 (aff_combination_to_tree): Use wide-int interfaces.
17984 (aff_combination_remove_elt): Likewise.
17985 (aff_combination_add_product): Take a widest_int instead of
17986 a double_int.
17987 (aff_combination_mult): Use wide-int interfaces.
17988 (aff_combination_expand): Likewise.
17989 (double_int_constant_multiple_p): Delete.
17990 (wide_int_constant_multiple_p): New.
17991 (aff_combination_constant_multiple_p): Take a widest_int pointer
17992 instead of a double_int pointer.
17993 (print_aff): Use wide-int interfaces.
17994 (get_inner_reference_aff): Take a widest_int pointer
17995 instead of a double_int pointer.
17996 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17997 * tree-affine.h: Include wide-int.h.
17998 (struct aff_comb_elt): Change type of coef to widest_int.
17999 (struct affine_tree_combination): Change type of offset to widest_int.
18000 (double_int_ext_for_comb): Delete.
18001 (wide_int_ext_for_comb): New.
18002 (aff_combination_const): Use widest_int instead of double_int.
18003 (aff_combination_scale): Likewise.
18004 (aff_combination_add_elt): Likewise.
18005 (aff_combination_constant_multiple_p): Likewise.
18006 (get_inner_reference_aff): Likewise.
18007 (aff_comb_cannot_overlap_p): Likewise.
18008 (aff_combination_zero_p): Use wide-int interfaces.
18009 * tree.c: Include tree.h.
18010 (init_ttree): Use make_int_cst.
18011 (tree_code_size): Removed code for INTEGER_CST case.
18012 (tree_size): Add INTEGER_CST case.
18013 (make_node_stat): Update comment.
18014 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
18015 (build_int_cst_type): Use wide-int interfaces.
18016 (double_int_to_tree): Likewise.
18017 (double_int_fits_to_tree_p): Delete.
18018 (force_fit_type_double): Delete.
18019 (force_fit_type): New.
18020 (int_cst_hash_hash): Use wide-int interfaces.
18021 (int_cst_hash_eq): Likewise.
18022 (build_int_cst_wide): Delete.
18023 (wide_int_to_tree): New.
18024 (cache_integer_cst): Use wide-int interfaces.
18025 (build_low_bits_mask): Likewise.
18026 (cst_and_fits_in_hwi): Likewise.
18027 (real_value_from_int_cst): Likewise.
18028 (make_int_cst_stat): New.
18029 (integer_zerop): Use wide_int interfaces.
18030 (integer_onep): Likewise.
18031 (integer_all_onesp): Likewise.
18032 (integer_pow2p): Likewise.
18033 (integer_nonzerop): Likewise.
18034 (tree_log2): Likewise.
18035 (tree_floor_log2): Likewise.
18036 (tree_ctz): Likewise.
18037 (int_size_in_bytes): Likewise.
18038 (mem_ref_offset): Return an offset_int rather than a double_int.
18039 (build_type_attribute_qual_variant): Use wide_int interfaces.
18040 (type_hash_eq): Likewise
18041 (tree_int_cst_equal): Likewise.
18042 (tree_int_cst_lt): Delete.
18043 (tree_int_cst_compare): Likewise.
18044 (tree_fits_shwi_p): Use wide_int interfaces.
18045 (tree_fits_uhwi_p): Likewise.
18046 (tree_int_cst_sign_bit): Likewise.
18047 (tree_int_cst_sgn): Likewise.
18048 (tree_int_cst_min_precision): Take a signop rather than a bool.
18049 (simple_cst_equal): Use wide_int interfaces.
18050 (compare_tree_int): Likewise.
18051 (iterative_hash_expr): Likewise.
18052 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
18053 INT_CST_LT.
18054 (get_type_static_bounds): Use wide_int interfaces.
18055 (tree_int_cst_elt_check_failed): New.
18056 (build_common_tree_nodes): Reordered to set prec before filling in
18057 value.
18058 (int_cst_value): Check cst_and_fits_in_hwi.
18059 (widest_int_cst_value): Use wide_int interfaces.
18060 (upper_bound_in_type): Likewise.
18061 (lower_bound_in_type): Likewise.
18062 (num_ending_zeros): Likewise.
18063 (drop_tree_overflow): Likewise.
18064 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
18065 (gen_conditions_for_pow_cst_base): Likewise.
18066 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
18067 (group_case_labels_stmt): Use wide-int interfaces.
18068 (verify_gimple_assign_binary): Likewise.
18069 (print_loop): Likewise.
18070 * tree-chrec.c (tree_fold_binomial): Likewise.
18071 * tree-core.h (struct tree_base): Add int_length.
18072 (struct tree_int_cst): Change rep of value.
18073 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
18074 (dr_may_alias_p): Likewise.
18075 (max_stmt_executions_tree): Likewise.
18076 * tree.def (INTEGER_CST): Update comment.
18077 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
18078 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
18079 * tree-dump.c: Include wide-int.h and wide-int-print.h.
18080 (dequeue_and_dump): Use wide-int interfaces.
18081 * tree.h: Include wide-int.h.
18082 (NULL_TREE): Moved to earlier loc in file.
18083 (TREE_INT_CST_ELT_CHECK): New.
18084 (tree_int_cst_elt_check_failed): New.
18085 (TYPE_SIGN): New.
18086 (TREE_INT_CST): Delete.
18087 (TREE_INT_CST_LOW): Use wide-int interfaces.
18088 (TREE_INT_CST_HIGH): Delete.
18089 (TREE_INT_CST_NUNITS): New.
18090 (TREE_INT_CST_EXT_NUNITS): Likewise.
18091 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
18092 (TREE_INT_CST_ELT): Likewise.
18093 (INT_CST_LT): Delete.
18094 (tree_int_cst_elt_check): New (two forms).
18095 (type_code_size): Update comment.
18096 (make_int_cst_stat, make_int_cst): New.
18097 (tree_to_double_int): Delete.
18098 (double_int_fits_to_tree_p): Delete.
18099 (force_fit_type_double): Delete.
18100 (build_int_cstu): Replace with out-of-line function.
18101 (build_int_cst_wide): Delete.
18102 (tree_int_cst_lt): Define inline.
18103 (tree_int_cst_le): New.
18104 (tree_int_cst_compare): Define inline.
18105 (tree_int_cst_min_precision): Take a signop rather than a bool.
18106 (wi::int_traits <const_tree>): New.
18107 (wi::int_traits <tree>): New.
18108 (wi::extended_tree): New.
18109 (wi::int_traits <wi::extended_tree>): New.
18110 (wi::to_widest): New.
18111 (wi::to_offset): New.
18112 (wi::fits_to_tree_p): New.
18113 (wi::min_value): New.
18114 (wi::max_value): New.
18115 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
18116 (copy_tree_body_r): Likewise.
18117 * tree-object-size.c (compute_object_offset): Likewise.
18118 (addr_object_size): Likewise.
18119 * tree-predcom.c: Include wide-int-print.h.
18120 (struct dref_d): Change type of offset to widest_int.
18121 (dump_dref): Call wide-int printer.
18122 (aff_combination_dr_offset): Use wide-int interfaces.
18123 (determine_offset): Take a widest_int pointer rather than a
18124 double_int pointer.
18125 (split_data_refs_to_components): Use wide-int interfaces.
18126 (suitable_component_p): Likewise.
18127 (order_drefs): Likewise.
18128 (add_ref_to_chain): Likewise.
18129 (valid_initializer_p): Likewise.
18130 (determine_roots_comp): Likewise.
18131 * tree-pretty-print.c: Include wide-int-print.h.
18132 (dump_generic_node): Use wide-int interfaces.
18133 * tree-sra.c (sra_ipa_modify_expr): Likewise.
18134 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
18135 (move_fixed_address_to_symbol): Likewise.
18136 (move_hint_to_base): Likewise.
18137 (move_pointer_to_base): Likewise.
18138 (move_variant_to_index): Likewise.
18139 (most_expensive_mult_to_index): Likewise.
18140 (addr_to_parts): Likewise.
18141 (copy_ref_info): Likewise.
18142 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18143 (indirect_refs_may_alias_p): Likewise.
18144 (stmt_kills_ref_p_1): Likewise.
18145 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18146 * tree-ssa-ccp.c: Update comment at top of file. Include
18147 wide-int-print.h.
18148 (struct prop_value_d): Change type of mask to widest_int.
18149 (extend_mask): New function.
18150 (dump_lattice_value): Use wide-int interfaces.
18151 (get_default_value): Likewise.
18152 (set_constant_value): Likewise.
18153 (set_value_varying): Likewise.
18154 (valid_lattice_transition): Likewise.
18155 (set_lattice_value): Likewise.
18156 (value_to_double_int): Delete.
18157 (value_to_wide_int): New.
18158 (get_value_from_alignment): Use wide-int interfaces.
18159 (get_value_for_expr): Likewise.
18160 (do_dbg_cnt): Likewise.
18161 (ccp_finalize): Likewise.
18162 (ccp_lattice_meet): Likewise.
18163 (bit_value_unop_1): Use widest_ints rather than double_ints.
18164 (bit_value_binop_1): Likewise.
18165 (bit_value_unop): Use wide-int interfaces.
18166 (bit_value_binop): Likewise.
18167 (bit_value_assume_aligned): Likewise.
18168 (evaluate_stmt): Likewise.
18169 (ccp_fold_stmt): Likewise.
18170 (visit_cond_stmt): Likewise.
18171 (ccp_visit_stmt): Likewise.
18172 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18173 (constant_pointer_difference): Likewise.
18174 (associate_pointerplus): Likewise.
18175 (combine_conversions): Likewise.
18176 * tree-ssa-loop.h: Include wide-int.h.
18177 (struct tree_niter_desc): Change type of max to widest_int.
18178 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
18179 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
18180 (remove_redundant_iv_tests): Likewise.
18181 (canonicalize_loop_induction_variables): Likewise.
18182 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
18183 (constant_multiple_of): Take a widest_int pointer instead of
18184 a double_int pointer.
18185 (get_computation_aff): Use wide-int interfaces.
18186 (ptr_difference_cost): Likewise.
18187 (difference_cost): Likewise.
18188 (get_loop_invariant_expr_id): Likewise.
18189 (get_computation_cost_at): Likewise.
18190 (iv_elimination_compare_lt): Likewise.
18191 (may_eliminate_iv): Likewise.
18192 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
18193 instead of double_int.
18194 (max_loop_iterations): Likewise.
18195 (max_stmt_executions): Likewise.
18196 (estimated_stmt_executions): Likewise.
18197 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18198 (split_to_var_and_offset): Use wide-int interfaces.
18199 (determine_value_range): Likewise.
18200 (bound_difference_of_offsetted_base): Likewise.
18201 (bounds_add): Take a widest_int instead of a double_int.
18202 (number_of_iterations_ne_max): Use wide-int interfaces.
18203 (number_of_iterations_ne): Likewise.
18204 (number_of_iterations_lt_to_ne): Likewise.
18205 (assert_loop_rolls_lt): Likewise.
18206 (number_of_iterations_lt): Likewise.
18207 (number_of_iterations_le): Likewise.
18208 (number_of_iterations_cond): Likewise.
18209 (number_of_iterations_exit): Likewise.
18210 (finite_loop_p): Likewise.
18211 (derive_constant_upper_bound_assign): Likewise.
18212 (derive_constant_upper_bound): Return a widest_int.
18213 (derive_constant_upper_bound_ops): Likewise.
18214 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18215 (record_estimate): Take a widest_int rather than a double_int.
18216 (record_nonwrapping_iv): Use wide-int interfaces.
18217 (double_int_cmp): Delete.
18218 (wide_int_cmp): New.
18219 (bound_index): Take a widest_int rather than a double_int.
18220 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18221 (maybe_lower_iteration_bound): Likewise.
18222 (estimate_numbers_of_iterations_loop): Likewise.
18223 (estimated_loop_iterations): Take a widest_int pointer than than
18224 a double_int pointer.
18225 (estimated_loop_iterations_int): Use wide-int interfaces.
18226 (max_loop_iterations): Take a widest_int pointer than than
18227 a double_int pointer.
18228 (max_loop_iterations_int): Use wide-int interfaces.
18229 (max_stmt_executions): Take a widest_int pointer than than
18230 a double_int pointer.
18231 (estimated_stmt_executions): Likewise.
18232 (n_of_executions_at_most): Use wide-int interfaces.
18233 (scev_probably_wraps_p): Likewise.
18234 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18235 to real_to_integer.
18236 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18237 interfaces.
18238 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18239 double_ints. Adjust for trailing_wide_ints <3> representation.
18240 (set_nonzero_bits): Likewise.
18241 (get_range_info): Return wide_ints rather than double_ints.
18242 Adjust for trailing_wide_ints <3> representation.
18243 (get_nonzero_bits): Likewise.
18244 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18245 representation.
18246 * tree-ssanames.h (struct range_info_def): Replace min, max and
18247 nonzero_bits with a trailing_wide_ints <3>.
18248 (set_range_info): Use wide_int_refs rather than double_ints.
18249 (set_nonzero_bits): Likewise.
18250 (get_range_info): Return wide_ints rather than double_ints.
18251 (get_nonzero_bits): Likewise.
18252 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18253 * tree-ssa-pre.c (phi_translate_1): Likewise.
18254 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18255 (acceptable_pow_call): Likewise.
18256 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18257 interfaces.
18258 (vn_reference_fold_indirect): Likewise.
18259 (vn_reference_maybe_forwprop_address): Likewise.
18260 (valueize_refs_1): Likewise.
18261 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18262 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18263 tree_int_cst_lt and tree_int_cst_le.
18264 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18265 interfaces.
18266 (streamer_alloc_tree): Likewise.
18267 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18268 (streamer_write_tree_header): Likewise.
18269 (streamer_write_integer_cst): Likewise.
18270 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18271 (build_constructors): Likewise.
18272 (array_value_type): Likewise.
18273 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18274 (vect_check_gather): Likewise.
18275 * tree-vect-generic.c (build_replicated_const): Likewise.
18276 (expand_vector_divmod): Likewise.
18277 * tree-vect-loop.c (vect_transform_loop): Likewise.
18278 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18279 (vect_do_peeling_for_alignment): Likewise.
18280 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18281 * tree-vrp.c: Include wide-int.h.
18282 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18283 (extract_range_from_assert): Use wide-int interfaces.
18284 (vrp_int_const_binop): Likewise.
18285 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18286 double_int pointers.
18287 (ranges_from_anti_range): Use wide-int interfaces.
18288 (quad_int_cmp): Delete.
18289 (quad_int_pair_sort): Likewise.
18290 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18291 (extract_range_from_unary_expr_1): Likewise.
18292 (adjust_range_with_scev): Likewise.
18293 (masked_increment): Take and return wide_ints rather than double_ints.
18294 (register_edge_assert_for_2): Use wide-int interfaces.
18295 (check_array_ref): Likewise.
18296 (search_for_addr_array): Likewise.
18297 (maybe_set_nonzero_bits): Likewise.
18298 (union_ranges): Pass an integer of the correct type instead of
18299 using integer_one_node.
18300 (intersect_ranges): Likewise.
18301 (simplify_truth_ops_using_ranges): Likewise.
18302 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18303 (range_fits_type_p): Likewise.
18304 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18305 a bool.
18306 (simplify_conversion_using_ranges): Use wide-int interfaces.
18307 (simplify_float_conversion_using_ranges): Likewise.
18308 (vrp_finalize): Likewise.
18309 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18310 (gimple_stringops_transform): Likewise.
18311 * varasm.c (decode_addr_const): Likewise.
18312 (const_hash_1): Likewise.
18313 (const_rtx_hash_1): Likewise
18314 (output_constant): Likewise.
18315 (array_size_for_constructor): Likewise.
18316 (output_constructor_regular_field): Likewise.
18317 (output_constructor_bitfield): Likewise.
18318 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18319 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18320 GENERATOR_FILEs.
18321 * gencheck.c: Define BITS_PER_UNIT.
18322 * wide-int.cc: New.
18323 * wide-int.h: New.
18324 * wide-int-print.cc: New.
18325 * wide-int-print.h: New.
18326
18327 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18328
18329 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18330
18331 2014-05-06 Richard Biener <rguenther@suse.de>
18332
18333 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18334 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18335 (TODO_verify_all): Adjust.
18336 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18337 TODO_verify_stmts and TODO_verify_rtl_sharing.
18338 * bb-reorder.c: Likewise.
18339 * cfgexpand.c: Likewise.
18340 * cprop.c: Likewise.
18341 * cse.c: Likewise.
18342 * function.c: Likewise.
18343 * fwprop.c: Likewise.
18344 * gcse.c: Likewise.
18345 * gimple-ssa-isolate-paths.c: Likewise.
18346 * gimple-ssa-strength-reduction.c: Likewise.
18347 * ipa-split.c: Likewise.
18348 * loop-init.c: Likewise.
18349 * loop-unroll.c: Likewise.
18350 * lower-subreg.c: Likewise.
18351 * modulo-sched.c: Likewise.
18352 * postreload-gcse.c: Likewise.
18353 * predict.c: Likewise.
18354 * recog.c: Likewise.
18355 * sched-rgn.c: Likewise.
18356 * store-motion.c: Likewise.
18357 * tracer.c: Likewise.
18358 * trans-mem.c: Likewise.
18359 * tree-call-cdce.c: Likewise.
18360 * tree-cfg.c: Likewise.
18361 * tree-cfgcleanup.c: Likewise.
18362 * tree-complex.c: Likewise.
18363 * tree-eh.c: Likewise.
18364 * tree-emutls.c: Likewise.
18365 * tree-if-conv.c: Likewise.
18366 * tree-into-ssa.c: Likewise.
18367 * tree-loop-distribution.c: Likewise.
18368 * tree-object-size.c: Likewise.
18369 * tree-parloops.c: Likewise.
18370 * tree-pass.h: Likewise.
18371 * tree-sra.c: Likewise.
18372 * tree-ssa-ccp.c: Likewise.
18373 * tree-ssa-copy.c: Likewise.
18374 * tree-ssa-copyrename.c: Likewise.
18375 * tree-ssa-dce.c: Likewise.
18376 * tree-ssa-dom.c: Likewise.
18377 * tree-ssa-dse.c: Likewise.
18378 * tree-ssa-forwprop.c: Likewise.
18379 * tree-ssa-ifcombine.c: Likewise.
18380 * tree-ssa-loop-ch.c: Likewise.
18381 * tree-ssa-loop-ivcanon.c: Likewise.
18382 * tree-ssa-loop.c: Likewise.
18383 * tree-ssa-math-opts.c: Likewise.
18384 * tree-ssa-phiopt.c: Likewise.
18385 * tree-ssa-phiprop.c: Likewise.
18386 * tree-ssa-pre.c: Likewise.
18387 * tree-ssa-reassoc.c: Likewise.
18388 * tree-ssa-sink.c: Likewise.
18389 * tree-ssa-strlen.c: Likewise.
18390 * tree-ssa-tail-merge.c: Likewise.
18391 * tree-ssa-uncprop.c: Likewise.
18392 * tree-switch-conversion.c: Likewise.
18393 * tree-tailcall.c: Likewise.
18394 * tree-vect-generic.c: Likewise.
18395 * tree-vectorizer.c: Likewise.
18396 * tree-vrp.c: Likewise.
18397 * tsan.c: Likewise.
18398 * var-tracking.c: Likewise.
18399 * bt-load.c: Likewise.
18400 * cfgcleanup.c: Likewise.
18401 * combine-stack-adj.c: Likewise.
18402 * combine.c: Likewise.
18403 * compare-elim.c: Likewise.
18404 * config/epiphany/resolve-sw-modes.c: Likewise.
18405 * config/i386/i386.c: Likewise.
18406 * config/mips/mips.c: Likewise.
18407 * config/s390/s390.c: Likewise.
18408 * config/sh/sh_treg_combine.cc: Likewise.
18409 * config/sparc/sparc.c: Likewise.
18410 * dce.c: Likewise.
18411 * dse.c: Likewise.
18412 * final.c: Likewise.
18413 * ifcvt.c: Likewise.
18414 * mode-switching.c: Likewise.
18415 * passes.c: Likewise.
18416 * postreload.c: Likewise.
18417 * ree.c: Likewise.
18418 * reg-stack.c: Likewise.
18419 * regcprop.c: Likewise.
18420 * regrename.c: Likewise.
18421 * web.c: Likewise.
18422
18423 2014-05-06 Richard Biener <rguenther@suse.de>
18424
18425 PR middle-end/61070
18426 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18427 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18428
18429 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18430
18431 PR ipa/60965
18432 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18433
18434 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18435 Tom de Vries <tom@codesourcery.com>
18436
18437 * target.def (call_fusage_contains_non_callee_clobbers): New
18438 DEFHOOKPOD.
18439 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18440 Hooks to @menu.
18441 (@node Miscellaneous Register Hooks): New node.
18442 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18443 * doc/tm.texi: Regenerate.
18444
18445 2014-05-05 Marek Polacek <polacek@redhat.com>
18446
18447 PR driver/61065
18448 * opts.c (common_handle_option): Call error_at instead of warning_at.
18449
18450 2014-05-05 Richard Biener <rguenther@suse.de>
18451
18452 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18453 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18454 under the TODO_verify_il umbrella.
18455
18456 2014-05-05 Richard Biener <rguenther@suse.de>
18457
18458 * passes.c (execute_function_todo): Move TODO_verify_flow under
18459 the TODO_verify_ul umbrella.
18460
18461 2014-05-05 Richard Biener <rguenther@suse.de>
18462
18463 PR middle-end/61010
18464 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18465 X & CST away from a CST that is the mask of a mode.
18466
18467 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18468
18469 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18470 int argument to enum machine_mode.
18471 (picochip_class_max_nregs): Ditto.
18472 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18473 (picochip_class_max_nregs): Ditto.
18474
18475 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18476
18477 * target.def: Add new target hook.
18478 * doc/tm.texi: Regenerate.
18479 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18480 * targhooks.c (default_keep_leaf_when_profiled): New function.
18481
18482 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18483 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18484
18485 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18486
18487 PR tree-optimization/60363
18488 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18489 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18490 (update_destination_phis): New parameter.
18491 (create_edge_and_update_destination_phis): Ditto.
18492 (ssa_fix_duplicate_block_edges): Pass new arguments.
18493 (thread_single_edge): Ditto.
18494
18495 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18496
18497 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18498 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18499 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18500 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18501 Use RS6000_BTM_HARD_FLOAT.
18502 (BU_MISC_2): Likewise.
18503 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18504 RS6000_BTM_HARD_FLOAT.
18505 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18506 is explicitly used.
18507 (rs6000_invalid_builtin): Add hard floating builtin support.
18508 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18509 hard float builtins.
18510 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18511
18512 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18513
18514 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18515 Add missing function* argument.
18516
18517 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18518
18519 * lra-constraints.c (valid_address_p): Move earlier in file.
18520 Add a constraint argument to the address_info version.
18521 (satisfies_memory_constraint_p): New function.
18522 (satisfies_address_constraint_p): Likewise.
18523 (process_alt_operands, curr_insn_transform): Use them.
18524 (process_address): Pass the constraint to valid_address_p when
18525 checking address operands.
18526
18527 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18528
18529 * config/mips/mips.c (mips_isa_rev): New variable.
18530 (mips_set_architecture): Set it.
18531 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18532 from mips_isa_rev.
18533 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18534 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18535 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18536 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18537 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18538 conditions in terms of mips_isa_rev.
18539 (mips_isa_rev): Declare.
18540
18541 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18542
18543 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18544 (prob_unlikely, prob_likely): Make variables const.
18545
18546 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18547
18548 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18549
18550 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18551
18552 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18553
18554 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18555
18556 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18557 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18558 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18559 functions.
18560 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18561 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18562 sh_pass_in_reg_p.
18563 Replace usage of ROUND_REG with sh_round_reg.
18564 Use CEIL instead of ROUND_ADVANCE.
18565
18566 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18567
18568 PR target/61026
18569 * config/sh/sh.c: Include stdlib headers before everything else.
18570
18571 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18572
18573 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18574 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18575 (gimplify_adjust_omp_clauses): Simd region is never
18576 directly nested in combined parallel. Instead, for linear
18577 with copyin/copyout, if in combined for simd loop, make decl
18578 firstprivate/lastprivate on OMP_FOR.
18579 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18580 expand_omp_for_static_chunk): When setting endvar, also set
18581 fd->loop.v to the same value.
18582
18583 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18584
18585 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18586
18587 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18588
18589 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18590 expression.
18591
18592 2014-05-02 Marek Polacek <polacek@redhat.com>
18593
18594 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18595
18596 2014-05-02 Kito Cheng <kito@0xlab.org>
18597
18598 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18599 to a C expression marco.
18600 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18601 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18602 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18603 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18604 HONOR_REG_ALLOC_ORDER.
18605 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18606
18607 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18608
18609 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18610
18611 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18612
18613 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18614
18615 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18616
18617 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18618 (convert_scalar_cond_reduction): Likewise.
18619 (predicate_scalar_phi): Add recognition and transformation
18620 of simple conditioanl reduction to be vectorizable.
18621
18622 2014-05-01 Marek Polacek <polacek@redhat.com>
18623
18624 PR c/43245
18625 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18626
18627 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18628
18629 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18630 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18631 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18632 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18633 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18634 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18635 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18636 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18637
18638 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18639
18640 * config/arc/arc.opt (mlra): Move comment above option name
18641 to avoid mis-parsing as language options.
18642
18643 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18644
18645 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18646 * config/sol2.h: ... here.
18647 * config/sol2-10.h: Remove.
18648
18649 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18650 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18651 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18652 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18653 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18654 * config/sol2.h: ... here.
18655 (SECTION_NAME_FORMAT): Don't redefine.
18656 (STARTFILE_ARCH32_SPEC): Rename to ...
18657 (STARTFILE_ARCH_SPEC): ... this.
18658 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18659 * config/sparc/sol2.h: ... here.
18660 (SECTION_NAME_FORMAT): Don't undef.
18661 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18662 (SUBTARGET_EXTRA_SPECS): Remove.
18663 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18664
18665 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18666 (MD_STARTFILE_PREFIX): Remove.
18667 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18668 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18669 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18670 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18671 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18672 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18673 * config/i386/sol2.h: ... here.
18674 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18675 * config/i386/sol2-bi.h: Remove.
18676 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18677 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18678
18679 * config/i386/t-sol2-64: Rename to ...
18680 * config/i386/t-sol2: ... this.
18681 * config/sparc/t-sol2-64: Rename to ...
18682 * config/sparc/t-sol2: ... this.
18683
18684 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18685 sol2_tm_file_head, sol2_tm_file_tail.
18686 Include ${cpu_type}/sol2.h before sol2.h.
18687 Remove sol2-10.h.
18688 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18689 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18690 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18691 Reflect i386/t-sol2-64 renaming.
18692 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18693 Reflect sparc/t-sol2-64 renaming.
18694
18695 2014-04-30 Richard Biener <rguenther@suse.de>
18696
18697 * passes.c (execute_function_todo): Move TODO_verify_stmts
18698 and TODO_verify_ssa under the TODO_verify_il umbrella.
18699 * tree-ssa.h (verify_ssa): Adjust prototype.
18700 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18701 we should verify SSA operands.
18702 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18703 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18704 whether we should verify whether not throwing stmts have EH info.
18705 * graphite-scop-detection.c (create_sese_edges): Adjust.
18706 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18707 * tree-eh.c (lower_try_finally_switch): Do not add the
18708 default case label twice.
18709
18710 2014-04-30 Marek Polacek <polacek@redhat.com>
18711
18712 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18713 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18714 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18715 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18716
18717 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18718
18719 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18720 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18721 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18722 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18723 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18724 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18725 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18726 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18727
18728 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18729
18730 * tree-cfg.c (dump_function_to_file): Dump the return type of
18731 functions, in a line to itself before the function body, mimicking
18732 the layout of a C function.
18733
18734 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18735
18736 PR tree-optimization/60971
18737 * tree-tailcall.c (process_assignment): Reject conversions which
18738 reduce precision.
18739
18740 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18741
18742 * calls.c (initialize_argument_information): Always treat
18743 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18744 (expand_call): Likewise.
18745 (emit_library_call_calue_1): Likewise.
18746 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18747 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18748 code accordingly.
18749
18750 2014-04-29 Nick Clifton <nickc@redhat.com>
18751
18752 * config/msp430/msp430.md (umulsidi): Fix typo.
18753 (mulhisi3): Enable even inside interrupt handlers.
18754 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18755 bigger return address pushed in large mode.
18756
18757 2014-04-29 Nick Clifton <nickc@redhat.com>
18758
18759 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18760 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18761 available modes.
18762 * config/m32r/m32r.c (init_reg_tables): Likewise.
18763 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18764 enum to hold the modes.
18765
18766 2014-04-29 Richard Biener <rguenther@suse.de>
18767
18768 * dominance.c (free_dominance_info): Add overload with
18769 function parameter.
18770 (dom_info_state): Likewise.
18771 (dom_info_available_p): Likewise.
18772 * basic-block.h (free_dominance_info, dom_info_state,
18773 dom_info_available_p): Declare overloads.
18774 * passes.c (execute_function_todo): Verify that verifiers
18775 don't change dominator info state. Drop dominator info
18776 for IPA pass invocations.
18777 * cgraph.c (release_function_body): Restore asserts that
18778 dominator information is released.
18779
18780 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18781
18782 * doc/invoke.texi: Fix typo.
18783 * tree-vrp.c: Fix typos.
18784 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18785
18786 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18787
18788 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18789
18790 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18791
18792 * config/aarch64/aarch64-builtins.c
18793 (aarch64_types_storestruct_lane_qualifiers): New.
18794 (TYPES_STORESTRUCT_LANE): Likewise.
18795 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18796 (st3_lane): Likewise.
18797 (st4_lane): Likewise.
18798 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18799 (vec_store_lanesci_lane<mode>): Likewise.
18800 (vec_store_lanesxi_lane<mode>): Likewise.
18801 (aarch64_st2_lane<VQ:mode>): Likewise.
18802 (aarch64_st3_lane<VQ:mode>): Likewise.
18803 (aarch64_st4_lane<VQ:mode>): Likewise.
18804 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18805 * config/aarch64/arm_neon.h
18806 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18807 use new macro arguments.
18808 (__ST3_LANE_FUNC): Likewise.
18809 (__ST4_LANE_FUNC): Likewise.
18810 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18811 (V_THREE_ELEM): Likewise.
18812 (V_FOUR_ELEM): Likewise.
18813
18814 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18815
18816 * doc/gimple.texi: Replace the description of the now-defunct
18817 union gimple_statement_d with a diagram showing the
18818 gimple_statement_base class hierarchy and its relationships to
18819 the GSS_ and GIMPLE_ enums.
18820
18821 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18822
18823 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18824 * config/aarch64/aarch64.c
18825 (aarch64_cannot_change_mode_class): Weaken conditions.
18826 (aarch64_modes_tieable_p): New.
18827 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18828
18829 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18830
18831 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18832 (loadsync_<mode>): Change mode.
18833 (load_quadpti, store_quadpti): New.
18834 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18835 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18836
18837 2014-04-28 Martin Jambor <mjambor@suse.cz>
18838
18839 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18840 same alias type as the original statement.
18841 (subreplacement_assignment_data): New type.
18842 (handle_unscalarized_data_in_subtree): New type of parameter,
18843 generate new memory accesses with same alias type as the original
18844 statement.
18845 (load_assign_lhs_subreplacements): Likewise.
18846 (sra_modify_constructor_assign): Generate new memory accesses with
18847 same alias type as the original statement.
18848
18849 2014-04-28 Richard Biener <rguenther@suse.de>
18850
18851 * tree-pass.h (TODO_verify_il): Define.
18852 (TODO_verify_all): Complete properly.
18853 * passes.c (execute_function_todo): Move existing loop-closed
18854 SSA verification under TODO_verify_il.
18855 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18856 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18857 Fix tree sharing issue.
18858
18859 2014-04-28 Richard Biener <rguenther@suse.de>
18860
18861 PR middle-end/60092
18862 * builtins.def (DEF_C11_BUILTIN): Add.
18863 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18864 * coretypes.h (enum function_class): Add function_c11_misc.
18865 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18866 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18867 (call_may_clobber_ref_p_1): Likewise.
18868 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18869 (mark_all_reaching_defs_necessary_1): Likewise.
18870 (propagate_necessity): Likewise.
18871 (eliminate_unnecessary_stmts): Likewise.
18872 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18873
18874 2014-04-28 Richard Biener <rguenther@suse.de>
18875
18876 * tree-vrp.c (vrp_var_may_overflow): Remove.
18877 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18878 with overflow immediately bump to one before that value and
18879 let iteration figure out overflow status.
18880
18881 2014-04-28 Richard Biener <rguenther@suse.de>
18882
18883 * configure.ac: Do valgrind header checks unconditionally.
18884 Add --enable-valgrind-annotations.
18885 * system.h: Guard valgrind header inclusion with
18886 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18887 * alloc-pool.c (pool_alloc, pool_free): Use
18888 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18889 to guard possibly dead code.
18890 * config.in: Regenerated.
18891 * configure: Likewise.
18892
18893 2014-04-28 Jeff Law <law@redhat.com>
18894
18895 PR tree-optimization/60902
18896 * tree-ssa-threadedge.c
18897 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18898 over real defs when invalidating outputs from statements that do not
18899 produce useful outputs for threading.
18900
18901 2014-04-28 Richard Biener <rguenther@suse.de>
18902
18903 PR tree-optimization/60979
18904 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18905 SCOPs that end in a block with a successor with abnormal
18906 predecessors.
18907
18908 2014-04-28 Richard Biener <rguenther@suse.de>
18909
18910 * tree-pass.h (execute_pass_list): Adjust prototype.
18911 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18912 (do_per_function): Change callback signature, push all actual
18913 work to the callbals.
18914 (do_per_function_toporder): Likewise.
18915 (execute_function_dump): Adjust.
18916 (execute_function_todo): Likewise.
18917 (clear_last_verified): Likewise.
18918 (verify_curr_properties): Likewise.
18919 (update_properties_after_pass): Likewise.
18920 (execute_pass_list_1): Split out from ...
18921 (execute_pass_list): ... here. Adjust.
18922 (execute_ipa_pass_list): Likewise.
18923 * cgraphunit.c (cgraph_add_new_function): Adjust.
18924 (analyze_function): Likewise.
18925 (expand_function): Likewise.
18926 * cgraph.c (release_function_body): Free dominance info
18927 here instead of asserting it was magically freed elsewhere.
18928
18929 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18930
18931 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18932 * configure: Regenerate.
18933 * config/sparc/sparc.opt (muser-mode): New option.
18934 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18935 for LEON3.
18936 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18937 * doc/invoke.texi (SPARC options): Document -muser-mode.
18938
18939 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18940
18941 * cselib.c (find_slot_memmode): Delete.
18942 (cselib_hasher): Change compare_type to a struct.
18943 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18944 constants.
18945 (preserve_constants_and_equivs): Adjust for new compare_type.
18946 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18947 (wrap_constant): Delete.
18948 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18949
18950 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18951
18952 * doc/install.texi (Building with profile feedback): Remove
18953 outdated sentence.
18954
18955 2014-04-26 Tom de Vries <tom@codesourcery.com>
18956
18957 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18958 array accesses.
18959
18960 2014-04-25 Cary Coutant <ccoutant@google.com>
18961
18962 PR debug/60929
18963 * dwarf2out.c (should_move_die_to_comdat): A type definition
18964 can contain a subprogram definition, but don't move it to a
18965 comdat unit.
18966 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18967 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18968 from original DIE.
18969 (clone_tree_hash): Rename to...
18970 (clone_tree_partial): ...this; change callers. Copy
18971 DW_TAG_subprogram DIEs as declarations.
18972 (copy_decls_walk): Don't copy children of a declaration into a
18973 type unit.
18974
18975 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18976
18977 PR target/60969
18978 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18979 alternative 12.
18980
18981 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18982
18983 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18984 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18985 reg for long_call.
18986 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18987 restriction.
18988
18989 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18990
18991 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18992
18993 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18994
18995 PR tree-optimization/60930
18996 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18997 creating a multiply candidate by folding two constant
18998 multiplicands when the result overflows.
18999
19000 2014-04-25 Jakub Jelinek <jakub@redhat.com>
19001
19002 PR tree-optimization/60960
19003 * tree-vect-generic.c (expand_vector_operation): Only call
19004 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
19005
19006 2014-04-25 Tom de Vries <tom@codesourcery.com>
19007
19008 * expr.c (clobber_reg_mode): New function.
19009 * expr.h (clobber_reg): New function.
19010
19011 2014-04-25 Tom de Vries <tom@codesourcery.com>
19012
19013 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
19014 clobbers.
19015
19016 2014-04-25 Radovan Obradovic <robradovic@mips.com>
19017 Tom de Vries <tom@codesourcery.com>
19018
19019 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
19020 handle.
19021 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
19022 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
19023 new argument to find_all_hard_reg_sets call.
19024
19025 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19026
19027 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
19028 Use HOST_WIDE_INT_C for mask literal.
19029 (aarch_rev16_shleft_mask_imm_p): Likewise.
19030
19031 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
19032
19033 PR target/60941
19034 * config/sparc/sparc.md (ashlsi3_extend): Delete.
19035
19036 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
19037
19038 PR preprocessor/56540
19039 * config/i386/i386-c.c (ix86_target_macros): Define
19040 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
19041
19042 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19043
19044 * configure.ac (tga_func): Remove.
19045 (LIB_TLS_SPEC): Remove.
19046 * configure: Regenerate.
19047 * config.in: Regenerate.
19048 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
19049
19050 2014-04-25 Richard Biener <rguenther@suse.de>
19051
19052 PR ipa/60912
19053 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
19054 call stmt use/clobber sets during stmt walk instead of
19055 walking the possibly incomplete set of caller edges.
19056
19057 2014-04-25 Richard Biener <rguenther@suse.de>
19058
19059 PR ipa/60911
19060 * passes.c (apply_ipa_transforms): Inline into only caller ...
19061 (execute_one_pass): ... here. Properly bring in function
19062 bodies for nodes we want to apply IPA transforms to.
19063
19064 2014-04-24 Cong Hou <congh@google.com>
19065
19066 PR tree-optimization/60896
19067 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
19068 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
19069 (vect_mark_pattern_stmts): Set the def type of all statements in
19070 PATTERN_DEF_SEQ as vect_internal_def.
19071
19072 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19073
19074 * doc/extend.texi (PowerPC Built-in Functions): Document new
19075 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
19076 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
19077
19078 * config/rs6000/predicates.md (const_0_to_3_operand): New
19079 predicate to match 0..3 integer constants.
19080
19081 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
19082 to support adding miscellaneous builtin functions.
19083 (BU_DFP_MISC_2): Likewise.
19084 (BU_P7_MISC_1): Likewise.
19085 (BU_P7_MISC_2): Likewise.
19086 (BU_P8V_MISC_3): Likewise.
19087 (BU_MISC_1): Likewise.
19088 (BU_MISC_2): Likewise.
19089 (DIVWE): Add extended divide builtin functions.
19090 (DIVWEO): Likewise.
19091 (DIVWEU): Likewise.
19092 (DIVWEUO): Likewise.
19093 (DIVDE): Likewise.
19094 (DIVDEO): Likewise.
19095 (DIVDEU): Likewise.
19096 (DIVDEUO): Likewise.
19097 (DXEX): Add decimal floating-point builtin functions.
19098 (DXEXQ): Likewise.
19099 (DDEDPD): Likewise.
19100 (DDEDPDQ): Likewise.
19101 (DENBCD): Likewise.
19102 (DENBCDQ): Likewise.
19103 (DIEX): Likewise.
19104 (DIEXQ): Likewise.
19105 (DSCLI): Likewise.
19106 (DSCLIQ): Likewise.
19107 (DSCRI): Likewise.
19108 (DSCRIQ): Likewise.
19109 (CDTBCD): Add new BCD builtin functions.
19110 (CBCDTD): Likewise.
19111 (ADDG6S): Likewise.
19112 (BCDADD): Likewise.
19113 (BCDADD_LT): Likewise.
19114 (BCDADD_EQ): Likewise.
19115 (BCDADD_GT): Likewise.
19116 (BCDADD_OV): Likewise.
19117 (BCDSUB): Likewise.
19118 (BCDSUB_LT): Likewise.
19119 (BCDSUB_EQ): Likewise.
19120 (BCDSUB_GT): Likewise.
19121 (BCDSUB_OV): Likewise.
19122 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
19123 (UNPACK_TD): Likewise.
19124 (PACK_TF): Likewise.
19125 (UNPACK_TF): Likewise.
19126 (UNPACK_TF_0): Likewise.
19127 (UNPACK_TF_1): Likewise.
19128 (PACK_V1TI): Likewise.
19129 (UNPACK_V1TI): Likewise.
19130
19131 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19132 support for decimal floating point builtin functions.
19133 (rs6000_expand_ternop_builtin): Add checks for the new builtin
19134 functions that take constant arguments.
19135 (rs6000_invalid_builtin): Add decimal floating point builtin support.
19136 (rs6000_init_builtins): Setup long double, _Decimal64, and
19137 _Decimal128 types for new builtin functions.
19138 (builtin_function_type): Set the unsigned flags appropriately for
19139 the new builtin functions.
19140 (rs6000_opt_masks): Add support for decimal floating point builtin
19141 functions.
19142
19143 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
19144 floating point builtin functions.
19145 (RS6000_BTM_COMMON): Likewise.
19146 (RS6000_BTI_long_double): Likewise.
19147 (RS6000_BTI_dfloat64): Likewise.
19148 (RS6000_BTI_dfloat128): Likewise.
19149 (long_double_type_internal_node): Likewise.
19150 (dfloat64_type_internal_node): Likewise.
19151 (dfloat128_type_internal_node): Likewise.
19152
19153 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
19154 2.07 bcd arithmetic instructions.
19155 (UNSPEC_BCDSUB): Likewise.
19156 (UNSPEC_BCD_OVERFLOW): Likewise.
19157 (UNSPEC_BCD_ADD_SUB): Likewise.
19158 (bcd_add_sub): Likewise.
19159 (BCD_TEST): Likewise.
19160 (bcd<bcd_add_sub>): Likewise.
19161 (bcd<bcd_add_sub>_test): Likewise.
19162 (bcd<bcd_add_sub>_test2): Likewise.
19163 (bcd<bcd_add_sub>_<code>): Likewise.
19164 (peephole2 for combined bcd ops): Likewise.
19165
19166 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
19167 decimal floating point builtin functions.
19168 (UNSPEC_DENBCD): Likewise.
19169 (UNSPEC_DXEX): Likewise.
19170 (UNSPEC_DIEX): Likewise.
19171 (UNSPEC_DSCLI): Likewise.
19172 (UNSPEC_DSCRI): Likewise.
19173 (D64_D128): Likewise.
19174 (dfp_suffix): Likewise.
19175 (dfp_ddedpd_<mode>): Likewise.
19176 (dfp_denbcd_<mode>): Likewise.
19177 (dfp_dxex_<mode>): Likewise.
19178 (dfp_diex_<mode>): Likewise.
19179 (dfp_dscli_<mode>): Likewise.
19180 (dfp_dscri_<mode>): Likewise.
19181
19182 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
19183 builtin functions.
19184 (UNSPEC_CDTBCD): Likewise.
19185 (UNSPEC_CBCDTD): Likewise.
19186 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
19187 (UNSPEC_DIVEO): Likewise.
19188 (UNSPEC_DIVEU): Likewise.
19189 (UNSPEC_DIVEUO): Likewise.
19190 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
19191 pack/unpack 128-bit types.
19192 (UNSPEC_PACK_128BIT): Likewise.
19193 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
19194 (udiv<mode>3): Use idiv_ldiv mode attribute.
19195 (div<mode>3): Likewise.
19196 (addg6s): Add new BCD builtin functions.
19197 (cdtbcd): Likewise.
19198 (cbcdtd): Likewise.
19199 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19200 (div_extend): Likewise.
19201 (div<div_extend>_<mode>"): Likewise.
19202 (FP128_64): Add support for new builtin functions to pack/unpack
19203 128-bit types.
19204 (unpack<mode>): Likewise.
19205 (unpacktf_0): Likewise.
19206 (unpacktf_1): Likewise.
19207 (unpack<mode>_dm): Likewise.
19208 (unpack<mode>_nodm): Likewise.
19209 (pack<mode>): Likewise.
19210 (unpackv1ti): Likewise.
19211 (packv1ti): Likewise.
19212
19213 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19214
19215 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19216 is disabled.
19217
19218 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19219
19220 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19221 * gimplify.c (omp_is_private): Change last argument's type to int.
19222 Only diagnose lastprivate if the simd argument is 1, only diagnose
19223 linear if the simd argument is 2.
19224 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19225 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19226 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19227 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19228 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19229 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19230 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19231 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19232 * tree-nested.c (convert_nonlocal_omp_clauses,
19233 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19234
19235 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19236
19237 PR target/60822
19238 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19239 operand 1.
19240
19241 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19242
19243 * flag-types.h (enum ivar_visibility): Add.
19244
19245 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19246
19247 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19248 function * argument.
19249
19250 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19251
19252 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19253
19254 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19255 Tom de Vries <tom@codesourcery.com>
19256
19257 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19258 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19259 reg-note.
19260 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19261 * emit-rtl.c (try_split): Same.
19262
19263 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19264 Tom de Vries <tom@codesourcery.com>
19265
19266 * common.opt (fuse-caller-save): New option.
19267
19268 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19269
19270 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19271 elements for big-endian.
19272
19273 2014-04-24 Richard Biener <rguenther@suse.de>
19274
19275 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19276 during TER and instead use the sepops interface for expanding
19277 non-GIMPLE_SINGLE_RHS.
19278
19279 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19280
19281 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19282 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19283
19284 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19285
19286 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19287 assembler 64-bit option.
19288 * configure: Regenerate.
19289
19290 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19291
19292 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19293 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19294 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19295 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19296 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19297
19298 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19299
19300 * config/aarch64/aarch64-builtins.c
19301 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19302 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19303 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19304 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19305 builtins.
19306 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19307 (Vrevsuff): New mode attribute.
19308
19309 2014-04-24 Terry Guo <terry.guo@arm.com>
19310
19311 * config/arm/arm.h (machine_function): Define variable
19312 after_arm_reorg here.
19313 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19314 (arm_split_constant): Update the way to access variable
19315 after_arm_reorg.
19316 (arm_reorg): Ditto.
19317 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19318
19319 2014-04-23 Tom de Vries <tom@codesourcery.com>
19320
19321 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19322
19323 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19324
19325 * is-a.h: Update comments to reflect the following changes to the
19326 "pointerness" of the API, making the template parameter match the
19327 return type, allowing use of is-a.h with typedefs of pointers.
19328 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19329 that the return type matches the parameter to the is_a_helper.
19330 (as_a): Likewise.
19331 (dyn_cast): Likewise.
19332
19333 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19334 pointer from the is-a.h API.
19335
19336 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19337 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19338 is-a.h API.
19339 (is_a_helper <varpool_node>::test): Likewise, convert to...
19340 (is_a_helper <varpool_node *>::test): ...this.
19341
19342 (varpool_first_variable): Update for removal of implicit pointer
19343 from the is-a.h API.
19344 (varpool_next_variable): Likewise.
19345 (varpool_first_static_initializer): Likewise.
19346 (varpool_next_static_initializer): Likewise.
19347 (varpool_first_defined_variable): Likewise.
19348 (varpool_next_defined_variable): Likewise.
19349 (cgraph_first_defined_function): Likewise.
19350 (cgraph_next_defined_function): Likewise.
19351 (cgraph_first_function): Likewise.
19352 (cgraph_next_function): Likewise.
19353 (cgraph_first_function_with_gimple_body): Likewise.
19354 (cgraph_next_function_with_gimple_body): Likewise.
19355 (cgraph_alias_target): Likewise.
19356 (varpool_alias_target): Likewise.
19357 (cgraph_function_or_thunk_node): Likewise.
19358 (varpool_variable_node): Likewise.
19359 (symtab_real_symbol_p): Likewise.
19360 * cgraphunit.c (referred_to_p): Likewise.
19361 (analyze_functions): Likewise.
19362 (handle_alias_pairs): Likewise.
19363 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19364 * gimple-ssa.h (gimple_vuse_op): Likewise.
19365 (gimple_vdef_op): Likewise.
19366 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19367 * gimple.c (gimple_build_asm_1): Likewise.
19368 (gimple_build_try): Likewise.
19369 (gimple_build_resx): Likewise.
19370 (gimple_build_eh_dispatch): Likewise.
19371 (gimple_build_omp_for): Likewise.
19372 (gimple_omp_for_set_clauses): Likewise.
19373
19374 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19375 (is_a_helper <gimple_statement_asm *>::test): ...this.
19376 (is_a_helper <gimple_statement_bind>::test): Convert to...
19377 (is_a_helper <gimple_statement_bind *>::test): ...this.
19378 (is_a_helper <gimple_statement_call>::test): Convert to...
19379 (is_a_helper <gimple_statement_call *>::test): ...this.
19380 (is_a_helper <gimple_statement_catch>::test): Convert to...
19381 (is_a_helper <gimple_statement_catch *>::test): ...this.
19382 (is_a_helper <gimple_statement_resx>::test): Convert to...
19383 (is_a_helper <gimple_statement_resx *>::test): ...this.
19384 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19385 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19386 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19387 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19388 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19389 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19390 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19391 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19392 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19393 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19394 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19395 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19396 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19397 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19398 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19399 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19400 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19401 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19402 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19403 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19404 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19405 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19406 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19407 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19408 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19409 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19410 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19411 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19412 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19413 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19414 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19415 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19416 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19417 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19418 (is_a_helper <gimple_statement_phi>::test): Convert to...
19419 (is_a_helper <gimple_statement_phi *>::test): ...this.
19420 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19421 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19422 (is_a_helper <gimple_statement_try>::test): Convert to...
19423 (is_a_helper <gimple_statement_try *>::test): ...this.
19424 (is_a_helper <gimple_statement_wce>::test): Convert to...
19425 (is_a_helper <gimple_statement_wce *>::test): ...this.
19426 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19427 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19428 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19429 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19430 (is_a_helper <const gimple_statement_call>::test): Convert to...
19431 (is_a_helper <const gimple_statement_call *>::test): ...this.
19432 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19433 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19434 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19435 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19436 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19437 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19438 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19439 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19440 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19441 Convert to...
19442 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19443 ...this.
19444 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19445 Convert to...
19446 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19447 ...this.
19448 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19449 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19450 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19451 to...
19452 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19453 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19454 to...
19455 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19456 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19457 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19458 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19459 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19460 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19461 to...
19462 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19463 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19464 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19465 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19466 to...
19467 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19468 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19469 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19470 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19471 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19472 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19473 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19474 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19475 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19476 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19477 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19478 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19479 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19480 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19481 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19482 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19483 to...
19484 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19485 ...this.
19486 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19487 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19488
19489 (gimple_use_ops): Update for removal of implicit pointer from the
19490 is-a.h API.
19491 (gimple_set_use_ops): Likewise.
19492 (gimple_vuse): Likewise.
19493 (gimple_vdef): Likewise.
19494 (gimple_vuse_ptr): Likewise.
19495 (gimple_vdef_ptr): Likewise.
19496 (gimple_set_vuse): Likewise.
19497 (gimple_set_vdef): Likewise.
19498 (gimple_omp_return_set_lhs): Likewise.
19499 (gimple_omp_return_lhs): Likewise.
19500 (gimple_omp_return_lhs_ptr): Likewise.
19501 (gimple_call_fntype): Likewise.
19502 (gimple_call_set_fntype): Likewise.
19503 (gimple_call_set_internal_fn): Likewise.
19504 (gimple_call_use_set): Likewise.
19505 (gimple_call_clobber_set): Likewise.
19506 (gimple_bind_vars): Likewise.
19507 (gimple_bind_set_vars): Likewise.
19508 (gimple_bind_body_ptr): Likewise.
19509 (gimple_bind_set_body): Likewise.
19510 (gimple_bind_add_stmt): Likewise.
19511 (gimple_bind_block): Likewise.
19512 (gimple_bind_set_block): Likewise.
19513 (gimple_asm_ninputs): Likewise.
19514 (gimple_asm_noutputs): Likewise.
19515 (gimple_asm_nclobbers): Likewise.
19516 (gimple_asm_nlabels): Likewise.
19517 (gimple_asm_input_op): Likewise.
19518 (gimple_asm_input_op_ptr): Likewise.
19519 (gimple_asm_output_op): Likewise.
19520 (gimple_asm_output_op_ptr): Likewise.
19521 (gimple_asm_set_output_op): Likewise.
19522 (gimple_asm_clobber_op): Likewise.
19523 (gimple_asm_set_clobber_op): Likewise.
19524 (gimple_asm_label_op): Likewise.
19525 (gimple_asm_set_label_op): Likewise.
19526 (gimple_asm_string): Likewise.
19527 (gimple_catch_types): Likewise.
19528 (gimple_catch_types_ptr): Likewise.
19529 (gimple_catch_handler_ptr): Likewise.
19530 (gimple_catch_set_types): Likewise.
19531 (gimple_catch_set_handler): Likewise.
19532 (gimple_eh_filter_types): Likewise.
19533 (gimple_eh_filter_types_ptr): Likewise.
19534 (gimple_eh_filter_failure_ptr): Likewise.
19535 (gimple_eh_filter_set_types): Likewise.
19536 (gimple_eh_filter_set_failure): Likewise.
19537 (gimple_eh_must_not_throw_fndecl): Likewise.
19538 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19539 (gimple_eh_else_n_body_ptr): Likewise.
19540 (gimple_eh_else_e_body_ptr): Likewise.
19541 (gimple_eh_else_set_n_body): Likewise.
19542 (gimple_eh_else_set_e_body): Likewise.
19543 (gimple_try_eval_ptr): Likewise.
19544 (gimple_try_cleanup_ptr): Likewise.
19545 (gimple_try_set_eval): Likewise.
19546 (gimple_try_set_cleanup): Likewise.
19547 (gimple_wce_cleanup_ptr): Likewise.
19548 (gimple_wce_set_cleanup): Likewise.
19549 (gimple_phi_capacity): Likewise.
19550 (gimple_phi_num_args): Likewise.
19551 (gimple_phi_result): Likewise.
19552 (gimple_phi_result_ptr): Likewise.
19553 (gimple_phi_set_result): Likewise.
19554 (gimple_phi_arg): Likewise.
19555 (gimple_phi_set_arg): Likewise.
19556 (gimple_resx_region): Likewise.
19557 (gimple_resx_set_region): Likewise.
19558 (gimple_eh_dispatch_region): Likewise.
19559 (gimple_eh_dispatch_set_region): Likewise.
19560 (gimple_omp_critical_name): Likewise.
19561 (gimple_omp_critical_name_ptr): Likewise.
19562 (gimple_omp_critical_set_name): Likewise.
19563 (gimple_omp_for_clauses): Likewise.
19564 (gimple_omp_for_clauses_ptr): Likewise.
19565 (gimple_omp_for_set_clauses): Likewise.
19566 (gimple_omp_for_collapse): Likewise.
19567 (gimple_omp_for_index): Likewise.
19568 (gimple_omp_for_index_ptr): Likewise.
19569 (gimple_omp_for_set_index): Likewise.
19570 (gimple_omp_for_initial): Likewise.
19571 (gimple_omp_for_initial_ptr): Likewise.
19572 (gimple_omp_for_set_initial): Likewise.
19573 (gimple_omp_for_final): Likewise.
19574 (gimple_omp_for_final_ptr): Likewise.
19575 (gimple_omp_for_set_final): Likewise.
19576 (gimple_omp_for_incr): Likewise.
19577 (gimple_omp_for_incr_ptr): Likewise.
19578 (gimple_omp_for_set_incr): Likewise.
19579 (gimple_omp_for_pre_body_ptr): Likewise.
19580 (gimple_omp_for_set_pre_body): Likewise.
19581 (gimple_omp_parallel_clauses): Likewise.
19582 (gimple_omp_parallel_clauses_ptr): Likewise.
19583 (gimple_omp_parallel_set_clauses): Likewise.
19584 (gimple_omp_parallel_child_fn): Likewise.
19585 (gimple_omp_parallel_child_fn_ptr): Likewise.
19586 (gimple_omp_parallel_set_child_fn): Likewise.
19587 (gimple_omp_parallel_data_arg): Likewise.
19588 (gimple_omp_parallel_data_arg_ptr): Likewise.
19589 (gimple_omp_parallel_set_data_arg): Likewise.
19590 (gimple_omp_task_clauses): Likewise.
19591 (gimple_omp_task_clauses_ptr): Likewise.
19592 (gimple_omp_task_set_clauses): Likewise.
19593 (gimple_omp_task_child_fn): Likewise.
19594 (gimple_omp_task_child_fn_ptr): Likewise.
19595 (gimple_omp_task_set_child_fn): Likewise.
19596 (gimple_omp_task_data_arg): Likewise.
19597 (gimple_omp_task_data_arg_ptr): Likewise.
19598 (gimple_omp_task_set_data_arg): Likewise.
19599 (gimple_omp_taskreg_clauses): Likewise.
19600 (gimple_omp_taskreg_clauses_ptr): Likewise.
19601 (gimple_omp_taskreg_set_clauses): Likewise.
19602 (gimple_omp_taskreg_child_fn): Likewise.
19603 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19604 (gimple_omp_taskreg_set_child_fn): Likewise.
19605 (gimple_omp_taskreg_data_arg): Likewise.
19606 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19607 (gimple_omp_taskreg_set_data_arg): Likewise.
19608 (gimple_omp_task_copy_fn): Likewise.
19609 (gimple_omp_task_copy_fn_ptr): Likewise.
19610 (gimple_omp_task_set_copy_fn): Likewise.
19611 (gimple_omp_task_arg_size): Likewise.
19612 (gimple_omp_task_arg_size_ptr): Likewise.
19613 (gimple_omp_task_set_arg_size): Likewise.
19614 (gimple_omp_task_arg_align): Likewise.
19615 (gimple_omp_task_arg_align_ptr): Likewise.
19616 (gimple_omp_task_set_arg_align): Likewise.
19617 (gimple_omp_single_clauses): Likewise.
19618 (gimple_omp_single_clauses_ptr): Likewise.
19619 (gimple_omp_single_set_clauses): Likewise.
19620 (gimple_omp_target_clauses): Likewise.
19621 (gimple_omp_target_clauses_ptr): Likewise.
19622 (gimple_omp_target_set_clauses): Likewise.
19623 (gimple_omp_target_child_fn): Likewise.
19624 (gimple_omp_target_child_fn_ptr): Likewise.
19625 (gimple_omp_target_set_child_fn): Likewise.
19626 (gimple_omp_target_data_arg): Likewise.
19627 (gimple_omp_target_data_arg_ptr): Likewise.
19628 (gimple_omp_target_set_data_arg): Likewise.
19629 (gimple_omp_teams_clauses): Likewise.
19630 (gimple_omp_teams_clauses_ptr): Likewise.
19631 (gimple_omp_teams_set_clauses): Likewise.
19632 (gimple_omp_sections_clauses): Likewise.
19633 (gimple_omp_sections_clauses_ptr): Likewise.
19634 (gimple_omp_sections_set_clauses): Likewise.
19635 (gimple_omp_sections_control): Likewise.
19636 (gimple_omp_sections_control_ptr): Likewise.
19637 (gimple_omp_sections_set_control): Likewise.
19638 (gimple_omp_for_set_cond): Likewise.
19639 (gimple_omp_for_cond): Likewise.
19640 (gimple_omp_atomic_store_set_val): Likewise.
19641 (gimple_omp_atomic_store_val): Likewise.
19642 (gimple_omp_atomic_store_val_ptr): Likewise.
19643 (gimple_omp_atomic_load_set_lhs): Likewise.
19644 (gimple_omp_atomic_load_lhs): Likewise.
19645 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19646 (gimple_omp_atomic_load_set_rhs): Likewise.
19647 (gimple_omp_atomic_load_rhs): Likewise.
19648 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19649 (gimple_omp_continue_control_def): Likewise.
19650 (gimple_omp_continue_control_def_ptr): Likewise.
19651 (gimple_omp_continue_set_control_def): Likewise.
19652 (gimple_omp_continue_control_use): Likewise.
19653 (gimple_omp_continue_control_use_ptr): Likewise.
19654 (gimple_omp_continue_set_control_use): Likewise.
19655 (gimple_transaction_body_ptr): Likewise.
19656 (gimple_transaction_label): Likewise.
19657 (gimple_transaction_label_ptr): Likewise.
19658 (gimple_transaction_set_body): Likewise.
19659 (gimple_transaction_set_label): Likewise.
19660
19661 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19662 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19663 * ipa-ref.c (ipa_record_reference): Likewise.
19664 * ipa-reference.c (analyze_function): Likewise.
19665 (ipa_reference_write_optimization_summary): Likewise.
19666 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19667 (address_taken_from_non_vtable_p): Likewise.
19668 (comdat_can_be_unshared_p_1): Likewise.
19669 * lto-cgraph.c (lto_output_ref): Likewise.
19670 (add_references): Likewise.
19671 (compute_ltrans_boundary): Likewise.
19672 (output_symtab): Likewise.
19673 (input_ref): Likewise.
19674 (input_cgraph_1): Likewise.
19675 (output_cgraph_opt_summary): Likewise.
19676 * lto-streamer-out.c (lto_output): Likewise.
19677 (output_symbol_p): Likewise.
19678 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19679 (lsei_start_function_in_partition): Likewise.
19680 (lsei_next_variable_in_partition): Likewise.
19681 (lsei_start_variable_in_partition): Likewise.
19682 * symtab.c (insert_to_assembler_name_hash): Likewise.
19683 (unlink_from_assembler_name_hash): Likewise.
19684 (symtab_unregister_node): Likewise.
19685 (symtab_remove_node): Likewise.
19686 (dump_symtab_node): Likewise.
19687 (verify_symtab_base): Likewise.
19688 (verify_symtab_node): Likewise.
19689 (symtab_make_decl_local): Likewise.
19690 (symtab_alias_ultimate_target): Likewise.
19691 (symtab_resolve_alias): Likewise.
19692 (symtab_get_symbol_partitioning_class): Likewise.
19693 * tree-phinodes.c (allocate_phi_node): Likewise.
19694 (reserve_phi_args_for_new_edge): Likewise.
19695 (remove_phi_args): Likewise.
19696 * varpool.c (varpool_node_for_asm): Likewise.
19697 (varpool_remove_unreferenced_decls): Likewise.
19698
19699 2014-04-23 Jeff Law <law@redhat.com>
19700
19701 PR tree-optimization/60902
19702 * tree-ssa-threadedge.c
19703 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19704 invalidate outputs from statements that do not produce useful
19705 outputs for threading.
19706
19707 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19708
19709 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19710 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19711 machine descriptions for Stack Smashing Protector.
19712
19713 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19714
19715 * aarch64.md (<optab>_rol<mode>3): New pattern.
19716 (<optab>_rolsi3_uxtw): Likewise.
19717 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19718
19719 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19720
19721 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19722 (arm_cortex_a12_tune): Likewise.
19723
19724 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19725
19726 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19727
19728 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19729
19730 * config/arm/arm.md (arm_rev16si2): New pattern.
19731 (arm_rev16si2_alt): Likewise.
19732 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19733
19734 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19735
19736 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19737 (rev16<mode>2_alt): Likewise.
19738 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19739 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19740 (aarch_rev16_shleft_mask_imm_p): Likewise.
19741 (aarch_rev16_p_1): Likewise.
19742 (aarch_rev16_p): Likewise.
19743 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19744 (aarch_rev16_shright_mask_imm_p): Likewise.
19745 (aarch_rev16_shleft_mask_imm_p): Likewise.
19746
19747 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19748
19749 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19750 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19751 rev cost.
19752 (cortex_a53_extra_costs): Likewise.
19753 (cortex_a57_extra_costs): Likewise.
19754 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19755 (cortexa7_extra_costs): Likewise.
19756 (cortexa8_extra_costs): Likewise.
19757 (cortexa12_extra_costs): Likewise.
19758 (cortexa15_extra_costs): Likewise.
19759 (v7m_extra_costs): Likewise.
19760 (arm_new_rtx_costs): Handle BSWAP.
19761
19762 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19763
19764 * config/arm/arm.c (cortexa8_extra_costs): New table.
19765 (arm_cortex_a8_tune): New tuning struct.
19766 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19767
19768 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19769
19770 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19771
19772 2014-04-23 Richard Biener <rguenther@suse.de>
19773
19774 * Makefile.in (OBJS): Remove loop-unswitch.o.
19775 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19776 * passes.def (pass_rtl_unswitch): Likewise.
19777 * loop-init.c (gate_rtl_unswitch): Likewise.
19778 (rtl_unswitch): Likewise.
19779 (pass_data_rtl_unswitch): Likewise.
19780 (pass_rtl_unswitch): Likewise.
19781 (make_pass_rtl_unswitch): Likewise.
19782 * rtl.h (reversed_condition): Likewise.
19783 (compare_and_jump_seq): Likewise.
19784 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19785 and make static.
19786 * loop-unroll.c (compare_and_jump_seq): Likewise.
19787
19788 2014-04-23 Richard Biener <rguenther@suse.de>
19789
19790 PR tree-optimization/60903
19791 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19792 commented code block.
19793 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19794 loop flags to newly created BBs and edges.
19795
19796 2014-04-23 Nick Clifton <nickc@redhat.com>
19797
19798 * config/msp430/msp430.c (msp430_handle_option): Move function
19799 to msp430-common.c
19800 (msp430_option_override): Simplify mcu and mcpu option handling.
19801 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19802 support for -mhwmult command line option.
19803 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19804 -mhwmult command line option.
19805 (msp430_hwmult_enabled): Delete.
19806 (msp43o_output_labelref): Add support for -mhwmult command line option.
19807 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19808 (umulsidi3): Likewise.
19809 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19810 (mcpu, mlarge, msmall): Likewise.
19811 (mhwmult): New option.
19812 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19813 prototype.
19814 (msp430_is_f5_mcu): Remove prototype.
19815 (msp430_use_f5_series_hwmult): Add prototype.
19816 * config/msp430/msp430-opts.h: New file.
19817 * common/config/msp430: New directory.
19818 * common/config/msp430/msp430-common.c: New file.
19819 * config.gcc (msp430): Remove target_has_targetm_common.
19820 * doc/invoke.texi: Document -mhwmult command line option.
19821
19822 2014-04-23 Nick Clifton <nickc@redhat.com>
19823
19824 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19825 default-manifest.o if it can be found in the search path.
19826 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19827
19828 2014-04-23 Terry Guo <terry.guo@arm.com>
19829
19830 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19831
19832 2014-04-23 Richard Biener <rguenther@suse.de>
19833
19834 PR middle-end/60895
19835 * tree-inline.c (declare_return_variable): Use mark_addressable.
19836
19837 2014-04-23 Richard Biener <rguenther@suse.de>
19838
19839 PR middle-end/60891
19840 * loop-init.c (loop_optimizer_init): Make sure to apply
19841 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19842
19843 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19844
19845 PR sanitizer/60275
19846 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19847 New options.
19848 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19849 if flag_sanitize_undefined_trap_on_error.
19850 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19851 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19852 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19853 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19854 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19855 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19856 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19857 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19858 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19859 * ubsan.c (ubsan_instrument_unreachable): Return
19860 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19861 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19862 if flag_sanitize_undefined_trap_on_error and
19863 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19864 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19865 instrument_bool_enum_load): Emit __builtin_trap () if
19866 flag_sanitize_undefined_trap_on_error and
19867 __builtin_handle_*_abort () if !flag_sanitize_recover.
19868 * doc/invoke.texi (-fsanitize-recover,
19869 -fsanitize-undefined-trap-on-error): Document.
19870
19871 2014-04-22 Christian Bruel <christian.bruel@st.com>
19872
19873 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19874 Force immediates to SImode.
19875
19876 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19877
19878 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19879 (lroundsfsi2): New.
19880 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19881 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19882 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19883 (nios2_fpu_insn): Add entry for round.
19884 (N2FPU_NO_ERRNO_P): Define.
19885 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19886 flag_errno_math.
19887 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19888
19889 2014-04-22 Richard Henderson <rth@redhat.com>
19890
19891 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19892 (add<GPI>3_compare0): Remove leading * from name.
19893 (add<GPI>3_carryin): Likewise.
19894 (sub<GPI>3_compare0): Likewise.
19895 (sub<GPI>3_carryin): Likewise.
19896 (<su_optab>mulditi3): New expander.
19897 (multi3): New expander.
19898 (madd<GPI>): Remove leading * from name.
19899
19900 2014-04-22 Martin Jambor <mjambor@suse.cz>
19901
19902 * cgraphclones.c (cgraph_function_versioning): Copy
19903 ipa_transforms_to_apply instead of asserting it is empty.
19904
19905 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19906
19907 PR target/60868
19908 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19909 on count_exp to get mode.
19910
19911 2014-04-22 Andrew Pinski <apinski@cavium.com>
19912
19913 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19914 Handle TLS for ILP32.
19915 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19916 (tlsie_small_<mode>): this and handle PTR.
19917 (tlsie_small_sidi): New pattern.
19918 (tlsle_small): Change to an expand to handle ILP32.
19919 (tlsle_small_<mode>): New pattern.
19920 (tlsdesc_small): Rename to ...
19921 (tlsdesc_small_<mode>): this and handle PTR.
19922
19923 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19924
19925 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19926
19927 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19928
19929 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19930 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19931 (aarch64_types_signed_poly_qualifiers): Likewise.
19932 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19933 (aarch64_types_poly_signed_qualifiers): Likewise.
19934 (TYPES_REINTERP_SS): Type macro added.
19935 (TYPES_REINTERP_SU): Likewise.
19936 (TYPES_REINTERP_SP): Likewise.
19937 (TYPES_REINTERP_US): Likewise.
19938 (TYPES_REINTERP_PS): Likewise.
19939 (aarch64_fold_builtin): New expression folding added.
19940 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19941 Declarations removed.
19942 (REINTERP_SS): Declarations added.
19943 (REINTERP_US): Likewise.
19944 (REINTERP_PS): Likewise.
19945 (REINTERP_SU): Likewise.
19946 (REINTERP_SP): Likewise.
19947 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19948 (vreinterpretq_p8_f64): Likewise.
19949 (vreinterpret_p16_f64): Likewise.
19950 (vreinterpretq_p16_f64): Likewise.
19951 (vreinterpret_f32_f64): Likewise.
19952 (vreinterpretq_f32_f64): Likewise.
19953 (vreinterpret_f64_f32): Likewise.
19954 (vreinterpret_f64_p8): Likewise.
19955 (vreinterpret_f64_p16): Likewise.
19956 (vreinterpret_f64_s8): Likewise.
19957 (vreinterpret_f64_s16): Likewise.
19958 (vreinterpret_f64_s32): Likewise.
19959 (vreinterpret_f64_s64): Likewise.
19960 (vreinterpret_f64_u8): Likewise.
19961 (vreinterpret_f64_u16): Likewise.
19962 (vreinterpret_f64_u32): Likewise.
19963 (vreinterpret_f64_u64): Likewise.
19964 (vreinterpretq_f64_f32): Likewise.
19965 (vreinterpretq_f64_p8): Likewise.
19966 (vreinterpretq_f64_p16): Likewise.
19967 (vreinterpretq_f64_s8): Likewise.
19968 (vreinterpretq_f64_s16): Likewise.
19969 (vreinterpretq_f64_s32): Likewise.
19970 (vreinterpretq_f64_s64): Likewise.
19971 (vreinterpretq_f64_u8): Likewise.
19972 (vreinterpretq_f64_u16): Likewise.
19973 (vreinterpretq_f64_u32): Likewise.
19974 (vreinterpretq_f64_u64): Likewise.
19975 (vreinterpret_s64_f64): Likewise.
19976 (vreinterpretq_s64_f64): Likewise.
19977 (vreinterpret_u64_f64): Likewise.
19978 (vreinterpretq_u64_f64): Likewise.
19979 (vreinterpret_s8_f64): Likewise.
19980 (vreinterpretq_s8_f64): Likewise.
19981 (vreinterpret_s16_f64): Likewise.
19982 (vreinterpretq_s16_f64): Likewise.
19983 (vreinterpret_s32_f64): Likewise.
19984 (vreinterpretq_s32_f64): Likewise.
19985 (vreinterpret_u8_f64): Likewise.
19986 (vreinterpretq_u8_f64): Likewise.
19987 (vreinterpret_u16_f64): Likewise.
19988 (vreinterpretq_u16_f64): Likewise.
19989 (vreinterpret_u32_f64): Likewise.
19990 (vreinterpretq_u32_f64): Likewise.
19991
19992 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19993
19994 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19995 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19996 (vreinterpret_p8_s8): Likewise.
19997 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19998 (vreinterpret_p8_s16): Likewise.
19999 (vreinterpret_p8_s32): Likewise.
20000 (vreinterpret_p8_s64): Likewise.
20001 (vreinterpret_p8_f32): Likewise.
20002 (vreinterpret_p8_u8): Likewise.
20003 (vreinterpret_p8_u16): Likewise.
20004 (vreinterpret_p8_u32): Likewise.
20005 (vreinterpret_p8_u64): Likewise.
20006 (vreinterpret_p8_p16): Likewise.
20007 (vreinterpretq_p8_s8): Likewise.
20008 (vreinterpretq_p8_s16): Likewise.
20009 (vreinterpretq_p8_s32): Likewise.
20010 (vreinterpretq_p8_s64): Likewise.
20011 (vreinterpretq_p8_f32): Likewise.
20012 (vreinterpretq_p8_u8): Likewise.
20013 (vreinterpretq_p8_u16): Likewise.
20014 (vreinterpretq_p8_u32): Likewise.
20015 (vreinterpretq_p8_u64): Likewise.
20016 (vreinterpretq_p8_p16): Likewise.
20017 (vreinterpret_p16_s8): Likewise.
20018 (vreinterpret_p16_s16): Likewise.
20019 (vreinterpret_p16_s32): Likewise.
20020 (vreinterpret_p16_s64): Likewise.
20021 (vreinterpret_p16_f32): Likewise.
20022 (vreinterpret_p16_u8): Likewise.
20023 (vreinterpret_p16_u16): Likewise.
20024 (vreinterpret_p16_u32): Likewise.
20025 (vreinterpret_p16_u64): Likewise.
20026 (vreinterpret_p16_p8): Likewise.
20027 (vreinterpretq_p16_s8): Likewise.
20028 (vreinterpretq_p16_s16): Likewise.
20029 (vreinterpretq_p16_s32): Likewise.
20030 (vreinterpretq_p16_s64): Likewise.
20031 (vreinterpretq_p16_f32): Likewise.
20032 (vreinterpretq_p16_u8): Likewise.
20033 (vreinterpretq_p16_u16): Likewise.
20034 (vreinterpretq_p16_u32): Likewise.
20035 (vreinterpretq_p16_u64): Likewise.
20036 (vreinterpretq_p16_p8): Likewise.
20037 (vreinterpret_f32_s8): Likewise.
20038 (vreinterpret_f32_s16): Likewise.
20039 (vreinterpret_f32_s32): Likewise.
20040 (vreinterpret_f32_s64): Likewise.
20041 (vreinterpret_f32_u8): Likewise.
20042 (vreinterpret_f32_u16): Likewise.
20043 (vreinterpret_f32_u32): Likewise.
20044 (vreinterpret_f32_u64): Likewise.
20045 (vreinterpret_f32_p8): Likewise.
20046 (vreinterpret_f32_p16): Likewise.
20047 (vreinterpretq_f32_s8): Likewise.
20048 (vreinterpretq_f32_s16): Likewise.
20049 (vreinterpretq_f32_s32): Likewise.
20050 (vreinterpretq_f32_s64): Likewise.
20051 (vreinterpretq_f32_u8): Likewise.
20052 (vreinterpretq_f32_u16): Likewise.
20053 (vreinterpretq_f32_u32): Likewise.
20054 (vreinterpretq_f32_u64): Likewise.
20055 (vreinterpretq_f32_p8): Likewise.
20056 (vreinterpretq_f32_p16): Likewise.
20057 (vreinterpret_s64_s8): Likewise.
20058 (vreinterpret_s64_s16): Likewise.
20059 (vreinterpret_s64_s32): Likewise.
20060 (vreinterpret_s64_f32): Likewise.
20061 (vreinterpret_s64_u8): Likewise.
20062 (vreinterpret_s64_u16): Likewise.
20063 (vreinterpret_s64_u32): Likewise.
20064 (vreinterpret_s64_u64): Likewise.
20065 (vreinterpret_s64_p8): Likewise.
20066 (vreinterpret_s64_p16): Likewise.
20067 (vreinterpretq_s64_s8): Likewise.
20068 (vreinterpretq_s64_s16): Likewise.
20069 (vreinterpretq_s64_s32): Likewise.
20070 (vreinterpretq_s64_f32): Likewise.
20071 (vreinterpretq_s64_u8): Likewise.
20072 (vreinterpretq_s64_u16): Likewise.
20073 (vreinterpretq_s64_u32): Likewise.
20074 (vreinterpretq_s64_u64): Likewise.
20075 (vreinterpretq_s64_p8): Likewise.
20076 (vreinterpretq_s64_p16): Likewise.
20077 (vreinterpret_u64_s8): Likewise.
20078 (vreinterpret_u64_s16): Likewise.
20079 (vreinterpret_u64_s32): Likewise.
20080 (vreinterpret_u64_s64): Likewise.
20081 (vreinterpret_u64_f32): Likewise.
20082 (vreinterpret_u64_u8): Likewise.
20083 (vreinterpret_u64_u16): Likewise.
20084 (vreinterpret_u64_u32): Likewise.
20085 (vreinterpret_u64_p8): Likewise.
20086 (vreinterpret_u64_p16): Likewise.
20087 (vreinterpretq_u64_s8): Likewise.
20088 (vreinterpretq_u64_s16): Likewise.
20089 (vreinterpretq_u64_s32): Likewise.
20090 (vreinterpretq_u64_s64): Likewise.
20091 (vreinterpretq_u64_f32): Likewise.
20092 (vreinterpretq_u64_u8): Likewise.
20093 (vreinterpretq_u64_u16): Likewise.
20094 (vreinterpretq_u64_u32): Likewise.
20095 (vreinterpretq_u64_p8): Likewise.
20096 (vreinterpretq_u64_p16): Likewise.
20097 (vreinterpret_s8_s16): Likewise.
20098 (vreinterpret_s8_s32): Likewise.
20099 (vreinterpret_s8_s64): Likewise.
20100 (vreinterpret_s8_f32): Likewise.
20101 (vreinterpret_s8_u8): Likewise.
20102 (vreinterpret_s8_u16): Likewise.
20103 (vreinterpret_s8_u32): Likewise.
20104 (vreinterpret_s8_u64): Likewise.
20105 (vreinterpret_s8_p8): Likewise.
20106 (vreinterpret_s8_p16): Likewise.
20107 (vreinterpretq_s8_s16): Likewise.
20108 (vreinterpretq_s8_s32): Likewise.
20109 (vreinterpretq_s8_s64): Likewise.
20110 (vreinterpretq_s8_f32): Likewise.
20111 (vreinterpretq_s8_u8): Likewise.
20112 (vreinterpretq_s8_u16): Likewise.
20113 (vreinterpretq_s8_u32): Likewise.
20114 (vreinterpretq_s8_u64): Likewise.
20115 (vreinterpretq_s8_p8): Likewise.
20116 (vreinterpretq_s8_p16): Likewise.
20117 (vreinterpret_s16_s8): Likewise.
20118 (vreinterpret_s16_s32): Likewise.
20119 (vreinterpret_s16_s64): Likewise.
20120 (vreinterpret_s16_f32): Likewise.
20121 (vreinterpret_s16_u8): Likewise.
20122 (vreinterpret_s16_u16): Likewise.
20123 (vreinterpret_s16_u32): Likewise.
20124 (vreinterpret_s16_u64): Likewise.
20125 (vreinterpret_s16_p8): Likewise.
20126 (vreinterpret_s16_p16): Likewise.
20127 (vreinterpretq_s16_s8): Likewise.
20128 (vreinterpretq_s16_s32): Likewise.
20129 (vreinterpretq_s16_s64): Likewise.
20130 (vreinterpretq_s16_f32): Likewise.
20131 (vreinterpretq_s16_u8): Likewise.
20132 (vreinterpretq_s16_u16): Likewise.
20133 (vreinterpretq_s16_u32): Likewise.
20134 (vreinterpretq_s16_u64): Likewise.
20135 (vreinterpretq_s16_p8): Likewise.
20136 (vreinterpretq_s16_p16): Likewise.
20137 (vreinterpret_s32_s8): Likewise.
20138 (vreinterpret_s32_s16): Likewise.
20139 (vreinterpret_s32_s64): Likewise.
20140 (vreinterpret_s32_f32): Likewise.
20141 (vreinterpret_s32_u8): Likewise.
20142 (vreinterpret_s32_u16): Likewise.
20143 (vreinterpret_s32_u32): Likewise.
20144 (vreinterpret_s32_u64): Likewise.
20145 (vreinterpret_s32_p8): Likewise.
20146 (vreinterpret_s32_p16): Likewise.
20147 (vreinterpretq_s32_s8): Likewise.
20148 (vreinterpretq_s32_s16): Likewise.
20149 (vreinterpretq_s32_s64): Likewise.
20150 (vreinterpretq_s32_f32): Likewise.
20151 (vreinterpretq_s32_u8): Likewise.
20152 (vreinterpretq_s32_u16): Likewise.
20153 (vreinterpretq_s32_u32): Likewise.
20154 (vreinterpretq_s32_u64): Likewise.
20155 (vreinterpretq_s32_p8): Likewise.
20156 (vreinterpretq_s32_p16): Likewise.
20157 (vreinterpret_u8_s8): Likewise.
20158 (vreinterpret_u8_s16): Likewise.
20159 (vreinterpret_u8_s32): Likewise.
20160 (vreinterpret_u8_s64): Likewise.
20161 (vreinterpret_u8_f32): Likewise.
20162 (vreinterpret_u8_u16): Likewise.
20163 (vreinterpret_u8_u32): Likewise.
20164 (vreinterpret_u8_u64): Likewise.
20165 (vreinterpret_u8_p8): Likewise.
20166 (vreinterpret_u8_p16): Likewise.
20167 (vreinterpretq_u8_s8): Likewise.
20168 (vreinterpretq_u8_s16): Likewise.
20169 (vreinterpretq_u8_s32): Likewise.
20170 (vreinterpretq_u8_s64): Likewise.
20171 (vreinterpretq_u8_f32): Likewise.
20172 (vreinterpretq_u8_u16): Likewise.
20173 (vreinterpretq_u8_u32): Likewise.
20174 (vreinterpretq_u8_u64): Likewise.
20175 (vreinterpretq_u8_p8): Likewise.
20176 (vreinterpretq_u8_p16): Likewise.
20177 (vreinterpret_u16_s8): Likewise.
20178 (vreinterpret_u16_s16): Likewise.
20179 (vreinterpret_u16_s32): Likewise.
20180 (vreinterpret_u16_s64): Likewise.
20181 (vreinterpret_u16_f32): Likewise.
20182 (vreinterpret_u16_u8): Likewise.
20183 (vreinterpret_u16_u32): Likewise.
20184 (vreinterpret_u16_u64): Likewise.
20185 (vreinterpret_u16_p8): Likewise.
20186 (vreinterpret_u16_p16): Likewise.
20187 (vreinterpretq_u16_s8): Likewise.
20188 (vreinterpretq_u16_s16): Likewise.
20189 (vreinterpretq_u16_s32): Likewise.
20190 (vreinterpretq_u16_s64): Likewise.
20191 (vreinterpretq_u16_f32): Likewise.
20192 (vreinterpretq_u16_u8): Likewise.
20193 (vreinterpretq_u16_u32): Likewise.
20194 (vreinterpretq_u16_u64): Likewise.
20195 (vreinterpretq_u16_p8): Likewise.
20196 (vreinterpretq_u16_p16): Likewise.
20197 (vreinterpret_u32_s8): Likewise.
20198 (vreinterpret_u32_s16): Likewise.
20199 (vreinterpret_u32_s32): Likewise.
20200 (vreinterpret_u32_s64): Likewise.
20201 (vreinterpret_u32_f32): Likewise.
20202 (vreinterpret_u32_u8): Likewise.
20203 (vreinterpret_u32_u16): Likewise.
20204 (vreinterpret_u32_u64): Likewise.
20205 (vreinterpret_u32_p8): Likewise.
20206 (vreinterpret_u32_p16): Likewise.
20207 (vreinterpretq_u32_s8): Likewise.
20208 (vreinterpretq_u32_s16): Likewise.
20209 (vreinterpretq_u32_s32): Likewise.
20210 (vreinterpretq_u32_s64): Likewise.
20211 (vreinterpretq_u32_f32): Likewise.
20212 (vreinterpretq_u32_u8): Likewise.
20213 (vreinterpretq_u32_u16): Likewise.
20214 (vreinterpretq_u32_u64): Likewise.
20215 (vreinterpretq_u32_p8): Likewise.
20216 (vreinterpretq_u32_p16): Likewise.
20217
20218 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20219
20220 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20221 Pattern extended.
20222 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20223 (sqabs): Likewise.
20224 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20225 (vqnegd_s64): Likewise.
20226 (vqabs_s64): Likewise.
20227 (vqabsd_s64): Likewise.
20228
20229 2014-04-22 Richard Henderson <rth@redhat.com>
20230
20231 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20232 computation to the top of the loop.
20233
20234 2014-04-22 Renlin <renlin.li@arm.com>
20235 Jiong Wang <jiong.wang@arm.com>
20236
20237 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20238 * config/aarch64/aarch64.c (aarch64_layout_frame)
20239 (aarch64_initial_elimination_offset): Likewise.
20240
20241 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20242
20243 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20244 Fix indentation.
20245
20246 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20247
20248 * machmode.h (bitwise_mode_for_mode): Declare.
20249 * stor-layout.h (bitwise_type_for_mode): Likewise.
20250 * stor-layout.c (bitwise_mode_for_mode): New function.
20251 (bitwise_type_for_mode): Likewise.
20252 * builtins.c (fold_builtin_memory_op): Use it instead of
20253 int_mode_for_mode and build_nonstandard_integer_type.
20254
20255 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20256
20257 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20258 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20259 (*-*-solaris2*): Simplify.
20260 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20261 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20262 *-*-solaris2.9* handling.
20263
20264 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20265 as bug.
20266 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20267 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20268 handling, simplify.
20269 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20270 * configure: Regenerate.
20271
20272 * config/i386/sol2-9.h: Remove.
20273
20274 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20275 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20276 Remove Solaris 9 references.
20277
20278 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20279
20280 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20281 (floatuns<GPI:mode><GPF:mode>2): Remove.
20282 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20283 and floatuns conversions.
20284 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20285 and floatuns conversions.
20286 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20287 (w1,w2): New mode attributes for inequal width conversions.
20288
20289 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20290
20291 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20292 the output asm format.
20293
20294 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20295
20296 * config/aarch64/aarch64-simd.md
20297 (aarch64_cm<optab>di): Always split.
20298 (*aarch64_cm<optab>di): New.
20299 (aarch64_cmtstdi): Always split.
20300 (*aarch64_cmtstdi): New.
20301
20302 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20303
20304 PR tree-optimization/60823
20305 * omp-low.c (ipa_simd_modify_function_body): Go through
20306 all SSA_NAMEs and for those refering to vector arguments
20307 which are going to be replaced adjust SSA_NAME_VAR and,
20308 if it is a default definition, change it into a non-default
20309 definition assigned at the beginning of function from new_decl.
20310 (ipa_simd_modify_stmt_ops): Rewritten.
20311 * tree-dfa.c (set_ssa_default_def): When removing default def,
20312 check for NULL loc instead of NULL *loc.
20313
20314 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20315
20316 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20317 restrictions on core registers for DImode values in Thumb2.
20318
20319 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20320
20321 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20322 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20323
20324 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20325
20326 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20327 (*iordi_notzesidi_di): Likewise.
20328 (*iordi_notsesidi_di): Likewise.
20329
20330 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20331
20332 * config/arm/arm-protos.h (tune_params): New struct members.
20333 * config/arm/arm.c: Initialise tune_params per processor.
20334 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20335 for speed, based on new tune_params.
20336
20337 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20338
20339 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20340 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20341 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20342 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20343 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20344 (vrnda_f64): Likewise.
20345 (vrndi_f64): Likewise.
20346 (vrndm_f64): Likewise.
20347 (vrndn_f64): Likewise.
20348 (vrndp_f64): Likewise.
20349 (vrndx_f64): Likewise.
20350
20351 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20352
20353 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20354 GET_MODE_SIZE argument is enum machine_mode.
20355
20356 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20357
20358 PR target/60910
20359 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20360 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20361
20362 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20363
20364 PR middle-end/60281
20365 * asan.c (asan_emit_stack_protection): Force the base to align to
20366 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20367 appropriate bits if STRICT_ALIGNMENT.
20368 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20369 when asan is on.
20370 (expand_used_vars): Leave a space in the stack frame for alignment
20371 if STRICT_ALIGNMENT.
20372
20373 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20374
20375 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20376 than a gimple.
20377 (gimple_store_p): Likewise.
20378 (gimple_assign_load_p): Likewise.
20379 (gimple_assign_cast_p): Likewise.
20380 (gimple_clobber_p): Likewise.
20381
20382 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20383 rather than a gimple.
20384 (gimple_assign_cast_p): Likewise.
20385
20386 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20387
20388 PR target/60735
20389 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20390 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20391
20392 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20393 more debug information for E500 if -mdebug=reg.
20394
20395 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20396
20397 PR target/60909
20398 * config/i386/i386.c (ix86_expand_builtin)
20399 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20400 register for target RTX.
20401 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20402
20403 2014-04-18 Cong Hou <congh@google.com>
20404
20405 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20406 the widen-mult pattern by handling two operands with different sizes,
20407 and operands whose size is smaller than half of the result type.
20408
20409 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20410
20411 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20412 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20413 (do_estimate_edge_time): Compute it.
20414 * ipa-inline.c (want_inline_small_function_p): Bypass
20415 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20416
20417 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20418
20419 * ipa-inline.c (spec_rem): New static variable.
20420 (dump_overall_stats): New function.
20421 (dump_inline_stats): New function.
20422
20423 2014-04-18 Richard Henderson <rth@redhat.com>
20424
20425 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20426 to GET_MODE_SIZE, not a reg_class_t.
20427
20428 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20429
20430 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20431 (vsx_xxmrglw_<mode>): Likewise.
20432
20433 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20434
20435 PR target/60876
20436 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20437 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20438 (rs6000_init_hard_regno_mode_ok): Likewise.
20439
20440 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20441
20442 * ipa-inline.c (inline_small_functions): Account only non-cold
20443 functions.
20444 * doc/invoke.texi (inline-unit-growth): Update documentation.
20445
20446 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20447
20448 * config/rs6000/rs6000.md (addti3, subti3): New.
20449
20450 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20451
20452 PR target/60863
20453 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20454 comment. Check optimize_insn_for_size_p instead of
20455 optimize_insn_for_speed_p.
20456
20457 2014-04-17 Martin Jambor <mjambor@suse.cz>
20458
20459 * gimple-iterator.c (gsi_start_edge): New function.
20460 * gimple-iterator.h (gsi_start_edge): Declare.
20461 * tree-sra.c (single_non_eh_succ): New function.
20462 (disqualify_ops_if_throwing_stmt): Renamed to
20463 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20464 having one non-EH successor BB.
20465 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20466 generate loads into replacements.
20467 (sra_modify_assign): Likewise and and also use the simple path for
20468 such statements.
20469 (sra_modify_function_body): Commit statements on edges.
20470
20471 2014-04-17 Richard Biener <rguenther@suse.de>
20472
20473 PR middle-end/60849
20474 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20475 comparison results and add clarifying comment.
20476
20477 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20478
20479 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20480 (blank_mode): Initialize it.
20481 (emit_mode_size_inline, emit_mode_nunits_inline,
20482 emit_mode_inner_inline): New functions.
20483 (emit_insn_modes_h): Call them and surround their output with
20484 #if GCC_VERSION >= 4001 ... #endif.
20485 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20486 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20487 mode_* arrays if the argument is __builtin_constant_p.
20488 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20489 is enum machine_mode.
20490
20491 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20492
20493 * passes.c (opt_pass::execute): Adjust.
20494 (pass_manager::execute_pass_mode_switching): Likewise.
20495 (early_local_passes::execute): Likewise.
20496 (execute_one_pass): Pass cfun to the pass's execute method.
20497 * tree-pass.h (opt_pass::execute): Add function * argument.
20498 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20499 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20500 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20501 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20502 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20503 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20504 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20505 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20506 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20507 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20508 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20509 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20510 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20511 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20512 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20513 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20514 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20515 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20516 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20517 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20518 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20519 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20520 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20521 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20522 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20523 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20524 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20525 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20526 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20527 Adjust.
20528
20529 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20530
20531 * passes.c (opt_pass::gate): Take function * argument.
20532 (gate_all_early_local_passes): Merge into
20533 (early_local_passes::gate): this.
20534 (gate_all_early_optimizations): Merge into
20535 (all_early_optimizations::gate): this.
20536 (gate_all_optimizations): Mege into
20537 (all_optimizations::gate): this.
20538 (gate_all_optimizations_g): Merge into
20539 (all_optimizations_g::gate): this.
20540 (gate_rest_of_compilation): Mege into
20541 (rest_of_compilation::gate): this.
20542 (gate_postreload): Merge into
20543 (postreload::gate): this.
20544 (dump_one_pass): Pass cfun to the pass's gate method.
20545 (execute_ipa_summary_passes): Likewise.
20546 (execute_one_pass): Likewise.
20547 (ipa_write_summaries_2): Likewise.
20548 (ipa_write_optimization_summaries_1): Likewise.
20549 (ipa_read_summaries_1): Likewise.
20550 (ipa_read_optimization_summaries_1): Likewise.
20551 (execute_ipa_stmt_fixups): Likewise.
20552 * tree-pass.h (opt_pass::gate): Add function * argument.
20553 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20554 combine-stack-adj.c, combine.c, compare-elim.c,
20555 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20556 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20557 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20558 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20559 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20560 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20561 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20562 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20563 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20564 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20565 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20566 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20567 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20568 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20569 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20570 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20571 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20572 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20573 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20574 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20575 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20576 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20577 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20578 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20579 var-tracking.c, vtable-verify.c, web.c: Adjust.
20580
20581 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20582
20583 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20584 * configure: Regenerate.
20585
20586 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20587
20588 * passes.c (dump_one_pass): don't check pass->has_gate.
20589 (execute_ipa_summary_passes): Likewise.
20590 (execute_one_pass): Likewise.
20591 (ipa_write_summaries_2): Likewise.
20592 (ipa_write_optimization_summaries_1): Likewise.
20593 (ipa_read_optimization_summaries_1): Likewise.
20594 (execute_ipa_stmt_fixups): Likewise.
20595 * tree-pass.h (pass_data::has_gate): Remove.
20596 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20597 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20598 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20599 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20600 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20601 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20602 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20603 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20604 gimple-low.c, gimple-ssa-isolate-paths.c,
20605 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20606 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20607 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20608 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20609 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20610 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20611 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20612 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20613 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20614 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20615 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20616 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20617 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20618 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20619 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20620 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20621 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20622 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20623 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20624 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20625 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20626 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20627 Adjust.
20628
20629 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20630
20631 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20632 declaration.
20633 * passes.c (pass_manager::register_dump_files_1): Merge into
20634 (pass_manager::register_dump_files): this, and remove its handling of
20635 properties since the pass always has the properties anyway.
20636 (pass_manager::pass_manager): Adjust.
20637
20638 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20639
20640 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20641 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20642 dealing with properties.
20643 (pass_manager::register_dump_files): Adjust.
20644
20645 2014-03-20 Mark Wielaard <mjw@redhat.com>
20646
20647 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20648 then represent the bound as normal constant value.
20649
20650 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20651
20652 PR target/60847
20653 Forward port from 4.8 branch
20654 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20655
20656 * config/i386/bmiintrin.h (_blsi_u32): New.
20657 (_blsi_u64): Ditto.
20658 (_blsr_u32): Ditto.
20659 (_blsr_u64): Ditto.
20660 (_blsmsk_u32): Ditto.
20661 (_blsmsk_u64): Ditto.
20662 (_tzcnt_u32): Ditto.
20663 (_tzcnt_u64): Ditto.
20664
20665 2014-04-17 Kito Cheng <kito@0xlab.org>
20666
20667 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20668
20669 2014-04-17 Richard Biener <rguenther@suse.de>
20670
20671 PR middle-end/60849
20672 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20673 boolean results for comparisons.
20674
20675 2014-04-17 Richard Biener <rguenther@suse.de>
20676
20677 PR tree-optimization/60836
20678 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20679 initial PHI args to be gimple values.
20680
20681 2014-04-17 Richard Biener <rguenther@suse.de>
20682
20683 PR tree-optimization/60841
20684 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20685 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20686 of stmts to SLP build.
20687 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20688 (vect_analyze_slp): Likewise.
20689 (vect_analyze_slp_instance): Likewise.
20690 (vect_build_slp_tree): Limit overall SLP tree growth.
20691 * tree-vectorizer.h (vect_analyze_data_refs,
20692 vect_analyze_slp): Adjust prototypes.
20693
20694 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20695
20696 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20697 Silvermont.
20698
20699 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20700
20701 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20702 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20703 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20704 for TARGET_SLOW_PSHUFB
20705
20706 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20707
20708 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20709 * config/i386/i386.c (intel_cost): Ditto.
20710
20711 2014-04-17 Joey Ye <joey.ye@arm.com>
20712
20713 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20714
20715 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20716
20717 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20718 with -fuse-profile.
20719
20720 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20721
20722 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20723 (type_all_derivations_known_p): New predicate.
20724 (type_all_ctors_visible_p): New predicate.
20725 (type_possibly_instantiated_p): New predicate.
20726 (get_odr_type): Compute all_derivations_known.
20727 (dump_odr_type): Dump the flag.
20728 (maybe_record_type): Cleanup.
20729 (record_target_from_binfo): Add bases_to_consider array;
20730 record bases for types w/o instances and skip CXX destructor.
20731 (possible_polymorphic_call_targets_1): Add bases_to_consider
20732 and consider_construction parameters; check if type may have instance.
20733 (get_polymorphic_call_info): Set maybe_in_construction to true
20734 when we know nothing.
20735 (record_targets_from_bases): Skip CXX destructors; they are
20736 never called for types in construction.
20737 (possible_polymorphic_call_targets): Do not record target when
20738 type may not have instance.
20739
20740 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20741
20742 PR ipa/60854
20743 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20744 external aliases alive, too.
20745
20746 2014-04-16 Andrew Pinski <apinski@cavium.com>
20747
20748 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20749 definition.
20750
20751 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20752
20753 * final.c (compute_alignments): Do not apply loop alignment to a block
20754 falling through to the exit.
20755
20756 2014-04-16 Catherine Moore <clm@codesourcery.com>
20757
20758 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20759 Adjust constraints for microMIPS store patterns.
20760
20761 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20762
20763 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20764
20765 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20766
20767 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20768 (append_use): Run at -O0.
20769 (append_vdef): Likewise.
20770 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20771 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20772
20773 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20774
20775 PR tree-optimization/60844
20776 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20777 (propagate_op_to_single_use, remove_visited_stmt_chain,
20778 linearize_expr, repropagate_negates, reassociate_bb): Use it
20779 instead of gsi_remove.
20780
20781 2014-04-16 Martin Jambor <mjambor@suse.cz>
20782
20783 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20784 ipa_transforms_to_apply.
20785 (cgraph_function_versioning): Assert that old_node has empty
20786 ipa_transforms_to_apply.
20787 * trans-mem.c (ipa_tm_create_version): Likewise.
20788 * tree-inline.c (tree_function_versioning): Do not duplicate
20789 ipa_transforms_to_apply.
20790
20791 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20792
20793 PR target/60817
20794 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20795 x86_64-*-* cases.
20796 Pass necessary as flags on 64-bit Solaris/x86.
20797 Use lowercase relocs for x86_64-*-*.
20798 * configure: Regenerate.
20799
20800 2014-04-15 Jan Hubicka <jh@suse.cz>
20801
20802 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20803 (maybe_record_node, likely_target_p): Use it.
20804
20805 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20806
20807 PR target/60839
20808 Revert following patch
20809
20810 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20811
20812 PR target/60735
20813 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20814 software floating point or no floating point registers, do not
20815 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20816 in GPRs that occurs after we tested for GPRs that would never be
20817 true.
20818
20819 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20820 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20821 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20822 specifically allow DDmode, since that does not use the SPE SIMD
20823 instructions.
20824
20825 2014-03-21 Mark Wielaard <mjw@redhat.com>
20826
20827 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20828 as unsigned or int depending on type and value used.
20829
20830 2014-04-15 Richard Biener <rguenther@suse.de>
20831
20832 PR rtl-optimization/56965
20833 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20834 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20835 ... here.
20836 * alias.c (true_dependence_1): Do not call
20837 nonoverlapping_component_refs_p.
20838 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20839 nonoverlapping_component_refs_p.
20840 (indirect_refs_may_alias_p): Likewise.
20841
20842 2014-04-15 Teresa Johnson <tejohnson@google.com>
20843
20844 * cfg.c (dump_bb_info): Fix flags check.
20845 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20846
20847 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20848
20849 PR rtl-optimization/60663
20850 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20851 avoid 0 cost.
20852
20853 2014-04-15 Richard Biener <rguenther@suse.de>
20854
20855 * lto-streamer.h (LTO_major_version): Bump to 4.
20856
20857 2014-04-15 Richard Biener <rguenther@suse.de>
20858
20859 * common.opt (lto_partition_model): New enum.
20860 (flto-partition=): Merge separate options with a single with argument,
20861 add -flto-partition=one support.
20862 * flag-types.h (enum lto_partition_model): Declare.
20863 * opts.c (finish_options): Remove duplicate -flto-partition=
20864 option check.
20865 * lto-wrapper.c (run_gcc): Adjust.
20866
20867 2014-04-15 Richard Biener <rguenther@suse.de>
20868
20869 * alias.c (ncr_compar): New function.
20870 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20871
20872 2014-04-15 Richard Biener <rguenther@suse.de>
20873
20874 * alias.c (record_component_aliases): Do not walk BINFOs.
20875
20876 2014-04-15 Richard Biener <rguenther@suse.de>
20877
20878 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20879 Add struct function argument and adjust.
20880 (find_func_aliases_for_call): Likewise.
20881 (find_func_aliases): Likewise.
20882 (find_func_clobbers): Likewise.
20883 (intra_create_variable_infos): Likewise.
20884 (compute_points_to_sets): Likewise.
20885 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20886
20887 2014-04-15 Richard Biener <rguenther@suse.de>
20888
20889 * tree.c (iterative_hash_expr): Use enum tree_code_class
20890 to store TREE_CODE_CLASS.
20891 (tree_block): Likewise.
20892 (tree_set_block): Likewise.
20893 * tree.h (fold_build_pointer_plus_loc): Use
20894 convert_to_ptrofftype_loc.
20895
20896 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20897
20898 PR plugins/59335
20899 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20900 added in 4.9.
20901
20902 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20903
20904 * cfgloop.h (struct loop): Move force_vectorize down.
20905 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20906 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20907 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20908 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20909 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20910 * tree-core.h (enum annot_expr_kind): Add new kind values.
20911 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20912 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20913 kinds.
20914 * tree.def (ANNOTATE_EXPR): Tweak comment.
20915
20916 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20917
20918 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20919 cxa_pure_virtual).
20920
20921 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20922
20923 * tree.h (TYPE_IDENTIFIER): Declare.
20924 * tree.c (subrange_type_for_debug_p): Use it.
20925 * godump.c (go_format_type): Likewise.
20926 * dwarf2out.c (is_cxx_auto, modified_type_die,
20927 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20928 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20929
20930 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20931
20932 PR lto/60820
20933 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20934
20935 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20936
20937 * config/i386/i386.c (examine_argument): Return bool. Return true if
20938 parameter should be passed in memory.
20939 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20940 (construct_container): Update calls to examine_argument.
20941 (function_arg_advance_64): Ditto.
20942 (return_in_memory_32): Merge with ix86_return_in_memory.
20943 (return_in_memory_64): Ditto.
20944 (return_in_memory_ms_64): Ditto.
20945
20946 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20947
20948 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20949 * coverage.c (coverage_compute_profile_id): Handle externally visible
20950 symbols.
20951
20952 2014-04-14 Martin Jambor <mjambor@suse.cz>
20953
20954 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20955 DECL_DISREGARD_INLINE_LIMITS functions.
20956
20957 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20958
20959 PR target/60827
20960 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20961
20962 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20963
20964 PR target/60827
20965 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20966 optimize_insn_for_speed_p instead of
20967 optimize_function_for_speed_p.
20968
20969 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20970
20971 * doc/invoke.texi (free): Document AArch64.
20972
20973 2014-04-14 Richard Biener <rguenther@suse.de>
20974
20975 PR tree-optimization/60042
20976 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20977 (insert_into_preds_of_block): Do not prevent PHI insertion
20978 for REFERENCE exprs here ...
20979 (eliminate_dom_walker::before_dom_children): ... but prevent
20980 their use here under similar conditions when applied to the
20981 IL after PRE optimizations.
20982
20983 2014-04-14 Richard Biener <rguenther@suse.de>
20984
20985 * passes.def: Move early points-to after early SRA.
20986
20987 2014-04-14 Richard Biener <rguenther@suse.de>
20988
20989 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20990 check for which sign-changes we allow when forwarding
20991 a converted value into a switch.
20992
20993 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20994
20995 * stor-layout.c (place_field): Finalize non-constant offset for the
20996 field, if any.
20997
20998 2014-04-14 Richard Biener <rguenther@suse.de>
20999
21000 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
21001 as argument.
21002 (expand_switch_using_bit_tests_p): Likewise.
21003 (process_switch): Compute and pass on speed_p based on the
21004 switch stmt.
21005 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
21006 optimize_bb_for_speed_p.
21007
21008 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21009
21010 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
21011 * function.h (struct function): Rename has_force_vect_loops into
21012 has_force_vectorize_loops.
21013 * lto-streamer-in.c (input_cfg): Adjust for renaming.
21014 (input_struct_function_base): Likewise.
21015 * lto-streamer-out.c (output_cfg): Likewise.
21016 (output_struct_function_base): Likewise.
21017 * omp-low.c (expand_omp_simd): Likewise.
21018 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21019 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
21020 (version_loop_for_if_conversion): Likewise.
21021 (tree_if_conversion): Likewise.
21022 (main_tree_if_conversion): Likewise.
21023 (gate_tree_if_conversion): Likewise.
21024 * tree-inline.c (copy_loops): Likewise.
21025 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
21026 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
21027 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21028 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
21029 * tree-vectorizer.c (vectorize_loops): Likewise.
21030 * tree-vectorizer.h (unlimited_cost_model): Likewise.
21031
21032 2014-04-14 Richard Biener <rguenther@suse.de>
21033
21034 PR lto/60720
21035 * lto-streamer-out.c (wrap_refs): New function.
21036 (lto_output): Wrap symbol references in global initializes in
21037 type-preserving MEM_REFs.
21038
21039 2014-04-14 Christian Bruel <christian.bruel@st.com>
21040
21041 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
21042
21043 2014-04-14 Christian Bruel <christian.bruel@st.com>
21044
21045 * config/sh/sh.md (setmemqi): New expand pattern.
21046 * config/sh/sh.h (CLEAR_RATIO): Define.
21047 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
21048 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
21049
21050 2014-04-14 Richard Biener <rguenther@suse.de>
21051
21052 PR middle-end/55022
21053 * fold-const.c (negate_expr_p): Don't negate directional rounding
21054 division.
21055 (fold_negate_expr): Likewise.
21056
21057 2014-04-14 Richard Biener <rguenther@suse.de>
21058
21059 PR tree-optimization/59817
21060 PR tree-optimization/60453
21061 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
21062 recursion to catch all CHRECs in the scalar evolution and restrict
21063 the predicate for the remains appropriately.
21064
21065 2014-04-12 Catherine Moore <clm@codesourcery.com>
21066
21067 * config/mips/constraints.md: Add new register constraint "kb".
21068 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
21069 (*movhi_internal): Likewise.
21070 (*movqi_internal): Likewise.
21071 * config/mips/mips.h (M16_STORE_REGS): New register class.
21072 (REG_CLASS_NAMES): Add M16_STORE_REGS.
21073 (REG_CLASS_CONTENTS): Likewise.
21074 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
21075
21076 2014-04-11 Tobias Burnus <burnus@net-b.de>
21077
21078 PR c/60194
21079 * doc/invoke.texi (-Wformat-signedness): Document it.
21080 (Wformat=2): Mention that this enables -Wformat-signedness.
21081
21082 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21083
21084 * common/config/epiphany/epiphany-common.c
21085 (epiphany_option_optimization_table): Enable section anchors by
21086 default at -O1 or higher.
21087 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
21088 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
21089 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
21090 carries no extra cost.
21091 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
21092 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
21093 * config/epiphany/predicates.md (memclob_operand): New predicate.
21094 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
21095 Use memclob_operand predicate and X constraint for operand 3.
21096
21097 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21098
21099 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
21100 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
21101 its operands.
21102
21103 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21104
21105 PR rtl-optimization/60651
21106 * mode-switching.c (optimize_mode_switching): Make sure to emit
21107 sets of a lower numbered entity before sets of a higher numbered
21108 entity to a mode of the same or lower priority.
21109 When creating a seginfo for a basic block that starts with a code
21110 label, move the insertion point past the code label.
21111 (new_seginfo): Document and enforce requirement that
21112 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
21113 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
21114 * doc/tm.texi: Regenerate.
21115
21116 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
21117
21118 PR target/60811
21119 * config/arc/arc.c (arc_save_restore): Fix assert typo.
21120
21121 2013-04-11 Jakub Jelinek <jakub@redhat.com>
21122
21123 * BASE-VER: Set to 4.10.0.
21124
21125 2014-04-11 Tobias Burnus <burnus@net-b.de>
21126
21127 PR other/59055
21128 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
21129 * doc/gcc.texi (Service): Update description in the @menu
21130 * doc/invoke.texi (Option Summary): Remove misplaced and
21131 duplicated @menu.
21132
21133 2014-04-11 Steve Ellcey <sellcey@mips.com>
21134 Jakub Jelinek <jakub@redhat.com>
21135
21136 PR middle-end/60556
21137 * expr.c (convert_move): Use emit_store_flag_force instead of
21138 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
21139 argument to it.
21140
21141 2014-04-11 Richard Biener <rguenther@suse.de>
21142
21143 PR middle-end/60797
21144 * varasm.c (assemble_alias): Avoid endless error reporting
21145 recursion by setting TREE_ASM_WRITTEN.
21146
21147 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21148
21149 * config/s390/s390.md: Add a splitter for NOT rtx.
21150
21151 2014-04-11 Jakub Jelinek <jakub@redhat.com>
21152
21153 PR rtl-optimization/60663
21154 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
21155
21156 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
21157 Jakub Jelinek <jakub@redhat.com>
21158
21159 PR lto/60567
21160 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
21161 flag from decl_node to node.
21162
21163 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21164
21165 PR debug/60655
21166 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
21167 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
21168 ameliorating the cases where it can be.
21169
21170 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
21171
21172 Revert
21173 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21174
21175 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21176 (loadsync_<mode>): Change mode.
21177 (load_quadpti, store_quadpti): New.
21178 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21179 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21180 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
21181
21182 2014-04-09 Cong Hou <congh@google.com>
21183
21184 PR testsuite/60773
21185 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
21186 documentation.
21187
21188 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21189
21190 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
21191 instead of vnor to exploit possible fusion opportunity in the
21192 future.
21193 (altivec_expand_vec_perm_const_le): Likewise.
21194
21195 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21196
21197 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21198 (loadsync_<mode>): Change mode.
21199 (load_quadpti, store_quadpti): New.
21200 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21201 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21202
21203 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21204
21205 PR target/60763
21206 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21207 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21208 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21209
21210 2014-04-08 Richard Biener <rguenther@suse.de>
21211
21212 PR middle-end/60706
21213 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21214 a 64bit widest int print double-int similar to on HWI64 hosts.
21215
21216 2014-04-08 Richard Biener <rguenther@suse.de>
21217
21218 PR tree-optimization/60785
21219 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21220 default defs properly.
21221
21222 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21223
21224 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21225 (Weffc++): Likewise.
21226
21227 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21228
21229 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21230 set completep to false rather than true.
21231
21232 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21233
21234 PR target/60504
21235 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21236 ARM_TARGET2_DWARF_FORMAT.
21237
21238 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21239
21240 PR target/60609
21241 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21242 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21243 ADDR_DIFF_VEC.
21244
21245 2014-04-07 Richard Biener <rguenther@suse.de>
21246
21247 PR tree-optimization/60766
21248 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21249 (may_eliminate_iv): Convert cand_value_at result to desired type.
21250
21251 2014-04-07 Jason Merrill <jason@redhat.com>
21252
21253 PR c++/60731
21254 * common.opt (-fno-gnu-unique): Add.
21255 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21256
21257 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21258
21259 * haifa-sched.c: Fix outdated function reference and minor
21260 grammar errors in introductory comment.
21261
21262 2014-04-07 Richard Biener <rguenther@suse.de>
21263
21264 PR middle-end/60750
21265 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21266 for noreturn calls.
21267 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21268
21269 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21270
21271 PR debug/55794
21272 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21273 size accounting for thunks.
21274 (pa_asm_output_mi_thunk): Use final_start_function() and
21275 final_end_function() to output function start and end directives.
21276
21277 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21278
21279 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21280 device specific ISA/ feature information. Remove short_sp and
21281 errata_skip ds. Add avr_device_specific_features enum to have device
21282 specific info.
21283 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21284 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21285 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21286 updated device specific info.
21287 * config/avr/avr-mcus.def: Merge device specific details to
21288 dev_attribute field.
21289 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21290 errata_skip.
21291 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21292 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21293 assembler if RMW isa supported by current device.
21294 * config/avr/genmultilib.awk: Update as device info structure changed.
21295 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21296
21297 2014-04-04 Cong Hou <congh@google.com>
21298
21299 PR tree-optimization/60656
21300 * tree-vect-stmts.c (supportable_widening_operation):
21301 Fix a bug that elements in a vector with vect_used_by_reduction
21302 property are incorrectly reordered when the operation on it is not
21303 consistant with the one in reduction operation.
21304
21305 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21306
21307 PR rtl-optimization/60155
21308 * gcse.c (record_set_data): New function.
21309 (single_set_gcse): New function.
21310 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21311 (hoist_code): Likewise.
21312 (get_pressure_class_and_nregs): Likewise.
21313
21314 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21315
21316 * explow.c (probe_stack_range): Emit a final optimization blockage.
21317
21318 2014-04-04 Anthony Green <green@moxielogic.com>
21319
21320 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21321 typos.
21322
21323 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21324
21325 PR ipa/59626
21326 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21327 flags are set only during streaming.
21328 * ipa.c (process_references, walk_polymorphic_call_targets,
21329 symtab_remove_unreachable_nodes): Drop bodies of always inline
21330 after early inlining.
21331 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21332
21333 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21334 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21335
21336 PR debug/60655
21337 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21338 containing a NOT.
21339
21340 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21341
21342 PR bootstrap/60743
21343 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21344 duration.
21345 (cortex_a53_fdivd): Likewise.
21346
21347 2014-04-04 Martin Jambor <mjambor@suse.cz>
21348
21349 PR ipa/60640
21350 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21351 Adjust all callers.
21352 * cgraph.c (clone_of_p): Also return true if thunks match.
21353 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21354 cgraph_function_or_thunk_node and an obsolete comment.
21355 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21356 file.
21357 (build_function_decl_skip_args): Likewise.
21358 (set_new_clone_decl_and_node_flags): New function.
21359 (duplicate_thunk_for_node): Likewise.
21360 (redirect_edge_duplicating_thunks): Likewise.
21361 (cgraph_clone_node): New parameter args_to_skip, pass it to
21362 redirect_edge_duplicating_thunks which is called instead of
21363 cgraph_redirect_edge_callee.
21364 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21365 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21366
21367 2014-04-04 Jeff Law <law@redhat.com>
21368
21369 PR target/60657
21370 * config/arm/predicates.md (const_int_I_operand): New predicate.
21371 (const_int_M_operand): Similarly.
21372 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21373 const_int_operand.
21374 (insv_t2, extv_reg, extzv_t2): Likewise.
21375 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21376 (pop_multiple_with_writeback_and_return): Likewise.
21377 (vfp_pop_multiple_with_writeback): Likewise
21378
21379 2014-04-04 Richard Biener <rguenther@suse.de>
21380
21381 PR ipa/60746
21382 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21383 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21384 non-GIMPLE_LABELs.
21385 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21386 * gimplify.c (gimple_add_tmp_var_fn): New function.
21387 * gimple-expr.h (create_tmp_reg_fn): Declare.
21388 * gimple-expr.c (create_tmp_reg_fn): New function.
21389 * gimple-low.c (record_vars_into): Don't change cfun.
21390 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21391 code generation without cfun.
21392
21393 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21394
21395 PR bootstrap/60719
21396 * Makefile.in (install-driver): Fix shell scripting.
21397
21398 2014-04-03 Cong Hou <congh@google.com>
21399
21400 PR tree-optimization/60505
21401 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21402 threshold of number of iterations below which no vectorization
21403 will be done.
21404 * tree-vect-loop.c (new_loop_vec_info):
21405 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21406 * tree-vect-loop.c (vect_analyze_loop_operations):
21407 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21408 * tree-vect-loop.c (vect_transform_loop):
21409 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21410 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21411 of iterations of the loop and see if we should build the epilogue.
21412
21413 2014-04-03 Richard Biener <rguenther@suse.de>
21414
21415 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21416 (streamer_tree_cache_create): Adjust.
21417 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21418 to allow optional nodes array.
21419 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21420 (streamer_tree_cache_append): Likewise.
21421 (streamer_tree_cache_create): Create nodes array optionally
21422 as specified by parameter.
21423 * lto-streamer-out.c (create_output_block): Avoid maintaining
21424 the node array in the writer cache.
21425 (DFS_write_tree): Remove assertion.
21426 (produce_asm_for_decls): Free the out decl state hash table early.
21427 * lto-streamer-in.c (lto_data_in_create): Adjust for
21428 streamer_tree_cache_create prototype change.
21429
21430 2014-04-03 Richard Biener <rguenther@suse.de>
21431
21432 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21433 set TREE_CHAIN to NULL_TREE.
21434
21435 2014-04-03 Richard Biener <rguenther@suse.de>
21436
21437 PR tree-optimization/60740
21438 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21439 over all GIMPLE_COND operands.
21440
21441 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21442
21443 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21444 (Weffc++): Remove Scott's numbering, merge lists and reference
21445 Wnon-virtual-dtor.
21446
21447 2014-04-03 Nick Clifton <nickc@redhat.com>
21448
21449 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21450 properly.
21451
21452 2014-04-03 Martin Jambor <mjambor@suse.cz>
21453
21454 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21455 mention gcc_unreachable before failing.
21456 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21457 removed symbols.
21458
21459 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21460
21461 PR ipa/60659
21462 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21463 inconsistent code and instead mark the context inconsistent.
21464 (possible_polymorphic_call_targets): For inconsistent contexts
21465 return empty complete list.
21466
21467 2014-04-02 Anthony Green <green@moxielogic.com>
21468
21469 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21470 (extendqisi2, extendhisi2): Define.
21471 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21472 (WCHAR_TYPE): Change to unsigned int.
21473
21474 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21475
21476 PR tree-optimization/60733
21477 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21478 insertion point for PHI candidates to be the end of the feeding
21479 block for the PHI argument.
21480
21481 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21482
21483 PR rtl-optimization/60650
21484 * lra-constraints.c (process_alt_operands): Decrease reject for
21485 earlyclobber matching.
21486
21487 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21488
21489 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21490
21491 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21492
21493 * config/spu/spu.c (pad_bb): Do not crash when the last
21494 insn is CODE_FOR_blockage.
21495
21496 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21497
21498 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21499 lies outside the target mode.
21500
21501 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21502
21503 PR target/60735
21504 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21505 software floating point or no floating point registers, do not
21506 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21507 in GPRs that occurs after we tested for GPRs that would never be
21508 true.
21509
21510 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21511 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21512 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21513 specifically allow DDmode, since that does not use the SPE SIMD
21514 instructions.
21515
21516 2014-04-02 Richard Biener <rguenther@suse.de>
21517
21518 PR middle-end/60729
21519 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21520 MODE_INTs. Properly use negv_optab.
21521 (expand_abs): Likewise.
21522
21523 2014-04-02 Richard Biener <rguenther@suse.de>
21524
21525 PR bootstrap/60719
21526 * Makefile.in (install-driver): Guard extra installs with special
21527 names properly.
21528
21529 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21530
21531 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21532 Document vec_vgbbd.
21533
21534 2014-04-01 Richard Henderson <rth@redhat.com>
21535
21536 PR target/60704
21537 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21538 alternative enabled before register allocation.
21539
21540 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21541
21542 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21543 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21544 typo.
21545 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21546 (nios2_got_address): Update nios2_large_got_address call site.
21547 (nios2_delegitimize_address): New function.
21548 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21549 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21550 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21551
21552 2014-04-01 Martin Husemann <martin@duskware.de>
21553
21554 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21555 for -mabi=32.
21556
21557 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21558
21559 PR rtl-optimization/60604
21560 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21561 check from register_operand.
21562 (register_operand): Redefine in terms of general_operand.
21563 (nonmemory_operand): Use register_operand for the non-constant cases.
21564
21565 2014-04-01 Richard Biener <rguenther@suse.de>
21566
21567 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21568
21569 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21570
21571 * doc/invoke.texi (mapp-regs): Clarify.
21572
21573 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21574
21575 * config/i386/avx512fintrin.h (__v32hi): Define type.
21576 (__v64qi): Likewise.
21577 (_mm512_set1_epi8): Define.
21578 (_mm512_set1_epi16): Define.
21579 (_mm512_set4_epi32): Define.
21580 (_mm512_set4_epi64): Define.
21581 (_mm512_set4_pd): Define.
21582 (_mm512_set4_ps): Define.
21583 (_mm512_setr4_epi64): Define.
21584 (_mm512_setr4_epi32): Define.
21585 (_mm512_setr4_pd): Define.
21586 (_mm512_setr4_ps): Define.
21587 (_mm512_setzero_epi32): Define.
21588
21589 2014-03-31 Martin Jambor <mjambor@suse.cz>
21590
21591 PR middle-end/60647
21592 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21593 callsite_arguments_match_p. Updated all callers. Also check types of
21594 corresponding formal parameters and actual arguments.
21595 (not_all_callers_have_enough_arguments_p) Renamed to
21596 some_callers_have_mismatched_arguments_p.
21597
21598 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21599
21600 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21601
21602 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21603
21604 PR target/60034
21605 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21606 section anchor.
21607
21608 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21609
21610 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21611 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21612 Split out
21613 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21614 Use FMAMODE_NOVF512 mode iterator.
21615 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21616 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21617 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21618 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21619 Split out
21620 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21621 Use VF_128_256 mode iterator.
21622 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21623 Ditto.
21624
21625 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21626
21627 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21628 static chain if needed.
21629
21630 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21631
21632 PR target/60697
21633 * lra-constraints.c (index_part_to_reg): New.
21634 (process_address): Use it.
21635
21636 2014-03-27 Jeff Law <law@redhat.com>
21637 Jakub Jelinek <jakub@redhat.com>
21638
21639 PR target/60648
21640 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21641 gen_rtx_{PLUS,MULT} to build up the address expression.
21642
21643 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21644 creating non-canonical RTL.
21645
21646 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21647
21648 PR ipa/60243
21649 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21650 functions; reorganize to make cheap checks first.
21651 (inline_small_functions): Do not estimate growth when dumping;
21652 it is expensive.
21653 * ipa-inline.h (inline_summary): Add min_size.
21654 (growth_likely_positive): New function.
21655 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21656 (set_cond_stmt_execution_predicate): Cleanup.
21657 (estimate_edge_size_and_time): Compute min_size.
21658 (estimate_calls_size_and_time): Likewise.
21659 (estimate_node_size_and_time): Likewise.
21660 (inline_update_overall_summary): Update min_size.
21661 (do_estimate_edge_time): Likewise.
21662 (do_estimate_edge_size): Update.
21663 (do_estimate_edge_hints): Update.
21664 (growth_likely_positive): New function.
21665
21666 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21667
21668 PR target/60693
21669 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21670 also if addr has VOIDmode.
21671
21672 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21673
21674 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21675 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21676 Declare extern.
21677 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21678 instructions as well as AdvancedSIMD loads.
21679
21680 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21681
21682 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21683 Use crypto_aese type.
21684 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21685 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21686 crypto_aese, crypto_aesmc. Move to types.md.
21687 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21688 crypto_aesmc.
21689 * config/arm/iterators.md (crypto_type): Likewise.
21690
21691 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21692
21693 * cgraph.c: Include expr.h and tree-dfa.h.
21694 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21695 remove LHS.
21696
21697 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21698
21699 PR target/60675
21700 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21701 regs from checking multi-reg pseudos.
21702
21703 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21704
21705 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21706
21707 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21708
21709 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21710 if it would clobber the stack pointer, even temporarily.
21711
21712 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21713
21714 * mode-switching.c: Make small adjustments to the top comment.
21715
21716 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21717
21718 * config/rs6000/constraints.md (wD constraint): New constraint to
21719 match the constant integer to get the top DImode/DFmode out of a
21720 vector in a VSX register.
21721
21722 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21723 match the constant integer to get the top DImode/DFmode out of a
21724 vector in a VSX register.
21725
21726 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21727 for ISA 2.07.
21728
21729 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21730 vbpermq builtins.
21731
21732 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21733 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21734
21735 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21736 Optimize vec_extract of 64-bit values, where the value being
21737 extracted is in the top word, where we can use scalar
21738 instructions. Add direct move and store support. Combine the big
21739 endian/little endian vector select load support into a single insn.
21740 (vsx_extract_<mode>_internal1): Likewise.
21741 (vsx_extract_<mode>_internal2): Likewise.
21742 (vsx_extract_<mode>_load): Likewise.
21743 (vsx_extract_<mode>_store): Likewise.
21744 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21745 combined into vsx_extract_<mode>_load.
21746 (vsx_extract_<mode>_one_le): Likewise.
21747
21748 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21749 define the top 64-bit vector element.
21750
21751 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21752 constraint.
21753
21754 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21755 Document vec_vbpermq builtin.
21756
21757 PR target/60672
21758 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21759 enable use of xxsldwi and xxpermdi builtin functions.
21760 (vec_xxpermdi): Likewise.
21761
21762 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21763 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21764
21765 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21766
21767 PR rtl-optimization/60650
21768 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21769 first_p. Use it.
21770 (find_spills_for): New.
21771 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21772 Spill all pseudos on the second iteration.
21773
21774 2014-03-27 Marek Polacek <polacek@redhat.com>
21775
21776 PR c/50347
21777 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21778 types.
21779
21780 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21781
21782 * config/s390/s390.c (s390_can_use_return_insn): Check for
21783 call-saved FPRs on 31 bit.
21784
21785 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21786
21787 PR middle-end/60682
21788 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21789 if they need regimplification, just drop them instead of
21790 calling gimple_regimplify_operands on them.
21791
21792 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21793
21794 PR target/60580
21795 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21796 (aarch64_frame_pointer_required): Adjust logic.
21797 (aarch64_can_eliminate): Adjust logic.
21798 (aarch64_override_options_after_change): Adjust logic.
21799
21800 2014-03-27 Dehao Chen <dehao@google.com>
21801
21802 * ipa-inline.c (early_inliner): Update node's inline info.
21803
21804 2014-03-26 Dehao Chen <dehao@google.com>
21805
21806 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21807 compiler inserted conditional jumps for NAN float check.
21808
21809 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21810
21811 * ubsan.h (ubsan_create_data): Change second argument's type
21812 to const location_t *.
21813 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21814 _("<unknown>").
21815 (ubsan_create_data): Change second argument to const location_t *PLOC.
21816 Create Loc field whenever PLOC is non-NULL.
21817 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21818 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21819 callers.
21820
21821 PR other/59545
21822 * real.c (real_to_integer2): Change type of low to UHWI.
21823
21824 2014-03-26 Tobias Burnus <burnus@net-b.de>
21825
21826 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21827 (CILK_SELF_SPECS): New define.
21828 (driver_self_specs): Use it.
21829
21830 2014-03-26 Richard Biener <rguenther@suse.de>
21831
21832 * tree-pretty-print.c (percent_K_format): Implement special
21833 case for LTO and its stripped down BLOCK tree.
21834
21835 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21836
21837 PR sanitizer/60636
21838 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21839
21840 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21841 one range is range_int_cst_p, but not both, at least optimize
21842 addition/subtraction of 0 and multiplication by 0 or 1.
21843 * gimple-fold.c (gimple_fold_call): Fold
21844 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21845 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21846 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21847
21848 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21849
21850 PR rtl-optimization/60452
21851 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21852 <case REG>: Return 1 for invalid offsets from the frame pointer.
21853
21854 2014-03-26 Marek Polacek <polacek@redhat.com>
21855
21856 PR c/37428
21857 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21858 a structure/union.
21859
21860 2014-03-26 Marek Polacek <polacek@redhat.com>
21861
21862 PR c/39525
21863 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21864 field members.
21865
21866 2014-03-26 Marek Polacek <polacek@redhat.com>
21867
21868 PR other/59545
21869 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21870 multiplication in unsigned type.
21871
21872 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21873
21874 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21875
21876 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21877
21878 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21879
21880 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21881
21882 PR ipa/60315
21883 * cif-code.def (UNREACHABLE) New code.
21884 * ipa-inline.c (inline_small_functions): Skip edges to
21885 __builtlin_unreachable.
21886 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21887 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21888 predicate to __bulitin_unreachable.
21889 (set_cond_stmt_execution_predicate): Fix issue when
21890 invert_tree_comparison returns ERROR_MARK.
21891 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21892 propagate to inline clones.
21893 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21894 to unreachable.
21895 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21896 * cgraphclones.c (cgraph_clone_node): If call destination is already
21897 ureachable, do not redirect it back.
21898 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21899 unreachable.
21900
21901 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21902
21903 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21904 Do not modify inline clones.
21905
21906 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21907
21908 * config/i386/i386.md (general_sext_operand): New mode attr.
21909 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21910 don't generate (sign_extend (const_int)).
21911 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21912 operands[2]. Use We constraint instead of <i> and
21913 <general_sext_operand> predicate instead of <general_operand>.
21914 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21915 * config/i386/constraints.md (We): New constraint.
21916 * config/i386/predicates.md (x86_64_sext_operand,
21917 sext_operand): New predicates.
21918
21919 2014-03-25 Martin Jambor <mjambor@suse.cz>
21920
21921 PR ipa/60600
21922 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21923 inconsistent devirtualizations to __builtin_unreachable.
21924
21925 2014-03-25 Marek Polacek <polacek@redhat.com>
21926
21927 PR c/35449
21928 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21929
21930 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21931
21932 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21933 order of elements for big-endian.
21934
21935 2014-03-25 Richard Biener <rguenther@suse.de>
21936
21937 PR middle-end/60635
21938 * gimplify-me.c (gimple_regimplify_operands): Update the
21939 re-gimplifed stmt.
21940
21941 2014-03-25 Martin Jambor <mjambor@suse.cz>
21942
21943 PR ipa/59176
21944 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21945 (lto_output_varpool_node): Likewise.
21946 (input_overwrite_node): Likewise.
21947 (input_varpool_node): Likewise.
21948
21949 2014-03-25 Richard Biener <rguenther@suse.de>
21950
21951 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21952 (run_gcc): Likewise.
21953
21954 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21955
21956 * combine.c (simplify_compare_const): Add MODE argument.
21957 Handle mode_width 0 as very large mode_width.
21958 (try_combine, simplify_comparison): Adjust callers.
21959
21960 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21961 type to avoid signed integer overflow.
21962 * explow.c (plus_constant): Likewise.
21963
21964 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21965
21966 * doc/generic.texi: Correct typos.
21967
21968 2014-03-24 Tobias Burnus <burnus@net-b.de>
21969
21970 * doc/invoke.texi (-flto): Expand section about
21971 using static libraries with LTO.
21972
21973 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21974
21975 PR rtl-optimization/60501
21976 * optabs.def (addptr3_optab): New optab.
21977 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21978 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21979 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21980
21981 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21982
21983 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21984
21985 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21986
21987 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21988 _mm512_set1_pd.
21989
21990 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21991 (_mm256_undefined_ps): Define.
21992 (_mm256_undefined_pd): Define.
21993 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21994 (_mm_undefined_pd): Define.
21995 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21996 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21997 (_mm512_undefined_ps): Define.
21998 (_mm512_undefined_pd): Define.
21999 Use _mm*_undefined_*.
22000 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
22001
22002 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
22003
22004 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
22005 (lshr_simd): DI mode added.
22006 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
22007 (aarch64_ushr_simddi): Likewise.
22008 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
22009 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
22010 (vshrd_n_u64): Likewise.
22011
22012 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22013
22014 * Makefile.in (s-macro_list): Depend on cc1.
22015
22016 2014-03-23 Teresa Johnson <tejohnson@google.com>
22017
22018 * ipa-utils.c (ipa_print_order): Use specified dump file.
22019
22020 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
22021
22022 PR rtl-optimization/60601
22023 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
22024
22025 * gcc.c (eval_spec_function): Initialize save_growing_value.
22026
22027 2014-03-22 Jakub Jelinek <jakub@redhat.com>
22028
22029 PR sanitizer/60613
22030 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
22031 code == MINUS_EXPR, never swap op0 with op1.
22032
22033 * toplev.c (init_local_tick): Avoid signed integer multiplication
22034 overflow.
22035 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
22036 shift by first operand's bitsize.
22037
22038 2014-03-21 Jakub Jelinek <jakub@redhat.com>
22039
22040 PR target/60610
22041 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
22042 redefine to 1 or 0.
22043 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
22044 TARGET_ISA_64BIT_P(x).
22045
22046 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22047
22048 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
22049 pattern for vector nor instead of subtract from splat(-1).
22050 (altivec_expand_vec_perm_const_le): Likewise.
22051
22052 2014-03-21 Richard Henderson <rth@twiddle.net>
22053
22054 PR target/60598
22055 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
22056 related insns after epilogue_completed.
22057
22058 2014-03-21 Martin Jambor <mjambor@suse.cz>
22059
22060 PR ipa/59176
22061 * cgraph.h (symtab_node): New flag body_removed.
22062 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
22063 when removing bodies.
22064 * symtab.c (dump_symtab_base): Dump body_removed flag.
22065 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
22066 had their bodies removed.
22067
22068 2014-03-21 Martin Jambor <mjambor@suse.cz>
22069
22070 PR ipa/60419
22071 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
22072 in the border.
22073
22074 2014-03-21 Richard Biener <rguenther@suse.de>
22075
22076 PR tree-optimization/60577
22077 * tree-core.h (struct tree_base): Document nothrow_flag use
22078 in DECL_NONALIASED.
22079 * tree.h (DECL_NONALIASED): New.
22080 (may_be_aliased): Adjust.
22081 * coverage.c (build_var): Set DECL_NONALIASED.
22082
22083 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22084
22085 * expr.c (expand_expr_real_1): Remove outdated comment.
22086
22087 2014-03-20 Jakub Jelinek <jakub@redhat.com>
22088
22089 PR middle-end/60597
22090 * ira.c (adjust_cleared_regs): Call copy_rtx on
22091 *reg_equiv[REGNO (loc)].src_p before passing it to
22092 simplify_replace_fn_rtx.
22093
22094 PR target/60568
22095 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
22096 into CONST, put pic register as first operand of PLUS. Use
22097 gen_const_mem for both 32-bit and 64-bit PIC got loads.
22098
22099 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22100
22101 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
22102
22103 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22104
22105 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
22106 around for store forwarding issue in the FPU on the UT699.
22107 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
22108 loads and operations if -mfix-ut699 is specified.
22109 (divtf3_hq): Tweak attribute.
22110 (sqrttf2_hq): Likewise.
22111
22112 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22113
22114 * calls.c (store_one_arg): Remove incorrect const qualification on the
22115 type of the temporary.
22116 * cfgexpand.c (expand_return): Likewise.
22117 * expr.c (expand_constructor): Likewise.
22118 (expand_expr_real_1): Likewise.
22119
22120 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22121
22122 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
22123 of parts.
22124
22125 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22126
22127 PR target/60039
22128 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
22129
22130 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
22131
22132 * config/arm/aarch-common-protos.h
22133 (alu_cost_table): Fix spelling of "extend".
22134 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
22135
22136 2014-03-19 Richard Biener <rguenther@suse.de>
22137
22138 PR middle-end/60553
22139 * tree-core.h (tree_type_common): Re-order pointer members
22140 to reduce recursion depth during GC walks.
22141
22142 2014-03-19 Marek Polacek <polacek@redhat.com>
22143
22144 PR sanitizer/60569
22145 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
22146 before accessing it.
22147
22148 2014-03-19 Richard Biener <rguenther@suse.de>
22149
22150 PR lto/59543
22151 * lto-streamer-in.c (input_function): In WPA stage do not drop
22152 debug stmts.
22153
22154 2014-03-19 Jakub Jelinek <jakub@redhat.com>
22155
22156 PR tree-optimization/60559
22157 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
22158 with build_zero_cst assignment.
22159
22160 2014-03-18 Kai Tietz <ktietz@redhat.com>
22161
22162 PR rtl-optimization/56356
22163 * sdbout.c (sdbout_parms): Verify that parms'
22164 incoming argument is valid.
22165 (sdbout_reg_parms): Likewise.
22166
22167 2014-03-18 Richard Henderson <rth@redhat.com>
22168
22169 PR target/60562
22170 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
22171 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
22172 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
22173
22174 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
22175
22176 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
22177 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
22178 Italicize plugin event names in description. Explain that
22179 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
22180 Remind that no GCC functions should be called after PLUGIN_FINISH.
22181 Explain what pragmas with expansion are.
22182
22183 2014-03-18 Martin Liska <mliska@suse.cz>
22184
22185 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
22186 gimple call statement is update.
22187 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
22188 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
22189
22190 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22191
22192 PR sanitizer/60557
22193 * ubsan.c (ubsan_instrument_unreachable): Call
22194 initialize_sanitizer_builtins.
22195 (ubsan_pass): Likewise.
22196
22197 PR sanitizer/60535
22198 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22199 varpool_finalize_decl instead of rest_of_decl_compilation.
22200
22201 2014-03-18 Richard Biener <rguenther@suse.de>
22202
22203 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22204 by using bitmap_and_compl instead of bitmap_and_compl_into.
22205 (df_rd_transfer_function): Likewise.
22206
22207 2014-03-18 Richard Biener <rguenther@suse.de>
22208
22209 * doc/lto.texi (fresolution): Fix typo.
22210
22211 2014-03-18 Richard Biener <rguenther@suse.de>
22212
22213 * doc/invoke.texi (flto): Update for changes in 4.9.
22214
22215 2014-03-18 Richard Biener <rguenther@suse.de>
22216
22217 * doc/loop.texi: Remove section on the removed lambda framework.
22218 Update loop docs with recent changes in preserving loop structure.
22219
22220 2014-03-18 Richard Biener <rguenther@suse.de>
22221
22222 * doc/lto.texi (-fresolution): Document.
22223
22224 2014-03-18 Richard Biener <rguenther@suse.de>
22225
22226 * doc/contrib.texi: Adjust my name.
22227
22228 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22229
22230 PR ipa/58721
22231 * internal-fn.c: Include diagnostic-core.h.
22232 (expand_BUILTIN_EXPECT): New function.
22233 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22234 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22235 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22236 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22237 IFN_BUILTIN_EXPECT.
22238 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22239 Revert 3 argument __builtin_expect code.
22240 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22241 * gimple-fold.c (gimple_fold_call): Likewise.
22242 * tree.h (fold_builtin_expect): New prototype.
22243 * builtins.c (build_builtin_expect_predicate): Add predictor
22244 argument, if non-NULL, create 3 argument __builtin_expect.
22245 (fold_builtin_expect): No longer static. Add ARG2 argument,
22246 pass it through to build_builtin_expect_predicate.
22247 (fold_builtin_2): Adjust caller.
22248 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22249 * internal-fn.def (BUILTIN_EXPECT): New.
22250
22251 2014-03-18 Tobias Burnus <burnus@net-b.de>
22252
22253 PR ipa/58721
22254 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22255 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22256 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22257
22258 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22259
22260 PR ipa/58721
22261 * predict.c (combine_predictions_for_bb): Fix up formatting.
22262 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22263 fill what it points to if non-NULL.
22264 (tree_predict_by_opcode): Adjust caller, use the predictor.
22265 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22266
22267 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22268
22269 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22270 proper constant for the store mode.
22271
22272 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22273
22274 * symtab.c (change_decl_assembler_name): Fix transparent alias
22275 chain construction.
22276
22277 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22278
22279 * config/aarch64/aarch64.c: Correct the comments about the
22280 aarch64 stack layout.
22281
22282 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22283
22284 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22285 check for GF_OMP_FOR_KIND_FOR.
22286
22287 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22288
22289 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22290 ymm and zmm register names.
22291
22292 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22293
22294 PR target/60516
22295 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22296 note creation for the 2010-08-31 changes.
22297
22298 2014-03-17 Marek Polacek <polacek@redhat.com>
22299
22300 PR middle-end/60534
22301 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22302 as -fno-tree-loop-vectorize.
22303 (expand_omp_simd): Likewise.
22304
22305 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22306
22307 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22308 (eligible_for_call_delay): New prototype.
22309 * config/sparc/sparc.c (tls_call_delay): Rename into...
22310 (eligible_for_call_delay): ...this. Return false if the instruction
22311 cannot be put in the delay slot of a branch.
22312 (eligible_for_restore_insn): Simplify.
22313 (eligible_for_return_delay): Return false if the instruction cannot be
22314 put in the delay slot of a branch and simplify.
22315 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22316 put in the delay slot of a branch.
22317 * config/sparc/sparc.md (fix_ut699): New attribute.
22318 (tls_call_delay): Delete.
22319 (in_call_delay): Reimplement.
22320 (eligible_for_sibcall_delay): Rename into...
22321 (in_sibcall_delay): ...this.
22322 (eligible_for_return_delay): Rename into...
22323 (in_return_delay): ...this.
22324 (in_branch_delay): Reimplement.
22325 (in_uncond_branch_delay): Delete.
22326 (in_annul_branch_delay): Delete.
22327
22328 2014-03-14 Richard Henderson <rth@redhat.com>
22329
22330 PR target/60525
22331 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22332 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22333 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22334 (floathi splitters): Remove.
22335 (float<SWI48x>xf2): New pattern.
22336 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22337 code that tried to handle DImode for 32-bit, but which was excluded
22338 by the pattern's condition. Drop allocation of stack temporary.
22339 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22340 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22341 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22342 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22343 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22344 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22345 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22346 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22347 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22348 (*float<SWI48x><X87MODEF>2_i387): Remove.
22349 (all float _with_temp splitters): Remove.
22350 (*float<SWI48x><MODEF>2_i387): New pattern.
22351 (*float<SWI48><MODEF>2_sse): New pattern.
22352 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22353 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22354
22355 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22356 Marek Polacek <polacek@redhat.com>
22357
22358 PR middle-end/60484
22359 * common.opt (dump_base_name_prefixed): New Variable.
22360 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22361 if x_dump_base_name_prefixed is already set, set it at the end.
22362
22363 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22364
22365 PR rtl-optimization/60508
22366 * lra-constraints.c (get_reload_reg): Add new parameter
22367 in_subreg_p.
22368 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22369 Pass the new parameter values.
22370
22371 2014-03-14 Richard Biener <rguenther@suse.de>
22372
22373 * common.opt: Revert unintented changes from r205065.
22374 * opts.c: Likewise.
22375
22376 2014-03-14 Richard Biener <rguenther@suse.de>
22377
22378 PR middle-end/60518
22379 * cfghooks.c (split_block): Properly adjust all loops the
22380 block was a latch of.
22381
22382 2014-03-14 Martin Jambor <mjambor@suse.cz>
22383
22384 PR lto/60461
22385 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22386 and simplify it.
22387
22388 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22389
22390 PR target/59396
22391 * config/avr/avr.c (avr_set_current_function): Pass function name
22392 through default_strip_name_encoding before sanity checking instead
22393 of skipping the first char of the assembler name.
22394
22395 2014-03-13 Richard Henderson <rth@redhat.com>
22396
22397 PR debug/60438
22398 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22399 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22400 * config/i386/i386-protos.h: Likewise.
22401 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22402 in the expander instead of a splitter.
22403 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22404 any possibility of requiring a memory.
22405 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22406 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22407 (fp branch splitters): Update for ix86_split_fp_branch.
22408 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22409 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22410 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22411 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22412 (*fop_<MODEF>_3_i387): Likewise.
22413 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22414 (splitters for the fop_* register patterns): Remove.
22415 (fscalexf4_i387): Rename from *fscalexf4_i387.
22416 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22417
22418 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22419
22420 PR tree-optimization/59779
22421 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22422 type for bitsize and maxsize instead of HOST_WIDE_INT.
22423
22424 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22425
22426 PR rtl-optimization/57320
22427 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22428 the CFG after thread_prologue_and_epilogue_insns.
22429
22430 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22431
22432 PR rtl-optimization/57189
22433 * lra-constraints.c (process_alt_operands): Disfavor spilling
22434 vector pseudos.
22435
22436 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22437
22438 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22439
22440 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22441
22442 PR tree-optimization/59025
22443 PR middle-end/60418
22444 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22445 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22446
22447 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22448
22449 PR target/60486
22450 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22451 calls of avr_out_plus_1.
22452
22453 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22454
22455 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22456 BB's single pred and update the father loop's latch info later.
22457
22458 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22459
22460 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22461 (VEC_M): Likewise.
22462 (VEC_N): Likewise.
22463 (VEC_R): Likewise.
22464 (VEC_base): Likewise.
22465 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22466 registers, we need to swap double words in little endian mode.
22467
22468 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22469 to be a container mode for 128-bit integer operations added in ISA
22470 2.07. Unlike TImode and PTImode, the preferred register set is
22471 the Altivec/VMX registers for the 128-bit operations.
22472
22473 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22474 declarations.
22475 (rs6000_split_128bit_ok_p): Likewise.
22476
22477 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22478 macros for creating ISA 2.07 normal and overloaded builtin
22479 functions with 3 arguments.
22480 (BU_P8V_OVERLOAD_3): Likewise.
22481 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22482 for use as overloaded functions.
22483 (VPERM_1TI_UNS): Likewise.
22484 (VSEL_1TI): Likewise.
22485 (VSEL_1TI_UNS): Likewise.
22486 (ST_INTERNAL_1ti): Likewise.
22487 (LD_INTERNAL_1ti): Likewise.
22488 (XXSEL_1TI): Likewise.
22489 (XXSEL_1TI_UNS): Likewise.
22490 (VPERM_1TI): Likewise.
22491 (VPERM_1TI_UNS): Likewise.
22492 (XXPERMDI_1TI): Likewise.
22493 (SET_1TI): Likewise.
22494 (LXVD2X_V1TI): Likewise.
22495 (STXVD2X_V1TI): Likewise.
22496 (VEC_INIT_V1TI): Likewise.
22497 (VEC_SET_V1TI): Likewise.
22498 (VEC_EXT_V1TI): Likewise.
22499 (EQV_V1TI): Likewise.
22500 (NAND_V1TI): Likewise.
22501 (ORC_V1TI): Likewise.
22502 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22503 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22504 overloaded builtin.
22505 (VADDUQM): Likewise.
22506 (VSUBCUQ): Likewise.
22507 (VADDEUQM): Likewise.
22508 (VADDECUQ): Likewise.
22509 (VSUBEUQM): Likewise.
22510 (VSUBECUQ): Likewise.
22511
22512 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22513 __int128_t and __uint128_t types.
22514 (__uint128_type): Likewise.
22515 (altivec_categorize_keyword): Add support for vector __int128_t,
22516 vector __uint128_t, vector __int128, and vector unsigned __int128
22517 as a container type for TImode operations that need to be done in
22518 VSX/Altivec registers.
22519 (rs6000_macro_to_expand): Likewise.
22520 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22521 to support 128-bit integer instructions vaddcuq, vadduqm,
22522 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22523 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22524
22525 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22526 for V1TImode, and set up preferences to use VSX/Altivec registers.
22527 Setup VSX reload handlers.
22528 (rs6000_debug_reg_global): Likewise.
22529 (rs6000_init_hard_regno_mode_ok): Likewise.
22530 (rs6000_preferred_simd_mode): Likewise.
22531 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22532 (easy_altivec_constant): Likewise.
22533 (output_vec_const_move): Likewise.
22534 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22535 simple move.
22536 (rs6000_expand_vector_extract): Likewise.
22537 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22538 addressing.
22539 (rs6000_const_vec): Add support for V1TImode.
22540 (rs6000_emit_le_vsx_load): Swap double words when loading or
22541 storing TImode/V1TImode.
22542 (rs6000_emit_le_vsx_store): Likewise.
22543 (rs6000_emit_le_vsx_move): Likewise.
22544 (rs6000_emit_move): Add support for V1TImode.
22545 (altivec_expand_ld_builtin): Likewise.
22546 (altivec_expand_st_builtin): Likewise.
22547 (altivec_expand_vec_init_builtin): Likewise.
22548 (altivec_expand_builtin): Likewise.
22549 (rs6000_init_builtins): Add support for V1TImode type. Add
22550 support for ISA 2.07 128-bit integer builtins. Define type names
22551 for the VSX/Altivec vector types.
22552 (altivec_init_builtins): Add support for overloaded vector
22553 functions with V1TImode type.
22554 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22555 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22556 external function.
22557 (rs6000_split_128bit_ok_p): Likewise.
22558 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22559 __int128_t and vector __uint128_t.
22560
22561 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22562 and mode attributes.
22563 (VSX_M): Likewise.
22564 (VSX_M2): Likewise.
22565 (VSm): Likewise.
22566 (VSs): Likewise.
22567 (VSr): Likewise.
22568 (VSv): Likewise.
22569 (VS_scalar): Likewise.
22570 (VS_double): Likewise.
22571 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22572
22573 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22574 we support the ISA 2.07 128-bit integer arithmetic instructions.
22575 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22576 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22577 and TImode types for use with the builtin functions.
22578 (V1TI_type_node): Likewise.
22579 (unsigned_V1TI_type_node): Likewise.
22580 (intTI_type_internal_node): Likewise.
22581 (uintTI_type_internal_node): Likewise.
22582
22583 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22584 128-bit builtin functions.
22585 (UNSPEC_VADDEUQM): Likewise.
22586 (UNSPEC_VADDECUQ): Likewise.
22587 (UNSPEC_VSUBCUQ): Likewise.
22588 (UNSPEC_VSUBEUQM): Likewise.
22589 (UNSPEC_VSUBECUQ): Likewise.
22590 (VM): Add V1TImode to vector mode iterators.
22591 (VM2): Likewise.
22592 (VI_unit): Likewise.
22593 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22594 (altivec_vaddcuq): Likewise.
22595 (altivec_vsubuqm): Likewise.
22596 (altivec_vsubcuq): Likewise.
22597 (altivec_vaddeuqm): Likewise.
22598 (altivec_vaddecuq): Likewise.
22599 (altivec_vsubeuqm): Likewise.
22600 (altivec_vsubecuq): Likewise.
22601
22602 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22603 mode iterators.
22604 (BOOL_128): Likewise.
22605 (BOOL_REGS_OUTPUT): Likewise.
22606 (BOOL_REGS_OP1): Likewise.
22607 (BOOL_REGS_OP2): Likewise.
22608 (BOOL_REGS_UNARY): Likewise.
22609 (BOOL_REGS_AND_CR0): Likewise.
22610
22611 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22612 128-bit integer builtin support.
22613 (vec_vadduqm): Likewise.
22614 (vec_vaddecuq): Likewise.
22615 (vec_vaddeuqm): Likewise.
22616 (vec_vsubecuq): Likewise.
22617 (vec_vsubeuqm): Likewise.
22618 (vec_vsubcuq): Likewise.
22619 (vec_vsubuqm): Likewise.
22620
22621 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22622 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22623 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22624 128-bit integer add/subtract to ISA 2.07.
22625
22626 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22627
22628 * config/arc/arc.c (arc_predicate_delay_insns):
22629 Fix third argument passed to conditionalize_nonjump.
22630
22631 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22632
22633 * config/aarch64/aarch64-builtins.c
22634 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22635 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22636 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22637 instead of __builtin_lfloor.
22638 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22639
22640 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22641
22642 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22643 (tree_ssa_ifcombine_bb_1): New function.
22644 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22645 is an empty forwarder block to then_bb or vice versa and then_bb
22646 and else_bb are effectively swapped.
22647
22648 2014-03-12 Christian Bruel <christian.bruel@st.com>
22649
22650 PR target/60264
22651 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22652 REG_CFA_DEF_CFA note.
22653 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22654 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22655
22656 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22657
22658 PR tree-optimization/60454
22659 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22660
22661 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22662
22663 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22664 Do not define target_cpu_default2 to generic.
22665 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22666 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22667 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22668
22669 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22670 Marc Glisse <marc.glisse@inria.fr>
22671
22672 PR tree-optimization/60502
22673 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22674 instead of build_low_bits_mask.
22675
22676 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22677
22678 PR middle-end/60482
22679 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22680 if there are multiple uses, but op doesn't live on E edge.
22681 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22682 clobber stmts before __builtin_unreachable.
22683
22684 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22685
22686 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22687 hard_frame_pointer_rtx.
22688 * cse.c (cse_insn): Remove volatile check.
22689 * cselib.c (cselib_process_insn): Likewise.
22690 * dse.c (scan_insn): Likewise.
22691
22692 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22693
22694 * config/arc/arc.c (conditionalize_nonjump): New function,
22695 broken out of ...
22696 (arc_ifcvt): ... this.
22697 (arc_predicate_delay_insns): Use it.
22698
22699 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22700
22701 * config/arc/predicates.md (extend_operand): During/after reload,
22702 allow const_int_operand.
22703 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22704 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22705 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22706 to "i".
22707 (umulsi3_highpart_i): Likewise.
22708
22709 2014-03-11 Richard Biener <rguenther@suse.de>
22710
22711 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22712 Add asserts to guard possible wrong-code bugs.
22713
22714 2014-03-11 Richard Biener <rguenther@suse.de>
22715
22716 PR tree-optimization/60429
22717 PR tree-optimization/60485
22718 * tree-ssa-structalias.c (set_union_with_increment): Properly
22719 take into account all fields that overlap the shifted vars.
22720 (do_sd_constraint): Likewise.
22721 (do_ds_constraint): Likewise.
22722 (get_constraint_for_ptr_offset): Likewise.
22723
22724 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22725
22726 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22727 (nios2_compute_frame_layout):
22728 Add calculation of cfun->machine->fp_save_offset.
22729 (nios2_expand_prologue): Correct setting of frame pointer register
22730 in prologue.
22731 (nios2_expand_epilogue): Update recovery of stack pointer from
22732 frame pointer accordingly.
22733 (nios2_initial_elimination_offset): Update calculation of offset
22734 for eliminating to HARD_FRAME_POINTER_REGNUM.
22735
22736 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22737
22738 PR ipa/60457
22739 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22740 cgraph_get_create_node on VAR_DECLs.
22741
22742 2014-03-10 Richard Biener <rguenther@suse.de>
22743
22744 PR middle-end/60474
22745 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22746
22747 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22748
22749 * config/vms/vms.opt (vms_float_format): New variable.
22750
22751 2014-03-08 Tobias Burnus <burnus@net-b.de>
22752
22753 * doc/invoke.texi (-fcilkplus): Update implementation status.
22754
22755 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22756 Richard Biener <rguenther@suse.de>
22757
22758 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22759 consistently accross all TUs.
22760 (run_gcc): Enable -fshort-double automatically at link at link-time
22761 and disallow override.
22762
22763 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22764
22765 PR target/58271
22766 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22767 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22768 if they can't be used.
22769
22770 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22771
22772 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22773 for Solaris 11/x86 ld.
22774 * configure: Regenerate.
22775
22776 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22777
22778 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22779 (LIB_TLS_SPEC): Save as ld_tls_libs.
22780 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22781 (HAVE_AS_IX86_TLSLDM): New test.
22782 * configure, config.in: Regenerate.
22783 * config/i386/i386.c (legitimize_tls_address): Fall back to
22784 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22785 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22786 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22787 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22788
22789 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22790
22791 * common.opt (fira-loop-pressure): Mark as optimization.
22792
22793 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22794
22795 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22796 an OpenMP mappable type.
22797
22798 2014-03-06 Matthias Klose <doko@ubuntu.com>
22799
22800 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22801 MULTILIB_OSDIRNAMES is not defined.
22802
22803 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22804 Meador Inge <meadori@codesourcery.com>
22805
22806 PR target/58595
22807 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22808 (arm_legitimize_address): Call legitimize_tls_address for any
22809 arm_tls_referenced_p expression, handle constant addend. Call it
22810 before testing for !TARGET_ARM.
22811 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22812
22813 2014-03-06 Richard Biener <rguenther@suse.de>
22814
22815 PR middle-end/60445
22816 PR lto/60424
22817 PR lto/60427
22818 Revert
22819 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22820
22821 * tree-streamer.c (record_common_node): Assert we don't record
22822 nodes with type double.
22823 (preload_common_node): Skip type double, complex double and double
22824 pointer since it is now frontend dependent due to fshort-double option.
22825
22826 2014-03-06 Richard Biener <rguenther@suse.de>
22827
22828 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22829 or -fno-lto is specified and the linker has full plugin support.
22830 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22831 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22832 * lto-wrapper.c (merge_and_complain): Merge compile-time
22833 optimization levels.
22834 (run_gcc): And pass it through to the link options.
22835
22836 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22837
22838 PR debug/60381
22839 Revert:
22840 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22841 PR debug/59992
22842 * cselib.c (remove_useless_values): Skip to avoid quadratic
22843 behavior if the condition moved from...
22844 (cselib_process_insn): ... here holds.
22845
22846 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22847
22848 PR plugins/59335
22849 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22850 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22851
22852 PR plugins/59335
22853 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22854 (TM_H): Add x86-tune.def.
22855
22856 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22857
22858 * config/aarch64/aarch64.c (generic_tunings):
22859 Use cortexa57_extra_costs.
22860
22861 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22862
22863 PR lto/60404
22864 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22865 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22866 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22867 cost for in_lto_p.
22868
22869 2014-03-04 Heiher <r@hev.cc>
22870
22871 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22872 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22873
22874 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22875
22876 * config/i386/predicates.md (const2356_operand): Change to ...
22877 (const2367_operand): ... this.
22878 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22879 const2367_operand.
22880 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22881 (*avx512pf_scatterpf<mode>sf): Ditto.
22882 (avx512pf_scatterpf<mode>df): Ditto.
22883 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22884 (*avx512pf_scatterpf<mode>df): Ditto.
22885 * config/i386/i386.c (ix86_expand_builtin): Update
22886 incorrect hint operand error message.
22887
22888 2014-03-04 Richard Biener <rguenther@suse.de>
22889
22890 * lto-section-in.c (lto_get_section_data): Fix const cast.
22891
22892 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22893
22894 * tree-streamer.c (record_common_node): Assert we don't record
22895 nodes with type double.
22896 (preload_common_node): Skip type double, complex double and double
22897 pointer since it is now frontend dependent due to fshort-double option.
22898
22899 2014-03-04 Richard Biener <rguenther@suse.de>
22900
22901 PR lto/60405
22902 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22903 (lto_input_toplevel_asms): Likewise.
22904 * lto-section-in.c (lto_get_section_data): Instead do it here
22905 for every section.
22906
22907 2014-03-04 Richard Biener <rguenther@suse.de>
22908
22909 PR tree-optimization/60382
22910 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22911 dead PHIs a reduction.
22912
22913 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22914
22915 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22916 hint value.
22917 (_mm_prefetch): Move out of GCC target("sse") pragma.
22918 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22919 GCC target("prfchw") pragma.
22920 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22921 for locality <= 2.
22922 * config/i386/i386.c (ix86_option_override_internal): Enable
22923 -mprfchw with -mprefetchwt1.
22924
22925 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22926
22927 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22928 Mark as varying.
22929
22930 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22931
22932 * opts.h (CL_PCH_IGNORE): Define.
22933 * targhooks.c (option_affects_pch_p):
22934 Return false for options that have CL_PCH_IGNORE set.
22935 * opt-functions.awk: Process PchIgnore.
22936 * doc/options.texi: Document PchIgnore.
22937
22938 * config/arc/arc.opt (misize): Add PchIgnore property.
22939
22940 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22941
22942 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22943 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22944 constraint on constants to permit them being loaded into
22945 GENERAL_REGS or BASE_REGS.
22946
22947 2014-03-03 Nick Clifton <nickc@redhat.com>
22948
22949 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22950 anti-cacnonical alternatives.
22951 (negandhi3_real): New pattern.
22952 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22953
22954 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22955
22956 * config/avr/avr-mcus.def: Remove atxmega16x1.
22957 * config/avr/avr-tables.opt: Regenerate.
22958 * config/avr/t-multilib: Regenerate.
22959 * doc/avr-mmcu.texi: Regenerate.
22960
22961 2014-03-03 Tobias Grosser <tobias@grosser.es>
22962 Mircea Namolaru <mircea.namolaru@inria.fr>
22963
22964 PR tree-optimization/58028
22965 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22966 scalar dimensions.
22967
22968 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22969
22970 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22971 not handled by recognizers.
22972
22973 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22974
22975 PR middle-end/60175
22976 * function.c (expand_function_end): Don't emit
22977 clobber_return_register sequence if clobber_after is a BARRIER.
22978 * cfgexpand.c (construct_exit_block): Append instructions before
22979 return_label to prev_bb.
22980
22981 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22982
22983 * config/rs6000/constraints.md: Document reserved use of "wc".
22984
22985 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22986
22987 PR ipa/60150
22988 * ipa.c (function_and_variable_visibility): When dissolving comdat
22989 group, also set all symbols to local.
22990
22991 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22992
22993 PR ipa/60306
22994
22995 Revert:
22996 2013-12-14 Jan Hubicka <jh@suse.cz>
22997 PR middle-end/58477
22998 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22999
23000 2014-03-02 Jon Beniston <jon@beniston.com>
23001
23002 PR bootstrap/48230
23003 PR bootstrap/50927
23004 PR bootstrap/52466
23005 PR target/46898
23006 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
23007 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
23008 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
23009 (simple_return, *simple_return): New patterns
23010 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
23011 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
23012
23013 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
23014
23015 * dwarf2out.c (gen_subprogram_die): Tidy.
23016
23017 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
23018
23019 PR target/60071
23020 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
23021 (*mov_t_msb_neg_negc): ... this new insn.
23022
23023 2014-02-28 Jason Merrill <jason@redhat.com>
23024
23025 PR c++/58678
23026 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
23027 function.
23028
23029 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
23030
23031 PR c++/60314
23032 * dwarf2out.c (decltype_auto_die): New static.
23033 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
23034 (gen_type_die_with_usage): Handle 'decltype(auto)'.
23035 (is_cxx_auto): Likewise.
23036
23037 2014-02-28 Ian Bolton <ian.bolton@arm.com>
23038
23039 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
23040 we are not using general regs only.
23041
23042 2014-02-28 Richard Biener <rguenther@suse.de>
23043
23044 PR target/60280
23045 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
23046 previous fix and only allow to remove trivial pre-headers
23047 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
23048 (remove_forwarder_block): Properly update the latch of a loop.
23049
23050 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23051
23052 PR debug/59992
23053 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
23054 (cselib_preserved_hash_table): New.
23055 (preserve_constants_and_equivs): Move preserved vals to it.
23056 (cselib_find_slot): Look it up first.
23057 (cselib_init): Initialize it.
23058 (cselib_finish): Release it.
23059 (dump_cselib_table): Dump it.
23060
23061 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23062
23063 PR debug/59992
23064 * cselib.c (remove_useless_values): Skip to avoid quadratic
23065 behavior if the condition moved from...
23066 (cselib_process_insn): ... here holds.
23067
23068 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23069
23070 PR debug/57232
23071 * var-tracking.c (vt_initialize): Apply the same condition to
23072 preserve the CFA base value.
23073
23074 2014-02-28 Joey Ye <joey.ye@arm.com>
23075
23076 PR target/PR60169
23077 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
23078 if reload in progress or completed.
23079
23080 2014-02-28 Tobias Burnus <burnus@net-b.de>
23081
23082 PR middle-end/60147
23083 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
23084 NAMELIST_DECL.
23085
23086 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
23087
23088 * doc/tm.texi.in (Condition Code Status): Update documention for
23089 relative locations of cc0-setter and cc0-user.
23090
23091 2014-02-27 Jeff Law <law@redhat.com>
23092
23093 PR rtl-optimization/52714
23094 * combine.c (try_combine): When splitting an unrecognized PARALLEL
23095 into two independent simple sets, if I3 is a jump, ensure the
23096 pattern we place into I3 is a (set (pc) ...).
23097
23098 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
23099 Jeff Law <law@redhat.com>
23100
23101 PR rtl-optimization/49847
23102 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
23103 are in different blocks.
23104 * doc/tm.texi (Condition Code Status): Update documention for
23105 relative locations of cc0-setter and cc0-user.
23106
23107 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
23108
23109 PR target/59222
23110 * lra.c (lra_emit_add): Check SUBREG too.
23111
23112 2014-02-27 Andreas Schwab <schwab@suse.de>
23113
23114 * config/m68k/m68k.c (m68k_option_override): Disable
23115 -flive-range-shrinkage for classic m68k.
23116 (m68k_override_options_after_change): Likewise.
23117
23118 2014-02-27 Marek Polacek <polacek@redhat.com>
23119
23120 PR middle-end/59223
23121 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
23122 -Wmaybe-uninitialized.
23123
23124 2014-02-27 Alan Modra <amodra@gmail.com>
23125
23126 PR target/57936
23127 * reload1.c (emit_input_reload_insns): When reload_override_in,
23128 set old to rl->in_reg when rl->in_reg is a subreg.
23129
23130 2014-02-26 Richard Biener <rguenther@suse.de>
23131
23132 PR bootstrap/60343
23133 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
23134
23135 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23136
23137 * common/config/i386/predicates.md (const1256_operand): Remove.
23138 (const2356_operand): New.
23139 (const_1_to_2_operand): Remove.
23140 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23141 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23142 (*avx512pf_gatherpf<mode>sf): Ditto.
23143 (avx512pf_gatherpf<mode>df): Ditto.
23144 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23145 (*avx512pf_gatherpf<mode>df): Ditto.
23146 (avx512pf_scatterpf<mode>sf): Ditto.
23147 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23148 (*avx512pf_scatterpf<mode>sf): Ditto.
23149 (avx512pf_scatterpf<mode>df): Ditto.
23150 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23151 (*avx512pf_scatterpf<mode>df): Ditto.
23152 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
23153
23154 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
23155
23156 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
23157 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
23158 (_mm512_mask_testn_epi64_mask): Move to ...
23159 * config/i386/avx512cdintrin.h: Here.
23160 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
23161 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
23162 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
23163 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
23164 TARGET_AVX512F from TARGET_AVX512CD.
23165
23166 2014-02-26 Richard Biener <rguenther@suse.de>
23167
23168 PR ipa/60327
23169 * ipa.c (walk_polymorphic_call_targets): Properly guard
23170 call to inline_update_overall_summary.
23171
23172 2014-02-26 Bin Cheng <bin.cheng@arm.com>
23173
23174 PR target/60280
23175 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
23176 and latches only if requested. Fix latch if it is removed.
23177 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
23178 LOOPS_HAVE_PREHEADERS.
23179
23180 2014-02-25 Andrew Pinski <apinski@cavium.com>
23181
23182 * builtins.c (expand_builtin_thread_pointer): Create a new target
23183 when the target is NULL.
23184
23185 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
23186
23187 PR rtl-optimization/60317
23188 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23189 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23190 * lra-assigns.c: Include params.h.
23191 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
23192 other reload pseudos considerations.
23193
23194 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23195
23196 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
23197 to use canonical form for nor<mode>3.
23198
23199 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23200
23201 PR target/55426
23202 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23203 conversions.
23204
23205 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23206
23207 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23208 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23209 (ix86_handle_option): Handle OPT_mprefetchwt1.
23210 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23211 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23212 PREFETCHWT1 CPUID.
23213 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23214 OPTION_MASK_ISA_PREFETCHWT1.
23215 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23216 (PTA_PREFETCHWT1): New.
23217 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23218 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23219 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23220 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23221 (*prefetch_avx512pf_<mode>_: Change into ...
23222 (*prefetch_prefetchwt1_<mode>: This.
23223 * config/i386/i386.opt (mprefetchwt1): New.
23224 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23225 (_mm_prefetch): Handle intent to write.
23226 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23227
23228 2014-02-25 Richard Biener <rguenther@suse.de>
23229
23230 PR middle-end/60291
23231 * emit-rtl.c (mem_attrs_htab): Remove.
23232 (mem_attrs_htab_hash): Likewise.
23233 (mem_attrs_htab_eq): Likewise.
23234 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23235 (init_emit_once): Do not allocate mem_attrs_htab.
23236
23237 2014-02-25 Richard Biener <rguenther@suse.de>
23238
23239 PR lto/60319
23240 * lto-opts.c (lto_write_options): Output non-explicit conservative
23241 -fwrapv, -fno-trapv and -fno-strict-overflow.
23242 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23243 (run_gcc): And pass them through.
23244
23245 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23246
23247 * sel-sched.c (calculate_new_fences): New parameter ptime.
23248 Calculate it as a maximum over all fence cycles.
23249 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23250 Print the final schedule timing when sched_verbose.
23251
23252 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23253
23254 PR rtl-optimization/60292
23255 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23256 bit fot the fence instruction.
23257
23258 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23259
23260 * calls.h: Fix typo in comment.
23261
23262 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23263
23264 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23265 adjusting offsetable addresses.
23266
23267 2014-02-24 Guozhi Wei <carrot@google.com>
23268
23269 * sparseset.h (sparseset_pop): Fix the wrong index.
23270
23271 2014-02-24 Walter Lee <walt@tilera.com>
23272
23273 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23274 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23275 triplet.
23276 * common/config/tilegx/tilegx-common.c
23277 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23278 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23279 (LINK_SPEC): Ditto.
23280 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23281 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23282 (tilegx_gimplify_va_arg_expr): Handle big endian.
23283 (tilegx_expand_unaligned_load): Ditto.
23284 (tilegx_expand_unaligned_store): Ditto.
23285 (TARGET_RETURN_IN_MSB): New.
23286 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23287 (TARGET_ENDIAN_DEFAULT): New.
23288 (TARGET_BIG_ENDIAN): Handle big endian.
23289 (BYTES_BIG_ENDIAN): Ditto.
23290 (WORDS_BIG_ENDIAN): Ditto.
23291 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23292 (ENDIAN_SPEC): New.
23293 (EXTRA_SPECS): New.
23294 * config/tilegx/tilegx.md (extv): Handle big endian.
23295 (extzv): Ditto.
23296 (insn_st<n>): Ditto.
23297 (insn_st<n>_add<bitsuffix>): Ditto.
23298 (insn_stnt<n>): Ditto.
23299 (insn_stnt<n>_add<bitsuffix>):Ditto.
23300 (vec_interleave_highv8qi): Handle big endian.
23301 (vec_interleave_highv8qi_be): New.
23302 (vec_interleave_highv8qi_le): New.
23303 (insn_v1int_h): Handle big endian.
23304 (vec_interleave_lowv8qi): Handle big endian.
23305 (vec_interleave_lowv8qi_be): New.
23306 (vec_interleave_lowv8qi_le): New.
23307 (insn_v1int_l): Handle big endian.
23308 (vec_interleave_highv4hi): Handle big endian.
23309 (vec_interleave_highv4hi_be): New.
23310 (vec_interleave_highv4hi_le): New.
23311 (insn_v2int_h): Handle big endian.
23312 (vec_interleave_lowv4hi): Handle big endian.
23313 (vec_interleave_lowv4hi_be): New.
23314 (vec_interleave_lowv4hi_le): New.
23315 (insn_v2int_l): Handle big endian.
23316 (vec_interleave_highv2si): Handle big endian.
23317 (vec_interleave_highv2si_be): New.
23318 (vec_interleave_highv2si_le): New.
23319 (insn_v4int_h): Handle big endian.
23320 (vec_interleave_lowv2si): Handle big endian.
23321 (vec_interleave_lowv2si_be): New.
23322 (vec_interleave_lowv2si_le): New.
23323 (insn_v4int_l): Handle big endian.
23324 * config/tilegx/tilegx.opt (mbig-endian): New option.
23325 (mlittle-endian): New option.
23326 * doc/install.texi: Document tilegxbe-linux.
23327 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23328
23329 2014-02-24 Martin Jambor <mjambor@suse.cz>
23330
23331 PR ipa/60266
23332 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23333 there are no parameter descriptors.
23334
23335 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23336
23337 PR rtl-optimization/60268
23338 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23339 initialization to ...
23340 (sched_rgn_init): ... here.
23341 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23342
23343 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23344
23345 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23346 names.
23347
23348 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23349
23350 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23351 definition.
23352
23353 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23354
23355 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23356 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23357
23358 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23359
23360 * config/microblaze/predicates.md: Add cmp_op predicate.
23361 * config/microblaze/microblaze.md: Add branch_compare instruction
23362 which uses cmp_op predicate and emits cmp insn before branch.
23363 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23364 to microblaze_expand_conditional_branch and consolidate logic.
23365 (microblaze_expand_conditional_branch): emit branch_compare
23366 insn instead of handling cmp op separate from branch insn.
23367
23368 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23369
23370 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23371 to permit subregs.
23372
23373 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23374
23375 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23376 define_insn with define_expand and new define_insn
23377 *altivec_lve<VI_char>x_internal.
23378 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23379 and new define_insn *altivec_stve<VI_char>x_internal.
23380 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23381 prototype.
23382 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23383 lve*x built-ins.
23384 (altivec_expand_stvex_be): New function.
23385
23386 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23387
23388 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23389 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23390 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23391 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23392
23393 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23394
23395 PR target/60298
23396 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23397 instead of emit_move_insn.
23398
23399 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23400
23401 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23402 vspltw with vsldoi.
23403 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23404 gen_altivec_vsumsws.
23405
23406 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23407
23408 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23409 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23410 (altivec_lvxl_<mode>): New define_expand incorporating
23411 -maltivec=be semantics where needed.
23412 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23413 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23414 semantics where needed.
23415 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23416 (altivec_stvx_<mode>): New define_expand incorporating
23417 -maltivec=be semantics where needed.
23418 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23419 VM2 iterator instead of V4SI.
23420 (altivec_stvxl_<mode>): New define_expand incorporating
23421 -maltivec=be semantics where needed.
23422 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23423 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23424 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23425 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23426 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23427 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23428 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23429 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23430 ALTIVEC_BUILTIN_STVXL.
23431 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23432 (altivec_expand_stvx_be): Likewise.
23433 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23434 (altivec_expand_lvx_be): Likewise.
23435 (altivec_expand_stvx_be): Likewise.
23436 (altivec_expand_builtin): Add cases for
23437 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23438 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23439 (altivec_init_builtins): Add definitions for
23440 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23441 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23442
23443 2014-02-21 Catherine Moore <clm@codesourcery.com>
23444
23445 * doc/invoke.texi (mvirt, mno-virt): Document.
23446 * config/mips/mips.opt (mvirt): New option.
23447 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23448
23449 2014-02-21 Richard Biener <rguenther@suse.de>
23450
23451 PR tree-optimization/60276
23452 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23453 (STMT_VINFO_MIN_NEG_DIST): New macro.
23454 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23455 STMT_VINFO_MIN_NEG_DIST.
23456 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23457 made for negative dependence distances still hold.
23458
23459 2014-02-21 Richard Biener <rguenther@suse.de>
23460
23461 PR middle-end/60291
23462 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23463 DECL_INITIAL for globals not in the current function context.
23464
23465 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23466
23467 PR tree-optimization/56490
23468 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23469 * tree-ssa-uninit.c: Include params.h.
23470 (compute_control_dep_chain): Add num_calls argument, return false
23471 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23472 num_calls to recursive call.
23473 (find_predicates): Change dep_chain into normal array,
23474 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23475 variable and adjust compute_control_dep_chain caller.
23476 (find_def_preds): Likewise.
23477
23478 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23479
23480 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23481 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23482
23483 2014-02-21 Nick Clifton <nickc@redhat.com>
23484
23485 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23486 (pushhi1): Likewise.
23487 (popqi1): Add mode to pre_dec.
23488 (pophi1): Likewise.
23489
23490 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23491
23492 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23493 mode for mask of V8SFmode permutation.
23494
23495 2014-02-20 Richard Henderson <rth@redhat.com>
23496
23497 PR c++/60272
23498 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23499 a new pseudo for OLDVAL.
23500
23501 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23502
23503 PR target/57896
23504 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23505 gen_reg_rtx if d->testing_p.
23506 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23507 if d->testing_p and we will certainly return true.
23508 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23509 if d->testing_p.
23510
23511 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23512
23513 * emit-rtl.c (gen_reg_rtx): Assert that
23514 crtl->emit.regno_pointer_align_length is non-zero.
23515
23516 2014-02-20 Richard Henderson <rth@redhat.com>
23517
23518 PR c++/60272
23519 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23520 on failure the store back into EXPECT.
23521
23522 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23523 Sandra Loosemore <sandra@codesourcery.com>
23524
23525 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23526 * config/nios2/nios2.c (nios2_function_profiler): Add
23527 -fPIC (flag_pic == 2) support.
23528 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23529 (nios2_large_offset_p): New function.
23530 (nios2_unspec_reloc_p): Move up position, update to use
23531 nios2_large_offset_p.
23532 (nios2_unspec_address): Remove function.
23533 (nios2_unspec_offset): New function.
23534 (nios2_large_got_address): New function.
23535 (nios2_got_address): Add large offset support.
23536 (nios2_legitimize_tls_address): Update usage of removed and new
23537 functions.
23538 (nios2_symbol_binds_local_p): New function.
23539 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23540 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23541 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23542 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23543 processing for (const (unspec ...)).
23544 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23545
23546 2014-02-20 Richard Biener <rguenther@suse.de>
23547
23548 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23549 doing the substitution.
23550 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23551
23552 2014-02-20 Martin Jambor <mjambor@suse.cz>
23553
23554 PR ipa/55260
23555 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23556 info when checking whether lattices are bottom.
23557
23558 2014-02-20 Richard Biener <rguenther@suse.de>
23559
23560 PR middle-end/60221
23561 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23562 regions at -O0.
23563
23564 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23565
23566 PR ipa/58555
23567 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23568 parameter specifying the scaling.
23569 (inline_call): Update.
23570 (want_inline_recursively): Guard division by zero.
23571 (recursive_inlining): Update.
23572 * ipa-inline.h (clone_inlined_nodes): Update.
23573
23574 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23575
23576 PR target/60204
23577 * config/i386/i386.c (classify_argument): Pass structures of size
23578 64 bytes or less in register.
23579
23580 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23581 Kirill Yukhin <kirill.yukhin@intel.com>
23582
23583 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23584 (_mm_rcp28_round_ss): Ditto.
23585 (_mm_rsqrt28_round_sd): Ditto.
23586 (_mm_rsqrt28_round_ss): Ditto.
23587 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23588 (_mm_rcp14_round_ss): Ditto.
23589 (_mm_rsqrt14_round_sd): Ditto.
23590 (_mm_rsqrt14_round_ss): Ditto.
23591 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23592 the first input operand, get rid of match_dup.
23593 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23594 attribute to sse.
23595 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23596 Ditto.
23597 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23598 operand as the first input operand, set type attribute.
23599 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23600 Set type attribute.
23601 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23602 operand as the first input operand, set type attribute.
23603
23604 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23605
23606 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23607 bit of zero.
23608
23609 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23610
23611 PR target/60207
23612 * config/i386/i386.c (construct_container): Remove TFmode check
23613 for X86_64_INTEGER_CLASS.
23614
23615 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23616
23617 PR target/59794
23618 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23619 only when -Wpsabi is enabled.
23620
23621 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23622
23623 PR target/59799
23624 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23625 passing arrays in registers are the same as for structs, so remove the
23626 special case for them.
23627
23628 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23629
23630 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23631 destination type, extract only the valid bits if the source type is not
23632 integral and has a different mode.
23633
23634 2014-02-19 Richard Biener <rguenther@suse.de>
23635
23636 PR ipa/60243
23637 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23638 for all calls.
23639
23640 2014-02-19 Richard Biener <rguenther@suse.de>
23641
23642 PR ipa/60243
23643 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23644 (ipa_modify_call_arguments): Emit an argument load explicitely and
23645 preserve virtual SSA form there and for the replacement call.
23646 Do not update SSA form nor free dominance info.
23647
23648 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23649
23650 * ipa.c (function_and_variable_visibility): Also clear WEAK
23651 flag when disolving COMDAT_GROUP.
23652
23653 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23654
23655 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23656 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23657 not devirtualizing.
23658 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23659 do more sanity checks.
23660 (detect_type_change): Return true when giving up early.
23661 (compute_complex_assign_jump_func): Fix type parameter of
23662 ipa_set_ancestor_jf.
23663 (compute_complex_ancestor_jump_func): Likewise.
23664 (update_jump_functions_after_inlining): Fix updating of
23665 ancestor function.
23666 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23667
23668 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23669
23670 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23671 inline clones when edge disappears.
23672
23673 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23674
23675 PR target/60203
23676 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23677 Split 64-bit moves into 2 patterns. Do not allow the use of
23678 direct move for TDmode in little endian, since the decimal value
23679 has little endian bytes within a word, but the 64-bit pieces are
23680 ordered in a big endian fashion, and normal subreg's of TDmode are
23681 not allowed.
23682 (mov<mode>_64bit_dm): Likewise.
23683 (movtd_64bit_nodm): Likewise.
23684
23685 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23686
23687 PR tree-optimization/60174
23688 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23689 statement of an SSA_NAME that occurs in an abnormal PHI node.
23690
23691 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23692
23693 PR sanitizer/60142
23694 * final.c (SEEN_BB): Remove.
23695 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23696 (final_scan_insn): Don't force_source_line on second
23697 NOTE_INSN_BASIC_BLOCK.
23698
23699 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23700
23701 PR target/60205
23702 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23703 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23704 (type_natural_mode): Warn ABI change when %zmm register is not
23705 available for AVX512F vector value passing.
23706
23707 2014-02-18 Kai Tietz <ktietz@redhat.com>
23708
23709 PR target/60193
23710 * config/i386/i386.c (ix86_expand_prologue): Use value in
23711 rax register as displacement when restoring %r10 or %rax.
23712 Fix wrong offset when restoring both registers.
23713
23714 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23715
23716 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23717 assertion with conditional return.
23718
23719 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23720 Uros Bizjak <ubizjak@gmail.com>
23721
23722 PR driver/60233
23723 * config/i386/driver-i386.c (host_detect_local_cpu): If
23724 YMM state is not saved by the OS, also clear has_f16c. Move
23725 CPUID 0x80000001 handling before YMM state saving checking.
23726
23727 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23728
23729 PR rtl-optimization/58960
23730 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23731 factored out from ...
23732 (sched_init): ... here.
23733 (free_global_sched_pressure_data): New, factored out from ...
23734 (sched_finish): ... here.
23735 * sched-int.h (free_global_sched_pressure_data): Declare.
23736 * sched-rgn.c (nr_regions_initial): New static global.
23737 (haifa_find_rgns): Initialize it.
23738 (schedule_region): Disable sched-pressure for the newly
23739 generated regions.
23740
23741 2014-02-17 Richard Biener <rguenther@suse.de>
23742
23743 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23744 release SSA defs of pattern stmts.
23745
23746 2014-02-17 Richard Biener <rguenther@suse.de>
23747
23748 * tree-inline.c (expand_call_inline): Release the virtual
23749 operand defined by the call we are about to inline.
23750
23751 2014-02-17 Richard Biener <rguenther@suse.de>
23752
23753 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23754
23755 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23756 Ilya Tocar <ilya.tocar@intel.com>
23757
23758 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23759 arguments order in builtin.
23760 (_mm512_permutexvar_epi64): Ditto.
23761 (_mm512_mask_permutexvar_epi64): Ditto
23762 (_mm512_maskz_permutexvar_epi32): Ditto
23763 (_mm512_permutexvar_epi32): Ditto
23764 (_mm512_mask_permutexvar_epi32): Ditto
23765
23766 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23767
23768 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23769 (p8_vmrgow): Likewise.
23770
23771 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23772
23773 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23774 endian targets.
23775
23776 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23777
23778 PR target/60203
23779 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23780 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23781 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23782 using direct move instructions on ISA 2.07. Also adjust
23783 instruction length for 64-bit.
23784 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23785 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23786
23787 2014-02-15 Alan Modra <amodra@gmail.com>
23788
23789 PR target/58675
23790 PR target/57935
23791 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23792 find_replacement on parts of insn rtl that might be reloaded.
23793
23794 2014-02-15 Richard Biener <rguenther@suse.de>
23795
23796 PR tree-optimization/60183
23797 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23798 (tree_ssa_phiprop): Calculate and free post-dominators.
23799
23800 2014-02-14 Jeff Law <law@redhat.com>
23801
23802 PR rtl-optimization/60131
23803 * ree.c (get_extended_src_reg): New function.
23804 (combine_reaching_defs): Use it rather than assuming location of REG.
23805 (find_and_remove_re): Verify first operand of extension is
23806 a REG before adding the insns to the copy list.
23807
23808 2014-02-14 Roland McGrath <mcgrathr@google.com>
23809
23810 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23811 * configure: Regenerated.
23812 * config.in: Regenerated.
23813 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23814 instead of ASM_SHORT.
23815
23816 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23817 Richard Earnshaw <rearnsha@arm.com>
23818
23819 PR rtl-optimization/59535
23820 * lra-constraints.c (process_alt_operands): Encourage alternative
23821 when unassigned pseudo class is superset of the alternative class.
23822 (inherit_reload_reg): Don't inherit when optimizing for code size.
23823 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23824 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23825 modes not less than 4 for Thumb1.
23826
23827 2014-02-14 Kyle McMartin <kyle@redhat.com>
23828
23829 PR pch/60010
23830 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23831
23832 2014-02-14 Richard Biener <rguenther@suse.de>
23833
23834 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23835 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23836 Do not strip INDIRECT_REFs.
23837
23838 2014-02-14 Richard Biener <rguenther@suse.de>
23839
23840 PR lto/60179
23841 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23842 DECL_FUNCTION_SPECIFIC_TARGET.
23843 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23844 * tree-streamer-out.c (pack_ts_target_option): Remove.
23845 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23846 (write_ts_function_decl_tree_pointers): Do not stream
23847 DECL_FUNCTION_SPECIFIC_TARGET.
23848 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23849 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23850 (lto_input_ts_function_decl_tree_pointers): Do not stream
23851 DECL_FUNCTION_SPECIFIC_TARGET.
23852
23853 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23854
23855 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23856 (get_initial_def_for_induction, vectorizable_induction): Ignore
23857 debug stmts when looking for exit_phi.
23858 (vectorizable_live_operation): Fix up condition.
23859
23860 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23861
23862 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23863 nreverse() because it changes the content of original tree list.
23864
23865 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23866
23867 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23868 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23869
23870 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23871
23872 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23873 GNU coding standards.
23874
23875 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23876
23877 PR debug/60152
23878 * dwarf2out.c (gen_subprogram_die): Don't call
23879 add_calling_convention_attribute if subr_die is old_die.
23880
23881 2014-02-13 Sharad Singhai <singhai@google.com>
23882
23883 * doc/optinfo.texi: Fix order of nodes.
23884
23885 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23886
23887 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23888 operands[2], not operands[3].
23889
23890 2014-02-13 Richard Biener <rguenther@suse.de>
23891
23892 PR bootstrap/59878
23893 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23894 mention the possibility of an in-tree build.
23895 (CLooG): Update recommended version to 0.18.1, mention the
23896 possibility of an in-tree build and clarify that the ISL
23897 bundled with CLooG does not work.
23898
23899 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23900
23901 PR target/43546
23902 * expr.c (compress_float_constant): If x is a hard register,
23903 extend into a pseudo and then move to x.
23904
23905 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23906
23907 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23908 caused by bad second argument to warning_at() with -mhotpatch and
23909 nested functions (e.g. with gfortran).
23910
23911 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23912
23913 * opts.c (option_name): Remove "enabled by default" rider.
23914
23915 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23916
23917 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23918
23919 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23920 Uros Bizjak <ubizjak@gmail.com>
23921
23922 PR target/60151
23923 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23924 * configure: Regenerated.
23925
23926 2014-02-12 Richard Biener <rguenther@suse.de>
23927
23928 * vec.c (vec_prefix::calculate_allocation): Move as
23929 inline variant to vec.h.
23930 (vec_prefix::calculate_allocation_1): New out-of-line version.
23931 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23932 (vec_prefix::m_has_auto_buf): Rename to ...
23933 (vec_prefix::m_using_auto_storage): ... this.
23934 (vec_prefix::calculate_allocation): Inline the easy cases
23935 and dispatch to calculate_allocation_1 which doesn't need the
23936 prefix address.
23937 (va_heap::reserve): Use gcc_checking_assert.
23938 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23939 m_using_auto_storage.
23940 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23941 member and adjust.
23942 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23943 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23944 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23945
23946 2014-02-12 Richard Biener <rguenther@suse.de>
23947
23948 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23949 when we found a dependence.
23950
23951 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23952
23953 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23954 common code...
23955 (maybe_fold_stmt): ... into this new function.
23956 * omp-low.c (lower_omp): Update comment.
23957
23958 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23959 last use.
23960
23961 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23962 dereference.
23963
23964 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23965
23966 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23967 identifiers in comments.
23968 (cortexa53_extra_costs): Likewise.
23969 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23970 (cortexa7_extra_costs): Likewise.
23971 (cortexa12_extra_costs): Likewise.
23972 (cortexa15_extra_costs): Likewise.
23973 (v7m_extra_costs): Likewise.
23974
23975 2014-02-12 Richard Biener <rguenther@suse.de>
23976
23977 PR middle-end/60092
23978 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23979 of posix_memalign being successful.
23980 (lower_stmt): Restrict lowering of posix_memalign to when
23981 -ftree-bit-ccp is enabled.
23982
23983 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23984
23985 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23986 arg_loc.
23987 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23988
23989 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23990
23991 PR rtl-optimization/60116
23992 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23993 other_insn once the combination has been validated.
23994
23995 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23996
23997 PR lto/59468
23998 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23999 and wrapper.
24000 * ipa-devirt.c: Include demangle.h
24001 (odr_violation_reported): New static variable.
24002 (add_type_duplicate): Update odr_violations.
24003 (maybe_record_node): Add completep parameter; update it.
24004 (record_target_from_binfo): Add COMPLETEP parameter;
24005 update it as needed.
24006 (possible_polymorphic_call_targets_1): Likewise.
24007 (struct polymorphic_call_target_d): Add nonconstruction_targets;
24008 rename FINAL to COMPLETE.
24009 (record_targets_from_bases): Sanity check we found the binfo;
24010 fix COMPLETEP updating.
24011 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
24012 parameter, fix computing of COMPLETEP.
24013 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
24014 at LTO time do demangling.
24015 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
24016 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
24017 parameter.
24018 (gimple_get_virt_method_for_binfo): Likewise.
24019 * gimple-fold.h (gimple_get_virt_method_for_binfo,
24020 gimple_get_virt_method_for_vtable): Update prototypes.
24021
24022 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
24023
24024 PR target/49008
24025 * genautomata.c (add_presence_absence): Fix typo with
24026 {final_}presence_list.
24027
24028 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24029
24030 PR target/60137
24031 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
24032 for VSX/Altivec vectors that land in GPR registers.
24033
24034 2014-02-11 Richard Henderson <rth@redhat.com>
24035 Jakub Jelinek <jakub@redhat.com>
24036
24037 PR debug/59776
24038 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
24039 around drhs if type conversion to lacc->type is not useless.
24040
24041 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24042
24043 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
24044 tuning struct.
24045 (cortex-a57.cortex-a53): Likewise.
24046 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
24047
24048 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24049
24050 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
24051 arm_restrict_it.
24052
24053 2014-02-11 Renlin Li <Renlin.Li@arm.com>
24054
24055 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
24056 add_options_for_arm_vfp3.
24057
24058 2014-02-11 Jeff Law <law@redhat.com>
24059
24060 PR middle-end/54041
24061 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
24062 object with an undesirable mode.
24063
24064 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24065
24066 PR libgomp/60107
24067 * config/i386/sol2-9.h: New file.
24068 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
24069 *-*-solaris2.9*): Use it.
24070
24071 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24072
24073 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
24074 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
24075
24076 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24077
24078 * config/microblaze/microblaze.c: Extend mcpu version format
24079
24080 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
24081
24082 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
24083
24084 2014-02-10 Richard Henderson <rth@redhat.com>
24085
24086 PR target/59927
24087 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
24088 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
24089 ms-abi vs -mno-accumulate-outgoing-args.
24090 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
24091 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
24092 respect to ms-abi.
24093
24094 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
24095
24096 PR middle-end/60080
24097 * cfgexpand.c (expand_asm_operands): Attach source location to
24098 ASM_INPUT rtx objects.
24099 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
24100
24101 2014-02-10 Nick Clifton <nickc@redhat.com>
24102
24103 * config/mn10300/mn10300.c (popcount): New function.
24104 (mn10300_expand_prologue): Include saved registers in stack usage
24105 count.
24106
24107 2014-02-10 Jeff Law <law@redhat.com>
24108
24109 PR middle-end/52306
24110 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
24111 when changing the SET_DEST of a prior insn to avoid an input reload.
24112
24113 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24114
24115 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
24116 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
24117 -mcall-openbsd, or -mcall-linux.
24118 (CC1_ENDIAN_BIG_SPEC): Remove.
24119 (CC1_ENDIAN_LITTLE_SPEC): Remove.
24120 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24121 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
24122 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
24123 and %cc1_endian_default.
24124 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24125
24126 2014-02-10 Richard Biener <rguenther@suse.de>
24127
24128 PR tree-optimization/60115
24129 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
24130 MEM_REF handling. Properly verify that the accesses are not
24131 out of the objects bound.
24132
24133 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24134
24135 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
24136 coretex to cortex.
24137
24138 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
24139
24140 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
24141 proper constants and fix formatting.
24142 (possible_polymorphic_call_targets): Fix formatting.
24143
24144 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
24145 Ilya Tocar <ilya.tocar@intel.com>
24146
24147 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
24148 (_mm512_loadu_epi32): Renamed into...
24149 (_mm512_loadu_si512): This.
24150 (_mm512_storeu_epi32): Renamed into...
24151 (_mm512_storeu_si512): This.
24152 (_mm512_maskz_ceil_ps): Removed.
24153 (_mm512_maskz_ceil_pd): Ditto.
24154 (_mm512_maskz_floor_ps): Ditto.
24155 (_mm512_maskz_floor_pd): Ditto.
24156 (_mm512_floor_round_ps): Ditto.
24157 (_mm512_floor_round_pd): Ditto.
24158 (_mm512_ceil_round_ps): Ditto.
24159 (_mm512_ceil_round_pd): Ditto.
24160 (_mm512_mask_floor_round_ps): Ditto.
24161 (_mm512_mask_floor_round_pd): Ditto.
24162 (_mm512_mask_ceil_round_ps): Ditto.
24163 (_mm512_mask_ceil_round_pd): Ditto.
24164 (_mm512_maskz_floor_round_ps): Ditto.
24165 (_mm512_maskz_floor_round_pd): Ditto.
24166 (_mm512_maskz_ceil_round_ps): Ditto.
24167 (_mm512_maskz_ceil_round_pd): Ditto.
24168 (_mm512_expand_pd): Ditto.
24169 (_mm512_expand_ps): Ditto.
24170 * config/i386/i386.c (ix86_builtins): Remove
24171 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
24172 (bdesc_args): Ditto.
24173 * config/i386/predicates.md (const1256_operand): New.
24174 (const_1_to_2_operand): Ditto.
24175 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24176 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24177 (*avx512pf_gatherpf<mode>sf): Ditto.
24178 (avx512pf_gatherpf<mode>df): Ditto.
24179 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24180 (*avx512pf_gatherpf<mode>df): Ditto.
24181 (avx512pf_scatterpf<mode>sf): Ditto.
24182 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24183 (*avx512pf_scatterpf<mode>sf): Ditto.
24184 (avx512pf_scatterpf<mode>df): Ditto.
24185 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24186 (*avx512pf_scatterpf<mode>df): Ditto.
24187 (avx512f_expand<mode>): Removed.
24188 (<shift_insn><mode>3<mask_name>): Change predicate type.
24189
24190 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24191
24192 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
24193 not at the end of datarefs vector use ordered_remove to avoid
24194 reordering datarefs vector.
24195
24196 PR c/59984
24197 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24198 mark local addressable non-static vars as GOVD_PRIVATE
24199 instead of GOVD_LOCAL.
24200 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24201 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24202 than copying them.
24203
24204 PR middle-end/60092
24205 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24206 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24207 assume_aligned or alloc_align attributes.
24208 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24209 arguments. Handle also assume_aligned and alloc_align attributes.
24210 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24211 calls to functions with assume_aligned or alloc_align attributes.
24212 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24213
24214 2014-02-08 Terry Guo <terry.guo@arm.com>
24215
24216 * doc/invoke.texi: Document ARM -march=armv7e-m.
24217
24218 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24219
24220 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24221 flag on __cilkrts_rethrow builtin.
24222
24223 PR ipa/60026
24224 * ipa-cp.c (determine_versionability): Fail at -O0
24225 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24226 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24227
24228 Revert:
24229 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24230
24231 PR ipa/60026
24232 * tree-inline.c (copy_forbidden): Fail for
24233 __attribute__((optimize (0))) functions.
24234
24235 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24236
24237 * varpool.c: Include pointer-set.h.
24238 (varpool_remove_unreferenced_decls): Variables in other partitions
24239 will not be output; be however careful to not lose information
24240 about partitioning.
24241
24242 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24243
24244 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24245 lookup in the vtable constructor.
24246
24247 2014-02-07 Jeff Law <law@redhat.com>
24248
24249 PR target/40977
24250 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24251 define_insn_and_split.
24252
24253 * ipa-inline.c (inline_small_functions): Fix typos.
24254
24255 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24256
24257 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24258 (s390_can_use_return_insn): Declare.
24259 * config/s390/s390.h (EPILOGUE_USES): Define.
24260 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24261 instructions.
24262 (s390_chunkify_start): Handle return JUMP_LABELs.
24263 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24264 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24265 (s390_can_use_return_insn): New functions.
24266 (s390_fix_long_loop_prediction): Handle conditional returns.
24267 (TARGET_SET_UP_BY_PROLOGUE): Define.
24268 * config/s390/s390.md (ANY_RETURN): New code iterator.
24269 (*creturn, *csimple_return, return, simple_return): New patterns.
24270
24271 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24272
24273 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24274 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24275 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24276 REG_CFA_RESTORE list when deciding not to restore a register.
24277
24278 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24279
24280 * config/s390/s390.c: Include tree-pass.h and context.h.
24281 (s390_early_mach): New function, split out from...
24282 (s390_emit_prologue): ...here.
24283 (pass_data_s390_early_mach): New pass structure.
24284 (pass_s390_early_mach): New class.
24285 (s390_option_override): Create and register early_mach pass.
24286 Move to end of file.
24287
24288 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24289
24290 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24291 to match for the exit block.
24292
24293 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24294
24295 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24296 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24297 Reject misaligned operands.
24298
24299 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24300
24301 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24302
24303 2014-02-07 Richard Biener <rguenther@suse.de>
24304
24305 PR middle-end/60092
24306 * gimple-low.c (lower_builtin_posix_memalign): New function.
24307 (lower_stmt): Call it to lower posix_memalign in a way
24308 to make alignment info accessible.
24309
24310 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24311
24312 PR c++/60082
24313 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24314 __builtin_setjmp_receiver.
24315
24316 2014-02-07 Richard Biener <rguenther@suse.de>
24317
24318 PR middle-end/60092
24319 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24320 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24321 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24322 Handle BUILT_IN_POSIX_MEMALIGN.
24323 (find_func_clobbers): Likewise.
24324 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24325 (call_may_clobber_ref_p_1): Likewise.
24326
24327 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24328
24329 PR ipa/59918
24330 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24331 sanity check.
24332
24333 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24334
24335 PR ipa/59469
24336 * lto-cgraph.c (lto_output_node): Use
24337 symtab_get_symbol_partitioning_class.
24338 (lto_output_varpool_node): likewise.
24339 (symtab_get_symbol_partitioning_class): Move here from
24340 lto/lto-partition.c
24341 * cgraph.h (symbol_partitioning_class): Likewise.
24342 (symtab_get_symbol_partitioning_class): Declare.
24343
24344 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24345
24346 * ggc.h (ggc_internal_cleared_alloc): New macro.
24347 * vec.h (vec_safe_copy): Handle memory stats.
24348 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24349 * target-globals.c (save_target_globals): Likewise.
24350
24351 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24352
24353 PR target/60077
24354 * expr.c (emit_move_resolve_push): Export; be bit more selective
24355 on when to clear alias set.
24356 * expr.h (emit_move_resolve_push): Declare.
24357 * function.h (struct function): Add tail_call_marked.
24358 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24359 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24360 * config/i386/i386.md (TImode move expander): De not call
24361 ix86_expand_push.
24362 (FP push expanders): Preserve memory attributes.
24363 * config/i386/sse.md (push<mode>1): Remove.
24364 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24365 (ix86_expand_push): Remove.
24366 * config/i386/mmx.md (push<mode>1): Remove.
24367
24368 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24369
24370 PR rtl-optimization/60030
24371 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24372 lopart with paradoxical subreg before shifting it up by hprec.
24373
24374 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24375
24376 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24377 Remove extra newline at end of file.
24378 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24379 (arm_issue_rate): Handle cortexa57.
24380 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24381 (cortex-a57.cortex-a53): Likewise.
24382
24383 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24384
24385 PR target/59575
24386 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24387 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24388 bitmask.
24389 (arm_expand_prologue): Adjust all callers.
24390 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24391 info, registers also at the lowest numbered registers side. Use
24392 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24393 XEXP.
24394
24395 PR debug/59992
24396 * var-tracking.c (adjust_mems): Before adding a SET to
24397 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24398
24399 2014-02-06 Alan Modra <amodra@gmail.com>
24400
24401 PR target/60032
24402 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24403 change SDmode to DDmode when lra_in_progress.
24404
24405 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24406
24407 PR middle-end/59150
24408 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24409 free_data_ref on the dr first, and before goto again also set dr
24410 to the next dr. For simd_lane_access, free old datarefs[i] before
24411 overwriting it. For get_vectype_for_scalar_type failure, don't
24412 free_data_ref if simd_lane_access.
24413
24414 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24415
24416 PR target/60062
24417 * tree.h (opts_for_fn): New inline function.
24418 (opt_for_fn): Define.
24419 * config/i386/i386.c (ix86_function_regparm): Use
24420 opt_for_fn (decl, optimize) instead of optimize.
24421
24422 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24423
24424 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24425 for SYMBOL_REF in large memory model.
24426
24427 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24428
24429 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24430 and crypto support.
24431 (cortex-a57): Likewise.
24432 (cortex-a57.cortex-a53): Likewise.
24433
24434 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24435 Kugan Vivekanandarajah <kuganv@linaro.org>
24436
24437 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24438 unaligned_access.
24439 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24440
24441 2014-02-06 Richard Biener <rguenther@suse.de>
24442
24443 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24444 set_loop_copy and initialize_original_copy_tables.
24445
24446 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24447
24448 * config/aarch64/aarch64-simd.md
24449 (aarch64_ashr_simddi): Change QI to SI.
24450
24451 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24452 Jakub Jelinek <jakub@redhat.com>
24453
24454 PR middle-end/60013
24455 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24456 of the dataflow.
24457
24458 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24459
24460 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24461 CODE_FOR_altivec_vpku[hw]um to
24462 CODE_FOR_altivec_vpku[hw]um_direct.
24463 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24464 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24465 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24466 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24467
24468 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24469
24470 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24471 generation for -maltivec=be.
24472 (altivec_vsumsws): Simplify redundant test.
24473
24474 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24475
24476 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24477 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24478 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24479 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24480 gen_altivec_vpkuwum.
24481 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24482 BYTES_BIG_ENDIAN.
24483 (altivec_vpks<VI_char>ss): Likewise.
24484 (altivec_vpks<VI_char>us): Likewise.
24485 (altivec_vpku<VI_char>us): Likewise.
24486 (altivec_vpku<VI_char>um): Likewise.
24487 (altivec_vpku<VI_char>um_direct): New (copy of
24488 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24489 internal use).
24490 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24491 target is little endian and -maltivec=be is not specified.
24492 (*altivec_vupkhs<VU_char>_direct): New (copy of
24493 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24494 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24495 target is little endian and -maltivec=be is not specified.
24496 (*altivec_vupkls<VU_char>_direct): New (copy of
24497 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24498 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24499 little endian and -maltivec=be is not specified.
24500 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24501 little endian and -maltivec=be is not specified.
24502
24503 2014-02-05 Richard Henderson <rth@redhat.com>
24504
24505 PR debug/52727
24506 * combine-stack-adj.c: Revert r206943.
24507 * sched-int.h (struct deps_desc): Add last_args_size.
24508 * sched-deps.c (init_deps): Initialize it.
24509 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24510 contain REG_ARGS_SIZE notes.
24511
24512 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24513
24514 * lto-cgraph.c (asm_nodes_output): Make global.
24515 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24516 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24517 (driver_handle_option): Handle OPT_fwpa.
24518
24519 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24520
24521 PR ipa/59947
24522 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24523 a comment typo and formatting issue. If odr_hash hasn't been
24524 created, return vNULL and set *completep to false.
24525
24526 PR middle-end/57499
24527 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24528 bb with no successors.
24529
24530 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24531
24532 PR target/59718
24533 * doc/invoke.texi (-march): Clarify documentation for ARM.
24534 (-mtune): Likewise.
24535 (-mcpu): Likewise.
24536
24537 2014-02-05 Richard Biener <rguenther@suse.de>
24538
24539 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24540 when not vectorizing because of too many alias checks.
24541 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24542 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24543
24544 2014-02-05 Nick Clifton <nickc@redhat.com>
24545
24546 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24547 accept extended registers in any mode when compiling for the MN10300.
24548
24549 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24550
24551 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24552 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24553 sanitization attributes.
24554 (can_inline_edge_p): Likewise.
24555 (sanitize_attrs_match_for_inline_p): New function.
24556
24557 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24558
24559 * ipa-prop.c (detect_type_change): Shor circuit testing of
24560 type changes on THIS pointer.
24561
24562 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24563
24564 PR target/59777
24565 * config/pa/pa.c (legitimize_tls_address): Return original address
24566 if not passed a SYMBOL_REF rtx.
24567 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24568 addresses.
24569 (pa_emit_move_sequence): Simplify TLS source operands.
24570 (pa_legitimate_constant_p): Reject all TLS constants.
24571 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24572 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24573
24574 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24575
24576 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24577 groups when we know they are controlled by LTO.
24578 * varasm.c (default_binds_local_p_1): If object is in other partition,
24579 it will be resolved locally.
24580
24581 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24582
24583 * config/host-linux.c (linux_gt_pch_use_address): Don't
24584 use SSIZE_MAX because it is not always defined.
24585
24586 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24587
24588 PR bootstrap/59913
24589 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24590 threshold for pseudo splitting.
24591 (update_ebb_live_info): Process call argument hard registers and
24592 hard registers from insn definition too.
24593 (max_small_class_regs_num): New constant.
24594 (inherit_in_ebb): Update live hard regs through EBBs. Update
24595 reloads_num only for small register classes. Don't split for
24596 outputs of jumps.
24597
24598 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24599
24600 PR ipa/60058
24601 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24602 is non-null.
24603
24604 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24605
24606 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24607 visibility is safe.
24608
24609 2014-02-04 Marek Polacek <polacek@redhat.com>
24610
24611 * gdbinit.in (pel): Define.
24612
24613 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24614
24615 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24616 behavior.
24617
24618 2014-02-04 Richard Biener <rguenther@suse.de>
24619
24620 PR lto/59723
24621 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24622 in function context local.
24623 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24624 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24625 similar to LTO_imported_decl_ref.
24626
24627 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24628
24629 PR tree-optimization/60002
24630 * cgraphclones.c (build_function_decl_skip_args): Clear
24631 DECL_LANG_SPECIFIC.
24632
24633 PR tree-optimization/60023
24634 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24635 false to gsi_replace.
24636 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24637 has been in some EH region and vec_stmt could throw, add
24638 vec_stmt into the same EH region.
24639 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24640 has no lhs, ignore it.
24641 * internal-fn.c (expand_MASK_LOAD): Likewise.
24642
24643 PR ipa/60026
24644 * tree-inline.c (copy_forbidden): Fail for
24645 __attribute__((optimize (0))) functions.
24646
24647 PR other/58712
24648 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24649 is set, copy one less argument.
24650 (expand_simd_clones): Don't subtract clone_info->inbranch
24651 from simd_clone_struct_alloc argument.
24652
24653 PR rtl-optimization/57915
24654 * recog.c (simplify_while_replacing): If all unary/binary/relational
24655 operation arguments are constant, attempt to simplify those.
24656
24657 PR middle-end/59261
24658 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24659 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24660
24661 2014-02-04 Richard Biener <rguenther@suse.de>
24662
24663 PR tree-optimization/60012
24664 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24665 TBAA disambiguation to all DDRs.
24666
24667 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24668
24669 PR target/59788
24670 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24671 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24672
24673 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24674
24675 PR ipa/59882
24676 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24677
24678 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24679
24680 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24681 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24682
24683 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24684
24685 PR ipa/59831
24686 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24687 to figure out targets of polymorphic calls with known decl.
24688 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24689 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24690 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24691 (get_polymorphic_call_info): ... here.
24692 (get_polymorphic_call_info_from_invariant): New function.
24693
24694 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24695
24696 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24697 lookup via vtable pointer; check for type consistency
24698 and turn inconsitent facts into UNREACHABLE.
24699 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24700 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24701 type inconsistent querries; return UNREACHABLE instead.
24702
24703 2014-02-03 Richard Henderson <rth@twiddle.net>
24704
24705 PR tree-opt/59924
24706 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24707 already processed this node.
24708 (normalize_one_pred_1): Pass along mark_set.
24709 (normalize_one_pred): Create and destroy a pointer_set_t.
24710 (normalize_one_pred_chain): Likewise.
24711
24712 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24713
24714 PR gcov-profile/58602
24715 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24716
24717 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24718
24719 PR ipa/59831
24720 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24721 -fno-devirtualize; try to devirtualize by the knowledge of
24722 virtual table pointer given by aggregate propagation.
24723 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24724 (ipa_print_node_jump_functions): Dump also offset that
24725 is relevant for polymorphic calls.
24726 (determine_known_aggregate_parts): Add arg_type parameter; use it
24727 instead of determining the type from pointer type.
24728 (ipa_compute_jump_functions_for_edge): Update call of
24729 determine_known_aggregate_parts.
24730 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24731 (gimple_get_virt_method_for_binfo): ... here; simplify using
24732 vtable_pointer_value_to_vtable.
24733 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24734 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24735 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24736 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24737 POINTER_PLUS_EXPR.
24738 (vtable_pointer_value_to_binfo): ... here.
24739 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24740
24741 2014-02-03 Teresa Johnson <tejohnson@google.com>
24742
24743 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24744 redef of outer loop index variable.
24745
24746 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24747
24748 PR c++/53017
24749 PR c++/59211
24750 * doc/extend.texi (Function Attributes): Typo.
24751
24752 2014-02-03 Cong Hou <congh@google.com>
24753
24754 PR tree-optimization/60000
24755 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24756 if the vectorized statement is a store. A store statement can only
24757 appear at the end of pattern statements.
24758
24759 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24760
24761 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24762 (ix86_option_override_internal): Default long double to 64-bit for
24763 32-bit Bionic and to 128-bit for 64-bit Bionic.
24764
24765 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24766 TARGET_LONG_DOUBLE_128 is true.
24767 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24768
24769 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24770 (mlong-double-64): Negate -mlong-double-128.
24771 (mlong-double-128): New option.
24772
24773 * config/i386/i386-c.c (ix86_target_macros): Define
24774 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24775
24776 * doc/invoke.texi: Document -mlong-double-128.
24777
24778 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24779
24780 PR rtl-optimization/60024
24781 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24782
24783 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24784
24785 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24786
24787 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24788
24789 PR rtl-optimization/57662
24790 * sel-sched.c (code_motion_path_driver): Do not mark already not
24791 existing blocks in the visiting bitmap.
24792
24793 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24794
24795 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24796 on the insn being emitted.
24797
24798 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24799 Will Deacon <will.deacon@arm.com>
24800
24801 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24802
24803 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24804
24805 * config/arm/arm-tables.opt: Regenerate.
24806
24807 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24808
24809 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24810 for vector types other than V16QImode.
24811 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24812 define_expand, and call altivec_expand_vec_perm_le when producing
24813 code with little endian element order.
24814 (*altivec_vperm_<mode>_internal): New insn having previous
24815 behavior of altivec_vperm_<mode>.
24816 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24817 altivec_expand_vec_perm_le when producing code with little endian
24818 element order.
24819 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24820 behavior of altivec_vperm_<mode>_uns.
24821
24822 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24823
24824 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24825 (altivec_vsumsws): Add handling for -maltivec=be with a little
24826 endian target.
24827 (altivec_vsumsws_direct): New.
24828 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24829 gen_altivec_vsumsws.
24830
24831 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24832
24833 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24834 vtable_pointer_value_to_binfo): New functions.
24835 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24836 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24837
24838 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24839
24840 * config/nios2/nios2.md (load_got_register): Initialize GOT
24841 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24842 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24843
24844 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24845
24846 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24847 preserverd by passthrough, do not propagate the type.
24848
24849 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24850
24851 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24852 (mips_atomic_assign_expand_fenv): New function.
24853 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24854
24855 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24856
24857 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24858 (__builtin_mips_set_fcsr): Likewise.
24859 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24860 MIPS_USI_FTYPE_VOID.
24861 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24862 (mips16_expand_set_fcsr): Likewise.
24863 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24864 (mips16_set_fcsr_stub): Likewise.
24865 (mips16_get_fcsr_one_only_stub): New class.
24866 (mips16_set_fcsr_one_only_stub): Likewise.
24867 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24868 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24869 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24870 (hard_float): New availability predicate.
24871 (mips_builtins): Add get_fcsr and set_fcsr.
24872 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24873 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24874 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24875 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24876 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24877 patterns.
24878
24879 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24880
24881 * config/mips/mips.c (mips_one_only_stub): New class.
24882 (mips_need_mips16_rdhwr_p): Replace with...
24883 (mips16_rdhwr_stub): ...this new variable.
24884 (mips16_stub_call_address): New function.
24885 (mips16_rdhwr_one_only_stub): New class.
24886 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24887 (mips_output_mips16_rdhwr): Delete.
24888 (mips_finish_stub): New function.
24889 (mips_code_end): Use it to handle rdhwr stubs.
24890
24891 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24892
24893 PR target/60017
24894 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24895 when calculating size of integer atomic types.
24896
24897 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24898
24899 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24900
24901 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24902
24903 PR tree-optimization/60003
24904 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24905 * profile.c (branch_prob): Use gimple_call_builtin_p
24906 to check for BUILT_IN_SETJMP_RECEIVER.
24907 * tree-inline.c (copy_bb): Call notice_special_calls.
24908
24909 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24910
24911 PR bootstrap/59985
24912 * lra-constraints.c (process_alt_operands): Update reload_sum only
24913 on the first pass.
24914
24915 2014-01-31 Richard Henderson <rth@redhat.com>
24916
24917 PR middle-end/60004
24918 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24919 until after else_eh is processed.
24920
24921 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24922
24923 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24924 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24925 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24926 in smmintrin.h, remove them.
24927 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24928 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24929 * config/i386/i386.md (ROUND_SAE): Fix value.
24930 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24931 (const48_operand): New.
24932 * config/i386/subst.md (round), (round_expand): Use
24933 const_4_or_8_to_11_operand.
24934 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24935
24936 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24937
24938 * config/i386/constraints.md (Yk): Swap meaning with k.
24939 * config/i386/i386.md (movhi_internal): Change Yk to k.
24940 (movqi_internal): Ditto.
24941 (*k<logic><mode>): Ditto.
24942 (*andhi_1): Ditto.
24943 (*andqi_1): Ditto.
24944 (kandn<mode>): Ditto.
24945 (*<code>hi_1): Ditto.
24946 (*<code>qi_1): Ditto.
24947 (kxnor<mode>): Ditto.
24948 (kortestzhi): Ditto.
24949 (kortestchi): Ditto.
24950 (kunpckhi): Ditto.
24951 (*one_cmplhi2_1): Ditto.
24952 (*one_cmplqi2_1): Ditto.
24953 * config/i386/sse.md (): Change k to Yk.
24954 (avx512f_load<mode>_mask): Ditto.
24955 (avx512f_blendm<mode>): Ditto.
24956 (avx512f_store<mode>_mask): Ditto.
24957 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24958 (avx512f_storedqu<mode>_mask): Ditto.
24959 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24960 Ditto.
24961 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24962 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24963 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24964 (avx512f_maskcmp<mode>3): Ditto.
24965 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24966 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24967 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24968 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24969 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24970 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24971 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24972 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24973 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24974 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24975 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24976 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24977 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24978 (vec_extract_lo_<mode>_maskm): Ditto.
24979 (vec_extract_hi_<mode>_maskm): Ditto.
24980 (avx512f_vternlog<mode>_mask): Ditto.
24981 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24982 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24983 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24984 (avx512f_<code>v8div16qi2_mask): Ditto.
24985 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24986 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24987 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24988 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24989 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24990 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24991 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24992 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24993 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24994 (avx512cd_maskb_vec_dupv8di): Ditto.
24995 (avx512cd_maskw_vec_dupv16si): Ditto.
24996 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24997 (avx512f_vpermi2var<mode>3_mask): Ditto.
24998 (avx512f_vpermi2var<mode>3_mask): Ditto.
24999 (avx512f_vpermt2var<mode>3_maskz): Ditto.
25000 (*avx512f_gathersi<mode>): Ditto.
25001 (*avx512f_gathersi<mode>_2): Ditto.
25002 (*avx512f_gatherdi<mode>): Ditto.
25003 (*avx512f_gatherdi<mode>_2): Ditto.
25004 (*avx512f_scattersi<mode>): Ditto.
25005 (*avx512f_scatterdi<mode>): Ditto.
25006 (avx512f_compress<mode>_mask): Ditto.
25007 (avx512f_compressstore<mode>_mask): Ditto.
25008 (avx512f_expand<mode>_mask): Ditto.
25009 * config/i386/subst.md (mask): Change k to Yk.
25010 (mask_scalar_merge): Ditto.
25011 (sd): Ditto.
25012
25013 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
25014
25015 * doc/extend.texi (Vector Extensions): Document ?: in C++.
25016
25017 2014-01-31 Richard Biener <rguenther@suse.de>
25018
25019 PR middle-end/59990
25020 * builtins.c (fold_builtin_memory_op): Make sure to not
25021 use a floating-point mode or a boolean or enumeral type for
25022 the copy operation.
25023
25024 2014-01-30 DJ Delorie <dj@redhat.com>
25025
25026 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
25027 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
25028 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
25029 whenever main() has an epilogue.
25030
25031 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25032
25033 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
25034 unused variable "field".
25035 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
25036 (vsx_mergeh_<mode>): Likewise.
25037 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
25038 (altivec_vmrghh): Likewise.
25039 (altivec_vmrghw): Likewise.
25040 (altivec_vmrglb): Likewise.
25041 (altivec_vmrglh): Likewise.
25042 (altivec_vmrglw): Likewise.
25043 (altivec_vspltb): Add missing uses.
25044 (altivec_vsplth): Likewise.
25045 (altivec_vspltw): Likewise.
25046 (altivec_vspltsf): Likewise.
25047
25048 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25049
25050 PR target/59923
25051 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
25052 frame related instructions.
25053
25054 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
25055
25056 PR rtl-optimization/59959
25057 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
25058 any reload of register whose subreg is invalid.
25059
25060 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25061
25062 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
25063 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
25064 Add missing return type - void.
25065
25066 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25067
25068 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
25069 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
25070 remove element index adjustment for endian (now handled in vsx.md
25071 and altivec.md).
25072 (altivec_expand_vec_perm_const): Use
25073 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
25074 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
25075 (vsx_xxspltw_<mode>): Adjust element index for little endian.
25076 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
25077 define_expand and a new define_insn *altivec_vspltb_internal;
25078 adjust for -maltivec=be on a little endian target.
25079 (altivec_vspltb_direct): New.
25080 (altivec_vsplth): Divide into a define_expand and a new
25081 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
25082 little endian target.
25083 (altivec_vsplth_direct): New.
25084 (altivec_vspltw): Divide into a define_expand and a new
25085 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
25086 little endian target.
25087 (altivec_vspltw_direct): New.
25088 (altivec_vspltsf): Divide into a define_expand and a new
25089 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
25090 a little endian target.
25091
25092 2014-01-30 Richard Biener <rguenther@suse.de>
25093
25094 PR tree-optimization/59993
25095 * tree-ssa-forwprop.c (associate_pointerplus): Check we
25096 can propagate form the earlier stmt and avoid the transform
25097 when the intermediate result is needed.
25098
25099 2014-01-30 Alangi Derick <alangiderick@gmail.com>
25100
25101 * README.Portability: Fix typo.
25102
25103 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
25104
25105 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
25106 comparison_operator with ordered_comparison_operator.
25107
25108 2014-01-30 Nick Clifton <nickc@redhat.com>
25109
25110 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
25111 Rename to mn10300_store_multiple_regs.
25112 * config/mn10300/mn10300.c: Likewise.
25113 * config/mn10300/mn10300.md (store_movm): Fix typo: call
25114 store_multiple_regs.
25115 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
25116 Call mn10300_store_multiple_regs.
25117
25118 2014-01-30 Nick Clifton <nickc@redhat.com>
25119 DJ Delorie <dj@redhat.com>
25120
25121 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
25122 %fp 2 to keep registers after it properly word-aligned.
25123 (rl78_alloc_physical_registers_umul): Handle the case where both
25124 input operands are the same.
25125
25126 2014-01-30 Richard Biener <rguenther@suse.de>
25127
25128 PR tree-optimization/59903
25129 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
25130 check properly.
25131
25132 2014-01-30 Jason Merrill <jason@redhat.com>
25133
25134 PR c++/59633
25135 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
25136
25137 PR c++/59645
25138 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
25139
25140 2014-01-30 Richard Biener <rguenther@suse.de>
25141
25142 PR tree-optimization/59951
25143 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
25144
25145 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
25146
25147 PR target/59784
25148 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
25149 SFmode to DFmode case.
25150
25151 2014-01-29 DJ Delorie <dj@redhat.com>
25152
25153 * config/msp430/msp430.opt (-minrt): New.
25154 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
25155 if -minrt given.
25156 (ENDFILE_SPEC): Likewise.
25157
25158 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
25159
25160 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
25161 (estimate_function_body_sizes): Use it.
25162
25163 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
25164
25165 PR c++/58561
25166 * dwarf2out.c (is_cxx_auto): New.
25167 (is_base_type): Use it.
25168 (gen_type_die_with_usage): Likewise.
25169
25170 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25171
25172 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
25173 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
25174 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
25175 -maltivec=be with LE targets.
25176 (vsx_mergeh_<mode>): Likewise.
25177 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
25178 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
25179 (altivec_vmrghb): Replace with define_expand and new
25180 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
25181 (altivec_vmrghb_direct): New define_insn.
25182 (altivec_vmrghh): Replace with define_expand and new
25183 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
25184 (altivec_vmrghh_direct): New define_insn.
25185 (altivec_vmrghw): Replace with define_expand and new
25186 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
25187 (altivec_vmrghw_direct): New define_insn.
25188 (*altivec_vmrghsf): Adjust for endianness.
25189 (altivec_vmrglb): Replace with define_expand and new
25190 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
25191 (altivec_vmrglb_direct): New define_insn.
25192 (altivec_vmrglh): Replace with define_expand and new
25193 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
25194 (altivec_vmrglh_direct): New define_insn.
25195 (altivec_vmrglw): Replace with define_expand and new
25196 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
25197 (altivec_vmrglw_direct): New define_insn.
25198 (*altivec_vmrglsf): Adjust for endianness.
25199 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25200 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25201 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25202 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25203 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25204 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25205 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25206 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25207
25208 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25209
25210 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25211 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25212 whitespace.
25213
25214 2014-01-29 Richard Biener <rguenther@suse.de>
25215
25216 PR tree-optimization/58742
25217 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25218 associate_pointerplus_align.
25219 (associate_pointerplus_diff): New function.
25220 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25221 and associate_pointerplus_diff.
25222
25223 2014-01-29 Richard Biener <rguenther@suse.de>
25224
25225 * lto-streamer.h (LTO_major_version): Bump to 3.
25226 (LTO_minor_version): Reset to 0.
25227
25228 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25229
25230 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25231 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25232 (arm_file_start): Generate correct asm header for armv7ve.
25233 * config/arm/bpabi.h: Add multilib support for armv7ve.
25234 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25235 and cortex-a15 to armv7ve.
25236 * config/arm/t-aprofile: Add multilib support for armv7ve.
25237 * doc/invoke.texi: Document -march=armv7ve.
25238
25239 2014-01-29 Richard Biener <rguenther@suse.de>
25240
25241 PR tree-optimization/58742
25242 * tree-ssa-forwprop.c (associate_plusminus): Return true
25243 if we changed sth, defer EH cleanup to ...
25244 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25245 (simplify_mult): New function.
25246
25247 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25248
25249 PR middle-end/59917
25250 PR tree-optimization/59920
25251 * tree.c (build_common_builtin_nodes): Remove
25252 __builtin_setjmp_dispatcher initialization.
25253 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25254 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25255 instead of gsi_after_labels + manually skipping debug stmts.
25256 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25257 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25258 * tree-inline.c (copy_edges_for_bb): Remove
25259 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25260 argument. Ignore computed_goto_p stmts. Don't call
25261 make_abnormal_goto_edges. If a call might need abnormal edges
25262 for non-local gotos, see if it already has an edge to
25263 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25264 with true argument, don't do anything then, otherwise add
25265 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25266 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25267 caller.
25268 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25269 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25270 (lower_stmt): Don't set data->calls_builtin_setjmp.
25271 (lower_builtin_setjmp): Adjust comment.
25272 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25273 * tree-cfg.c (found_computed_goto): Remove.
25274 (factor_computed_gotos): Remove.
25275 (make_goto_expr_edges): Return bool, true for computed gotos.
25276 Don't call make_abnormal_goto_edges.
25277 (build_gimple_cfg): Don't set found_computed_goto, don't call
25278 factor_computed_gotos.
25279 (computed_goto_p): No longer static.
25280 (make_blocks): Don't set found_computed_goto.
25281 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25282 (make_edges): If make_goto_expr_edges returns true, push bb
25283 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25284 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25285 vector. Record mapping between bbs and OpenMP regions if there
25286 are any, adjust make_gimple_omp_edges caller. Call
25287 handle_abnormal_edges.
25288 (make_abnormal_goto_edges): Remove.
25289 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25290 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25291 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25292 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25293 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25294 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25295 filling *region also set *region_idx to (*region)->entry->index.
25296
25297 PR other/58712
25298 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25299 For REGs set ORIGINAL_REGNO.
25300
25301 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25302
25303 * doc/md.texi: Mention that a target shouldn't implement
25304 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25305 than hi/lo pair.
25306
25307 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25308
25309 PR tree-optimization/59594
25310 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25311 a copy of the datarefs vector rather than the vector itself.
25312
25313 2014-01-28 Jason Merrill <jason@redhat.com>
25314
25315 PR c++/53756
25316 * dwarf2out.c (auto_die): New static.
25317 (gen_type_die_with_usage): Handle C++1y 'auto'.
25318 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25319 on definition.
25320
25321 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25322
25323 PR target/59672
25324 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25325 (SPEC_X32): Likewise.
25326 (SPEC_64): Likewise.
25327 * config/i386/i386.c (ix86_option_override_internal): Turn off
25328 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25329 for TARGET_16BIT.
25330 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25331 * config/i386/i386.h (TARGET_16BIT): New macro.
25332 (TARGET_16BIT_P): Likewise.
25333 * config/i386/i386.opt: Add m16.
25334 * doc/invoke.texi: Document -m16.
25335
25336 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25337
25338 PR preprocessor/59935
25339 * input.c (location_get_source_line): Bail out on when line number
25340 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25341
25342 2014-01-28 Richard Biener <rguenther@suse.de>
25343
25344 PR tree-optimization/58742
25345 * tree-ssa-forwprop.c (associate_plusminus): Handle
25346 pointer subtraction of the form (T)(P + A) - (T)P.
25347
25348 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25349
25350 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25351 at const_int_cost.
25352
25353 2014-01-28 Richard Biener <rguenther@suse.de>
25354
25355 Revert
25356 2014-01-28 Richard Biener <rguenther@suse.de>
25357
25358 PR rtl-optimization/45364
25359 PR rtl-optimization/59890
25360 * var-tracking.c (local_get_addr_clear_given_value): Handle
25361 already cleared slot.
25362 (val_reset): Handle not allocated local_get_addr_cache.
25363 (vt_find_locations): Use post-order on the inverted CFG.
25364
25365 2014-01-28 Richard Biener <rguenther@suse.de>
25366
25367 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25368
25369 2014-01-28 Richard Biener <rguenther@suse.de>
25370
25371 PR rtl-optimization/45364
25372 PR rtl-optimization/59890
25373 * var-tracking.c (local_get_addr_clear_given_value): Handle
25374 already cleared slot.
25375 (val_reset): Handle not allocated local_get_addr_cache.
25376 (vt_find_locations): Use post-order on the inverted CFG.
25377
25378 2014-01-28 Alan Modra <amodra@gmail.com>
25379
25380 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25381 * configure.ac <recursive call for build != host>: Define
25382 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25383 and LD_FOR_BUILD too.
25384 * configure: Regenerate.
25385
25386 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25387
25388 * config/i386/i386.c (get_builtin_code_for_version): Separate
25389 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25390 Broadwell from Haswell.
25391
25392 2014-01-27 Steve Ellcey <sellcey@mips.com>
25393
25394 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25395 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25396 * config/mips/mips.c (mips_option_override): Change setting
25397 of TARGET_DSP.
25398 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25399 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25400 Change from Mask to Var.
25401
25402 2014-01-27 Jeff Law <law@redhat.com>
25403
25404 * ipa-inline.c (inline_small_functions): Fix typo.
25405
25406 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25407
25408 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25409 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25410 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25411 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25412 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25413 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25414 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25415 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25416 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25417 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25418 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25419 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25420 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25421 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25422 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25423 (_mm512_storeu_epi64): Ditto.
25424 (_mm512_cmpge_epi32_mask): Ditto.
25425 (_mm512_cmpge_epu32_mask): Ditto.
25426 (_mm512_cmpge_epi64_mask): Ditto.
25427 (_mm512_cmpge_epu64_mask): Ditto.
25428 (_mm512_cmple_epi32_mask): Ditto.
25429 (_mm512_cmple_epu32_mask): Ditto.
25430 (_mm512_cmple_epi64_mask): Ditto.
25431 (_mm512_cmple_epu64_mask): Ditto.
25432 (_mm512_cmplt_epi32_mask): Ditto.
25433 (_mm512_cmplt_epu32_mask): Ditto.
25434 (_mm512_cmplt_epi64_mask): Ditto.
25435 (_mm512_cmplt_epu64_mask): Ditto.
25436 (_mm512_cmpneq_epi32_mask): Ditto.
25437 (_mm512_cmpneq_epu32_mask): Ditto.
25438 (_mm512_cmpneq_epi64_mask): Ditto.
25439 (_mm512_cmpneq_epu64_mask): Ditto.
25440 (_mm512_expand_pd): Ditto.
25441 (_mm512_expand_ps): Ditto.
25442 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25443 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25444 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25445 * config/i386/i386.c (ix86_builtins): Add
25446 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25447 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25448 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25449 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25450 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25451 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25452 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25453 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25454 IX86_BUILTIN_PMOVUSQW512_MEM.
25455 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25456 __builtin_ia32_pmovsqd512mem_mask,
25457 __builtin_ia32_pmovqd512mem_mask,
25458 __builtin_ia32_pmovusqw512mem_mask,
25459 __builtin_ia32_pmovsqw512mem_mask,
25460 __builtin_ia32_pmovqw512mem_mask,
25461 __builtin_ia32_pmovusdw512mem_mask,
25462 __builtin_ia32_pmovsdw512mem_mask,
25463 __builtin_ia32_pmovdw512mem_mask,
25464 __builtin_ia32_pmovqb512mem_mask,
25465 __builtin_ia32_pmovusqb512mem_mask,
25466 __builtin_ia32_pmovsqb512mem_mask,
25467 __builtin_ia32_pmovusdb512mem_mask,
25468 __builtin_ia32_pmovsdb512mem_mask,
25469 __builtin_ia32_pmovdb512mem_mask.
25470 (bdesc_args): Add __builtin_ia32_expanddf512,
25471 __builtin_ia32_expandsf512.
25472 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25473 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25474 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25475 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25476 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25477 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25478 (avx512f_<code>v8div16qi2_mask_store): This.
25479 (avx512f_expand<mode>): New.
25480
25481 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25482
25483 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25484 New.
25485 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25486 (_mm512_prefetch_i32scatter_pd): Ditto.
25487 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25488 (_mm512_prefetch_i64scatter_pd): Ditto.
25489 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25490 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25491 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25492 (_mm512_prefetch_i32scatter_ps): Ditto.
25493 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25494 (_mm512_prefetch_i64scatter_ps): Ditto.
25495 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25496 * config/i386/i386-builtin-types.def: Define
25497 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25498 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25499 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25500 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25501 IX86_BUILTIN_SCATTERPFQPD.
25502 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25503 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25504 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25505 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25506 __builtin_ia32_scatterpfqps.
25507 (ix86_expand_builtin): Expand new built-ins.
25508 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25509 fix memory access data type.
25510 (*avx512pf_gatherpf<mode>_mask): Ditto.
25511 (*avx512pf_gatherpf<mode>): Ditto.
25512 (avx512pf_scatterpf<mode>): Ditto.
25513 (*avx512pf_scatterpf<mode>_mask): Ditto.
25514 (*avx512pf_scatterpf<mode>): Ditto.
25515 (GATHER_SCATTER_SF_MEM_MODE): New.
25516 (avx512pf_gatherpf<mode>df): Ditto.
25517 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25518 (*avx512pf_scatterpf<mode>df): Ditto.
25519
25520 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25521
25522 PR bootstrap/59934
25523 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25524 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25525 reached.
25526
25527 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25528
25529 * common/config/arm/arm-common.c
25530 (arm_rewrite_mcpu): Handle multiple names.
25531 * config/arm/arm.h
25532 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25533
25534 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25535
25536 * gimple-builder.h (create_gimple_tmp): Delete.
25537
25538 2014-01-27 Christian Bruel <christian.bruel@st.com>
25539
25540 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25541 words comparisons.
25542
25543 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25544
25545 * config/pa/pa.md (call): Generate indirect long calls to non-local
25546 functions when outputing 32-bit code.
25547 (call_value): Likewise except for special call to buggy powf function.
25548
25549 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25550 portable runtime and PIC indirect calls.
25551 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25552 and PIC call sequences. Use ldo instead of blr to set return register
25553 in PIC call sequence.
25554
25555 2014-01-25 Walter Lee <walt@tilera.com>
25556
25557 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25558 avoid clobbering a live register.
25559
25560 2014-01-25 Walter Lee <walt@tilera.com>
25561
25562 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25563 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25564 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25565 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25566
25567 2014-01-25 Walter Lee <walt@tilera.com>
25568
25569 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25570 arguments on even registers.
25571 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25572 STACK_BOUNDARY.
25573 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25574 (BIGGEST_ALIGNMENT): Ditto.
25575 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25576
25577 2014-01-25 Walter Lee <walt@tilera.com>
25578
25579 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25580 insns before bundling.
25581 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25582
25583 2014-01-25 Walter Lee <walt@tilera.com>
25584
25585 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25586 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25587 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25588
25589 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25590
25591 * config/mips/constraints.md (kl): Delete.
25592 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25593 define expands, using...
25594 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25595 instructions for MIPS16.
25596 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25597 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25598
25599 2014-01-25 Walter Lee <walt@tilera.com>
25600
25601 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25602 (clzdi2): Ditto.
25603 (ffsdi2): Ditto.
25604
25605 2014-01-25 Walter Lee <walt@tilera.com>
25606
25607 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25608 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25609
25610 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25611
25612 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25613 Handle XOR.
25614
25615 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25616
25617 * print-rtl.c (in_call_function_usage): New var.
25618 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25619 EXPR_LIST mode as mode and not as reg note name.
25620
25621 PR middle-end/59561
25622 * cfgloopmanip.c (copy_loop_info): If
25623 loop->warned_aggressive_loop_optimizations, make sure
25624 the flag is set in target loop too.
25625
25626 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25627
25628 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25629 flag_cilkplus.
25630 * builtins.def: Likewise.
25631 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25632 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25633 * ira.c (ira_setup_eliminable_regset): Likewise.
25634 * omp-low.c (gate_expand_omp): Likewise.
25635 (execute_lower_omp): Likewise.
25636 (diagnose_sb_0): Likewise.
25637 (gate_diagnose_omp_blocks): Likewise.
25638 (simd_clone_clauses_extract): Likewise.
25639 (gate): Likewise.
25640
25641 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25642
25643 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25644 correction for little endian...
25645 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25646 here.
25647
25648 2014-01-24 Jeff Law <law@redhat.com>
25649
25650 PR tree-optimization/59919
25651 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25652 for non-returning calls.
25653
25654 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25655
25656 * common/config/aarch64/aarch64-common.c
25657 (aarch64_rewrite_mcpu): Handle multiple names.
25658 * config/aarch64/aarch64.h
25659 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25660
25661 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25662
25663 * input.c (add_file_to_cache_tab): Handle the case where fopen
25664 returns NULL.
25665
25666 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25667
25668 PR target/59929
25669 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25670 from push operand if code of push isn't PRE_DEC.
25671
25672 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25673
25674 PR target/59909
25675 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25676 -mquad-memory-atomic. Update -mquad-memory documentation to say
25677 it is only used for non-atomic loads/stores.
25678
25679 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25680 -mquad-memory or -mquad-memory-atomic switches.
25681
25682 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25683 -mquad-memory-atomic to ISA 2.07 support.
25684
25685 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25686 to separate support of normal quad word memory operations (ldq, stq)
25687 from the atomic quad word memory operations.
25688
25689 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25690 support to separate non-atomic quad word operations from atomic
25691 quad word operations. Disable non-atomic quad word operations in
25692 little endian mode so that we don't have to swap words after the
25693 load and before the store.
25694 (quad_load_store_p): Add comment about atomic quad word support.
25695 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25696 options printed with -mdebug=reg.
25697
25698 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25699 -mquad-memory-atomic as the test for whether we have quad word
25700 atomic instructions.
25701 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25702 or -mp8-vector are used, allow byte/half-word atomic operations.
25703
25704 * config/rs6000/sync.md (load_lockedti): Insure that the address
25705 is a proper indexed or indirect address for the lqarx instruction.
25706 On little endian systems, swap the hi/lo registers after the lqarx
25707 instruction.
25708 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25709 insure the address is valid for the lqarx instruction.
25710 (store_conditionalti): Insure that the address is a proper indexed
25711 or indirect address for the stqcrx. instruction. On little endian
25712 systems, swap the hi/lo registers before doing the stqcrx.
25713 instruction.
25714 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25715 insure the address is valid for the stqcrx. instruction.
25716
25717 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25718 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25719 type of quad memory support is available.
25720
25721 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25722
25723 PR regression/59915
25724 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25725 there is a danger of looping.
25726
25727 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25728
25729 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25730 force flag_ira_loop_pressure if set via command line.
25731
25732 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25733
25734 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25735 (ashr_simd): New builtin handling DI mode.
25736 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25737 (aarch64_sshr_simddi): New match pattern.
25738 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25739 (vshrd_n_s64): Likewise.
25740 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25741
25742 2014-01-23 Nick Clifton <nickc@redhat.com>
25743
25744 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25745 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25746 favour of mcu specific scripts.
25747 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25748 430x multilibs.
25749
25750 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25751 Alex Velenko <Alex.Velenko@arm.com>
25752
25753 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25754 (vaddv_s16): Likewise.
25755 (vaddv_s32): Likewise.
25756 (vaddv_u8): Likewise.
25757 (vaddv_u16): Likewise.
25758 (vaddv_u32): Likewise.
25759 (vaddvq_s8): Likewise.
25760 (vaddvq_s16): Likewise.
25761 (vaddvq_s32): Likewise.
25762 (vaddvq_s64): Likewise.
25763 (vaddvq_u8): Likewise.
25764 (vaddvq_u16): Likewise.
25765 (vaddvq_u32): Likewise.
25766 (vaddvq_u64): Likewise.
25767 (vaddv_f32): Likewise.
25768 (vaddvq_f32): Likewise.
25769 (vaddvq_f64): Likewise.
25770 (vmaxv_f32): Likewise.
25771 (vmaxv_s8): Likewise.
25772 (vmaxv_s16): Likewise.
25773 (vmaxv_s32): Likewise.
25774 (vmaxv_u8): Likewise.
25775 (vmaxv_u16): Likewise.
25776 (vmaxv_u32): Likewise.
25777 (vmaxvq_f32): Likewise.
25778 (vmaxvq_f64): Likewise.
25779 (vmaxvq_s8): Likewise.
25780 (vmaxvq_s16): Likewise.
25781 (vmaxvq_s32): Likewise.
25782 (vmaxvq_u8): Likewise.
25783 (vmaxvq_u16): Likewise.
25784 (vmaxvq_u32): Likewise.
25785 (vmaxnmv_f32): Likewise.
25786 (vmaxnmvq_f32): Likewise.
25787 (vmaxnmvq_f64): Likewise.
25788 (vminv_f32): Likewise.
25789 (vminv_s8): Likewise.
25790 (vminv_s16): Likewise.
25791 (vminv_s32): Likewise.
25792 (vminv_u8): Likewise.
25793 (vminv_u16): Likewise.
25794 (vminv_u32): Likewise.
25795 (vminvq_f32): Likewise.
25796 (vminvq_f64): Likewise.
25797 (vminvq_s8): Likewise.
25798 (vminvq_s16): Likewise.
25799 (vminvq_s32): Likewise.
25800 (vminvq_u8): Likewise.
25801 (vminvq_u16): Likewise.
25802 (vminvq_u32): Likewise.
25803 (vminnmv_f32): Likewise.
25804 (vminnmvq_f32): Likewise.
25805 (vminnmvq_f64): Likewise.
25806
25807 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25808
25809 * config/aarch64/aarch64-simd.md
25810 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25811 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25812 (*aarch64_mul3_elt<mode>): Likewise.
25813 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25814 (*aarch64_mul3_elt_to_64v2df): Likewise.
25815 (*aarch64_mla_elt<mode>): Likewise.
25816 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25817 (*aarch64_mls_elt<mode>): Likewise.
25818 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25819 (*aarch64_fma4_elt<mode>): Likewise.
25820 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25821 (*aarch64_fma4_elt_to_64v2df): Likewise.
25822 (*aarch64_fnma4_elt<mode>): Likewise.
25823 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25824 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25825 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25826 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25827 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25828 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25829 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25830 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25831 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25832
25833 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25834
25835 * config/aarch64/aarch64-simd.md
25836 (aarch64_be_checked_get_lane<mode>): New define_expand.
25837 * config/aarch64/aarch64-simd-builtins.def
25838 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25839 New builtin definition.
25840 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25841 Use new safe be builtin.
25842
25843 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25844
25845 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25846 New define_insn.
25847 (aarch64_be_st1<mode>): Likewise.
25848 (aarch_ld1<VALL:mode>): Define_expand modified.
25849 (aarch_st1<VALL:mode>): Likewise.
25850 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25851 (UNSPEC_ST1): Likewise.
25852
25853 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25854
25855 * config/microblaze/microblaze.md: Add trap insn and attribute
25856
25857 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25858
25859 PR preprocessor/58580
25860 * input.h (location_get_source_line): Take an additional line_size
25861 parameter.
25862 (void diagnostics_file_cache_fini): Declare new function.
25863 * input.c (struct fcache): New type.
25864 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25865 New static constants.
25866 (diagnostic_file_cache_init, total_lines_num)
25867 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25868 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25869 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25870 (get_next_line, read_next_line, goto_next_line, read_line_num):
25871 New static function definitions.
25872 (diagnostic_file_cache_fini): New function.
25873 (location_get_source_line): Take an additional output line_len
25874 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25875 read_line_num.
25876 * diagnostic.c (diagnostic_finish): Call
25877 diagnostic_file_cache_fini.
25878 (adjust_line): Take an additional input parameter for the length
25879 of the line, rather than calculating it with strlen.
25880 (diagnostic_show_locus): Adjust the use of
25881 location_get_source_line and adjust_line with respect to their new
25882 signature. While displaying a line now, do not stop at the first
25883 null byte. Rather, display the zero byte as a space and keep
25884 going until we reach the size of the line.
25885 * Makefile.in: Add vec.o to OBJS-libcommon
25886
25887 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25888 Ilya Tocar <ilya.tocar@intel.com>
25889
25890 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25891 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25892 (__builtin_ia32_kmov16): Ditto.
25893 * config/i386/i386.md (UNSPEC_KMOV): New.
25894 (kmovw): Ditto.
25895
25896 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25897
25898 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25899 (_mm512_storeu_si512): Ditto.
25900
25901 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25902
25903 PR target/52125
25904 * rtl.h (get_referenced_operands): Declare.
25905 * recog.c (get_referenced_operands): New function.
25906 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25907 operands have been referenced when recording LO_SUM references.
25908
25909 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25910
25911 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25912
25913 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25914
25915 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25916 Enable for generic and recent AMD targets.
25917
25918 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25919
25920 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25921 ARG_SIZE note when adjustment was eliminated.
25922
25923 2014-01-22 Jeff Law <law@redhat.com>
25924
25925 PR tree-optimization/59597
25926 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25927 in file. Accept new argument REGISTERING and use it to modify
25928 dump output appropriately.
25929 (register_jump_thread): Corresponding changes.
25930 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25931 thread paths involving joiner blocks. Add code to dump cancelled
25932 jump threading paths.
25933
25934 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25935
25936 PR rtl-optimization/59477
25937 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25938 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25939
25940 2014-01-22 Tom Tromey <tromey@redhat.com>
25941
25942 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25943 PARAMS.
25944 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25945
25946 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25947
25948 PR rtl-optimization/59896
25949 * lra-constraints.c (process_alt_operands): Check unused note for
25950 matched operands of insn with no output reloads.
25951
25952 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25953
25954 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25955 (mips_move_from_gpr_cost): Likewise.
25956
25957 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25958
25959 PR rtl-optimization/59858
25960 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25961 ira_class_hard_regs_num.
25962 (process_alt_operands): Increase reject for dying matched operand.
25963
25964 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25965
25966 PR target/59003
25967 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25968 smaller than size, perform several stores or loads and stores
25969 at dst + count - size to store or copy all of size bytes, rather
25970 than just last modesize bytes.
25971
25972 2014-01-20 DJ Delorie <dj@redhat.com>
25973
25974 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25975 that CLOBBERs are REGs before propogating their values.
25976
25977 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25978
25979 PR middle-end/59789
25980 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25981 (cgraph_inline_failed_type): New function.
25982 * cgraph.h (DEFCIFCODE): Add type.
25983 (cgraph_inline_failed_type_t): New enum.
25984 (cgraph_inline_failed_type): New prototype.
25985 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25986 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25987 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25988 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25989 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25990 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25991 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25992 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25993 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25994 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25995 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25996 OPTIMIZATION_MISMATCH.
25997 * tree-inline.c (expand_call_inline): Emit errors during
25998 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25999
26000 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26001
26002 PR target/59685
26003 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
26004 mode attribute in insn output.
26005
26006 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
26007
26008 * output.h (output_constant): Delete.
26009 * varasm.c (output_constant): Make private.
26010
26011 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
26012
26013 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
26014
26015 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26016
26017 PR middle-end/59860
26018 * tree.h (fold_builtin_strcat): New prototype.
26019 * builtins.c (fold_builtin_strcat): No longer static. Add len
26020 argument, if non-NULL, don't call c_strlen. Optimize
26021 directly into __builtin_memcpy instead of __builtin_strcpy.
26022 (fold_builtin_2): Adjust fold_builtin_strcat caller.
26023 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
26024
26025 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26026
26027 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26028 for SImode_address_operand operands, having only a REG argument.
26029
26030 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
26031
26032 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
26033 loader name using mbig-endian.
26034 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
26035
26036 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26037
26038 * doc/invoke.texi (-march): Clarify documentation for AArch64.
26039 (-mtune): Likewise.
26040 (-mcpu): Likewise.
26041
26042 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
26043
26044 * config/aarch64/aarch64-protos.h
26045 (aarch64_cannot_change_mode_class_ptr): Declare.
26046 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
26047 aarch64_cannot_change_mode_class_ptr): New.
26048 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
26049 backend hook aarch64_cannot_change_mode_class.
26050
26051 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26052
26053 * common/config/aarch64/aarch64-common.c
26054 (aarch64_handle_option): Don't handle any option order logic here.
26055 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
26056 selected_cpu, warn on architecture version mismatch.
26057 (aarch64_override_options): Fix parsing order for option strings.
26058
26059 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26060 Iain Sandoe <iain@codesourcery.com>
26061
26062 PR bootstrap/59496
26063 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
26064 warning. Amend comment to reflect current functionality.
26065
26066 2014-01-20 Richard Biener <rguenther@suse.de>
26067
26068 PR middle-end/59860
26069 * builtins.c (fold_builtin_strcat): Remove case better handled
26070 by tree-ssa-strlen.c.
26071
26072 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
26073
26074 * config/aarch64/aarch64.opt
26075 (mcpu, march, mtune): Make case-insensitive.
26076
26077 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26078
26079 PR target/59880
26080 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26081 if operands[1] is a REG or ZERO_EXTEND of a REG.
26082
26083 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
26084
26085 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
26086
26087 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
26088
26089 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
26090 long non-pic millicode calls.
26091
26092 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26093
26094 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
26095
26096 2014-01-19 Kito Cheng <kito@0xlab.org>
26097
26098 * builtins.c (expand_movstr): Check movstr expand done or fail.
26099
26100 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26101 H.J. Lu <hongjiu.lu@intel.com>
26102
26103 PR target/59379
26104 * config/i386/i386.md (*lea<mode>): Zero-extend return register
26105 to DImode for zero-extended addresses.
26106
26107 2014-01-19 Jakub Jelinek <jakub@redhat.com>
26108
26109 PR rtl-optimization/57763
26110 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
26111 on the new indirect jump_insn and increment LABEL_NUSES (label).
26112
26113 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
26114
26115 PR bootstrap/59580
26116 PR bootstrap/59583
26117 * config.gcc (x86_archs): New variable.
26118 (x86_64_archs): Likewise.
26119 (x86_cpus): Likewise.
26120 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
26121 --with-arch/--with-cpu= options.
26122 Support --with-arch=/--with-cpu={nehalem,westmere,
26123 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
26124
26125 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26126
26127 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
26128 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
26129
26130 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26131
26132 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
26133
26134 2014-01-18 Jakub Jelinek <jakub@redhat.com>
26135
26136 PR target/58944
26137 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
26138 clear cpp_get_options (parse_in)->warn_unused_macros for
26139 ix86_target_macros_internal with cpp_define.
26140
26141 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
26142
26143 * jump.c (delete_related_insns): Keep (use (insn))s.
26144 * reorg.c (redundant_insn): Check for barriers too.
26145
26146 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26147
26148 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
26149
26150 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
26151
26152 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
26153 call to $$dyncall when TARGET_LONG_CALLS is true.
26154
26155 2014-01-17 Jeff Law <law@redhat.com>
26156
26157 * ree.c (combine_set_extension): Temporarily disable test for
26158 changing number of hard registers.
26159
26160 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26161
26162 PR middle-end/58125
26163 * ipa-inline-analysis.c (inline_free_summary):
26164 Do not free summary of aliases.
26165
26166 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26167
26168 PR middle-end/59706
26169 * gimplify.c (gimplify_expr): Use create_tmp_var
26170 instead of create_tmp_var_raw. If cond doesn't have
26171 integral type, don't add the IFN_ANNOTATE builtin at all.
26172
26173 2014-01-17 Martin Jambor <mjambor@suse.cz>
26174
26175 PR ipa/59736
26176 * ipa-cp.c (prev_edge_clone): New variable.
26177 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
26178 Also resize prev_edge_clone vector.
26179 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
26180 (ipcp_edge_removal_hook): New function.
26181 (ipcp_driver): Register ipcp_edge_removal_hook.
26182
26183 2014-01-17 Andrew Pinski <apinski@cavium.com>
26184 Steve Ellcey <sellcey@mips.com>
26185
26186 PR target/59462
26187 * config/mips/mips.c (mips_print_operand): Check operand mode instead
26188 of operator mode.
26189
26190 2014-01-17 Jeff Law <law@redhat.com>
26191
26192 PR middle-end/57904
26193 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
26194 so that pass_ccp runs first.
26195
26196 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26197
26198 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26199 (ix86_adjust_cost): Use !TARGET_XXX.
26200 (do_reorder_for_imul): Likewise.
26201 (swap_top_of_ready_list): Likewise.
26202 (ix86_sched_reorder): Likewise.
26203
26204 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26205
26206 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26207 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26208 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26209 (intel_memset): New. Duplicate slm_memset.
26210 (intel_cost): New. Duplicate slm_cost.
26211 (m_INTEL): New macro.
26212 (processor_target_table): Add "intel".
26213 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26214 with PROCESSOR_INTEL for "intel".
26215 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26216 PROCESSOR_SILVERMONT.
26217 (ix86_issue_rate): Likewise.
26218 (ix86_adjust_cost): Likewise.
26219 (ia32_multipass_dfa_lookahead): Likewise.
26220 (swap_top_of_ready_list): Likewise.
26221 (ix86_sched_reorder): Likewise.
26222 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26223 instead of TARGET_OPT_AGU.
26224 * config/i386/i386.h (TARGET_INTEL): New.
26225 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26226 (processor_type): Add PROCESSOR_INTEL.
26227 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26228 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26229
26230 2014-01-17 Marek Polacek <polacek@redhat.com>
26231
26232 PR c/58346
26233 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26234 size is zero.
26235
26236 2014-01-17 Richard Biener <rguenther@suse.de>
26237
26238 PR tree-optimization/46590
26239 * opts.c (default_options_table): Add entries for
26240 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26241 all enabled at -O1 but not for -Og.
26242 * common.opt (fbranch-count-reg): Remove Init(1).
26243 (fmove-loop-invariants): Likewise.
26244 (ftree-pta): Likewise.
26245
26246 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26247
26248 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26249 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26250 decls to at least the GCC 4.8 used alignments.
26251
26252 PR fortran/59440
26253 * tree-nested.c (convert_nonlocal_reference_stmt,
26254 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26255 of GIMPLE_BIND stmts, adjust associated decls.
26256
26257 2014-01-17 Richard Biener <rguenther@suse.de>
26258
26259 PR tree-optimization/46590
26260 * vec.h (vec<>::bseach): New member function implementing
26261 binary search according to C89 bsearch.
26262 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26263 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26264 bitmap pointer again. Make accesses_in_loop a flat array.
26265 (mem_ref_obstack): New global.
26266 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26267 (mark_ref_stored): Likewise.
26268 (ref_indep_loop_p_2): Likewise.
26269 (set_ref_stored_in_loop): New helper function.
26270 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26271 (memref_free): Adjust.
26272 (record_mem_ref_loc): Simplify.
26273 (gather_mem_refs_stmt): Adjust.
26274 (sort_locs_in_loop_postorder_cmp): New function.
26275 (analyze_memory_references): Sort accesses_in_loop after
26276 loop postorder number.
26277 (find_ref_loc_in_loop_cmp): New function.
26278 (for_all_locs_in_loop): Find relevant cluster of locs in
26279 accesses_in_loop and iterate without recursion.
26280 (execute_sm): Avoid uninit warning.
26281 (struct ref_always_accessed): Simplify.
26282 (ref_always_accessed::operator ()): Likewise.
26283 (ref_always_accessed_p): Likewise.
26284 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26285 loop postorder numbers here.
26286 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26287 numbers.
26288
26289 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26290
26291 PR c++/57945
26292 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26293 on decls for which assemble_alias has been called.
26294
26295 2014-01-17 Nick Clifton <nickc@redhat.com>
26296
26297 * config/msp430/msp430.opt: (mcpu): New option.
26298 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26299 (msp430_option_override): Parse target_cpu. If the MCU name
26300 matches a generic string, clear target_mcu.
26301 (msp430_attr): Allow numeric interrupt values up to 63.
26302 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26303 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26304 option.
26305 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26306 Add mcpu matches.
26307 * config/msp430/msp430.md (popm): Use %J rather than %I.
26308 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26309 (addhi_cy_i): Use immediate_operand for operand 2.
26310 * doc/invoke.texi: Document -mcpu option.
26311
26312 2014-01-17 Richard Biener <rguenther@suse.de>
26313
26314 PR rtl-optimization/38518
26315 * df.h (df_analyze_loop): Declare.
26316 * df-core.c: Include cfgloop.h.
26317 (df_analyze_1): Split out main part of df_analyze.
26318 (df_analyze): Adjust.
26319 (loop_inverted_post_order_compute): New function.
26320 (loop_post_order_compute): Likewise.
26321 (df_analyze_loop): New function avoiding whole-function
26322 postorder computes.
26323 * loop-invariant.c (find_defs): Use df_analyze_loop.
26324 (find_invariants): Adjust.
26325 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26326
26327 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26328
26329 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26330 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26331
26332 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26333
26334 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26335 traversal when removing references.
26336
26337 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26338
26339 PR ipa/59775
26340 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26341
26342 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26343
26344 PR middle-end/56791
26345 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26346 pushing a reload for an autoinc when we had previously reloaded an
26347 inner part of the address.
26348
26349 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26350
26351 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26352 field.
26353 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26354 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26355 when not giving up or versioning for alias only because of
26356 loop->safelen.
26357 (vect_analyze_data_ref_dependences): Set to true.
26358 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26359 is a GIMPLE_PHI.
26360 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26361 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26362 to the condition.
26363
26364 PR middle-end/58344
26365 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26366
26367 PR target/59839
26368 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26369 operand 0 predicate for gathers, use a new pseudo as subtarget.
26370
26371 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26372
26373 PR middle-end/59609
26374 * lra-constraints.c (process_alt_operands): Add printing debug info.
26375 Check absence of input/output reloads for matched operands too.
26376
26377 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26378
26379 PR rtl-optimization/59835
26380 * ira.c (ira_init_register_move_cost): Increase cost for
26381 impossible modes.
26382
26383 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26384
26385 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26386
26387 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26388
26389 PR target/59780
26390 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26391 non-register objects. Use gen_(high/low)part more consistently.
26392 Fix assertions.
26393
26394 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26395
26396 PR target/59844
26397 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26398 endian support, remove tests for WORDS_BIG_ENDIAN.
26399 (p8_mfvsrd_3_<mode>): Likewise.
26400 (reload_gpr_from_vsx<mode>): Likewise.
26401 (reload_gpr_from_vsxsf): Likewise.
26402 (p8_mfvsrd_4_disf): Likewise.
26403
26404 2014-01-16 Richard Biener <rguenther@suse.de>
26405
26406 PR rtl-optimization/46590
26407 * lcm.c (compute_antinout_edge): Use postorder iteration.
26408 (compute_laterin): Use inverted postorder iteration.
26409
26410 2014-01-16 Nick Clifton <nickc@redhat.com>
26411
26412 PR middle-end/28865
26413 * varasm.c (output_constant): Return the number of bytes actually
26414 emitted.
26415 (output_constructor_array_range): Update the field size with the
26416 number of bytes emitted by output_constant.
26417 (output_constructor_regular_field): Likewise. Also do not
26418 complain if the total number of bytes emitted is now greater
26419 than the expected fieldpos.
26420 * output.h (output_constant): Update prototype and descriptive comment.
26421
26422 2014-01-16 Marek Polacek <polacek@redhat.com>
26423
26424 PR middle-end/59827
26425 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26426 it is error_mark_node.
26427
26428 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26429
26430 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26431 VALID_AVX256_REG_OR_OI_MODE.
26432
26433 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26434
26435 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26436 current procedure should be profiled.
26437
26438 2014-01-15 Andrew Pinski <apinski@cavium.com>
26439
26440 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26441 of moving from/to the STACK_REG register class.
26442
26443 2014-01-15 Richard Henderson <rth@redhat.com>
26444
26445 PR debug/54694
26446 * reginfo.c (global_regs_decl): Globalize.
26447 * rtl.h (global_regs_decl): Declare.
26448 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26449 reserved via global_regs.
26450
26451 2014-01-15 Teresa Johnson <tejohnson@google.com>
26452
26453 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26454
26455 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26456
26457 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26458 and vmulosh rather than call gen_vec_widen_smult_*.
26459 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26460 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26461 (vec_widen_smult_even_v16qi): Likewise.
26462 (vec_widen_umult_even_v8hi): Likewise.
26463 (vec_widen_smult_even_v8hi): Likewise.
26464 (vec_widen_umult_odd_v16qi): Likewise.
26465 (vec_widen_smult_odd_v16qi): Likewise.
26466 (vec_widen_umult_odd_v8hi): Likewise.
26467 (vec_widen_smult_odd_v8hi): Likewise.
26468 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26469 vmuloub rather than call gen_vec_widen_umult_*.
26470 (vec_widen_umult_lo_v16qi): Likewise.
26471 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26472 vmulosb rather than call gen_vec_widen_smult_*.
26473 (vec_widen_smult_lo_v16qi): Likewise.
26474 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26475 rather than call gen_vec_widen_umult_*.
26476 (vec_widen_umult_lo_v8hi): Likewise.
26477 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26478 rather than call gen_vec_widen_smult_*.
26479 (vec_widen_smult_lo_v8hi): Likewise.
26480
26481 2014-01-15 Jeff Law <law@redhat.com>
26482
26483 PR tree-optimization/59747
26484 * ree.c (find_and_remove_re): Properly handle case where a second
26485 eliminated extension requires widening a copy created for elimination
26486 of a prior extension.
26487 (combine_set_extension): Ensure that the number of hard regs needed
26488 for a destination register does not change when we widen it.
26489
26490 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26491
26492 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26493 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26494 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26495 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26496 (avr-*-rtems*): Likewise.
26497 (bfin*-rtems*): Likewise.
26498 (moxie-*-rtems*): Likewise.
26499 (h8300-*-rtems*): Likewise.
26500 (i[34567]86-*-rtems*): Likewise.
26501 (lm32-*-rtems*): Likewise.
26502 (m32r-*-rtems*): Likewise.
26503 (m68k-*-rtems*): Likewise.
26504 (microblaze*-*-rtems*): Likewise.
26505 (mips*-*-rtems*): Likewise.
26506 (powerpc-*-rtems*): Likewise.
26507 (sh-*-rtems*): Likewise.
26508 (sparc-*-rtems*): Likewise.
26509 (sparc64-*-rtems*): Likewise.
26510 (v850-*-rtems*): Likewise.
26511 (m32c-*-rtems*): Likewise.
26512
26513 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26514
26515 PR rtl-optimization/59511
26516 * ira.c (ira_init_register_move_cost): Use memory costs for some
26517 cases of register move cost calculations.
26518 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26519 instead of BB frequency.
26520 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26521 * lra-assigns.c (find_hard_regno_for): Ditto.
26522
26523 2014-01-15 Richard Biener <rguenther@suse.de>
26524
26525 PR tree-optimization/59822
26526 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26527 (vectorizable_load): Use it to hoist defs of uses of invariant
26528 loads out of the loop.
26529
26530 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26531 Kugan Vivekanandarajah <kuganv@linaro.org>
26532
26533 PR target/59695
26534 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26535 truncation.
26536
26537 2014-01-15 Richard Biener <rguenther@suse.de>
26538
26539 PR rtl-optimization/59802
26540 * lcm.c (compute_available): Use inverted postorder to seed
26541 the initial worklist.
26542
26543 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26544
26545 PR target/59803
26546 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26547 ADDR_REGS for invalid symrefs in non-PIC code.
26548
26549 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26550
26551 PR other/58712
26552 * builtins.c (determine_block_size): Initialize *probable_max_size
26553 even if len_rtx is CONST_INT.
26554
26555 2014-01-14 Andrew Pinski <apinski@cavium.com>
26556
26557 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26558 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26559 (cortexa53_tunings): Likewise.
26560 (aarch64_sched_issue_rate): New function.
26561 (TARGET_SCHED_ISSUE_RATE): Define.
26562
26563 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26564
26565 * ira-costs.c (find_costs_and_classes): Add missed
26566 ira_init_register_move_cost_if_necessary.
26567
26568 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26569
26570 PR target/59787
26571 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26572
26573 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26574
26575 PR target/59794
26576 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26577 to indicate if type is used for function return value. Warn ABI
26578 change if the vector mode isn't available for function return value.
26579 (ix86_function_arg_advance): Pass false to type_natural_mode.
26580 (ix86_function_arg): Likewise.
26581 (ix86_gimplify_va_arg): Likewise.
26582 (function_arg_32): Don't warn ABI change.
26583 (ix86_function_value): Pass true to type_natural_mode.
26584 (ix86_return_in_memory): Likewise.
26585 (ix86_struct_value_rtx): Removed.
26586 (TARGET_STRUCT_VALUE_RTX): Likewise.
26587
26588 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26589
26590 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26591 converting a conditional jump into a conditional return.
26592
26593 2014-01-14 Richard Biener <rguenther@suse.de>
26594
26595 PR tree-optimization/58921
26596 PR tree-optimization/59006
26597 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26598 hoisting invariant stmts.
26599 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26600 invariant loads on the preheader edge if possible.
26601
26602 2014-01-14 Joey Ye <joey.ye@arm.com>
26603
26604 * doc/plugin.texi (Building GCC plugins): Update to C++.
26605
26606 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26607
26608 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26609 (_mm_rcp28_round_ss): Ditto.
26610 (_mm_rsqrt28_round_sd): Ditto.
26611 (_mm_rsqrt28_round_ss): Ditto.
26612 (_mm_rcp28_sd): Ditto.
26613 (_mm_rcp28_ss): Ditto.
26614 (_mm_rsqrt28_sd): Ditto.
26615 (_mm_rsqrt28_ss): Ditto.
26616 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26617 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26618 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26619 (IX86_BUILTIN_RCP28SD): Ditto.
26620 (IX86_BUILTIN_RCP28SS): Ditto.
26621 (IX86_BUILTIN_RSQRT28SD): Ditto.
26622 (IX86_BUILTIN_RSQRT28SS): Ditto.
26623 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26624 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26625 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26626 (ix86_expand_special_args_builtin): Expand new FTYPE.
26627 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26628 (srcp14<mode>): Make insn unary.
26629 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26630 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26631 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26632 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26633 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26634 Fix rounding: make it SAE only.
26635 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26636 Ditto.
26637 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26638 Ditto.
26639 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26640 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26641 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26642 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26643 (round_saeonly_mask_scalar_operand4): Ditto.
26644 (round_saeonly_mask_scalar_op3): Ditto.
26645 (round_saeonly_mask_scalar_op4): Ditto.
26646
26647 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26648
26649 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26650 Implement -maltivec=be for vec_insert and vec_extract.
26651
26652 2014-01-10 DJ Delorie <dj@redhat.com>
26653
26654 * config/msp430/msp430.md (call_internal): Don't allow memory
26655 references with SP as the base register.
26656 (call_value_internal): Likewise.
26657 * config/msp430/constraints.md (Yc): New. For memory references
26658 that don't use SP as a base register.
26659
26660 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26661 "an integer without a # prefix"
26662 * config/msp430/msp430.md (epilogue_helper): Use it.
26663
26664 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26665
26666 PR target/59617
26667 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26668 AVX512F gather builtins.
26669 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26670 on gather decls with INTEGER_TYPE masktype.
26671 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26672 directly into the builtin rather than hoisting it before loop.
26673
26674 PR tree-optimization/59387
26675 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26676 (scev_const_prop): If folded_casts and type has undefined overflow,
26677 use force_gimple_operand instead of force_gimple_operand_gsi and
26678 for each added stmt if it is assign with
26679 arith_code_with_undefined_signed_overflow, call
26680 rewrite_to_defined_overflow.
26681 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26682 gimple-fold.h instead.
26683 (arith_code_with_undefined_signed_overflow,
26684 rewrite_to_defined_overflow): Moved to ...
26685 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26686 rewrite_to_defined_overflow): ... here. No longer static.
26687 Include gimplify-me.h.
26688 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26689 rewrite_to_defined_overflow): New prototypes.
26690
26691 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26692
26693 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26694
26695 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26696
26697 * builtins.c (get_object_alignment_2): Minor tweak.
26698 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26699
26700 2014-01-13 Christian Bruel <christian.bruel@st.com>
26701
26702 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26703 optimized non constant lengths.
26704
26705 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26706
26707 PR libgomp/59194
26708 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26709 load as __atomic_load_N if possible.
26710
26711 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26712
26713 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26714 target parameter.
26715 (rs6000_expand_builtin): Adjust call.
26716
26717 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26718
26719 PR target/58115
26720 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26721 * config/rs6000/rs6000.c: Include target-globals.h.
26722 (rs6000_set_current_function): Instead of doing target_reinit
26723 unconditionally, use save_target_globals_default_opts and
26724 restore_target_globals.
26725
26726 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26727 FPSCR.
26728 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26729 (rs6000_expand_builtin): Handle mffs and mtfsf.
26730 (rs6000_init_builtins): Define mffs and mtfsf.
26731 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26732 (rs6000_mffs): New pattern.
26733 (rs6000_mtfsf): New pattern.
26734
26735 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26736
26737 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26738 Start narrowing with START. Apply candidate-use pair
26739 and check overall cost in narrowing.
26740 (iv_ca_prune): Pass new argument.
26741
26742 2014-01-10 Jeff Law <law@redhat.com>
26743
26744 PR middle-end/59743
26745 * ree.c (combine_reaching_defs): Ensure the defining statement
26746 occurs before the extension when optimizing extensions with
26747 different source and destination hard registers.
26748
26749 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26750
26751 PR ipa/58585
26752 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26753 vtables into the type inheritance graph.
26754
26755 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26756
26757 PR rtl-optimization/59754
26758 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26759 modes in the REGNO != REGNO case.
26760
26761 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26762
26763 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26764
26765 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26766
26767 PR tree-optimization/59745
26768 * tree-predcom.c (tree_predictive_commoning_loop): Call
26769 free_affine_expand_cache if giving up because components is NULL.
26770
26771 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26772 GC in payload of target_globals struct instead of allocating them on
26773 the heap and the larger structs separately using GC.
26774 * target-globals.h (struct target_globals): Make regs, hard_regs,
26775 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26776 of GTY((skip)) and change type to void *.
26777 (reset_target_globals): Cast loads from those fields to corresponding
26778 types.
26779
26780 2014-01-10 Steve Ellcey <sellcey@mips.com>
26781
26782 PR plugins/59335
26783 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26784 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26785 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26786
26787 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26788
26789 PR target/59744
26790 * aarch64-modes.def (CC_Zmode): New flags mode.
26791 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26792 represents an equality.
26793 (aarch64_get_condition_code): Handle CC_Zmode.
26794 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26795
26796 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26797
26798 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26799 extraction in good case.
26800
26801 2014-01-10 Richard Biener <rguenther@suse.de>
26802
26803 PR tree-optimization/59374
26804 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26805 checking after SLP discovery. Mark stmts not participating
26806 in any SLP instance properly.
26807
26808 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26809
26810 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26811 when handling a SET rtx.
26812
26813 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26814
26815 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26816 (cortex-a57): Likewise.
26817 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26818
26819 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26820
26821 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26822 non-iwmmxt builtins.
26823
26824 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26825
26826 PR ipa/58252
26827 PR ipa/59226
26828 * ipa-devirt.c record_target_from_binfo): Take as argument
26829 stack of binfos and lookup matching one for virtual inheritance.
26830 (possible_polymorphic_call_targets_1): Update.
26831
26832 2014-01-10 Huacai Chen <chenhc@lemote.com>
26833
26834 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26835 kernel strings for Loongson-2E/2F/3A.
26836
26837 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26838
26839 PR middle-end/59670
26840 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26841 is_gimple_call before calling gimple_call_internal_p.
26842
26843 2014-01-09 Steve Ellcey <sellcey@mips.com>
26844
26845 * Makefile.in (TREE_FLOW_H): Remove.
26846 (TREE_SSA_H): Add file names from tree-flow.h.
26847 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26848 * tree.h: Remove tree-flow.h reference.
26849 * hash-table.h: Remove tree-flow.h reference.
26850 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26851 reference with tree-ssa-loop.h.
26852
26853 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26854
26855 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26856 default element-order behavior for -maltivec.
26857 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26858 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26859 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26860 when targeting big endian, at least for now.
26861 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26862
26863 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26864
26865 PR middle-end/47735
26866 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26867 var satisfies use_register_for_decl, just take into account type
26868 alignment, rather than decl alignment.
26869
26870 PR tree-optimization/59622
26871 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26872 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26873 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26874 Don't devirtualize for inplace at all. For targets.length () == 1,
26875 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26876
26877 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26878
26879 * config/i386/i386.md (cpu): Remove the unused btver1.
26880
26881 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26882
26883 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26884
26885 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26886
26887 PR target/58115
26888 * tree-core.h (struct target_globals): New forward declaration.
26889 (struct tree_target_option): Add globals field.
26890 * tree.h (TREE_TARGET_GLOBALS): Define.
26891 (prepare_target_option_nodes_for_pch): New prototype.
26892 * target-globals.h (struct target_globals): Define even if
26893 !SWITCHABLE_TARGET.
26894 * tree.c (prepare_target_option_node_for_pch,
26895 prepare_target_option_nodes_for_pch): New functions.
26896 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26897 * config/i386/i386.c: Include target-globals.h.
26898 (ix86_set_current_function): Instead of doing target_reinit
26899 unconditionally, use save_target_globals_default_opts and
26900 restore_target_globals.
26901
26902 2014-01-09 Richard Biener <rguenther@suse.de>
26903
26904 PR tree-optimization/59715
26905 * tree-cfg.h (split_critical_edges): Declare.
26906 * tree-cfg.c (split_critical_edges): Export.
26907 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26908
26909 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26910
26911 * cfgexpand.c (expand_stack_vars): Optionally disable
26912 asan stack protection.
26913 (expand_used_vars): Likewise.
26914 (partition_stack_vars): Likewise.
26915 * asan.c (asan_emit_stack_protection): Optionally disable
26916 after return stack usage.
26917 (instrument_derefs): Optionally disable memory access instrumentation.
26918 (instrument_builtin_call): Likewise.
26919 (instrument_strlen_call): Likewise.
26920 (asan_protect_global): Optionally disable global variables protection.
26921 * doc/invoke.texi: Added doc for new options.
26922 * params.def: Added new options.
26923 * params.h: Likewise.
26924
26925 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26926
26927 PR rtl-optimization/59724
26928 * ifcvt.c (cond_exec_process_if_block): Don't call
26929 flow_find_head_matching_sequence with 0 longest_match.
26930 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26931 non-active insns if !stop_after.
26932 (try_head_merge_bb): Revert 2014-01-07 changes.
26933
26934 2014-01-08 Jeff Law <law@redhat.com>
26935
26936 * ree.c (get_sub_rtx): New function, extracted from...
26937 (merge_def_and_ext): Here.
26938 (combine_reaching_defs): Use get_sub_rtx.
26939
26940 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26941
26942 * cgraph.h (varpool_variable_node): Do not choke on null node.
26943
26944 2014-01-08 Catherine Moore <clm@codesourcery.com>
26945
26946 * config/mips/mips.md (simple_return): Attempt to use JRC
26947 for microMIPS.
26948 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26949
26950 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26951
26952 PR rtl-optimization/59137
26953 * reorg.c (steal_delay_list_from_target): Call update_block for
26954 elided insns.
26955 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26956
26957 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26958
26959 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26960 two duplicate entries.
26961
26962 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26963
26964 Revert:
26965 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26966
26967 * config/mips/mips.c (mips_truncated_op_cost): New function.
26968 (mips_rtx_costs): Adjust test for BADDU.
26969 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26970
26971 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26972
26973 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26974 (*baddu_si): ...this new pattern.
26975
26976 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26977
26978 PR ipa/59722
26979 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26980
26981 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26982
26983 PR middle-end/57748
26984 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26985 inner_reference_p.
26986 (expand_expr, expand_normal): Adjust.
26987 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26988 inner_reference_p. Use inner_reference_p to expand inner references.
26989 (store_expr): Adjust.
26990 * cfgexpand.c (expand_call_stmt): Adjust.
26991
26992 2014-01-08 Rong Xu <xur@google.com>
26993
26994 * gcov-io.c (gcov_var): Move from gcov-io.h.
26995 (gcov_position): Ditto.
26996 (gcov_is_error): Ditto.
26997 (gcov_rewrite): Ditto.
26998 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26999 only part to libgcc/libgcov.h.
27000
27001 2014-01-08 Marek Polacek <polacek@redhat.com>
27002
27003 PR middle-end/59669
27004 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
27005
27006 2014-01-08 Marek Polacek <polacek@redhat.com>
27007
27008 PR sanitizer/59667
27009 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
27010
27011 2014-01-08 Jakub Jelinek <jakub@redhat.com>
27012
27013 PR rtl-optimization/59649
27014 * stor-layout.c (get_mode_bounds): For BImode return
27015 0 and STORE_FLAG_VALUE.
27016
27017 2014-01-08 Richard Biener <rguenther@suse.de>
27018
27019 PR middle-end/59630
27020 * gimple.h (is_gimple_builtin_call): Remove.
27021 (gimple_builtin_call_types_compatible_p): New.
27022 (gimple_call_builtin_p): New overload.
27023 * gimple.c (is_gimple_builtin_call): Remove.
27024 (validate_call): Rename to ...
27025 (gimple_builtin_call_types_compatible_p): ... this and export. Also
27026 check return types.
27027 (validate_type): New static function.
27028 (gimple_call_builtin_p): New overload and adjust.
27029 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
27030 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
27031 (gimple_fold_stmt_to_constant_1): Likewise.
27032 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
27033
27034 2014-01-08 Richard Biener <rguenther@suse.de>
27035
27036 PR middle-end/59471
27037 * gimplify.c (gimplify_expr): Gimplify register-register type
27038 VIEW_CONVERT_EXPRs to separate stmts.
27039
27040 2014-01-07 Jeff Law <law@redhat.com>
27041
27042 PR middle-end/53623
27043 * ree.c (combine_set_extension): Handle case where source
27044 and destination registers in an extension insn are different.
27045 (combine_reaching_defs): Allow source and destination registers
27046 in extension to be different under limited circumstances.
27047 (add_removable_extension): Remove restriction that the
27048 source and destination registers in the extension are the same.
27049 (find_and_remove_re): Emit a copy from the extension's
27050 destination to its source after the defining insn if
27051 the source and destination registers are different.
27052
27053 PR middle-end/59285
27054 * ifcvt.c (merge_if_block): If we are merging a block with more than
27055 one successor with a block with no successors, remove any BARRIER
27056 after the second block.
27057
27058 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
27059
27060 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
27061
27062 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
27063
27064 PR target/59652
27065 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
27066 for 14-bit register offsets when INT14_OK_STRICT is false.
27067
27068 2014-01-07 Roland Stigge <stigge@antcom.de>
27069 Michael Meissner <meissner@linux.vnet.ibm.com>
27070
27071 PR 57386/target
27072 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27073 Only check TFmode for SPE constants. Don't check TImode or TDmode.
27074
27075 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
27076
27077 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
27078 -mcpu.
27079
27080 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
27081
27082 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
27083 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
27084 rtx is const0_rtx or not.
27085
27086 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
27087
27088 PR target/58115
27089 * target-globals.c (save_target_globals): Remove this_fn_optab
27090 handling.
27091 * toplev.c: Include optabs.h.
27092 (target_reinit): Temporarily restore the global options if another
27093 set of options are in force.
27094
27095 2014-01-07 Jakub Jelinek <jakub@redhat.com>
27096
27097 PR rtl-optimization/58668
27098 * cfgcleanup.c (flow_find_cross_jump): Don't count
27099 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
27100 to determine what is counted.
27101 (flow_find_head_matching_sequence): Use active_insn_p to determine
27102 what is counted.
27103 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
27104 counting change.
27105 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
27106 determine what is counted.
27107
27108 PR tree-optimization/59643
27109 * tree-predcom.c (split_data_refs_to_components): If one dr is
27110 read and one write, determine_offset fails and the write isn't
27111 in the bad component, just put the read into the bad component.
27112
27113 2014-01-07 Mike Stump <mikestump@comcast.net>
27114 Jakub Jelinek <jakub@redhat.com>
27115
27116 PR pch/59436
27117 * tree-core.h (struct tree_optimization_option): Change optabs
27118 type from unsigned char * to void *.
27119 * optabs.c (init_tree_optimization_optabs): Adjust
27120 TREE_OPTIMIZATION_OPTABS initialization.
27121
27122 2014-01-06 Jakub Jelinek <jakub@redhat.com>
27123
27124 PR target/59644
27125 * config/i386/i386.h (struct machine_function): Add
27126 no_drap_save_restore field.
27127 * config/i386/i386.c (ix86_save_reg): Use
27128 !cfun->machine->no_drap_save_restore instead of
27129 crtl->stack_realign_needed.
27130 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
27131 this function clears frame_pointer_needed. Set
27132 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
27133 and DRAP reg is needed.
27134
27135 2014-01-06 Marek Polacek <polacek@redhat.com>
27136
27137 PR c/57773
27138 * doc/implement-c.texi: Mention that other integer types are
27139 permitted as bit-field types in strictly conforming mode.
27140
27141 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
27142
27143 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
27144 is newly allocated.
27145
27146 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
27147
27148 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
27149
27150 2014-01-06 Martin Jambor <mjambor@suse.cz>
27151
27152 PR ipa/59008
27153 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
27154 to int.
27155 * ipa-prop.c (ipa_print_node_params): Fix indentation.
27156
27157 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
27158
27159 PR debug/59350
27160 PR debug/59510
27161 * var-tracking.c (add_stores): Preserve the value of the source even if
27162 we don't record the store.
27163
27164 2014-01-06 Terry Guo <terry.guo@arm.com>
27165
27166 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
27167
27168 2014-01-05 Iain Sandoe <iain@codesourcery.com>
27169
27170 PR bootstrap/59541
27171 * config/darwin.c (darwin_function_section): Adjust return values to
27172 correspond to optimisation changes made in r206070.
27173
27174 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
27175
27176 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
27177 from prefetch_block tune setting.
27178 (nocona_cost): Correct size of prefetch block to 64.
27179
27180 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
27181
27182 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
27183 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
27184 used to save the static chain register in the computation of the offset
27185 from which the FP registers need to be restored.
27186
27187 2014-01-04 Jakub Jelinek <jakub@redhat.com>
27188
27189 PR tree-optimization/59519
27190 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
27191 ICE if get_current_def (current_new_name) is already non-NULL, as long
27192 as it is a phi result of some other phi in *new_exit_bb that has
27193 the same argument.
27194
27195 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
27196 or vmovdqu* for misaligned_operand.
27197 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27198 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27199 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27200 aligned_mem for AVX512F masked aligned load and store builtins and for
27201 non-temporal moves.
27202
27203 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27204
27205 PR tree-optimization/59651
27206 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27207 Address range for negative step should be added by TYPE_SIZE_UNIT.
27208
27209 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27210
27211 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27212 overlapping registers also for registers other than the stack pointer.
27213
27214 2014-01-03 Marek Polacek <polacek@redhat.com>
27215
27216 PR other/59661
27217 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27218 __builtin_FILE.
27219
27220 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27221
27222 PR target/59625
27223 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27224 asm goto as jump.
27225
27226 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27227 (push splitter): Use <P:MODE_SIZE> instead of
27228 GET_MODE_SIZE (<P:MODE>mode).
27229 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27230 (mov -1, reg peephole2): Likewise.
27231 * config/i386/sse.md (*mov<mode>_internal,
27232 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27233 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27234 *<code><mode>3, *andnot<mode>3<mask_name>,
27235 <mask_codefor><code><mode>3<mask_name>): Likewise.
27236 * config/i386/subst.md (mask_mode512bit_condition,
27237 sd_mask_mode512bit_condition): Likewise.
27238
27239 2014-01-02 Xinliang David Li <davidxl@google.com>
27240
27241 PR tree-optimization/59303
27242 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27243 (dump_predicates): Better output format.
27244 (pred_equal_p): New function.
27245 (is_neq_relop_p): Ditto.
27246 (is_neq_zero_form_p): Ditto.
27247 (pred_expr_equal_p): Ditto.
27248 (pred_neg_p): Ditto.
27249 (simplify_pred): Ditto.
27250 (simplify_preds_2): Ditto.
27251 (simplify_preds_3): Ditto.
27252 (simplify_preds_4): Ditto.
27253 (simplify_preds): Ditto.
27254 (push_pred): Ditto.
27255 (push_to_worklist): Ditto.
27256 (get_pred_info_from_cmp): Ditto.
27257 (is_degenerated_phi): Ditto.
27258 (normalize_one_pred_1): Ditto.
27259 (normalize_one_pred): Ditto.
27260 (normalize_one_pred_chain): Ditto.
27261 (normalize_preds): Ditto.
27262 (normalize_cond_1): Remove function.
27263 (normalize_cond): Ditto.
27264 (is_gcond_subset_of): Ditto.
27265 (is_subset_of_any): Ditto.
27266 (is_or_set_subset_of): Ditto.
27267 (is_and_set_subset_of): Ditto.
27268 (is_norm_cond_subset_of): Ditto.
27269 (pred_chain_length_cmp): Ditto.
27270 (convert_control_dep_chain_into_preds): Type change.
27271 (find_predicates): Ditto.
27272 (find_def_preds): Ditto.
27273 (destroy_predicates_vecs): Ditto.
27274 (find_matching_predicates_in_rest_chains): Ditto.
27275 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27276 (is_pred_expr_subset): Ditto.
27277 (is_pred_chain_subset_of): Ditto.
27278 (is_included_in): Ditto.
27279 (is_superset_of): Ditto.
27280
27281 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27282
27283 Update copyright years.
27284
27285 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27286
27287 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27288 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27289 config/arc/arc.md, config/arc/arc.opt,
27290 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27291 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27292 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27293 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27294 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27295 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27296 vtable-verify.c, vtable-verify.h: Use the standard form for the
27297 copyright notice.
27298
27299 2014-01-02 Tobias Burnus <burnus@net-b.de>
27300
27301 * gcc.c (process_command): Update copyright notice dates.
27302 * gcov-dump.c: Ditto.
27303 * gcov.c: Ditto.
27304 * doc/cpp.texi: Bump @copying's copyright year.
27305 * doc/cppinternals.texi: Ditto.
27306 * doc/gcc.texi: Ditto.
27307 * doc/gccint.texi: Ditto.
27308 * doc/gcov.texi: Ditto.
27309 * doc/install.texi: Ditto.
27310 * doc/invoke.texi: Ditto.
27311
27312 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27313
27314 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27315
27316 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27317
27318 * config/i386/sse.md (*mov<mode>_internal): Guard
27319 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27320
27321 PR rtl-optimization/59647
27322 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27323 new_rtx into UNSIGNED_FLOAT rtxes.
27324 \f
27325 Copyright (C) 2014 Free Software Foundation, Inc.
27326
27327 Copying and distribution of this file, with or without modification,
27328 are permitted in any medium without royalty provided the copyright
27329 notice and this notice are preserved.