]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
9081532fdf9b8086f3f3b198e45bbaac331230c9
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2
3 * function.h (struct rtl_data): Convert field
4 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
5 rtx_insn_list *.
6 * rtl.h (remove_node_from_insn_list): New prototype.
7
8 * builtins.c (expand_builtin): When prepending to
9 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
10 gen_rtx_EXPR_LIST.
11 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
12 to rtx_insn_list *, and use its "insn" method rather than
13 "element" method.
14 * cfgrtl.c (delete_insn): Use new function
15 remove_node_from_insn_list rather than
16 remove_node_from_expr_list.
17 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
18 to rtx_insn_list *, and use its "insn" method rather than
19 "element" method.
20 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
21 * reload1.c (set_initial_label_offsets): Likewise for local "x".
22 * rtlanal.c (remove_node_from_insn_list): New function, adapted
23 from remove_node_from_expr_list.
24 * stmt.c (expand_label): When prepending to
25 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
26 gen_rtx_EXPR_LIST.
27
28 2014-08-28 David Malcolm <dmalcolm@redhat.com>
29
30 * function.h (struct rtl_data): Strengthen fields "x_return_label"
31 and "x_naked_return_label" from rtx to rtx_code_label *.
32
33 2014-08-28 David Malcolm <dmalcolm@redhat.com>
34
35 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
36 (SET_NEXT_INSN): Likewise.
37 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
38
39 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
40 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
41 to split out the SEQUENCE from local "bundle", strengthening the
42 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
43 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
44 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
45 and the type of the elements of the "slot" array from rtx to
46 rtx_insn *.
47 (reorg_split_calls): Likewise for locals "insn" and "next", and
48 the type of the elements of the "slot" array.
49
50 * config/frv/frv.c (frv_nops): Likewise for the elements of this
51 array.
52 (frv_function_prologue): Likewise for locals "insn", "next",
53 "last_call".
54 (frv_register_nop): Introduce a local "nop_insn" to be the
55 rtx_insn * containing rtx "nop".
56
57 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
58 used as an insn and sometimes as a pattern, so rename it to
59 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
60 using it where dealing with the core insn.
61
62 * config/picochip/picochip.c (reorder_var_tracking_notes):
63 Strengthen locals "insn", "next", "last_insn", "queue",
64 "next_queue", "prev" from rtx to rtx_insn *.
65
66 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
67 the second param is an rtx_insn ** rather than an rtx **.
68 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
69 from rtx to rtx_sequence *, and introduce local named "sequence",
70 using methods of rtx_sequence to clarify the code.
71 (remove_insn): Introduce local rtx_sequence * named "sequence" and
72 use its methods.
73 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
74 Rename param "after" to "uncast_after", reintroducing "after" as a
75 local rtx_insn * with a checked cast.
76 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
77 reintroducing "after" as a local rtx_insn * with a checked cast.
78 Strengthen local "last" from rtx to rtx_insn * and remove the
79 now-redundant checked casts.
80 (copy_delay_slot_insn): Strengthen return type and param from rtx
81 to rtx_insn *.
82
83 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
84 "last" from rtx to rtx_insn *.
85
86 2014-08-28 David Malcolm <dmalcolm@redhat.com>
87
88 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
89 param from rtx to rtx_insn *.
90
91 * emit-rtl.c (copy_delay_slot_insn): Likewise.
92
93 * reorg.c (skip_consecutive_labels): Strengthen return type, param
94 and local "insn" from rtx to rtx_insn *.
95 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
96 (unfilled_slots_next): Likewise.
97 (function_return_label): Strengthen from rtx to rtx_code_label *.
98 (function_simple_return_label): Likewise.
99 (first_active_target_insn): Strengthen return type and param from
100 rtx to rtx_insn *.
101 (find_end_label): Strengthen return type from rtx to
102 rtx_code_label *; strengthen locals as appropriate.
103 (emit_delay_sequence): Strengthen return type, param "insn" and
104 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
105 and local "li" from rtx to rtx_insn_list *, using methods of
106 rtx_insn_list for clarity and typesafety.
107 (add_to_delay_list): Strengthen return type and param "insn" from
108 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
109 rtx_insn_list * and use methods of rtx_insn_list.
110 (delete_from_delay_slot): Strengthen return type, param "insn",
111 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
112 Strengthen local "seq" from rtx to rtx_sequence *, and local
113 "delay_list" from rtx to rtx_insn_list *, using methods of
114 rtx_sequence for clarity and type-safety.
115 (delete_scheduled_jump): Add checked cast when invoking
116 delete_from_delay_slot. Strengthen local "trial" from rtx to
117 rtx_insn *.
118 (optimize_skip): Strengthen return type and local "delay_list"
119 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
120 rtx_insn *.
121 (steal_delay_list_from_target): Strengthen return type, param
122 "delay_list" and local "new_delay_list" from rtx to
123 rtx_insn_list *. Strengthen param "seq" from rtx to
124 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
125 rtx_insn **.
126 Split out local "temp" into multiple more-tightly scoped locals:
127 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
128 of rtx_insn_list and rtx_sequence for clarity and typesafety.
129 Strengthen locals named "trial" from rtx to rtx_insn *.
130 (steal_delay_list_from_fallthrough): Strengthen return type and
131 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
132 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
133 Strengthen local "trial" from rtx to rtx_insn *.
134 (try_merge_delay_insns): Strength local "merged_insns" from rtx
135 to rtx_insn_list * and use its methods. Strengthen local "pat"
136 from rtx to rtx_sequence * and use its methods. Strengthen locals
137 "dtrial" and "new_rtx" from rtx to rtx_insn *.
138 (get_label_before): Strengthen return type and local "label" from
139 rtx to rtx_insn *.
140 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
141 "next_trial", "next", prev". Strengthen local "delay_list" from
142 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
143 rtx_insn **.
144 (follow_jumps): Strengthen return type, param "label" and locals
145 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
146 (fill_slots_from_thread): Strengthen return type, param
147 "delay_list" from rtx to rtx_insn_list *. Strengthen params
148 "insn", "thread", "opposite_thread" and locals "new_thread",
149 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
150 "sequence" from a checked cast to rtx_sequence so that we can call
151 steal_delay_list_from_target and steal_delay_list_from_fallthrough
152 with an rtx_sequence *.
153 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
154 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
155 Strengthen local "delay_list" from rtx to rtx_insn_list *.
156 (relax_delay_slots): Strengthen param "first" and locals "insn",
157 "next", "trial", "delay_insn", "target_label" from rtx to
158 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
159 Introduce a local "trial_seq" for PATTERN (trial) of type
160 rtx_sequence *, in both cases using methods of rtx_sequence.
161 (dbr_schedule): Strengthen param "first" and locals "insn",
162 "next", "epilogue_insn" from rtx to rtx_insn *.
163
164 2014-08-28 Richard Biener <rguenther@suse.de>
165
166 PR tree-optimization/62283
167 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
168 Do not peel loops for alignment where the vector loop likely
169 doesn't run at least VF times.
170
171 2014-08-28 Bin Cheng <bin.cheng@arm.com>
172
173 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
174 important_candidates. Consider all important candidates if
175 IVS doesn't give any result. Remove check on ivs->upto.
176 (try_add_cand_for): Call iv_ca_add_use only once.
177
178 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
179 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
180 Anna Tikhonova <anna.tikhonova@intel.com>
181 Ilya Tocar <ilya.tocar@intel.com>
182 Andrey Turetskiy <andrey.turetskiy@intel.com>
183 Ilya Verbin <ilya.verbin@intel.com>
184 Kirill Yukhin <kirill.yukhin@intel.com>
185 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
186
187 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
188 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
189 masking.
190 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
191 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
192 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
193 (define_insn "*mul<mode>3"): Add EVEX version.
194
195 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
196 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
197 Anna Tikhonova <anna.tikhonova@intel.com>
198 Ilya Tocar <ilya.tocar@intel.com>
199 Andrey Turetskiy <andrey.turetskiy@intel.com>
200 Ilya Verbin <ilya.verbin@intel.com>
201 Kirill Yukhin <kirill.yukhin@intel.com>
202 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
203
204 * config/i386/sse.md
205 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
206 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
207 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
208 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
209 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
210 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
211 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
212 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
213 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
214 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
215 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
216 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
217 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
218 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
219 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
220 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
221
222 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
223 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
224 Anna Tikhonova <anna.tikhonova@intel.com>
225 Ilya Tocar <ilya.tocar@intel.com>
226 Andrey Turetskiy <andrey.turetskiy@intel.com>
227 Ilya Verbin <ilya.verbin@intel.com>
228 Kirill Yukhin <kirill.yukhin@intel.com>
229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
230
231 * config/i386/sse.md
232 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
233 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
234 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
235
236 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
237 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
238 Anna Tikhonova <anna.tikhonova@intel.com>
239 Ilya Tocar <ilya.tocar@intel.com>
240 Andrey Turetskiy <andrey.turetskiy@intel.com>
241 Ilya Verbin <ilya.verbin@intel.com>
242 Kirill Yukhin <kirill.yukhin@intel.com>
243 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
244
245 * config/i386/sse.md
246 (define_mode_iterator VI128_256): New.
247 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
248
249 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
251 Anna Tikhonova <anna.tikhonova@intel.com>
252 Ilya Tocar <ilya.tocar@intel.com>
253 Andrey Turetskiy <andrey.turetskiy@intel.com>
254 Ilya Verbin <ilya.verbin@intel.com>
255 Kirill Yukhin <kirill.yukhin@intel.com>
256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
257
258 * config/i386/sse.md
259 (define_mode_iterator VI8_256_512): New.
260 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
261 Ditto.
262 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
263 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
264 Ditto.
265 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
266
267 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
268
269 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
270 pointer to the cumulative reloc value and return the value for
271 this reloc instead.
272 (compute_reloc_for_rtx): Take a const_rtx. Call
273 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
274 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
275 for_each_rtx for the CONST case.
276
277 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
278
279 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
280 (mark_constants_in_pattern): ...this new function to iterate over
281 all the subrtxes.
282 (mark_constants): Update accordingly.
283
284 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
285
286 * varasm.c: Include rtl-iter.h.
287 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
288 Remove the pointer to the cumulative hashval_t and just return
289 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
290 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
291 Accumulate the hashval_ts here instead of const_rtx_hash_1.
292
293 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
294
295 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
296 Give real type of data parameter. Remove return value.
297 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
298 to iterate over subrtxes.
299
300 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
301
302 * var-tracking.c (use_narrower_mode_test): Turn from being a
303 for_each_rtx callback to being a function that examines each
304 subrtx itself.
305 (adjust_mems): Update accordingly.
306
307 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
308
309 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
310 callback to being a function that examines each subrtx itself.
311 Remove handling of null rtxes.
312 (add_uses): Update accordingly.
313
314 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
315
316 * var-tracking.c: Include rtl-iter.h.
317 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
318 to being a function that examines each subrtx itself.
319 (use_type): Update accordingly.
320
321 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
322
323 * store-motion.c: Include rtl-iter.h.
324 (extract_mentioned_regs_1): Delete.
325 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
326 for_each_rtx to iterate over subrtxes.
327
328 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
329
330 * sel-sched.c: Include rtl-iter.h
331 (count_occurrences_1): Delete.
332 (count_occurrences_equiv): Turn rtxes into const_rtxes.
333 Use FOR_EACH_SUBRTX rather than for_each_rtx.
334
335 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
336
337 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
338 * rtlanal.c (tls_referenced_p_1): Delete.
339 (tls_referenced_p): Take a const_rtx rather than an rtx.
340 Use FOR_EACH_SUBRTX rather than for_each_rtx.
341
342 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
343
344 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
345 (for_each_inc_dec): Take an rtx rather than an rtx *.
346 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
347 (cselib_record_sets): Likewise.
348 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
349 (check_for_inc_dec): Likewise.
350 * rtlanal.c (for_each_inc_dec_ops): Delete.
351 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
352 rather than a pointer to the memory address. Replace
353 for_each_inc_dec_ops argument with separate function and data
354 arguments. Abort on non-autoinc addresses.
355 (for_each_inc_dec_find_mem): Delete.
356 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
357 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
358
359 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
360
361 * rtl.h (find_all_hard_regs): Declare.
362 * rtlanal.c (find_all_hard_regs): New function.
363 (record_hard_reg_uses_1): Delete.
364 (record_hard_reg_uses): Use find_all_hard_regs.
365
366 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
367
368 * rtl.h (replace_label_data): Delete.
369 (replace_label): Take the old label, new label and update-nuses flag
370 as direct arguments. Return void.
371 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
372 * rtlanal.c (replace_label): Update interface as above. Handle
373 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
374 iterator. Use FOR_EACH_SUBRTX_PTR.
375
376 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
377
378 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
379 with const_rtx parameters.
380 * varasm.c (get_pool_constant): Likewise.
381 * rtlanal.c (rtx_referenced_p_1): Delete.
382 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
383 Assert that the rtx we're looking for is nonnull. Allow searches
384 for constant pool SYMBOL_REFs.
385
386 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
387
388 * reload1.c: Include rtl-iter.h.
389 (note_reg_elim_costly): Turn from being a for_each_rtx callback
390 to being a function that examines each subrtx itself.
391 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
392
393 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
394
395 * regcprop.c (cprop_find_used_regs_1): Delete.
396 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
397
398 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
399
400 * regcprop.c: Include rtl-iter.h.
401 (kill_value): Take a const_rtx.
402 (kill_autoinc_value): Turn from being a for_each_rtx callback
403 to being a function that examines each subrtx itself.
404 (copyprop_hardreg_forward_1): Update accordingly.
405
406 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
407
408 * reg-stack.c: Include rtl-iter.h.
409 (subst_stack_regs_in_debug_insn): Delete.
410 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
411 instead of for_each_rtx.
412
413 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
414
415 * lower-subreg.c (find_decomposable_subregs): Turn from being
416 a for_each_rtx callback to being a function that examines each
417 subrtx itself. Remove handling of null rtxes.
418 (decompose_multiword_subregs): Update accordingly.
419
420 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
421
422 * lower-subreg.c (adjust_decomposed_uses): Delete.
423 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
424 Remove handling of null rtxes.
425
426 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
427
428 * lower-subreg.c: Include rtl-iter.h.
429 (resolve_subreg_use): Turn from being a for_each_rtx callback
430 to being a function that examines each subrtx itself. Remove
431 handling of null rtxes.
432 (resolve_reg_notes, resolve_simple_move): Update accordingly.
433 (decompose_multiword_subregs): Likewise.
434
435 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
436
437 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
438 to being a function that examines each subrtx itself.
439 (simplify_using_condition, simplify_using_initial_values): Update
440 accordingly.
441
442 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
443
444 * loop-iv.c: Include rtl-iter.h.
445 (find_single_def_src): New function.
446 (replace_single_def_regs): Turn from being a for_each_rtx callback
447 to being a function that examines each subrtx itself.
448 (replace_in_expr, simplify_using_initial_values): Update accordingly.
449
450 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
451
452 * jump.c (eh_returnjump_p_1): Delete.
453 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
454 Remove handling of null rtxes.
455
456 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
457
458 * jump.c: Include rtl-iter.h.
459 (returnjump_p_1): Delete.
460 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
461 Remove handling of null rtxes.
462
463 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
464
465 * ira.c: Include rtl-iter.h.
466 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
467 to being a function that examines each subrtx itself. Remove
468 handling of null rtxes.
469 (update_equiv_regs): Update call accordingly.
470
471 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
472
473 * fwprop.c: Include rtl-iter.h.
474 (varying_mem_p): Turn from being a for_each_rtx callback to being
475 a function that examines each subrtx itself.
476 (propagate_rtx): Update accordingly.
477
478 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
479
480 * function.c: Include rtl-iter.h
481 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
482 callback to being a function that examines each subrtx itself.
483 Return the changed flag.
484 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
485 (instantiate_virtual_regs): Update calls accordingly.
486
487 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
488
489 * final.c: Include rtl-iter.h.
490 (mark_symbol_ref_as_used): Delete.
491 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
492 for_each_rtx.
493
494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
495
496 * emit-rtl.c: Include rtl-iter.h.
497 (find_auto_inc): Turn from being a for_each_rtx callback to being
498 a function that examines each subrtx itself. Assume the first operand
499 to an RTX_AUTOINC is the automodified register.
500 (try_split): Update call accordingly.
501
502 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
503
504 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
505 Return a bool, inverting the result so that 0/false means "not ok".
506 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
507 subrtxes of a CONST.
508 (mem_loc_descriptor, add_const_value_attribute)
509 (resolve_addr_in_expr): Update calls accordingly.
510
511 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
512
513 * dwarf2out.c: Include rtl-iter.h.
514 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
515 Remove unused data parameter. Return a bool, inverting the result
516 so that 0/false means "not ok".
517 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
518 instead of for_each_rtx.
519
520 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
521
522 * dse.c: Include rtl-iter.h.
523 (check_mem_read_rtx): Change void * parameter to real type.
524 Remove return value.
525 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
526 for_each_rtx. Don't handle null rtxes.
527
528 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
529
530 * df-problems.c: Include rtl-iter.h.
531 (find_memory): Turn from being a for_each_rtx callback to being
532 a function that examines each subrtx itself. Continue to look for
533 volatile references even after a nonvolatile one has been found.
534 (can_move_insns_across): Update calls accordingly.
535
536 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
537
538 * ddg.c (walk_mems_2, walk_mems_1): Delete.
539 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
540 to iterate over subrtxes. Return a bool rather than an int.
541
542 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
543
544 * ddg.c: Include rtl-iter.h.
545 (mark_mem_use_1): Rename to...
546 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
547 instead of for_each_rtx.
548 (mem_read_insn_p): Update accordingly.
549
550 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
551
552 * cse.c (change_cc_mode_args): Delete.
553 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
554 a function that examines each subrtx itself. Take the fields of
555 change_cc_mode_args as argument and return void.
556 (cse_change_cc_mode_insn): Update calls accordingly.
557
558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
559
560 * cse.c (is_dead_reg): Change argument to const_rtx.
561 (dead_debug_insn_data): Delete.
562 (is_dead_debug_insn): Expand commentary. Turn from being a
563 for_each_rtx callback to being a function that examines
564 each subrtx itself. Take the fields of dead_debug_insn_data
565 as argument.
566 (delete_trivially_dead_insns): Update call accordingly.
567
568 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
569
570 * cse.c (check_for_label_ref): Move earlier in file. Turn from
571 being a for_each_rtx callback to being a function that examines
572 each subrtx itself.
573 (cse_extended_basic_block): Update call accordingly.
574
575 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
576
577 * cse.c (check_dependence_data): Delete.
578 (check_dependence): Change from being a for_each_rtx callback to being
579 a function that examines all subrtxes itself. Don't handle null rtxes.
580 (invalidate): Update call accordingly.
581
582 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
583
584 * cse.c: Include rtl-iter.h.
585 (approx_reg_cost_1): Delete.
586 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
587 Don't handle null rtxes.
588
589 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
590
591 * cfgcleanup.c: Include rtl-iter.h.
592 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
593 to being a function that examines each subrtx itself.
594 (thread_jump): Update accordingly.
595
596 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
597
598 * combine-stack-adj.c: Include rtl-iter.h.
599 (record_stack_refs_data): Delete.
600 (record_stack_refs): Turn from being a for_each_rtx callback
601 to being a function that examines each subrtx itself.
602 Take a pointer to the reflist. Invert sense of return value
603 so that true means success and false means failure. Don't
604 handle null rtxes.
605 (combine_stack_adjustments_for_block): Update accordingly.
606
607 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
608
609 * combine.c (record_truncated_value): Turn from being a for_each_rtx
610 callback to a function that takes an rtx and returns a bool
611 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
612 for_each_rtx.
613
614 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
615
616 * combine.c: Include rtl-iter.h.
617 (unmentioned_reg_p_1): Delete.
618 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
619 Don't handle null rtxes.
620
621 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
622
623 * calls.c: Include rtl-iter.h.
624 (internal_arg_pointer_based_exp_1): Delete.
625 (internal_arg_pointer_based_exp): Take a const_rtx.
626 Use FOR_EACH_SUBRTX to iterate over subrtxes.
627
628 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
629
630 * caller-save.c: Include rtl-iter.h.
631 (add_used_regs_1): Delete.
632 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
633 to iterate over subrtxes. Assert that any remaining pseudos
634 have been spilled.
635
636 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
637
638 * bt-load.c: Include rtl-iter.h.
639 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
640 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
641 to iterate over subrtxes.
642 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
643 find_btr_use rather than btr_referenced_p.
644
645 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
646
647 * alias.c: Include rtl-iter.h.
648 (refs_newer_value_cb): Delete.
649 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
650
651 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
652
653 * rtl-iter.h: New file.
654 * rtlanal.c: Include it.
655 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
656 (generic_subrtx_iterator <T>::add_single_to_queue)
657 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
658 (generic_subrtx_iterator <T>::free_array): New functions.
659 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
660 (generic_subrtx_iterator <const_rtx_accessor>)
661 (generic_subrtx_iterator <rtx_var_accessor>
662 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
663 (setup_reg_subrtx_bounds): New function.
664 (init_rtlanal): Call it.
665
666 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
667
668 PR target/62261
669 * config/sh/sh.md (ashlsi3): Handle negative shift count for
670 TARGET_SHMEDIA.
671 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
672
673 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
674
675 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
676
677 2014-08-27 David Malcolm <dmalcolm@redhat.com>
678
679 * rtl.h (JUMP_LABEL_AS_INSN): New.
680
681 2014-08-27 David Malcolm <dmalcolm@redhat.com>
682
683 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
684 rtx_expr_list **.
685 (alloc_EXPR_LIST): Strengthen return type from rtx to
686 rtx_expr_list *.
687 (remove_free_EXPR_LIST_node): Likewise for param.
688 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
689 from rtx to rtx_expr_list *.
690 * sched-int.h (struct deps_desc): Strengthen fields
691 "pending_read_mems" and "pending_write_mems" from rtx to
692 rtx_expr_list *.
693
694 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
695 rtx to rtx_expr_list *.
696 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
697 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
698 rtx_expr_list **.
699 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
700 from rtx to rtx_expr_list *.
701 * loop-iv.c (simplify_using_initial_values): Strengthen local
702 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
703 "pnote_next" from rtx * to rtx_expr_list **.
704 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
705 param "exprp" from rtx * to rtx_expr_list **.
706 (add_insn_mem_dependence): Strengthen local "mem_list" from
707 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
708 to rtx_expr_list *.
709 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
710 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
711 param "old_mems_p" from rtx * to rtx_expr_list **.
712 * var-tracking.c (struct adjust_mem_data): Strengthen field
713 "side_effects" from rtx to rtx_expr_list *.
714 (adjust_insn): Replace NULL_RTX with NULL when assigning to
715 rtx_expr_list *.
716 (prepare_call_arguments): Likewise.
717
718 2014-08-27 David Malcolm <dmalcolm@redhat.com>
719
720 * function.h (struct rtl_data): Strengthen field
721 "x_stack_slot_list" from rtx to rtx_expr_list *.
722
723 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
724 when assigning to stack_slot_list.
725
726 2014-08-27 David Malcolm <dmalcolm@redhat.com>
727
728 * function.h (struct rtl_data): Strengthen field
729 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
730 * rtl.h (remove_node_from_expr_list): Strengthen second param from
731 rtx * to rtx_expr_list **.
732
733 * cfgbuild.c (make_edges): In loop over
734 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
735 rtx_expr_list *, and use methods of the latter class to clarify
736 the code.
737 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
738 rtx_expr_list *, and use methods of the latter class to clarify
739 the code.
740 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
741 * reload1.c (set_initial_label_offsets): Likewise for local "x".
742 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
743 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
744 to rtx_expr_list *. Use methods of the latter class to clarify
745 the code.
746
747 2014-08-27 David Malcolm <dmalcolm@redhat.com>
748
749 * function.h (struct expr_status): Strengthen field
750 "x_forced_labels" from rtx to rtx_expr_list *.
751
752 * cfgbuild.c (make_edges): Split local "x" into two locals,
753 strengthening one from rtx to rtx_expr_list *, and using methods
754 of said class.
755 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
756 loop over forced_labels, introduce strengthen it from rtx to
757 rtx_expr_list *, using methods to clarify the code.
758 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
759 to rtx_expr_list *, using methods of said class to clarify the
760 code.
761 * reload1.c (set_initial_label_offsets): Split local "x" into two
762 per-loop variables, strengthening the first from rtx to
763 rtx_expr_list * and using methods.
764
765 2014-08-27 David Malcolm <dmalcolm@redhat.com>
766
767 * coretypes.h (class rtx_expr_list): Add forward declaration.
768 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
769 * gengenrtl.c (special_rtx): Add EXPR_LIST.
770 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
771 invariant: GET_CODE (X) == EXPR_LIST.
772 (is_a_helper <rtx_expr_list *>::test): New.
773 (rtx_expr_list::next): New.
774 (rtx_expr_list::element): New.
775 (gen_rtx_EXPR_LIST): New.
776
777 2014-08-27 David Malcolm <dmalcolm@redhat.com>
778
779 * varasm.c (mark_constants): Convert a GET_CODE check into a
780 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
781 Use methods of rtx_sequence to clarify the code.
782
783 2014-08-27 David Malcolm <dmalcolm@redhat.com>
784
785 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
786 local "seq" via a checked cast, and use methods of rtx_sequence
787 to simplify the code.
788
789 2014-08-27 David Malcolm <dmalcolm@redhat.com>
790
791 * resource.c (mark_referenced_resources): Strengthen local
792 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
793 using methods of rtx_sequence to clarify the code.
794 (find_dead_or_set_registers): Within the switch statement, convert
795 a GET_CODE check to a dyn_cast, introducing local "seq". Within
796 the JUMP_P handling, introduce another local "seq", adding a
797 checked cast to rtx_sequence *. In both cases, use methods of
798 rtx_sequence to clarify the code.
799 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
800 via a checked cast, and use methods of rtx_sequence to simplify
801 the code.
802
803 2014-08-27 David Malcolm <dmalcolm@redhat.com>
804
805 * reorg.c (redundant_insn): In two places in the function, replace
806 a check of GET_CODE with a dyn_cast, introducing local "seq", and
807 usings methods of rtx_sequence to clarify the code.
808
809 2014-08-27 David Malcolm <dmalcolm@redhat.com>
810
811 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
812 local "seq" with a checked cast, and use methods of rtx_sequence
813 to clarify the code.
814
815 2014-08-27 David Malcolm <dmalcolm@redhat.com>
816
817 * function.c (contains): Introduce local "seq" for PATTERN (insn),
818 with a checked cast, in the region for where we know it's a
819 SEQUENCE. Use methods of rtx_sequence.
820
821 2014-08-27 David Malcolm <dmalcolm@redhat.com>
822
823 * final.c (get_attr_length_1): Replace GET_CODE check with a
824 dyn_cast, introducing local "seq" and the use of methods of
825 rtx_sequence.
826 (shorten_branches): Likewise, introducing local "body_seq".
827 Strengthen local "inner_insn" from rtx to rtx_insn *.
828 (reemit_insn_block_notes): Replace GET_CODE check with a
829 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
830 Use methods of rtx_sequence.
831 (final_scan_insn): Likewise, introducing local "seq" for when
832 "body" is known to be a SEQUENCE, using its methods.
833
834 2014-08-27 David Malcolm <dmalcolm@redhat.com>
835
836 * except.c (can_throw_external): Strengthen local "seq" from rtx
837 to rtx_sequence *. Use methods of rtx_sequence.
838 (insn_nothrow_p): Likewise.
839
840 2014-08-27 David Malcolm <dmalcolm@redhat.com>
841
842 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
843 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
844 Use methods of rtx_sequence.
845 (scan_trace): Likewise for local "pat".
846
847 2014-08-27 David Malcolm <dmalcolm@redhat.com>
848
849 * coretypes.h (class rtx_sequence): Add forward declaration.
850 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
851 invariant: GET_CODE (X) == SEQUENCE.
852 (is_a_helper <rtx_sequence *>::test): New.
853 (is_a_helper <const rtx_sequence *>::test): New.
854 (rtx_sequence::len): New.
855 (rtx_sequence::element): New.
856 (rtx_sequence::insn): New.
857
858 2014-08-27 David Malcolm <dmalcolm@redhat.com>
859
860 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
861 rtx_insn_list **.
862 (alloc_INSN_LIST): Strengthen return type from rtx to
863 rtx_insn_list *.
864 (copy_INSN_LIST): Likewise for return type and param.
865 (concat_INSN_LIST): Likewise for both params and return type.
866 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
867 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
868 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
869 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
870
871 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
872 "implicit_sets", "control_uses", "clobbers" from rtx to
873 rtx_insn_list *.
874 (struct deps_desc): Likewise for fields "pending_read_insns",
875 "pending_write_insns", "pending_jump_insns",
876 "last_pending_memory_flush", "last_function_call",
877 "last_function_call_may_noreturn", "sched_before_next_call",
878 "sched_before_next_jump".
879 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
880 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
881
882 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
883 from rtx to rtx_insn_list *.
884 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
885 rtx_insn_list *.
886
887 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
888 to rtx_insn_list **.
889 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
890 rtx_insn_list *.
891 (queue_insn): Likewise for local "link".
892 (struct haifa_saved_data): Strengthen field "insn_queue" from
893 rtx * to rtx_insn_list **.
894 (save_backtrack_point): Update allocation of save->insn_queue to
895 reflect the strengthening of elements from rtx to rtx_insn_list *.
896 (queue_to_ready): Strengthen local "link" from rtx to
897 rtx_insn_list *; use methods "next" and "insn" when traversing the
898 list.
899 (early_queue_to_ready): Likewise for locals "link", "next_link",
900 "prev_link".
901 (schedule_block): Update allocation of insn_queue to reflect the
902 strengthening of elements from rtx to rtx_insn_list *. Strengthen
903 local "link" from rtx to rtx_insn_list *, and use methods when
904 working it.
905 (add_to_speculative_block): Strengthen locals "twins" and
906 "next_node" from rtx to rtx_insn_list *, and use methods when
907 working with them. Strengthen local "twin" from rtx to
908 rtx_insn *, eliminating a checked cast.
909 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
910 from rtx to rtx_insn_list *, and use methods when working with
911 them.
912
913 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
914 from rtx to rtx_insn_list *, adding a checked cast.
915 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
916 rtx_insn_list **.
917 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
918 "newlink" from rtx to rtx_insn_list *. Strengthen local
919 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
920 from rtx to rtx_insn *.
921 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
922 from rtx to rtx_insn_list *. Use methods of the latter class.
923 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
924 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
925 (remove_free_INSN_LIST_node): Strengthen return type and local
926 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
927 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
928 rtx_insn_list *, using "insn" method.
929
930 * sched-deps.c (add_dependence_list): Strengthen param "list"
931 from rtx to rtx_insn_list *, and use methods when working with it.
932 (add_dependence_list_and_free): Strengthen param "listp" from
933 rtx * to rtx_insn_list **.
934 (remove_from_dependence_list): Strenghten param "listp" from rtx *
935 to rtx_insn_list **, and use methods when working with *listp.
936 (remove_from_both_dependence_lists): Strengthen param "listp" from
937 rtx * to rtx_insn_list **
938 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
939 to rtx_insn_list **. Eliminate local "link", in favor of two new
940 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
941 respectively.
942 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
943 by introducing local "cond_deps".
944 (remove_from_deps): Strengthen param "insn" from rtx to
945 rtx_insn *.
946
947 * sched-rgn.c (concat_insn_mem_list): Strengthen param
948 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
949 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
950 Use methods of rtx_insn_list.
951
952 * store-motion.c (struct st_expr): Strengthen fields
953 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
954 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
955 rtx_insn_list *.
956 (find_moveable_store): Split out "tmp" into multiple more-tightly
957 scoped locals. Use methods of rtx_insn_list *.
958 (compute_store_table): Strengthen local "tmp" from rtx to
959 rtx_insn *. Use methods of rtx_insn_list *.
960
961 2014-08-27 David Malcolm <dmalcolm@redhat.com>
962
963 * coretypes.h (class rtx_insn_list): Add forward declaration.
964 * rtl.h (class rtx_insn_list): New subclass of rtx_def
965 (is_a_helper <rtx_insn_list *>::test): New.
966 (rtx_insn_list::next): New.
967 (rtx_insn_list::insn): New.
968 (gen_rtx_INSN_LIST): Add prototype.
969 * emit-rtl.c (gen_rtx_INSN_LIST): New.
970 * gengenrtl.c (special_rtx): Add INSN_LIST.
971
972 2014-08-27 David Malcolm <dmalcolm@redhat.com>
973
974 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
975 "prev" from rtx to rtx_insn *.
976
977 2014-08-27 David Malcolm <dmalcolm@redhat.com>
978
979 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
980 functions. Require merely an rtx for now, not an rtx_insn *.
981 (BLOCK_FOR_INSN): Likewise.
982 (INSN_LOCATION): Likewise.
983 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
984
985 2014-08-27 David Malcolm <dmalcolm@redhat.com>
986
987 * rtl.h (PATTERN): Convert this macro into a pair of inline
988 functions, for now, requiring const_rtx and rtx.
989
990 2014-08-27 David Malcolm <dmalcolm@redhat.com>
991
992 * target.def (unwind_emit): Strengthen param "insn" from rtx to
993 rtx_insn *.
994 (final_postscan_insn): Likewise.
995 (adjust_cost): Likewise.
996 (adjust_priority): Likewise.
997 (variable_issue): Likewise.
998 (macro_fusion_pair_p): Likewise.
999 (dfa_post_cycle_insn): Likewise.
1000 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
1001 (first_cycle_multipass_issue): Likewise.
1002 (dfa_new_cycle): Likewise.
1003 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
1004 (speculate_insn): Likewise for param "insn".
1005 (gen_spec_check): Likewise for params "insn" and "label".
1006 (get_insn_spec_ds): Likewise for param "insn".
1007 (get_insn_checked_ds): Likewise.
1008 (dispatch_do): Likewise.
1009 (dispatch): Likewise.
1010 (cannot_copy_insn_p): Likewise.
1011 (invalid_within_doloop): Likewise.
1012 (legitimate_combined_insn): Likewise.
1013 (needed): Likewise.
1014 (after): Likewise.
1015
1016 * doc/tm.texi: Automatically updated to reflect changes to
1017 target.def.
1018
1019 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
1020 working with insn.
1021 (schedule_block): Likewise.
1022 (sched_init): Likewise.
1023 (sched_speculate_insn): Strengthen param "insn" from rtx to
1024 rtx_insn *.
1025 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
1026 working with insn.
1027 * hooks.c (hook_bool_rtx_true): Rename to...
1028 hook_bool_rtx_insn_true): ...this, and strengthen first param from
1029 rtx to rtx_insn *.
1030 (hook_constcharptr_const_rtx_null): Rename to...
1031 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1032 first param from const_rtx to const rtx_insn *.
1033 (hook_bool_rtx_int_false): Rename to...
1034 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1035 param from rtx to rtx_insn *.
1036 (hook_void_rtx_int): Rename to...
1037 (hook_void_rtx_insn_int): ...this, and strengthen first param from
1038 rtx to rtx_insn *.
1039
1040 * hooks.h (hook_bool_rtx_true): Rename to...
1041 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
1042 rtx to rtx_insn *.
1043 (hook_bool_rtx_int_false): Rename to...
1044 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
1045 param from rtx to rtx_insn *.
1046 (hook_void_rtx_int): Rename to...
1047 (hook_void_rtx_insn_int): ...this, and strengthen first param from
1048 rtx to rtx_insn *.
1049 (hook_constcharptr_const_rtx_null): Rename to...
1050 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
1051 first param from const_rtx to const rtx_insn *.
1052
1053 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
1054 and local "prev" from rtx to rtx_insn *.
1055
1056 * sched-int.h (sched_speculate_insn): Strengthen first param from
1057 rtx to rtx_insn *.
1058
1059 * sel-sched.c (create_speculation_check): Likewise for local "label".
1060 * targhooks.c (default_invalid_within_doloop): Strengthen param
1061 "insn" from const_rtx to const rtx_insn *.
1062 * targhooks.h (default_invalid_within_doloop): Strengthen param
1063 from const_rtx to const rtx_insn *.
1064
1065 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
1066 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
1067
1068 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
1069 "insn".
1070 (arc_invalid_within_doloop): Likewise, with const.
1071
1072 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
1073 (arm_cannot_copy_insn_p): Likewise for param "insn".
1074 (arm_unwind_emit): Likewise.
1075
1076 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
1077 "dep_insn".
1078
1079 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
1080 (c6x_variable_issue): Likewise. Removed now-redundant checked
1081 cast.
1082 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
1083
1084 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
1085 Likewise for param "insn".
1086 (epiphany_mode_after): Likewise.
1087 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
1088 params "insn", "dep_insn".
1089 (epiphany_mode_needed): Likewise for param "insn".
1090 (epiphany_mode_after): Likewise.
1091
1092 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
1093 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
1094 (ix86_avx_u128_mode_needed): Likewise.
1095 (ix86_i387_mode_needed): Likewise.
1096 (ix86_mode_needed): Likewise.
1097 (ix86_avx_u128_mode_after): Likewise.
1098 (ix86_mode_after): Likewise.
1099 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
1100 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
1101 (ix86_adjust_priority): Likewise for param "insn".
1102 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
1103 (do_dispatch): Likewise.
1104 (has_dispatch): Likewise.
1105 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
1106
1107 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
1108 reflect renaming of default hook implementation from
1109 hook_constcharptr_const_rtx_null to
1110 hook_constcharptr_const_rtx_insn_null.
1111 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
1112 rtx to rtx_insn *.
1113 (ia64_variable_issue): Likewise for param "insn".
1114 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
1115 (ia64_dfa_new_cycle): Likewise.
1116 (ia64_get_insn_spec_ds): Likewise.
1117 (ia64_get_insn_checked_ds): Likewise.
1118 (ia64_speculate_insn): Likewise.
1119 (ia64_gen_spec_check): Likewise for params "insn", "label".
1120 (ia64_asm_unwind_emit): Likewise for param "insn".
1121
1122 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
1123
1124 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
1125 "insn", "def_insn".
1126 (m68k_sched_variable_issue): Likewise for param "insn".
1127
1128 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
1129 "def_insn".
1130
1131 * config/microblaze/microblaze.c (microblaze_adjust_cost):
1132 Likewise for params "insn", "dep".
1133
1134 * config/mips/mips.c (mips_adjust_cost): Likewise.
1135 (mips_variable_issue): Likewise for param "insn".
1136 (mips_final_postscan_insn): Likewise.
1137
1138 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
1139 for params "insn", "dep".
1140
1141 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
1142 "dep_insn".
1143 (pa_adjust_priority): Likewise for param "insn".
1144
1145 * config/picochip/picochip.c (picochip_sched_adjust_cost):
1146 Likewise for params "insn", "dep_insn".
1147
1148 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
1149 param "insn".
1150 (rs6000_variable_issue): Likewise.
1151 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
1152 (rs6000_debug_adjust_cost): Likewise.
1153 (rs6000_adjust_priority): Likewise for param "insn".
1154 (rs6000_use_sched_lookahead_guard): Likewise.
1155 (get_next_active_insn): Likewise for return type and both params.
1156 (redefine_groups): Likewise for params "prev_head_insn", "tail"
1157 and locals "insn", "next_insn".
1158 (pad_groups): Likewise.
1159
1160 * config/s390/s390.c (s390_adjust_priority): Likewise for param
1161 "insn".
1162 (s390_cannot_copy_insn_p): Likewise.
1163 (s390_sched_variable_issue): Likewise for third param, eliminating
1164 checked cast.
1165 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
1166 default hook implementation from hook_constcharptr_const_rtx_null
1167 to hook_constcharptr_const_rtx_insn_null.
1168
1169 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
1170 from rtx to rtx_insn *.
1171 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
1172 (sh_variable_issue): Likewise for param "insn".
1173 (sh_dfa_new_cycle): Likewise.
1174 (sh_mode_needed): Likewise.
1175 (sh_mode_after): Likewise.
1176
1177 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
1178 params "insn", "dep_insn".
1179 (hypersparc_adjust_cost): Likewise.
1180 (sparc_adjust_cost): Likewise.
1181
1182 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
1183 param, eliminated checked cast.
1184 (spu_sched_adjust_cost): Likewise for first and third params.
1185
1186 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
1187 params "insn" and "dep_insn" from rtx to rtx_insn *.
1188
1189 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
1190
1191 2014-08-27 David Malcolm <dmalcolm@redhat.com>
1192
1193 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
1194 (set_is_load_p): ...this, updating to work on a SET pattern rather
1195 than an insn.
1196 (is_store_insn): Rename to...
1197 (set_is_store_p): ...this, updating to work on a SET pattern
1198 rather than an insn.
1199 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
1200 top of function to where it is needed. Rewrite the bogus
1201 condition that checks for "insn" and "dep" being PARALLEL to
1202 instead use single_set, introducing locals "insn_set" and
1203 "dep_set". Given that we only ever returned "cost" for a non-pair
1204 of SETs, bail out early if we don't have a pair of SET.
1205 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
1206 use the new locals "insn_set" and "dep_set", and update calls to
1207 is_load_insn and is_store_insn to be calls to set_is_load_p and
1208 set_is_store_p.
1209
1210 2014-08-27 Guozhi Wei <carrot@google.com>
1211
1212 PR target/62262
1213 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
1214 amount before using it.
1215
1216 2014-08-27 Richard Biener <rguenther@suse.de>
1217
1218 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
1219 get_maxval_strlen inside a more useful API.
1220 (gimple_fold_builtin_with_strlen): Remove and fold into ...
1221 (gimple_fold_builtin): ... caller.
1222 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
1223 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
1224 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
1225 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
1226 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
1227 gimple_fold_builtin_sprintf): Adjust to compute maxval
1228 themselves.
1229
1230 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
1231
1232 PR other/62248
1233 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
1234
1235 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1236 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1237 Anna Tikhonova <anna.tikhonova@intel.com>
1238 Ilya Tocar <ilya.tocar@intel.com>
1239 Andrey Turetskiy <andrey.turetskiy@intel.com>
1240 Ilya Verbin <ilya.verbin@intel.com>
1241 Kirill Yukhin <kirill.yukhin@intel.com>
1242 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1243
1244 * config/i386/sse.md
1245 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
1246 Use `concat_tg_mode' attribute to determine asm register size.
1247
1248 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1249 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1250 Anna Tikhonova <anna.tikhonova@intel.com>
1251 Ilya Tocar <ilya.tocar@intel.com>
1252 Andrey Turetskiy <andrey.turetskiy@intel.com>
1253 Ilya Verbin <ilya.verbin@intel.com>
1254 Kirill Yukhin <kirill.yukhin@intel.com>
1255 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1256
1257 * config/i386/sse.md
1258 (define_mode_iterator VI48_AVX512VL): New.
1259 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
1260 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
1261 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
1262 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1263 with VI1): Change mode iterator.
1264 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1265 with VI_ULOADSTORE_BW_AVX512VL): New.
1266 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1267 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1268 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1269 with VI1): Change mode iterator.
1270 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1271 with VI_ULOADSTORE_BW_AVX512VL): New.
1272 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
1273 with VI_ULOADSTORE_F_AVX512VL): Ditto.
1274 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1275 with VI1): Change mode iterator.
1276 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1277 with VI_ULOADSTORE_BW_AVX512VL): New.
1278 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
1279 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
1280 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
1281 (define_insn "<avx512>_storedqu<mode>_mask" with
1282 VI48_AVX512VL): New.
1283 (define_insn "<avx512>_storedqu<mode>_mask" with
1284 VI12_AVX512VL): Ditto.
1285
1286 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
1287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1288 Anna Tikhonova <anna.tikhonova@intel.com>
1289 Ilya Tocar <ilya.tocar@intel.com>
1290 Andrey Turetskiy <andrey.turetskiy@intel.com>
1291 Ilya Verbin <ilya.verbin@intel.com>
1292 Kirill Yukhin <kirill.yukhin@intel.com>
1293 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1294
1295 * config/i386/sse.md
1296 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
1297 (define_mode_iterator VI48_AVX512BW): New.
1298 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
1299 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1300 with VI48_AVX2_48_AVX512F): New.
1301 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
1302 with VI2_AVX512VL): Ditto.
1303
1304 2014-08-27 Richard Biener <rguenther@suse.de>
1305
1306 PR middle-end/62239
1307 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
1308 (fold_builtin_3): Do not fold strcat_chk here.
1309 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
1310 from builtins.c.
1311 (gimple_fold_builtin): Fold strcat_chk here.
1312
1313 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
1314
1315 * dwarf2out.h (dwarf2out_decl): Remove prototype.
1316 * dwarf2out.c (dwarf2out_decl): Make static.
1317
1318 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
1319
1320 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
1321
1322 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1323
1324 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
1325 from rtx to rtx_insn *.
1326 (cselib_lookup_from_insn): Likewise for final param.
1327 (cselib_subst_to_values_from_insn): Likewise.
1328 (cselib_add_permanent_equiv): Likewise.
1329
1330 * cselib.c (cselib_current_insn): Likewise for this variable.
1331 (cselib_subst_to_values_from_insn): Likewise for param "insn".
1332 (cselib_lookup_from_insn): Likewise.
1333 (cselib_add_permanent_equiv): Likewise for param "insn" and local
1334 "save_cselib_current_insn".
1335 (cselib_process_insn): Replace use of NULL_RTX with NULL.
1336
1337 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
1338 from rtx to rtx_insn *.
1339
1340 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1341
1342 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
1343 rtx_insn *.
1344
1345 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1346
1347 * df.h (df_dump_insn_problem_function): Strengthen first param of
1348 this callback from const_rtx to const rtx_insn *.
1349 (struct df_insn_info): Strengthen field "insn" from rtx to
1350 rtx_insn *.
1351 (DF_REF_INSN): Eliminate this function, reinstating the older
1352 macro definition.
1353 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
1354 (df_reg_defined): Likewise.
1355 (df_find_use): Likewise.
1356 (df_reg_used): Likewise.
1357 (df_dump_insn_top): Strengthen param 1 from const_rtx to
1358 const rtx_insn *.
1359 (df_dump_insn_bottom): Likewise.
1360 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
1361 (df_insn_debug_regno): Likewise.
1362 (debug_df_insn): Likewise.
1363 (df_rd_simulate_one_insn): Likewise for param 2.
1364 (df_word_lr_simulate_defs): Likewise for param 1.
1365 (df_word_lr_simulate_uses): Likewise.
1366 (df_md_simulate_one_insn): Likewise for param 2.
1367 (df_simulate_find_noclobber_defs): Likewise for param 1.
1368 (df_simulate_find_defs): Likewise.
1369 (df_simulate_defs): Likewise.
1370 (df_simulate_uses): Likewise.
1371 (df_simulate_one_insn_backwards): Likewise for param 2.
1372 (df_simulate_one_insn_forwards): Likewise.
1373 (df_uses_create): Likewise for param 2.
1374 (df_insn_create_insn_record): Likewise for param 1.
1375 (df_insn_delete): Likewise.
1376 (df_insn_rescan): Likewise.
1377 (df_insn_rescan_debug_internal): Likewise.
1378 (df_insn_change_bb): Likewise.
1379 (df_notes_rescan): Likewise.
1380 * rtl.h (remove_death): Likewise for param 2.
1381 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
1382 const rtx_insn *.
1383 * sched-int.h (reemit_notes): Strengthen param from rtx to
1384 rtx_insn *.
1385 * valtrack.h (propagate_for_debug): Likewise for param 1.
1386
1387 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
1388 local "tmp_rtx" from const_rtx to const rtx_insn *.
1389 * combine.c (remove_death): Strengthen param "insn" from rtx to
1390 rtx_insn *.
1391 (move_deaths): Likewise for local "where_dead".
1392 * cse.c (delete_trivially_dead_insns): Introduce local
1393 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
1394 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
1395 rtx_insn *.
1396 (df_reg_defined): Likewise.
1397 (df_find_use): Likewise.
1398 (df_reg_used): Likewise.
1399 (df_dump_insn_problem_data): Strengthen param "insn" from
1400 const_rtx to const rtx_insn *.
1401 (df_dump_insn_top): Likewise.
1402 (df_dump_insn_bottom): Likewise.
1403 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
1404 (df_insn_debug_regno): Likewise.
1405 (debug_df_insn): Likewise.
1406 (DF_REF_INSN): Delete.
1407 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
1408 from rtx to rtx_insn *.
1409 (df_chain_insn_top_dump): Strengthen param "insn" from
1410 const_rtx to const rtx_insn *.
1411 (df_chain_insn_bottom_dump): Likewise.
1412 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
1413 rtx_insn *.
1414 (df_word_lr_simulate_uses): Likewise.
1415 (df_print_note): Likewise.
1416 (df_remove_dead_and_unused_notes): Likewise.
1417 (df_set_unused_notes_for_mw): Likewise.
1418 (df_set_dead_notes_for_mw): Likewise.
1419 (df_create_unused_note): Likewise.
1420 (df_simulate_find_defs): Likewise.
1421 (df_simulate_find_uses): Likewise.
1422 (df_simulate_find_noclobber_defs): Likewise.
1423 (df_simulate_defs): Likewise.
1424 (df_simulate_uses): Likewise.
1425 (df_simulate_one_insn_backwards): Likewise.
1426 (df_simulate_one_insn_forwards): Likewise.
1427 (df_md_simulate_one_insn): Likewise.
1428 * df-scan.c (df_uses_create): Likewise.
1429 (df_insn_create_insn_record): Likewise.
1430 (df_insn_delete): Likewise.
1431 (df_insn_rescan): Likewise.
1432 (df_insn_rescan_debug_internal): Likewise.
1433 (df_insn_change_bb): Likewise.
1434 (df_notes_rescan): Likewise.
1435 (df_refs_add_to_chains): Likewise.
1436 (df_insn_refs_verify): Likewise.
1437 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
1438 when invoking df_insn_delete.
1439 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
1440 (set_unique_reg_note): Add checked cast.
1441 * final.c (cleanup_subreg_operands): Likewise.
1442 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
1443 "insn" from rtx to rtx_insn *.
1444 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
1445 "last" from rtx to rtx_insn *.
1446 * ira-emit.c (change_regs_in_insn): New function.
1447 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
1448 Invoke change_regs_in_insn rather than change_regs.
1449 * ira.c (update_equiv_regs): Strengthen locals "insn",
1450 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
1451 for_each_rtx_in_insn rather than for_each_rtx.
1452 * recog.c (confirm_change_group): Add checked casts.
1453 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
1454 Add checked cast.
1455 (peep2_fill_buffer): Add checked cast.
1456 * rtlanal.c (remove_note): Likewise.
1457 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
1458 locals "next" "end" from rtx to rtx_insn *.
1459
1460 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1461
1462 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
1463 to rtx_insn *.
1464 (struct reg_use_data): Likewise for field "insn".
1465 (insn_cost): Likewise for param.
1466 (real_insn_for_shadow): Likewise for return type and param.
1467 (increase_insn_priority): Likewise for param 1.
1468 (debug_dependencies): Likewise for both params.
1469
1470 * haifa-sched.c (insn_delay): Likewise for param "insn".
1471 (real_insn_for_shadow): Likewise for return type and param "insn".
1472 (update_insn_after_change): Likewise for param "insn".
1473 (recompute_todo_spec): Likewise for param "next" and locals "pro",
1474 "other".
1475 (insn_cost): Likewise for param "insn".
1476 (increase_insn_priority): Likewise.
1477 (calculate_reg_deaths): Likewise.
1478 (setup_insn_reg_pressure_info): Likewise.
1479 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
1480 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
1481 (model_recompute): Likewise.
1482 (must_restore_pattern_p): Likewise for param "next".
1483 (model_excess_cost): Likewise for param "insn".
1484 (queue_remove): Likewise.
1485 (adjust_priority): Likewise for param "prev".
1486 (update_register_pressure): Likewise for param "insn".
1487 (setup_insn_max_reg_pressure): Likewise for local "insn".
1488 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
1489 (model_add_to_schedule): Likewise.
1490 (model_reset_queue_indices): Likewise for local "insn".
1491 (unschedule_insns_until): Strengthen local "recompute_vec" from
1492 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
1493 "con" from rtx to rtx_insn *.
1494 (restore_last_backtrack_point): Likewise for both locals "x". Add
1495 checked casts.
1496 (estimate_insn_tick): Likewise for param "insn".
1497 (commit_schedule): Likewise for params "prev_head", "tail" and
1498 local "x".
1499 (verify_shadows): Likewise for locals "i1", "i2".
1500 (dump_insn_stream): Likewise for params "head", "tail" and locals
1501 "next_tail", "insn".
1502 (schedule_block): Likewise for locals "insn", "x". Add a checked
1503 cast.
1504 (fix_inter_tick): Likewise for params "head", "tail".
1505 (create_check_block_twin): Likewise for local "jump".
1506 (haifa_change_pattern): Likewise for param "insn".
1507 (haifa_speculate_insn): Likewise.
1508 (dump_new_block_header): Likewise for params "head", "tail".
1509 (fix_jump_move): Likewise for param "jump".
1510 (move_block_after_check): Likewise.
1511 (sched_init_insn_luid): Likewise for param "insn".
1512 (sched_init_luids): Likewise for local "insn".
1513 (insn_luid): Likewise for param "insn".
1514 (init_h_i_d): Likewise.
1515 (haifa_init_h_i_d): Likewise for local "insn".
1516 (haifa_init_insn): Likewise for param "insn".
1517 * sched-deps.c (add_dependence): Likewise for local "real_pro",
1518 "other".
1519 (create_insn_reg_use): Likewise for param "insn".
1520 (setup_insn_reg_uses): Likewise. Add a checked cast.
1521 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
1522 "tail" from rtx to rtx_insn *.
1523 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
1524 "insn", "next_tail".
1525
1526 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1527
1528 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
1529 from rtx to rtx_insn *.
1530 (model_add_to_schedule): Likewise for locals "start", "end",
1531 "iter".
1532
1533 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1534
1535 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
1536 rtx_insn *.
1537 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
1538 "to" and locals "insn", "next", "copy". Remove now-redundant
1539 checked cast.
1540
1541 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1542
1543 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
1544 rtx_insn * and param 4 from rtx * to rtx_insn **.
1545 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
1546 param 2 from rtx * to rtx_insn **.
1547
1548 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1549 rtx_insn * and final param from rtx * to rtx_insn **.
1550
1551 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1552 from rtx to rtx_insn *.
1553 (try_head_merge_bb): Likewise for both locals named "move_upto".
1554 * df-problems.c (can_move_insns_across): Likewise for params
1555 "from", "to", "across_from", "across_to" and locals "insn",
1556 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1557 rtx_insn **.
1558 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1559 from rtx to rtx_insn *.
1560 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1561 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1562 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1563 rtx_insn *.
1564 (noce_try_abs): Likewise.
1565 (noce_get_condition): Likewise for param "jump". Strengthen param
1566 "earliest" from rtx * to rtx_insn **.
1567 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1568 rtx_insn *.
1569 (find_cond_trap): Likewise.
1570 (dead_or_predicable): Likewise for local "earliest".
1571 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1572 checked cast.
1573 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1574 and local "prev". Strengthen param "earliest" from rtx * to
1575 rtx_insn **.
1576 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1577 Strengthen param "earliest" from rtx * to rtx_insn **.
1578
1579 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1580
1581 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1582 "to" and local "insn" from rtx to rtx_insn *.
1583
1584 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1585
1586 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1587 from rtx to rtx_insn *.
1588 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1589 (code_motion_path_driver): Likewise for local "last_insn".
1590 (simplify_changed_insns): Likewise for local "insn".
1591
1592 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1593
1594 * rtl.h (push_to_sequence): Strengthen param from rtx to
1595 rtx_insn *.
1596 (push_to_sequence2): Likewise for both params.
1597 (delete_insns_since): Likewise for param.
1598 (reorder_insns_nobb): Likewise for all three params.
1599 (set_new_first_and_last_insn): Likewise for both params.
1600
1601 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1602 rtx_insn *. Remove now-redundant cast.
1603 (set_last_insn): Likewise.
1604
1605 * builtins.c (expand_builtin_return): Strengthen local
1606 "call_fusage" from rtx to rtx_insn *.
1607 * cfgrtl.c (create_basic_block_structure): Likewise for local
1608 "after".
1609 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1610 "first", "last" and local "insn".
1611 (delete_insns_since): Likewise for param "from".
1612 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1613 and local "x".
1614 (push_to_sequence): Likewise for param "first" and local "last".
1615 (push_to_sequence2): Likewise for params "first" and "last".
1616 * lra.c (emit_add3_insn): Likewise for local "last".
1617 (lra_emit_add): Likewise.
1618 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1619 "last_insn".
1620 (process_address_1): Likewise for locals "insn", last".
1621 * modulo-sched.c (ps_first_note): Likewise for return type.
1622 * optabs.c (expand_binop_directly): Likewise for param "last".
1623
1624 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1625
1626 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1627 to rtx_insn*.
1628 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1629
1630 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1631
1632 * function.h (struct sequence_stack): Strengthen fields "first"
1633 and "last" from rtx to rtx_insn *.
1634 (struct emit_status): Likewise for fields "x_first_insn" and
1635 "x_last_insn".
1636
1637 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1638 (set_first_insn): Add checked cast.
1639 (get_last_insn): Remove now-redundant checked cast.
1640 (set_last_insn): Add checked cast.
1641
1642 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1643 "saved_first" and "saved_last" from rtx to rtx_insn *.
1644
1645 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1646
1647 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1648 (unlink_insn_chain): Strengthen both params from rtx to
1649 rtx_insn *.
1650
1651 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1652 variable.
1653 (unlink_insn_chain): Likewise for params "first" and "last".
1654 Remove now-redundant checked cast.
1655 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1656 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1657 rtx_insn *.
1658 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1659 params.
1660 (add_insn): Likewise for param "insn" and local "prev".
1661 (add_insn_after_nobb): Likewise for both params and local "next".
1662 (add_insn_before_nobb): Likewise for both params and local "prev".
1663 (add_insn_after): Rename param "after" to "uncast_after",
1664 introducing local "after" with another checked cast.
1665 (add_insn_before): Rename params "insn" and "before", giving them
1666 "uncast_" prefixes, adding the old names back using checked casts.
1667 (emit_note_after): Likewise for param "after".
1668 (emit_note_before): Likewise for param "before".
1669 (emit_label): Add a checked cast.
1670
1671 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1672
1673 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1674 "insn" from rtx to rtx_insn *.
1675
1676 * cselib.c (cselib_record_sets_hook): Likewise.
1677
1678 * var-tracking.c (add_with_sets): Likewise, renaming back from
1679 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1680 to rtx_insn *.
1681
1682 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1683
1684 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1685 and "header_" from rtx to rtx_insn *.
1686 (struct basic_block_d): Likewise for field "head_" within "x"
1687 field of union basic_block_il_dependent.
1688 (BB_HEAD): Drop function...
1689 (SET_BB_HEAD): ...and this function in favor of...
1690 (BB_HEAD): ...reinstate macro.
1691 (BB_END): Drop function...
1692 (SET_BB_END): ...and this function in favor of...
1693 (BB_END): ...reinstate macro.
1694 (BB_HEADER): Drop function...
1695 (SET_BB_HEADER): ...and this function in favor of...
1696 (BB_HEADER): ...reinstate macro.
1697
1698 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1699 (fix_crossing_unconditional_branches): Likewise.
1700 * caller-save.c (save_call_clobbered_regs): Likewise.
1701 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1702 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1703 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1704 (merge_blocks_move_successor_nojumps): Likewise.
1705 (outgoing_edges_match): Update use of for_each_rtx to
1706 for_each_rtx_in_insn.
1707 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1708 (expand_gimple_cond): Likewise.
1709 (expand_gimple_tailcall): Likewise.
1710 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1711 SET_BB_END.
1712 (construct_exit_block): Drop use of SET_BB_END.
1713 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1714 rtx_insn *.
1715 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1716 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1717 SET_BB_HEAD and SET_BB_END.
1718 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1719 SET_BB_END.
1720 (rtl_delete_block): Drop use of SET_BB_HEAD.
1721 (rtl_split_block): Drop use of SET_BB_END.
1722 (emit_nop_for_unique_locus_between): Likewise.
1723 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1724 (block_label): Drop use of SET_BB_HEAD.
1725 (fixup_abnormal_edges): Drop use of SET_BB_END.
1726 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1727 (relink_block_chain): Likewise.
1728 (fixup_reorder_chain): Drop use of SET_BB_END.
1729 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1730 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1731 rtx_insn **. Drop use of SET_BB_HEADER.
1732 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1733 SET_BB_HEAD.
1734 (BB_HEAD): Delete this function.
1735 (SET_BB_HEAD): Likewise.
1736 (BB_END): Likewise.
1737 (SET_BB_END): Likewise.
1738 (BB_HEADER): Likewise.
1739 (SET_BB_HEADER): Likewise.
1740 * emit-rtl.c (add_insn_after): Rename param "insn" to
1741 "uncast_insn", adding a new local "insn" and a checked cast to
1742 rtx_insn *. Drop use of SET_BB_END.
1743 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1744 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1745 (reorder_insns): Drop use of SET_BB_END.
1746 (emit_insn_after_1): Strengthen param "first" and locals "last",
1747 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1748 (emit_pattern_after_noloc): Add checked cast.
1749 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1750 (restore_other_notes): Likewise.
1751 (move_insn): Likewise.
1752 (sched_extend_bb): Likewise.
1753 (fix_jump_move): Likewise.
1754 * ifcvt.c (noce_process_if_block): Likewise.
1755 (dead_or_predicable): Likewise.
1756 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1757 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1758 * sel-sched-ir.c (sel_move_insn): Likewise.
1759 * sel-sched.c (move_nop_to_previous_block): Likewise.
1760
1761 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1762 SET_BB_END.
1763 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1764
1765 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1766
1767 * basic-block.h (create_basic_block_structure): Strengthen params
1768 1 "head" and 2 "end" from rtx to rtx_insn *.
1769 * cfgrtl.c (create_basic_block_structure): Likewise.
1770 (rtl_create_basic_block): Update casts from void * to rtx to
1771 rtx_insn *, so that we can pass them as rtx_insn * to
1772 create_basic_block_structure.
1773 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1774
1775 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1776
1777 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1778 rtx_insn **.
1779 (check_for_inc_dec): Strengthen param "insn" from rtx to
1780 rtx_insn *.
1781
1782 * cselib.h (cselib_process_insn): Likewise.
1783
1784 * cselib.c (cselib_record_sets): Likewise.
1785 (cselib_process_insn): Likewise.
1786
1787 * dse.c (struct insn_info): Likewise for field "insn".
1788 (check_for_inc_dec_1): Likewise for local "insn".
1789 (check_for_inc_dec): Likewise for param "insn".
1790 (scan_insn): Likewise.
1791 (dse_step1): Likewise for local "insn".
1792
1793 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1794 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1795
1796 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1797
1798 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1799 from rtx to rtx_insn *.
1800 (DEP_PRO): Delete this function and...
1801 (SET_DEP_PRO): ...this function in favor of...
1802 (DEP_PRO): ...reinstate this macro.
1803 (DEP_CON): Delete this function and...
1804 (SET_DEP_CON): ...this function in favor of...
1805 (DEP_CON): ...reinstate this old macro.
1806 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1807 (init_dep): Likewise.
1808 (set_priorities): Likewise for both params.
1809 (sd_copy_back_deps): Likewise for params 1 and 2.
1810
1811 * haifa-sched.c (priority): Likewise for param "insn" and local
1812 "next".
1813 (set_priorities): Likewise for params "head" and "tail" and local
1814 "insn".
1815 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1816 local "consumer".
1817 (add_to_speculative_block): Add a checked cast.
1818 (create_check_block_twin): Drop use of SET_DEP_CON.
1819 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1820 rtx to rtx_insn *.
1821
1822 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1823 Drop use of SET_DEP_PRO
1824 (init_dep): Strengthen params "pro" and "con" from rtx to
1825 rtx_insn *.
1826 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1827 use of SET_DEP_CON.
1828 (DEP_PRO): Delete.
1829 (DEP_CON): Delete.
1830 (SET_DEP_PRO): Delete.
1831 (SET_DEP_CON): Delete.
1832
1833 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1834
1835 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1836 from rtx to rtx_insn *.
1837 (VINSN_INSN_RTX): Eliminate rvalue function and...
1838 (SET_VINSN_INSN): ...lvalue function in favor of...
1839 (VINSN_INSN_RTX): reinstate this old macro.
1840
1841 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1842 in favor of VINSN_INSN_RTX.
1843 (VINSN_INSN_RTX): Delete this function.
1844 (SET_VINSN_INSN_RTX): Likewise.
1845
1846 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1847
1848 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1849 (BND_TO): Delete this function and...
1850 (SET_BND_TO): ...this functions in favor of...
1851 (BND_TO): ...reinstating this macro.
1852 (struct _fence): Strengthen field "executing_insns" from
1853 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1854 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1855 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1856 and param "insn" from rtx to insn_t.
1857 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1858 rtx_insn *.
1859
1860 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1861 vec<rtx_insn *> .
1862 (rtx_vec_t): Likewise.
1863 (struct sched_deps_info_def): Strengthen param of "start_insn"
1864 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1865 "note_mem_dep" callback and first param of "note_dep" callback.
1866
1867 * haifa-sched.c (add_to_speculative_block): Strengthen param
1868 "insn" from rtx to rtx_insn *.
1869 (clear_priorities): Likewise.
1870 (calc_priorities): Likewise for local "insn".
1871
1872 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1873 Remove redundant checked cast.
1874 (haifa_note_mem_dep): Likewise for param "pending_insn".
1875 (haifa_note_dep): Likewise for param "elem".
1876 (note_mem_dep): Likewise for param "e".
1877 (sched_analyze_1): Add checked casts.
1878 (sched_analyze_2): Likewise.
1879
1880 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1881 from rtx to rtx_insn *.
1882 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1883 from vec<rtx> * to vec<rtx_insn *> *.
1884
1885 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1886 scaffolding.
1887 (flist_add): Strengthen param "executing_insns" from
1888 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1889 (advance_deps_context): Remove now-redundant checked cast.
1890 (init_fences): Replace uses of NULL_RTX with NULL.
1891 (merge_fences): Strengthen params "last_scheduled_insn" and
1892 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1893 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1894 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1895 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1896 an instruction, rather than doing double-duty as a pattern.
1897 (return_nop_to_pool): Update for change of insn_t.
1898 (deps_init_id): Remove now-redundant checked cast.
1899 (struct sched_scan_info_def): Strengthen param of "init_insn"
1900 callback from rtx to insn_t.
1901 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1902 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1903 NULL.
1904 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1905 "end" from rtx to rtx_insn *.
1906 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1907 (rtx insn_rtx, bool force_unique_p)
1908 (BND_TO): Delete function.
1909 (SET_BND_TO): Delete function.
1910
1911 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1912 rtx to rtx_insn *.
1913 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1914 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1915 rtx to rtx_insn *.
1916 (undo_transformations): Likewise for param "insn".
1917 (update_liveness_on_insn): Likewise.
1918 (compute_live_below_insn): Likewise for param "insn" and local
1919 "succ".
1920 (update_data_sets): Likewise for param "insn".
1921 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1922 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1923 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1924 rtx_insn *.
1925 (move_cond_jump): Likewise for param "insn".
1926 (move_cond_jump): Drop use of SET_BND_TO.
1927 (compute_av_set_on_boundaries): Likewise.
1928 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1929 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1930 from rtx to rtx_insn *.
1931 (maybe_emit_renaming_copy): Likewise for param "insn".
1932 (maybe_emit_speculative_check): Likewise.
1933 (handle_emitting_transformations): Likewise.
1934 (remove_insn_from_stream): Likewise.
1935 (code_motion_process_successors): Strengthen local "succ" from rtx
1936 to insn_t.
1937
1938 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1939
1940 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1941 ilist_t, not _xlist_t;
1942 (ILIST_INSN): Define in terms of new union field "insn".
1943 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1944 _XLIST_NEXT.
1945 (struct _list_node): Add new field "insn" to the union, of type
1946 insn_t.
1947 (ilist_add): Replace macro with an inline function, requiring an
1948 insn_t.
1949 (ilist_remove): Define this macro directly in terms of
1950 _list_remove, rather than indirectly via _xlist_remove.
1951 (ilist_clear): Likewise, in terms of _list_clear rather than
1952 _xlist_clear.
1953 (ilist_is_in_p): Replace macro with an inline function, requiring
1954 an insn_t.
1955 (_list_iter_cond_insn): New function.
1956 (ilist_iter_remove): Define this macro directly in terms of
1957 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1958 (ilist_iterator): Define directly in terms of _list_iterator
1959 rather than indirectly through _xlist_iterator.
1960 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1961 than in terms of _FOR_EACH_X.
1962 (FOR_EACH_INSN_1): Likewise.
1963
1964 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1965
1966 PR target/60606
1967 PR target/61330
1968 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1969 DECL_HARD_REGISTER and return for invalid register specifications.
1970 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1971 DECL_HARD_REGISTER, call expand_one_error_var.
1972 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1973 CC_REGNUM with non-MODE_CC modes.
1974 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1975
1976 2014-08-26 Marek Polacek <polacek@redhat.com>
1977
1978 PR c/61271
1979 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1980
1981 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1982
1983 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1984 qi cost; add di cost.
1985 (cortexa57_addrcost_table): Likewise.
1986
1987 2014-08-26 Marek Polacek <polacek@redhat.com>
1988
1989 PR c/61271
1990 * expr.c (is_aligning_offset): Remove logical not.
1991
1992 2014-08-26 Marek Polacek <polacek@redhat.com>
1993
1994 PR c/61271
1995 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1996 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1997
1998 2014-08-26 Richard Biener <rguenther@suse.de>
1999
2000 PR tree-optimization/62175
2001 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
2002 expand possibly trapping operations.
2003
2004 2014-08-26 David Malcolm <dmalcolm@redhat.com>
2005
2006 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
2007 "insn" from rtx to rtx_insn *.
2008 (permute_load): Likewise for param "insn".
2009 (permute_store): Likewise.
2010 (handle_special_swappables): Likewise for local "insn".
2011 (replace_swap_with_copy): Likewise for locals "insn" and
2012 "new_insn".
2013 (rs6000_analyze_swaps): Likewise for local "insn".
2014
2015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2016
2017 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
2018 to rtx_insn *.
2019
2020 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2021
2022 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
2023 "note_list" from rtx to rtx_insn *.
2024 (BB_NOTE_LIST): Replace this function and...
2025 (SET_BB_NOTE_LIST): ...this function with...
2026 (BB_NOTE_LIST): ...the former macro implementation.
2027
2028 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
2029 local "from_start" from rtx to rtx_insn *. Strengthen param
2030 "to_endp" from rtx * to rtx_insn **.
2031
2032 * haifa-sched.c (concat_note_lists): Likewise.
2033 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
2034 BB_NOTE_LIST.
2035 (sel_restore_notes): Likewise.
2036 (move_bb_info): Likewise.
2037 (BB_NOTE_LIST): Delete this function.
2038 (SET_BB_NOTE_LIST): Delete this function.
2039 * sel-sched.c (create_block_for_bookkeeping): Eliminate
2040 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
2041
2042 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2043
2044 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
2045 from rtx * to rtx_insn **.
2046 (reorder2): Likewise.
2047 (dependencies_evaluation_hook): Strengthen params "head", "tail"
2048 from rtx to rtx_insn *.
2049
2050 * doc/tm.texi: Update mechanically for above change to target.def.
2051
2052 * sched-int.h (note_list): Strengthen this variable from rtx to
2053 rtx_insn *.
2054 (remove_notes): Likewise for both params.
2055 (restore_other_notes): Likewise for return type and first param.
2056 (struct ready_list): Strengthen field "vec" from rtx * to
2057 rtx_insn **.
2058 (struct dep_replacement): Strenghten field "insn" from rtx to
2059 rtx_insn *.
2060 (struct deps_desc): Likewise for fields "last_debug_insn",
2061 "last_args_size".
2062 (struct haifa_sched_info): Likewise for callback field
2063 "can_schedule_ready_p"'s param, for first param of "new_ready"
2064 callback field, for both params of "rank" callback field, for
2065 first field of "print_insn" callback field (with a const), for
2066 both params of "contributes_to_priority" callback, for param
2067 of "insn_finishes_block_p" callback, for fields "prev_head",
2068 "next_tail", "head", "tail", for first param of "add_remove_insn"
2069 callback, for first param of "begin_schedule_ready" callback, for
2070 both params of "begin_move_insn" callback, and for second param
2071 of "advance_target_bb" callback.
2072 (add_dependence): Likewise for params 1 and 2.
2073 (sched_analyze): Likewise for params 2 and 3.
2074 (deps_analyze_insn): Likewise for param 2.
2075 (ready_element): Likewise for return type.
2076 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2077 (try_ready): Strenghten param from rtx to rtx_insn *.
2078 (sched_emit_insn): Likewise for return type.
2079 (record_delay_slot_pair): Likewise for params 1 and 2.
2080 (add_delay_dependencies): Likewise for param.
2081 (contributes_to_priority): Likewise for both params.
2082 (find_modifiable_mems): Likewise.
2083
2084 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
2085 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
2086 "first_older_only_insn" from rtx to rtx_insn *.
2087 (arm_sched_reorder): Strengthen param "ready" from rtx * to
2088 rtx_insn **.
2089
2090 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
2091 "last_scheduled_iter0" from rtx to rtx_insn *.
2092 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
2093 (c6x_sched_reorder_1): Strengthen param "ready" and locals
2094 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
2095 "insn" from rtx to rtx_insn *.
2096 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
2097 rtx_insn **.
2098 (c6x_sched_reorder2): Strengthen param "ready" and locals
2099 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
2100 "insn" from rtx to rtx_insn *.
2101 (c6x_variable_issue): Add a checked cast when assigning from insn
2102 to ss.last_scheduled_iter0.
2103 (split_delayed_branch): Strengthen param "insn" and local "i1"
2104 from rtx to rtx_insn *.
2105 (split_delayed_nonbranch): Likewise.
2106 (undo_split_delayed_nonbranch): Likewise for local "insn".
2107 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
2108 "entry_after", "end_packet", "head_insn", "tail_insn",
2109 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
2110 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
2111 to rtx_insn **. Remove now-redundant checked cast on last_insn,
2112 but add a checked cast on loop->start_label. Consolidate calls to
2113 avoid assigning result of gen_spkernel to "insn", now an
2114 rtx_insn *.
2115
2116 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
2117 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
2118 rtx to rtx_insn *.
2119 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
2120 rtx_insn **. Strengthen locals "top", "next" from rtx to
2121 rtx_insn *.
2122 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
2123 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
2124 (add_parameter_dependencies): Strengthen params "call", "head" and
2125 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
2126 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
2127 (add_dependee_for_func_arg): Likewise for param "arg" and local
2128 "insn".
2129 (ix86_dependencies_evaluation_hook): Likewise for params "head",
2130 "tail" and locals "insn", "first_arg".
2131
2132 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
2133 for params "head", "tail" and locals "insn", "next", "next_tail".
2134 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
2135 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
2136 "insn", "lowest", "highest" from rtx to rtx_insn *.
2137 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
2138 rtx_insn **.
2139 (ia64_sched_reorder2): Likewise.
2140
2141 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
2142 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
2143 from rtx * to rtx_insn **.
2144 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
2145 rtx_insn **.
2146 (mep_print_sched_insn): Strengthen param "insn" from rtx to
2147 rtx_insn *.
2148 (mep_sched_reorder): Strengthen param "ready" from rtx * to
2149 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
2150 to rtx_insn *.
2151
2152 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
2153 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
2154 to rtx_insn *.
2155 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
2156 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
2157 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
2158 rtx_insn **.
2159 (vr4130_reorder): Likewise.
2160 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
2161 rtx to rtx_insn *.
2162 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
2163 rtx_insn **.
2164 (mips_sched_reorder): Likewise.
2165 (mips_sched_reorder2): Likewise.
2166
2167 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
2168
2169 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
2170 Strengthen local "tmp" from rtx to rtx_insn *.
2171 (rs6000_sched_reorder2): Likewise.
2172
2173 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
2174 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
2175 (s390_sched_reorder): Strengthen param "ready" from rtx * to
2176 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
2177
2178 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
2179 "tmp2" from rtx to rtx_insn *.
2180 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
2181 Strengthen local "insn" from rtx to rtx_insn *.
2182 (ready_reorder): Strengthen param "ready" from rtx * to
2183 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
2184 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
2185 (sh_reorder2): Likewise.
2186
2187 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
2188 local "insn" from rtx to rtx_insn *.
2189
2190 * haifa-sched.c (note_list): Strengthen this variable from rtx to
2191 rtx_insn *.
2192 (scheduled_insns): Strengthen this variable from vec<rtx> to
2193 vec<rtx_insn *>.
2194 (set_modulo_params): Likewise for locals "i1", "i2".
2195 (record_delay_slot_pair): Likewise for params "i1", "i2".
2196 (add_delay_dependencies): Likewise for param "insn".
2197 (cond_clobbered_p): Likewise.
2198 (recompute_todo_spec): Likewise for local "prev".
2199 (last_scheduled_insn): Likewise for this variable.
2200 (nonscheduled_insns_begin): Likewise.
2201 (model_set_excess_costs): Strengthen param "insns" from rtx * to
2202 rtx_insn **.
2203 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
2204 rtx_insn *.
2205 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
2206 Strengthen local "insn" from rtx to rtx_insn *.
2207 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
2208 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
2209 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
2210 (ready_remove_first): Likewise for return type and local "t".
2211 (ready_element): Likewise for return type.
2212 (ready_remove): Likewise for return type and local "t".
2213 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
2214 (check_clobbered_conditions): Strengthen local "x" from rtx to
2215 rtx_insn *, adding a checked cast.
2216 (schedule_insn): Likewise for param "insn".
2217 (remove_notes): Likewise for params "head", "tail" and locals
2218 "next_tail", "insn", "next".
2219 (struct haifa_saved_data): Likewise for fields
2220 "last_scheduled_insn", "nonscheduled_insns_begin".
2221 (save_backtrack_point): Update for change to field "vec" of
2222 struct ready_list.
2223 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
2224 rtx_insn **.
2225 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
2226 from rtx to rtx_insn *
2227 (resolve_dependencies): Strengthen param "insn" from rtx to
2228 rtx_insn *
2229 (restore_other_notes): Likewise for return type, for param "head"
2230 and local "note_head".
2231 (undo_all_replacements): Likewise for local "insn".
2232 (first_nonscheduled_insn): Likewise for return type and local "insn".
2233 (queue_to_ready): Likewise for local "insn", adding checked casts.
2234 (early_queue_to_ready): Likewise for local "insn".
2235 (debug_ready_list_1): Strengthen local "p" from rtx * to
2236 rtx_insn **.
2237 (move_insn): Strengthen param "insn" and local "note" from rtx to
2238 rtx_insn *
2239 (insn_finishes_cycle_p): Likewise for param "insn".
2240 (max_issue): Likewise for local "insn".
2241 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
2242 to rtx_insn **.
2243 (commit_schedule): Strengthen param "prev_head" and local "insn"
2244 from rtx to rtx_insn *
2245 (prune_ready_list): Likewise for local "insn".
2246 (schedule_block): Likewise for locals "prev_head", "head", "tail",
2247 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
2248 (set_priorities): Likewise for local "prev_head".
2249 (try_ready): Likewise for param "next".
2250 (fix_tick_ready): Likewise.
2251 (change_queue_index): Likewise.
2252 (sched_extend_ready_list): Update for change to field "vec" of
2253 struct ready_list.
2254 (generate_recovery_code): Strengthen param "insn" from rtx to
2255 rtx_insn *.
2256 (begin_speculative_block): Likewise.
2257 (create_check_block_twin): Likewise for param "insn" and locals
2258 "label", "check", "twin". Introduce local "check_pat" to avoid
2259 "check" being used as a plain rtx before being used as an insn.
2260 (fix_recovery_deps): Add a checked cast to rtx_insn * when
2261 extracting elements from ready_list.
2262 (sched_remove_insn): Strengthen param "insn" from rtx to
2263 rtx_insn *.
2264 (sched_emit_insn): Likewise for return type.
2265 (ready_remove_first_dispatch): Likewise for return type and local
2266 "insn".
2267
2268 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
2269
2270 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
2271 const rtx_insn *.
2272
2273 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
2274 from rtx to rtx_insn *.
2275 (add_dependence_list): Likewise for param "insn". Add a checked
2276 cast.
2277 (add_dependence_list_and_free): Strengthen param "insn" from rtx
2278 to rtx_insn *. Strengthen param "list_p" from rtx * to
2279 rtx_insn **.
2280 (chain_to_prev_insn): Strengthen param "insn" and locals
2281 "prec_nonnote", "i" from rtx to rtx_insn *.
2282 (flush_pending_lists): Likewise for param "insn".
2283 (cur_insn): Likewise for this variable.
2284 (haifa_start_insn): Add a checked cast.
2285 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
2286 (sched_analyze_reg): Likewise for param "insn".
2287 (sched_analyze_1): Likewise.
2288 (sched_analyze_2): Likewise. Add checked casts.
2289 (sched_analyze_insn): Likewise. Also for local "prev".
2290 (deps_analyze_insn): Likewise for param "insn".
2291 (sched_analyze): Likewise for params "head", "tail" and local "insn".
2292 (add_dependence_1): Likewise for params "insn", "elem".
2293 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
2294 (parse_add_or_inc): Likewise for param "insn".
2295 (find_inc): Likewise for local "inc_cand".
2296 (find_modifiable_mems): Likewise for params "head", "tail" and
2297 locals "insn", "next_tail".
2298
2299 * sched-ebb.c (init_ready_list): Likewise for local "insn".
2300 (begin_schedule_ready): Likewise for param "insn".
2301 (begin_move_insn): Likewise for params "insn" and "last".
2302 (ebb_print_insn): Strengthen param "insn" from const_rtx to
2303 const rtx_insn *.
2304 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
2305 (ebb_contributes_to_priority): Likewise for params "next", "insn".
2306 (ebb_add_remove_insn): Likewise for param "insn".
2307 (advance_target_bb): Likewise.
2308
2309 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
2310 "insn".
2311 (check_live): Likewise for param "insn".
2312 (init_ready_list): Likewise for local "insn".
2313 (can_schedule_ready_p): Likewise for param "insn".
2314 (begin_schedule_ready): Likewise.
2315 (new_ready): Likewise for param "next".
2316 (rgn_print_insn): Likewise for param "insn".
2317 (rgn_rank): Likewise for params "insn1", "insn2".
2318 (contributes_to_priority): Likewise for params "next", "insn".
2319 (rgn_insn_finishes_block_p): Likewise for param "insn".
2320 (add_branch_dependences): Likewise for params "head", "tail" and
2321 locals "insn", "last".
2322 (rgn_add_remove_insn): Likewise for param "insn".
2323 (advance_target_bb): Likewise.
2324
2325 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
2326 const_rtx to const rtx_insn *.
2327
2328 * sel-sched-dump.h (sel_print_insn): Likewise.
2329
2330 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
2331 (deps_init_id): Likewise.
2332
2333 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
2334 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
2335 rtx_insn **.
2336
2337 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2338
2339 * output.h (final_start_function): Strengthen param 1 from rtx to
2340 rtx_insn *.
2341
2342 * final.c (final_start_function): Likewise, renaming back from
2343 "uncast_first" to "first", and dropping the checked cast from rtx
2344 to rtx_insn *.
2345
2346 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2347
2348 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
2349 * final.c (final): Likewise. Rename param back from
2350 "uncast_first" to "first" and eliminate the checked cast from rtx
2351 to rtx_insn *.
2352
2353 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2354
2355 * output.h (shorten_branches): Strengthen param from rtx to
2356 rtx_insn *.
2357
2358 * final.c (shorten_branches): Likewise, renaming param back from
2359 "uncast_first" to "first", and dropping the checked cast from rtx
2360 to rtx_insn *.
2361
2362 * genattr.c (gen_attr): Likewise when writing out the prototype of
2363 shorten_branches.
2364
2365 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2366
2367 * sched-int.h (struct haifa_sched_info): Strengthen fields
2368 "prev_head" and "next_tail" from rtx to rtx_insn *.
2369
2370 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2371
2372 * rtl.h (rtx_jump_table_data::get_labels): New method.
2373 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
2374 with use of the new rtx_jump_table_data::get_labels method.
2375 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
2376 to rtx_jump_table_data *. Simplify by using get_labels method.
2377 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
2378 a dyn_cast, introducing local "table", using it to replace
2379 label-lookup logic with a get_labels method call.
2380 (patch_jump_insn): Simplify using get_labels method.
2381 * dwarf2cfi.c (create_trace_edges): Likewise.
2382 * rtlanal.c (label_is_jump_target_p): Likewise.
2383
2384 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2385
2386 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
2387 to rtx_insn *.
2388
2389 * emit-rtl.c (unshare_all_rtl_1): Likewise.
2390 (unshare_all_rtl_again): Likewise, also for local "p".
2391
2392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2393
2394 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
2395 to rtx_insn *.
2396 * cfgrtl.c (delete_insn_and_edges): Likewise.
2397
2398 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2399
2400 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
2401 from rtx to rtx_insn *.
2402
2403 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
2404
2405 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2406
2407 * function.c (thread_prologue_and_epilogue_insns): Likewise for
2408 locals "returnjump", "epilogue_end", "insn", "next".
2409
2410 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
2411 "returnjump" from rtx * to rtx_insn **.
2412 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
2413
2414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2415
2416 * basic-block.h (struct edge_def). Strengthen "r" within
2417 union edge_def_insns from rtx to rtx_insn *.
2418
2419 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
2420 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
2421 rtx_insn *.
2422 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
2423 from rtx to rtx_insn *.
2424 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
2425 rtx_insn *.
2426 * postreload-gcse.c (reg_killed_on_edge): Likewise.
2427 (reg_used_on_edge): Likewise.
2428 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
2429 (gt_pch_nx): New overload for rtx_insn *&.
2430 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
2431 from rtx to rtx_insn *.
2432
2433 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2434
2435 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
2436 from rtx to rtx_insn *.
2437 (BB_FOOTER): Replace function with access macro.
2438 (SET_BB_FOOTER): Delete.
2439
2440 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
2441 with BB_FOOTER.
2442 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
2443 (emit_barrier_after_bb): Likewise.
2444 (record_effective_endpoints): Likewise.
2445 (relink_block_chain): Likewise.
2446 (fixup_fallthru_exit_predecessor): Likewise.
2447 (cfg_layout_duplicate_bb): Likewise.
2448 (cfg_layout_split_block): Likewise.
2449 (cfg_layout_delete_block): Likewise.
2450 (cfg_layout_merge_blocks): Likewise.
2451 (BB_FOOTER): Delete function.
2452 (SET_BB_FOOTER): Delete function.
2453 * combine.c (update_cfg_for_uncondjump): Replace uses of
2454 SET_BB_FOOTER with BB_FOOTER.
2455
2456 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2457
2458 * except.h (struct eh_landing_pad_d): Strengthen field
2459 "landing_pad" from rtx to rtx_code_label *.
2460
2461 * except.c (sjlj_emit_dispatch_table): Likewise for param
2462 "dispatch_label"
2463 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
2464
2465 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2466
2467 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
2468 first param from rtx to rtx_insn *.
2469 * config/xtensa/xtensa.c (struct machine_function): Likewise for
2470 field "set_frame_ptr_insn".
2471 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
2472 "csend" from rtx to rtx_code_label *.
2473 (xtensa_expand_atomic): Likewise for local "csloop".
2474 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
2475 rtx_insn *.
2476 (xtensa_call_tls_desc): Likewise for return type and locals
2477 "call_insn", "insns".
2478 (xtensa_legitimize_tls_address): Likewise for local "insns".
2479 (xtensa_expand_prologue): Likewise for locals "insn", "first".
2480
2481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2482
2483 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
2484 first param from rtx to rtx_insn *.
2485 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
2486 "insn".
2487
2488 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2489
2490 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
2491 Strengthen param 1 from rtx to rtx_insn *.
2492 (tilepro_output_cbranch): Likewise.
2493 (tilepro_adjust_insn_length): Likewise.
2494 (tilepro_final_prescan_insn): Likewise for sole param.
2495
2496 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
2497 Likewise for local "last".
2498 (cbranch_predicted_p): Likewise for param "insn".
2499 (tilepro_output_simple_cbranch_with_opcode): Likewise.
2500 (tilepro_output_cbranch_with_opcode): Likewise.
2501 (tilepro_output_cbranch): Likewise.
2502 (frame_emit_load): Likewise for return type and locals "seq",
2503 "insn".
2504 (emit_sp_adjust): Likewise for return type and local "insn".
2505 (tilepro_expand_epilogue): Likewise for locals "last_insn",
2506 "insn".
2507 (tilepro_adjust_insn_length): Likewise for param "insn".
2508 (next_insn_to_bundle): Likewise for return type and params
2509 "r", "end".
2510 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
2511 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
2512 local "new_insns".
2513 (match_addli_pcrel): Likewise for param "insn".
2514 (replace_addli_pcrel): Likewise.
2515 (match_auli_pcrel): Likewise.
2516 (replace_auli_pcrel): Likewise.
2517 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
2518 "next_insn".
2519 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2520 "queue", "next_queue", "prev".
2521 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
2522 (tilepro_final_prescan_insn): Likewise for param "insn".
2523
2524 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2525
2526 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
2527 Strengthen param 1 from rtx to rtx_insn *.
2528 (tilegx_output_cbranch): Likewise.
2529 (tilegx_adjust_insn_length): Likewise.
2530 (tilegx_final_prescan_insn): Likewise for sole param.
2531
2532 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
2533 or local "last".
2534 (cbranch_predicted_p): Likewise for param "insn".
2535 (tilegx_output_simple_cbranch_with_opcode): Likewise.
2536 (tilegx_output_cbranch_with_opcode): Likewise.
2537 (tilegx_output_cbranch): Likewise.
2538 (frame_emit_load): Likewise for return type.
2539 (set_frame_related_p): Likewise for locals "seq", "insn".
2540 (emit_sp_adjust): Likewise for return type, and for local "insn".
2541 Introduce local "pat" for use in place of "insn" where the latter
2542 isn't an instruction.
2543 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
2544 from rtx to rtx_insn *.
2545 (tilegx_adjust_insn_length): Likewise for param "insn".
2546 (next_insn_to_bundle): Likewise for return type and params "r" and
2547 "end".
2548 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2549 "end".
2550 (replace_insns): Likewise for params "old_insn", "new_insns".
2551 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2552 "new_insns".
2553 (replace_mov_pcrel_step2): Likewise.
2554 (replace_mov_pcrel_step3): Likewise.
2555 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2556 "next_insn".
2557 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2558 "queue", "next_queue", "prev".
2559 (tilegx_output_mi_thunk): Likewise for local "insn".
2560 (tilegx_final_prescan_insn): Likewise for param "insn".
2561
2562 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2563
2564 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2565 rtx to rtx_insn *.
2566 (frame_emit_load): Likewise.
2567 (frame_emit_add_imm): Likewise, also for local "insn".
2568 (spu_expand_prologue): Likewise for local "insn".
2569 (struct spu_bb_info): Likewise for field "prop_jump".
2570 (emit_nop_for_insn): Likewise for param "insn" and local
2571 "new_insn".
2572 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2573 "hbr_insn".
2574 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2575 locals "hint", "insn".
2576 (get_branch_target): Likewise for param "branch".
2577 (insn_clobbers_hbr): Likewise for param "insn".
2578 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2579 locals "insn", "before_4", "before_16".
2580 (insert_hbrp): Likewise for local "insn".
2581 (spu_machine_dependent_reorg): Likewise for locals "branch",
2582 "insn", "next", "bbend".
2583 (uses_ls_unit): Likewise for param "insn".
2584 (get_pipe): Likewise.
2585 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2586 introducing a checked cast.
2587 (spu_sched_adjust_cost): Likewise for params "insn" and
2588 "dep_insn".
2589 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2590 (spu_sms_res_mii): Likewise.
2591
2592 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2593
2594 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2595 from rtx to rtx_insn *.
2596 (output_cbranch): Likewise for param 6.
2597 (output_return): Likewise for param 1.
2598 (output_sibcall): Likewise.
2599 (output_v8plus_shift): Likewise.
2600 (output_v8plus_mult): Likewise.
2601 (output_v9branch): Likewise for param 7.
2602 (output_cbcond): Likewise for param 3.
2603
2604 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2605 for local "insn".
2606 (sparc_legitimize_pic_address): Likewise.
2607 (sparc_emit_call_insn): Likewise.
2608 (emit_save_or_restore_regs): Likewise.
2609 (emit_window_save): Likewise for return type and local "insn".
2610 (sparc_expand_prologue): Likewise for local "insn".
2611 (sparc_flat_expand_prologue): Likewise.
2612 (output_return): Likewise for param "insn".
2613 (output_sibcall): Likewise for param "insn" and local "delay".
2614 (output_ubranch): Likewise for param "insn".
2615 (output_cbranch): Likewise.
2616 (output_cbcond): Likewise.
2617 (output_v9branch): Likewise.
2618 (output_v8plus_shift): Likewise.
2619 (sparc_output_mi_thunk): Likewise for local "insn".
2620 (get_some_local_dynamic_name): Likewise.
2621 (output_v8plus_mult): Likewise for param "insn".
2622
2623 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2624
2625 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2626 from rtx to rtx_insn *.
2627 (output_branchy_insn): Likewise for param 3.
2628 (output_far_jump): Likewise for param 1.
2629 (final_prescan_insn): Likewise.
2630 (sh_insn_length_adjustment): Likewise for sole param.
2631
2632 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2633 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2634 rtx_code_label *.
2635 (sh_emit_compare_and_set): Likewise for local "lab".
2636 (output_far_jump): Strengthen param "insn" and local "prev" from
2637 rtx to rtx_insn *.
2638 (output_branchy_insn): Likewise for param "insn" and local
2639 "next_insn".
2640 (output_ieee_ccmpeq): Likewise for param "insn".
2641 (struct label_ref_list_d): Strengthen field "label" from rtx to
2642 rtx_code_label *.
2643 (pool_node): Likewise.
2644 (pool_window_label): Likewise for this global.
2645 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2646 (dump_table): Strengthen params "start", "barrier" and local
2647 "scan" from rtx to rtx_insn *.
2648 (broken_move): Likewise for param "insn".
2649 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2650 Strengthen param "first_mova" from rtx * to rtx_insn **.
2651 (mova_p): Likewise for param "insn".
2652 (fixup_mova): Likewise for param "mova".
2653 (find_barrier): Likewise for return type, params "mova" and
2654 "from", and locals "barrier_before_mova", "found_barrier",
2655 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2656 "label" from rtx to rtx_code_label *.
2657 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2658 rtx to rtx_insn *.
2659 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2660 (split_branches): Likewise for param "first" and local "insn".
2661 (final_prescan_insn): Likewise for param "insn".
2662 (sequence_insn_p): Likewise for locals "prev", "next".
2663 (sh_insn_length_adjustment): Likewise for param "insn".
2664 (sh_can_redirect_branch): Likewise for local "insn".
2665 (find_r0_life_regions): Likewise for locals "end", "insn".
2666 (sh_output_mi_thunk): Likewise for local "insns".
2667
2668 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2669
2670 * config/score/score.c (score_output_mi_thunk): Strengthen local
2671 "insn" from rtx to rtx_insn *.
2672 (score_prologue): Likewise.
2673
2674 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2675
2676 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2677 1 from rtx to rtx_insn *.
2678 (s390_emit_jump): Likewise for return type.
2679 (s390_emit_call): Likewise.
2680 (s390_load_got): Likewise.
2681
2682 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2683 variable.
2684 (s390_match_ccmode): Likewise for param "insn".
2685 (s390_emit_jump): Likewise for return type.
2686 (s390_split_branches): Likewise for local "label".
2687 (struct constant): Strengthen field "label" from rtx to
2688 rtx_code_label *.
2689 (struct constant_pool): Likewise for field "label". Strengthen
2690 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2691 rtx_insn *.
2692 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2693 insns.
2694 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2695 (s390_end_pool): Likewise.
2696 (s390_dump_pool): Likewise for local "insn".
2697 (s390_mainpool_start): Likewise.
2698 (s390_chunkify_start): Likewise.
2699 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2700 with insns. Strengthen locals "label", "jump", "barrier", "next",
2701 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2702 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2703 rtx_insn *.
2704 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2705 "jump", "label", "next_insn".
2706 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2707 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2708 "tbegin_insn".
2709 (s390_load_got): Likewise for return type and local "insns".
2710 (s390_save_gprs_to_fprs): Likewise for local "insn".
2711 (s390_restore_gprs_from_fprs): Likewise.
2712 (pass_s390_early_mach::execute): Likewise.
2713 (s390_emit_prologue): Likewise for local "insns".
2714 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2715 rtx_code_label *.
2716 (s390_emit_call): Strengthen return type and local "insn" from
2717 rtx to rtx_insn *.
2718 (s390_emit_tpf_eh_return): Likewise for local "insn".
2719 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2720 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2721 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2722 local "cur_insn".
2723 (s390_non_addr_reg_read_p): Likewise for param "insn".
2724 (find_cond_jump): Likewise for return type and param "insn".
2725 (s390_swap_cmp): Likewise for param "insn".
2726 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2727 "prev_insn", "next_insn".
2728 (s390_reorg): Likewise for locals "insn", "target".
2729 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2730 (s390_sched_variable_issue): For now, rename param "insn" to
2731 "uncast_insn", introducing a checked cast.
2732 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2733 insn.
2734 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2735 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2736
2737 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2738
2739 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2740 param from rtx to rtx_insn *.
2741 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2742
2743 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2744
2745 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2746 4 from rtx to rtx_insn *.
2747 (rs6000_final_prescan_insn): Likewise for first param.
2748 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2749 local "insn".
2750 (rs6000_get_some_local_dynamic_name): Likewise.
2751 (output_cbranch): Likewise for param "insn".
2752 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2753 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2754 (rs6000_emit_allocate_stack): Likewise for local "insn".
2755 (load_cr_save): Likewise.
2756 (restore_saved_cr): Likewise.
2757 (restore_saved_lr): Likewise.
2758 (emit_cfa_restores): Likewise.
2759 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2760 "deleted_debug_label".
2761 (rs6000_output_mi_thunk): Likewise for local "insn".
2762 (rs6000_final_prescan_insn): Likewise for param "insn".
2763
2764 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2765
2766 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2767 Strengthen param "insn" from rtx to rtx_insn *.
2768 * config/picochip/picochip.c (picochip_current_prescan_insn):
2769 Likewise for this variable.
2770 (picochip_final_prescan_insn): Likewise for param "insn".
2771
2772 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2773
2774 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2775 from rtx to rtx_insn *.
2776 (pa_output_indirect_call): Likewise.
2777 (pa_adjust_insn_length): Likewise.
2778 (pa_attr_length_millicode_call): Likewise.
2779 (pa_attr_length_call): Likewise.
2780 (pa_attr_length_indirect_call): Likewise.
2781
2782 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2783 "insn".
2784 (pa_attr_length_millicode_call): Likewise.
2785 (pa_attr_length_call): Likewise.
2786 (pa_output_call): Likewise.
2787 (pa_attr_length_indirect_call): Likewise.
2788 (pa_output_indirect_call): Likewise.
2789
2790 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2791
2792 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2793 Strengthen first param from rtx to rtx_insn *.
2794 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2795 param "insn".
2796
2797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2798
2799 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2800 type from rtx to rtx_insn *.
2801 (mips_expand_call): Likewise.
2802 (mips_adjust_insn_length): Likewise for first param.
2803 (mips_output_conditional_branch): Likewise.
2804 (mips_output_order_conditional_branch): Likewise.
2805 (mips_final_prescan_insn): Likewise.
2806
2807 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2808 rtx_insn * for the SEQUENCE case.
2809 (SEQ_END): Likewise.
2810 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2811 (mips_emit_call_insn): Likewise, also for local "insn".
2812 (mips16_gp_pseudo_reg): Likewise for local "scan".
2813 (mips16_build_call_stub): Likewise for return type and for local
2814 "insn". Introduce a new local "pattern" so that "insn" can indeed
2815 be an insn.
2816 (mips_expand_call): Strengthen return type and local "insn" from
2817 rtx to rtx_insn *.
2818 (mips_block_move_loop): Strengthen local "label" from rtx to
2819 rtx_code_label *.
2820 (mips_expand_synci_loop): Likewise for locals "label",
2821 "end_label".
2822 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2823 rtx_insn *.
2824 (mips16e_collect_argument_saves): Likewise for locals "insn",
2825 "next".
2826 (mips_find_gp_ref): Likewise for param of callback for "pred"
2827 param, and for local "insn".
2828 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2829 (mips_insn_has_flexible_gp_ref_p): Likewise.
2830 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2831 local "insn".
2832 (mips_epilogue_set_cfa): Likewise for local "insn".
2833 (mips_expand_epilogue): Likewise.
2834 (mips_adjust_insn_length): Likewise for param "insn".
2835 (mips_output_conditional_branch): Likewise.
2836 (mips_output_order_conditional_branch): Likewise.
2837 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2838 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2839 "falu2_turn_enabled_insn".
2840 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2841 "done_label" from rtx to rtx_code_label *.
2842 (struct mips16_constant): Likewise for field "label".
2843 (mips16_add_constant): Likewise for return type.
2844 (mips16_emit_constants_1): Strengthen return type and param "insn"
2845 from rtx to rtx_insn *.
2846 (mips16_emit_constants): Likewise for param "insn".
2847 (mips16_insn_length): Likewise.
2848 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2849 to rtx_code_label *.
2850 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2851 from rtx to rtx_insn *.
2852 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2853 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2854 (r10k_simplify_address): Strengthen param "insn" and local
2855 "def_insn" from rtx to rtx_insn *.
2856 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2857 rtx_insn *.
2858 (r10k_needs_protection_p_1): Update target type of cast of data
2859 from to rtx to rtx_insn *.
2860 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2861 rtx * to rtx_insn **.
2862 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2863 rtx_insn *.
2864 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2865 (mips_call_expr_from_insn): Likewise for param "insn".
2866 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2867 (mips_find_pic_call_symbol): Likewise for param "insn".
2868 (mips_annotate_pic_calls): Likewise for local "insn".
2869 (mips_sim_insn): Likewise for this variable.
2870 (struct mips_sim): Likewise for field "insn" within elements of
2871 last_set array.
2872 (mips_sim_wait_reg): Likewise for param "insn".
2873 (mips_sim_wait_regs): Likewise.
2874 (mips_sim_wait_units): Likewise.
2875 (mips_sim_wait_insn): Likewise.
2876 (mips_sim_issue_insn): Likewise.
2877 (mips_sim_finish_insn): Likewise.
2878 (mips_seq_time): Likewise for param "seq" and local "insn".
2879 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2880 locals "first", "second".
2881 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2882 "last", "last2", "next".
2883 (mips_avoid_hazard): Likewise for params "after", "insn".
2884 (mips_reorg_process_insns): Likewise for locals "insn",
2885 "last_insn", "subinsn", "next_insn".
2886 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2887 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2888 "jump_sequence".
2889 (mips_output_mi_thunk): Likewise for local "insn".
2890 (mips_final_prescan_insn): Likewise for param "insn".
2891
2892 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2893
2894 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2895 Strengthen return type and local "insns" from rtx to rtx_insn *.
2896 (microblaze_legitimize_tls_address): Likewise for local "insns".
2897 (microblaze_block_move_loop): Strengthen local "label" from rtx
2898 to rtx_code_label *.
2899 (microblaze_expand_prologue): Strengthen two locals named "insn"
2900 from rtx to rtx_insn *.
2901 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2902 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2903 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2904 to rtx_code_label *.
2905
2906 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2907
2908 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2909 param from rtx to rtx_insn *.
2910 (mep_reuse_lo): Likewise for third param.
2911 (mep_use_post_modify_p): Likewise for first param.
2912 (mep_core_address_length): Likewise.
2913 (mep_cop_address_length): Likewise.
2914 (mep_final_prescan_insn): Likewise.
2915 (mep_store_data_bypass_p): Likewise for both params.
2916 (mep_mul_hilo_bypass_p): Likewise.
2917 (mep_ipipe_ldc_p): Likewise for param.
2918
2919 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2920 (mep_rewrite_mult): Likewise.
2921 (mep_rewrite_mulsi3): Likewise.
2922 (mep_rewrite_maddsi3): Likewise.
2923 (mep_reuse_lo_p_1): Likewise.
2924 (mep_reuse_lo_p): Likewise.
2925 (mep_frame_expr): Likewise.
2926 (mep_make_parallel): Likewise for both params.
2927 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2928 local "insn".
2929 (mep_use_post_modify_p): Likewise for param "insn".
2930 (mep_core_address_length): Likewise.
2931 (mep_cop_address_length): Likewise.
2932 (mep_reg_set_in_function): Likewise for local "insn".
2933 (mep_asm_without_operands_p): Likewise.
2934 (F): Likewise for return type and param "x".
2935 (add_constant): Likewise for local "insn".
2936 (maybe_dead_move): Likewise for return type and local "insn".
2937 (mep_expand_prologue): Likewise for local "insn".
2938 (mep_final_prescan_insn): Likewise for param "insn".
2939 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2940 "next", "follow", "x".
2941 (mep_insert_repeat_label_last): Likewise for return type, param
2942 "last_insn", and locals "next", "prev". Strengthen param "label"
2943 from rtx to rtx_code_label *.
2944 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2945 rtx_insn *.
2946 (struct mep_doloop_end): Likewise for fields "insn" and
2947 "fallthrough".
2948 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2949 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2950 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2951 rtx_insn *.
2952 (mep_invert_branch): Likewise for params "insn" and "after".
2953 (mep_reorg_erepeat): Likewise for param "insns" and locals
2954 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2955 "l" from rtx to rtx_code_label *.
2956 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2957 from rtx to rtx_insn *.
2958 (mep_reorg_addcombine): Likewise for param "insns" and locals
2959 "i", "n".
2960 (add_sp_insn_p): Likewise for param "insn".
2961 (mep_reorg_noframe): Likewise for param "insns" and locals
2962 "start_frame_insn", "end_frame_insn", "next".
2963 (mep_reorg): Likewise for local "insns".
2964 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2965 cast.
2966 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2967 (mep_mul_hilo_bypass_p): Likewise.
2968 (mep_ipipe_ldc_p): Likewise for param "insn".
2969 (mep_make_bundle): Likewise for return type, param "cop" and local
2970 "insn", splitting out the latter into a new local "seq" for when it
2971 is a SEQUENCE rather than an insn.
2972 (core_insn_p): Likewise for param "insn".
2973 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2974 "last", "first", "note", "prev", "core_insn".
2975
2976 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2977
2978 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2979 rtx to rtx_insn *.
2980 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2981 (m68k_final_prescan_insn): Likewise for first param.
2982
2983 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2984 (m68k_set_frame_related): Likewise for param "insn".
2985 (output_btst): Likewise for param "insn".
2986 (m68k_final_prescan_insn): Likewise.
2987 (m68k_move_to_reg): Likewise for local "insn".
2988 (m68k_call_tls_get_addr): Likewise for local "insns".
2989 (m68k_call_m68k_read_tp): Likewise.
2990 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2991 (m68k_output_mi_thunk): Likewise for local "insn".
2992
2993 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2994
2995 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2996 first param from rtx to rtx_insn *.
2997 (iq2000_adjust_insn_length): Likewise.
2998 (iq2000_output_conditional_branch): Likewise.
2999 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
3000 "insn" and local "nop_insn".
3001 (iq2000_annotate_frame_insn): Likewise for param "insn".
3002 (iq2000_expand_prologue): Likewise for both locals "insn".
3003 (iq2000_adjust_insn_length): Likewise for param "insn".
3004 (iq2000_output_conditional_branch): Likewise.
3005
3006 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3007
3008 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
3009 "insns" from rtx to rtx_insn *.
3010 (ia64_emit_cond_move): Likewise for locals "insn", "first".
3011 (struct spill_fill_data): Likewise for field "init_after" and for
3012 elements of array field "prev_insn".
3013 (spill_restore_mem): Likewise for locals "insn", "first".
3014 (do_spill): Likewise for local "insn".
3015 (do_restore): Likewise.
3016 (ia64_expand_prologue): Likewise.
3017 (ia64_expand_epilogue): Likewise.
3018 (emit_insn_group_barriers): Likewise for locals "insn",
3019 "last_label".
3020 (emit_all_insn_group_barriers): Likewise for locals "insn",
3021 "last".
3022 (dfa_stop_insn): Likewise for this global.
3023 (dfa_pre_cycle_insn): Likewise.
3024 (ia64_nop): Likewise.
3025 (final_emit_insn_group_barriers): Likewise for locals "insn",
3026 "last".
3027 (emit_predicate_relation_info): Likewise for locals "head", "n",
3028 "insn", "b", "a".
3029 (ia64_reorg): Likewise for local "insn".
3030 (ia64_output_mi_thunk): Likewise.
3031 (expand_vec_perm_interleave_2): Likewise for local "seq".
3032
3033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3034
3035 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
3036 param 1 "insn" from rtx to rtx_insn *.
3037 (ix86_use_lea_for_mov): Likewise.
3038 (ix86_avoid_lea_for_addr): Likewise.
3039 (ix86_split_lea_for_addr): Likewise.
3040 (ix86_lea_for_add_ok): Likewise.
3041 (ix86_output_call_insn): Likewise.
3042
3043 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
3044 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
3045 (ix86_output_function_epilogue): Likewise for locals "insn",
3046 "deleted_debug_label".
3047 (legitimize_tls_address): Likewise for local "insn".
3048 (get_some_local_dynamic_name): Likewise.
3049 (increase_distance): Likewise for params "prev", "next".
3050 (distance_non_agu_define_in_bb): Likewise for params "insn",
3051 "start" and locals "prev", "next".
3052 (distance_non_agu_define): Likewise for param "insn".
3053 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
3054 locals "next", "prev".
3055 (distance_agu_use): Likewise for param "insn".
3056 (ix86_lea_outperforms): Likewise.
3057 (ix86_ok_to_clobber_flags): Likewise.
3058 (ix86_avoid_lea_for_add): Likewise.
3059 (ix86_use_lea_for_mov): Likewise.
3060 (ix86_avoid_lea_for_addr): Likewise.
3061 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
3062 (ix86_split_lea_for_addr): Likewise for param "insn".
3063 (ix86_lea_for_add_ok): Likewise for param "insn".
3064 (ix86_expand_carry_flag_compare): Likewise for local
3065 "compare_seq".
3066 (ix86_expand_int_movcc): Likewise.
3067 (ix86_output_call_insn): Likewise for param "insn".
3068 (ix86_output_call_insn): Likewise for local "i".
3069 (x86_output_mi_thunk): Introduce local "insn", using it in place
3070 of "tmp" when dealing with insns.
3071 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
3072 "start".
3073 (ix86_pad_returns): Likewise for locals "ret", "prev".
3074 (ix86_count_insn_bb): Likewise for local "insn".
3075 (ix86_pad_short_function): Likewise for locals "ret", "insn".
3076 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
3077 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
3078 (expand_vec_perm_interleave2): Likewise for local "seq".
3079 (expand_vec_perm_vperm2f128_vblend): Likewise.
3080 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
3081 call to for_each_rtx with for_each_rtx_in_insn.
3082
3083 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3084
3085 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
3086 "label" from rtx to rtx_code_label *.
3087 (ix86_expand_prologue): Likewise.
3088 (ix86_expand_split_stack_prologue): Likewise for locals "label",
3089 "varargs_label".
3090 (ix86_split_idivmod): Likewise for locals "end_label" and
3091 "qimode_label".
3092 (ix86_expand_branch): Likewise for local "label2".
3093 (ix86_expand_aligntest): Likewise for return type and local "label".
3094 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
3095 "top_label".
3096 (expand_movmem_epilogue): Likewise for the various locals named
3097 "label".
3098 (expand_setmem_epilogue): Likewise.
3099 (expand_small_movmem_or_setmem): Likewise for local "label".
3100 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
3101 Strengthen param "done_label" from rtx * to rtx_code_label **.
3102 Strengthen locals "loop_label" and "label" from rtx to
3103 rtx_code_label *.
3104 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
3105 Likewise for locals "loop_label", "label".
3106 (ix86_expand_set_or_movmem): Likewise for locals "label",
3107 "jump_around_label", "hot_label".
3108 (ix86_expand_strlensi_unroll_1): Likewise for locals
3109 "align_2_label", align_3_label", "align_4_label", "end_0_label",
3110 "end_2_label".
3111 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
3112 (void ix86_emit_i387_log1p): Likewise for locals "label1",
3113 "label2", "jump_label".
3114 (ix86_expand_sse_compare_and_jump): Likewise for return type and
3115 local "label".
3116 (ix86_expand_lfloorceil): Likewise for local "label".
3117 (ix86_expand_rint): Likewise.
3118 (ix86_expand_floorceildf_32): Likewise.
3119 (ix86_expand_floorceil): Likewise.
3120 (ix86_expand_rounddf_32): Likewise.
3121 (ix86_expand_trunc): Likewise.
3122 (ix86_expand_truncdf_32): Likewise.
3123 (ix86_expand_round): Likewise.
3124
3125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3126
3127 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
3128 first param from rtx to rtx_insn *.
3129 (h8300_insn_length_from_table): Likewise.
3130 * config/h8300/h8300.c (F): Likewise for return type and param
3131 "x".
3132 (Fpa): Add a checked cast to rtx_insn *.
3133 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
3134 rtx_insn *.
3135 (final_prescan_insn): Likewise for param "insn".
3136 (h8300_binary_length): Likewise.
3137 (h8300_insn_length_from_table): Likewise.
3138
3139 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3140
3141 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
3142 Strengthen first param "insn" from rtx to rtx_insn *.
3143
3144 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
3145 Likewise.
3146 (frame_insn): Likewise for return type. Introduce local "insn"
3147 for use in place of local "x" for use as an rtx_insn *.
3148 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
3149 (epiphany_expand_prologue): Likewise for local "insn".
3150 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
3151 * config/epiphany/resolve-sw-modes.c
3152 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
3153 "seq".
3154
3155 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3156
3157 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
3158 param from rtx to rtx_insn *.
3159 (c6x_final_prescan_insn): Likewise for first param.
3160
3161 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
3162 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
3163 (c6x_expand_compare): Strengthen local "insns" from rtx to
3164 rtx_insn *.
3165 (c6x_get_unit_specifier): Likewise for param "insn".
3166 (c6x_print_unit_specifier_field): Likewise.
3167 (c6x_final_prescan_insn): Likewise.
3168 (emit_add_sp_const): Likewise for local "insn".
3169 (c6x_expand_prologue): Likewise.
3170
3171 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3172
3173 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
3174 param 1 from rtx to rtx_insn *.
3175 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
3176 the various locals named "insn".
3177 (expand_epilogue_reg_restore): Likewise.
3178 (frame_related_constant_load): Likewise.
3179 (add_to_reg): Likewise.
3180 (emit_link_insn): Likewise.
3181 (do_link): Likewise.
3182 (expand_interrupt_handler_prologue): Likewise.
3183 (branch_dest): Likewise for param "branch".
3184 (asm_conditional_branch): Likewise for param "insn".
3185 (gen_one_bundle): Likewise for elements of param "slot" and local
3186 "t".
3187 (bfin_gen_bundles): Likewise for locals "insn", "next" and
3188 elements of local "slot".
3189 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
3190 "queue", "next_queue", "prev".
3191 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
3192 (add_sched_insns_for_speculation): Likewise for local "insn".
3193
3194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3195
3196 * config/avr/avr-protos.h (output_movqi): Strengthen first param
3197 from rtx to rtx_insn *.
3198 (output_movhi): Likewise.
3199 (output_movsisf): Likewise.
3200 (avr_out_tstsi): Likewise.
3201 (avr_out_tsthi): Likewise.
3202 (avr_out_tstpsi): Likewise.
3203 (avr_out_compare): Likewise.
3204 (avr_out_compare64): Likewise.
3205 (avr_out_movpsi): Likewise.
3206 (ashlqi3_out): Likewise.
3207 (ashlhi3_out): Likewise.
3208 (ashlsi3_out): Likewise.
3209 (ashrqi3_out): Likewise.
3210 (ashrhi3_out): Likewise.
3211 (ashrsi3_out): Likewise.
3212 (lshrqi3_out): Likewise.
3213 (lshrhi3_out): Likewise.
3214 (lshrsi3_out): Likewise.
3215 (avr_out_ashlpsi3): Likewise.
3216 (avr_out_ashrpsi3): Likewise.
3217 (avr_out_lshrpsi3): Likewise.
3218 (avr_out_fract): Likewise.
3219 (avr_out_sbxx_branch): Likewise.
3220 (avr_out_round): Likewise.
3221 (avr_out_xload): Likewise.
3222 (avr_out_movmem): Likewise.
3223 (adjust_insn_length): Likewise.
3224 (avr_out_lpm): Likewise.
3225 (reg_unused_after): Likewise.
3226 (_reg_unused_after): Likewise.
3227 (avr_jump_mode): Likewise for second param.
3228 (jump_over_one_insn): Likewise for first param.
3229 (avr_final_prescan_insn): Likewise.
3230 (out_shift_with_cnt): Likewise for second param.
3231
3232 * config/avr/avr.c (get_sequence_length): Likewise for param
3233 "insns" and local "insn".
3234 (emit_push_byte): Likewise for local "insn".
3235 (emit_push_sfr): Likewise.
3236 (avr_prologue_setup_frame): Likewise for locals "insn",
3237 "fp_plus_insns", "sp_plus_insns".
3238 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
3239 "sp_plus_insns".
3240 (avr_jump_mode): Likewise for param "insn".
3241 (avr_final_prescan_insn): Likewise.
3242 (avr_find_unused_d_reg): Likewise.
3243 (avr_out_lpm_no_lpmx): Likewise.
3244 (avr_out_lpm): Likewise.
3245 (avr_out_xload): Likewise.
3246 (output_movqi): Likewise.
3247 (output_movhi): Likewise.
3248 (out_movqi_r_mr): Likewise.
3249 (out_movhi_r_mr): Likewise.
3250 (out_movsi_r_mr): Likewise.
3251 (out_movsi_mr_r): Likewise.
3252 (output_movsisf): Likewise.
3253 (avr_out_load_psi): Likewise.
3254 (avr_out_store_psi): Likewise.
3255 (avr_out_movpsi): Likewise.
3256 (out_movqi_mr_r): Likewise.
3257 (avr_out_movhi_mr_r_xmega): Likewise.
3258 (out_movhi_mr_r): Likewise.
3259 (compare_condition): Likewise for param "insn" and local "next".
3260 (compare_sign_p): Likewise for param "insn".
3261 (compare_diff_p): Likewise.
3262 (compare_eq_p): Likewise.
3263 (avr_out_compare): Likewise.
3264 (avr_out_compare64): Likewise.
3265 (avr_out_tsthi): Likewise.
3266 (avr_out_tstpsi): Likewise.
3267 (avr_out_tstsi): Likewise.
3268 (out_shift_with_cnt): Likewise.
3269 (ashlqi3_out): Likewise.
3270 (ashlhi3_out): Likewise.
3271 (avr_out_ashlpsi3): Likewise.
3272 (ashlsi3_out): Likewise.
3273 (ashrqi3_out): Likewise.
3274 (ashrhi3_out): Likewise.
3275 (avr_out_ashrpsi3): Likewise.
3276 (ashrsi3_out): Likewise.
3277 (lshrqi3_out): Likewise.
3278 (lshrhi3_out): Likewise.
3279 (avr_out_lshrpsi3): Likewise.
3280 (lshrsi3_out): Likewise.
3281 (avr_out_fract): Likewise.
3282 (avr_out_round): Likewise.
3283 (avr_adjust_insn_length): Likewise.
3284 (reg_unused_after): Likewise.
3285 (_reg_unused_after): Likewise.
3286 (avr_compare_pattern): Likewise.
3287 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
3288 and locals "branch1", "branch2", "insn2", "jump".
3289 (avr_reorg): Likewise for local "insn".
3290 (avr_2word_insn_p): Likewise for param "insn".
3291 (jump_over_one_insn_p): Likewise.
3292 (avr_out_sbxx_branch): Likewise.
3293 (avr_out_movmem): Likewise.
3294
3295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3296
3297 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
3298 param from rtx to rtx_insn *.
3299 (thumb1_final_prescan_insn): Likewise.
3300 (thumb2_final_prescan_insn): Likewise.
3301
3302 * config/arm/arm.c (emit_set_insn): Strengthen return type from
3303 rtx to rtx_insn *.
3304 (struct minipool_node): Likewise for field "insn".
3305 (dump_minipool): Likewise for param "scan".
3306 (create_fix_barrier): Likewise for local "from". Strengthen local
3307 "label" from rtx to rtx_code_label *.
3308 (push_minipool_barrier): Strengthen param "insn" from rtx to
3309 rtx_insn *.
3310 (push_minipool_fix): Likewise.
3311 (note_invalid_constants): Likewise.
3312 (thumb2_reorg): Likewise for local "insn".
3313 (arm_reorg): Likewise.
3314 (thumb2_final_prescan_insn): Likewise for param
3315 "insn" and local "first_insn".
3316 (arm_final_prescan_insn): Likewise for param "insn" and locals
3317 "start_insn", "this_insn".
3318 (arm_debugger_arg_offset): Likewise for param "insn".
3319 (thumb1_emit_multi_reg_push): Likewise for return type and local
3320 "insn".
3321 (thumb1_final_prescan_insn): Likewise for param "insn".
3322 (thumb_far_jump_used_p): Likewise for local "insn".
3323 (thumb1_expand_prologue): Likewise.
3324 (arm_expand_epilogue_apcs_frame): Likewise.
3325 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
3326 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
3327 from rtx to rtx_code_label *.
3328 (arm_split_atomic_op): Likewise for local "label".
3329 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
3330
3331 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3332
3333 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
3334 first param from rtx to rtx_insn *.
3335 (arc_verify_short): Likewise.
3336 (arc_short_long): Likewise.
3337 (arc_need_delay): Likewise.
3338
3339 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
3340 "target_insn".
3341 (arc_ccfsm_advance): Likewise for param "insn" and locals
3342 "start_insn", "this_insn".
3343 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
3344 (arc_ccfsm_post_advance): Likewise for param "insn".
3345 (arc_next_active_insn): Likewise for return type and param "insn".
3346 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
3347 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
3348 (output_short_suffix): Likewise for local "insn".
3349 (arc_final_prescan_insn): Likewise for param "insn". Remove
3350 now-redundant checked cast.
3351 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
3352 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
3353 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
3354 for use where lc_set became an insn.
3355 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
3356 rtx to rtx_insn *.
3357 (arc_get_insn_variants): Likewise for local "prev".
3358 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
3359 "next".
3360 (arc_predicate_delay_insns): Likewise for local "insn".
3361 (arc_pad_return): Likewise for local "prev". For now, add a
3362 checked cast when extracting the insn from "final_sequence".
3363 (arc_short_long): Likewise for param "insn".
3364 (arc_need_delay): Likewise for param "insn" and local "next".
3365 (arc_label_align): Likewise for locals "prev", "next".
3366
3367 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3368
3369 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
3370 "insn" from rtx to rtx_insn *.
3371 (alpha_gp_save_rtx): Likewise for local "seq".
3372 (alpha_instantiate_decls): Likewise for local "top".
3373 (get_some_local_dynamic_name): Likewise for local "insn".
3374 (alpha_does_function_need_gp): Likewise.
3375 (set_frame_related_p): Likewise for return type and for locals
3376 "seq" and "insn".
3377 (emit_frame_store_1): Likewise for local "insn".
3378 (alpha_expand_prologue): Likewise for locals "insn", "seq".
3379 (alpha_end_function): Likewise for local "insn".
3380 (alpha_output_mi_thunk_osf): Likewise.
3381 (alphaev4_insn_pipe): Likewise for param "insn".
3382 (alphaev5_insn_pipe): Likewise.
3383 (alphaev4_next_group): Likewise for return type and param 1
3384 "insn".
3385 (alphaev5_next_group): Likewise.
3386 (alpha_align_insns_1): Likewise for return type and param 1 of
3387 callback param "next_group", and for locals "i", "next", "prev",
3388 "where", "where2", "insn".
3389
3390 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
3391
3392 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
3393 rather than modifying the stmt.
3394
3395 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3396
3397 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
3398 cgraph_state conversion.
3399
3400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
3401
3402 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3403 Strengthen local "insns" from rtx to rtx_insn *.
3404 (aarch64_set_frame_expr): Likewise for local "insn".
3405 (aarch64_save_or_restore_fprs): Likewise.
3406 (aarch64_save_or_restore_callee_save_registers): Likewise.
3407 (aarch64_expand_prologue): Likewise.
3408 (aarch64_expand_epilogue): Likewise.
3409 (aarch64_output_mi_thunk): Likewise.
3410 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
3411 "label2" from rtx to rtx_code_label *.
3412 (aarch64_split_atomic_op): Likewise for local "label".
3413
3414 2014-08-25 Martin Liska <mliska@suse.cz>
3415
3416 * cgraph.h (symtab_node):
3417 (bool needed_p (void)): created from decide_is_symbol_needed
3418 (bool referred_to_p (void)): created from referred_to_p
3419 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
3420 * cgraph.h (cgraph_node):
3421 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
3422 (void expand (void)): created from expand_function
3423 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
3424 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
3425 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
3426 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
3427 * cgraph.h (varpool_node):
3428 (static void add (tree decl): created from varpool_add_new_variable
3429 * cgraph.h (cgraph_edge):
3430 void remove (void);
3431 (void remove_caller (void)): created from cgraph_edge_remove_caller
3432 (void remove_callee (void)): created from cgraph_edge_remove_callee
3433 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
3434 created from cgraph_set_call_stmt
3435 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
3436 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
3437 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
3438 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
3439 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
3440 created from cgraph_speculative_call_info
3441 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
3442 int freq_scale, bool update_original)): created from cgraph_clone_edge
3443 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
3444 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
3445 (bool recursive_p (void)): created from cgraph_edge_recursive_p
3446 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
3447 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
3448 (static void rebuild_references (void)): created from cgraph_rebuild_references
3449 * cgraph.h (symbol_table):
3450 (create_reference): renamed from add_reference
3451 (maybe_create_reference): renamed from maybe_add_reference
3452 (void register_symbol (symtab_node *node)): new function
3453 (void clear_asm_symbols (void)): new function
3454 (void unregister (symtab_node *node)): new function
3455 (void release_symbol (cgraph_node *node, int uid)): new function
3456 (cgraph_node * allocate_cgraph_symbol (void)): new function
3457 (void initialize (void)): created from cgraph_init
3458 (symtab_node *first_symbol (void)):new function
3459 (asm_node *first_asm_symbol (void)):new function
3460 (symtab_node *first_defined_symbol (void)):new function
3461 (varpool_node *first_variable (void)):new function
3462 (varpool_node *next_variable (varpool_node *node)):new function
3463 (varpool_node *first_static_initializer (void)):new function
3464 (varpool_node *next_static_initializer (varpool_node *node)):new function
3465 (varpool_node *first_defined_variable (void)):new function
3466 (varpool_node *next_defined_variable (varpool_node *node)):new function
3467 (cgraph_node *first_defined_function (void)):new function
3468 (cgraph_node *next_defined_function (cgraph_node *node)):new function
3469 (cgraph_node *first_function (void)):new function
3470 (cgraph_node *next_function (cgraph_node *node)):new function
3471 (cgraph_node *first_function_with_gimple_body (void)):new function
3472 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
3473 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
3474 created from symtab_remove_unreachable_nodes
3475 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
3476 (void process_new_functions (void)): created from cgraph_process_new_functions
3477 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
3478 (bool output_variables (void)): created from varpool_node::output_variables
3479 (void output_asm_statements (void)): created from output_asm_statements
3480 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
3481 (void compile (void)): created from compile
3482 (void output_weakrefs (void)): created from output_weakrefs
3483 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
3484 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
3485 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
3486 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
3487 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
3488 created from cgraph_next_function_with_gimple_body
3489 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
3490 created from cgraph_remove_edge_removal_hook
3491 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
3492 created from cgraph_add_node_removal_hook
3493 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
3494 created from cgraph_remove_node_removal_hook
3495 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
3496 created from varpool_add_node_removal_hook
3497 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
3498 created from varpool_remove_node_removal_hook
3499 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
3500 created from cgraph_add_function_insertion_hook
3501 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
3502 created from cgraph_remove_function_insertion_hook
3503 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
3504 created from varpool_add_variable_insertion_hook
3505 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
3506 created from varpool_remove_variable_insertion_hook
3507 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
3508 created from cgraph_add_edge_duplication_hook
3509 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
3510 created from cgraph_remove_edge_duplication_hook
3511 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
3512 created from cgraph_add_node_duplication_hook
3513 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
3514 created from cgraph_remove_node_duplication_hook
3515 (void call_edge_removal_hooks (cgraph_edge *e)):
3516 created from cgraph_call_edge_removal_hooks
3517 (void call_cgraph_insertion_hooks (cgraph_node *node)):
3518 created from call_function_insertion_hooks
3519 (void call_cgraph_removal_hooks (cgraph_node *node)):
3520 created from cgraph_call_node_removal_hooks
3521 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
3522 created from cgraph_node::call_duplication_hooks
3523 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
3524 created from cgraph_call_edge_duplication_hooks
3525 (void call_varpool_removal_hooks (varpool_node *node)):
3526 created from varpool_call_node_removal_hooks
3527 (void call_varpool_insertion_hooks (varpool_node *node)):
3528 created from varpool_call_variable_insertion_hooks
3529 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
3530 created from insert_to_assembler_name_hash
3531 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
3532 created from unlink_from_assembler_name_hash
3533 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
3534 created from symtab_prevail_in_asm_name_hash
3535 (void symtab_initialize_asm_name_hash (void)):
3536 created from symtab_initialize_asm_name_hash
3537 (void change_decl_assembler_name (tree decl, tree name)):
3538 created from change_decl_assembler_name
3539 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
3540 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
3541 created from decl_assembler_name_hash
3542 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
3543 created from decl_assembler_name_equal
3544 (static hashval_t hash_node_by_assembler_name (const void *p)):
3545 created from hash_node_by_assembler_name
3546 (static int eq_assembler_name (const void *p1, const void *p2)):
3547 created from eq_assembler_name
3548
3549 2014-08-25 Marek Polacek <polacek@redhat.com>
3550
3551 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3552
3553 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3554
3555 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3556 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3557 SWI1248_AVX512BW mode iterator.
3558
3559 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3560
3561 PR target/62111
3562 * config/sh/predicates.md (general_extend_operand): Disable
3563 TRUNCATE before reload completes.
3564
3565 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3566
3567 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3568
3569 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3570
3571 PR target/61996
3572 * config/sh/sh.opt (musermode): Allow negative form.
3573 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3574 targets that don't support it.
3575 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3576 Document -mno-usermode option.
3577
3578 2014-08-24 Kito Cheng <kito@0xlab.org>
3579
3580 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3581 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3582 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3583 * doc/tm.texi: Regenerate.
3584
3585 2014-08-24 Kito Cheng <kito@0xlab.org>
3586
3587 * ira.c: Fix typo in comment.
3588
3589 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3590
3591 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3592 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3593
3594 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3595
3596 PR target/62038
3597 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3598 last_address when the current function is a thunk.
3599 (pa_asm_output_mi_thunk): When we don't have named sections or they
3600 are not being used, check that thunk can reach the stub table with a
3601 short branch.
3602
3603 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3604
3605 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3606 rtx_insn *.
3607 (pass_web::execute): Likewise for local "insn".
3608
3609 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3610
3611 * var-tracking.c (struct micro_operation_def): Strengthen field
3612 "insn" from rtx to rtx_insn *.
3613 (struct emit_note_data_def): Likewise.
3614 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3615 (vt_stack_adjustments): Likewise for local "insn".
3616 (adjust_insn): Likewise for param "insn".
3617 (val_store): Likewise.
3618 (val_resolve): Likewise.
3619 (struct count_use_info): Likewise for field "insn".
3620 (log_op_type): Likewise for param "insn".
3621 (reverse_op): Likewise.
3622 (prepare_call_arguments): Likewise.
3623 (add_with_sets): The initial param takes an insn, but we can't
3624 yet strengthen it from rtx to rtx_insn * since it's used as a
3625 cselib_record_sets_hook callback. For now rename initial param
3626 from "insn" to "uncast_insn", and introduce a local "insn" of
3627 the stronger rtx_insn * type, with a checked cast.
3628 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3629 rtx_insn *.
3630 (emit_note_insn_var_location): Likewise.
3631 (emit_notes_for_changes): Likewise.
3632 (emit_notes_for_differences): Likewise.
3633 (next_non_note_insn_var_location): Likewise for return type and
3634 for param "insn".
3635 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3636 (vt_initialize): Likewise for local "insn".
3637 (delete_debug_insns): Likewise for locals "insn" and "next".
3638
3639 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3640
3641 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3642 rtx_insn *.
3643 (mark_constant_pool): Likewise for local "insn".
3644
3645 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3646
3647 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3648 rtx to rtx_insn *.
3649 (dead_debug_promote_uses): Likewise.
3650 (dead_debug_insert_temp): Likewise.
3651
3652 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3653
3654 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3655 from const_rtx to const rtx_insn *.
3656 (store_killed_after): Likewise. Strengthen locals "last", "act"
3657 from rtx to rtx_insn *.
3658 (store_killed_before): Strengthen param "insn" from const_rtx to
3659 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3660 (find_moveable_store): Strengthen param "insn" from rtx to
3661 rtx_insn *.
3662 (compute_store_table): Likewise for local "insn".
3663 (insert_insn_start_basic_block): Likewise for param "insn" and
3664 locals "prev", "before", "insn".
3665 (insert_store): For now, add a checked cast to rtx_insn * on the
3666 result of gen_move_insn.
3667 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3668 to rtx_insn *.
3669 (replace_store_insn): Likewise. For now, add a checked cast to
3670 rtx_insn * on the result of gen_move_insn.
3671
3672 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3673
3674 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3675 rtx_insn *.
3676 (expand_sjlj_dispatch_table): Likewise.
3677
3678 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3679
3680 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3681 "insn" from rtx to rtx_insn *.
3682
3683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3684
3685 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3686 "insn" from rtx to rtx_insn *.
3687 (dup_block_and_redirect): Likewise for param 3 "before".
3688
3689 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3690 from rtx to rtx_insn *.
3691 (move_insn_for_shrink_wrap): Likewise.
3692 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3693 (dup_block_and_redirect): Likewise for param "before" and local
3694 "insn".
3695 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3696 "end".
3697 (convert_to_simple_return): Likewise for local "start".
3698
3699 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3700 Strengthen local "insn" from rtx to rtx_insn *, for use when
3701 invoking requires_stack_frame_p.
3702
3703 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3704
3705 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3706 rtx_insn *.
3707 (speculate_expr): Likewise for locals "orig_insn_rtx",
3708 "spec_insn_rtx".
3709 (eq_transformed_insns): Likewise for locals "i1", "i2".
3710 (check_for_new_jump): Likewise for return type and local "end".
3711 (find_new_jump): Likewise for return type and local "jump".
3712 (sel_split_edge): Likewise for local "jump".
3713 (sel_create_recovery_block): Likewise.
3714 (sel_redirect_edge_and_branch_force): Likewise.
3715 (sel_redirect_edge_and_branch): Likewise.
3716
3717 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3718
3719 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3720 "new_insn" from rtx to rtx_insn *.
3721 (create_insn_rtx_with_rhs): Likewise for return type and for local
3722 "insn_rtx".
3723 (create_insn_rtx_with_lhs): Likewise.
3724 (create_speculation_check): Likewise for local "insn_rtx".
3725 (implicit_clobber_conflict_p): Likewise for local "insn".
3726 (get_expr_cost): Likewise.
3727 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3728 (move_cond_jump): Likewise for locals "next", "prev", "link",
3729 "head", "from", "to".
3730
3731 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3732
3733 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3734 "next" from rtx to rtx_insn *.
3735 (find_conditional_protection): Likewise for local "next".
3736 (is_conditionally_protected): Likewise for local "insn1".
3737 (is_pfree): Likewise for locals "insn1", "insn2".
3738
3739 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3740
3741 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3742 from rtx to rtx_insn *.
3743
3744 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3745 locals "insn1", "insn2" from rtx to rtx_insn *.
3746 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3747 locals "insn", "prev", "last_jump", "next_tail".
3748 (schedule_ebb): Likewise for params "head", "tail".
3749 (schedule_ebbs): Likewise for locals "tail", "head".
3750
3751 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3752 to rtx_insn on "last_insn" in one of the invocations of
3753 schedule_ebb.
3754
3755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3756
3757 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3758 "elem", "insn" from rtx to rtx_insn *.
3759 (change_spec_dep_to_hard): Likewise.
3760 (get_back_and_forw_lists): Likewise for local "con".
3761 (sd_add_dep): Likewise for locals "elem", "insn".
3762 (sd_resolve_dep): Likewise for locals "pro", "con".
3763 (sd_unresolve_dep): Likewise.
3764 (sd_delete_dep): Likewise.
3765 (chain_to_prev_insn): Likewise for local "pro".
3766 (find_inc): Likewise for locals "pro", "con".
3767
3768 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3769
3770 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3771 to rtx_insn *.
3772 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3773 const rtx_insn *.
3774 (modified_between_p): Strengthen local "insn" from rtx to
3775 rtx_insn *.
3776 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3777 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3778 const rtx_insn *.
3779
3780 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3781
3782 * resource.c (next_insn_no_annul): Strengthen local "next" from
3783 rtx to rtx_insn *.
3784 (mark_referenced_resources): Likewise for local "insn".
3785
3786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3787
3788 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3789 to rtx_insn *.
3790 (find_reloads): Likewise for param 1.
3791 (subst_reloads): Likewise for sole param.
3792 (find_equiv_reg): Likwise for param 2.
3793 (regno_clobbered_p): Likwise for param 2.
3794 (reload): Likewise for param 1.
3795
3796 * caller-save.c (save_call_clobbered_regs): Strengthen local
3797 "insn" from rtx to rtx_insn *.
3798 (insert_one_insn): Likewise for local "insn".
3799
3800 * reload.c (this_insn): Likewise for this global.
3801 (find_reloads): Likewise for param "insn".
3802 (find_reloads_toplev): Likewise.
3803 (find_reloads_address): Likewise.
3804 (subst_reg_equivs): Likewise.
3805 (update_auto_inc_notes): Likewise.
3806 (find_reloads_address_1): Likewise.
3807 (find_reloads_subreg_address): Likewise.
3808 (subst_reloads): Likewise.
3809 (find_equiv_reg): Likewise, also for local "p".
3810 (regno_clobbered_p): Likewise for param "insn".
3811
3812 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3813 array.
3814 (spill_reg_store): Likewise for the elements of this array.
3815 (remove_init_insns): Likewise for local "equiv_insn".
3816 (will_delete_init_insn_p): Likewise for param "insn".
3817 (reload): Likewise for param ""first" and local "insn".
3818 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3819 rtx_insn *.
3820 (calculate_elim_costs_all_insns): Likewise.
3821 (delete_caller_save_insns): Likewise.
3822 (spill_failure): Likewise for param "insn".
3823 (delete_dead_insn): Likewise.
3824 (set_label_offsets): Likewise.
3825 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3826 "prev_insn".
3827 (elimination_costs_in_insn): Likewise for param "insn".
3828 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3829 when referring to an insn.
3830 (set_initial_label_offsets): Likewise.
3831 (set_offsets_for_label): Strengthen param "insn" from rtx to
3832 rtx_insn *.
3833 (init_eliminable_invariants): Likewise for param "first" and local
3834 "insn".
3835 (fixup_eh_region_note): Likewise for param "insn".
3836 (reload_as_needed): Likewise for locals "prev", "insn",
3837 "old_next", "old_prev", "next".
3838 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3839 "last".
3840 (reload_inheritance_insn): Strengthen elements of this array from
3841 rtx to rtx_insn *.
3842 (failed_reload): Likewise for param "insn".
3843 (choose_reload_regs): Likewise for local "insn". Replace use of
3844 NULL_RTX with NULL when referring to an insn.
3845 (input_reload_insns): Strengthen elements of this array from rtx
3846 to rtx_insn *.
3847 (other_input_address_reload_insns): Likewise for this global.
3848 (other_input_reload_insns): Likewise for this global.
3849 (input_address_reload_insns): Likwise for the elements of this
3850 array.
3851 (inpaddr_address_reload_insns): Likwise for the elements of this
3852 array.
3853 (output_reload_insns): Likewise for the elements of this array.
3854 (output_address_reload_insns): Likewise for the elements of this
3855 array.
3856 (outaddr_address_reload_insns): Likewise for the elements of this
3857 array.
3858 (operand_reload_insns): Likewise for this global.
3859 (other_operand_reload_insns): Likewise for this global.
3860 (other_output_reload_insns): Likewise for the elements of this
3861 array.
3862 (new_spill_reg_store): Likewise for the elements of this
3863 array.
3864 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3865 Strengthen local "where" from rtx * to rtx_insn **.
3866 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3867 from rtx to rtx_insn *.
3868 (do_input_reload): Likewise for local "insn".
3869 (do_output_reload): Likewise for local "insn".
3870 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3871 (emit_insn_if_valid_for_reload): Likewise for return type and local
3872 "last". Add checked cast to rtx_insn when returning "insn" since
3873 this has been through emit_insn.
3874 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3875 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3876 returning "insn" since it's been through
3877 emit_insn_if_valid_for_reload at this point.
3878 (delete_output_reload): Strengthen param "insn" and locals
3879 "output_reload_insn", "i2" from rtx to rtx_insn *.
3880 (delete_address_reloads): Likewise for params "dead_insn",
3881 "current_insn" and locals "prev", "next".
3882 (delete_address_reloads_1): Likewise for params "dead_insn",
3883 "current_insn" and locals "prev", "i2".
3884 (inc_for_reload): Likewise for locals "last", "add_insn".
3885 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3886 rtx_insn *.
3887
3888 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3889 param of this duplicate of the prototype from reload.h
3890
3891 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3892
3893 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3894 rtx to rtx_insn *.
3895 (regstat_bb_compute_calls_crossed): Likewise.
3896
3897 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3898
3899 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3900 to rtx_insn *.
3901 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3902 with an insn.
3903 (regrename_analyze): Strengthen local "insn" from rtx to
3904 rtx_insn *.
3905 (scan_rtx_reg): Likewise for param "insn".
3906 (scan_rtx_address): Likewise.
3907 (scan_rtx): Likewise.
3908 (restore_operands): Likewise.
3909 (record_out_operands): Likewise.
3910 (build_def_use): Likewise for local "insn". Replace use of
3911 NULL_RTX with NULL when dealing with an insn.
3912
3913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3914
3915 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3916 * reginfo.c (reg_scan): Likewise, also for local "insn".
3917 (reg_scan_mark_refs): Likewise for param "insn".
3918 (init_subregs_of_mode): Likewise for local "insn".
3919
3920 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3921
3922 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3923 "insn" from rtx to rtx_insn *.
3924 (replace_oldest_value_reg): Likewise for param "insn".
3925 (replace_oldest_value_addr): Likewise.
3926 (replace_oldest_value_mem): Likewise.
3927 (apply_debug_insn_changes): Likewise for local "last_insn".
3928 (copyprop_hardreg_forward_1): Likewise for local "insn".
3929
3930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3931
3932 * reg-stack.c (next_flags_user): Strengthen return type and param
3933 "insn" from rtx to rtx_insn *.
3934 (straighten_stack): Likewise for param "insn".
3935 (check_asm_stack_operands): Likewise.
3936 (remove_regno_note): Likewise.
3937 (emit_pop_insn): Likewise for return type, param "insn", local
3938 "pop_insn".
3939 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3940 "limit" from rtx to rtx_insn *.
3941 (swap_to_top): Likewise for param "insn".
3942 (move_for_stack_reg): Likewise.
3943 (move_nan_for_stack_reg): Likewise.
3944 (swap_rtx_condition): Likewise.
3945 (compare_for_stack_reg): Likewise.
3946 (subst_all_stack_regs_in_debug_insn): Likewise.
3947 (subst_stack_regs_pat): Likewise, and local "insn2".
3948 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3949 rtx_insn *.
3950 (subst_stack_regs): Likewise.
3951 (change_stack): Likewise.
3952 (convert_regs_1): Likewise for locals "insn", "next".
3953
3954 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3955
3956 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3957 rtx_insn *.
3958 (combine_set_extension): Likewise for param "curr_insn".
3959 (transform_ifelse): Likewise for param "def_insn".
3960 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3961 from vec<rtx> * to vec<rtx_insn *> *.
3962 (is_cond_copy_insn): Likewise for param "insn".
3963 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3964 to vec<rtx_insn *>.
3965 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3966 local "def_insn" from rtx to rtx_insn *.
3967 (get_sub_rtx): Likewise for param "def_insn".
3968 (merge_def_and_ext): Likewise.
3969 (combine_reaching_defs): Likewise.
3970 (add_removable_extension): Likewise for param "insn".
3971 (find_removable_extensions): Likewise for local "insn".
3972 (find_and_remove_re): Likewise for locals "curr_insn" and
3973 "def_insn". Strengthen locals "reinsn_del_list" and
3974 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3975
3976 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3977
3978 * recog.c (split_insn): Strengthen param "insn" and locals
3979 "first", "last" from rtx to rtx_insn *.
3980 (split_all_insns): Likewise for locals "insn", "next".
3981 (split_all_insns_noflow): Likewise.
3982
3983 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3984
3985 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3986 const rtx_insn *.
3987 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3988 (debug_rtx_find): Likewise for param 1 "x".
3989
3990 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3991 const_rtx to const rtx_insn *. Likewise for local "insn".
3992 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3993 (debug_rtx_find): Likewise for param 1 "x".
3994 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3995 from const_rtx to const rtx_insn * within the appropriate cases of
3996 the switch statement.
3997
3998 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3999 Strengthen local "insns" from rtx to rtx_insn * since this is
4000 passed to a call to debug_rtx_list.
4001
4002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4003
4004 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
4005 to rtx_insn *.
4006
4007 * function.c (stack_protect_epilogue): Add checked cast to
4008 rtx_insn for now when invoking predict_insn_def.
4009
4010 * predict.c (predict_insn): Strengthen param "insn" from rtx to
4011 rtx_insn *.
4012 (predict_insn_def): Likewise.
4013 (rtl_predict_edge): Likewise for local "last_insn".
4014 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
4015 const rtx_insn *.
4016 (combine_predictions_for_insn): Strengthen param "insn" from rtx
4017 to rtx_insn *.
4018 (bb_estimate_probability_locally): Likewise for local "last_insn".
4019 (expensive_function_p): Likewise for local "insn".
4020
4021 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
4022 local "jmp", since this is used when invoking predict_insn_def.
4023
4024 2014-08-22 Marek Polacek <polacek@redhat.com>
4025
4026 PR c++/62199
4027 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
4028
4029 2014-08-22 Marek Polacek <polacek@redhat.com>
4030
4031 PR c/61271
4032 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
4033 a comparison in parens.
4034 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
4035 in parens.
4036
4037 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4038
4039 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
4040 rtx_insn *.
4041
4042 * cprop.c (fis_get_condition): Likewise.
4043
4044 * postreload.c (reload_cse_regs): Likewise for param "first".
4045 (reload_cse_simplify): Likewise for param "insn".
4046 (reload_cse_regs_1): Likewise for local "insn".
4047 (reload_cse_simplify_set): Likewise for param "insn".
4048 (reload_cse_simplify_operands): Likewise.
4049 (struct reg_use): Likewise for field "insn".
4050 (reload_combine_purge_insn_uses): Likewise for param "insn".
4051 (fixup_debug_insns): Likewise for params "from", "to" and local
4052 "insn".
4053 (try_replace_in_use): Likewise for local "use_insn".
4054 (reload_combine_recognize_const_pattern): Likewise for param
4055 "insn" and locals "add_moved_after_insn", "use_insn".
4056 (reload_combine_recognize_pattern): Likewise for param "insn" and
4057 local "prev".
4058 (reload_combine): Likewise for locals "insn", "prev".
4059 (reload_combine_note_use): Likewise for param "insn".
4060 (move2add_use_add2_insn): Likewise.
4061 (move2add_use_add3_insn): Likewise.
4062 (reload_cse_move2add): Likewise, also for local "next".
4063 (move2add_note_store): Likewise for local "insn".
4064
4065 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4066
4067 * postreload-gcse.c (struct occr): Strengthen field "insn" from
4068 rtx to rtx_insn *.
4069 (struct unoccr): Likewise.
4070 (struct modifies_mem): Likewise.
4071 (alloc_mem): Likewise for local "insn".
4072 (insert_expr_in_table): Likewise for param "insn".
4073 (dump_expr_hash_table_entry): Likewise for local "insn".
4074 (oprs_unchanged_p): Likewise for param "insn".
4075 (load_killed_in_block_p): Likewise for local "setter".
4076 (record_last_reg_set_info): Likewise for param "insn".
4077 (record_last_reg_set_info_regno): Likewise.
4078 (record_last_mem_set_info): Likewise.
4079 (record_last_set_info): Likewise for local "last_set_insn".
4080 (record_opr_changes): Likewise for param "insn".
4081 (hash_scan_set): Likewise.
4082 (compute_hash_table): Likewise for local "insn".
4083 (get_avail_load_store_reg): Likewise for param "insn".
4084 (eliminate_partially_redundant_load): Likewise, also for locals
4085 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
4086 RTX for insns.
4087 (eliminate_partially_redundant_loads): Likewise for local "insn".
4088
4089 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4090
4091 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
4092 rtx to rtx_insn *.
4093 (expand_binop): Likewise for locals "entry_last", "last", "insns"
4094 (expand_twoval_unop): Likewise for locals entry_last", "last".
4095 (expand_twoval_binop): Likewise.
4096 (expand_twoval_binop_libfunc): Likewise for local "insns".
4097 (widen_leading): Likewise for local "last".
4098 (expand_doubleword_clz): Likewise for local "seq". Strengthen
4099 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
4100 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
4101 (expand_parity): Likewise for locals "last" and "seq".
4102 (expand_ffs): Likewise for local "seq". Strengthen local
4103 "nonzero_label" from rtx to rtx_code_label *.
4104 (expand_absneg_bit): Strengthen local "insns" from rtx to
4105 rtx_insn *.
4106 (expand_unop_direct): Likewise for local "last".
4107 (expand_unop): Likewise for locals "last", "insns".
4108 (expand_abs_nojump): Likewise for local "last".
4109 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
4110 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
4111 rtx_insn *.
4112 (expand_copysign_absneg): Strengthen local "label" from rtx to
4113 rtx_code_label *.
4114 (expand_copysign_bit): Strengthen local "insns" from rtx to
4115 rtx_insn *.
4116 (struct no_conflict_data): Likewise for fields "first", "insn".
4117 (emit_libcall_block_1): Likewise for param "insns" and locals
4118 "next", "last", "insn".
4119 (emit_libcall_block): For now, add a checked cast to rtx_insn *
4120 on "insns" when invoking emit_libcall_block_1. Ultimately we
4121 want to strengthen insns itself.
4122 (prepare_cmp_insn): Strengthen local "last" from rtx to
4123 rtx_insn *.
4124 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
4125 (prepare_float_lib_cmp): Likewise for local "insns".
4126 (emit_conditional_move): Likewise for local "last".
4127 (emit_conditional_add): Likewise.
4128 (have_sub2_insn): Likewise for local "seq".
4129 (expand_float): Likewise for local "insns". Strengthen locals
4130 "label", "neglabel" from rtx to rtx_code_label *.
4131 (expand_fix): Likewise for locals "last", "insn", "insns" (to
4132 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
4133 (expand_fixed_convert): Likewise for local "insns" (to
4134 rtx_insn *).
4135 (expand_sfix_optab): Likewise for local "last".
4136 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
4137 to rtx_code_label *.
4138 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
4139 from rtx to rtx_insn *.
4140 (expand_atomic_fetch_op): Likewise for local "insn".
4141 (maybe_legitimize_operand_same_code): Likewise for local "last".
4142 (maybe_legitimize_operands): Likewise.
4143
4144 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4145
4146 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
4147 "insn" from rtx to rtx_insn *.
4148 (ps_rtl_insn): Likewise for return type.
4149 (doloop_register_get): Likewise for params "head", "tail" and
4150 locals "insn", "first_insn_not_to_check".
4151 (schedule_reg_move): Likewise for local "this_insn".
4152 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
4153 of gen_move_insn for now.
4154 (reset_sched_times): Strengthen local "insn" from rtx to
4155 rtx_insn *.
4156 (permute_partial_schedule): Likewise.
4157 (duplicate_insns_of_cycles): Likewise for local "u_insn".
4158 (dump_insn_location): Likewise for param "insn".
4159 (loop_canon_p): Likewise for local "insn".
4160 (sms_schedule): Likewise.
4161 (print_partial_schedule): Likewise.
4162 (ps_has_conflicts): Likewise.
4163
4164 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4165
4166 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
4167 "tailp" from rtx * to rtx_insn **.
4168
4169 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
4170 from rtx to rtx_insn *.
4171 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
4172 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
4173 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
4174 rtx to rtx_insn *.
4175 * modulo-sched.c (const_iteration_count): Strengthen return type
4176 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
4177 use of NULL_RTX with NULL when working with insns.
4178 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
4179 to rtx_insn *.
4180 (sms_schedule): Likewise.
4181 * sched-rgn.c (init_ready_list): Likewise, also for locals
4182 "src_head" and "src_next_tail".
4183 (compute_block_dependences): Likewise.
4184 (free_block_dependencies): Likewise.
4185 (debug_rgn_dependencies): Likewise.
4186 (free_rgn_deps): Likewise.
4187 (compute_priorities): Likewise.
4188 (schedule_region): Likewise.
4189 * sel-sched.c (find_ebb_boundaries): Likewise.
4190
4191 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
4192 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
4193
4194 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4195
4196 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
4197 from rtx to rtx_insn *.
4198 (new_seginfo): Likewise for param "insn".
4199 (create_pre_exit): Likewise for locals "last_insn",
4200 "before_return_copy", "return_copy".
4201 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
4202 "mode_set".
4203
4204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4205
4206 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
4207 from rtx to rtx_insn *.
4208 (lra_push_insn): Likewise for 1st param.
4209 (lra_push_insn_and_update_insn_regno_info): Likewise.
4210 (lra_pop_insn): Likewise for return type.
4211 (lra_invalidate_insn_data): Likewise for 1st param.
4212 (lra_set_insn_deleted): Likewise.
4213 (lra_delete_dead_insn): Likewise.
4214 (lra_process_new_insns): Likewise for first 3 params.
4215 (lra_set_insn_recog_data): Likewise for 1st param.
4216 (lra_update_insn_recog_data): Likewise.
4217 (lra_set_used_insn_alternative): Likewise.
4218 (lra_invalidate_insn_regno_info): Likewise.
4219 (lra_update_insn_regno_info): Likewise.
4220 (lra_former_scratch_operand_p): Likewise.
4221 (lra_eliminate_regs_1): Likewise.
4222 (lra_get_insn_recog_data): Likewise.
4223
4224 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
4225 rtx to rtx_insn *.
4226
4227 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
4228 "mv1" and "mv2".
4229 (substitute_within_insn): New.
4230 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
4231 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
4232 Replace call to "substitute" with call to substitute_within_insn.
4233
4234 * lra-constraints.c (curr_insn): Strengthen from rtx to
4235 rtx_insn *.
4236 (get_equiv_with_elimination): Likewise for param "insn".
4237 (match_reload): Strengthen params "before" and "after" from rtx *
4238 to rtx_insn **.
4239 (emit_spill_move): Likewise for return type. Add a checked cast
4240 to rtx_insn * on result of gen_move_insn for now.
4241 (check_and_process_move): Likewise for local "before". Replace
4242 NULL_RTX with NULL when referring to insns.
4243 (process_addr_reg): Strengthen params "before" and "after" from
4244 rtx * to rtx_insn **.
4245 (insert_move_for_subreg): Likewise.
4246 (simplify_operand_subreg): Strengthen locals "before" and "after"
4247 from rtx to rtx_insn *.
4248 (process_address_1): Strengthen params "before" and "after" from
4249 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
4250 rtx to rtx_insn *.
4251 (process_address): Strengthen params "before" and "after" from
4252 rtx * to rtx_insn **.
4253 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
4254 (curr_insn_transform): Strengthen locals "before" and "after"
4255 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
4256 to insns.
4257 (loc_equivalence_callback): Update cast of "data", changing
4258 resulting type from rtx to rtx_insn *.
4259 (substitute_pseudo_within_insn): New.
4260 (inherit_reload_reg): Strengthen param "insn" from rtx to
4261 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
4262 NULL when referring to insns. Add a checked cast to rtx_insn *
4263 when using usage_insn to invoke lra_update_insn_regno_info.
4264 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
4265 likewise for locals "restore", "save". Add checked casts to
4266 rtx_insn * when using usage_insn to invoke
4267 lra_update_insn_regno_info and lra_process_new_insns. Replace
4268 NULL_RTX with NULL when referring to insns.
4269 (split_if_necessary): Strengthen param "insn" from rtx to
4270 rtx_insn *.
4271 (update_ebb_live_info): Likewise for params "head", "tail" and local
4272 "prev_insn".
4273 (get_last_insertion_point): Likewise for return type and local "insn".
4274 (get_live_on_other_edges): Likewise for local "last".
4275 (inherit_in_ebb): Likewise for params "head", "tail" and locals
4276 "prev_insn", "next_insn", "restore".
4277 (remove_inheritance_pseudos): Likewise for local "prev_insn".
4278 (undo_optional_reloads): Likewise for local "insn".
4279
4280 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
4281 "insn".
4282 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
4283 insns.
4284 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
4285 rtx_insn *.
4286 (spill_pseudos): Likewise for local "insn".
4287 (init_elimination): Likewise.
4288 (process_insn_for_elimination): Likewise for param "insn".
4289
4290 * lra-lives.c (curr_insn): Likewise.;
4291
4292 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
4293 (remove_pseudos): Likewise for param "insn".
4294 (spill_pseudos): Likewise for local "insn".
4295 (lra_final_code_change): Likewise for locals "insn", "curr".
4296
4297 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
4298 (lra_set_insn_deleted): Likewise.
4299 (lra_delete_dead_insn): Likewise, and for local "prev".
4300 (new_insn_reg): Likewise for param "insn".
4301 (lra_set_insn_recog_data): Likewise.
4302 (lra_update_insn_recog_data): Likewise.
4303 (lra_set_used_insn_alternative): Likewise.
4304 (get_insn_freq): Likewise.
4305 (invalidate_insn_data_regno_info): Likewise.
4306 (lra_invalidate_insn_regno_info): Likewise.
4307 (lra_update_insn_regno_info): Likewise.
4308 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
4309 vec<rtx_insn *>.
4310 (lra_push_insn_1): Strengthen param "insn" from rtx to
4311 rtx_insn *.
4312 (lra_push_insn): Likewise.
4313 (lra_push_insn_and_update_insn_regno_info): Likewise.
4314 (lra_pop_insn): Likewise for return type and local "insn".
4315 (push_insns): Likewise for params "from", "to", and local "insn".
4316 (setup_sp_offset): Likewise for params "from", "last" and locals
4317 "before", "insn".
4318 (lra_process_new_insns): Likewise for params "insn", "before",
4319 "after" and local "last".
4320 (struct sloc): Likewise for field "insn".
4321 (lra_former_scratch_operand_p): Likewise for param "insn".
4322 (remove_scratches): Likewise for locals "insn", "last".
4323 (check_rtl): Likewise for local "insn".
4324 (add_auto_inc_notes): Likewise for param "insn".
4325 (update_inc_notes): Likewise for local "insn".
4326 (lra): Replace NULL_RTX with NULL when referring to insn.
4327
4328 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4329
4330 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
4331 to rtx_insn *.
4332 (resolve_reg_notes): Likewise.
4333 (resolve_simple_move): Likewise for return type, param "insn", and
4334 locals "insns", "minsn".
4335 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
4336 (resolve_use): Likewise.
4337 (resolve_debug): Likewise.
4338 (find_decomposable_shift_zext): Likewise.
4339 (resolve_shift_zext): Likewise for return type, param "insn", and
4340 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
4341 (decompose_multiword_subregs): Likewise for local "insn",
4342 "orig_insn", "decomposed_shift", "end".
4343
4344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4345
4346 * basic-block.h (basic_block split_edge_and_insert): Strengthen
4347 param "insns" from rtx to rtx_insn *.
4348
4349 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
4350 rtx to rtx_insn *.
4351 (struct iv_to_split): Likewise.
4352 (loop_exit_at_end_p): Likewise for local "insn".
4353 (split_edge_and_insert): Likewise for param "insns".
4354 (compare_and_jump_seq): Likewise for return type, param "cinsn",
4355 and locals "seq", "jump".
4356 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
4357 "branch_code"; update invocations of compare_and_jump_seq to
4358 eliminate NULL_RTX in favor of NULL.
4359 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
4360 rtx to rtx_insn *.
4361 (reset_debug_uses_in_loop): Likewise.
4362 (analyze_insn_to_expand_var): Likewise for param "insn".
4363 (analyze_iv_to_split_insn): Likewise.
4364 (analyze_insns_in_loop): Likewise for local "insn".
4365 (insert_base_initialization): Likewise for param
4366 "insn" and local "seq".
4367 (split_iv): Likewise for param "insn" and local "seq".
4368 (expand_var_during_unrolling): Likewise for param "insn".
4369 (insert_var_expansion_initialization): Likewise for local "seq".
4370 (combine_var_copies_in_loop_exit): Likewise.
4371 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
4372 "insn".
4373 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
4374 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
4375 "next".
4376
4377 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4378
4379 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
4380 rtx_insn *.
4381 (iv_analyze_result): Likewise.
4382 (iv_analyze_expr): Likewise.
4383 (biv_p): Likewise.
4384
4385 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
4386 local "def_insn" from rtx to rtx_insn *.
4387 (get_biv_step_1): Likewise for local "insn".
4388 (iv_analyze_expr): Likewise for param "insn".
4389 (iv_analyze_def): Likewise for local "insn".
4390 (iv_analyze_op): Likewise for param "insn".
4391 (iv_analyze): Likewise.
4392 (iv_analyze_result): Likewise.
4393 (biv_p): Likewise.
4394 (suitable_set_for_replacement): Likewise.
4395 (simplify_using_initial_values): Likewise for local "insn".
4396 (iv_number_of_iterations): Likewise for param "insn".
4397 (check_simple_exit): Add checked cast to rtx_insn when invoking
4398 iv_number_of_iterations for now (until get_condition is
4399 strengthened).
4400
4401 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
4402 "insn" from rtx to rtx_insn *.
4403 (analyze_insns_in_loop): Likewise for local "insn".
4404
4405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4406
4407 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
4408 to rtx_insn *.
4409 (struct invariant): Likewise.
4410 (hash_invariant_expr_1): Likewise for param "insn".
4411 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
4412 (find_exits): Likewise for local "insn".
4413 (create_new_invariant): Likewise for param "insn".
4414 (check_dependencies): Likewise.
4415 (find_invariant_insn): Likewise.
4416 (record_uses): Likewise.
4417 (find_invariants_insn): Likewise.
4418 (find_invariants_bb): Likewise for local "insn".
4419 (get_pressure_class_and_nregs): Likewise for param "insn".
4420 (calculate_loop_reg_pressure): Likewise for local "insn".
4421
4422 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4423
4424 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
4425 to rtx_insn *.
4426 (add_test): Likewise for locals "seq", "jump".
4427 (doloop_modify): Likewise for locals "sequence", "jump_insn".
4428
4429 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4430
4431 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
4432 rtx_insn *.
4433 (rebuild_jump_labels_chain): Likewise for param "chain".
4434
4435 * cfgexpand.c (pass_expand::execute): Add checked cast to
4436 rtx_insn * when calling rebuild_jump_labels_chain in region where
4437 we know e->insns.r is non-NULL.
4438
4439 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
4440 rtx_insn *.
4441 (rebuild_jump_labels): Likewise.
4442 (rebuild_jump_labels_chain): Likewise for param "chain".
4443 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
4444 (init_label_info): Likewise for param "f".
4445 (maybe_propagate_label_ref): Likewise for params "jump_insn",
4446 "prev_nonjump_insn".
4447 (mark_all_labels): Likewise for param "f" and locals "insn",
4448 "prev_nonjump_insn".
4449
4450 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4451
4452 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
4453 from rtx to rtx_insn *insn.
4454 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
4455 (ira_add_allocno_copy): Likewise.
4456 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
4457 rtx to rtx_insn *.
4458 (ira_create_copy): Likewise.
4459 (ira_add_allocno_copy): Likewise.
4460 (create_bb_allocnos): Likewise for local "insn".
4461 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
4462 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
4463 process_regs_for_copy for rtx_insn * param.
4464 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
4465 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
4466 process_regs_for_copy for rtx_insn * param.
4467 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
4468 * ira-costs.c (record_reg_classes): Likewise for param "insn".
4469 (record_operand_costs): Likewise.
4470 (scan_one_insn): Likewise for return type, and for param "insn".
4471 (process_bb_for_costs): Likewise for local "insn".
4472 (process_bb_node_for_hard_reg_moves): Likewise.
4473 * ira-emit.c (struct move): Likewise for field "insn".
4474 (create_move): Eliminate use of NULL_RTX when dealing with an
4475 rtx_insn *.
4476 (emit_move_list): Strengthen return type and locals "result",
4477 "insn" from rtx to rtx_insn *insn.
4478 (emit_moves): Likewise for locals "insns", "tmp".
4479 (ira_emit): Likewise for local "insn".
4480 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
4481 "insn".
4482 (find_call_crossed_cheap_reg): Likewise.
4483 (process_bb_node_lives): Likewise for local "insn".
4484 * ira.c (decrease_live_ranges_number): Likewise.
4485 (compute_regs_asm_clobbered): Likewise.
4486 (build_insn_chain): Likewise.
4487 (find_moveable_pseudos): Likewise, also locals "def_insn",
4488 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
4489 to rtx_insn **. Add a checked cast when assigning from
4490 "closest_use" into closest_uses array in a region where we know
4491 it's a non-NULL insn.
4492 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
4493 to rtx_insn *.
4494 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
4495 "last_interesting_insn", "uin".
4496 (move_unallocated_pseudos): Likewise for locals "def_insn",
4497 "move_insn", "newinsn".
4498
4499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4500
4501 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
4502 Strengthen locals "done_label", "do_error" from rtx to
4503 rtx_code_label *.
4504 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
4505 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
4506 rtx_code_label *.
4507 (ubsan_expand_si_overflow_neg_check): Likewise for locals
4508 "done_label", "do_error" to rtx_code_label * and local "last" to
4509 rtx_insn *.
4510 (ubsan_expand_si_overflow_mul_check): Likewise for locals
4511 "done_label", "do_error", "large_op0", "small_op0_large_op1",
4512 "one_small_one_large", "both_ops_large", "after_hipart_neg",
4513 "after_lopart_neg", "do_overflow", "hipart_different" to
4514 rtx_code_label * and local "last" to rtx_insn *.
4515
4516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4517
4518 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
4519 "insn" and "move_insn" from rtx to rtx_insn *.
4520
4521 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4522
4523 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
4524 rtx_insn *.
4525 (cheap_bb_rtx_cost_p): Likewise.
4526 (first_active_insn): Likewise for return type and local "insn".
4527 (last_active_insn): Likewise for return type and locals "insn",
4528 "head".
4529 (struct noce_if_info): Likewise for fields "jump", "insn_a",
4530 "insn_b".
4531 (end_ifcvt_sequence): Likewise for return type and locals "insn",
4532 "seq".
4533 (noce_try_move): Likewise for local "seq".
4534 (noce_try_store_flag): Likewise.
4535 (noce_try_store_flag_constants): Likewise.
4536 (noce_try_addcc): Likewise.
4537 (noce_try_store_flag_mask): Likewise.
4538 (noce_try_cmove): Likewise.
4539 (noce_try_minmax): Likewise.
4540 (noce_try_abs): Likewise.
4541 (noce_try_sign_mask): Likewise.
4542 (noce_try_bitop): Likewise.
4543 (noce_can_store_speculate_p): Likewise for local "insn".
4544 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
4545 seq".
4546 (check_cond_move_block): Likewise for local "insn".
4547 (cond_move_convert_if_block): Likewise.
4548 (cond_move_process_if_block): Likewise for locals "seq",
4549 "loc_insn".
4550 (noce_find_if_block): Likewise for local "jump".
4551 (merge_if_block): Likewise for local "last".
4552 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4553 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4554 (block_has_only_trap): Likewise for return type and local "trap".
4555 (find_if_case_1): Likewise for local "jump".
4556 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4557 "insn".
4558
4559 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4560
4561 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4562 "last_insn", "loop_end" from rtx to rtx_insn *.
4563
4564 * hw-doloop.c (scan_loop): Likewise for local "insn".
4565 (discover_loop): Likewise for param "tail_insn".
4566 (discover_loops): Likewise for local "tail".
4567
4568 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4569 cast to rtx_insn * when assigning from an rtx local to a
4570 hwloop_info's "last_insn" field.
4571
4572 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4573
4574 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4575 (add_delay_dependencies): Strengthen local "pro" from rtx to
4576 rtx_insn *.
4577 (recompute_todo_spec): Likewise.
4578 (dep_cost_1): Likewise for locals "insn", "used".
4579 (schedule_insn): Likewise for local "dbg".
4580 (schedule_insn): Likewise for locals "pro", "next".
4581 (unschedule_insns_until): Likewise for local "con".
4582 (restore_pattern): Likewise for local "next".
4583 (estimate_insn_tick): Likewise for local "pro".
4584 (resolve_dependencies): Likewise for local "next".
4585 (fix_inter_tick): Likewise.
4586 (fix_tick_ready): Likewise for local "pro".
4587 (add_to_speculative_block): Likewise for locals "check", "twin",
4588 "pro".
4589 (sched_extend_bb): Likewise for locals "end", "insn".
4590 (init_before_recovery): Likewise for local "x".
4591 (sched_create_recovery_block): Likewise for local "barrier".
4592 (create_check_block_twin): Likewise for local "pro".
4593 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4594 "consumer".
4595 (unlink_bb_notes): Update for change to type of bb_header.
4596 Strengthen locals "prev", "label", "note", "next" from rtx to
4597 rtx_insn *.
4598 (clear_priorities): Likewise for local "pro".
4599
4600 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4601
4602 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4603 rtx_insn *.
4604 (test_insn): Likewise for this global.
4605 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4606 const rtx_insn *.
4607 (oprs_anticipatable_p): Likewise.
4608 (oprs_available_p): Likewise.
4609 (insert_expr_in_table): Strengthen param "insn" from rtx to
4610 rtx_insn *.
4611 (hash_scan_set): Likewise.
4612 (hash_scan_clobber): Likewise.
4613 (hash_scan_call): Likewise.
4614 (hash_scan_insn): Likewise.
4615 (compute_hash_table_work): Likewise for local "insn".
4616 (process_insert_insn): Likewise for return type and local "pat".
4617 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4618 "pat", "pat_end", "maybe_cc0_setter".
4619 (pre_edge_insert): Likewise for local "insn".
4620 (pre_insert_copy_insn): Likewise for param "insn".
4621 (pre_insert_copies): Likewise for local "insn".
4622 (struct set_data): Likewise for field "insn".
4623 (single_set_gcse): Likewise for param "insn".
4624 (gcse_emit_move_after): Likewise.
4625 (pre_delete): Likewise for local "insn".
4626 (update_bb_reg_pressure): Likewise for param "from" and local
4627 "insn".
4628 (should_hoist_expr_to_dom): Likewise for param "from".
4629 (hoist_code): Likewise for local "insn".
4630 (get_pressure_class_and_nregs): Likewise for param "insn".
4631 (calculate_bb_reg_pressure): Likewise for local "insn".
4632 (compute_ld_motion_mems): Likewise.
4633
4634 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4635
4636 * genpeep.c (main): Rename param back from "uncast_ins1" to
4637 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4638 checked cast.
4639
4640 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4641
4642 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4643
4644 PR target/62195
4645 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4646 documentation to state it is only for VSX operations.
4647
4648 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4649 constraint only active if VSX.
4650
4651 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4652 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4653 (lfiwzx): Likewise.
4654
4655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4656
4657 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4658 Strengthen local "insn" from rtx to rtx_insn *.
4659 (use_killed_between): Likewise for param "target_insn".
4660 (all_uses_available_at): Likewise for param "target_insn" and
4661 local "next".
4662 (update_df_init): Likewise for params "def_insn", "insn".
4663 (update_df): Likewise for param "insn".
4664 (try_fwprop_subst): Likewise for param "def_insn" and local
4665 "insn".
4666 (free_load_extend): Likewise for param "insn".
4667 (forward_propagate_subreg): Likewise for param "def_insn" and
4668 local "use_insn".
4669 (forward_propagate_asm): Likewise for param "def_insn" and local
4670 "use_insn".
4671 (forward_propagate_and_simplify): Likewise for param "def_insn"
4672 and local "use_insn".
4673 (forward_propagate_into): Likewise for locals "def_insn" and
4674 "use_insn".
4675
4676 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4677
4678 * function.c (emit_initial_value_sets): Strengthen local "seq"
4679 from rtx to rtx_insn *.
4680 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4681 local "seq".
4682 (instantiate_virtual_regs): Likewise for local "insn".
4683 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4684 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4685 (expand_function_end): Likewise for locals "insn" and "seq".
4686 (epilogue_done): Likewise for local "insn".
4687 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4688 "last", "trial".
4689 (reposition_prologue_and_epilogue_notes): Likewise for locals
4690 "insn", "last", "note", "first".
4691 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4692 (pass_match_asm_constraints::execute): Likewise for local "insn".
4693
4694 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4695
4696 * output.h (final_scan_insn): Strengthen return type from rtx to
4697 rtx_insn *.
4698 (final_forward_branch_p): Likewise for param.
4699 (current_output_insn): Likewise for this global.
4700
4701 * final.c (rtx debug_insn): Likewise for this variable.
4702 (current_output_insn): Likewise.
4703 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4704 adding "insn" back in as an rtx_insn * with a checked cast, so
4705 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4706 first param.
4707 (compute_alignments): Strengthen local "label" from rtx to
4708 rtx_insn *.
4709 (shorten_branches): Rename param from "first" to "uncast_first",
4710 introducing a new local rtx_insn * "first" using a checked cast to
4711 effectively strengthen "first" from rtx to rtx_insn * without
4712 affecting the type signature. Strengthen locals "insn", "seq",
4713 "next", "label" from rtx to rtx_insn *.
4714 (change_scope): Strengthen param "orig_insn" and local "insn" from
4715 rtx to rtx_insn *.
4716 (final_start_function): Rename param from "first" to "uncast_first",
4717 introducing a new local rtx_insn * "first" using a checked cast to
4718 effectively strengthen "first" from rtx to rtx_insn * without
4719 affecting the type signature. Strengthen local "insn" from rtx to
4720 rtx_insn *.
4721 (dump_basic_block_info): Strengthen param "insn" from rtx to
4722 rtx_insn *.
4723 (final): Rename param from "first" to "uncast_first",
4724 introducing a new local rtx_insn * "first" using a checked cast to
4725 effectively strengthen "first" from rtx to rtx_insn * without
4726 affecting the type signature. Strengthen locals "insn", "next"
4727 from rtx to rtx_insn *.
4728 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4729 rtx_insn *.
4730 (call_from_call_insn): Strengthen param "insn" from rtx to
4731 rtx_call_insn *.
4732 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4733 introducing a new local rtx_insn * "insn" using a checked cast to
4734 effectively strengthen "insn" from rtx to rtx_insn * without
4735 affecting the type signature. Strengthen return type and locals
4736 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4737 now-redundant checked cast to rtx_insn * from both invocations of
4738 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4739 introducing a local "call_insn" for use when invoking
4740 call_from_call_insn.
4741 (notice_source_line): Strengthen param "insn" from rtx to
4742 rtx_insn *.
4743 (leaf_function_p): Likewise for local "insn".
4744 (final_forward_branch_p): Likewise.
4745 (leaf_renumber_regs): Likewise for param "first".
4746 (rest_of_clean_state): Likewise for locals "insn" and "next".
4747 (self_recursive_call_p): Likewise for param "insn".
4748 (collect_fn_hard_reg_usage): Likewise for local "insn".
4749 (get_call_fndecl): Likewise for param "insn".
4750 (get_call_cgraph_rtl_info): Likewise.
4751 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4752 introducing a new local rtx_insn * "insn" using a checked cast to
4753 effectively strengthen "insn" from rtx to rtx_insn * without
4754 affecting the type signature.
4755
4756 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4757 cast when assigning from param "insn" to current_output_insn.
4758 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4759 so that we can assign it back to current_output_insn.
4760
4761 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4762
4763 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4764 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4765 atmxt540s and atmxt540sreva devices.
4766 * config/avr/avr-tables.opt: Regenerate.
4767 * config/avr/t-multilib: Regenerate.
4768 * doc/avr-mmcu.texi: Regenerate.
4769
4770 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4771
4772 * expr.c (convert_move): Strengthen local "insns" from rtx to
4773 rtx_insn *.
4774 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4775 "top_label" from rtx to rtx_code_label *.
4776 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4777 rtx_insn *.
4778 (emit_single_push_insn): Likewise for locals "prev", "last".
4779 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4780 to rtx_code_label *.
4781 (store_constructor): Likewise for locals "loop_start", "loop_end".
4782 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4783 rtx_insn *.
4784 (expand_expr_real_2): Likewise.
4785 (expand_expr_real_1): Strengthen local "label" from rtx to
4786 rtx_code_label *.
4787
4788 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4789
4790 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4791 from rtx to rtx_insn *.
4792 (store_bit_field_1): Likewise.
4793 (extract_bit_field_1): Likewise.
4794 (expand_mult_const): Likewise for local "insns".
4795 (expmed_mult_highpart): Strengthen local "label" from rtx to
4796 rtx_code_label *.
4797 (expand_smod_pow2): Likewise.
4798 (expand_sdiv_pow2): Likewise.
4799 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4800 rtx_insn *. Strengthen locals "label", "label1", "label2",
4801 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4802 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4803 (emit_store_flag): Likewise.
4804 (emit_store_flag_force): Strengthen local "label" from rtx to
4805 rtx_code_label *.
4806 (do_cmp_and_jump): Likewise for param "label".
4807
4808 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4809
4810 * explow.c (force_reg): Strengthen local "insn" from rtx to
4811 rtx_insn *.
4812 (adjust_stack_1): Likewise.
4813 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4814 "final_label", "available_label", "space_available" from rtx to
4815 rtx_code_label *.
4816 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4817 (anti_adjust_stack_and_probe): Likewise.
4818
4819 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4820
4821 * except.h (sjlj_emit_function_exit_after): Strengthen param
4822 "after" from rtx to rtx_insn *. This is only called with
4823 result of get_last_insn (in function.c) so type-change should be
4824 self-contained.
4825
4826 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4827 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4828 to rtx_insn *. These fields are only used from except.c so this
4829 type-change should be self-contained to this patch.
4830
4831 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4832 local "last" from rtx to rtx_insn *.
4833 (dw2_build_landing_pads): Likewise for local "seq".
4834 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4835 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4836 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4837 rtx to rtx_insn *.
4838 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4839 to rtx_insn *.
4840 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4841 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4842 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4843 referring to an insn. Strengthen local "dispatch_label" from
4844 rtx to rtx_code_label *.
4845 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4846 rtx_insn *.
4847 (expand_eh_return): Strengthen local "around_label" from
4848 rtx to rtx_code_label *.
4849 (convert_to_eh_region_ranges): Strengthen locals "iter",
4850 "last_action_insn", "first_no_action_insn",
4851 "first_no_action_insn_before_switch",
4852 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4853
4854 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4855
4856 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4857 from rtx to rtx_insn *.
4858 (cached_next_real_insn): Likewise.
4859 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4860 working with insns.
4861 (dwarf2out_var_location): Strengthen locals "next_real",
4862 "next_note", "expected_next_loc_note", "last_start", "insn" from
4863 rtx to rtx_insn *.
4864
4865 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4866
4867 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4868 from rtx to rtx_insn *.
4869 (create_pseudo_cfg): Likewise for local "insn".
4870
4871 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4872
4873 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4874 from rtx to rtx_insn *.
4875 (df_bb_regno_last_def_find): Likewise.
4876
4877 * df-problems.c (df_rd_bb_local_compute): Likewise.
4878 (df_lr_bb_local_compute): Likewise.
4879 (df_live_bb_local_compute): Likewise.
4880 (df_chain_remove_problem): Likewise.
4881 (df_chain_create_bb): Likewise.
4882 (df_word_lr_bb_local_compute): Likewise.
4883 (df_remove_dead_eq_notes): Likewise for param "insn".
4884 (df_note_bb_compute): Likewise for local "insn".
4885 (simulate_backwards_to_point): Likewise.
4886 (df_md_bb_local_compute): Likewise.
4887
4888 * df-scan.c (df_scan_free_bb_info): Likewise.
4889 (df_scan_start_dump): Likewise.
4890 (df_scan_start_block): Likewise.
4891 (df_install_ref_incremental): Likewise for local "insn".
4892 (df_insn_rescan_all): Likewise.
4893 (df_reorganize_refs_by_reg_by_insn): Likewise.
4894 (df_reorganize_refs_by_insn_bb): Likewise.
4895 (df_recompute_luids): Likewise.
4896 (df_bb_refs_record): Likewise.
4897 (df_update_entry_exit_and_calls): Likewise.
4898 (df_bb_verify): Likewise.
4899
4900 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4901
4902 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4903 "first_note" from rtx to rtx_insn *.
4904 (get_node_of_insn): Likewise for param 2 "insn".
4905 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4906
4907 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4908 rtx_insn *.
4909 (mem_write_insn_p): Likewise.
4910 (mem_access_insn_p): Likewise.
4911 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4912 (def_has_ccmode_p): Likewise for param "insn".
4913 (add_cross_iteration_register_deps): Likewise for locals
4914 "def_insn" and "use_insn".
4915 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4916 (build_intra_loop_deps): Likewise for local "src_insn".
4917 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4918 to rtx_insn *.
4919 (get_node_of_insn): Likewise for param "insn".
4920
4921 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4922
4923 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4924 (deletable_insn_p): Strengthen param "insn" from rtx to
4925 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4926 find_call_stack_args, since this is guarded by CALL_P (insn).
4927 (marked_insn_p): Strengthen param "insn" from rtx to
4928 rtx_insn *.
4929 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4930 invoking find_call_stack_args, since this is guarded by
4931 CALL_P (insn).
4932 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4933 rtx_insn *; we know this is an insn since this was called by
4934 mark_nonreg_stores.
4935 (mark_nonreg_stores_2): Likewise.
4936 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4937 rtx_insn *.
4938 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4939 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4940 to rtx_insn *.
4941 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4942 from rtx to rtx_insn *.
4943 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4944 "next", "ref_insn".
4945 (delete_unmarked_insns): Likewise for locals "insn", "next".
4946 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4947 (mark_reg_dependencies): Likewise for param "insn".
4948 (rest_of_handle_ud_dce): Likewise for local "insn".
4949 (word_dce_process_block): Likewise.
4950 (dce_process_block): Likewise.
4951
4952 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4953
4954 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4955 from rtx to rtx_insn *.
4956 (struct change_cc_mode_args): Likewise for field "insn".
4957 (this_insn): Strengthen from rtx to rtx_insn *.
4958 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4959 with insn.
4960 (validate_canon_reg): Strengthen param "insn" from rtx to
4961 rtx_insn *.
4962 (canon_reg): Likewise.
4963 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4964 dealing with insn.
4965 (record_jump_equiv): Strengthen param "insn" from rtx to
4966 rtx_insn *.
4967 (try_back_substitute_reg): Likewise, also for locals "prev",
4968 "bb_head".
4969 (find_sets_in_insn): Likewise for param "insn".
4970 (canonicalize_insn): Likewise.
4971 (cse_insn): Likewise. Add a checked cast.
4972 (invalidate_from_clobbers): Likewise for param "insn".
4973 (invalidate_from_sets_and_clobbers): Likewise.
4974 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4975 dealing with insn.
4976 (cse_prescan_path): Strengthen local "insn" from rtx to
4977 rtx_insn *.
4978 (cse_extended_basic_block): Likewise for locals "insn" and
4979 "prev_insn".
4980 (cse_main): Likewise for param "f".
4981 (check_for_label_ref): Likewise for local "insn".
4982 (set_live_p): Likewise for second param ("insn").
4983 (insn_live_p): Likewise for first param ("insn") and for local
4984 "next".
4985 (cse_change_cc_mode_insn): Likewise for first param "insn".
4986 (cse_change_cc_mode_insns): Likewise for first and second params
4987 "start" and "end".
4988 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4989 and "end".
4990 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4991 "cc_src_insn".
4992
4993 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4994 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4995 Anna Tikhonova <anna.tikhonova@intel.com>
4996 Ilya Tocar <ilya.tocar@intel.com>
4997 Andrey Turetskiy <andrey.turetskiy@intel.com>
4998 Ilya Verbin <ilya.verbin@intel.com>
4999 Kirill Yukhin <kirill.yukhin@intel.com>
5000 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5001
5002 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
5003 New.
5004 * config/i386/sse.md
5005 (define_mode_iterator VI248_AVX2): Delete.
5006 (define_mode_iterator VI2_AVX2_AVX512BW): New.
5007 (define_mode_iterator VI48_AVX2): Ditto.
5008 (define_insn <shift_insn><mode>3): Delete.
5009 (define_insn "<shift_insn><mode>3<mask_name>" with
5010 VI2_AVX2_AVX512BW): New.
5011 (define_insn "<shift_insn><mode>3<mask_name>" with
5012 VI48_AVX2): Ditto.
5013
5014 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5015 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5016 Anna Tikhonova <anna.tikhonova@intel.com>
5017 Ilya Tocar <ilya.tocar@intel.com>
5018 Andrey Turetskiy <andrey.turetskiy@intel.com>
5019 Ilya Verbin <ilya.verbin@intel.com>
5020 Kirill Yukhin <kirill.yukhin@intel.com>
5021 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5022
5023 * config/i386/sse.md
5024 (define_mode_iterator VI4F_BRCST32x2): New.
5025 (define_mode_attr 64x2_mode): Ditto.
5026 (define_mode_attr 32x2mode): Ditto.
5027 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
5028 with VI4F_BRCST32x2): Ditto.
5029 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
5030 with V16FI mode iterator): Ditto.
5031 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5032 with V16FI): Ditto.
5033 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
5034 with VI8F_BRCST64x2): Ditto.
5035
5036 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5037 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5038 Anna Tikhonova <anna.tikhonova@intel.com>
5039 Ilya Tocar <ilya.tocar@intel.com>
5040 Andrey Turetskiy <andrey.turetskiy@intel.com>
5041 Ilya Verbin <ilya.verbin@intel.com>
5042 Kirill Yukhin <kirill.yukhin@intel.com>
5043 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5044
5045 * config/i386/sse.md
5046 (define_mode_iterator VI8_AVX512VL): New.
5047 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
5048
5049 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
5050
5051 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
5052 (define_mode_iterator V48_AVX512VL): New.
5053 (define_mode_iterator V12_AVX512VL): Ditto.
5054 (define_insn <avx512>_load<mode>_mask): Split into two similar
5055 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
5056 Refactor output template.
5057 (define_insn "<avx512>_store<mode>_mask"): Ditto.
5058
5059 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5060
5061 * cprop.c (struct occr): Strengthen field "insn" from rtx to
5062 rtx_insn *.
5063 (reg_available_p): Likewise for param "insn".
5064 (insert_set_in_table): Likewise.
5065 (hash_scan_set): Likewise.
5066 (hash_scan_insn): Likewise.
5067 (make_set_regs_unavailable): Likewise.
5068 (compute_hash_table_work): Likewise for local "insn".
5069 (reg_not_set_p): Strengthen param "insn" from const_rtx to
5070 const rtx_insn *.
5071 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
5072 (try_replace_reg): Likewise.
5073 (find_avail_set): Likewise.
5074 (cprop_jump): Likewise for params "setcc", "jump".
5075 (constprop_register): Likewise for param "insn".
5076 (cprop_insn): Likewise.
5077 (do_local_cprop): Likewise.
5078 (local_cprop_pass): Likewise for local "insn".
5079 (bypass_block): Likewise for params "setcc" and "jump".
5080 (bypass_conditional_jumps): Likewise for locals "setcc" and
5081 "insn".
5082 (one_cprop_pass): Likewise for local "insn".
5083
5084 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5085
5086 * compare-elim.c (struct comparison_use): Strengthen field "insn"
5087 from rtx to rtx_insn *.
5088 (struct comparison): Likewise, also for field "prev_clobber".
5089 (conforming_compare): Likewise for param "insn".
5090 (arithmetic_flags_clobber_p): Likewise.
5091 (find_flags_uses_in_insn): Likewise.
5092 (find_comparison_dom_walker::before_dom_children): Likewise for
5093 locals "insn", "next", "last_clobber".
5094 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
5095
5096 2014-08-22 David Malcolm <dmalcolm@redhat.com>
5097
5098 * combine-stack-adj.c (struct csa_reflist): Strengthen field
5099 "insn" from rtx to rtx_insn *.
5100 (single_set_for_csa): Likewise for param "insn".
5101 (record_one_stack_ref): Likewise.
5102 (try_apply_stack_adjustment): Likewise.
5103 (struct record_stack_refs_data): Likewise for field "insn".
5104 (maybe_move_args_size_note): Likewise for params "last" and "insn".
5105 (prev_active_insn_bb): Likewise for return type and param "insn".
5106 (next_active_insn_bb): Likewise.
5107 (force_move_args_size_note): Likewise for params "prev" and "last"
5108 and locals "test", "next_candidate", "prev_candidate".
5109 (combine_stack_adjustments_for_block): Strengthen locals
5110 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
5111 rtx_insn *.
5112
5113 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5114
5115 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
5116 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
5117 (subst_insn): Likewise for this variable.
5118 (added_links_insn): Likewise.
5119 (struct insn_link): Likewise for field "insn".
5120 (alloc_insn_link): Likewise for param "insn".
5121 (struct undobuf): Likewise for field "other_insn".
5122 (find_single_use): Likewise for param "insn" and local "next".
5123 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
5124 (delete_noop_moves): Likewise for locals "insn", "next".
5125 (create_log_links): Likewise for locals "insn", "use_insn".
5126 Strengthen local "next_use" from rtx * to rtx_insn **.
5127 (insn_a_feeds_b): Likewise for params "a", "b".
5128 (combine_instructions): Likewise for param "f" and locals "insn",
5129 "next", "prev", "first", "last_combined_insn", "link", "link1",
5130 "temp". Replace use of NULL_RTX with NULL when referring to
5131 insns.
5132 (setup_incoming_promotions): Likewise for param "first"
5133 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
5134 (can_combine_p): Likewise for params "insn", "i3", "pred",
5135 "pred2", "succ", "succ2" and for local "p".
5136 (combinable_i3pat): Likewise for param "i3".
5137 (cant_combine_insn_p): Likewise for param "insn".
5138 (likely_spilled_retval_p): Likewise.
5139 (adjust_for_new_dest): Likewise.
5140 (update_cfg_for_uncondjump): Likewise, also for local "insn".
5141 (try_combine): Likewise for return type and for params "i3", "i2",
5142 "i1", "i0", "last_combined_insn", and for locals "insn",
5143 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
5144 "i0_insn". Eliminate local "tem" in favor of new locals
5145 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
5146 checked cast for now to rtx_insn * on the return type of
5147 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
5148 insns.
5149 (find_split_point): Strengthen param "insn" from rtx to
5150 rtx_insn *.
5151 (simplify_set): Likewise for local "other_insn".
5152 (recog_for_combine): Likewise for param "insn".
5153 (record_value_for_reg): Likewise.
5154 (record_dead_and_set_regs_1): Likewise for local
5155 "record_dead_insn".
5156 (record_dead_and_set_regs): Likewise for param "insn".
5157 (record_promoted_value): Likewise.
5158 (check_promoted_subreg): Likewise.
5159 (get_last_value_validate): Likewise.
5160 (reg_dead_at_p): Likewise.
5161 (move_deaths): Likewise for param "to_insn".
5162 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
5163 and locals "place", "place2", "cc0_setter". Eliminate local "tem
5164 in favor of new locals "tem_note" and "tem_insn", the latter being
5165 an rtx_insn *.
5166 (distribute_links): Strengthen locals "place", "insn" from rtx to
5167 rtx_insn *.
5168
5169 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5170
5171 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
5172 than a const_rtx.
5173 (can_delete_label_p): Require a const rtx_code_label * rather than
5174 a const_rtx.
5175 (delete_insn): Add checked cast to rtx_code_label * when we know
5176 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
5177 rtx to rtx_insn *.
5178 (delete_insn_chain): Strengthen locals "prev" and "current" from
5179 rtx to rtx_insn *. Add a checked cast when assigning from
5180 "finish" (strengthening the params will come later). Add a
5181 checked cast to rtx_note * in region where we know
5182 NOTE_P (current).
5183 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
5184 rtx_insn *.
5185 (compute_bb_for_insn): Likewise.
5186 (free_bb_for_insn): Likewise for local "insn".
5187 (compute_bb_for_insn): Likewise.
5188 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
5189 local "insn" from rtx to rtx_insn *
5190 (flow_active_insn_p): Require a const rtx_insn * rather than a
5191 const_rtx.
5192 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
5193 rtx_insn *.
5194 (can_fallthru): Likewise for locals "insn" and "insn2".
5195 (bb_note): Likewise for local "note".
5196 (first_insn_after_basic_block_note): Likewise for local "note" and
5197 for return type.
5198 (rtl_split_block): Likewise for locals "insn" and "next".
5199 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
5200 "end".
5201 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
5202 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
5203 "prev", "tmp".
5204 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
5205 them), "kill_from", "barrier", "new_insn".
5206 (patch_jump_insn): Likewise for params "insn", "old_label".
5207 (redirect_branch_edge): Likewise for locals "old_label", "insn".
5208 (force_nonfallthru_and_redirect): Likewise for locals "insn",
5209 "old_label", "new_label".
5210 (rtl_tidy_fallthru_edge): Likewise for local "q".
5211 (rtl_split_edge): Likewise for locals "before", "last".
5212 (commit_one_edge_insertion): Likewise for locals "before",
5213 "after", "insns", "tmp", "last", adding a checked cast where
5214 currently necessary.
5215 (commit_edge_insertions): Likewise.
5216 (rtl_dump_bb): Likewise for locals "insn", "last".
5217 (print_rtl_with_bb): Likewise for local "x".
5218 (rtl_verify_bb_insns): Likewise for local "x".
5219 (rtl_verify_bb_pointers): Likewise for local "insn".
5220 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
5221 "head", "end".
5222 (rtl_verify_fallthru): Likewise for local "insn".
5223 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
5224 (purge_dead_edges): Likewise for local "insn".
5225 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
5226 (skip_insns_after_block): Likewise for return type and for locals
5227 "insn", "last_insn", "next_head", "prev".
5228 (record_effective_endpoints): Likewise for locals "next_insn",
5229 "insn", "end".
5230 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
5231 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
5232 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
5233 (duplicate_insn_chain): For now, add checked cast from rtx to
5234 rtx_insn * when returning insn.
5235 (cfg_layout_duplicate_bb): Likewise for local "insn".
5236 (cfg_layout_delete_block): Likewise for locals "insn", "next",
5237 "prev", "remaints".
5238 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
5239 (rtl_block_empty_p): Likewise.
5240 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
5241 "split_point", "last".
5242 (rtl_block_ends_with_call_p): Likewise for local "insn".
5243 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
5244 const rtx_insn *.
5245 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
5246 "split_at_insn" from rtx to rtx_insn *.
5247 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
5248 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
5249 to const rtx_insn *.
5250 (rtl_account_profile_record): Likewise.
5251
5252 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5253
5254 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
5255 rtx to rtx_insn *.
5256 (average_num_loop_insns): Likewise.
5257 (init_set_costs): Likewise for local "seq".
5258 (seq_cost): Likewise for param "seq", from const_rtx to const
5259 rtx_insn *.
5260
5261 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5262
5263 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
5264 rtx to rtx_insn *.
5265
5266 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5267
5268 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
5269 "f1" and "f2" from rtx * to rtx_insn **.
5270 (flow_find_head_matching_sequence): Likewise.
5271
5272 * cfgcleanup.c (try_simplify_condjump): Strengthen local
5273 "cbranch_insn" from rtx to rtx_insn *.
5274 (thread_jump): Likewise for local "insn".
5275 (try_forward_edges): Likewise for local "last".
5276 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
5277 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
5278 "real_b_end".
5279 (can_replace_by): Likewise for params "i1", "i2".
5280 (old_insns_match_p): Likewise.
5281 (merge_notes): Likewise.
5282 (walk_to_nondebug_insn): Likewise for param "i1".
5283 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
5284 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
5285 "afterlast1", "afterlast2" from rtx to rtx_insn *.
5286 (flow_find_head_matching_sequence): Strengthen params "f1" and
5287 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
5288 "last1", "last2", "beforelast1", "beforelast2" from rtx to
5289 rtx_insn *.
5290 (outgoing_edges_match): Likewise for locals "last1", "last2".
5291 (try_crossjump_to_edge): Likewise for local "insn".
5292 Replace call to for_each_rtx with for_each_rtx_in_insn.
5293
5294 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
5295 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
5296 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
5297 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
5298 (try_optimize_cfg): Strengthen local "last" from rtx to
5299 rtx_insn *.
5300 (delete_dead_jumptables): Likewise for locals "insn", "next",
5301 "label".
5302
5303 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
5304 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
5305 "rtx else_first_tail", to reflect the basic-block.h changes above.
5306
5307 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5308
5309 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
5310 rtx_insn *.
5311 (purge_dead_tablejump_edges): Likewise.
5312 (find_bb_boundaries): Likewise for locals "insn", "end",
5313 "flow_transfer_insn".
5314
5315 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5316
5317 * caller-save.c (save_call_clobbered_regs): Strengthen locals
5318 "ins" and "prev" from rtx to rtx_insn *.
5319
5320 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5321
5322 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
5323 rtx_insn *.
5324 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
5325 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
5326 "scan_start".
5327 (load_register_parameters): Likewise for local "before_arg".
5328 (check_sibcall_argument_overlap): Likewise for param "insn".
5329 (expand_call): Likewise for locals "normal_call_insns",
5330 "tail_call_insns", "insns", "before_call", "after_args",
5331 "before_arg", "last", "prev". Strengthen one of the "last" from
5332 rtx to rtx_call_insn *.
5333 (fixup_tail_calls): Strengthen local "insn" from rtx to
5334 rtx_insn *.
5335 (emit_library_call_value_1): Likewise for locals "before_call" and
5336 "last".
5337
5338 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5339
5340 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
5341 and "last" from rtx to rtx_insn *.
5342 (expand_builtin_nonlocal_goto): Likewise for local "insn".
5343 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
5344 rtx_call_insn *.
5345 (expand_errno_check): Strengthen local "lab" from rtx to
5346 rtx_code_label *.
5347 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
5348 rtx_insn *.
5349 (expand_builtin_mathfn_2): Likewise.
5350 (expand_builtin_mathfn_ternary): Likewise.
5351 (expand_builtin_mathfn_3): Likewise.
5352 (expand_builtin_interclass_mathfn): Likewise for local "last".
5353 (expand_builtin_int_roundingfn): Likewise for local "insns".
5354 (expand_builtin_int_roundingfn_2): Likewise.
5355 (expand_builtin_strlen): Likewise for local "before_strlen".
5356 (expand_builtin_strncmp): Likewise for local "seq".
5357 (expand_builtin_signbit): Likewise for local "last".
5358 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
5359 from rtx to rtx_code_label *.
5360 (expand_stack_restore): Strengthen local "prev" from rtx to
5361 rtx_insn *.
5362
5363 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5364
5365 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
5366 to rtx_insn *.
5367 (struct btr_def_s): Likewise.
5368 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
5369 const rtx_insn *.
5370 (add_btr_def): Likewise.
5371 (new_btr_user): Likewise.
5372 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
5373 rtx to rtx_insn *.
5374 (link_btr_uses): Likewise.
5375 (move_btr_def): Likewise for locals "insp", "old_insn",
5376 "new_insn". Add checked cast to rtx_insn * for now on result of
5377 gen_move_insn.
5378 (can_move_up): Strengthen param "insn" from const_rtx to
5379 const rtx_insn *.
5380
5381 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5382
5383 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
5384 rtx_insn *.
5385 (get_uncond_jump_length): Likewise for locals "label", "jump".
5386 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
5387 "jump", "insn".
5388 (add_labels_and_missing_jumps): Likewise for local "new_jump".
5389 (fix_up_fall_thru_edges): Likewise for local "old_jump".
5390 (find_jump_block): Likewise for local "insn".
5391 (fix_crossing_conditional_branches): Likewise for locals
5392 "old_jump", "new_jump".
5393 (fix_crossing_unconditional_branches): Likewise for locals
5394 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
5395 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
5396
5397 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5398
5399 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
5400 rtx to rtx_insn *.
5401 (struct mem_insn): Likewise for field "insn".
5402 (reg_next_use): Strengthen from rtx * to rtx_insn **.
5403 (reg_next_inc_use): Likewise.
5404 (reg_next_def): Likewise.
5405 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
5406 from rtx to rtx_insn *.
5407 (move_insn_before): Likewise for param "next_insn" and local "insns".
5408 (attempt_change): Likewise for local "mov_insn".
5409 (try_merge): Likewise for param "last_insn".
5410 (get_next_ref): Likewise for return type and local "insn".
5411 Strengthen param "next_array" from rtx * to rtx_insn **.
5412 (parse_add_or_inc): Strengthen param "insn" from rtx to
5413 rtx_insn *.
5414 (find_inc): Likewise for locals "insn" and "other_insn" (three of
5415 the latter).
5416 (merge_in_block): Likewise for locals "insn", "curr",
5417 "other_insn".
5418 (pass_inc_dec::execute): Update allocations of the arrays to
5419 reflect the stronger types.
5420
5421 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5422
5423 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
5424 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
5425 from rtx to rtx_code_label *.
5426
5427 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5428
5429 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
5430 to rtx_insn *.
5431
5432 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
5433
5434 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
5435 generated a warning and prevented bootstrapping the compiler.
5436
5437 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5438
5439 * rtl.h (delete_related_insns): Strengthen return type from rtx to
5440 rtx_insn *.
5441
5442 * jump.c (delete_related_insns): Likewise, also for locals "next"
5443 and "prev".
5444
5445 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5446
5447 * genautomata.c (output_internal_insn_latency_func): When writing
5448 the function "internal_insn_latency" to insn-automata.c,
5449 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
5450 allowing the optional guard function of (define_bypass) clauses to
5451 expect a pair of rtx_insn *, rather than a pair of rtx.
5452 (output_insn_latency_func): When writing the function
5453 "insn_latency", add an "uncast_" prefix to params "insn" and
5454 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
5455 using checked casts from the params, thus enabling the above
5456 change to the generated "internal_insn_latency" function.
5457
5458 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
5459
5460 PR tree-optimization/62091
5461 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
5462 handle correctly arrays.
5463 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
5464 inheritance binfos.
5465 (record_known_type): Walk into inner type.
5466 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
5467 condition on no type changes.
5468
5469 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5470
5471 * genattrtab.c (write_attr_get): Within the generated get_attr_
5472 functions, rename param "insn" to "uncast_insn" and reintroduce
5473 "insn" as an local rtx_insn * using a checked cast, so that "insn"
5474 is an rtx_insn * within insn-attrtab.c
5475
5476 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5477
5478 * output.h (peephole): Strengthen return type from rtx to
5479 rtx_insn *.
5480 * rtl.h (delete_for_peephole): Likewise for both params.
5481 * genpeep.c (main): In generated "peephole" function, strengthen
5482 return type and local "insn" from rtx to rtx_insn *. For now,
5483 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
5484 rtx_insn *, with a checked cast.
5485 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
5486 locals "insn", "next", "prev" from rtx to rtx_insn *.
5487
5488 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
5489
5490 PR tree-optimization/62112
5491 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
5492 * gimple-iterator.h (gsi_replace): Return bool.
5493 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
5494 moved from ref_may_alias_global_p.
5495 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
5496 New overloads.
5497 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
5498 (stmt_kills_ref_p_1): Rename...
5499 (stmt_kills_ref_p): ... to this.
5500 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
5501 stmt_kills_ref_p): Declare.
5502 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
5503 Move the self-assignment case...
5504 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
5505
5506 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5507
5508 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
5509
5510 * emit-rtl.c (try_split): Likewise, also for locals "before" and
5511 "after". For now, don't strengthen param "trial", which requires
5512 adding checked casts when returning it.
5513
5514 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5515
5516 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
5517 "label" from rtx to rtx_code_label *. Strengthen param 1 of
5518 "var_location" hook from rtx to rtx_insn *.
5519 (debug_nothing_rtx): Delete in favor of...
5520 (debug_nothing_rtx_code_label): New prototype.
5521 (debug_nothing_rtx_rtx): Delete unused prototype.
5522 (debug_nothing_rtx_insn): New prototype.
5523
5524 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
5525 invoking debug_hooks->var_location (in two places, one in a NOTE
5526 case of a switch statement, the other guarded by a CALL_P
5527 conditional. Add checked cast to rtx_code_label * when invoking
5528 debug_hooks->label (within CODE_LABEL case of switch statement).
5529
5530 * dbxout.c (dbx_debug_hooks): Update "label" hook from
5531 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5532 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
5533 (xcoff_debug_hooks): Likewise.
5534 * debug.c (do_nothing_debug_hooks): Likewise.
5535 (debug_nothing_rtx): Delete in favor of...
5536 (debug_nothing_rtx_insn): New function.
5537 (debug_nothing_rtx_rtx): Delete unused function.
5538 (debug_nothing_rtx_code_label): New function.
5539 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
5540 debug_nothing_rtx to debug_nothing_rtx_code_label.
5541 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
5542 to rtx_insn *.
5543 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
5544 debug_nothing_rtx to debug_nothing_rtx_insn.
5545 (sdbout_label): Strengthen param "insn" from rtx to
5546 rtx_code_label *.
5547 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
5548 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5549 "var_location" hook from debug_nothing_rtx to
5550 debug_nothing_rtx_insn.
5551
5552 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5553
5554 * recog.h (insn_output_fn): Update this function typedef to match
5555 the changes below to the generated output functions, strengthening
5556 the 2nd param from rtx to rtx_insn *.
5557
5558 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5559 insn when invoking an output function, to match the new signature
5560 of insn_output_fn with a stronger second param.
5561
5562 * genconditions.c (write_header): In the generated code for
5563 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5564 to match the other changes in this patch.
5565
5566 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5567 the generated "gen_" functions from rtx to rtx_insn * within their
5568 implementations.
5569
5570 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5571 the subfunctions within the generated "recog_", "split", "peephole2"
5572 function trees from rtx to rtx_insn *. For now, the top-level
5573 generated functions ("recog", "split", "peephole2") continue to
5574 take a plain rtx for "insn", to avoid introducing dependencies on
5575 other patches. Rename this 2nd param from "insn" to
5576 "uncast_insn", and reintroduce "insn" as a local variable of type
5577 rtx_insn *, initialized at the top of the generated function with
5578 a checked cast on "uncast_insn".
5579 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5580 the generated "gen_" functions from rtx to rtx_insn * within their
5581 prototypes.
5582
5583 * genoutput.c (process_template): Strengthen the 2nd param within
5584 the generated "output_" functions "insn" from rtx to rtx_insn *.
5585
5586 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5587
5588 * tree-profile.c (tree_profiling): Skip external functions
5589 when doing coverage instrumentation.
5590 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5591
5592 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5593
5594 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5595 (vec_mergee): Likewise.
5596 (vec_mergeo): Likewise.
5597 (vec_cntlz): Likewise.
5598 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5599 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5600 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5601 VMRGEW, and VMRGOW.
5602 * doc/extend.texi: Document various forms of vec_cpsgn,
5603 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5604 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5605 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5606 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5607 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5608
5609 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5610
5611 * config/rs6000/rs6000.c (context.h): New include.
5612 (tree-pass.h): Likewise.
5613 (make_pass_analyze_swaps): New decl.
5614 (rs6000_option_override): Register pass_analyze_swaps.
5615 (swap_web_entry): New subsclass of web_entry_base (df.h).
5616 (special_handling_values): New enum.
5617 (union_defs): New function.
5618 (union_uses): Likewise.
5619 (insn_is_load_p): Likewise.
5620 (insn_is_store_p): Likewise.
5621 (insn_is_swap_p): Likewise.
5622 (rtx_is_swappable_p): Likewise.
5623 (insn_is_swappable_p): Likewise.
5624 (chain_purpose): New enum.
5625 (chain_contains_only_swaps): New function.
5626 (mark_swaps_for_removal): Likewise.
5627 (swap_const_vector_halves): Likewise.
5628 (adjust_subreg_index): Likewise.
5629 (permute_load): Likewise.
5630 (permute_store): Likewise.
5631 (handle_special_swappables): Likewise.
5632 (replace_swap_with_copy): Likewise.
5633 (dump_swap_insn_table): Likewise.
5634 (rs6000_analyze_swaps): Likewise.
5635 (pass_data_analyze_swaps): New pass_data.
5636 (pass_analyze_swaps): New rtl_opt_pass.
5637 (make_pass_analyze_swaps): New function.
5638 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5639
5640 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5641
5642 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5643 type from rtx to rtx_insn *.
5644 (create_copy_of_insn_rtx): Likewise.
5645 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5646 (create_copy_of_insn_rtx): Likewise, also for local "res".
5647
5648 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5649
5650 * rtl.h (find_first_parameter_load): Strengthen return type from
5651 rtx to rtx_insn *.
5652 * rtlanal.c (find_first_parameter_load): Strengthen return type
5653 from rtx to rtx_insn *. Add checked cast for now, to postpone
5654 strengthening the params.
5655
5656 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5657
5658 PR fortran/44054
5659 * diagnostic.c: Set default caret.
5660 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5661 line is needed.
5662 * diagnostic.h (struct diagnostic_context):
5663
5664 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5665
5666 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5667 (sel_bb_head): Strengthen return type insn_t (currently just an
5668 rtx) to rtx_insn *.
5669 (sel_bb_end): Likewise.
5670
5671 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5672 (sel_bb_head): Strengthen return type and local "head" from
5673 insn_t (currently just an rtx) to rtx_insn *.
5674 (sel_bb_end): Likewise for return type.
5675 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5676 working with insn.
5677
5678 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5679
5680 * basic-block.h (get_last_bb_insn): Strengthen return type from
5681 rtx to rtx_insn *.
5682 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5683 end".
5684
5685 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5686
5687 PR fortran/44054
5688 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5689 to here ...
5690 (diagnostic_report_diagnostic): ... from here.
5691 * toplev.c (general_init): Move code to c-family.
5692
5693 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5694
5695 * df.h (web_entry_base): Replace existing struct web_entry with a
5696 new class web_entry_base with only the predecessor member.
5697 (unionfind_root): Remove declaration and move to class member.
5698 (unionfind_union): Remove declaration and move to friend
5699 function.
5700 (union_defs): Remove declaration.
5701 * web.c (web_entry_base::unionfind_root): Modify to be member
5702 function and adjust accessors.
5703 (unionfind_union): Modify to be friend function and adjust
5704 accessors.
5705 (web_entry): New subclass of web_entry_base containing the reg
5706 member.
5707 (union_match_dups): Modify for struct -> class changes.
5708 (union_defs): Likewise.
5709 (entry_register): Likewise.
5710 (pass_web::execute): Likewise.
5711
5712 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5713
5714 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5715 builtin define __VEC_ELEMENT_REG_ORDER__.
5716
5717 2014-08-20 Martin Jambor <mjambor@suse.cz>
5718 Wei Mi <wmi@google.com>
5719
5720 PR ipa/60449
5721 PR middle-end/61776
5722 * tree-ssa-operands.c (update_stmt_operands): Remove
5723 MODIFIED_NORETURN_CALLS.
5724 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5725 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5726 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5727 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5728 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5729 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5730 (gimple_call_set_ctrl_altering): New func.
5731 (gimple_call_ctrl_altering_p): Ditto.
5732 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5733 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5734 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5735 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5736 remove MODIFIED_NORETURN_CALLS.
5737
5738 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5739
5740 * coverage.c (coverage_compute_profile_id): Return non-0;
5741 also handle symbols with unique name.
5742 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5743
5744 2014-08-20 Steve Ellcey <sellcey@mips.com>
5745
5746 PR middle-end/49191
5747 * doc/sourcebuild.texi (non_strict_align): New.
5748
5749 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5750
5751 * cgraphunit.c (ipa_passes, compile): Reshedule
5752 symtab_remove_unreachable_nodes passes; update comments.
5753 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5754 TODO_remove_functions before the pass; the functions ought to be
5755 already removed.
5756 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5757 TODO_remove_functions.
5758 * passes.c (pass_data_early_local_passes): Do not schedule function
5759 removal.
5760 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5761
5762 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5763
5764 PR c/59304
5765 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5766 before setting the option.
5767 * diagnostic.c (diagnostic_classify_diagnostic): Record
5768 command-line status.
5769
5770 2014-08-20 Richard Biener <rguenther@suse.de>
5771
5772 PR lto/62190
5773 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5774 to build uint{16,32,64}_type_node.
5775
5776 2014-08-20 Terry Guo <terry.guo@arm.com>
5777
5778 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5779 with immediate_operand.
5780
5781 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5782
5783 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5784 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5785 NULL.
5786
5787 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5788
5789 PR preprocessor/51303
5790 * incpath.c (remove_duplicates): Use cpp_warning.
5791
5792 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5793
5794 PR c/60975
5795 PR c/53063
5796 * doc/options.texi (CPP): Document it.
5797 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5798 * optc-gen.awk: Handle CPP.
5799 * opth-gen.awk: Likewise.
5800
5801 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5802
5803 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5804 rtx_insn *.
5805 (duplicate_insn_chain): Likewise.
5806 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5807 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5808 checked cast for now (until we can strengthen the params in the
5809 same way).
5810 (duplicate_insn_chain): Likewise.
5811
5812 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5813
5814 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5815 rtx_insn *.
5816 (prev_cc0_setter): Likewise.
5817
5818 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5819 rtx_insn *, adding checked casts for now as necessary.
5820 (prev_cc0_setter): Likewise.
5821
5822 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5823
5824 * expr.h (emit_move_insn): Strengthen return type from rtx to
5825 rtx_insn *.
5826 (emit_move_insn_1): Likewise.
5827 (emit_move_complex_push): Likewise.
5828 (emit_move_complex_parts): Likewise.
5829
5830 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5831 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5832 with insns.
5833 (emit_move_complex_push): Strengthen return type from rtx to
5834 rtx_insn *.
5835 (emit_move_complex): Likewise, also for local "ret".
5836 (emit_move_ccmode): Likewise.
5837 (emit_move_multi_word): Likewise for return type and locals
5838 "last_insn", "seq".
5839 (emit_move_insn_1): Likewise for return type and locals "result",
5840 "ret".
5841 (emit_move_insn): Likewise for return type and local "last_insn".
5842 (compress_float_constant): Likewise.
5843
5844 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5845
5846 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5847 from rtx to rtx_insn *.
5848
5849 * rtl.h (emit_insn_before): Likewise.
5850 (emit_insn_before_noloc): Likewise.
5851 (emit_insn_before_setloc): Likewise.
5852 (emit_jump_insn_before): Likewise.
5853 (emit_jump_insn_before_noloc): Likewise.
5854 (emit_jump_insn_before_setloc): Likewise.
5855 (emit_call_insn_before): Likewise.
5856 (emit_call_insn_before_noloc): Likewise.
5857 (emit_call_insn_before_setloc): Likewise.
5858 (emit_debug_insn_before): Likewise.
5859 (emit_debug_insn_before_noloc): Likewise.
5860 (emit_debug_insn_before_setloc): Likewise.
5861 (emit_label_before): Likewise.
5862 (emit_insn_after): Likewise.
5863 (emit_insn_after_noloc): Likewise.
5864 (emit_insn_after_setloc): Likewise.
5865 (emit_jump_insn_after): Likewise.
5866 (emit_jump_insn_after_noloc): Likewise.
5867 (emit_jump_insn_after_setloc): Likewise.
5868 (emit_call_insn_after): Likewise.
5869 (emit_call_insn_after_noloc): Likewise.
5870 (emit_call_insn_after_setloc): Likewise.
5871 (emit_debug_insn_after): Likewise.
5872 (emit_debug_insn_after_noloc): Likewise.
5873 (emit_debug_insn_after_setloc): Likewise.
5874 (emit_label_after): Likewise.
5875 (emit_insn): Likewise.
5876 (emit_debug_insn): Likewise.
5877 (emit_jump_insn): Likewise.
5878 (emit_call_insn): Likewise.
5879 (emit_label): Likewise.
5880 (gen_clobber): Likewise.
5881 (emit_clobber): Likewise.
5882 (gen_use): Likewise.
5883 (emit_use): Likewise.
5884 (emit): Likewise.
5885
5886 (emit_barrier_before): Strengthen return type from rtx to
5887 rtx_barrier *.
5888 (emit_barrier_after): Likewise.
5889 (emit_barrier): Likewise.
5890
5891 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5892 from rtx to rtx_insn *. Add checked casts for now when converting
5893 "last" from rtx to rtx_insn *.
5894 (emit_insn_before_noloc): Likewise for return type.
5895 (emit_jump_insn_before_noloc): Likewise.
5896 (emit_call_insn_before_noloc): Likewise.
5897 (emit_debug_insn_before_noloc): Likewise.
5898 (emit_barrier_before): Strengthen return type and local "insn"
5899 from rtx to rtx_barrier *.
5900 (emit_label_before): Strengthen return type from rtx to
5901 rtx_insn *. Add checked cast for now when returning param
5902 (emit_pattern_after_noloc): Strengthen return type from rtx to
5903 rtx_insn *. Add checked casts for now when converting "last" from
5904 rtx to rtx_insn *.
5905 (emit_insn_after_noloc): Strengthen return type from rtx to
5906 rtx_insn *.
5907 (emit_jump_insn_after_noloc): Likewise.
5908 (emit_call_insn_after_noloc): Likewise.
5909 (emit_debug_insn_after_noloc): Likewise.
5910 (emit_barrier_after): Strengthen return type from rtx to
5911 rtx_barrier *.
5912 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5913 Add checked cast for now when converting "label" from rtx to
5914 rtx_insn *.
5915 (emit_pattern_after_setloc): Strengthen return type from rtx to
5916 rtx_insn *. Add checked casts for now when converting "last" from
5917 rtx to rtx_insn *.
5918 (emit_pattern_after): Strengthen return type from rtx to
5919 rtx_insn *.
5920 (emit_insn_after_setloc): Likewise.
5921 (emit_insn_after): Likewise.
5922 (emit_jump_insn_after_setloc): Likewise.
5923 (emit_jump_insn_after): Likewise.
5924 (emit_call_insn_after_setloc): Likewise.
5925 (emit_call_insn_after): Likewise.
5926 (emit_debug_insn_after_setloc): Likewise.
5927 (emit_debug_insn_after): Likewise.
5928 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5929 when converting "last" from rtx to rtx_insn *.
5930 (emit_pattern_before): Strengthen return type from rtx to
5931 rtx_insn *.
5932 (emit_insn_before_setloc): Likewise.
5933 (emit_insn_before): Likewise.
5934 (emit_jump_insn_before_setloc): Likewise.
5935 (emit_jump_insn_before): Likewise.
5936 (emit_call_insn_before_setloc): Likewise.
5937 (emit_call_insn_before): Likewise.
5938 (emit_debug_insn_before_setloc): Likewise.
5939 (emit_debug_insn_before): Likewise.
5940 (emit_insn): Strengthen return type and locals "last", "insn",
5941 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5942 within cases where we know we have an insn.
5943 (emit_debug_insn): Likewise.
5944 (emit_jump_insn): Likewise.
5945 (emit_call_insn): Strengthen return type and local "insn" from rtx
5946 to rtx_insn *.
5947 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5948 a checked cast to rtx_insn * for now on "label".
5949 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5950 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5951 (emit_use): Likewise.
5952 (gen_use): Likewise, also for local "seq".
5953 (emit): Likewise for return type and local "insn".
5954 (rtx_insn): Likewise for return type and local "new_rtx".
5955
5956 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5957 from rtx to rtx_barrier *.
5958
5959 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5960 changed return type from rtx to rtx_insn *, we must update
5961 "emit_fn" type, and this in turn means updating...
5962 (frame_insn): ...this. Strengthen return type from rtx to
5963 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5964
5965 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5966
5967 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5968 rtx to rtx_jump_table_data *. Also for local.
5969 * rtl.h (emit_jump_table_data): Likewise.
5970
5971 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5972
5973 * basic-block.h (create_basic_block_structure): Strengthen third
5974 param "bb_note" from rtx to rtx_note *.
5975 * rtl.h (emit_note_before): Strengthen return type from rtx to
5976 rtx_note *.
5977 (emit_note_after): Likewise.
5978 (emit_note): Likewise.
5979 (emit_note_copy): Likewise. Also, strengthen param similarly.
5980 * function.h (struct rtl_data): Strengthen field
5981 "x_stack_check_probe_note" from rtx to rtx_note *.
5982
5983 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5984 from rtx to rtx_note *.
5985 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5986 "bb_note" from rtx to rtx_note *.
5987 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5988 when calling emit_note_copy.
5989 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5990 rtx_note *.
5991 (emit_note_after): Likewise.
5992 (emit_note_before): Likewise.
5993 (emit_note_copy): Likewise. Also, strengthen param similarly.
5994 (emit_note): Likewise.
5995 * except.c (emit_note_eh_region_end): Likewise for return type.
5996 Strengthen local "next" from rtx to rtx_insn *.
5997 (convert_to_eh_region_ranges): Strengthen local "note"
5998 from rtx to rtx_note *.
5999 * final.c (change_scope): Likewise.
6000 (reemit_insn_block_notes): Likewise, for both locals named "note".
6001 Also, strengthen local "insn" from rtx to rtx_insn *.
6002 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
6003 rtx to rtx_note *.
6004 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
6005 strengthen local "seq" from rtx to rtx_insn *.
6006 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
6007 to rtx_note *.
6008 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
6009 vec<rtx_note *>.
6010 (get_bb_note_from_pool): Strengthen return type from rtx to
6011 rtx_note *.
6012 (sel_create_basic_block): Strengthen local "new_bb_note" from
6013 insn_t to rtx_note *.
6014 * var-tracking.c (emit_note_insn_var_location): Strengthen local
6015 "note" from rtx to rtx_note *.
6016 (emit_notes_in_bb): Likewise.
6017
6018 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6019
6020 * function.h (struct rtl_data): Strengthen field
6021 "x_parm_birth_insn" from rtx to rtx_insn *.
6022 * function.c (struct assign_parm_data_all): Strengthen fields
6023 "first_conversion_insn" and "last_conversion_insn" from rtx to
6024 rtx_insn *.
6025
6026 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6027
6028 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
6029 to rtx_insn *; also for local "var_end_seq".
6030 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
6031 (maybe_cleanup_end_of_block): Likewise for param "last" and local
6032 "insn".
6033 (expand_gimple_cond): Likewise for locals "last2" and "last".
6034 (mark_transaction_restart_calls): Likewise for local "insn".
6035 (expand_gimple_stmt): Likewise for return type and locals "last"
6036 and "insn".
6037 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
6038 (avoid_complex_debug_insns): Likewise for param "insn".
6039 (expand_debug_locations): Likewise for locals "insn", "last",
6040 "prev_insn" and "insn2".
6041 (expand_gimple_basic_block): Likewise for local "last".
6042 (construct_exit_block): Likewise for locals "head", "end",
6043 "orig_end".
6044 (pass_expand::execute): Likewise for locals "var_seq",
6045 "var_ret_seq", "next".
6046
6047 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6048
6049 * asan.h (asan_emit_stack_protection): Strengthen return type from
6050 rtx to rtx_insn *.
6051 * asan.c (asan_emit_stack_protection): Likewise. Add local
6052 "insns" to hold the return value.
6053
6054 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6055
6056 * basic-block.h (bb_note): Strengthen return type from rtx to
6057 rtx_note *.
6058 * sched-int.h (bb_note): Likewise.
6059 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
6060
6061 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6062
6063 * rtl.h (make_insn_raw): Strengthen return type from rtx to
6064 rtx_insn *.
6065
6066 * emit-rtl.c (make_insn_raw): Strengthen return type and local
6067 "insn" from rtx to rtx_insn *.
6068 (make_debug_insn_raw): Strengthen return type from rtx to
6069 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
6070 (make_jump_insn_raw): Strengthen return type from rtx to
6071 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
6072 (make_call_insn_raw): Strengthen return type from rtx to
6073 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
6074 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
6075 callback from rtx to rtx_insn *; likewise for local "insn" and
6076 "next", adding a checked cast to rtx_insn in the relevant cases of
6077 the switch statement.
6078 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
6079 callback from rtx to rtx_insn *.
6080 (emit_pattern_after_setloc): Likewise.
6081 (emit_pattern_after): Likewise.
6082 (emit_pattern_before_setloc): Likewise.
6083 (emit_pattern_before): Likewise.
6084
6085 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6086
6087 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
6088 rtx_call_insn *.
6089 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
6090 accepting an rtx_insn *.
6091 (last_call_insn): Strengthen return type from rtx to
6092 rtx_call_insn *.
6093
6094 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6095
6096 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
6097 "insns" from rtx to rtx_insn *.
6098 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
6099 locals "insn" and "prev".
6100
6101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6102
6103 * rtl.h (tablejump_p): Strengthen third param from rtx * to
6104 rtx_jump_table_data **.
6105
6106 * cfgbuild.c (make_edges): Introduce local "table", using it in
6107 place of "tmp" for jump table data.
6108 (find_bb_boundaries): Strengthen local "table" from rtx to
6109 rtx_jump_table_data *.
6110 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6111 (outgoing_edges_match): Likewise for locals "table1" and "table2".
6112 (try_crossjump_to_edge): Likewise.
6113 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
6114 "table".
6115 (patch_jump_insn): Introduce local "table", using it in place of
6116 "tmp" for jump table data.
6117 (force_nonfallthru_and_redirect): Introduce local "table", so that
6118 call to tablejump_p can receive an rtx_jump_table_data **. Update
6119 logic around the call to overwrite "note" appropriately if
6120 tablejump_p returns non-zero.
6121 (get_last_bb_insn): Introduce local "table", using it in place of
6122 "tmp" for jump table data.
6123 * dwarf2cfi.c (create_trace_edges): Likewise.
6124
6125 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
6126 from rtx to rtx_jump_table_data *.
6127 (create_fix_barrier): Strengthen local "tmp" from rtx to
6128 rtx_jump_table_data *.
6129 (arm_reorg): Likewise for local "table".
6130
6131 * config/s390/s390.c (s390_chunkify_start): Likewise.
6132
6133 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
6134
6135 * jump.c (delete_related_insns): Strengthen local "lab_next" from
6136 rtx to rtx_jump_table_data *.
6137
6138 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
6139 rtx_jump_table_data **. Add a checked cast when writing through
6140 the pointer: we know there that local "table" is non-NULL and that
6141 JUMP_TABLE_DATA_P (table) holds.
6142 (label_is_jump_target_p): Introduce local "table", using it in
6143 place of "tmp" for jump table data.
6144
6145 2014-08-19 Marek Polacek <polacek@redhat.com>
6146
6147 PR c++/62153
6148 * doc/invoke.texi: Document -Wbool-compare.
6149
6150 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6151
6152 * rtl.h (entry_of_function): Strengthen return type from rtx to
6153 rtx_insn *.
6154 * cfgrtl.c (entry_of_function): Likewise.
6155
6156 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6157
6158 * emit-rtl.h (get_insns): Strengthen return type from rtx to
6159 rtx_insn *, adding a checked cast for now.
6160 (get_last_insn): Likewise.
6161
6162 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6163
6164 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
6165 rtx_code_label *.
6166
6167 * emit-rtl.c (gen_label_rtx): Likewise.
6168
6169 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6170
6171 * rtl.h (previous_insn): Strengthen return type from rtx to
6172 rtx_insn *.
6173 (next_insn): Likewise.
6174 (prev_nonnote_insn): Likewise.
6175 (prev_nonnote_insn_bb): Likewise.
6176 (next_nonnote_insn): Likewise.
6177 (next_nonnote_insn_bb): Likewise.
6178 (prev_nondebug_insn): Likewise.
6179 (next_nondebug_insn): Likewise.
6180 (prev_nonnote_nondebug_insn): Likewise.
6181 (next_nonnote_nondebug_insn): Likewise.
6182 (prev_real_insn): Likewise.
6183 (next_real_insn): Likewise.
6184 (prev_active_insn): Likewise.
6185 (next_active_insn): Likewise.
6186
6187 * emit-rtl.c (next_insn): Strengthen return type from rtx to
6188 rtx_insn *, adding a checked cast.
6189 (previous_insn): Likewise.
6190 (next_nonnote_insn): Likewise.
6191 (next_nonnote_insn_bb): Likewise.
6192 (prev_nonnote_insn): Likewise.
6193 (prev_nonnote_insn_bb): Likewise.
6194 (next_nondebug_insn): Likewise.
6195 (prev_nondebug_insn): Likewise.
6196 (next_nonnote_nondebug_insn): Likewise.
6197 (prev_nonnote_nondebug_insn): Likewise.
6198 (next_real_insn): Likewise.
6199 (prev_real_insn): Likewise.
6200 (next_active_insn): Likewise.
6201 (prev_active_insn): Likewise.
6202
6203 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
6204 param "stepfunc" so that it returns an rtx_insn * rather than an
6205 rtx, to track the change to prev_nonnote_insn_bb, which is the
6206 only function this is called with.
6207 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
6208
6209 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
6210
6211 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
6212 assert.
6213
6214 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6215
6216 * coretypes.h (class rtx_debug_insn): Add forward declaration.
6217 (class rtx_nonjump_insn): Likewise.
6218 (class rtx_jump_insn): Likewise.
6219 (class rtx_call_insn): Likewise.
6220 (class rtx_jump_table_data): Likewise.
6221 (class rtx_barrier): Likewise.
6222 (class rtx_code_label): Likewise.
6223 (class rtx_note): Likewise.
6224
6225 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
6226 adding the invariant DEBUG_INSN_P (X).
6227 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
6228 the invariant NONJUMP_INSN_P (X).
6229 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
6230 the invariant JUMP_P (X).
6231 (class rtx_call_insn): New, a subclass of rtx_insn, adding
6232 the invariant CALL_P (X).
6233 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
6234 invariant JUMP_TABLE_DATA_P (X).
6235 (class rtx_barrier): New, a subclass of rtx_insn, adding the
6236 invariant BARRIER_P (X).
6237 (class rtx_code_label): New, a subclass of rtx_insn, adding
6238 the invariant LABEL_P (X).
6239 (class rtx_note): New, a subclass of rtx_insn, adding
6240 the invariant NOTE_P(X).
6241 (is_a_helper <rtx_debug_insn *>::test): New.
6242 (is_a_helper <rtx_nonjump_insn *>::test): New.
6243 (is_a_helper <rtx_jump_insn *>::test): New.
6244 (is_a_helper <rtx_call_insn *>::test): New.
6245 (is_a_helper <rtx_jump_table_data *>::test): New functions,
6246 overloaded for both rtx and rtx_insn *.
6247 (is_a_helper <rtx_barrier *>::test): New.
6248 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
6249 for both rtx and rtx_insn *.
6250 (is_a_helper <rtx_note *>::test): New.
6251
6252 2014-08-19 Marek Polacek <polacek@redhat.com>
6253
6254 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
6255 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6256 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
6257 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
6258
6259 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6260
6261 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
6262 rtx_insn *. To help with transition, for now, convert from an
6263 access macro into a pair of functions: BND_TO, returning an
6264 rtx_insn *, and...
6265 (SET_BND_TO): New function, for use where BND_TO is used as an
6266 lvalue.
6267
6268 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
6269 SET_BND_TO.
6270 (BND_TO): New function, adding a checked cast.
6271 (SET_BND_TO): New function.
6272
6273 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
6274 SET_BND_TO.
6275 (compute_av_set_on_boundaries): Likewise.
6276
6277 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6278
6279 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
6280 destination if it is used in source.
6281 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
6282 (*popcount<mode>2_falsedep_1): Likewise.
6283
6284 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
6285
6286 PR other/62168
6287 * configure.ac: Set install_gold_as_default to no first.
6288 * configure: Regenerated.
6289
6290 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6291
6292 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
6293 "note_list" field will eventually be an rtx_insn *. To help with
6294 transition, for now, convert from an access macro into a pair of
6295 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
6296 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
6297 used as an lvalue.
6298
6299 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
6300 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
6301
6302 * sel-sched-ir.c (init_bb): Likewise.
6303 (sel_restore_notes): Likewise.
6304 (move_bb_info): Likewise.
6305 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
6306 (SET_BB_NOTE_LIST): New function.
6307
6308 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6309
6310 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
6311 field will eventually be an rtx_insn *. To help with transition,
6312 for now, convert from an access macro into a pair of functions:
6313 VINSN_INSN_RTX, returning an rtx_insn *, and...
6314 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
6315 is used as an lvalue.
6316
6317 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
6318 SET_VINSN_INSN_RTX where it's used as an lvalue.
6319 (VINSN_INSN_RTX): New function.
6320 (SET_VINSN_INSN_RTX): New function.
6321
6322 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6323
6324 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
6325 eventually be rtx_insn *, but to help with transition, for now,
6326 convert from an access macro into a pair of functions: DEP_PRO
6327 returning an rtx_insn * and...
6328 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
6329 lvalue, returning an rtx&.
6330 (DEP_CON): Analogous changes to DEP_PRO above.
6331 (SET_DEP_CON): Likewise.
6332
6333 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
6334 an lvalue to SET_DEP_CON.
6335 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
6336 (sd_copy_back_deps): Likewise for DEP_CON.
6337 (DEP_PRO): New function, adding a checked cast for now.
6338 (DEP_CON): Likewise.
6339 (SET_DEP_PRO): New function.
6340 (SET_DEP_CON): Likewise.
6341
6342 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6343
6344 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
6345 (extra_options): Add i386/cygwin.opt.
6346 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
6347 (CPP_SPEC): Accept -pthread.
6348 (LINK_SPEC): Ditto.
6349 (GOMP_SELF_SPECS): Update comment.
6350 * config/i386/cygwin.opt: New file for -pthread flag.
6351
6352 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6353
6354 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
6355 * df.h (DF_REF_INSN): Convert from a macro to a function, so
6356 that we can return an rtx_insn *.
6357
6358 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
6359
6360 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
6361 when building executables, not DLLs. Add --large-address-aware
6362 under the same conditions.
6363 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
6364 when building executables, not DLLs. Add --large-address-aware
6365 under the same conditions when using -m32.
6366
6367 * config/i386/cygwin-stdint.h: Throughout, make type
6368 definitions dependent on target architecture, not host.
6369
6370 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6371
6372 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
6373 the return type from rtx to rtx_insn *, which will enable various
6374 conversions in followup patches. For now this is is done by a
6375 checked cast.
6376 (NEXT_INSN): Likewise.
6377 (SET_PREV_INSN): Convert to an inline function. This is intended
6378 for use as an lvalue, and so returns an rtx& to allow in-place
6379 modification.
6380 (SET_NEXT_INSN): Likewise.
6381
6382 2014-07-08 Mark Wielaard <mjw@redhat.com>
6383
6384 PR debug/59051
6385 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
6386
6387 2014-08-19 Marek Polacek <polacek@redhat.com>
6388
6389 PR c/61271
6390 * cgraphunit.c (handle_alias_pairs): Fix condition.
6391
6392 2014-08-19 Richard Biener <rguenther@suse.de>
6393
6394 * gimple-fold.c (fold_gimple_assign): Properly build a
6395 null-pointer constant when devirtualizing addresses.
6396
6397 2014-07-07 Mark Wielaard <mjw@redhat.com>
6398
6399 * dwarf2out.c (decl_quals): New function.
6400 (modified_type_die): Take one cv_quals argument instead of two,
6401 one for const and one for volatile.
6402 (add_type_attribute): Likewise.
6403 (generic_parameter_die): Call add_type_attribute with one modifier
6404 argument.
6405 (base_type_for_mode): Likewise.
6406 (add_bounds_info): Likewise.
6407 (add_subscript_info): Likewise.
6408 (gen_array_type_die): Likewise.
6409 (gen_descr_array_type_die): Likewise.
6410 (gen_entry_point_die): Likewise.
6411 (gen_enumeration_type_die): Likewise.
6412 (gen_formal_parameter_die): Likewise.
6413 (gen_subprogram_die): Likewise.
6414 (gen_variable_die): Likewise.
6415 (gen_const_die): Likewise.
6416 (gen_field_die): Likewise.
6417 (gen_pointer_type_die): Likewise.
6418 (gen_reference_type_die): Likewise.
6419 (gen_ptr_to_mbr_type_die): Likewise.
6420 (gen_inheritance_die): Likewise.
6421 (gen_subroutine_type_die): Likewise.
6422 (gen_typedef_die): Likewise.
6423 (force_type_die): Likewise.
6424
6425 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6426
6427 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
6428 if unset.
6429 * configure: Regenerate.
6430
6431 2014-08-19 Richard Biener <rguenther@suse.de>
6432
6433 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
6434 DECL_EXTERNALs in BLOCKs as non-references.
6435 * tree-streamer-out.c (streamer_write_chain): Likewise.
6436
6437 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6438 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6439 Anna Tikhonova <anna.tikhonova@intel.com>
6440 Ilya Tocar <ilya.tocar@intel.com>
6441 Andrey Turetskiy <andrey.turetskiy@intel.com>
6442 Ilya Verbin <ilya.verbin@intel.com>
6443 Kirill Yukhin <kirill.yukhin@intel.com>
6444 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6445
6446 * config/i386/sse.md
6447 (define_mode_iterator VI48_AVX512F): Delete.
6448 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
6449 (define_mode_iterator VI2_AVX512VL): Ditto.
6450 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
6451 Delete.
6452 (define_insn
6453 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
6454 New.
6455 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
6456 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
6457 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6458 with VI48_AVX512F_AVX512VL): New.
6459 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
6460 with VI2_AVX512VL): Ditto.
6461
6462 2014-08-19 Marek Polacek <polacek@redhat.com>
6463
6464 * doc/invoke.texi: Document -Wc99-c11-compat.
6465
6466 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6467
6468 * rtl.h (PREV_INSN): Split macro in two: the existing one,
6469 for rvalues, and...
6470 (SET_PREV_INSN): New macro, for use as an lvalue.
6471 (NEXT_INSN, SET_NEXT_INSN): Likewise.
6472
6473 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
6474 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
6475 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6476 (fixup_abnormal_edges): Likewise.
6477 (unlink_insn_chain): Likewise.
6478 (fixup_reorder_chain): Likewise.
6479 (cfg_layout_delete_block): Likewise.
6480 (cfg_layout_merge_blocks): Likewise.
6481 * combine.c (update_cfg_for_uncondjump): Likewise.
6482 * emit-rtl.c (link_insn_into_chain): Likewise.
6483 (remove_insn): Likewise.
6484 (delete_insns_since): Likewise.
6485 (reorder_insns_nobb): Likewise.
6486 (emit_insn_after_1): Likewise.
6487 * final.c (rest_of_clean_state): Likewise.
6488 (final_scan_insn): Likewise.
6489 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
6490 * haifa-sched.c (concat_note_lists): Likewise.
6491 (remove_notes): Likewise.
6492 (restore_other_notes): Likewise.
6493 (move_insn): Likewise.
6494 (unlink_bb_notes): Likewise.
6495 (restore_bb_notes): Likewise.
6496 * jump.c (delete_for_peephole): Likewise.
6497 * optabs.c (emit_libcall_block_1): Likewise.
6498 * reorg.c (emit_delay_sequence): Likewise.
6499 (fill_simple_delay_slots): Likewise.
6500 * sel-sched-ir.c (sel_move_insn): Likewise.
6501 (sel_remove_insn): Likewise.
6502 (get_bb_note_from_pool): Likewise.
6503 * sel-sched.c (move_nop_to_previous_block): Likewise.
6504
6505 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
6506 * config/c6x/c6x.c (gen_one_bundle): Likewise.
6507 (c6x_gen_bundles): Likewise.
6508 (hwloop_optimize): Likewise.
6509 * config/frv/frv.c (frv_function_prologue): Likewise.
6510 (frv_register_nop): Likewise.
6511 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
6512 (ia64_reorg): Likewise.
6513 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
6514 (mep_make_bundle): Likewise.
6515 (mep_bundle_insns): Likewise.
6516 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
6517 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
6518 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
6519
6520 2014-08-19 David Malcolm <dmalcolm@redhat.com>
6521
6522 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
6523 return type from rtx to rtx_insn *.
6524 (BB_END): Likewise.
6525 (BB_HEADER): Likewise.
6526 (BB_FOOTER): Likewise.
6527 (SET_BB_HEAD): Convert to a function.
6528 (SET_BB_END): Likewise.
6529 (SET_BB_HEADER): Likewise.
6530 (SET_BB_FOOTER): Likewise.
6531
6532 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
6533 Strengthen the return type from rtx to rtx_insn *. For now, this
6534 is done by adding a checked cast, but this will eventually
6535 become a field lookup.
6536 (BB_END): Likewise.
6537 (BB_HEADER): Likewise.
6538 (BB_FOOTER): Likewise.
6539 (SET_BB_HEAD): New function, from macro of same name. This is
6540 intended for use as an lvalue, and so returns an rtx& to allow
6541 in-place modification.
6542 (SET_BB_END): Likewise.
6543 (SET_BB_HEADER): Likewise.
6544 (SET_BB_FOOTER): Likewise.
6545
6546 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6547
6548 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6549 for rvalues, and...
6550 (SET_BB_HEAD): New macro, for use as a lvalue.
6551 (BB_END, SET_BB_END): Likewise.
6552 (BB_HEADER, SET_BB_HEADER): Likewise.
6553 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6554
6555 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6556 of BB_* macros into SET_BB_* macros.
6557 (fix_crossing_unconditional_branches): Likewise.
6558 * caller-save.c (save_call_clobbered_regs): Likewise.
6559 (insert_one_insn): Likewise.
6560 * cfgbuild.c (find_bb_boundaries): Likewise.
6561 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6562 (outgoing_edges_match): Likewise.
6563 (try_optimize_cfg): Likewise.
6564 * cfgexpand.c (expand_gimple_cond): Likewise.
6565 (expand_gimple_tailcall): Likewise.
6566 (expand_gimple_basic_block): Likewise.
6567 (construct_exit_block): Likewise.
6568 * cfgrtl.c (delete_insn): Likewise.
6569 (create_basic_block_structure): Likewise.
6570 (rtl_delete_block): Likewise.
6571 (rtl_split_block): Likewise.
6572 (emit_nop_for_unique_locus_between): Likewise.
6573 (rtl_merge_blocks): Likewise.
6574 (block_label): Likewise.
6575 (try_redirect_by_replacing_jump): Likewise.
6576 (emit_barrier_after_bb): Likewise.
6577 (fixup_abnormal_edges): Likewise.
6578 (record_effective_endpoints): Likewise.
6579 (relink_block_chain): Likewise.
6580 (fixup_reorder_chain): Likewise.
6581 (fixup_fallthru_exit_predecessor): Likewise.
6582 (cfg_layout_duplicate_bb): Likewise.
6583 (cfg_layout_split_block): Likewise.
6584 (cfg_layout_delete_block): Likewise.
6585 (cfg_layout_merge_blocks): Likewise.
6586 * combine.c (update_cfg_for_uncondjump): Likewise.
6587 * emit-rtl.c (add_insn_after): Likewise.
6588 (remove_insn): Likewise.
6589 (reorder_insns): Likewise.
6590 (emit_insn_after_1): Likewise.
6591 * haifa-sched.c (get_ebb_head_tail): Likewise.
6592 (restore_other_notes): Likewise.
6593 (move_insn): Likewise.
6594 (sched_extend_bb): Likewise.
6595 (fix_jump_move): Likewise.
6596 * ifcvt.c (noce_process_if_block): Likewise.
6597 (dead_or_predicable): Likewise.
6598 * ira.c (update_equiv_regs): Likewise.
6599 * reg-stack.c (change_stack): Likewise.
6600 * sel-sched-ir.c (sel_move_insn): Likewise.
6601 * sel-sched.c (move_nop_to_previous_block): Likewise.
6602
6603 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6604 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6605
6606 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6607
6608 * rtl.h (for_each_rtx_in_insn): New function.
6609 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6610
6611 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6612
6613 * coretypes.h (class rtx_insn): Add forward declaration.
6614
6615 * rtl.h: Include is-a.h.
6616 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6617 workaround to ensure gengtype knows inheritance is occurring,
6618 whilst continuing to use the pre-existing special-casing for
6619 rtx_def.
6620 (class rtx_insn): New subclass of rtx_def, adding the
6621 invariant that we're dealing with something we can sanely use
6622 INSN_UID, NEXT_INSN, PREV_INSN on.
6623 (is_a_helper <rtx_insn *>::test): New.
6624 (is_a_helper <const rtx_insn *>::test): New.
6625
6626 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6627
6628 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6629
6630 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6631
6632 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6633 comdats as extern.
6634
6635 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6636
6637 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6638 to BUILT_IN_UNREACHABLE.
6639
6640 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6641
6642 PR target/62011
6643 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6644 New tune flag.
6645 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6646 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6647 (ffs<mode>2): Do not expand with tzcnt for
6648 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6649 (ffssi2_no_cmove): Ditto.
6650 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6651 (ctz<mode>2): New expander.
6652 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6653 (*ctz<mode>2_falsedep): New insn.
6654 (*ctz<mode>2): Rename from ctz<mode>2.
6655 (clz<mode>2_lzcnt): New expander.
6656 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6657 (*clz<mode>2_lzcnt_falsedep): New insn.
6658 (*clz<mode>2): Rename from ctz<mode>2.
6659 (popcount<mode>2): New expander.
6660 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6661 (*popcount<mode>2_falsedep): New insn.
6662 (*popcount<mode>2): Rename from ctz<mode>2.
6663 (*popcount<mode>2_cmp): Remove.
6664 (*popcountsi2_cmp_zext): Ditto.
6665
6666 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6667
6668 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6669 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6670 * config/microblaze/microblaze.h
6671 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6672
6673 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6674
6675 PR other/62168
6676 * configure.ac: Set install_gold_as_default to no for
6677 --enable-gold=no.
6678 * configure: Regenerated.
6679
6680 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6681
6682 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6683 * config.in: Add undef of HAVE_isl.
6684 * configure: Regenerate.
6685 * configure.ac: Add definition of HAVE_isl.
6686 * graphite-blocking.c: Add checking of HAVE_isl.
6687 * graphite-dependences.c: Likewise.
6688 * graphite-interchange.c: Likewise.
6689 * graphite-isl-ast-to-gimple.c: Likewise.
6690 * graphite-optimize-isl.c: Likewise.
6691 * graphite-poly.c: Likewise.
6692 * graphite-scop-detection.c: Likewise.
6693 * graphite-sese-to-poly.c: Likewise.
6694 * graphite.c: Likewise.
6695 * toplev.c: Replace the checking of HAVE_cloog with the checking
6696 of HAVE_isl.
6697
6698 2014-08-18 Richard Biener <rguenther@suse.de>
6699
6700 PR tree-optimization/62090
6701 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6702 (fold_builtin_3): Do not fold snprintf.
6703 (fold_builtin_4): Likewise.
6704 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6705 moved from builtins.c.
6706 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6707 (gimple_fold_builtin): Do not fold sprintf here.
6708
6709 2014-08-18 Richard Biener <rguenther@suse.de>
6710
6711 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6712 code to ...
6713 (maybe_canonicalize_mem_ref_addr): ... this function.
6714 (fold_stmt_1): Apply it here before all simplification.
6715
6716 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6717
6718 PR ipa/61800
6719 * cgraph.h (cgraph_node::create_indirect_edge): Add
6720 compute_indirect_info param.
6721 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6722 indirect_info only when it is required.
6723 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6724 indirect_info fore cloned indirect edge.
6725
6726 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6728 Anna Tikhonova <anna.tikhonova@intel.com>
6729 Ilya Tocar <ilya.tocar@intel.com>
6730 Andrey Turetskiy <andrey.turetskiy@intel.com>
6731 Ilya Verbin <ilya.verbin@intel.com>
6732 Kirill Yukhin <kirill.yukhin@intel.com>
6733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6734
6735 * config/i386/sse.md
6736 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6737 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6738
6739 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6740 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6741 Anna Tikhonova <anna.tikhonova@intel.com>
6742 Ilya Tocar <ilya.tocar@intel.com>
6743 Andrey Turetskiy <andrey.turetskiy@intel.com>
6744 Ilya Verbin <ilya.verbin@intel.com>
6745 Kirill Yukhin <kirill.yukhin@intel.com>
6746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6747
6748 * config/i386/sse.md
6749 (define_mode_iterator VF1_AVX512VL): New.
6750 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6751 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6752 New.
6753
6754 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6755 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6756 Anna Tikhonova <anna.tikhonova@intel.com>
6757 Ilya Tocar <ilya.tocar@intel.com>
6758 Andrey Turetskiy <andrey.turetskiy@intel.com>
6759 Ilya Verbin <ilya.verbin@intel.com>
6760 Kirill Yukhin <kirill.yukhin@intel.com>
6761 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6762
6763 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6764 * config/i386/i386.md
6765 (define_code_iterator any_float): New.
6766 (define_code_attr floatsuffix): New.
6767 * config/i386/sse.md
6768 (define_mode_iterator VF1_128_256VL): New.
6769 (define_mode_iterator VF2_512_256VL): New.
6770 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6771 TARGET check.
6772 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6773 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6774 New.
6775 (define_mode_attr qq2pssuff): New.
6776 (define_mode_attr sselongvecmode): New.
6777 (define_mode_attr sselongvecmodelower): New.
6778 (define_mode_attr sseintvecmode3): New.
6779 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6780 New.
6781 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6782 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6783 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6784 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6785
6786 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6787 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6788 Anna Tikhonova <anna.tikhonova@intel.com>
6789 Ilya Tocar <ilya.tocar@intel.com>
6790 Andrey Turetskiy <andrey.turetskiy@intel.com>
6791 Ilya Verbin <ilya.verbin@intel.com>
6792 Kirill Yukhin <kirill.yukhin@intel.com>
6793 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6794
6795 * config/i386/sse.md
6796 (define_mode_iterator VF2_AVX512VL): New.
6797 (define_mode_attr sseintvecmode2): New.
6798 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6799 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6800 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6801 (define_insn
6802 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6803 Ditto.
6804 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6805 Ditto.
6806 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6807 Ditto.
6808
6809 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6810 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6811 Anna Tikhonova <anna.tikhonova@intel.com>
6812 Ilya Tocar <ilya.tocar@intel.com>
6813 Andrey Turetskiy <andrey.turetskiy@intel.com>
6814 Ilya Verbin <ilya.verbin@intel.com>
6815 Kirill Yukhin <kirill.yukhin@intel.com>
6816 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6817
6818 * config/i386/i386.md
6819 (define_insn "*movoi_internal_avx"): Add evex version.
6820 (define_insn "*movti_internal"): Ditto.
6821
6822 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6823 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6824 Anna Tikhonova <anna.tikhonova@intel.com>
6825 Ilya Tocar <ilya.tocar@intel.com>
6826 Andrey Turetskiy <andrey.turetskiy@intel.com>
6827 Ilya Verbin <ilya.verbin@intel.com>
6828 Kirill Yukhin <kirill.yukhin@intel.com>
6829 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6830
6831 * config/i386/i386.md
6832 (define_attr "isa"): Add avx512dq, noavx512dq.
6833 (define_attr "enabled"): Ditto.
6834 * config/i386/sse.md
6835 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6836
6837 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6838 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6839 Anna Tikhonova <anna.tikhonova@intel.com>
6840 Ilya Tocar <ilya.tocar@intel.com>
6841 Andrey Turetskiy <andrey.turetskiy@intel.com>
6842 Ilya Verbin <ilya.verbin@intel.com>
6843 Kirill Yukhin <kirill.yukhin@intel.com>
6844 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6845
6846 * config/i386/i386.c
6847 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6848 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6849 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6850 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6851 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6852 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6853 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6854 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6855 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6856 * config/i386/sse.md
6857 (define_mode_iterator VMOVE): Allow V4TI mode.
6858 (define_mode_iterator V_AVX512VL): New.
6859 (define_mode_iterator V): New handling for AVX512VL.
6860 (define_insn "avx512f_load<mode>_mask"): Delete.
6861 (define_insn "<avx512>_load<mode>_mask"): New.
6862 (define_insn "avx512f_store<mode>_mask"): Delete.
6863 (define_insn "<avx512>_store<mode>_mask"): New.
6864
6865
6866 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6867
6868 PR sanitizer/62089
6869 * asan.c (instrument_derefs): Fix bitfield check.
6870
6871 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6872
6873 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6874 * config/rs6000/htm.md (ttest): Remove clobber.
6875 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6876 (and_operand): Reformat.
6877 (and_2rld_operand): New predicate.
6878 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6879 parameter.
6880 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6881 parameter. Handle AND directly.
6882 (rs6000_split_logical_di): Remove last parameter.
6883 (rs6000_split_logical): Remove last parameter. Remove obsolete
6884 comment.
6885 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6886 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6887 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6888 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6889 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6890 and 5 anonymous splitters): Delete.
6891 (and<mode>3): New expander.
6892 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6893 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6894 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6895 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6896 (floatdisf2_internal1): Remove clobbers.
6897 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6898 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6899 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6900 (and<mode>3 for BOOL_128): Remove clobber.
6901 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6902 rs6000_split_logical.
6903 (*bool<mode>3_internal for BOOL_128): Adjust call of
6904 rs6000_split_logical.
6905 (*boolc<mode>3_internal1 for BOOL_128,
6906 *boolc<mode>3_internal2 for BOOL_128,
6907 *boolcc<mode>3_internal1 for BOOL_128,
6908 *boolcc<mode>3_internal2 for BOOL_128,
6909 *eqv<mode>3_internal1 for BOOL_128,
6910 *eqv<mode>3_internal2 for BOOL_128,
6911 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6912 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6913 clobber.
6914 (*vec_reload_and_reg_<mptrsize>): Delete.
6915
6916 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6917
6918 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6919 and split, *boolccsi3_internal3 and split): Delete.
6920 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6921 *boolccdi3_internal3 and split): Delete.
6922 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6923 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6924
6925 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6926
6927 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6928 and split, *boolcsi3_internal3 and split): Delete.
6929 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6930 *boolcdi3_internal3 and split): Delete.
6931 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6932
6933 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6934
6935 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6936 <'u'>: Also support printing the low-order 16 bits.
6937 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6938 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6939 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6940 *booldi3_internal3 and split): Delete.
6941 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6942 *bool<mode>3_dot2): New.
6943 (two anonymous define_splits for non_logical_cint_operand): Merge.
6944
6945 2014-08-17 Marek Polacek <polacek@redhat.com>
6946 Manuel López-Ibáñez <manu@gcc.gnu.org>
6947
6948 PR c/62059
6949 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6950 (diagnostic_show_locus): Don't print caret diagnostic
6951 if a column is larger than the line_width.
6952
6953 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6954
6955 * common.opt: Make the ISL AST generator to be the main code generator
6956 of Graphite.
6957
6958 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6959
6960 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6961
6962 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6963
6964 PR target/61641
6965 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6966 Declare.
6967 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6968 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6969 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6970 Define.
6971 * config/pa/pa.md (begin_brtab): Delete insn.
6972 (end_brtab): Likewise.
6973
6974 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6975
6976 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6977
6978 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6979
6980 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6981 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6982 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6983 (get_dynamic_type): Remove.
6984 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6985 (clear_speculation): Bring to ipa-deivrt.h
6986 (get_class_context): Rename to ...
6987 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6988 (contains_type_p): Update.
6989 (get_dynamic_type): Rename to ...
6990 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6991 (possible_polymorphic_call_targets): UPdate.
6992 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6993 * ipa-prop.c (ipa_analyze_call_uses): Update.
6994
6995 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6996
6997 * doc/invoke.texi (SH options): Document missing processor variant
6998 options. Remove references to Hitachi. Undocument deprecated mspace
6999 option.
7000
7001 2014-08-15 Jason Merrill <jason@redhat.com>
7002
7003 * tree.c (type_hash_canon): Uncomment assert.
7004
7005 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7006
7007 * input.h (in_system_header_at): Add comment.
7008
7009 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7010
7011 PR fortran/44054
7012 * diagnostic.c (build_message_string): Make it extern.
7013 * diagnostic.h (build_message_string): Make it extern.
7014
7015 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
7016
7017 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
7018 load/store from/to non-floating class pseudo.
7019
7020 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7021
7022 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
7023
7024 2014-08-15 Richard Biener <rguenther@suse.de>
7025
7026 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
7027 (get_constraint_for_ssa_var): Remove dead code.
7028 (get_constraint_for_1): Adjust.
7029 (find_what_var_points_to): Likewise.
7030 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
7031
7032 2014-08-15 Ilya Tocar <tocarip@gmail.com>
7033
7034 PR target/61878
7035 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
7036 (_mm512_mask_cmpge_epu32_mask): Ditto.
7037 (_mm512_cmpge_epu32_mask): Ditto.
7038 (_mm512_mask_cmpge_epi64_mask): Ditto.
7039 (_mm512_cmpge_epi64_mask): Ditto.
7040 (_mm512_mask_cmpge_epu64_mask): Ditto.
7041 (_mm512_cmpge_epu64_mask): Ditto.
7042 (_mm512_mask_cmple_epi32_mask): Ditto.
7043 (_mm512_cmple_epi32_mask): Ditto.
7044 (_mm512_mask_cmple_epu32_mask): Ditto.
7045 (_mm512_cmple_epu32_mask): Ditto.
7046 (_mm512_mask_cmple_epi64_mask): Ditto.
7047 (_mm512_cmple_epi64_mask): Ditto.
7048 (_mm512_mask_cmple_epu64_mask): Ditto.
7049 (_mm512_cmple_epu64_mask): Ditto.
7050 (_mm512_mask_cmplt_epi32_mask): Ditto.
7051 (_mm512_cmplt_epi32_mask): Ditto.
7052 (_mm512_mask_cmplt_epu32_mask): Ditto.
7053 (_mm512_cmplt_epu32_mask): Ditto.
7054 (_mm512_mask_cmplt_epi64_mask): Ditto.
7055 (_mm512_cmplt_epi64_mask): Ditto.
7056 (_mm512_mask_cmplt_epu64_mask): Ditto.
7057 (_mm512_cmplt_epu64_mask): Ditto.
7058 (_mm512_mask_cmpneq_epi32_mask): Ditto.
7059 (_mm512_mask_cmpneq_epu32_mask): Ditto.
7060 (_mm512_cmpneq_epu32_mask): Ditto.
7061 (_mm512_mask_cmpneq_epi64_mask): Ditto.
7062 (_mm512_cmpneq_epi64_mask): Ditto.
7063 (_mm512_mask_cmpneq_epu64_mask): Ditto.
7064 (_mm512_cmpneq_epu64_mask): Ditto.
7065 (_mm512_castpd_ps): Ditto.
7066 (_mm512_castpd_si512): Ditto.
7067 (_mm512_castps_pd): Ditto.
7068 (_mm512_castps_si512): Ditto.
7069 (_mm512_castsi512_ps): Ditto.
7070 (_mm512_castsi512_pd): Ditto.
7071 (_mm512_castpd512_pd128): Ditto.
7072 (_mm512_castps512_ps128): Ditto.
7073 (_mm512_castsi512_si128): Ditto.
7074 (_mm512_castpd512_pd256): Ditto.
7075 (_mm512_castps512_ps256): Ditto.
7076 (_mm512_castsi512_si256): Ditto.
7077 (_mm512_castpd128_pd512): Ditto.
7078 (_mm512_castps128_ps512): Ditto.
7079 (_mm512_castsi128_si512): Ditto.
7080 (_mm512_castpd256_pd512): Ditto.
7081 (_mm512_castps256_ps512): Ditto.
7082 (_mm512_castsi256_si512): Ditto.
7083 (_mm512_cmpeq_epu32_mask): Ditto.
7084 (_mm512_mask_cmpeq_epu32_mask): Ditto.
7085 (_mm512_mask_cmpeq_epu64_mask): Ditto.
7086 (_mm512_cmpeq_epu64_mask): Ditto.
7087 (_mm512_cmpgt_epu32_mask): Ditto.
7088 (_mm512_mask_cmpgt_epu32_mask): Ditto.
7089 (_mm512_mask_cmpgt_epu64_mask): Ditto.
7090 (_mm512_cmpgt_epu64_mask): Ditto.
7091 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
7092 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
7093 * config/i386/i386.c (enum ix86_builtins): Add
7094 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
7095 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
7096 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
7097 (bdesc_args): Add __builtin_ia32_si512_256si,
7098 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
7099 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
7100 __builtin_ia32_pd512_pd.
7101 (ix86_expand_args_builtin): Handle new FTYPEs.
7102 * config/i386/sse.md (castmode): Add 512-bit modes.
7103 (AVX512MODE2P): New.
7104 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
7105 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
7106
7107 2014-08-15 Richard Biener <rguenther@suse.de>
7108
7109 * fold-const.c (tree_swap_operands_p): Put all constants
7110 last, also strip sign-changing NOPs when considering further
7111 canonicalization. Canonicalize also when optimizing for size.
7112
7113 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7114
7115 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
7116 one_match > zero_match case to just before simple_sequence.
7117
7118 2014-08-15 Richard Biener <rguenther@suse.de>
7119
7120 * data-streamer.h (streamer_string_index, string_for_index):
7121 Remove.
7122 * data-streamer-out.c (streamer_string_index): Make static.
7123 * data-streamer-in.c (string_for_index): Likewise.
7124 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
7125 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
7126
7127 2014-08-15 Richard Biener <rguenther@suse.de>
7128
7129 PR tree-optimization/62031
7130 * tree-data-ref.c (dr_analyze_indices): Do not set
7131 DR_UNCONSTRAINED_BASE.
7132 (dr_may_alias_p): All indirect accesses have to go the
7133 formerly DR_UNCONSTRAINED_BASE path.
7134 * tree-data-ref.h (struct indices): Remove
7135 unconstrained_base member.
7136 (DR_UNCONSTRAINED_BASE): Remove.
7137
7138 2014-08-15 Jakub Jelinek <jakub@redhat.com>
7139
7140 PR middle-end/62092
7141 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
7142 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
7143 in OMP_CLAUSE_MAP in some outer target region.
7144
7145 2014-08-15 Bin Cheng <bin.cheng@arm.com>
7146
7147 * tree-ssa-loop-ivopts.c (ivopts_data): New field
7148 name_expansion_cache.
7149 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
7150 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
7151 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
7152 (difference_cannot_overflow_p): New parameter. Use affine
7153 expansion for equality check.
7154 (iv_elimination_compare_lt): Pass new argument.
7155
7156 2014-08-14 DJ Delorie <dj@redhat.com>
7157
7158 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
7159 variables to the accumulator.
7160
7161 * config/rl78/predicates.md (rl78_near_mem_operand): New.
7162 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
7163 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
7164 with far-far moves.
7165
7166 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
7167 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
7168 (umulqihi3_virt): Likewise.
7169 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
7170 (umulqihi3_real): Likewise.
7171
7172 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
7173
7174 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7175
7176 PR tree-optimization/62091
7177 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
7178 function_entry_reached.
7179 (walk_aliased_vdefs): Clear it here.
7180 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
7181
7182 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
7183
7184 * ipa-utils.h (compare_virtual_tables): Declare.
7185 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
7186
7187 2014-08-14 Marek Polacek <polacek@redhat.com>
7188
7189 DR 458
7190 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
7191 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
7192
7193 2014-08-14 Tom de Vries <tom@codesourcery.com>
7194
7195 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
7196
7197 2014-08-14 Tom de Vries <tom@codesourcery.com>
7198
7199 PR rtl-optimization/62004
7200 PR rtl-optimization/62030
7201 * ifcvt.c (rtx_interchangeable_p): New function.
7202 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
7203 * emit-rtl.h (mem_attrs_eq_p): Declare.
7204
7205 2014-08-14 Roman Gareev <gareevroman@gmail.com>
7206
7207 * graphite-scop-detection.c:
7208 Add inclusion of cp-tree.h.
7209 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
7210 in case they are pointers to object types
7211
7212 2014-08-14 Richard Biener <rguenther@suse.de>
7213
7214 * BASE-VER: Change to 5.0.0
7215
7216 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7217 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7218 Anna Tikhonova <anna.tikhonova@intel.com>
7219 Ilya Tocar <ilya.tocar@intel.com>
7220 Andrey Turetskiy <andrey.turetskiy@intel.com>
7221 Ilya Verbin <ilya.verbin@intel.com>
7222 Kirill Yukhin <kirill.yukhin@intel.com>
7223 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7224
7225 * config/i386/sse.md (define_mode_attr avx512): New.
7226 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
7227 V4DI modes.
7228 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
7229 (define_mode_attr ssse3_avx2): Ditto.
7230 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
7231 (define_mode_attr avx2_avx512bw): New.
7232 (define_mode_attr ssedoublemodelower): New.
7233 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
7234 V32HI, V64QI modes.
7235 (define_mode_attr ssebytemode): Allow V8DI modes.
7236 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
7237 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
7238 (define_mode_attr ssePSmode2): New.
7239 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
7240 V16HI, V32HI modes.
7241 (define_mode_attr dbpsadbwmode): New.
7242 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
7243 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
7244 (vi8_sse4_1_avx2_avx512): New.
7245 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
7246 mode attribute.
7247 (define_mode_attr blendbits): Move before its immediate use.
7248
7249 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7250 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7251 Anna Tikhonova <anna.tikhonova@intel.com>
7252 Ilya Tocar <ilya.tocar@intel.com>
7253 Andrey Turetskiy <andrey.turetskiy@intel.com>
7254 Ilya Verbin <ilya.verbin@intel.com>
7255 Kirill Yukhin <kirill.yukhin@intel.com>
7256 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7257
7258 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
7259 * config/i386/subst.md
7260 (define_mode_iterator SUBST_V): Update.
7261 (define_mode_iterator SUBST_A): Ditto.
7262 (define_subst_attr "mask_operand7"): New.
7263 (define_subst_attr "mask_operand10"): New.
7264 (define_subst_attr "mask_operand_arg34") : New.
7265 (define_subst_attr "mask_expand_op3"): New.
7266 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
7267 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
7268 (define_subst_attr "mask_avx512vl_condition"): New.
7269 (define_subst_attr "round_mask_operand4"): Ditto.
7270 (define_subst_attr "round_mask_scalar_op3"): Delete.
7271 (define_subst_attr "round_mask_op4"): New.
7272 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
7273 V16SImode.
7274 (define_subst_attr "round_modev8sf_condition"): New.
7275 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
7276 <MODE>mode.
7277 (define_subst_attr "round_saeonly_mask_operand4"): New.
7278 (define_subst_attr "round_saeonly_mask_op4"): New.
7279 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
7280 V8DImode, V16SImode.
7281 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
7282 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
7283 (define_subst_attr "mask_expand4_args"): New.
7284 (define_subst "mask_expand4"): New.
7285
7286 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7287 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7288 Anna Tikhonova <anna.tikhonova@intel.com>
7289 Ilya Tocar <ilya.tocar@intel.com>
7290 Andrey Turetskiy <andrey.turetskiy@intel.com>
7291 Ilya Verbin <ilya.verbin@intel.com>
7292 Kirill Yukhin <kirill.yukhin@intel.com>
7293 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7294
7295 * config/i386/i386.md
7296 (define_attr "isa"): Add avx512bw,noavx512bw.
7297 (define_attr "enabled"): Ditto.
7298 (define_split): Add 32/64-bit mask logic.
7299 (define_insn "*k<logic>qi"): New.
7300 (define_insn "*k<logic>hi"): New.
7301 (define_insn "*anddi_1"): Add mask version.
7302 (define_insn "*andsi_1"): Ditto.
7303 (define_insn "*<code><mode>_1"): Ditto.
7304 (define_insn "*<code>hi_1"): Ditto.
7305 (define_insn "kxnor<mode>"): New.
7306 (define_insn "kunpcksi"): New.
7307 (define_insn "kunpckdi"): New.
7308 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
7309 (define_insn "*one_cmplhi2_1"): Ditto.
7310
7311 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7312 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7313 Anna Tikhonova <anna.tikhonova@intel.com>
7314 Ilya Tocar <ilya.tocar@intel.com>
7315 Andrey Turetskiy <andrey.turetskiy@intel.com>
7316 Ilya Verbin <ilya.verbin@intel.com>
7317 Kirill Yukhin <kirill.yukhin@intel.com>
7318 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7319
7320 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
7321 V32HImode.
7322
7323 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
7324 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7325 Anna Tikhonova <anna.tikhonova@intel.com>
7326 Ilya Tocar <ilya.tocar@intel.com>
7327 Andrey Turetskiy <andrey.turetskiy@intel.com>
7328 Ilya Verbin <ilya.verbin@intel.com>
7329 Kirill Yukhin <kirill.yukhin@intel.com>
7330 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7331
7332 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
7333 registers.
7334 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
7335 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
7336 xmm/ymm16+ when availble.
7337 * config/i386/i386.h
7338 (HARD_REGNO_NREGS): Add mask regs.
7339 (VALID_AVX512F_REG_MODE): Ditto.
7340 (VALID_AVX512F_REG_MODE) : Define.
7341 (VALID_MASK_AVX512BW_MODE): Ditto.
7342 (reg_class) (MASK_REG_P(X)): Define.
7343 * config/i386/i386.md: Do not split long moves with mask register,
7344 use kmovb if avx512bw is availible.
7345 (movdi_internal): Handle mask registers.
7346
7347 2014-08-14 Richard Biener <rguenther@suse.de>
7348
7349 PR tree-optimization/62081
7350 * tree-ssa-loop.c (pass_fix_loops): New pass.
7351 (pass_tree_loop::gate): Do not fixup loops here.
7352 * tree-pass.h (make_pass_fix_loops): Declare.
7353 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
7354
7355 2014-08-14 Richard Biener <rguenther@suse.de>
7356
7357 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
7358 (type_hash_canon): ... this and avoid 2nd lookup for the add.
7359
7360 2014-08-14 Richard Biener <rguenther@suse.de>
7361
7362 PR tree-optimization/62090
7363 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
7364 (fold_builtin_2): Do not fold sprintf.
7365 (fold_builtin_3): Likewise.
7366 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
7367 moved from builtins.c.
7368 (gimple_fold_builtin): Fold sprintf.
7369
7370 2014-08-14 Richard Biener <rguenther@suse.de>
7371
7372 PR rtl-optimization/62079
7373 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
7374 run cleanup_cfg.
7375
7376 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7377
7378 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
7379 current_function_decl.
7380
7381 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
7382
7383 * cgraph.c (cgraph_node::function_symbol): Fix wrong
7384 cgraph_function_node to cgraph_node::function_symbol
7385 refactoring.
7386
7387 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
7388
7389 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
7390 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
7391
7392 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
7393
7394 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
7395 warning.
7396
7397 2014-08-13 Roman Gareev <gareevroman@gmail.com>
7398
7399 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
7400 generator.
7401
7402 2014-08-12 Jakub Jelinek <jakub@redhat.com>
7403
7404 PR target/62025
7405 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
7406 any registers that are used in mem_insn.
7407
7408 2014-08-12 Steve Ellcey <sellcey@mips.com>
7409
7410 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
7411
7412 2014-08-12 Steve Ellcey <sellcey@mips.com>
7413
7414 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
7415 (MULTILIB_DIRNAMES): Ditto.
7416 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
7417 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
7418 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
7419 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
7420 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
7421 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
7422
7423 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7424
7425 PR target/61413
7426 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
7427 of __ARM_SIZEOF_WCHAR_T.
7428
7429 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7430
7431 PR target/62098
7432 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
7433 Remove unnecessary attributes.
7434
7435 2014-08-12 Yury Gribov <y.gribov@samsung.com>
7436
7437 * internal-fn.c (init_internal_fns): Fix off-by-one.
7438
7439 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
7440 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7441 Anna Tikhonova <anna.tikhonova@intel.com>
7442 Ilya Tocar <ilya.tocar@intel.com>
7443 Andrey Turetskiy <andrey.turetskiy@intel.com>
7444 Ilya Verbin <ilya.verbin@intel.com>
7445 Kirill Yukhin <kirill.yukhin@intel.com>
7446 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7447
7448 * config/i386/i386.c (standard_sse_constant_opcode): Use
7449 vpxord/vpternlog if avx512 is availible.
7450
7451 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
7452
7453 PR middle-end/62103
7454 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
7455 bitfields, that is when size doesn't match the size of type or the
7456 size of the constructor.
7457
7458 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7459
7460 * config/rs6000/constraints.md (wh constraint): New constraint,
7461 for FP registers if direct move is available.
7462 (wi constraint): New constraint, for VSX/FP registers that can
7463 handle 64-bit integers.
7464 (wj constraint): New constraint for VSX/FP registers that can
7465 handle 64-bit integers for direct moves.
7466 (wk constraint): New constraint for VSX/FP registers that can
7467 handle 64-bit doubles for direct moves.
7468 (wy constraint): Make documentation match implementation.
7469
7470 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
7471 scalar_in_vmx_p field to simplify tests of whether SFmode or
7472 DFmode can go in the Altivec registers.
7473 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
7474 (rs6000_setup_reg_addr_masks): Likewise.
7475 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
7476 field, and wh/wi/wj/wk constraints.
7477 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
7478 the wh/wi/wj/wk constraints.
7479 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
7480 upper registers, prefer VSX registers unless the operation is a
7481 memory operation with REG+OFFSET addressing.
7482
7483 * config/rs6000/vsx.md (VSr mode attribute): Add support for
7484 DImode. Change SFmode to use ww constraint instead of d to allow
7485 SF registers in the upper registers.
7486 (VSr2): Likewise.
7487 (VSr3): Likewise.
7488 (VSr5): Fix thinko in comment.
7489 (VSa): New mode attribute that is an alternative to wa, that
7490 returns the VSX register class that a mode can go in, but may not
7491 be the preferred register class.
7492 (VS_64dm): New mode attribute for appropriate register classes for
7493 referencing 64-bit elements of vectors for direct moves and normal
7494 moves.
7495 (VS_64reg): Likewise.
7496 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
7497 register allocator to only registers the data type can handle.
7498 (vsx_le_perm_load_<mode>): Likewise.
7499 (vsx_le_perm_store_<mode>): Likewise.
7500 (vsx_xxpermdi2_le_<mode>): Likewise.
7501 (vsx_xxpermdi4_le_<mode>): Likewise.
7502 (vsx_lxvd2x2_le_<mode>): Likewise.
7503 (vsx_lxvd2x4_le_<mode>): Likewise.
7504 (vsx_stxvd2x2_le_<mode>): Likewise.
7505 (vsx_add<mode>3): Likewise.
7506 (vsx_sub<mode>3): Likewise.
7507 (vsx_mul<mode>3): Likewise.
7508 (vsx_div<mode>3): Likewise.
7509 (vsx_tdiv<mode>3_internal): Likewise.
7510 (vsx_fre<mode>2): Likewise.
7511 (vsx_neg<mode>2): Likewise.
7512 (vsx_abs<mode>2): Likewise.
7513 (vsx_nabs<mode>2): Likewise.
7514 (vsx_smax<mode>3): Likewise.
7515 (vsx_smin<mode>3): Likewise.
7516 (vsx_sqrt<mode>2): Likewise.
7517 (vsx_rsqrte<mode>2): Likewise.
7518 (vsx_tsqrt<mode>2_internal): Likewise.
7519 (vsx_fms<mode>4): Likewise.
7520 (vsx_nfma<mode>4): Likewise.
7521 (vsx_eq<mode>): Likewise.
7522 (vsx_gt<mode>): Likewise.
7523 (vsx_ge<mode>): Likewise.
7524 (vsx_eq<mode>_p): Likewise.
7525 (vsx_gt<mode>_p): Likewise.
7526 (vsx_ge<mode>_p): Likewise.
7527 (vsx_xxsel<mode>): Likewise.
7528 (vsx_xxsel<mode>_uns): Likewise.
7529 (vsx_copysign<mode>3): Likewise.
7530 (vsx_float<VSi><mode>2): Likewise.
7531 (vsx_floatuns<VSi><mode>2): Likewise.
7532 (vsx_fix_trunc<mode><VSi>2): Likewise.
7533 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
7534 (vsx_x<VSv>r<VSs>i): Likewise.
7535 (vsx_x<VSv>r<VSs>ic): Likewise.
7536 (vsx_btrunc<mode>2): Likewise.
7537 (vsx_b2trunc<mode>2): Likewise.
7538 (vsx_floor<mode>2): Likewise.
7539 (vsx_ceil<mode>2): Likewise.
7540 (vsx_<VS_spdp_insn>): Likewise.
7541 (vsx_xscvspdp): Likewise.
7542 (vsx_xvcvspuxds): Likewise.
7543 (vsx_float_fix_<mode>2): Likewise.
7544 (vsx_set_<mode>): Likewise.
7545 (vsx_extract_<mode>_internal1): Likewise.
7546 (vsx_extract_<mode>_internal2): Likewise.
7547 (vsx_extract_<mode>_load): Likewise.
7548 (vsx_extract_<mode>_store): Likewise.
7549 (vsx_splat_<mode>): Likewise.
7550 (vsx_xxspltw_<mode>): Likewise.
7551 (vsx_xxspltw_<mode>_direct): Likewise.
7552 (vsx_xxmrghw_<mode>): Likewise.
7553 (vsx_xxmrglw_<mode>): Likewise.
7554 (vsx_xxsldwi_<mode>): Likewise.
7555 (vsx_xscvdpspn): Tighten constraints to only use register classes
7556 the types use.
7557 (vsx_xscvspdpn): Likewise.
7558 (vsx_xscvdpspn_scalar): Likewise.
7559
7560 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7561 wj, and wk constraints.
7562 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7563 general purpose registers.
7564
7565 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7566 direct moves.
7567 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7568 DImode instead of wm. Use wk constraint for direct move of DFmode
7569 instead of wm.
7570 (extendsidi2_lfiwax): Likewise.
7571 (lfiwax): Likewise.
7572 (lfiwzx): Likewise.
7573 (movdi_internal64): Likewise.
7574
7575 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7576 wk constraints. Make the wy constraint documentation match them
7577 implementation.
7578
7579 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7580
7581 Replacement of isl_int by isl_val
7582 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7583 (compute_bounds_for_param): use isl_val instead of isl_int
7584 (compute_bounds_for_loop): likewise
7585 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7586 (build_linearized_memory_access): use isl_val instead of isl_int
7587 (pdr_stride_in_loop): likewise
7588 * graphite-optimize-isl.c:
7589 (getPrevectorMap): use isl_val instead of isl_int
7590 * graphite-poly.c:
7591 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7592 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7593 (extern the_isl_ctx): declare
7594 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7595 (extract_affine_gmp): likewise
7596 (wrap): likewise
7597 (build_loop_iteration_domains): likewise
7598 (add_param_constraints): likewise
7599
7600 2014-08-11 Richard Biener <rguenther@suse.de>
7601
7602 PR tree-optimization/62075
7603 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7604 handle uses in patterns.
7605
7606 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7608 Anna Tikhonova <anna.tikhonova@intel.com>
7609 Ilya Tocar <ilya.tocar@intel.com>
7610 Andrey Turetskiy <andrey.turetskiy@intel.com>
7611 Ilya Verbin <ilya.verbin@intel.com>
7612 Kirill Yukhin <kirill.yukhin@intel.com>
7613 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7614
7615 * common/config/i386/i386-common.c
7616 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7617 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7618 (ix86_handle_option): Handle OPT_mavx512vl.
7619 * config/i386/cpuid.h (bit_AVX512VL): Define.
7620 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7621 set -mavx512vl accordingly.
7622 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7623 OPTION_MASK_ISA_AVX512VL.
7624 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7625 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7626 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7627 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7628 * config/i386/i386.h (TARGET_AVX512VL): Define.
7629 (TARGET_AVX512VL_P(x)): Ditto.
7630 * config/i386/i386.opt: Add mavx512vl.
7631
7632 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7633
7634 PR tree-optimization/62073
7635 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7636 a basic block.
7637
7638 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7639 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7640 Anna Tikhonova <anna.tikhonova@intel.com>
7641 Ilya Tocar <ilya.tocar@intel.com>
7642 Andrey Turetskiy <andrey.turetskiy@intel.com>
7643 Ilya Verbin <ilya.verbin@intel.com>
7644 Kirill Yukhin <kirill.yukhin@intel.com>
7645 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7646
7647 * common/config/i386/i386-common.c
7648 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7649 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7650 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7651 (ix86_handle_option): Handle OPT_mavx512bw.
7652 * config/i386/cpuid.h (bit_AVX512BW): Define.
7653 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7654 set -mavx512bw accordingly.
7655 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7656 OPTION_MASK_ISA_AVX512BW.
7657 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7658 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7659 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7660 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7661 * config/i386/i386.h (TARGET_AVX512BW): Define.
7662 (TARGET_AVX512BW_P(x)): Ditto.
7663 * config/i386/i386.opt: Add mavx512bw.
7664
7665 2014-08-11 Richard Biener <rguenther@suse.de>
7666
7667 PR tree-optimization/62070
7668 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7669 Remove SSA checking.
7670
7671 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7672
7673 * asan.c (asan_check_flags): New enum.
7674 (build_check_stmt_with_calls): Removed function.
7675 (build_check_stmt): Split inlining logic to
7676 asan_expand_check_ifn.
7677 (instrument_derefs): Rename parameter.
7678 (instrument_mem_region_access): Rename parameter.
7679 (instrument_strlen_call): Likewise.
7680 (asan_expand_check_ifn): New function.
7681 (asan_instrument): Remove old code.
7682 (pass_sanopt::execute): Change handling of
7683 asan-instrumentation-with-call-threshold.
7684 (asan_clear_shadow): Fix formatting.
7685 (asan_function_start): Likewise.
7686 (asan_emit_stack_protection): Likewise.
7687 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7688 Update description.
7689 * internal-fn.c (expand_ASAN_CHECK): New function.
7690 * internal-fn.def (ASAN_CHECK): New internal function.
7691 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7692 Update description.
7693 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7694 * tree.c: Small comment fix.
7695
7696 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7697
7698 * gimple.c (gimple_call_fnspec): Support internal functions.
7699 (gimple_call_return_flags): Use const.
7700 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7701 * internal-fn.def: Add fnspec information.
7702 * internal-fn.h (internal_fn_fnspec): New function.
7703 (init_internal_fns): Declare new function.
7704 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7705 (init_internal_fns): New function.
7706 * tree-core.h: Update macro call.
7707 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7708
7709 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7710
7711 * lto-streamer.h (struct output_block::symbol): Change from
7712 struct symtab_node to plain symtab_node.
7713 (referenced_from_this_partition_p): Change first parameter
7714 from struct symtab_node to plain symtab_node.
7715
7716 2014-08-10 Marek Polacek <polacek@redhat.com>
7717
7718 PR c/51849
7719 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7720
7721 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7722
7723 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7724 DECL correctly; do not give up on types in static storage.
7725
7726 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7727
7728 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7729
7730 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7731
7732 * graphite-isl-ast-to-gimple.c:
7733 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7734
7735 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7736
7737 2014-08-08 Guozhi Wei <carrot@google.com>
7738
7739 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7740
7741 2014-08-08 Cary Coutant <ccoutant@google.com>
7742
7743 * dwarf2out.c (get_skeleton_type_unit): Remove.
7744 (output_skeleton_debug_sections): Remove skeleton type units.
7745 (output_comdat_type_unit): Likewise.
7746 (dwarf2out_finish): Likewise.
7747
7748 2014-08-07 Yi Yang <ahyangyi@google.com>
7749
7750 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7751
7752 2014-08-08 Richard Biener <rguenther@suse.de>
7753
7754 * lto-streamer.h (struct lto_input_block): Make it a class
7755 with a constructor.
7756 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7757 (struct lto_function_header, struct lto_simple_header,
7758 struct lto_simple_header_with_strings,
7759 struct lto_decl_header, struct lto_function_header): Make
7760 a simple inheritance hieararchy. Remove unused fields.
7761 (struct lto_asm_header): Remove.
7762 * lto-streamer-out.c (produce_asm): Adjust.
7763 (lto_output_toplevel_asms): Likewise.
7764 (produce_asm_for_decls): Likewise.
7765 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7766 * data-streamer-in.c (string_for_index): Likewise.
7767 * ipa-inline-analysis.c (inline_read_section): Likewise.
7768 * ipa-prop.c (ipa_prop_read_section): Likewise.
7769 (read_replacements_section): Likewise.
7770 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7771 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7772 (lto_destroy_simple_input_block): Likewise.
7773 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7774 (lto_input_toplevel_asms): Likewise.
7775
7776 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7777 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7778 Anna Tikhonova <anna.tikhonova@intel.com>
7779 Ilya Tocar <ilya.tocar@intel.com>
7780 Andrey Turetskiy <andrey.turetskiy@intel.com>
7781 Ilya Verbin <ilya.verbin@intel.com>
7782 Kirill Yukhin <kirill.yukhin@intel.com>
7783 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7784
7785 * common/config/i386/i386-common.c
7786 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7787 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7788 (ix86_handle_option): Handle OPT_mavx512dq.
7789 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7790 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7791 set -mavx512dq accordingly.
7792 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7793 OPTION_MASK_ISA_AVX512DQ.
7794 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7795 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7796 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7797 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7798 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7799 (TARGET_AVX512DQ_P(x)): Ditto.
7800 * config/i386/i386.opt: Add mavx512dq.
7801
7802 2014-08-08 Richard Biener <rguenther@suse.de>
7803
7804 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7805 target_percent, target_percent_s): Export.
7806 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7807 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7808 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7809 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7810 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7811 Move to gimple-fold.c.
7812 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7813 strcat and strcpy.
7814 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7815 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7816 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7817 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7818 (rewrite_call_expr_array): Remove.
7819 (fold_builtin_sprintf_chk): Likewise.
7820 (fold_builtin_snprintf_chk): Likewise.
7821 (fold_builtin_varargs): Remove handling of sprintf_chk,
7822 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7823 (gimple_fold_builtin_sprintf_chk): Remove.
7824 (gimple_fold_builtin_snprintf_chk): Likewise.
7825 (gimple_fold_builtin_varargs): Likewise.
7826 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7827 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7828 * gimple.c (gimple_seq_add_seq_without_update): New function.
7829 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7830 * gimple-fold.c: Include output.h.
7831 (gsi_replace_with_seq_vops): New function, split out from ...
7832 (gimplify_and_update_call_from_tree): ... here.
7833 (replace_call_with_value): New function.
7834 (replace_call_with_call_and_fold): Likewise.
7835 (var_decl_component_p): Moved from builtins.c.
7836 (gimple_fold_builtin_memory_op): Moved from builtins.c
7837 fold_builtin_memory_op and rewritten to GIMPLE.
7838 (gimple_fold_builtin_memset): Likewise.
7839 (gimple_fold_builtin_strcpy): Likewise.
7840 (gimple_fold_builtin_strncpy): Likewise.
7841 (gimple_fold_builtin_strcat): Likewise.
7842 (gimple_fold_builtin_fputs): Likewise.
7843 (gimple_fold_builtin_memory_chk): Likewise.
7844 (gimple_fold_builtin_stxcpy_chk): Likewise.
7845 (gimple_fold_builtin_stxncpy_chk): Likewise.
7846 (gimple_fold_builtin_snprintf_chk): Likewise.
7847 (gimple_fold_builtin_sprintf_chk): Likewise.
7848 (gimple_fold_builtin_strlen): New function.
7849 (gimple_fold_builtin_with_strlen): New function split out from
7850 gimple_fold_builtin.
7851 (gimple_fold_builtin): Change signature and handle
7852 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7853 here. Call gimple_fold_builtin_with_strlen.
7854 (gimple_fold_call): Adjust.
7855
7856 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7857
7858 * calls.c (precompute_arguments): Check
7859 promoted_for_signed_and_unsigned_p and set the promoted mode.
7860 (promoted_for_signed_and_unsigned_p): New function.
7861 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7862 and set the promoted mode.
7863 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7864 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7865 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7866
7867
7868 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7869
7870 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7871 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7872 (expand_call): Likewise.
7873 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7874 to get promoted mode.
7875 * combine.c (record_promoted_value): Skip > 0 comparison with
7876 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7877 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7878 of SUBREG_PROMOTED_UNSIGNED_P.
7879 (convert_modes): Likewise.
7880 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7881 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7882 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7883 SUBREG_PROMOTED_UNSIGNED_SET.
7884 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7885 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7886 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7887 SUBREG_PROMOTED_SET.
7888 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7889 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7890 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7891 of SUBREG_PROMOTED_UNSIGNED_P.
7892 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7893 (SUBREG_PROMOTED_SET): New define.
7894 (SUBREG_PROMOTED_GET): Likewise.
7895 (SUBREG_PROMOTED_SIGN): Likewise.
7896 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7897 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7898 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7899 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7900 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7901 (nonzero_bits1): Skip > 0 comparison with the results as
7902 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7903 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7904 of !SUBREG_PROMOTED_UNSIGNED_P.
7905 * simplify-rtx.c (simplify_unary_operation_1): Use new
7906 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7907 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7908 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7909 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7910
7911 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7912
7913 * ipa-devirt.c: Include gimple-pretty-print.h
7914 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7915 further tests.
7916 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7917 (get_polymorphic_call_info): Fix return value
7918 (type_change_info): New sturcture based on ipa-prop
7919 variant.
7920 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7921 based on ipa-prop variant.
7922 (extr_type_from_vtbl_ptr_store): New function
7923 based on ipa-prop variant.
7924 (record_known_type): New function.
7925 (check_stmt_for_type_change): New function.
7926 (get_dynamic_type): New function.
7927 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7928 * tree-ssa-pre.c: ipa-utils.h
7929 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7930 machinery; sanity check with ipa-prop devirtualization.
7931 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7932 polymorphic flag.
7933
7934 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7935
7936 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7937 * alias.c, cfgexpand.c, cgraphbuild.c,
7938 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7939 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7940 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7941 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7942 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7943 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7944 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7945 dse.c, except.c, gengtype.c, gimple-expr.c,
7946 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7947 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7948 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7949 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7950 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7951 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7952 pointer-set.h.
7953 * pointer-set.c: Remove file.
7954 * pointer-set.h: Remove file.
7955
7956 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7957
7958 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7959 * config/arm/types.md (f_sels, f_seld): Delete.
7960
7961 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7962
7963 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7964 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7965 (aarch64_movdi_<mode>high): Likewise.
7966 (aarch64_mov<mode>high_di): Likewise.
7967 (aarch64_movdi_<mode>low): Likewise.
7968 (aarch64_mov<mode>low_di): Likewise.
7969 (aarch64_movtilow_tilow): Likewise.
7970 Add comment explaining usage of fp,simd attributes and of
7971 TARGET_FLOAT and TARGET_SIMD.
7972
7973 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7974 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7975
7976 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7977 Use MOVN when one of the half-words is 0xffff.
7978
7979 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7980
7981 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7982
7983 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7984
7985 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7986 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7987 (rfs_str): String corresponding to RFS_* constants.
7988 (rank_for_schedule_stats_t): New typedef.
7989 (rank_for_schedule_stats): New static variable.
7990 (rfs_result): New static function.
7991 (rank_for_schedule): Track statistics for deciding heuristics.
7992 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7993 static functions.
7994 (ready_sort): Use them for debug printouts.
7995 (schedule_block): Init statistics state. Print statistics on
7996 rank_for_schedule decisions.
7997
7998 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7999
8000 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
8001
8002 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
8003
8004 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
8005 constraint.
8006
8007 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
8008
8009 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
8010 function to not conflict.
8011 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
8012 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
8013 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
8014 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
8015 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
8016 of pointer_map.
8017
8018 2014-08-07 Marek Polacek <polacek@redhat.com>
8019
8020 * fold-const.c (fold_binary_loc): Add folding of
8021 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
8022
8023 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
8024
8025 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
8026 instead of type size.
8027 (ASM_FINISH_DECLARE_OBJECT): Likewise.
8028
8029 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
8030
8031 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
8032 (*thumb1_movqi_insn): Likewise.
8033 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
8034
8035 2014-08-07 Tom de Vries <tom@codesourcery.com>
8036
8037 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8038 (glibc_2_11_or_earlier): Remove effective-target keywords.
8039
8040 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
8041
8042 * config/arm/arm.c (bdesc_2arg): Fix typo.
8043 (arm_atomic_assign_expand_fenv): Remove The default implementation.
8044
8045 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
8046
8047 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
8048
8049 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
8050
8051 PR debug/61923
8052 * haifa-sched.c (advance_one_cycle): Fix dump.
8053 (schedule_block): Don't advance cycle if we are already at the
8054 beginning of the cycle.
8055
8056 2014-08-06 Martin Jambor <mjambor@suse.cz>
8057
8058 PR ipa/61393
8059 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
8060
8061 2014-08-06 Richard Biener <rguenther@suse.de>
8062
8063 PR lto/62034
8064 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
8065 SCCs here.
8066 (lto_input_tree): Pop SCCs here.
8067
8068 2014-08-06 Richard Biener <rguenther@suse.de>
8069
8070 PR tree-optimization/61320
8071 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
8072 handle misaligned loads.
8073
8074 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
8075
8076 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
8077 (aarch64_expand_vec_perm_const): Check for dup before zip.
8078
8079 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8080
8081 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
8082 CONST_INT_P instead of GET_CODE and compare.
8083 (aarch64_select_cc_mode): Likewise.
8084 (aarch64_print_operand): Likewise.
8085 (aarch64_rtx_costs): Likewise.
8086 (aarch64_simd_valid_immediate): Likewise.
8087 (aarch64_simd_check_vect_par_cnst_half): Likewise.
8088 (aarch64_simd_emit_pair_result_insn): Likewise.
8089
8090 2014-08-05 David Malcolm <dmalcolm@redhat.com>
8091
8092 * gdbhooks.py (find_gcc_source_dir): New helper function.
8093 (class PassNames): New class, locating and parsing passes.def.
8094 (class BreakOnPass): New command "break-on-pass".
8095
8096 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
8097
8098 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
8099 getting olde.
8100
8101 2014-08-05 Richard Biener <rguenther@suse.de>
8102
8103 PR rtl-optimization/61672
8104 * emit-rtl.h (mem_attrs_eq_p): Declare.
8105 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
8106 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
8107 * cfgcleanup.c (merge_memattrs): Likewise.
8108 Include emit-rtl.h.
8109
8110 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8111
8112 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
8113 rather than singleton vectors.
8114 (vqdmlsls_lane_s32): Likewise.
8115
8116 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8117
8118 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
8119 Use VSDQ_HSI mode iterator.
8120 (aarch64_sqrdmulh_laneq<mode>): Likewise.
8121 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
8122 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
8123 Use BUILTIN_VDQHS macro.
8124 (sqrdmulh_laneq): Likewise.
8125 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
8126 (vqdmlals_laneq_s32): Likewise.
8127 (vqdmlslh_laneq_s16): Likewise.
8128 (vqdmlsls_laneq_s32): Likewise.
8129 (vqdmulhh_laneq_s16): Likewise.
8130 (vqdmulhs_laneq_s32): Likewise.
8131 (vqrdmulhh_laneq_s16): Likewise.
8132 (vqrdmulhs_laneq_s32): Likewise.
8133
8134 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8135
8136 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
8137 (vmuld_laneq_f64): Likewise.
8138 (vmuls_laneq_f32): Likewise.
8139 (vmul_n_f64): Likewise.
8140 (vmuld_lane_f64): Reimplement in C.
8141 (vmuls_lane_f32): Likewise.
8142
8143 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8144
8145 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
8146 to reservation.
8147 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
8148
8149 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8150
8151 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
8152 (rbitsi2): Likewise.
8153 (*arm_rev): Set predicable and predicable_short_it attributes.
8154
8155 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8156
8157 * convert.c (convert_to_integer): Guard transformation to lrint by
8158 -fno-math-errno.
8159
8160 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
8161
8162 * config/aarch64/aarch64-builtins.c
8163 (aarch64_simd_builtin_type_mode): Delete.
8164 (v8qi_UP): Remap to V8QImode.
8165 (v4hi_UP): Remap to V4HImode.
8166 (v2si_UP): Remap to V2SImode.
8167 (v2sf_UP): Remap to V2SFmode.
8168 (v1df_UP): Remap to V1DFmode.
8169 (di_UP): Remap to DImode.
8170 (df_UP): Remap to DFmode.
8171 (v16qi_UP):V16QImode.
8172 (v8hi_UP): Remap to V8HImode.
8173 (v4si_UP): Remap to V4SImode.
8174 (v4sf_UP): Remap to V4SFmode.
8175 (v2di_UP): Remap to V2DImode.
8176 (v2df_UP): Remap to V2DFmode.
8177 (ti_UP): Remap to TImode.
8178 (ei_UP): Remap to EImode.
8179 (oi_UP): Remap to OImode.
8180 (ci_UP): Map to CImode.
8181 (xi_UP): Remap to XImode.
8182 (si_UP): Remap to SImode.
8183 (sf_UP): Remap to SFmode.
8184 (hi_UP): Remap to HImode.
8185 (qi_UP): Remap to QImode.
8186 (aarch64_simd_builtin_datum): Make mode a machine_mode.
8187 (VAR1): Build builtin name.
8188 (aarch64_init_simd_builtins): Remove dead code.
8189
8190 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8191
8192 * graphite-isl-ast-to-gimple.c:
8193 (set_options): New function.
8194 (scop_to_isl_ast): Add calling of set_options.
8195
8196 2014-08-05 Jakub Jelinek <jakub@redhat.com>
8197
8198 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
8199 (analyze_iv_to_split_insn): Don't initialize them.
8200 (get_ivts_expr): Removed.
8201 (allocate_basic_variable, insert_base_initialization): Use
8202 SET_SRC instead of *get_ivts_expr.
8203 (split_iv): Use &SET_SRC instead of get_ivts_expr.
8204
8205 2014-08-05 Roman Gareev <gareevroman@gmail.com>
8206
8207 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
8208 (translate_isl_ast_for_loop): Add checking of the
8209 flag_loop_parallelize_all.
8210 (ast_build_before_for): New function.
8211 (scop_to_isl_ast): Add checking of the
8212 flag_loop_parallelize_all.
8213 * graphite-dependences.c: Move the defenition of the
8214 scop_get_dependences from graphite-optimize-isl.c to this file.
8215 (apply_schedule_on_deps): Add checking of the ux's emptiness.
8216 (carries_deps): Add checking of the x's value.
8217 * graphite-optimize-isl.c: Move the defenition of the
8218 scop_get_dependences to graphite-dependences.c.
8219 * graphite-poly.h: Add declarations of scop_get_dependences
8220 and carries_deps.
8221
8222 2014-08-04 Rohit <rohitarulraj@freescale.com>
8223
8224 PR target/60102
8225 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
8226 names.
8227 (alt_reg_names): Likewise.
8228 (rs6000_dwarf_register_span): For SPE high registers, replace
8229 dwarf register numbers with GCC hard register numbers.
8230 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
8231 (rs6000_dbx_register_number): For SPE high registers, return dwarf
8232 register number for the corresponding GCC hard register number.
8233 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
8234 newly added GCC hard register numbers for SPE high registers.
8235 (DWARF_FRAME_REGISTERS): Likewise.
8236 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
8237 (DWARF_FRAME_REGNUM): Likewise.
8238 (FIXED_REGISTERS): Likewise.
8239 (CALL_USED_REGISTERS): Likewise.
8240 (CALL_REALLY_USED_REGISTERS): Likewise.
8241 (REG_ALLOC_ORDER): Likewise.
8242 (enum reg_class): Likewise.
8243 (REG_CLASS_NAMES): Likewise.
8244 (REG_CLASS_CONTENTS): Likewise.
8245 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
8246
8247 2014-08-04 Richard Biener <rguenther@suse.de>
8248
8249 * gimple-fold.h (gimple_fold_builtin): Remove.
8250 * gimple-fold.c (gimple_fold_builtin): Make static.
8251 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
8252 fold_stmt, not gimple_fold_builtin.
8253
8254 2014-08-04 Martin Liska <mliska@suse.cz>
8255
8256 * cgraph.h (csi_end_p): Removed.
8257 (csi_next): Likewise.
8258 (csi_node): Likewise.
8259 (csi_start): Likewise.
8260 (cgraph_node_in_set_p): Likewise.
8261 (cgraph_node_set_size): Likewise.
8262 (vsi_end_p): Likewise.
8263 (vsi_next): Likewise.
8264 (vsi_node): Likewise.
8265 (vsi_start): Likewise.
8266 (varpool_node_set_size): Likewise.
8267 (cgraph_node_set_nonempty_p): Likewise.
8268 (varpool_node_set_nonempty_p): Likewise.
8269 * cgraphunit.c (cgraph_process_new_functions): vec replaces
8270 cgraph_node_set.
8271 * ipa-inline-transform.c: Likewise.
8272 * ipa-utils.c (cgraph_node_set_new): Removed.
8273 (cgraph_node_set_add): Likewise.
8274 (cgraph_node_set_remove): Likewise.
8275 (cgraph_node_set_find): Likewise.
8276 (dump_cgraph_node_set): Likewise.
8277 (debug_cgraph_node_set): Likewise.
8278 (free_cgraph_node_set): Likewise.
8279 (varpool_node_set_new): Likewise.
8280 (varpool_node_set_add): Likewise.
8281 (varpool_node_set_remove): Likewise.
8282 (varpool_node_set_find): Likewise.
8283 (dump_varpool_node_set): Likewise.
8284 (free_varpool_node_set): Likewise.
8285 (debug_varpool_node_set): Likewise.
8286 * tree-emutls.c (struct tls_var_data):
8287 (emutls_index): Removed.
8288 (emutls_decl): Likewise.
8289 (gen_emutls_addr): Function implementation uses newly added
8290 hash_map<varpool_node *, tls_var_data>.
8291 (clear_access_vars): Likewise.
8292 (create_emultls_var): Likewise.
8293 (ipa_lower_emutls): Likewise.
8294 (reset_access): New function.
8295
8296 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8297
8298 * config/i386/i386.c (ix86_option_override_internal): Add
8299 PTA_RDRND and PTA_MOVBE for bdver4.
8300
8301 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8302 James Greenhalgh <james.greenhalgh@arm.com>
8303
8304 * doc/md.texi (clrsb): Document.
8305 (clz): Change reference to x into operand 1.
8306 (ctz): Likewise.
8307 (popcount): Likewise.
8308
8309 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8310
8311 PR target/61713
8312 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
8313 move to subtarget in serial version if result is ignored.
8314
8315 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8316 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8317
8318 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
8319 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
8320 (sched_analyze_insn): Update use of try_group_insn to
8321 sched_macro_fuse_insns.
8322 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
8323 arguments that are not conditional jumps.
8324
8325 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8326
8327 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
8328 family information. Handle BTVER2 cpu with cpuid family value.
8329
8330 2014-08-04 Tom de Vries <tom@codesourcery.com>
8331
8332 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
8333 (glibc_2_11_or_earlier): Document effective-target keywords.
8334
8335 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8336
8337 * ipa-devirt.c (odr_type_warn_count): Add type.
8338 (possible_polymorphic_call_targets): Set it.
8339 (ipa_devirt): Use it.
8340
8341 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
8342
8343 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
8344 Document.
8345 * ipa-devirt.c: Include hash-map.h
8346 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
8347 (clear_speculation): Break out of ...
8348 (get_class_context): ... here; speed up handling obviously useless
8349 speculations.
8350 (odr_type_warn_count, decl_warn_count): New structures.
8351 (final_warning_record): New structure.
8352 (final_warning_records): New static variable.
8353 (possible_polymorphic_call_targets): Cleanup handling of
8354 speculative info; do not build speculation when user do not care;
8355 record info about warnings when asked for.
8356 (add_decl_warning): New function.
8357 (type_warning_cmp): New function.
8358 (decl_warning_cmp): New function.
8359 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
8360 (gate): Enable pass when warnings are requested.
8361 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
8362 options.
8363
8364 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8365
8366 * hash-map.h (default_hashmap_traits::mark_key_deleted):
8367 Fix cast.
8368 (hash_map::remove): New method.
8369 (hash_map::traverse): New method.
8370 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
8371 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
8372 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
8373 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
8374 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
8375 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
8376 pointer_map.
8377
8378 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
8379
8380 * hash-set.h: new File.
8381 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
8382 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
8383 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
8384 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
8385 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
8386 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
8387 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
8388 varpool.c: Use hash_set instead of pointer_set.
8389
8390 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
8391
8392 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
8393
8394 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8395
8396 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
8397 for frame access when strict_p is false.
8398
8399 2014-08-01 Renlin Li <renlin.li@arm.com>
8400 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8401
8402 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
8403 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
8404 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
8405 Declaration.
8406 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
8407 predicate.
8408 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
8409 aarch64_mem_pair_offset.
8410
8411 2014-08-01 Jiong Wang <jiong.wang@arm.com>
8412
8413 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
8414 offset.
8415 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
8416 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
8417
8418 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
8419
8420 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
8421
8422 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
8423
8424 PR regression/61510
8425 * cgraphunit.c (analyze_functions): Use get_create rather than get
8426 for decls which are clones of abstract functions.
8427
8428 2014-08-01 Martin Liska <mliska@suse.cz>
8429
8430 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
8431 * ipa-prop.h (count_formal_params): Global function created from static.
8432 * ipa-prop.c (count_formal_params): Likewise.
8433 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
8434 profiles for semantically equivalent functions.
8435 * passes.c (do_per_function): If we load body of a function
8436 during WPA, this condition should behave same.
8437 * varpool.c (ctor_for_folding): More tolerant assert for variable
8438 aliases created during WPA.
8439
8440 2014-08-01 Martin Liska <mliska@suse.cz>
8441
8442 * doc/invoke.texi (Options That Control Optimization): Documentation
8443 for -foptimize-strlen introduced. Optimization levels default options
8444 fixed.
8445
8446 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8447
8448 * opts.c (common_handle_option): Handle -fsanitize=alignment.
8449 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
8450 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
8451 type to bool.
8452 * stor-layout.h (min_align_of_type): New prototype.
8453 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
8454 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
8455 check.
8456 * ubsan.c: Include builtins.h.
8457 (ubsan_expand_bounds_ifn): Change return type to bool,
8458 always return true.
8459 (ubsan_expand_null_ifn): Change return type to bool, change
8460 argument to gimple_stmt_iterator *. Handle both null and alignment
8461 sanitization, take type from ckind argument's type rather than
8462 first argument.
8463 (instrument_member_call): Removed.
8464 (instrument_mem_ref): Remove t argument, add mem and base arguments.
8465 Handle both null and alignment sanitization, don't say whole
8466 struct access is member access. Build 3 argument IFN_UBSAN_NULL
8467 call instead of 2 argument.
8468 (instrument_null): Adjust instrument_mem_ref caller. Don't
8469 instrument calls here.
8470 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
8471 like SANITIZE_NULL.
8472 * stor-layout.c (min_align_of_type): New function.
8473 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
8474 Or it into SANITIZE_UNDEFINED.
8475 * doc/invoke.texi (-fsanitize=alignment): Document.
8476
8477 2014-07-31 Andi Kleen <ak@linux.intel.com>
8478
8479 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
8480
8481 2014-07-31 Andi Kleen <ak@linux.intel.com>
8482
8483 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
8484 inchash.
8485 (vn_reference_compute_hash): Dito.
8486 (vn_nary_op_compute_hash): Dito.
8487 (vn_phi_compute_hash): Dito.
8488 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
8489
8490 2014-07-31 Andi Kleen <ak@linux.intel.com>
8491
8492 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
8493 Rename to inchash:add_expr_commutative. Convert to inchash.
8494 (iterative_hash_hashable_expr): Rename to
8495 inchash:add_hashable_expr. Convert to inchash.
8496 (avail_expr_hash): Dito.
8497
8498 2014-07-31 Andi Kleen <ak@linux.intel.com>
8499
8500 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
8501 Convert to inchash.
8502
8503 2014-07-31 Andi Kleen <ak@linux.intel.com>
8504
8505 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
8506
8507 2014-07-31 Andi Kleen <ak@linux.intel.com>
8508
8509 * Makefile.in (OBJS): Add rtlhash.o
8510 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
8511 (loc_checksum): Dito.
8512 (loc_checksum_ordered): Dito.
8513 (hash_loc_operands): Dito.
8514 (hash_locs): Dito.
8515 (hash_loc_list): Dito.
8516 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
8517 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
8518 * rtlhash.c: New file.
8519 * rtlhash.h: New file.
8520
8521 2014-07-31 Andi Kleen <ak@linux.intel.com>
8522
8523 * inchash.h (inchash): Change inchash class to namespace.
8524 (class hash): ... Rename from inchash.
8525 (add_object): Move from macro to class template.
8526 * lto-streamer-out.c (hash_tree): Change inchash
8527 to inchash::hash.
8528 * tree.c (build_type_attribute_qual_variant): Dito.
8529 (type_hash_list): Dito.
8530 (attribute_hash_list): Dito.
8531 (iterative_hstate_expr): Rename to inchash::add_expr
8532 (build_range_type_1): Change inchash to inchash::hash
8533 and use hash::add_expr.
8534 (build_array_type_1): Dito.
8535 (build_function_type): Dito
8536 (build_method_type_directly): Dito.
8537 (build_offset_type): Dito.
8538 (build_complex_type): Dito.
8539 (make_vector_type): Dito.
8540 * tree.h (iterative_hash_expr): Dito.
8541
8542 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
8543
8544 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
8545
8546 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8547
8548 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8549 correct alphabetical position.
8550 (vpaddd_f64): Rewrite using builtins.
8551 (vpaddd_s64): Move to correct alphabetical position.
8552 (vpaddd_u64): New.
8553
8554 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8555
8556 PR target/61844
8557 * config/sh/sh.c (sh_legitimate_address_p,
8558 sh_legitimize_reload_address): Handle reg+reg address modes when
8559 ALLOW_INDEXED_ADDRESS is false.
8560 * config/sh/predicates.md (general_movsrc_operand,
8561 general_movdst_operand): Likewise.
8562
8563 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8564
8565 * config/aarch64/aarch64-builtins.c
8566 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8567 BYTES_BIG_ENDIAN.
8568
8569 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8570
8571 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8572 the generated mask based on BYTES_BIG_ENDIAN.
8573 (aarch64_simd_check_vect_par_cnst_half): New.
8574 * config/aarch64/aarch64-protos.h
8575 (aarch64_simd_check_vect_par_cnst_half): New.
8576 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8577 the check out to aarch64_simd_check_vect_par_cnst_half.
8578 (vect_par_cnst_lo_half): Likewise.
8579 * config/aarch64/aarch64-simd.md
8580 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8581 (move_hi_quad_<mode>): Always generate a low mask.
8582
8583 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8584
8585 * doc/invoke.texi (AVR Options): Add documentation about
8586 __AVR_DEVICE_NAME__ built-in macro.
8587
8588 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8589
8590 PR target/61948
8591 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8592 constraints are satisfied.
8593 (<shift>di3_neon): Likewise.
8594
8595 2014-07-31 Richard Biener <rguenther@suse.de>
8596
8597 PR tree-optimization/61964
8598 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8599 by structural equality.
8600
8601 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8602
8603 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8604 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8605 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8606 New enums.
8607 * gcc.c (sanitize_spec_function): Support new option.
8608 (SANITIZER_SPEC): Remove now redundant check.
8609 * opts.c (common_handle_option): Support new option.
8610 (finish_options): Check for incompatibilities.
8611 * toplev.c (process_options): Split userspace-specific checks.
8612
8613 2014-07-31 Richard Biener <rguenther@suse.de>
8614
8615 * lto-streamer.h (struct output_block): Remove global.
8616 (struct data_in): Remove labels, num_named_labels and
8617 num_unnamed_labels.
8618 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8619 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8620
8621 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8622
8623 PR c++/60517
8624 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8625 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8626 (isolate_path): New argument to avoid inserting a trap.
8627 (find_implicit_erroneous_behaviour): Handle returning the address
8628 of a local variable.
8629 (find_explicit_erroneous_behaviour): Likewise.
8630
8631 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8632
8633 PR lto/61868
8634 * toplev.c (init_random_seed): Move piece of code never called to
8635 set_random_seed.
8636 (set_random_seed): see above.
8637
8638 2014-07-31 Tom de Vries <tom@codesourcery.com>
8639
8640 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8641
8642 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8643
8644 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8645 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8646
8647 2014-07-31 Richard Biener <rguenther@suse.de>
8648
8649 * data-streamer.h (streamer_write_data_stream): Declare here,
8650 renamed from ...
8651 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8652 * lto-cgraph.c (lto_output_node): Adjust.
8653 (lto_output_varpool_node): Likewise.
8654 * data-streamer-out.c (streamer_string_index): Likewise.
8655 (streamer_write_data_stream, lto_append_block): Move from ...
8656 * lto-section-out.c (lto_output_data_stream,
8657 lto_append_block): ... here.
8658
8659 2014-07-30 Mike Stump <mikestump@comcast.net>
8660
8661 * configure.ac: Also check for popen.
8662 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8663 * configure: Regenerate.
8664 * config.in: Regenerate.
8665
8666 2014-07-30 Martin Jambor <mjambor@suse.cz>
8667
8668 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8669 parameter to gimple.
8670
8671 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8672
8673 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8674 address as second parameter to __tpf_eh_return routine.
8675
8676 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8677
8678 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8679 Thumb2.
8680
8681 2014-07-30 Tom Tromey <tromey@redhat.com>
8682
8683 PR c/59855
8684 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8685 * doc/extend.texi (Type Attributes): Document designated_init
8686 attribute.
8687
8688 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8689
8690 * graphite-isl-ast-to-gimple.c:
8691 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8692 (gcc_expression_from_isl_expression): Pass type to
8693 gcc_expression_from_isl_ast_expr_id.
8694
8695 2014-07-30 Richard Biener <rguenther@suse.de>
8696
8697 * lto-streamer.h (lto_write_data): New function.
8698 * langhooks.c (lhd_append_data): Do not free block.
8699 * lto-section-out.c (lto_write_data): New function writing
8700 raw data to the current section.
8701 (lto_write_stream): Adjust for langhook semantic change.
8702 (lto_destroy_simple_output_block): Write header directly.
8703 * lto-opts.c (lto_write_options): Write options directly.
8704 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8705 (lto_output_toplevel_asms): Likewise.
8706 (copy_function_or_variable): Copy data directly.
8707 (write_global_references): Output index table directly.
8708 (lto_output_decl_state_refs): Likewise.
8709 (write_symbol): Write data directly.
8710 (produce_symtab): Adjust.
8711 (produce_asm_for_decls): Output header and refs directly.
8712
8713 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8714
8715 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8716 to speculative_targets
8717 (get_class_context): Fix handling of contextes without outer type;
8718 avoid matching non-polymorphic types in LTO.
8719 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8720 parameter to speculative_targetsp; handle speculation.
8721 (dump_possible_polymorphic_call_targets): Update dumping.
8722
8723 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8724
8725 * common.opt (Wodr): Enable by default.
8726
8727 2014-07-29 Olivier Hainque <hainque@adacore.com>
8728
8729 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8730
8731 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8732
8733 PR bootstrap/61914
8734 * gengtype.c (strtoken): New function.
8735 (create_user_defined_type): Replace strtok with strtoken.
8736
8737 2014-07-29 Nathan Sidwell <nathan@acm.org>
8738
8739 * gcov-io.c (gcov_var): Make hidden.
8740 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8741 (gcov_do_dump): Declare.
8742 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8743
8744 2014-07-29 Martin Jambor <mjambor@suse.cz>
8745
8746 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8747 parameter to gimple.
8748 (sra_modify_assign): Likewise.
8749
8750 2014-07-29 Richard Biener <rguenther@suse.de>
8751
8752 PR middle-end/52478
8753 * expr.c (expand_expr_real_2): Revert last change.
8754
8755 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8756
8757 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8758 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8759 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8760 call.
8761 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8762 (contains_type_p): Forward declare.
8763 (polymorphic_call_target_hasher::hash): Hash speculative info.
8764 (polymorphic_call_target_hasher::equal): Compare speculative info.
8765 (get_class_context): Handle speuclation.
8766 (contains_type_p): Update.
8767 (get_polymorphic_call_info_for_decl): Update.
8768 (walk_ssa_copies): Break out from ...
8769 (get_polymorphic_call_info): ... here; set speculative context
8770 before giving up.
8771 * ipa-prop.c (ipa_write_indirect_edge_info,
8772 ipa_read_indirect_edge_info): Stream speculative context.
8773 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8774 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8775 SPECULATIVE_MAYBE_DERIVED_TYPE).
8776 (possible_polymorphic_call_targets overriders): Update.
8777 (dump_possible_polymorphic_call_targets overriders): Update.
8778 (dump_possible_polymorphic_call_target_p overriders): Update.
8779
8780 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8781
8782 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8783 ipa-devirt path; fix thinko there.
8784
8785 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8786
8787 * config/i386/i386.c (ix86_return_in_memory): Replace one
8788 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8789
8790 2014-07-28 Marek Polacek <polacek@redhat.com>
8791
8792 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8793
8794 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8795
8796 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8797 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8798 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8799 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8800 (USE_LD_AS_NEEDED): Likewise.
8801 (ASM_APP_ON): Likewise.
8802 (ASM_APP_OFF): Likewise.
8803 (TARGET_POSIX_IO): Likewise.
8804 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8805 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8806 (USE_LD_AS_NEEDED): Likewise.
8807 (ASM_APP_ON): Likewise.
8808 (ASM_APP_OFF): Likewise.
8809 (TARGET_POSIX_IO): Likewise.
8810
8811 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8812
8813 PR middle-end/61734
8814 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8815 operators other than the equality operators.
8816
8817 2014-07-28 Richard Biener <rguenther@suse.de>
8818
8819 PR middle-end/52478
8820 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8821 sure to register SImode ones, not only >= word_mode ones.
8822 * expr.c (expand_expr_real_2): When expanding -ftrapv
8823 binops do not use OPTAB_LIB_WIDEN.
8824
8825 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8826
8827 PR middle-end/61919
8828 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8829 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8830 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8831 inserting them in the insn stream.
8832
8833 2014-07-28 Marek Polacek <polacek@redhat.com>
8834
8835 PR middle-end/61913
8836 * common.opt (Wodr): Add Var.
8837
8838 2014-07-28 Richard Biener <rguenther@suse.de>
8839
8840 PR tree-optimization/61921
8841 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8842 if there is a varpool node before dereferencing it.
8843
8844 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8845
8846 * graphite-sese-to-poly.c:
8847 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8848 id of the pbb), which contains pointer to the pbb1.
8849
8850 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8851
8852 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8853
8854 * graphite-isl-ast-to-gimple.c:
8855 (graphite_create_new_guard): New function.
8856 (translate_isl_ast_node_if): New function.
8857 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8858
8859 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8860
8861 2014-07-27 Anthony Green <green@moxielogic.com>
8862
8863 * config.gcc: Add moxie-*-moxiebox* configuration.
8864 * config/moxie/moxiebox.h: New file.
8865
8866 2014-07-26 Andrew Pinski <apinski@cavium.com>
8867
8868 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8869 from the read only register.
8870
8871 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8872
8873 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8874 as the allocation class if it isn't likely to be spilled.
8875
8876 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8877
8878 * rtl.h (tls_referenced_p): Declare.
8879 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8880 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8881 (mips_cannot_force_const_mem): Use tls_referenced_p.
8882 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8883 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8884 instead of pa_tls_referenced_p.
8885 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8886 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8887 (pa_legitimate_constant_p): Likewise.
8888 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8889 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8890 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8891 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8892 rs6000_tls_referenced_p.
8893 (rs6000_tls_symbol_ref_1): Delete.
8894
8895 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8896
8897 PR target/44551
8898 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8899 Optimize inverse of a VEC_CONCAT.
8900
8901 2014-07-25 Xinliang David Li <davidxl@google.com>
8902
8903 * params.def: New parameter.
8904 * coverage.c (get_coverage_counts): Check new flag.
8905 (coverage_compute_profile_id): Check new flag.
8906 (coverage_begin_function): Check new flag.
8907 (coverage_end_function): Check new flag.
8908 * value-prof.c (coverage_node_map_initialized_p): New function.
8909 (init_node_map): Populate map with all functions.
8910 * doc/invoke.texi: Document new parameter.
8911
8912 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8913 Richard Biener <rguenther@suse.de>
8914
8915 * lto-streamer-out.c (struct sccs): Turn to ...
8916 (class DFS): ... this one; refactor the DFS walk so it can
8917 be re-done on per-SCC basis.
8918 (DFS::DFS): New constructor.
8919 (DFS::~DFS): New destructor.
8920 (hash_tree): Add new MAP argument holding in-SCC hash values;
8921 remove POINTER_TYPE hashing hack.
8922 (scc_entry_compare): Rename to ...
8923 (DFS::scc_entry_compare): ... this one.
8924 (hash_scc): Rename to ...
8925 (DFS::hash_scc): ... this one; pass output_block instead
8926 of streamer_cache; work harder to get unique and stable SCC
8927 hashes.
8928 (DFS_write_tree): Rename to ...
8929 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8930 (lto_output_tree): Update.
8931
8932 2014-07-25 Andi Kleen <ak@linux.intel.com>
8933
8934 * lto-streamer-out.c (hash_tree): Convert to inchash.
8935
8936 2014-07-25 Andi Kleen <ak@linux.intel.com>
8937
8938 * tree.c (build_type_attribute_qual_variant): Use inchash.
8939 (type_hash_list): Dito.
8940 (attribute_hash_list): Dito
8941 (iterative_hstate_expr): Dito.
8942 (iterative_hash_expr): Dito.
8943 (build_range_type_1): Dito.
8944 (build_array_type_1): Dito.
8945 (build_function_type): Dito.
8946 (build_method_type_directly): Dito.
8947 (build_offset_type): Dito.
8948 (build_complex_type): Dito.
8949 (make_vector_type): Dito.
8950 * tree.h (iterative_hash_expr): Add compat wrapper.
8951 (iterative_hstate_expr): Add.
8952
8953 2014-07-25 Andi Kleen <ak@linux.intel.com>
8954
8955 * Makefile.in (OBJS): Add inchash.o.
8956 (PLUGIN_HEADERS): Add inchash.h.
8957 * ipa-devirt.c: Include inchash.h.
8958 * lto-streamer-out.c: Dito.
8959 * tree-ssa-dom.c: Dito.
8960 * tree-ssa-pre.c: Dito.
8961 * tree-ssa-sccvn.c: Dito.
8962 * tree-ssa-tail-merge.c: Dito.
8963 * asan.c: Dito.
8964 * tree.c (iterative_hash_hashval_t): Move to ...
8965 (iterative_hash_host_wide_int): Move to ...
8966 * inchash.c: Here. New file.
8967 * tree.h (iterative_hash_hashval_t): Move to ...
8968 (iterative_hash_host_wide_int): Move to ...
8969 * inchash.h: Here. New file.
8970
8971 2014-07-25 Richard Biener <rguenther@suse.de>
8972
8973 PR middle-end/61762
8974 PR middle-end/61894
8975 * fold-const.c (native_encode_int): Add and handle offset
8976 parameter to do partial encodings of expr.
8977 (native_encode_fixed): Likewise.
8978 (native_encode_real): Likewise.
8979 (native_encode_complex): Likewise.
8980 (native_encode_vector): Likewise.
8981 (native_encode_string): Likewise.
8982 (native_encode_expr): Likewise.
8983 * fold-const.c (native_encode_expr): Add offset parameter
8984 defaulting to -1.
8985 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8986 (fold_ctor_reference): Handle all reads from tcc_constant
8987 ctors.
8988
8989 2014-07-25 Richard Biener <rguenther@suse.de>
8990
8991 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8992 as possibly unused.
8993
8994 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8995
8996 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8997
8998 2014-07-24 Kyle McMartin <kyle@redhat.com>
8999
9000 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
9001
9002 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9003
9004 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
9005 Add prototype.
9006 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
9007 function.
9008 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
9009 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
9010 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
9011
9012 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9013
9014 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
9015 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
9016 aggregate types. Instead, *all* aggregate types, except for single-
9017 element or homogeneous float/vector aggregates, are quadword-aligned
9018 if required by their type alignment. Issue -Wpsabi note when a type
9019 is now treated differently than before.
9020
9021 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9022
9023 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
9024 does not fit fully into floating-point registers, and there is still
9025 space in the register parameter area, use GPRs to pass those parts
9026 of the argument. Issue -Wpsabi note if any parameter is now treated
9027 differently than before.
9028 (rs6000_arg_partial_bytes): Update.
9029
9030 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
9031
9032 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
9033
9034 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9035
9036 * rtl.h (target_rtl): Remove lang_dependent_initialized.
9037 * toplev.c (initialize_rtl): Don't use it. Move previously
9038 "language-dependent" calls to...
9039 (backend_init): ...here.
9040 (lang_dependent_init_target): Don't set lang_dependent_initialized.
9041 Assert that RTL initialization hasn't happend yet.
9042
9043 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9044
9045 PR rtl-optimization/61629
9046 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
9047 they have already been initialized.
9048
9049 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
9050
9051 PR middle-end/61268
9052 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
9053 DECL_INCOMING_RTL and entry_parm.
9054 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
9055 * calls.c (load_register_parameters): Likewise argument values.
9056 (emit_library_call_value_1, store_one_arg): Likewise argument
9057 save areas.
9058 * config/i386/i386.c (assign_386_stack_local): Likewise the local
9059 stack slot.
9060 * explow.c (validize_mem): Modify the argument in-place.
9061
9062 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9063
9064 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
9065 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
9066
9067 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9068
9069 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
9070 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
9071
9072 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9073
9074 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
9075 (aarch64_save_callee_saves): New parameter "skip_wb".
9076 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
9077
9078 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9079
9080 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
9081 "wb_candidate2".
9082 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
9083
9084 2014-07-24 Roman Gareev <gareevroman@gmail.com>
9085
9086 * graphite-isl-ast-to-gimple.c:
9087 (graphite_create_new_loop): Add calling of isl_id_free to properly
9088 decrement reference counts.
9089
9090 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
9091
9092 2014-07-24 Martin Liska <mliska@suse.cz>
9093 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
9094 function used.
9095 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
9096 (rs6000_code_end): Likewise.
9097
9098 2014-07-24 Martin Liska <mliska@suse.cz>
9099
9100 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
9101 symtab_node funtion used.
9102 (rs6000_xcoff_declare_object_name): Likewise.
9103
9104 2014-07-24 Martin Liska <mliska@suse.cz>
9105
9106 * cgraphunit.c (compile): Correct function used.
9107
9108 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
9109
9110 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
9111 as non-indexable.
9112
9113 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
9114
9115 PR lto/61802
9116 * varasm.c (bss_initializer_p): Handle offlined ctors.
9117 (align_variable, get_variable_align): Likewise.
9118 (make_decl_one_only): Likewise.
9119 (default_binds_local_p_1): Likewise.
9120 (decl_binds_to_current_def_p): Likewise.
9121 (get_variable_section): Get constructor if it is offlined.
9122 (assemble_variable_contents): Sanity check that the caller
9123 streamed in the ctor in LTO.
9124
9125 2014-07-24 Roman Gareev <gareevroman@gmail.com>
9126
9127 * graphite-isl-ast-to-gimple.c:
9128 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
9129 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
9130 isl_ast_op_pdiv_r to the different case.
9131
9132 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
9133
9134 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9135
9136 PR middle-end/61876
9137 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
9138 when flag_errno_math is on.
9139
9140 2014-07-24 Martin Liska <mliska@suse.cz>
9141
9142 * cgraph.h (varpool_node):
9143 (availability get_availability (void)):
9144 created from cgraph_variable_initializer_availability
9145 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
9146 created from: cgraph_variable_initializer_availability
9147 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
9148 (void finalize_named_section_flags (void)):
9149 created from varpool_finalize_named_section_flags
9150 (bool assemble_decl (void)): created from varpool_assemble_decl
9151 (void analyze (void)): created from varpool_analyze_node
9152 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
9153 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
9154 (void remove_initializer (void)): created from varpool_remove_initializer
9155 (tree get_constructor (void)): created from varpool_get_constructor
9156 (bool externally_visible_p (void)): created from varpool_externally_visible_p
9157 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
9158 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
9159 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
9160 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
9161 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
9162 (static bool output_variables (void)): created from varpool_output_variables
9163 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
9164 created from varpool_extra_name_alias
9165 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
9166 (static void dump_varpool (FILE *f)): created from dump_varpool
9167 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
9168 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
9169 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
9170 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
9171 (void assemble_aliases (void)): created from assemble_aliases
9172
9173 2014-07-24 Martin Liska <mliska@suse.cz>
9174
9175 * cgraph.h (symtab_node):
9176 (void register_symbol (void)): created from symtab_register_node
9177 (void remove (void)): created from symtab_remove_node
9178 (void dump (FILE *f)): created from dump_symtab_node
9179 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
9180 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
9181 (struct ipa_ref *add_reference (symtab_node *referred_node,
9182 enum ipa_ref_use use_type)): created from add_reference
9183 (struct ipa_ref *add_reference (symtab_node *referred_node,
9184 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
9185 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
9186 gimple stmt)): created from maybe_add_reference
9187 (bool semantically_equivalent_p (symtab_node *target)): created from
9188 symtab_semantically_equivalent_p
9189 (void remove_from_same_comdat_group (void)): created from
9190 remove_from_same_comdat_group
9191 (void add_to_same_comdat_group (symtab_node *old_node)): created from
9192 symtab_add_to_same_comdat_group
9193 (void dissolve_same_comdat_group_list (void)): created from
9194 symtab_dissolve_same_comdat_group_list
9195 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
9196 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
9197 created from symtab_alias_ultimate_target
9198 (inline symtab_node *next_defined_symbol (void)): created from
9199 symtab_next_defined_symbol
9200 (bool resolve_alias (symtab_node *target)): created from
9201 symtab_resolve_alias
9202 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
9203 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
9204 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
9205 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
9206 (void set_section (const char *section)): created from set_section_1
9207 (enum availability get_availability (void)): created from symtab_node_availability
9208 (void make_decl_local (void)): created from symtab_make_decl_local
9209 (bool real_symbol_p (void)): created from symtab_read_node
9210 (can_be_discarded_p (void)): created from symtab_can_be_discarded
9211 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
9212 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
9213 symtab_in_same_comdat_p;
9214 (bool address_taken_from_non_vtable_p (void)): created from
9215 address_taken_from_non_vtable_p
9216 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
9217 (static void dump_table (FILE *)): created from dump_symtab
9218 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
9219 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
9220 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
9221 symtab_used_from_object_file_p
9222 (void dump_base (FILE *)): created from dump_symtab_base
9223 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
9224 (void unregister (void)): created from symtab_unregister_node
9225 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
9226 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
9227 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
9228 symtab_nonoverwritable_alias_1
9229 * cgraph.h (cgraph_node):
9230 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
9231 created from cgraph_remove_node_and_inline_clones
9232 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
9233 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
9234 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
9235 (cgraph_node *function_symbol (enum availability *avail = NULL)):
9236 created from cgraph_function_node
9237 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
9238 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
9239 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
9240 created from cgraph_create_clone
9241 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
9242 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
9243 created from cgraph_create_virtual_clone
9244 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
9245 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
9246 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
9247 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
9248 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
9249 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
9250 created from cgraph_function_version_info
9251 (struct cgraph_function_version_info *insert_new_function_version (void)):
9252 created from insert_new_cgraph_node_version
9253 (struct cgraph_function_version_info *function_version (void)): created from
9254 get_cgraph_node_version
9255 (void analyze (void)): created from analyze_function
9256 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
9257 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
9258 tree real_alias) cgraph_add_thunk
9259 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
9260 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
9261 created from cgraph_function_or_thunk_node
9262 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
9263 created from expand_thunk
9264 (void reset (void)): created from cgraph_reset_node
9265 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
9266 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
9267 (void remove (void)): created from cgraph_remove_node
9268 (void dump (FILE *f)): created from dump_cgraph_node
9269 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
9270 (bool get_body (void)): created from cgraph_get_body
9271 (void release_body (void)): created from cgraph_release_function_body
9272 (void unnest (void)): created from cgraph_unnest_node
9273 (void make_local (void)): created from cgraph_make_node_local
9274 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
9275 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
9276 gcov_type count, int freq)): created from cgraph_create_edge
9277 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
9278 gcov_type count, int freq)): created from cgraph_create_indirect_edge
9279 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
9280 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
9281 created from cgraph_create_edge_including_clones
9282 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
9283 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
9284 (void remove_callers (void)): created from cgraph_node_remove_callers
9285 (void remove_callees (void)): created from cgraph_node_remove_callees
9286 (enum availability get_availability (void)): created from cgraph_function_body_availability
9287 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
9288 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
9289 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
9290 (void call_duplication_hooks (cgraph_node *node2)): created from
9291 cgraph_call_node_duplication_hooks
9292 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
9293 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
9294 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
9295 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
9296 (void call_function_insertion_hooks (void)):
9297 created from cgraph_call_function_insertion_hooks
9298 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
9299 (bool local_p (void)): created from cgraph_local_node
9300 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
9301 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
9302 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
9303 (inline bool only_called_directly_or_aliased_p (void)):
9304 created from cgraph_only_called_directly_or_aliased_p
9305 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
9306 created from cgraph_will_be_removed_from_program_if_no_direct_calls
9307 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
9308 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
9309 (bool can_remove_if_no_direct_calls_p (void)):
9310 created from cgraph_can_remove_if_no_direct_calls_p
9311 (inline bool has_gimple_body_p (void)):
9312 created from cgraph_function_with_gimple_body_p
9313 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
9314 (static void dump_cgraph (FILE *f)): created from dump_cgraph
9315 (static inline void debug_cgraph (void)): created from debug_cgraph
9316 (static void record_function_versions (tree decl1, tree decl2)):
9317 created from record_function_versions
9318 (static void delete_function_version (tree decl)):
9319 created from delete_function_version
9320 (static void add_new_function (tree fndecl, bool lowered)):
9321 created from cgraph_add_new_function
9322 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
9323 (static cgraph_node * create (tree decl)): created from cgraph_create_node
9324 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
9325 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
9326 (static cgraph_node *get_for_asmname (tree asmname)):
9327 created from cgraph_node_for_asm
9328 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
9329 created from cgraph_same_body_alias
9330 (static bool used_from_object_file_p_worker (cgraph_node *node,
9331 void *): new function
9332 (static bool non_local_p (cgraph_node *node, void *)):
9333 created from cgraph_non_local_node_p_1
9334 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
9335 created from verify_cgraph
9336 (static bool make_local (cgraph_node *node, void *)):
9337 created from cgraph_make_node_local
9338 (static cgraph_node *create_alias (tree alias, tree target)):
9339 created from cgraph_create_function_alias
9340 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
9341 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
9342 created from cgraph_create_edge_1
9343 * cgraph.h (varpool_node):
9344 (void remove (void)): created from varpool_remove_node
9345 (void dump (FILE *f)): created from dump_varpool_node
9346
9347 2014-07-24 Richard Biener <rguenther@suse.de>
9348
9349 PR ipa/61823
9350 * tree-ssa-structalias.c (create_variable_info_for_1):
9351 Use varpool_get_constructor.
9352 (create_variable_info_for): Likewise.
9353
9354 2014-07-24 Jiong Wang <jiong.wang@arm.com>
9355
9356 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
9357 subtract outgoing area size when restoring stack_pointer_rtx.
9358
9359 2014-07-24 Nick Clifton <nickc@redhat.com>
9360
9361 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
9362 that operations are taking place in parallel.
9363 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
9364
9365 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
9366
9367 * omp-low.c (extract_omp_for_data): Add missing break statement.
9368
9369 2014-07-24 Richard Biener <rguenther@suse.de>
9370
9371 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
9372 * tree-inline.c (estimate_move_cost): Add speed_p parameter
9373 and adjust MOVE_RATIO query accordingly.
9374 (estimate_num_insns): Adjust callers.
9375 * ipa-prop.c (ipa_populate_param_decls): Likewise.
9376 * ipa-cp.c (gather_context_independent_values,
9377 estimate_local_effects): Likewise.
9378 * ipa-split.c (consider_split): Likewise.
9379
9380 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
9381
9382 * config/i386/driver-i386.c: Remove names of unused arguments and
9383 unnecessary unused attributes.
9384 * config/i386/host-mingw32.c: Likewise.
9385 * config/i386/i386.c: Likewise.
9386 * config/i386/winnt-stubs.c: Likewise.
9387 * config/i386/winnt.c: Likewise.
9388
9389 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9390
9391 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
9392 (aarch64_gen_loadwb_pair): New helper function.
9393 (aarch64_expand_epilogue): Simplify code using new helper functions.
9394 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
9395
9396 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9397
9398 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
9399 (aarch64_gen_storewb_pair): New helper function.
9400 (aarch64_expand_prologue): Simplify code using new helper functions.
9401 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
9402
9403 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9404
9405 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
9406 Rename to aarch64_save_callee_saves, remove restore code.
9407 (aarch64_restore_callee_saves): New function.
9408
9409 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9410
9411 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
9412 (aarch64_save_callee_saves): New function to handle reg save
9413 for both core and vectore regs.
9414
9415 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9416
9417 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
9418 (aarch64_gen_store_pair): New helper function.
9419 (aarch64_save_or_restore_callee_save_registers)
9420 (aarch64_save_or_restore_fprs): Use new helper functions.
9421
9422 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9423
9424 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
9425 (aarch64_save_or_restore_callee_save_registers)
9426 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
9427
9428 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9429
9430 * config/aarch64/aarch64.c
9431 (aarch64_save_or_restore_callee_save_registers)
9432 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
9433
9434 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9435
9436 * config/aarch64/aarch64.c
9437 (aarch64_save_or_restore_callee_save_registers)
9438 (aarch64_save_or_restore_fprs): Remove 'increment'.
9439
9440 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9441
9442 * config/aarch64/aarch64.c
9443 (aarch64_save_or_restore_callee_save_registers)
9444 (aarch64_save_or_restore_fprs): Use register offset in
9445 cfun->machine->frame.reg_offset.
9446
9447 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9448
9449 * config/aarch64/aarch64.c
9450 (aarch64_save_or_restore_callee_save_registers)
9451 (aarch64_save_or_restore_fprs): Remove base_rtx.
9452
9453 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9454
9455 * config/aarch64/aarch64.c
9456 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
9457 to 'start_offset'. Remove local variable 'start_offset'.
9458
9459 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9460
9461 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
9462 type to HOST_WIDE_INT.
9463
9464 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9465
9466 * config/aarch64/aarch64.c (aarch64_expand_prologue)
9467 (aarch64_save_or_restore_fprs)
9468 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
9469
9470 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9471
9472 * config/arm/t-rtems-eabi: Add
9473 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
9474 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
9475 mbig-endian/mthumb/march=armv7-r, and
9476 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
9477 multilibs.
9478
9479 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
9480 Chris Johns <chrisj@rtems.org>
9481 Joel Sherrill <joel.sherrill@oarcorp.com>
9482
9483 * config.gcc: Add nios2-*-rtems*.
9484 * config/nios2/rtems.h: New file.
9485 * gcc/config/nios2/t-rtems: New file.
9486
9487 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
9488
9489 PR target/61396
9490 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
9491 constant numbers, not general constants.
9492 (rs6000_expand_vector_init): Ditto.
9493
9494 2014-07-23 Nathan Sidwell <nathan@acm.org>
9495
9496 * gcov-tool.c (gcov_list): Declare here.
9497 (set_gcov_list): Remove.
9498 (gcov_output_files): Set gcov_list directly.
9499
9500 2014-07-23 Host Schirmeier <horst@schirmeier.com>
9501
9502 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
9503
9504 2014-07-23 Jiong Wang <jiong.wang@arm.com>
9505
9506 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
9507 callee-saved registers are available for padding purpose
9508 and r3 is not mandatory, then prefer use those callee-saved
9509 instead of r3.
9510
9511 2014-07-23 Richard Biener <rguenther@suse.de>
9512
9513 * params.def (PARAM_MAX_COMBINE_INSNS): New.
9514 * combine.c: Include statistics.h and params.h.
9515 (combine_instructions): Guard three and four insn combines
9516 with max-combine-insns value. Record statistics for combines
9517 performed.
9518 * doc/invoke.texi (max-combine-insns): Document new param.
9519
9520 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9521
9522 * graphite-isl-ast-to-gimple.c:
9523 (translate_isl_ast_node_block): New function.
9524 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
9525
9526 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
9527 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
9528
9529 2014-07-23 Roman Gareev <gareevroman@gmail.com>
9530
9531 * graphite-isl-ast-to-gimple.c:
9532 (get_max_schedule_dimensions): New function.
9533 (extend_schedule): Likewise.
9534 (generate_isl_schedule): Add calling of extend_schedule and
9535 get_max_schedule_dimensions.
9536
9537 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9538
9539 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
9540 (case UNSPEC): Handle UNSPEC_RBIT.
9541
9542 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9543
9544 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
9545 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
9546
9547 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9548
9549 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9550
9551 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9552
9553 * graphite-isl-ast-to-gimple.c:
9554 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9555 (ivs_params_clear):
9556 (build_iv_mapping): New function.
9557 (translate_isl_ast_node_user): Likewise.
9558 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9559
9560 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9561 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9562 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9563
9564 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9565
9566 PR target/55701
9567 * config/arm/arm.md (setmem): New pattern.
9568 * config/arm/arm-protos.h (struct tune_params): New fields.
9569 (arm_gen_setmem): New prototype.
9570 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9571 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9572 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9573 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9574 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9575 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9576 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9577 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9578 (arm_const_inline_cost): New function.
9579 (arm_block_set_max_insns): New function.
9580 (arm_block_set_non_vect_profit_p): New function.
9581 (arm_block_set_vect_profit_p): New function.
9582 (arm_block_set_unaligned_vect): New function.
9583 (arm_block_set_aligned_vect): New function.
9584 (arm_block_set_unaligned_non_vect): New function.
9585 (arm_block_set_aligned_non_vect): New function.
9586 (arm_block_set_vect, arm_gen_setmem): New functions.
9587
9588 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9589
9590 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9591
9592 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9593
9594 PR target/61855
9595 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9596 out of #ifdef __OPTIMIZE__.
9597
9598 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9599
9600 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9601 different trapping status if -fnon-call-exceptions is enabled.
9602
9603 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9604
9605 * expr.c (store_field): Handle VOIDmode for calls that return values
9606 in multiple locations.
9607
9608 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9609
9610 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9611 (altivec_vsldoi_<mode>): Likewise.
9612
9613 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9614
9615 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9616 to the number of characters in the line.
9617
9618 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9619
9620 * graphite-isl-ast-to-gimple.c: Add using of
9621 build_nonstandard_integer_type instead of int128_integer_type_node.
9622
9623 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9624
9625 * toplev.c (output_stack_usage): Adjust the location of the warning.
9626
9627 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9628
9629 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9630 (*membar_storeload): Disable for LEON3.
9631
9632 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9633
9634 PR rtl-optimization/61461
9635 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9636
9637 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9638
9639 PR target/61794
9640 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9641 Fix instruction constraint.
9642 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9643
9644 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9645
9646 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9647
9648 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9649
9650 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9651 GNU coding standards.
9652 (nds32_register_move_cost): Likewise.
9653 (nds32_memory_move_cost): Likewise.
9654 (nds32_address_cost): Likewise.
9655
9656 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9657
9658 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9659
9660 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9661
9662 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9663 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9664 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9665 (HAVE_sync_compare_and_swapqi): Define.
9666 (HAVE_sync_compare_and_swaphi): Likewise.
9667 (HAVE_sync_compare_and_swapsi): Likewise.
9668
9669 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9670
9671 * config/mips/p5600.md: Add missing cpu tests.
9672
9673 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9674
9675 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9676 (vmla_f64): Likewise.
9677 (vfms_f64): Likewise.
9678 (vmls_f64): Likewise.
9679
9680 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9681
9682 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9683 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9684
9685 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9686
9687 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9688 (vmlal_high_lane_s32): Likewise.
9689 (vmlal_high_lane_u16): Likewise.
9690 (vmlal_high_lane_u32): Likewise.
9691 (vmlsl_high_lane_s16): Likewise.
9692 (vmlsl_high_lane_s32): Likewise.
9693 (vmlsl_high_lane_u16): Likewise.
9694 (vmlsl_high_lane_u32): Likewise.
9695
9696 2014-07-17 Terry Guo <terry.guo@arm.com>
9697
9698 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9699 (alus_reg): Renamed to alus_sreg.
9700 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9701 from alu_reg to alu_sreg. Change type of dsp instructions from
9702 alu_reg to alu_dsp_reg.
9703 * config/arm/thumb1.md: Likewise.
9704 * config/arm/thumb2.md: Likewise.
9705 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9706 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9707 with alu_sreg and alus_sreg.
9708 * config/arm/arm1026ejs.md (alu_op): Likewise.
9709 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9710 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9711 * config/arm/fa526.md (526_alu_op): Likewise.
9712 * config/arm/fa606te.md (606te_alu_op): Likewise.
9713 * config/arm/fa626te.md (626te_alu_op): Likewise.
9714 * config/arm/fa726te.md (726te_alu_op): Likewise.
9715 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9716 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9717 alu_sreg, alu_dsp_reg and alus_sreg.
9718 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9719 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9720 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9721 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9722 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9723 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9724 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9725 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9726 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9727 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9728 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9729 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9730 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9731 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9732 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9733 alus_reg to alus_sreg.
9734
9735 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9736
9737 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9738 infinity format.
9739
9740 2014-07-17 Richard Biener <rguenther@suse.de>
9741
9742 PR rtl-optimization/61801
9743 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9744 don't set reg_pending_barrier if it appears in a debug-insn.
9745
9746 2014-07-16 DJ Delorie <dj@redhat.com>
9747
9748 * config/rx/rx.c (rx_option_override): Fix alignment values.
9749 (rx_align_for_label): Likewise.
9750
9751 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9752
9753 PR target/61737.
9754 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9755 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9756 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9757 functions.
9758 (cris_print_index, cris_print_operand, cris_constant_index_p)
9759 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9760 (cris_address_cost): Ditto last CONSTANT_P.
9761 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9762 callers changed. Yield cris_offsettable_symbol for non-PIC
9763 constant symbolic expressions including labels. Yield cris_unspec
9764 for all unspecs.
9765 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9766 target to pic_offset_table_rtx for calls that will likely go
9767 through PLT, const0_rtx when they can't. All callers changed.
9768 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9769 symbolic expressions to be PICified. Remove second, redundant,
9770 assert on can_create_pseudo_p returning non-zero. Use
9771 replace_equiv_address_nv, not replace_equiv_address, for final
9772 operand update.
9773 * config/cris/cris.md ("movsi"): Move variable t to pattern
9774 toplevel. Adjust assert for new cris_symbol_type member. Use
9775 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9776 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9777 for lapc stricter.
9778 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9779 ("call", "call_value"): Use second incoming operand as a marker
9780 for pic-offset-table-register being used.
9781 ("*expanded_call_non_v32", "*expanded_call_v32")
9782 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9783 second incoming operand to CALL, match cris_call_type_marker.
9784 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9785 ("*expanded_call_side"): Ditto. Fix typo in comment.
9786 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9787 CONSTANT_P.
9788 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9789 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9790 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9791 users changed. Add members cris_offsettable_symbol and cris_unspec.
9792 (cris_symbol_type): Rename from cris_pic_symbol_type.
9793 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9794 just CONSTANT_P.
9795 * config/cris/cris-protos.h (cris_symbol_type_of,
9796 cris_expand_pic_call_address): Adjust prototypes.
9797 (cris_legitimate_constant_p): New prototype.
9798
9799 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9800 an existing tmake_file. Don't add t-slibgcc and t-linux.
9801
9802 2014-07-17 Jason Merrill <jason@redhat.com>
9803
9804 PR c++/61623
9805 * symtab.c (symtab_remove_from_same_comdat_group): Also
9806 set_comdat_group to NULL_TREE.
9807 (verify_symtab): Fix diagnostic.
9808
9809 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9810
9811 PR target/61662
9812 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9813
9814 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9815
9816 Support location tracking for built-in macro tokens
9817 * input.h (is_location_from_builtin_token): New function declaration.
9818 * input.c (is_location_from_builtin_token): New function definition.
9819 * toplev.c (general_init): Tell libcpp what the pre-defined
9820 spelling location for built-in tokens is.
9821
9822 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9823
9824 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9825 on the FUNCTION_DECL.
9826
9827 2014-07-16 Richard Biener <rguenther@suse.de>
9828
9829 PR other/61782
9830 * doc/extend.texi (always_inline): Clarify.
9831
9832 2014-07-15 Eric Christopher <echristo@gmail.com>
9833
9834 * doc/invoke.texi (Link Options): Document -z option.
9835
9836 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9837
9838 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9839 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9840
9841 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9842
9843 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9844
9845 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9846
9847 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9848 varpool_assemble_decl.
9849 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9850 true.
9851
9852 2014-07-15 Michael Matz <matz@suse.de>
9853
9854 PR rtl-optimization/61772
9855 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9856
9857 2014-07-15 Richard Biener <rguenther@suse.de>
9858
9859 * opts.c (default_options_table): Disable bit-ccp at -Og.
9860
9861 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9862
9863 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9864
9865 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9866
9867 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9868 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9869 call langhook for unknown declaration.
9870 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9871 * tree.h (DECL_ARGUMENTS): Update.
9872 * print-tree.c (print_node): Update.
9873 * tree-core.h (tree_decl_non_common): Remove arguments.
9874 (tree_function_decl): Add arguments.
9875
9876 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9877
9878 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9879
9880 2014-07-14 Richard Biener <rguenther@suse.de>
9881
9882 PR tree-optimization/61779
9883 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9884 simplifying a condition.
9885
9886 2014-07-14 Richard Biener <rguenther@suse.de>
9887
9888 * builtins.c (c_strlen): Make only_value == 2 really only
9889 affect warning generation.
9890
9891 2014-07-14 Richard Biener <rguenther@suse.de>
9892
9893 PR tree-optimization/61757
9894 PR tree-optimization/61783
9895 PR tree-optimization/61787
9896 * tree-ssa-dom.c (record_equality): Revert canonicalization
9897 change and add comment.
9898 (propagate_rhs_into_lhs): Revert previous fix, removing
9899 loop depth restriction again.
9900
9901 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9902
9903 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9904 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9905 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9906 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9907 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9908 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9909 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9910
9911 2014-07-14 Richard Biener <rguenther@suse.de>
9912
9913 * cgraph.h (decl_in_symtab_p): Make inline.
9914
9915 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9916
9917 PR middle-end/61294
9918 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9919
9920 PR target/61656
9921 * config/i386/i386.c (classify_argument): Don't merge classes above
9922 number of words.
9923
9924 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9925
9926 * cgraph.h (symtab_node): Add nonzero_address.
9927 (decl_in_symtab_p): Break out from ...
9928 (symtab_get_node): ... here.
9929 * fold-const.c: Include cgraph.h
9930 (tree_single_nonzero_warnv_p): Use symtab to determine
9931 if symbol is non-zero.
9932 * symtab.c (symtab_node::nonzero_address): New method.
9933
9934 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9935
9936 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9937 forgotten in previous commit.
9938
9939 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9940
9941 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9942 on builtin types.
9943 * ipa-devirt.c: Include stor-layout.h and intl.h
9944 (odr_subtypes_equivalent_p): New function.
9945 (warn_odr): New function.
9946 (warn_type_mismatch): New function.
9947 (odr_types_equivalent_p): New function.
9948 (add_type_duplicate): Use it.
9949 * common.opt (Wodr): New flag.
9950 * doc/invoke.texi (Wodr): Document new warning.
9951
9952 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9953
9954 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9955 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9956 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9957 (varpool_get_constructor): Push CTORS_IN timevar.
9958 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9959
9960 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9961
9962 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9963 Remove VOID_FTYPE_PUSHORT.
9964 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9965 Change code to USHORT_FTYPE_VOID.
9966 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9967 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9968 (ix86_atomic_assign_expand_fenv): Update for
9969 __builtin_ia32_fnstsw changes.
9970 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9971 (fnstsw): Change operand 0 to nonimmediate operand.
9972
9973 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9974
9975 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9976 (varpool_get_constructor): New function.
9977 (varpool_ctor_useable_for_folding_p): Break out from ...
9978 (ctor_for_folding): ... here; use varpool_get_constructor.
9979 (varpool_assemble_decl): Likewise.
9980 * lto-streamer.h (struct output_block): Turn cgraph_node
9981 to symbol filed.
9982 (lto_input_variable_constructor): Declare.
9983 * ipa-visibility.c (function_and_variable_visibility): Use
9984 varpool_get_constructor.
9985 * cgraph.h (varpool_get_constructor): Declare.
9986 (varpool_ctor_useable_for_folding_p): New function.
9987 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9988 parameter; return error_mark_node for non-trivial constructors.
9989 (lto_write_tree_1, DFS_write_tree): Update use of
9990 get_symbol_initial_value.
9991 (output_function): Update initialization of symbol.
9992 (output_constructor): New function.
9993 (copy_function): Rename to ..
9994 (copy_function_or_variable): ... this one; handle vars too.
9995 (lto_output): Output variable sections.
9996 * lto-streamer-in.c (input_constructor): New function.
9997 (lto_read_body): Rename from ...
9998 (lto_read_body_or_constructor): ... this one; handle vars too.
9999 (lto_input_variable_constructor): New function.
10000 * ipa-prop.c (ipa_prop_write_jump_functions,
10001 ipa_prop_write_all_agg_replacement): Update.
10002 * lto-cgraph.c (compute_ltrans_boundary): Use it.
10003 (output_cgraph_opt_summary): Set symbol to NULL.
10004
10005 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10006
10007 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
10008 non-polymorphic types.
10009 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
10010 * ipa-devirt.c (types_same_for_odr): Do not explode when one
10011 of types is not polymorphic.
10012
10013 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
10014
10015 * lra-constraints.c (remove_inheritance_pseudos): Process
10016 destination pseudo too.
10017
10018 2014-07-11 Rong Xu <xur@google.com>
10019
10020 * gcov-tool.c (gcov_output_files): Fix build error introduced in
10021 commit r212448.
10022
10023 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
10024
10025 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
10026 * config/avr/avr-devices.c (AVR_MCU): Same.
10027 (avr_mcu_types): add text start value to end of device list.
10028 * config/avr/avr-mcus.def: Add text section start for all devices.
10029 (ata5782): Add new avr5 device.
10030 (ata5831): Same.
10031 * config/avr/avr-tables.opt: Regenerate.
10032 * config/avr/avr.h: Add declaration for text section start handler.
10033 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
10034 SPEC functions.
10035 (LINK_SPEC): Include text section start handler to linker spec.
10036 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
10037 pass -Ttext option to linker if the text section start for the device
10038 is not zero.
10039 * config/avr/t-multilib: Regenerate.
10040 * doc/avr-mmcu.texi: Regenerate.
10041
10042 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
10043
10044 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
10045 * config/rs6000/aix52.h (LINK_SPEC): Same.
10046 * config/rs6000/aix53.h (LINK_SPEC): Same.
10047 * config/rs6000/aix61.h (LINK_SPEC): Same.
10048 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
10049
10050 2014-07-11 Roman Gareev <gareevroman@gmail.com>
10051
10052 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
10053 (graphite_verify): New function.
10054 (ivs_params_clear): New function.
10055 (gcc_expression_from_isl_ast_expr_id): New function.
10056 (gcc_expression_from_isl_expr_int): New function.
10057 (binary_op_to_tree): New function.
10058 (ternary_op_to_tree): New function.
10059 (unary_op_to_tree): New function.
10060 (nary_op_to_tree): New function.
10061 (gcc_expression_from_isl_expr_op): New function.
10062 (gcc_expression_from_isl_expression): New function.
10063 (graphite_create_new_loop): New function.
10064 (translate_isl_ast_for_loop): New function.
10065 (get_upper_bound): New function.
10066 (graphite_create_new_loop_guard): New function.
10067 (translate_isl_ast_node_for): New function.
10068 (translate_isl_ast): New function.
10069 (add_parameters_to_ivs_params): New function.
10070 (scop_to_isl_ast): New parameter ip.
10071 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
10072
10073 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
10074
10075 * config/xtensa/predicates.md (call expander): Update for
10076 DECL_SECTION_NAME being string.
10077
10078 2014-07-11 Richard Biener <rguenther@suse.de>
10079
10080 PR middle-end/61473
10081 * builtins.c (fold_builtin_memory_op): Inline memory moves that
10082 can be implemented with a single load followed by a single store.
10083 (c_strlen): Only warn when only_value is not 2.
10084
10085 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
10086
10087 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
10088
10089 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
10090
10091 PR target/61561
10092 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
10093 (*movhi_bytes): Likewise.
10094 (*arm_movqi_insn): Likewise.
10095
10096 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
10097
10098 PR target/56858
10099 * config/alpha/alpha.c: Include tree-pass.h, context.h
10100 and pass_manager.h.
10101 (pass_data_handle_trap_shadows): New pass.
10102 (pass_handle_trap_shadows::gate): New pass gate function.
10103 (make_pass_handle_trap_shadows): New function.
10104 (rest_of_handle_trap_shadows): Ditto.
10105
10106 (alpha_align_insns_1): Rename from alpha_align_insns.
10107 (pass_data_align_insns): New pass.
10108 (pass_align_insns::gate): New pass gate function.
10109 (make_pass_aling_insns): New function.
10110 (rest_of_align_insns): Ditto.
10111 (alpha_align_insns): Ditto.
10112
10113 (alpha_option_override): Declare handle_trap_shadows info
10114 and align_insns_info. Register handle_trap_shadows and align_insns
10115 passes here.
10116 (alpha_reorg): Do not call alpha_trap_shadows and
10117 alpha_align_insn from here.
10118
10119 (alpha_pad_function_end): Do not skip BARRIERs.
10120
10121 2014-07-10 Rong Xu <xur@google.com>
10122
10123 Add gcov-tool: an offline gcda profile processing tool support.
10124 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
10125 (gcov_is_error): Ditto.
10126 (gcov_read_string): Ditto.
10127 (gcov_read_sync): Ditto.
10128 * gcov-io.h: Move counter defines to gcov-counter.def.
10129 * gcov-dump.c (tag_counters): Use gcov-counter.def.
10130 * coverage.c: Ditto.
10131 * gcov-tool.c: Offline gcda profile processing tool.
10132 (unlink_gcda_file): Remove one gcda file.
10133 (unlink_profile_dir): Remove gcda files from the profile path.
10134 (gcov_output_files): Output gcda files to an output dir.
10135 (profile_merge): Merge two profiles in directory.
10136 (print_merge_usage_message): Print merge usage.
10137 (merge_usage): Print merge usage and exit.
10138 (do_merge): Driver for profile merge sub-command.
10139 (profile_rewrite): Rewrite profile.
10140 (print_rewrite_usage_message): Print rewrite usage.
10141 (rewrite_usage): Print rewrite usage and exit.
10142 (do_rewrite): Driver for profile rewrite sub-command.
10143 (print_usage): Print gcov-info usage and exit.
10144 (print_version): Print gcov-info version.
10145 (process_args): Process arguments.
10146 (main): Main routine for gcov-tool.
10147 * Makefile.in: Build and install gcov-tool.
10148 * gcov-counter.def: New file split from gcov-io.h.
10149 * doc/gcc.texi: Include gcov-tool.texi.
10150 * doc/gcov-tool.texi: Document for gcov-tool.
10151
10152 2014-07-10 Richard Biener <rguenther@suse.de>
10153
10154 PR tree-optimization/61757
10155 * tree-ssa-dom.c (loop_depth_of_name): Restore.
10156 (propagate_rhs_into_lhs): Revert part of last change.
10157
10158 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
10159
10160 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
10161 FUNCTION_DECLs.
10162
10163 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
10164
10165 PR middle-end/53590
10166 * function.c (allocate_struct_function): Revert r188667 change.
10167
10168 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
10169
10170 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
10171
10172 * doc/install.texi: Remove links to defunct package providers for
10173 Solaris.
10174
10175 2014-07-09 Tom de Vries <tom@codesourcery.com>
10176
10177 * final.c (get_call_fndecl): Declare.
10178 (self_recursive_call_p): New function.
10179 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
10180
10181 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10182
10183 * ipa-devirt.c (record_node): Walk through aliases.
10184
10185 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10186
10187 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
10188
10189 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10190
10191 Revert:
10192 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10193
10194 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10195
10196 * ipa-visibility.c (function_and_variable_visibility): Remove
10197 temporary hack disabling local aliases on AIX.
10198
10199 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10200
10201 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
10202 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
10203
10204 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10205
10206 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
10207 * rs6000/rs6000.c: Inline output of .set instruction.
10208 (declare_alias_data): New struct.
10209 (rs6000_declare_alias): New function.
10210 (rs6000_xcoff_declare_function_name): Use it.
10211 (rs6000_xcoff_declare_object_name): New function.
10212 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
10213 (ASM_OUTPUT_DEF): Turn to empty definition.
10214
10215 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10216
10217 PR bootstrap/61679
10218 * hash-table.h: use hash_table::value_type instead of
10219 Descriptor::value_type in the return types of several methods.
10220
10221 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10222
10223 * tree-pass.h (pass_data): Remove has_execute member.
10224 * passes.c (execute_one_pass): Don't check pass->has_execute.
10225 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
10226 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
10227 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
10228 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
10229 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
10230 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
10231 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
10232 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
10233 gimple-low.c, gimple-ssa-isolate-paths.c,
10234 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
10235 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
10236 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
10237 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
10238 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
10239 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
10240 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
10241 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
10242 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
10243 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
10244 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
10245 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
10246 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
10247 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
10248 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
10249 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
10250 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
10251 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
10252 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
10253 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
10254 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
10255 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
10256 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
10257 web.c: Remove initializer for pass_data::has_execute.
10258
10259 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
10260
10261 * graphite-htab.h: Use hash_map instead of hash_table.
10262 * graphite-clast-to-gimple.c: Adjust.
10263 * passes.c: Use hash_map instead of hash_table.
10264 * sese.c: Likewise.
10265 * sese.h: Remove now unused code.
10266
10267 2014-07-08 Sriraman Tallam <tmsriram@google.com>
10268
10269 PR target/61599
10270 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
10271 than zero.
10272
10273 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10274
10275 PR rtl-optimization/61673
10276 * combine.c (simplify_comparison): Test just mode's sign bit
10277 in tmode rather than the sign bit and any bits above it.
10278
10279 2014-07-08 Roman Gareev <gareevroman@gmail.com>
10280
10281 * graphite-isl-ast-to-gimple.c (generate_isl_context):
10282 Add __isl_give to the declaration.
10283 (generate_isl_schedule): Likewise.
10284 (scop_to_isl_ast): Likewise.
10285
10286 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10287
10288 * config/arm/arm.c (cortexa5_extra_costs): New table.
10289 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
10290
10291 2014-07-08 Jakub Jelinek <jakub@redhat.com>
10292
10293 PR tree-optimization/61725
10294 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
10295 range, use range_includes_zerop_p instead of integer_zerop on
10296 vr0->min, only use log2 of max if min is not negative.
10297
10298 2014-07-08 Richard Biener <rguenther@suse.de>
10299
10300 * tree-ssa-dom.h (loop_depth_of_name): Remove.
10301 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
10302 restriction on loop depth difference.
10303 (record_equality): Likewise.
10304 (propagate_rhs_into_lhs): Likewise. Simplify condition.
10305 (loop_depth_of_name): Remove.
10306 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
10307 restriction on loop depth difference.
10308 (init_copy_prop): Likewise.
10309
10310 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
10311
10312 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
10313 parameter.
10314 (walk_aliased_vdefs): Likewise.
10315 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
10316 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
10317 (detect_type_change_from_memory_writes): Check if entry was reached.
10318
10319 2014-07-08 Richard Biener <rguenther@suse.de>
10320
10321 PR tree-optimization/61681
10322 * tree-ssa-structalias.c (find_what_var_points_to): Expand
10323 NONLOCAL inside ESCAPED.
10324
10325 2014-07-08 Richard Biener <rguenther@suse.de>
10326
10327 PR tree-optimization/61680
10328 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10329 Handle properly all read-write dependences with group accesses.
10330
10331 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10332
10333 PR tree-optimization/61576
10334 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
10335 block containing reduction statement is predecessor of phi basi block.
10336
10337 2014-07-08 Marek Polacek <polacek@redhat.com>
10338
10339 PR c/60226
10340 * fold-const.c (round_up_loc): Change the parameter type.
10341 Remove assert.
10342 * fold-const.h (round_up_loc): Adjust declaration.
10343 * stor-layout.c (finalize_record_size): Check for too large types.
10344
10345 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
10346
10347 * symtab.c: Include calls.h.
10348 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
10349
10350 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
10351
10352 * config/rs6000/rs6000.c (output_vec_const_move): Handle
10353 little-endian code generation.
10354 * config/rs6000/spe.md (spe_evmergehi): Rename to...
10355 (vec_perm00_v2si): ... this. Handle little-endian code generation.
10356 (spe_evmergehilo): Rename to...
10357 (vec_perm01_v2si): ... this. Handle little-endian code generation.
10358 (spe_evmergelo): Rename to...
10359 (vec_perm11_v2si): ... this. Handle little-endian code generation.
10360 (spe_evmergelohi): Rename to...
10361 (vec_perm10_v2si): ... this. Handle little-endian code generation.
10362 (spe_evmergehi, spe_evmergehilo): New expanders.
10363 (spe_evmergelo, spe_evmergelohi): Likewise.
10364 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
10365 (*frob_tf_ti): Likewise.
10366 (*frob_<mode>_di_2): Likewise.
10367 (*frob_tf_di_8_2): Likewise.
10368 (*frob_di_<mode>): Likewise.
10369 (*frob_ti_tf): Likewise.
10370 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
10371 (*frob_ti_<mode>_8_2): Likewise.
10372 (*frob_ti_tf_2): Likewise.
10373 (mov_si<mode>_e500_subreg0): Rename to...
10374 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
10375 endianness only.
10376 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
10377 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
10378 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
10379 the big endianness only.
10380 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
10381 (*mov_si<mode>_e500_subreg0_2): Rename to...
10382 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
10383 big big endianness only.
10384 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
10385 (*mov_si<mode>_e500_subreg4): Rename to...
10386 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
10387 endianness only.
10388 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
10389 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
10390 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
10391 the big endianness only.
10392 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
10393 pattern.
10394 (*mov_si<mode>_e500_subreg4_2): Rename to...
10395 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
10396 endianness only.
10397 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
10398 (*mov_sitf_e500_subreg8): Rename to...
10399 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
10400 endianness only.
10401 (*mov_sitf_e500_subreg8_le): New instruction pattern.
10402 (*mov_sitf_e500_subreg8_2): Rename to...
10403 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
10404 endianness only.
10405 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
10406 (*mov_sitf_e500_subreg12): Rename to...
10407 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
10408 endianness only.
10409 (*mov_sitf_e500_subreg12_le): New instruction pattern.
10410 (*mov_sitf_e500_subreg12_2): Rename to...
10411 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
10412 endianness only.
10413 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
10414
10415 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
10416
10417 * asan.c (instrument_strlen_call): Do not instrument first byte
10418 in strlen if already instrumented.
10419
10420 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10421
10422 * config/arm/arm.opt (mwords-little-endian): Delete.
10423 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
10424 of TARGET_LITTLE_WORDS.
10425 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
10426 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
10427 warning.
10428 * doc/invoke.texi: Remove references to -mwords-little-endian.
10429
10430 2014-07-07 Jakub Jelinek <jakub@redhat.com>
10431
10432 * expmed.c (struct init_expmed_rtl): Change all fields but
10433 pow2 and cint from struct rtx_def to rtx.
10434 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
10435 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
10436 at the end again.
10437
10438 2014-07-06 Marek Polacek <polacek@redhat.com>
10439
10440 PR c/6940
10441 * doc/invoke.texi: Document -Wsizeof-array-argument.
10442
10443 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
10444
10445 * wide-int.h (wide_int_storage): Change declaration from struct
10446 to class.
10447
10448 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
10449
10450 * cgraph.c (cgraph_create_indirect_edge): Update call of
10451 get_polymorphic_call_info.
10452 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
10453 (possible_polymorphic_call_targets): Add parameter call.
10454 (decl_maybe_in_construction_p): New predicate.
10455 (get_polymorphic_call_info): Add parameter call;
10456 use decl_maybe_in_construction_p.
10457 * gimple-fold.c (fold_gimple_assign): Update use of
10458 possible_polymorphic_call_targets.
10459 (gimple_fold_call): Likewise.
10460 * ipa-prop.c: Inlcude calls.h
10461 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
10462 (param_type_may_change_p): New predicate.
10463 (detect_type_change_from_memory_writes): Break out from ...
10464 (detect_type_change): ... this one; use param_type_may_change_p.
10465 (detect_type_change_ssa): Use param_type_may_change_p.
10466 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
10467
10468 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
10469
10470 PR target/49423
10471 * config/arm/arm-protos.h (arm_legitimate_address_p,
10472 arm_is_constant_pool_ref): Add prototypes.
10473 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
10474 (arm_is_constant_pool_ref) New function.
10475 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
10476 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
10477 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
10478 operand. Remove pool_range and neg_pool_range attributes.
10479 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
10480 pool_range and neg_pool_range attributes.
10481 * config/arm/constraints.md (Uh): New constraint.
10482 (Uq): Don't allow constant pool references.
10483
10484 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
10485
10486 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
10487 (move_lo_quad_internal_be_<mode>): Likewise.
10488 (move_lo_quad_<mode>): Convert to define_expand.
10489 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
10490 (aarch64_simd_move_hi_quad_be_<mode>): New.
10491 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
10492 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
10493 (aarch64_combinez_be<mode>): New.
10494 (aarch64_combine<mode>): Convert to define_expand.
10495 (aarch64_combine_internal<mode>): New.
10496 (aarch64_simd_combine<mode>): Remove bogus RTL description.
10497
10498 2014-07-04 Tom de Vries <tom@codesourcery.com>
10499
10500 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
10501 combination of earlyclobber and read/write modifiers.
10502
10503 2014-07-04 Tom de Vries <tom@codesourcery.com>
10504
10505 * config/aarch64/aarch64-simd.md
10506 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
10507
10508 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
10509
10510 PR target/61714
10511 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
10512
10513 2014-07-04 Jakub Jelinek <jakub@redhat.com>
10514
10515 PR middle-end/61654
10516 * cgraphunit.c (expand_thunk): Call free_dominance_info.
10517
10518 PR tree-optimization/61684
10519 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
10520 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
10521
10522 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10523 Kito Cheng <kito@0xlab.org>
10524 Monk Chiang <sh.chiang04@gmail.com>
10525
10526 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
10527 (nds32_symbol_load_store_p): Move to ...
10528 (nds32_fp_as_gp_check_available): Move to ...
10529 * config/nds32/nds32-fp-as-gp.c: ... here.
10530 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
10531 extern declaration.
10532
10533 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10534 Kito Cheng <kito@0xlab.org>
10535 Monk Chiang <sh.chiang04@gmail.com>
10536
10537 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
10538 (nds32_expand_store_multiple): Move to ...
10539 (nds32_expand_movmemqi): Move to ...
10540 * config/nds32/nds32-memory-manipulation.c: ... here.
10541
10542 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10543 Kito Cheng <kito@0xlab.org>
10544 Monk Chiang <sh.chiang04@gmail.com>
10545
10546 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
10547 (nds32_output_casesi_pc_relative): Move to ...
10548 (nds32_output_casesi): Move to ...
10549 (nds32_mem_format): Move to ...
10550 (nds32_output_16bit_store): Move to ...
10551 (nds32_output_16bit_load): Move to ...
10552 (nds32_output_32bit_store): Move to ...
10553 (nds32_output_32bit_load): Move to ...
10554 (nds32_output_32bit_load_s): Move to ...
10555 (nds32_output_stack_push): Move to ...
10556 (nds32_output_stack_pop): Move to ...
10557 * config/nds32/nds32-md-auxiliary.c: ... here.
10558
10559 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10560 Ling-Hua Tseng <uranus@tinlans.org>
10561
10562 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10563 the purpose of this file.
10564
10565 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10566 Kito Cheng <kito@0xlab.org>
10567 Monk Chiang <sh.chiang04@gmail.com>
10568
10569 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10570 (nds32_address_cost): Move implementation to ...
10571 * config/nds32/nds32-cost.c: ... here.
10572 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10573 (nds32_address_cost_impl): Declare.
10574
10575 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10576 Kito Cheng <kito@0xlab.org>
10577 Monk Chiang <sh.chiang04@gmail.com>
10578
10579 * config/nds32/nds32.c
10580 (nds32_consecutive_registers_load_store_p): Move to ...
10581 (nds32_valid_multiple_load_store): Move to ...
10582 (nds32_valid_stack_push_pop): Move to ...
10583 (nds32_can_use_bclr_p): Move to ...
10584 (nds32_can_use_bset_p): Move to ...
10585 (nds32_can_use_btgl_p): Move to ...
10586 (nds32_can_use_bitci_p): Move to ...
10587 * config/nds32/nds32-predicates.c: ... here.
10588
10589 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10590 Kito Cheng <kito@0xlab.org>
10591 Monk Chiang <sh.chiang04@gmail.com>
10592
10593 * config/nds32/nds32.c
10594 (nds32_expand_builtin_null_ftype_reg): Move to ...
10595 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10596 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10597 (nds32_init_builtins): Move implementation to ...
10598 (nds32_expand_builtin): Move implementation to ...
10599 * config/nds32/nds32-intrinsic.c: ... here.
10600 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10601 (nds32_expand_builtin_impl): Declare.
10602
10603 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10604 Kito Cheng <kito@0xlab.org>
10605 Monk Chiang <sh.chiang04@gmail.com>
10606
10607 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10608 (nds32_emit_section_tail_template): Move to ...
10609 (nds32_emit_isr_jmptbl_section): Move to ...
10610 (nds32_emit_isr_vector_section): Move to ...
10611 (nds32_emit_isr_reset_conten): Move to ...
10612 (nds32_check_isr_attrs_conflict): Move to ...
10613 (nds32_construct_isr_vectors_information): Move to ...
10614 (nds32_asm_file_start): Move implementation to ...
10615 (nds32_asm_file_end): Move implementation to ...
10616 * config/nds32/nds32-isr.c: ... here.
10617 * config/nds32/nds32-protos.h
10618 (nds32_check_isr_attrs_conflict): Declare.
10619 (nds32_construct_isr_vectors_information): Declare.
10620 (nds32_asm_file_start_for_isr): Declare.
10621 (nds32_asm_file_end_for_isr): Declare.
10622
10623 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10624 Kito Cheng <kito@0xlab.org>
10625 Monk Chiang <sh.chiang04@gmail.com>
10626
10627 * config.gcc (nds32*): Add new modules to extra_objs.
10628 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10629 (nds32be-*-*): Likewise.
10630 * config/nds32/nds32-cost.c: New file.
10631 * config/nds32/nds32-fp-as-gp.c: New file.
10632 * config/nds32/nds32-intrinsic.c: New file.
10633 * config/nds32/nds32-isr.c: New file.
10634 * config/nds32/nds32-md-auxiliary.c: New file.
10635 * config/nds32/nds32-memory-manipulation.c: New file.
10636 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10637 * config/nds32/nds32-predicates.c: New file.
10638 * config/nds32/t-nds32: New file.
10639
10640 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10641
10642 PR tree-optimization/61682
10643 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10644 using cases and when one of the operands is equal to 1.
10645
10646 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10647
10648 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10649 ashr<mode>3): Correct mode of operands[2].
10650 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10651 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10652 Correct mode of operands[2]. Fix split condition.
10653
10654 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10655
10656 * arm.md (arch): Add armv6_or_vfpv3.
10657 (arch_enabled): Add test for the above.
10658 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10659 on VFP9.
10660 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10661
10662 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10663
10664 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10665 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10666 HWI 1 and negate the unsigned value.
10667 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10668 use AND instead of shift.
10669 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10670
10671 2014-07-03 Marek Polacek <polacek@redhat.com>
10672
10673 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10674 (-fsanitize=float-divide-by-zero): Move to the table with
10675 -fsanitize=undefined suboptions.
10676 (-fsanitize=float-cast-overflow): Likewise.
10677
10678 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10679
10680 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10681 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10682 endianness.
10683
10684 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10685
10686 * loop-invariant.c (struct invariant): Add a new member: eqno;
10687 (find_identical_invariants): Update eqno;
10688 (create_new_invariant): Init eqno;
10689 (get_inv_cost): Compute comp_cost with eqno;
10690
10691 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10692
10693 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10694 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10695 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10696 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10697 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10698
10699 2014-07-02 Christian Bruel <christian.bruel@st.com>
10700
10701 PR target/29349
10702 PR target/53513
10703 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10704 (make_preds_opaque): Delete.
10705 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10706 (commit_mode_sets): New function.
10707 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10708 Process all modes at once.
10709 * basic-block.h (pre_edge_lcm_avs): Declare.
10710 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10711 Call clear_aux_for_edges. Fix comments.
10712 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10713 (pre_edge_rev_lcm): Idem.
10714 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10715 parameter.
10716 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10717 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10718 Idem.
10719 * config/i386/i386.c (x96_emit_mode_set): Idem.
10720 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10721 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10722 (fpscr_toggle) Disallow from delay slot.
10723 * target.def (emit_mode_set): Add prev_mode parameter.
10724 * doc/tm.texi: Regenerate.
10725
10726 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10727
10728 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10729 variable i.
10730
10731 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10732
10733 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10734 vtable_pointer_value_to_vtable): Constify.
10735 (contains_polymorphic_type_p): Declare.
10736 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10737 vtable_pointer_value_to_vtable): Constify.
10738 (contains_polymorphic_type_p): New predicate.
10739 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10740 polymorphic types.
10741 (ipa_set_ancestor_jf): Likewise.
10742 (detect_type_change): Return false in easy cases.
10743 (compute_complex_assign_jump_func): Require type to contain
10744 polymorphic type.
10745 (compute_known_type_jump_func): Likewise.
10746
10747 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10748
10749 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10750 Remove.
10751 (type_in_anonymous_namespace_p): Constify argument.
10752 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10753 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10754 (main_odr_variant): New function.
10755 (hash_type_name): Make static; update assert; do not ICE on
10756 non-records.
10757 (types_same_for_odr): Bring here from tree.c; simplify and remove
10758 old structural comparing code that doesn't work for templates.
10759 (odr_hasher::equal): Update assert.
10760 (add_type_duplicate): Return true when bases should be computed;
10761 replace incomplete loader by complete; do not output duplicated
10762 warnings; do not ICE on non-records; set odr_violated flag.
10763 (get_odr_type): Be ready to replace incomplete type by complete
10764 one; work on ODR variants instead of main variants; reorder item
10765 in array so bases have still smaller indexes.
10766 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10767 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10768
10769 2014-07-01 Cary Coutant <ccoutant@google.com>
10770
10771 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10772 lookup.
10773 (resolve_addr_in_expr): When replacing the rtx in a location list
10774 entry, get a new address table entry.
10775 (dwarf2out_finish): Call index_location_lists even if there are no
10776 addr_index_table entries yet.
10777
10778 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10779
10780 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10781 change for not being obvious.
10782
10783 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10784
10785 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10786 unused argument.
10787
10788 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10789
10790 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10791 (vcagt_f64): Likewise.
10792 (vcale_f64): Likewise.
10793 (vcaled_f64): Likewise.
10794 (vcales_f32): Likewise.
10795 (vcalt_f64): Likewise.
10796 (vcaltd_f64): Likewise.
10797 (vcalts_f32): Likewise.
10798
10799 2014-07-01 Marek Polacek <polacek@redhat.com>
10800
10801 * doc/invoke.texi: Document -Wint-conversion.
10802
10803 2014-07-01 Marek Polacek <polacek@redhat.com>
10804
10805 PR c/58286
10806 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10807
10808 2014-07-01 Martin Liska <mliska@suse.cz>
10809
10810 IPA REF alias refactoring
10811 * cgraph.h (iterate_direct_aliases): New function.
10812 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10813 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10814 FOR_EACH_ALIAS added.
10815 (cgraph_for_node_and_aliases): Likewise.
10816 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10817 * ipa-inline.c (reset_edge_caches): Likewise.
10818 (update_caller_keys): Likewise.
10819 * trans-mem.c (ipa_tm_execute): Likewise.
10820 *varpool.c (varpool_analyze_node): Likewise.
10821 (varpool_for_node_and_aliases): Likewise.
10822 * ipa-ref.h (first_alias): New function.
10823 (last_alias): Likewise.
10824 (has_aliases_p): Likewise.
10825 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10826 is sensitive to IPA_REF_ALIASes.
10827 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10828 are put at the beginning of the list.
10829 (symtab_node::iterate_direct_aliases): New function.
10830
10831 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10832
10833 Revert:
10834 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10835 type is complete.
10836 (write_ts_type_common_tree_pointers): Do not stream fields not set
10837 for incomplete types; do not stream duplicated fields for variants;
10838 sanity check that variant and type match.
10839 (write_ts_type_non_common_tree_pointers): Likewise.
10840 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10841 TYPE_SIZE whether type is complete.
10842 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10843 write_ts_type_common_tree_pointers
10844 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10845
10846 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10847
10848 * var-tracking.c (add_stores): Return instead of asserting if old
10849 and new values for conditional store are the same.
10850
10851 2014-06-30 Richard Henderson <rth@redhat.com>
10852
10853 PR rtl-opt/61608
10854 PR target/39284
10855 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10856 the cfg if there were any changes.
10857 * passes.def: Revert move of peephole2 after reorder_blocks;
10858 move duplicate_computed_gotos before peephole2.
10859
10860 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10861
10862 * except.c (emit_note_eh_region_end): New helper function.
10863 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10864 emit EH_REGION_END note.
10865 * jump.c (cleanup_barriers): Do not split a call and its
10866 corresponding CALL_ARG_LOCATION note.
10867
10868 2014-06-30 Jeff Law <law@redhat.com>
10869
10870 PR tree-optimization/61607
10871 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10872 deeper into the SSA_NAME_VALUE chain.
10873
10874 2014-06-30 Marek Polacek <polacek@redhat.com>
10875
10876 * convert.c (convert_to_integer): Don't instrument conversions if the
10877 function has no_sanitize_undefined attribute.
10878 * ubsan.c: Don't run the ubsan pass if the function has
10879 no_sanitize_undefined attribute.
10880
10881 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10882
10883 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10884 -fsanitize=undefined suboptions.
10885
10886 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10887
10888 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10889 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10890 against bigendian and adjust indices.
10891
10892 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10893
10894 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10895
10896 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10897
10898 PR target/61633
10899 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10900 Add alternative; make early clobber. Adjust both split patterns
10901 to use operand 0 as the working register.
10902
10903 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10904
10905 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10906 as ira_object_id_map might be NULL, or 1.
10907
10908 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10909
10910 * loop-invariant.c (get_inv_cost): Handle register class.
10911 (gain_for_invariant): Check the register pressure of the inv
10912 and its overlapped register class, other than all.
10913
10914 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10915
10916 * doc/invoke.texi (Optimize Options): Fix descriptions of
10917 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10918
10919 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10920
10921 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10922 documentation.
10923
10924 2014-06-29 Tobias Grosser <tobias@grosser.es>
10925
10926 PR bootstrap/61650
10927 * graphite-isl-ast-to-gimple.c: Add missing guards.
10928
10929 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10930
10931 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10932 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10933 * flag-types.h: Add new enum fgraphite_generator.
10934 * graphite-isl-ast-to-gimple.c: New.
10935 * graphite-isl-ast-to-gimple.h: New.
10936 * graphite.c (graphite_transform_loops): Add choice of Graphite
10937 code generator, which depends on flag_graphite_code_gen.
10938
10939 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10940
10941 * graphite-dependences.c (subtract_commutative_associative_deps):
10942 Add NULL checking of the following variables: must_raw_no_source,
10943 may_raw_no_source, must_war_no_source, may_war_no_source,
10944 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10945 must_war, may_war, must_waw, may_waw.
10946
10947 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10948
10949 * graphite-clast-to-gimple.c: gloog is renamed to
10950 graphite_regenerate_ast_cloog. gloog_error is renamed to
10951 graphite_regenerate_error.
10952 * graphite-clast-to-gimple.h: The definition of the struct
10953 bb_pbb_def is moved to graphite-htab.h.
10954 Add inclusion of the hash-table.h.
10955 * graphite-htab.h: The declaration of the function gloog is moved
10956 to graphite-clast-to-gimple.h and renamed to
10957 graphite_regenerate_ast_cloog.
10958 * graphite.c (graphite_transform_loops): gloog is renamed
10959 to graphite_regenerate_ast_cloog.
10960
10961 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10962
10963 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10964 type is complete.
10965 (write_ts_type_common_tree_pointers): Do not stream fields not set
10966 for incomplete types; do not stream duplicated fields for variants;
10967 sanity check that variant and type match.
10968 (write_ts_type_non_common_tree_pointers): Likewise.
10969 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10970 TYPE_SIZE whether type is complete.
10971 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10972 write_ts_type_common_tree_pointers
10973 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10974
10975 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10976
10977 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10978
10979 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10980
10981 * tree-inline.c (remap_type_1): Do not duplicate fields
10982 that are shared in between type and its main variant.
10983
10984 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10985
10986 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10987 of the type.
10988 (ipa_set_ancestor_jf) Likewise.
10989 (check_stmt_for_type_change): Check that we work on main variant.
10990 (detect_type_change): Look into main variant.
10991 (compute_known_type_jump_func): Check that main variant has BINFO.
10992
10993 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10994
10995 * ipa-devirt.c (set_type_binfo): New function.
10996 (add_type_duplicate): Use it.
10997 (get_odr_type): Sanity check that binfos points to main variants.
10998 (get_class_context): Be sure the context's outer_type is main variant.
10999 (contains_type_p): Walk main variant.
11000 (get_polymorphic_call_info_for_decl): Set outer_type to be
11001 main variant.
11002 (get_polymorphic_call_info): Likewise.
11003 (possible_polymorphic_call_targets): Sanity check that we operate
11004 on main variant.
11005
11006 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
11007
11008 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
11009
11010 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11011
11012 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
11013 accidental change due to wide-int branch merge.
11014
11015 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11016
11017 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
11018 compressed debug support.
11019 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
11020 * configure: Regenerate.
11021 * config.in: Regenerate.
11022 * common.opt (compressed_debug_sections): New enum.
11023 (gz, gz=): New options.
11024 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
11025 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
11026 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
11027 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
11028 LINK_COMPRESS_DEBUG_SPEC.
11029 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
11030 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
11031 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
11032 (Debugging Options): Document -gz[=type].
11033
11034 2014-06-27 Martin Jambor <mjambor@suse.cz>
11035
11036 PR ipa/61160
11037 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
11038 args_to_skip, use those from node instead. Copy args_to_skip and
11039 combined_args_to_skip from node to the new thunk.
11040 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
11041 (cgraph_create_virtual_clone): Moved computation of
11042 combined_args_to_skip...
11043 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
11044
11045 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
11046
11047 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
11048 redundant diagnostic machinary.
11049
11050 2014-06-27 Richard Biener <rguenther@suse.de>
11051
11052 * tree-ssa-math-opts.c (bswap_replace): Fix
11053 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
11054
11055 2014-06-27 Martin Liska <mliska@suse.cz>
11056
11057 * gimple.h (gimple_location_safe): New function introduced.
11058 * cgraphunit.c (walk_polymorphic_call_targets): Usage
11059 of gimple_location_safe replaces gimple_location.
11060 (gimple_fold_call): Likewise.
11061 * ipa-devirt.c (ipa_devirt): Likewise.
11062 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11063 * ipa.c (walk_polymorphic_call_targets): Likewise.
11064 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
11065
11066 2014-06-27 Jakub Jelinek <jakub@redhat.com>
11067
11068 PR tree-optimization/57233
11069 PR tree-optimization/61299
11070 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
11071 functions.
11072 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
11073 would be lowered to scalar shifts, check if corresponding
11074 shifts and vector BIT_IOR_EXPR are supported and don't lower
11075 or lower just to narrower vector type in that case.
11076 * expmed.c (expand_shift_1): Fix up handling of vector
11077 shifts and rotates.
11078
11079 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
11080
11081 PR target/61586
11082 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
11083
11084 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
11085
11086 * doc/invoke.texi (-fsemantic-interposition): Document.
11087 * common.opt (fsemantic-interposition): New flag.
11088 * varasm.c (decl_replaceable_p): Use it.
11089
11090 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11091
11092 PR target/61542
11093 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
11094 extraction other than index 3.
11095
11096 2014-06-26 Teresa Johnson <tejohnson@google.com>
11097
11098 * doc/invoke.texi: Fix typo.
11099 * dumpfile.c: Add support for documented -fdump-* options
11100 optimized/missed/note/optall.
11101
11102 2014-06-26 Martin Jambor <mjambor@suse.cz>
11103
11104 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
11105 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
11106 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
11107 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
11108 * opts.c (default_options_optimization): Set
11109 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
11110 * doc/invoke.texi (allow-load-data-races)
11111 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
11112 (allow-store-data-races): Document the new default.
11113
11114 2014-06-26 Martin Jambor <mjambor@suse.cz>
11115
11116 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
11117 renamed to ipa_impossible_devirt_target. Fix typo.
11118 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
11119 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
11120 ipa_impossible_devirt_target.
11121
11122 2014-06-26 Richard Biener <rguenther@suse.de>
11123
11124 PR tree-optimization/61607
11125 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
11126 explaining why we restrict copies on loop depth.
11127 * tree-ssa-dom.c (cprop_operand): Remove restriction on
11128 on loop depth.
11129 (record_equivalences_from_phis): Instead add it here.
11130
11131 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
11132
11133 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
11134 (LTO_WRAPPER_OBJS): New variable.
11135 (lto-wrapper$(exeext)): Use it.
11136 * collect2.c: Include "collect-utils.h".
11137 (verbose, debug): Remove variables.
11138 (at_file_supplied): No longer static.
11139 (tool_name): New variable.
11140 (do_wait, fork_execute, maybe_unlink): Don't declare.
11141 (tool_cleanup): No longer static.
11142 (notice): Remove function.
11143 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
11144 fork_execute calls.
11145 (collect_wait, do_wait, collect_execute): Remove functions.
11146 (maybe_unlink): No longer static.
11147 * collect2.h (verbose, debug): Don't declare.
11148 (at_file_supplied): Declare.
11149 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
11150 changed.
11151 (collect_execute): Replace with implementation from collect2, plus a
11152 new arg use_atfile. All callers changed.
11153 (collect_wait): Replace with implementation from collect2.
11154 (maybe_unlink_file): Remove function.
11155 (fork_execute): Replace with implementation from collect2, plus a
11156 new arg use_atfile. All callers changed.
11157 (do_wait): Add call to utils_cleanup to the error path.
11158 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
11159 (tool_cleanup): Adjust declarations.
11160 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
11161 * tlink.c: Include "collect-utils.h".
11162 (tlink_execute): New arg use_atfile. All callers changed.
11163 (tlink_init, tlink_execute): Remove declarations.
11164
11165 * collect-utils.c (save_temps): New variable.
11166 (do_wait): Use it instead of debug. Use fatal_error.
11167 * collect-utils.h (save_temps): Declare.
11168 * collect2.c (verbose): Rename from vflag. All uses changed.
11169 (tool_cleanup): New function, copied from collect_atexit.
11170 (collect_atexit, handler): Just call it.
11171 * collect2.h (verbose): Declaration renamed from vflag.
11172 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
11173 debug.
11174
11175 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
11176 (lto-wrapper$(exeext)): Link with collect-utils.o.
11177 * collect-utils.c: New file.
11178 * collect-utils.h: New file.
11179 * lto-wrapper.c: Include "collect-utils.h".
11180 (args_name): Delete variable.
11181 (tool_name): New variable.
11182 (tool_cleanup): New function.
11183 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
11184 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
11185 (fork_execute): Remove functions.
11186
11187 2014-06-26 Nick Clifton <nickc@redhat.com>
11188
11189 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
11190
11191 * doc/extend.texi (Function Attributes): Fix typo in description
11192 of RX vector attribute.
11193
11194 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
11195
11196 * config.gcc (supported_defaults): Error when passing either
11197 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
11198
11199 2014-06-26 Richard Biener <rguenther@suse.de>
11200
11201 * tree-ssa-dom.c (cprop_operand): Remove restriction on
11202 propagating volatile pointers.
11203
11204 2014-06-26 Richard Biener <rguenther@suse.de>
11205
11206 PR tree-optimization/61607
11207 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
11208 loop if we redirected its latch edge.
11209 (thread_block_1): Do not cancel loops prematurely.
11210
11211 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
11212
11213 * toplev.c (backend_init_target): Move init_emit_regs and
11214 init_regs to...
11215 (backend_init) ... here; skip ira_init_once and backend_init_target.
11216 (target_reinit) ... and here; clear
11217 this_target_rtl->lang_dependent_initialized.
11218 (lang_dependent_init_target): Clear
11219 this_target_rtl->lang_dependent_initialized;
11220 break out rtl initialization to ...
11221 (initialize_rtl): ... here; call also backend_init_target
11222 and ira_init_once.
11223 * toplev.h (initialize_rtl): New function.
11224 * function.c: Include toplev.h
11225 (init_function_start): Call initialize_rtl.
11226 * rtl.h (target_rtl): Add target_specific_initialized,
11227 lang_dependent_initialized.
11228
11229 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
11230 Jakub Jelinek <jakub@redhat.com>
11231
11232 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
11233
11234 2014-06-25 Tom de Vries <tom@codesourcery.com>
11235
11236 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
11237
11238 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
11239
11240 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
11241 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
11242 Issue a strict overflow warning if appropriate.
11243
11244 2014-06-25 Martin Liska <mliska@suse.cz>
11245
11246 IPA REF refactoring
11247 * Makefile.in: Removed header file (ipa-ref-inline.h).
11248 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
11249 called.
11250 (cgraph_speculative_call_info): Likewise.
11251 (cgraph_for_node_thunks_and_aliases): Likewise.
11252 (cgraph_for_node_and_aliases): Likewise.
11253 (verify_cgraph_node): Likewise.
11254 * cgraph.h: Batch of IPA REF functions become member functions of
11255 symtab_node: add_reference, maybe_add_reference, clone_references,
11256 clone_referring, clone_reference, find_reference,
11257 remove_stmt_references, remove_all_references,
11258 remove_all_referring, dump_references, dump_referring,
11259 has_alias_p, iterate_reference, iterate_referring.
11260 * cgraphbuild.c (record_reference): New IPA REF function used.
11261 (record_type_list): Likewise.
11262 (record_eh_tables): Likewise.
11263 (mark_address): Likewise.
11264 (mark_load): Likewise.
11265 (mark_store): Likewise.
11266 (pass_build_cgraph_edges): Likewise.
11267 (rebuild_cgraph_edge): Likewise.
11268 (cgraph_rebuild_references): Likewise.
11269 (pass_remove_cgraph_callee_edges): Likewise.
11270 * cgraphclones.c (cgraph_clone_node): Likewise.
11271 (cgraph_create_virtual_clone): Likewise.
11272 (cgraph_materialize_clone): Likewise.
11273 (cgraph_materialize_all_clones): Likewise.
11274 * cgraphunit.c (cgraph_reset_node): Likewise.
11275 (cgraph_reset_node): Likewise.
11276 (analyze_function): Likewise.
11277 (assemble_thunks_and_aliases): Likewise.
11278 (expand_function): Likewise.
11279 * ipa-comdats.c (propagate_comdat_group): Likewise.
11280 (enqueue_references): Likewise.
11281 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
11282 (create_specialized_node): Likewise.
11283 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
11284 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
11285 * ipa-inline.c (reset_edge_caches): Likewise.
11286 (update_caller_keys): Likewise.
11287 (execute): Likewise.
11288 * ipa-prop.c (remove_described_reference): Likewise.
11289 (propagate_controlled_uses): Likewise.
11290 (ipa_edge_duplication_hook): Likewise.
11291 (ipa_modify_call_arguments): Likewise.
11292 * ipa-pure-const.c (propagate_pure_const): Likewise.
11293 * ipa-ref-inline.h: Header file removed, functions moved
11294 to symtab_node class.
11295 * ipa-ref.c (remove_reference): New class member function.
11296 (cannot_lead_to_return): New class member function.
11297 (referring_ref_list): Likewise.
11298 (referred_ref_list): Likewise.
11299 Rest of functions moved to symtab_node class.
11300 * ipa-ref.h: New member functions remove_reference,
11301 cannot_lead_to_return, referring_ref_list, referred_ref_list added
11302 to ipa_ref class.
11303 ipa_ref_list class has new member functions: first_reference,
11304 first_referring, clear, nreferences.
11305 * ipa-reference.c (analyze_function): New IPA REF function used.
11306 (write_node_summary_p): Likewise.
11307 (ipa_reference_write_optimization_summary): Likewise.
11308 * ipa-split.c (split_function): Likewise.
11309 * ipa-utils.c (ipa_reverse_postorder): Likewise.
11310 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
11311 (function_and_variable_visibility): Likewise.
11312 * ipa.c (has_addr_references_p): Likewise.
11313 (process_references): Argument type changed.
11314 (symtab_remove_unreachable_nodes): New IPA REF function used.
11315 (process_references): Likewise.
11316 (set_writeonly_bit): Likewise.
11317 * lto-cgraph.c: Implementation of new symtab_node member functions
11318 that uses new IPA REF functions.
11319 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
11320 function used.
11321 * lto-streamer-out.c (output_symbol_p): Likewise.
11322 * lto-streamer.h (referenced_from_this_partition_p): Argument type
11323 changed.
11324 * symtab.c: Implementation of new IPA REF API.
11325 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
11326 (ipa_tm_create_version): Likewise.
11327 (ipa_tm_execute): Likewise.
11328 * tree-emutls.c (gen_emutls_addr): Likewise.
11329 * tree-inline.c (copy_bb): Likewise.
11330 (delete_unreachable_blocks_update_callgraph): Likewise.
11331 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
11332 (varpool_for_node_and_aliases): Likewise.
11333
11334 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11335
11336 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
11337
11338 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
11339
11340 PR bootstrap/61598
11341 * fold-const.c (fold_checksum_tree): Use a hash_table of const
11342 tree_node * instead of tree_node *.
11343 (fold): Adjust.
11344 (print_fold_checksum): Likewise.
11345 (fold_check_failed): Likewise.
11346 (debug_fold_checksum): Likewise.
11347 (fold_build1_stat_loc): Likewise.
11348 (fold_build2_stat_loc): Likewise.
11349 (fold_build3_stat_loc): Likewise.
11350 (fold_build_call_array_loc): Likewise.
11351
11352 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
11353
11354 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
11355 implementation with call to...
11356 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
11357 function.
11358 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
11359 Declare.
11360
11361 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
11362
11363 PR tree-optimization/57742
11364 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
11365 after replacing the statement.
11366
11367 2014-06-25 Nick Clifton <nickc@redhat.com>
11368
11369 * config/v850/v850.c (GHS_default_section_names): Change to const
11370 char * type.
11371 (GHS_current_section_names): Likewise.
11372 (v850_insert_attributes): Do not build strings, just assign the
11373 names directly. Change the type of 'chosen_section' to const
11374 char*.
11375 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
11376 directly to the array entry.
11377 * config/v850/v850.h (GHS_default_section_names): Change to const
11378 char * type.
11379 (GHS_current_section_names): Likewise.
11380
11381 2014-06-25 Jakub Jelinek <jakub@redhat.com>
11382
11383 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
11384 (LANG_HOOKS_DECLS): Add it.
11385 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
11386 has correct type.
11387 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
11388 * langhooks.h (struct lang_hooks_for_decls): Add
11389 omp_clause_linear_ctor hook.
11390 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
11391 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
11392 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
11393 combined simd loop use omp_clause_linear_ctor hook.
11394
11395 2014-06-24 Cong Hou <congh@google.com>
11396
11397 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
11398 pattern recognition.
11399 (type_conversion_p): PROMOTION is true if it's a type promotion
11400 conversion, and false otherwise. Return true if the given expression
11401 is a type conversion one.
11402 * tree-vectorizer.h: Adjust the number of patterns.
11403 * tree.def: Add SAD_EXPR.
11404 * optabs.def: Add sad_optab.
11405 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
11406 * expr.c (expand_expr_real_2): Likewise.
11407 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
11408 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11409 * optabs.c (optab_for_tree_code): Likewise.
11410 * tree-cfg.c (estimate_operator_cost): Likewise.
11411 * tree-ssa-operands.c (get_expr_operands): Likewise.
11412 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
11413 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
11414 * doc/generic.texi: Add document for SAD_EXPR.
11415 * doc/md.texi: Add document for ssad and usad.
11416
11417 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11418
11419 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
11420 qualification in cast.
11421
11422 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
11423
11424 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
11425 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
11426 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
11427 (tree_function_decl): ... here.
11428 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
11429 streaming of vindex to ...
11430 (write_ts_function_decl_tree_pointers): ... here.
11431 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
11432 Do not stream DECL_VINDEX.
11433 (lto_input_ts_function_decl_tree_pointers): Stream it here.
11434
11435 2014-06-24 Catherine Moore <clm@codesourcery.com>
11436 Sandra Loosemore <sandra@codesourcery.com>
11437
11438 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
11439 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
11440 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
11441
11442 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11443
11444 * doc/invoke.texi (Warning Options): Remove duplicated
11445 -Wmaybe-uninitialized.
11446
11447 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
11448
11449 PR tree-optimization/57742
11450 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
11451 (handle_builtin_malloc, handle_builtin_memset): New functions.
11452 (strlen_optimize_stmt): Call them.
11453 * passes.def: Move strlen after loop+dom but before vrp.
11454
11455 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11456
11457 PR target/61570
11458 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
11459 model family 6 CPU with has_longmode never use a CPU without
11460 64-bit support.
11461
11462 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
11463
11464 PR target/61570
11465 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
11466 the last change.
11467
11468 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11469
11470 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
11471 * dominance.c (iterate_fix_dominators): Use hash_map instead of
11472 pointer_map.
11473 * hash-map.h: New file.
11474 * ipa-comdats.c: Use hash_map instead of pointer_map.
11475 * ipa.c: Likewise.
11476 * lto-section-out.c: Adjust.
11477 * lto-streamer.h: Replace pointer_map with hash_map.
11478 * symtab.c (verify_symtab): Likewise.
11479 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
11480 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
11481 * tree-streamer.h: Likewise.
11482 * tree-streamer.c: Adjust.
11483 * pointer-set.h: Remove pointer_map.
11484
11485 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11486
11487 * hash-table.h: Add a template arg to choose between storing values
11488 and storing pointers to values, and then provide partial
11489 specializations for both.
11490 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
11491 should store, not the type values should point to.
11492 * tree-into-ssa.c (var_info_hasher): Likewise.
11493 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
11494 * tree-complex.c: Adjust.
11495 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
11496 table instead of int_tree_map *.
11497 * tree-parloops.c: Adjust.
11498 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
11499 type is being stored.
11500 * tree-vectorizer.c: Adjust.
11501
11502 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
11503
11504 * hash-table.h: Remove a layer of indirection from hash_table so that
11505 it contains the hash table's data instead of a pointer to the data.
11506 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
11507 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
11508 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
11509 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
11510 fold-const.c, gcse.c, ggc-common.c,
11511 gimple-ssa-strength-reduction.c, gimplify.c,
11512 graphite-clast-to-gimple.c, graphite-dependences.c,
11513 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
11514 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
11515 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
11516 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
11517 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
11518 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
11519 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
11520 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
11521 tree-ssa-live.c, tree-ssa-loop-im.c,
11522 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
11523 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
11524 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
11525 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
11526 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
11527 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
11528 vtable-verify.c, vtable-verify.h: Adjust.
11529
11530 2014-06-24 Richard Biener <rguenther@suse.de>
11531
11532 PR tree-optimization/61572
11533 * tree-ssa-sink.c (statement_sink_location): Do not sink
11534 loads from hard registers.
11535
11536 2014-06-24 Jakub Jelinek <jakub@redhat.com>
11537
11538 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
11539 not mentioned in clauses use private clause if the iterator is
11540 declared in #pragma omp for simd, and when adding lastprivate
11541 instead, add it to the outer #pragma omp for too. Diagnose
11542 if the variable is private in outer context. For simd collapse > 1
11543 loops, replace all iterators with temporaries.
11544 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
11545 same even in collapse > 1 loops.
11546
11547 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
11548 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11549 non-NULL.
11550 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11551 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11552 non-NULL.
11553 (gimplify_adjust_omp_clauses): Likewise.
11554 * omp-low.c (lower_rec_simd_input_clauses,
11555 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11556 safelen the same as safelen(1).
11557 * tree-nested.c (convert_nonlocal_omp_clauses,
11558 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11559 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11560 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11561 Fixup handling of GIMPLE_OMP_TARGET.
11562 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11563 GIMPLE_OMP_TARGET.
11564
11565 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11566
11567 PR tree-optimization/61554
11568 * tree-ssa-propagate.c: Include "bitmap.h".
11569 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11570 properly update constructor/destructor.
11571 (substitute_and_fold_dom_walker::before_dom_children):
11572 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11573 need_eh_cleaup instead.
11574 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11575 need_eh_cleanup.
11576
11577 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11578
11579 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11580 * tree-pass.h (make_pass_ipa_single_use): New pass.
11581 * cgraph.h (used_by_single_function): New flag.
11582 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11583 Stream it.
11584 * passes.def (pass_ipa_single_use): Scedule.
11585 * ipa.c (BOTTOM): New macro.
11586 (meet): New function
11587 (propagate_single_user): New function.
11588 (ipa_single_use): New function.
11589 (pass_data_ipa_single_use): New pass.
11590 (pass_ipa_single_use): New pass.
11591 (pass_ipa_single_use::gate): New gate.
11592 (make_pass_ipa_single_use): New function.
11593
11594 2014-06-23 Kai Tietz <ktietz@redhat.com>
11595
11596 PR target/39284
11597 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11598 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11599
11600 2014-06-23 Richard Biener <rguenther@suse.de>
11601
11602 * tree-ssa-loop.c (gate_loop): New function.
11603 (pass_tree_loop::gate): Call it.
11604 (pass_data_tree_no_loop, pass_tree_no_loop,
11605 make_pass_tree_no_loop): New.
11606 * tree-vectorizer.c: Include tree-scalar-evolution.c
11607 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11608 required.
11609 (pass_slp_vectorize::clone): New method.
11610 * timevar.def (TV_TREE_NOLOOP): New.
11611 * tree-pass.h (make_pass_tree_no_loop): Declare.
11612 * passes.def (pass_tree_no_loop): New pass group with
11613 SLP vectorizer.
11614
11615 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11616
11617 PR target/61570
11618 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11619 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11620
11621 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11622
11623 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11624 "yes" where needed.
11625
11626 2014-06-23 Alan Modra <amodra@gmail.com>
11627
11628 PR bootstrap/61583
11629 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11630 to zero on debug statements.
11631
11632 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11633
11634 PR target/60825
11635 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11636 Ignore third operand if present by marking qualifier_internal.
11637
11638 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11639
11640 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11641 vector extension.
11642 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11643 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11644 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11645 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11646 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11647 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11648 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11649 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11650 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11651 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11652 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11653 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11654 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11655 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11656 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11657 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11658 logic in GCC vector extensions
11659
11660 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11661 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11662 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11663 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11664 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11665 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11666 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11667 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11668 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11669 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11670
11671 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11672
11673 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11674 extensions.
11675
11676 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11677 (vget_low_s64): Use __GET_LOW macro.
11678 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11679 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11680 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11681 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11682 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11683
11684 (vcombine_s64): Use GCC vector extensions; remove cast.
11685 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11686 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11687 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11688 Fix type signature; remove cast.
11689
11690 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11691
11692 PR target/60825
11693 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11694 V1DFmode.
11695 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11696 add V1DFmode
11697 (BUILTIN_VD1): New.
11698 (BUILTIN_VD_RE): Remove.
11699 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11700 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11701 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11702 variant but not df.
11703 (vreinterpretv1df*, vreinterpret*v1df): New.
11704 (vreinterpretdf*, vreinterpret*df): Remove.
11705 * config/aarch64/aarch64-simd.md (aarch64_create,
11706 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11707 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11708 (VD1): New.
11709 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11710 (vcreate_f64): Remove cast, use v1df builtin.
11711 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11712 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11713 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11714 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11715 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11716 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11717 add range check using __builtin_aarch64_im_lane_boundsi.
11718 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11719 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11720 type signature, use gcc vector extensions.
11721 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11722 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11723 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11724 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11725 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11726 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11727 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11728 vreinterpret_u64_f64): Use v1df builtin not df.
11729
11730 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11731
11732 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11733 vector registers.
11734
11735 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11736
11737 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11738 priority directly.
11739
11740 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11741
11742 * loop-invariant.c (pre_check_invariant_p): New function.
11743 (find_invariant_insn): Call pre_check_invariant_p.
11744
11745 2014-06-22 Richard Henderson <rth@redhat.com>
11746
11747 PR target/61565
11748 * compare-elim.c (struct comparison): Add eh_note.
11749 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11750 a redundant comparison in a different EH region. Purge EH edges if
11751 necessary.
11752
11753 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11754
11755 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11756 (var_shift): Use it.
11757 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11758 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11759 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11760 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11761 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11762 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11763 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11764 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11765 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11766 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11767 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11768 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11769 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11770 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11771 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11772 *rotldi3_internal15be): Use the new attribute. Merge register and
11773 integer alternatives.
11774
11775 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11776
11777 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11778 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11779 split, *ashrdi3_internal3 and split): Delete, merge into...
11780 (ashr<mode>3): New expander.
11781 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11782 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11783
11784 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11785
11786 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11787 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11788 *rotldi3_internal3 and split): Delete, merge into...
11789 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11790 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11791 Use "rotlw" extended mnemonic.
11792
11793 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11794
11795 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11796 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11797 and split, *ashldi3_internal3 and split): Delete, merge into...
11798 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11799 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11800
11801 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11802
11803 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11804 (lshrsi3, two anonymous define_insns and define_splits,
11805 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11806 *lshrdi3_internal3 and split): Delete, merge into...
11807 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11808 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11809
11810 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11811
11812 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11813 Remove "O" alternative.
11814
11815 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11816
11817 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11818 (mips_move_from_gpr_cost): Likewise.
11819 (mips_register_move_cost): Update accordingly.
11820 (mips_secondary_reload_class): Remove name of in_p.
11821
11822 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11823
11824 PR target/61503
11825 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11826 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11827
11828 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11829
11830 * config/nios2/nios2.c: Include "builtins.h".
11831
11832 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11833
11834 * cgraph.h (tls_model_names): New variable.
11835 * print-tree.c (print_node): Simplify.
11836 * varpool.c (tls_model_names): New variable.
11837 (dump_varpool_node): Output tls model.
11838
11839 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11840
11841 * ipa-visibility.c (function_and_variable_visibility): Disable
11842 temporarily local aliases for some targets.
11843
11844 2014-06-20 Marek Polacek <polacek@redhat.com>
11845
11846 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11847 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11848 into SANITIZE_UNDEFINED.
11849 * doc/invoke.texi: Describe -fsanitize=bounds.
11850 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11851 functions created in the FEs.
11852 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11853 (expand_UBSAN_BOUNDS): New function.
11854 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11855 * internal-fn.h: Don't define internal functions here.
11856 * opts.c (common_handle_option): Add -fsanitize=bounds.
11857 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11858 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11859 * tree-core.h: Define internal functions here.
11860 (struct tree_base): Add ifn field.
11861 * tree-pretty-print.c: Include "internal-fn.h".
11862 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11863 * tree.c (get_callee_fndecl): Likewise.
11864 (build_call_expr_internal_loc): New function.
11865 * tree.def (CALL_EXPR): Update description.
11866 * tree.h (CALL_EXPR_IFN): Define.
11867 (build_call_expr_internal_loc): Declare.
11868 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11869 types.
11870 (ubsan_type_descriptor): Change bool parameter to enum
11871 ubsan_print_style. Adjust the code. Add handling of
11872 UBSAN_PRINT_ARRAY.
11873 (ubsan_expand_bounds_ifn): New function.
11874 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11875 (ubsan_build_overflow_builtin): Likewise.
11876 (instrument_bool_enum_load): Likewise.
11877 (ubsan_instrument_float_cast): Likewise.
11878 * ubsan.h (enum ubsan_print_style): New enum.
11879 (ubsan_expand_bounds_ifn): Declare.
11880 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11881
11882 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11883
11884 * config/rs6000/rs6000.md: Append `DONE' to preparation
11885 statements of `bswap' pattern splitters.
11886
11887 2014-06-20 Tom de Vries <tom@codesourcery.com>
11888
11889 * target.def (call_fusage_contains_non_callee_clobbers): Update
11890 definition.
11891 * doc/tm.texi: Regenerate.
11892
11893 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11894 Max Ostapenko <m.ostapenko@partner.samsung.com>
11895
11896 PR sanitizer/61547
11897 * asan.c (instrument_strlen_call): Fixed instrumentation of
11898 trailing byte.
11899
11900 2014-06-20 Martin Jambor <mjambor@suse.cz>
11901
11902 PR ipa/61540
11903 * ipa-prop.c (impossible_devirt_target): New function.
11904 (try_make_edge_direct_virtual_call): Use it, also instead of
11905 asserting.
11906
11907 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11908 Max Ostapenko <m.ostapenko@partner.samsung.com>
11909
11910 PR sanitizer/61530
11911 * asan.c (build_check_stmt): Add condition.
11912
11913 2014-06-20 Martin Jambor <mjambor@suse.cz>
11914
11915 PR ipa/61211
11916 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11917 expanded clones.
11918
11919 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11920
11921 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11922 Update comments.
11923 (VCONQ): Make comment more helpful.
11924 (VCON): Delete.
11925 * config/aarch64/aarch64-simd.md
11926 (aarch64_sqdmulh_lane<mode>):
11927 Use VCOND for operands 2. Update lane checking and flipping logic.
11928 (aarch64_sqrdmulh_lane<mode>): Likewise.
11929 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11930 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11931 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11932 attribute of operand 3 to VCOND.
11933 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11934 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11935 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11936 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11937 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11938 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11939 define_insn.
11940 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11941 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11942 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11943 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11944 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11945 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11946 operand to VCOND. Update lane flipping and bounds checking logic.
11947 (aarch64_sqdmlal2_lane<mode>): Likewise.
11948 (aarch64_sqdmlsl_lane<mode>): Likewise.
11949 (aarch64_sqdmull_lane<mode>): Likewise.
11950 (aarch64_sqdmull2_lane<mode>): Likewise.
11951 (aarch64_sqdmlal_laneq<mode>):
11952 Replace VCON usage with VCONQ.
11953 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11954 (aarch64_sqdmlal2_laneq<mode>): Emit
11955 aarch64_sqdmlal2_laneq<mode>_internal insn.
11956 Replace VCON with VCONQ.
11957 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11958 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11959 (aarch64_sqdmull_laneq<mode>): Emit
11960 aarch64_sqdmull_laneq<mode>_internal insn.
11961 Replace VCON with VCONQ.
11962 (aarch64_sqdmull2_laneq<mode>): Emit
11963 aarch64_sqdmull2_laneq<mode>_internal insn.
11964 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11965 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11966 of 3rd argument to int16x4_t.
11967 (vqdmlalh_lane_s16): Likewise.
11968 (vqdmlslh_lane_s16): Likewise.
11969 (vqdmull_high_lane_s16): Likewise.
11970 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11971 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11972 (vqdmlsl_lane_s16): Likewise.
11973 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11974 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11975 (vqdmlals_lane_s32): Likewise.
11976 (vqdmlsls_lane_s32): Likewise.
11977 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11978 (vqdmulls_lane_s32): Likewise.
11979 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11980 (vqdmlsl_lane_s32): Likewise.
11981 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11982 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11983 (vqrdmulhh_lane_s16): Likewise.
11984 (vqdmlsl_high_lane_s16): Likewise.
11985 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11986 (vqdmlsl_high_lane_s32): Likewise.
11987 (vqrdmulhs_lane_s32): Likewise.
11988
11989 2014-06-20 Tom de Vries <tom@codesourcery.com>
11990
11991 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11992 get_call_reg_set_usage.
11993
11994 2014-06-20 Tom de Vries <tom@codesourcery.com>
11995
11996 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11997 it contains all call_used_regs.
11998
11999 2014-06-20 Tom de Vries <tom@codesourcery.com>
12000
12001 * final.c (collect_fn_hard_reg_usage): Add and use variable
12002 function_used_regs.
12003
12004 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
12005
12006 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
12007 (set_init_priority, get_init_priority, set_fini_priority,
12008 get_fini_priority): New methods.
12009 * tree.c (init_priority_for_decl): Remove.
12010 (init_ttree): Do not initialize init priority.
12011 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
12012 (decl_priority_info): Remove.
12013 (decl_init_priority_insert): Rewrite.
12014 (decl_fini_priority_insert): Rewrite.
12015 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
12016 tree_priority_map_marked_p): Remove.
12017 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
12018 * lto-streamer-out.c (hash_tree): Do not hash priorities.
12019 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
12020 not output priorities.
12021 (pack_ts_function_decl_value_fields): Likewise.
12022 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12023 not input priorities.
12024 (unpack_ts_function_decl_value_fields): Likewise.
12025 * symtab.c (symbol_priority_map): Declare.
12026 (init_priority_hash): Declare.
12027 (symtab_unregister_node): Unregister from priority hash, too.
12028 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
12029 New methods.
12030 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
12031 (symbol_priority_info): New function.
12032 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
12033 New methods.
12034 * tree-core.h (tree_priority_map): Remove.
12035
12036 2014-06-20 Jakub Jelinek <jakub@redhat.com>
12037
12038 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
12039 0xff to uint64_t before shifting it up.
12040
12041 2014-06-20 Julian Brown <julian@codesourcery.com>
12042 Chung-Lin Tang <cltang@codesourcery.com>
12043
12044 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
12045 TARGET_THUMB1_ONLY. Add comments.
12046
12047 2014-06-19 Tom de Vries <tom@codesourcery.com>
12048
12049 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
12050 return type to void.
12051 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
12052
12053 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12054
12055 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
12056 as "move", from depends_on.
12057
12058 2014-06-19 Terry Guo <terry.guo@arm.com>
12059
12060 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
12061 stage.
12062
12063 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
12064
12065 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
12066 Remove cr5.
12067 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
12068
12069 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
12070
12071 PR target/61550
12072 * config/sh/sh.c (prepare_move_operands): Don't process TLS
12073 addresses here if reload in progress or completed.
12074
12075 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
12076
12077 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
12078 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
12079 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
12080 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
12081 (mips_register_priority): New function that implements the target
12082 hook TARGET_REGISTER_PRIORITY.
12083 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
12084 (mips_lra_p): Likewise for TARGET_LRA_P.
12085 (TARGET_REGISTER_PRIORITY): Define macro.
12086 (TARGET_SPILL_CLASS): Likewise.
12087 (TARGET_LRA_P): Likewise.
12088 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
12089 classes.
12090 (REG_CLASS_NAMES): Likewise.
12091 (REG_CLASS_CONTENTS): Likewise.
12092 (BASE_REG_CLASS): Use M16_SP_REGS.
12093 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
12094 New set attribute to enable alternatives depending on the register
12095 allocator used.
12096 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
12097 (*lea64): Disable pattern for MIPS16.
12098 * config/mips/mips.opt (mlra): New option.
12099
12100 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
12101
12102 * lra-constraints.c (base_to_reg): New function.
12103 (process_address): Use new function.
12104
12105 2014-06-18 Tom de Vries <tom@codesourcery.com>
12106
12107 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
12108 * config/aarch64/aarch64.c
12109 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
12110 (aarch64_emit_call_insn): New function.
12111 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
12112 of emit_call_insn.
12113 * config/aarch64/aarch64.md (define_expand "call_internal")
12114 (define_expand "call_value_internal", define_expand "sibcall_internal")
12115 (define_expand "sibcall_value_internal"): New.
12116 (define_expand "call", define_expand "call_value")
12117 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
12118 expand variant and aarch64_emit_call_insn.
12119
12120 2014-06-18 Radovan Obradovic <robradovic@mips.com>
12121 Tom de Vries <tom@codesourcery.com>
12122
12123 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
12124 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
12125 Redefine to true.
12126 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
12127 clobbers to CALL_INSN_FUNCTION_USAGE.
12128 (define_expand "sibcall_internal")
12129 (define_expand "sibcall_value_internal"): New.
12130 (define_expand "call", define_expand "call_value"): Add argument to
12131 arm_emit_call_insn.
12132 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
12133 (define_expand "sibcall_value"): Use sibcall_value_internal and
12134 arm_emit_call_insn.
12135
12136 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12137
12138 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
12139
12140 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12141
12142 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
12143 __udivmoddi4.
12144
12145 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12146
12147 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
12148 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
12149 annotations. Fix DWARF information.
12150
12151 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12152
12153 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
12154 __udivmoddi4, and fixups for negative operands.
12155
12156 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12157
12158 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
12159
12160 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12161
12162 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
12163 to __udivmoddi4.
12164
12165 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12166
12167 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
12168 manipulation.
12169
12170 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12171
12172 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
12173 describing register usage on function entry and exit.
12174
12175 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12176
12177 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
12178 (__aeabi_ldivmod): Fix whitespace.
12179
12180 2014-06-18 Andreas Schwab <schwab@suse.de>
12181
12182 * doc/md.texi (Standard Names): Use @itemx for grouped items.
12183 Remove blank line after @item.
12184
12185 2014-06-18 Richard Henderson <rth@redhat.com>
12186
12187 PR target/61545
12188 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
12189
12190 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
12191
12192 * config/arm/arm.c (neon_vector_mem_operand): Allow register
12193 POST_MODIFY for neon loads and stores.
12194 (arm_print_operand): Output post-index register for neon loads and
12195 stores.
12196
12197 2014-06-18 Richard Biener <rguenther@suse.de>
12198
12199 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
12200
12201 2014-06-18 Richard Biener <rguenther@suse.de>
12202
12203 * tree-pass.h (make_pass_dce_loop): Remove.
12204 * passes.def: Replace pass_dce_loop with pass_dce.
12205 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
12206 changed free niter estimates and reset the scev cache.
12207 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
12208 make_pass_dce_loop): Remove.
12209 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
12210 (fini_copy_prop): Return whether something changed. Always
12211 let substitute_and_fold perform DCE and free niter estimates
12212 and reset the scev cache if so.
12213 (execute_copy_prop): If sth changed schedule cleanup-cfg.
12214 (pass_data_copy_prop): Do not unconditionally schedule
12215 cleanup-cfg or update-ssa.
12216
12217 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
12218
12219 PR tree-optimization/61518
12220 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
12221 reduction var is used in reduction stmt or phi-function only.
12222
12223 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12224
12225 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
12226
12227 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
12228
12229 PR tree-optimization/61517
12230 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
12231 whose rhs's first tree is the source expression instead of the
12232 expression itself.
12233 (find_bswap_or_nop): Likewise.
12234 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
12235 gimple stmt whose rhs's first tree is the source. In the memory source
12236 case, move the stmt to be replaced close to one of the original load to
12237 avoid the problem of a store between the load and the stmt's original
12238 location.
12239 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
12240 signature.
12241
12242 2014-06-18 Andreas Schwab <schwab@suse.de>
12243
12244 PR rtl-optimization/54555
12245 * postreload.c (move2add_use_add2_insn): Substitute
12246 STRICT_LOW_PART only if it is cheaper.
12247
12248 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
12249
12250 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
12251 Do not use unspec as call operand. Use memory_operand instead of
12252 memory_nox32_operand and add "m" operand constraint. Disable
12253 pattern for TARGET_X32.
12254 (*sibcall_pop_memory): Ditto.
12255 (*sibcall_value_memory): Ditto.
12256 (*sibcall_value_pop_memory): Ditto.
12257 (sibcall peepholes): Merge SImode and DImode patterns using
12258 W mode iterator. Use memory_operand instead of memory_nox32_operand.
12259 Disable pattern for TARGET_X32. Check if eliminated register is
12260 really dead after call insn. Generate call RTX without unspec operand.
12261 (sibcall_value peepholes): Ditto.
12262 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
12263 instead of memory_nox32_operand. Check if eliminated register is
12264 really dead after call insn. Generate call RTX without unspec operand.
12265 (sibcall_value_pop peepholes): Ditto.
12266 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
12267
12268 2014-06-18 Terry Guo <terry.guo@arm.com>
12269
12270 PR target/61544
12271 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
12272 reach the head.
12273
12274 2014-06-18 Olivier Hainque <hainque@adacore.com>
12275
12276 * tree-core.h (tree_block): Add an "end_locus" field, allowing
12277 memorization of the end of block source location.
12278 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
12279 * gimplify.c (gimplify_bind_expr): Propagate the block start and
12280 end source location info we have on the block entry/exit code we
12281 generate.
12282
12283 2014-06-18 Richard Biener <rguenther@suse.de>
12284
12285 * common.opt (fssa-phiopt): New option.
12286 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
12287 but not with -Og.
12288 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
12289 * doc/invoke.texi (-fssa-phiopt): Document.
12290
12291 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12292
12293 * genattrtab.c (n_bypassed): New variable.
12294 (process_bypasses): Initialise n_bypassed.
12295 Count number of bypassed reservations.
12296 (make_automaton_attrs): Allocate space for bypassed reservations
12297 rather than number of bypasses.
12298
12299 2014-06-18 Richard Biener <rguenther@suse.de>
12300
12301 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
12302 we propagated anything.
12303 (substitute_and_fold_dom_walker::before_dom_children): Something
12304 changed if we propagated into PHI arguments.
12305 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
12306 we removed a stmt.
12307
12308 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
12309
12310 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
12311 vector case.
12312 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
12313 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
12314 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
12315 Introduces alternative way of loads group permutaions.
12316 (vect_transform_grouped_load): Try alternative way of permutations.
12317
12318 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12319
12320 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
12321 changed in ORT_TARGET region, don't jump to do_outer.
12322 (struct gimplify_adjust_omp_clauses_data): New type.
12323 (gimplify_adjust_omp_clauses_1): Adjust for data being
12324 a struct gimplify_adjust_omp_clauses_data pointer instead
12325 of tree *. Pass pre_p as a new argument to
12326 lang_hooks.decls.omp_finish_clause hook.
12327 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
12328 splay_tree_foreach to pass both list_p and pre_p.
12329 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
12330 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
12331 gimplify_adjust_omp_clauses callers.
12332 * langhooks.c (lhd_omp_finish_clause): New function.
12333 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
12334 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
12335 * langhooks.h (struct lang_hooks_for_decls): Add a new
12336 gimple_seq * argument to omp_finish_clause hook.
12337 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
12338 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
12339 (scan_omp_parallel, lower_omp_for): When adding
12340 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
12341 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
12342 * tree-nested.c (convert_nonlocal_omp_clauses,
12343 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
12344 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
12345
12346 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
12347
12348 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
12349 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
12350
12351 2014-06-17 Xinliang David Li <davidxl@google.com>
12352
12353 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
12354 * passes.c (pass_init_dump_file): Do not set initialize
12355 flag to false unconditionally.
12356
12357 2014-06-17 Richard Biener <rguenther@suse.de>
12358
12359 * genopinit.c (main): Use vec<>::qsort method.
12360 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
12361 Likewise.
12362 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
12363
12364 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
12365
12366 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
12367 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
12368 (mips_move_to_gpr_cost): Remove ST_REGS case.
12369 (mips_move_from_gpr_cost): Likewise.
12370 (mips_register_move_cost): Likewise.
12371 (mips_secondary_reload_class): Likewise.
12372
12373 2014-06-17 Richard Biener <rguenther@suse.de>
12374
12375 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
12376 (pass_all_optimizations): Move 3rd copy-prop pass from after
12377 fre to before ifcombine/phiopt.
12378
12379 2014-06-17 Richard Biener <rguenther@suse.de>
12380
12381 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
12382 and allow all blocks to be forwarders.
12383
12384 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
12385
12386 PR target/61483
12387 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
12388 variable 'size'; calculate 'size' right in the front; use
12389 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
12390 pcum->aapcs_stack_words.
12391
12392 2014-06-17 Nick Clifton <nickc@redhat.com>
12393
12394 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
12395 (umulhi3, mulsidi3, umulsidi3): Likewise.
12396
12397 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
12398
12399 PR middle-end/61508
12400 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
12401 check for section name.
12402
12403 2014-06-17 Richard Biener <rguenther@suse.de>
12404
12405 * tree-ssa-propagate.c: Include domwalk.h.
12406 (substitute_and_fold): Outline main worker into a domwalker ...
12407 (substitute_and_fold_dom_walker::before_dom_children): ... here.
12408 Schedule stmts we can fully propagate for removal. Remove
12409 poor-mans DCE.
12410 (substitute_and_fold): Apply a dominator walk to perform
12411 substitution. Process stmts scheduled for removal here.
12412
12413 2014-06-17 Richard Biener <rguenther@suse.de>
12414
12415 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
12416 of PHI node moving.
12417
12418 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
12419
12420 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
12421 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
12422 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
12423 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
12424 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
12425 TARGET_HARD_FLOAT.
12426 (get_fpscr) : Likewise.
12427
12428 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12429
12430 PR rtl-optimization/61325
12431 * lra-constraints.c (valid_address_p): Add forward declaration.
12432 (simplify_operand_subreg): Check address validity before and after
12433 alter_reg of memory subreg.
12434
12435 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
12436
12437 * config/i386/i386.c (decide_alg): Correctly handle
12438 maximum size of stringop algorithm.
12439
12440 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12441
12442 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
12443
12444 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
12445
12446 PR rtl-optimization/61522
12447 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
12448
12449 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
12450
12451 Revert:
12452 * symtab.c (symtab_node::reset_section): New method.
12453 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12454 for localization.
12455 * cgraph.h (reset_section): Declare.
12456 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12457 do not consider comdat locals.
12458 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12459 for new symbol.
12460 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12461 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12462 reset sections of symbols dragged out of the comdats.
12463 (function_and_variable_visibility): Reset sections of
12464 localized symbols.
12465
12466 2014-06-16 Richard Biener <rguenther@suse.de>
12467
12468 PR tree-optimization/61482
12469 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
12470 [-INF(OVF), +INF(OVF)] range.
12471
12472 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12473
12474 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
12475 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
12476 handling 32-bit multiplication.
12477
12478 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
12479
12480 PR middle-end/61430
12481 * lra-lives.c (process_bb_lives): Skip creating copy during
12482 insn scan when src/dest has constrained to same regno.
12483
12484 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12485
12486 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
12487 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
12488
12489 2014-06-16 Yury Gribov <y.gribov@samsung.com>
12490
12491 * asan.c (check_func): New function.
12492 (maybe_create_ssa_name): Likewise.
12493 (build_check_stmt_with_calls): Likewise.
12494 (use_calls_p): Likewise.
12495 (report_error_func): Change interface.
12496 (build_check_stmt): Allow non-integer lengths; add support
12497 for new parameter.
12498 (asan_instrument): Likewise.
12499 (instrument_mem_region_access): Moved code to build_check_stmt.
12500 (instrument_derefs): Likewise.
12501 (instrument_strlen_call): Likewise.
12502 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
12503 * doc/invoke.texi: Describe new parameter.
12504 * params.def: Define new parameter.
12505 * params.h: Likewise.
12506 * sanitizer.def: Describe new builtins.
12507
12508 2014-06-16 Richard Biener <rguenther@suse.de>
12509
12510 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12511 Make all defs available at the end.
12512 (eliminate): If we remove a PHI node schedule cfg-cleanup.
12513
12514 2014-06-18 Jakub Jelinek <jakub@redhat.com>
12515
12516 PR plugins/45078
12517 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
12518
12519 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
12520
12521 PR bootstrap/61516
12522 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
12523 initialization. Replace remaining use of uid.
12524
12525 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
12526
12527 * c-family/c-common.c (handle_tls_model_attribute): Use
12528 set_decl_tls_model.
12529 * c-family/c-common.c (handle_tls_model_attribute): Use
12530 set_decl_tls_model.
12531 * cgraph.h (struct varpool_node): Add tls_model.
12532 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
12533 * tree.h (DECL_TLS_MODEL): Update.
12534 (DECL_THREAD_LOCAL_P): Check that variable is static.
12535 (decl_tls_model): Declare.
12536 (set_decl_tls_model): Declare.
12537 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
12538 set symbol prorperties.
12539 (get_emutls_init_templ_addr): Cleanup.
12540 (new_emutls_decl): Update.
12541 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
12542 (lto_input_varpool_node): Likewise.
12543 * lto-streamer-out.c (hash_tree): Likewise.
12544 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
12545 not stream DECL_TLS_MODEL.
12546 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
12547 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12548
12549 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12550
12551 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12552
12553 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12554
12555 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12556 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12557 lists.
12558 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12559 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12560 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12561 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12562 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12563 (df_get_artificial_defs, df_get_artificial_uses)
12564 (df_single_def, df_single_use): Update accordingly.
12565 (df_refs_chain_dump): Take the first element in a linked list as
12566 parameter, rather than a pointer to an array of pointers.
12567 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12568 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12569 (df_chain_create_bb_process_use): Likewise.
12570 (df_md_bb_local_compute_process_def): Likewise.
12571 * fwprop.c (process_defs, process_uses): Likewise.
12572 (register_active_defs, update_uses): Likewise.
12573 (forward_propagate_asm): Update for new df_ref linking.
12574 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12575 (df_null_ref_rec, df_null_mw_rec): Likewise.
12576 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12577 explicitly.
12578 (df_scan_free_bb_info): Remove check for null artificial_defs.
12579 (df_install_ref_incremental): Adjust for new df_ref linking.
12580 Use a single-element insertion rather than a full sort.
12581 (df_ref_chain_delete_du_chain): Take the first element
12582 in a linked list as parameter, rather than a pointer to an array of
12583 pointers.
12584 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12585 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12586 (df_insn_info_delete): Remove check for null defs and call to
12587 df_scan_free_mws_vec.
12588 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12589 null rather than df_null_*_rec.
12590 (df_insn_rescan_debug_internal): Likewise, and update null
12591 checks in the same way. Remove check for null defs.
12592 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12593 Move a single element rather doing a full sort.
12594 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12595 linking.
12596 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12597 Initialize df_ref and df_mw_hardreg lists to null rather than
12598 df_null_*_rec.
12599 (df_ref_compare): Take df_refs as parameter, transferring the
12600 old interface to...
12601 (df_ref_ptr_compare): ...this new function.
12602 (df_sort_and_compress_refs): Update accordingly.
12603 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12604 old interface to...
12605 (df_mw_ptr_compare): ...this new function.
12606 (df_sort_and_compress_mws): Update accordingly.
12607 (df_install_refs, df_install_mws): Return a linked list rather than
12608 an array of pointers.
12609 (df_refs_add_to_chains): Assert that old lists are empty rather
12610 than freeing them.
12611 (df_insn_refs_verify): Don't handle null defs speciailly.
12612 * web.c (union_match_dups): Update for new df_ref linking.
12613
12614 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12615
12616 * df.h (df_ref_create, df_ref_remove): Delete.
12617 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12618 (df_ref_remove): Likewise.
12619
12620 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12621
12622 * df.h (df_single_def, df_single_use): New functions.
12623 * ira.c (find_moveable_pseudos): Use them.
12624
12625 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12626
12627 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12628 * df-problems.c (df_note_bb_compute): Use it.
12629 * regstat.c (regstat_bb_compute_ri): Likewise.
12630
12631 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12632
12633 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12634 * cse.c (cse_extended_basic_block): Use them.
12635 * dce.c (mark_artificial_use): Likewise.
12636 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12637 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12638 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12639 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12640 (df_simulate_initialize_backwards): Likewise.
12641 (df_simulate_finalize_backwards): Likewise.
12642 (df_simulate_initialize_forwards): Likewise.
12643 (df_md_simulate_artificial_defs_at_top): Likewise.
12644 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12645 * regrename.c (init_rename_info): Likewise.
12646 * regstat.c (regstat_bb_compute_ri): Likewise.
12647 (regstat_bb_compute_calls_crossed): Likewise.
12648
12649 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12650
12651 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12652 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12653 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12654 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12655 * combine.c (create_log_links): Likewise.
12656 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12657 (try_eliminate_compare): Likewise.
12658 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12659 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12660 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12661 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12662 (word_dce_process_block, dce_process_block): Likewise.
12663 * ddg.c (def_has_ccmode_p): Likewise.
12664 * df-core.c (df_bb_regno_first_def_find): Likewise.
12665 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12666 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12667 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12668 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12669 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12670 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12671 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12672 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12673 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12674 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12675 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12676 * fwprop.c (local_ref_killed_between_p): Likewise.
12677 (all_uses_available_at, free_load_extend): Likewise.
12678 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12679 * hw-doloop.c (scan_loop): Likewise.
12680 * ifcvt.c (dead_or_predicable): Likewise.
12681 * init-regs.c (initialize_uninitialized_regs): Likewise.
12682 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12683 (process_bb_node_lives): Likewise.
12684 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12685 (find_moveable_pseudos): Likewise.
12686 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12687 * recog.c (peep2_find_free_register): Likewise.
12688 * ree.c (get_defs): Likewise.
12689 * regstat.c (regstat_bb_compute_ri): Likewise.
12690 (regstat_bb_compute_calls_crossed): Likewise.
12691 * sched-deps.c (find_inc, find_mem): Likewise.
12692 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12693 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12694 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12695 (prepare_shrink_wrap): Likewise.
12696 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12697 * web.c (union_defs, pass_web::execute): Likewise.
12698 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12699 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12700
12701 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12702
12703 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12704 to inheritance pseudos.
12705 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12706
12707 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12708
12709 PR target/61415
12710 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12711 (BU_MISC_2): Rename to ...
12712 (BU_LDBL128_2): ... this.
12713 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12714 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12715 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12716 RS6000_BTM_LDBL128.
12717 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12718 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12719 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12720 (unpacktf_1): Likewise.
12721 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12722 (__builtin_longdouble_dw1): Likewise.
12723 * doc/sourcebuild.texi (longdouble128): Document.
12724
12725 2014-06-13 Jeff Law <law@redhat.com>
12726
12727 PR rtl-optimization/61094
12728 PR rtl-optimization/61446
12729 * ree.c (combine_reaching_defs): Get the mode for the copy from
12730 the extension insn rather than the defining insn.
12731
12732 2014-06-13 Dehao Chen <dehao@google.com>
12733
12734 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12735
12736 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12737
12738 * doc/install.texi (--enable-linker-plugin-configure-flags)
12739 (--enable-linker-plugin-flags): Document new flags.
12740
12741 2014-06-13 Martin Jambor <mjambor@suse.cz>
12742
12743 PR ipa/61186
12744 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12745 cache_token if returning early.
12746
12747 2014-06-13 Nick Clifton <nickc@redhat.com>
12748
12749 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12750 requested alignment is active.
12751 (LABEL_ALIGN): Likewise.
12752 (LOOP_ALIGN): Likewise.
12753
12754 2014-06-13 Richard Biener <rguenther@suse.de>
12755
12756 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12757 Rewrite to propagate the VN result into all uses where
12758 possible and to remove stmts becoming dead because of that.
12759 (eliminate): Generalize stmt removal handling, remove in
12760 reverse dominator order to support proper debug stmt
12761 generation. Update stmts before removing stmts.
12762 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12763
12764 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12765
12766 PR tree-optimization/61375
12767 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12768 symbolic number cannot be represented in an uint64_t.
12769 (find_bswap_or_nop_1): Likewise.
12770
12771 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12772
12773 * symtab.c (symtab_node::reset_section): New method.
12774 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12775 for localization.
12776 * cgraph.h (reset_section): Declare.
12777 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12778 do not consider comdat locals.
12779 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12780 for new symbol.
12781 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12782 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12783 reset sections of symbols dragged out of the comdats.
12784 (function_and_variable_visibility): Reset sections of
12785 localized symbols.
12786
12787 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12788
12789 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12790 to use symtab and decl_binds_to_current_def_p
12791 * tree-vectorizer.c (increase_alignment): Increase alignment
12792 of alias target, too.
12793
12794 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12795
12796 PR middle-end/61486
12797 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12798 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12799 if outer combined construct is distribute.
12800 (gimplify_omp_for): For OMP_DISTRIBUTE set
12801 gimplify_omp_ctxp->distribute.
12802 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12803 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12804 mapping into decl map.
12805
12806 2014-06-12 Jason Merrill <jason@redhat.com>
12807
12808 * common.opt (fabi-version): Change default to 0.
12809
12810 2014-06-12 Jason Merrill <jason@redhat.com>
12811
12812 * toplev.c (process_options): Reject -fabi-version=1.
12813
12814 2014-06-12 Jeff Law <law@redhat.com>
12815
12816 PR tree-optimization/61009
12817 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12818 value when we stop processing a block due to problematic PHIs.
12819
12820 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12821
12822 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12823 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12824 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12825 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12826 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12827 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12828 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12829 are not in the spec.
12830
12831 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12832
12833 PR target/59843
12834 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12835 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12836 Support V1DFmode.
12837
12838 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12839
12840 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12841
12842 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12843
12844 PR target/61443
12845 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12846 loading from address spaces.
12847
12848 2014-06-12 Martin Liska <mliska@suse.cz>
12849
12850 PR ipa/61462
12851 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12852 statement is reachable.
12853
12854 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12855
12856 * symtab.c (section_hash): New hash.
12857 (symtab_unregister_node): Clear section before freeing.
12858 (hash_section_hash_entry): New haser.
12859 (eq_sections): New function.
12860 (symtab_node::set_section_for_node): New method.
12861 (set_section_1): Update.
12862 (symtab_node::set_section): Take string instead of tree as parameter.
12863 (symtab_resolve_alias): Update.
12864 * cgraph.h (section_hash_entry_d): New structure.
12865 (section_hash_entry): New typedef.
12866 (cgraph_node): Change comdat_group_ to x_comdat_group,
12867 change section_ to x_section and turn into section_hash_entry;
12868 update accestors; put set_section_for_node offline.
12869 * tree.c (decl_section_name): Turn into string.
12870 (set_decl_section_name): Change parameter to be string.
12871 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12872 * sdbout.c (sdbout_one_type): Update.
12873 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12874 * varasm.c (IN_NAMED_SECTION, get_named_section,
12875 resolve_unique_section, hot_function_section, get_named_text_section,
12876 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12877 make_decl_rtl, default_unique_section): Update.
12878 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12879 (c6x_elf_unique_section): Update.
12880 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12881 * config/pa/pa.c (pa_function_section): Update.
12882 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12883 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12884 * config/arc/arc.c (arc_in_small_data_p): Update.
12885 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12886 * config/mcore/mcore.c (mcore_unique_section): Update.
12887 * config/mips/mips.c (mips16_build_function_stub): Update.
12888 (mips16_build_call_stub): Update.
12889 (mips_function_rodata_section): Update.
12890 (mips_in_small_data_p): Update.
12891 * config/score/score.c (score_in_small_data_p): Update.
12892 * config/rx/rx.c (rx_in_small_data): Update.
12893 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12894 (rs6000_xcoff_asm_named_section): Update.
12895 (rs6000_xcoff_unique_section): Update.
12896 * config/frv/frv.c (frv_string_begins_with): Update.
12897 (frv_in_small_data_p): Update.
12898 * config/v850/v850.c (v850_encode_data_area): Update.
12899 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12900 (bfin_handle_l1_data_attribute): Update.
12901 (bfin_handle_l2_attribute): Update.
12902 * config/mep/mep.c (mep_unique_section): Update.
12903 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12904 Update.
12905 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12906 (h8300_handle_tiny_data_attribute): Update.
12907 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12908 (m32r_in_small_data_p): Update.
12909 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12910 * config/i386/i386.c (ix86_in_large_data_p): Update.
12911 * config/i386/winnt.c (i386_pe_unique_section): Update.
12912 * config/darwin.c (darwin_function_section): Update.
12913 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12914 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12915 (new_emutls_decl): Update.
12916 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12917 input_varpool_node): Update.
12918 (ead_string_cst): Turn to ...
12919 (read_string): ... this one.
12920 * dwarf2out.c (secname_for_decl): Update.
12921 * asan.c (asan_protect_global): Update.
12922
12923 2014-06-11 DJ Delorie <dj@redhat.com>
12924
12925 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12926 cache lines.
12927 * config/rx/rx.c (rx_option_override): Likewise.
12928 (rx_align_for_label): Likewise.
12929
12930 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12931
12932 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12933
12934 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12935 prototype.
12936
12937 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12938
12939 * common.md: New file.
12940 * doc/md.texi: Update description of generic, machine-independent
12941 constraints.
12942 * config/s390/constraints.md (e): Delete.
12943 * Makefile.in (md_file): Include common.md.
12944 * config/m32c/t-m32c (md_file): Likewise.
12945 * genpreds.c (general_mem): New array.
12946 (generic_constraint_letters): Remove constraints now defined by
12947 common.md.
12948 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12949 Allow the first character to be '<' or '>' as well.
12950 * genoutput.c (general_mem): New array.
12951 (indep_constraints): Remove constraints now defined by common.md.
12952 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12953 Remove special handling of 'm'.
12954 * ira-costs.c (record_reg_classes): Remove special handling of
12955 constraints now defined by common.md.
12956 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12957 * ira-lives.c (single_reg_class): Likewise.
12958 (ira_implicitly_set_insn_hard_regs): Likewise.
12959 * lra-constraints.c (reg_class_from_constraints): Likewise.
12960 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12961 * postreload.c (reload_cse_simplify_operands): Likewise.
12962 * reload.c (push_secondary_reload, scratch_reload_class)
12963 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12964 * reload1.c (maybe_fix_stack_asms): Likewise.
12965 * targhooks.c (default_secondary_reload): Likewise.
12966 * stmt.c (parse_output_constraint): Likewise.
12967 * recog.c (preprocess_constraints): Likewise.
12968 (constrain_operands, peep2_find_free_register): Likewise.
12969 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12970 must be handled specially.
12971
12972 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12973
12974 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12975 * genpreds.c (have_const_dbl_constraints): Delete.
12976 (add_constraint): Don't set it.
12977 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12978 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12979 constraints using the lookup_constraint logic.
12980 * ira-lives.c (single_reg_class): Likewise.
12981 * ira.c (ira_setup_alts): Likewise.
12982 * lra-constraints.c (process_alt_operands): Likewise.
12983 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12984 * reload.c (find_reloads): Likewise.
12985
12986 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12987
12988 * genpreds.c (const_int_start, const_int_end): New variables.
12989 (choose_enum_order): Output CONST_INT constraints before memory
12990 constraints.
12991 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12992 Add CT_CONST_INT.
12993 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12994 * ira.c (ira_setup_alts): Likewise.
12995 * lra-constraints.c (process_alt_operands): Likewise.
12996 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12997 * reload.c (find_reloads): Likewise.
12998
12999 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13000
13001 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
13002 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
13003 * recog.c (preprocess_constraints): Update accordingly.
13004
13005 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13006
13007 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
13008 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
13009 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
13010 * genpreds.c (print_type_tree): New function.
13011 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
13012 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
13013 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
13014 Write out enum constraint_type and get_constraint_type.
13015 * lra-constraints.c (satisfies_memory_constraint_p): Take a
13016 constraint_num rather than a constraint string.
13017 (satisfies_address_constraint_p): Likewise.
13018 (reg_class_from_constraints): Avoid old constraint macros.
13019 (process_alt_operands, process_address_1): Likewise.
13020 (curr_insn_transform): Likewise.
13021 * ira-costs.c (record_reg_classes): Likewise.
13022 (record_operand_costs): Likewise.
13023 * ira-lives.c (single_reg_class): Likewise.
13024 (ira_implicitly_set_insn_hard_regs): Likewise.
13025 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13026 * postreload.c (reload_cse_simplify_operands): Likewise.
13027 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
13028 (constrain_operands, peep2_find_free_register): Likewise.
13029 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
13030 (find_reloads, alternative_allows_const_pool_ref): Likewise.
13031 * reload1.c (maybe_fix_stack_asms): Likewise.
13032 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
13033 * targhooks.c (default_secondary_reload): Likewise.
13034 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
13035 to EXTRA_CONSTRAINT_STR.
13036 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
13037
13038 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13039
13040 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
13041 (write_constraint_satisfied_p_array): ...this new function.
13042 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
13043 an array.
13044 (write_insn_preds_c): Update accordingly.
13045
13046 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13047
13048 * genpreds.c (write_lookup_constraint): Rename to...
13049 (write_lookup_constraint_1): ...this.
13050 (write_lookup_constraint_array): New function.
13051 (write_tm_preds_h): Define lookup_constraint as an inline function
13052 that uses write_lookup_constraint_array where possible.
13053 (write_insn_preds_c): Update for the changes above.
13054
13055 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
13056
13057 * doc/md.texi (regclass_for_constraint): Rename to...
13058 (reg_class_for_constraint): ...this.
13059 * genpreds.c (num_constraints, enum_order, register_start)
13060 (register_end, satisfied_start, memory_start, memory_end)
13061 (address_start, address_end): New variables.
13062 (add_constraint): Count the number of constraints.
13063 (choose_enum_order): New function.
13064 (write_enum_constraint_num): Iterate over enum_order.
13065 (write_regclass_for_constraint): Rename to...
13066 (write_reg_class_for_constraint_1): ...this and update output
13067 accordingly.
13068 (write_constraint_satisfied_p): Rename to...
13069 (write_constraint_satisfied_p_1): ...this and update output
13070 accordingly. Do nothing if all extra constraints are register
13071 constraints.
13072 (write_insn_extra_memory_constraint): Delete.
13073 (write_insn_extra_address_constraint): Delete.
13074 (write_range_function): New function.
13075 (write_tm_preds_h): Define constraint_satisfied_p and
13076 reg_class_for_constraint as inline functions that do a range check
13077 before calling the out-of-line function. Use write_range_function
13078 to implement insn_extra_{register,memory,address}_constraint,
13079 the first of which is new.
13080 (write_insn_preds_c): Update after above changes to write_* functions.
13081 (main): Call choose_enum_order.
13082
13083 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
13084
13085 PR tree-optimization/61306
13086 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
13087 expression instead of its size.
13088 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
13089 false to prevent optimization when the result is unpredictable due to
13090 arithmetic right shift of signed type with highest byte is set.
13091 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
13092 (init_symbolic_number): Likewise.
13093 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
13094 when the result is unpredictable due to sign extension.
13095
13096 2014-06-11 Terry Guo <terry.guo@arm.com>
13097
13098 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
13099 (*thumb1_addsi3): Ditto.
13100 (*thumb_subdi3): Ditto.
13101 (thumb1_subsi3_insn): Ditto.
13102 (*thumb_mulsi3): Ditto.
13103 (*thumb_mulsi3_v6): Ditto.
13104 (*thumb1_andsi3_insn): Ditto.
13105 (thumb1_bicsi3): Ditto.
13106 (*thumb1_iorsi3_insn): Ditto.
13107 (*thumb1_xorsi3_insn): Ditto.
13108 (*thumb1_ashlsi3): Ditto.
13109 (*thumb1_ashrsi3): Ditto.
13110 (*thumb1_lshrsi3): Ditto.
13111 (*thumb1_rotrsi3): Ditto.
13112 (*thumb1_negdi2): Ditto.
13113 (*thumb1_negsi2): Ditto.
13114 (*thumb1_abssi2): Ditto.
13115 (*thumb1_neg_abssi2): Ditto.
13116 (*thumb1_one_cmplsi2): Ditto.
13117 (*thumb1_zero_extendhisi2): Ditto.
13118 (*thumb1_zero_extendqisi2): Ditto.
13119 (*thumb1_zero_extendqisi2_v6): Ditto.
13120 (thumb1_extendhisi2): Ditto.
13121 (thumb1_extendqisi2): Ditto.
13122 (*thumb1_movdi_insn): Ditto.
13123 (*thumb1_movsi_insn): Ditto.
13124 (*thumb1_movhi_insn): Ditto.
13125 (thumb_movhi_clobber): Ditto.
13126 (*thumb1_movqi_insn): Ditto.
13127 (*thumb1_movhf): Ditto.
13128 (*thumb1_movsf_insn): Ditto.
13129 (*thumb_movdf_insn): Ditto.
13130 (movmem12b): Ditto.
13131 (movmem8b): Ditto.
13132 (cbranchqi4): Ditto.
13133 (cbranchsi4_insn): Ditto.
13134 (cbranchsi4_scratch): Ditto.
13135 (*negated_cbranchsi4): Ditto.
13136 (*tbit_cbranch): Ditto.
13137 (*tlobits_cbranch): Ditto.
13138 (*tstsi3_cbranch): Ditto.
13139 (*cbranchne_decr1): Ditto.
13140 (*addsi3_cbranch): Ditto.
13141 (*addsi3_cbranch_scratch): Ditto.
13142 (*thumb_cmpdi_zero): Ditto.
13143 (cstoresi_eq0_thumb1): Ditto.
13144 (cstoresi_ne0_thumb1): Ditto.
13145 (*cstoresi_eq0_thumb1_insn): Ditto.
13146 (*cstoresi_ne0_thumb1_insn): Ditto.
13147 (cstoresi_nltu_thumb1): Ditto.
13148 (cstoresi_ltu_thumb1): Ditto.
13149 (thumb1_addsi3_addgeu): Ditto.
13150 (*thumb_jump): Ditto.
13151 (*call_reg_thumb1_v5): Ditto.
13152 (*call_reg_thumb1): Ditto.
13153 (*call_value_reg_thumb1_v5): Ditto.
13154 (*call_value_reg_thumb1): Ditto.
13155 (*call_insn): Ditto.
13156 (*call_value_insn): Ditto.
13157 (thumb1_casesi_internal_pic): Ditto.
13158 (thumb1_casesi_dispatch): Ditto.
13159 (*thumb1_indirect_jump): Ditto.
13160 (prologue_thumb1_interwork): Ditto.
13161 (*epilogue_insns): Ditto.
13162 (consttable_1): Ditto.
13163 (consttable_2): Ditto.
13164 (tablejump): Ditto.
13165 (*thumb1_tablejump): Ditto.
13166 (thumb_eh_return): Ditto.
13167 (define_peephole2): Two of them are thumb1 only and got moved into
13168 new file thumb1.md.
13169 (define_split): Six of them are thumb1 only and got moved into new
13170 file thumb1.md.
13171 * config/arm/thumb1.md: New file comprised of above thumb1 only
13172 patterns.
13173
13174 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13175
13176 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
13177 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
13178 dependencies.
13179 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
13180 (aarch64_crc_builtin_datum): New struct.
13181 (aarch64_crc_builtin_data): New.
13182 (aarch64_init_crc32_builtins): New function.
13183 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
13184 (aarch64_crc32_expand_builtin): New.
13185 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
13186 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13187 __ARM_FEATURE_CRC32 when appropriate.
13188 (TARGET_CRC32): Define.
13189 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
13190 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
13191 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
13192 (aarch64_<crc_variant>): New pattern.
13193 * config/aarch64/arm_acle.h: New file.
13194 * config/aarch64/iterators.md (CRC): New int iterator.
13195 (crc_variant, crc_mode): New int attributes.
13196 * doc/aarch64-acle-intrinsics.texi: New file.
13197 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
13198 Include aarch64-acle-intrinsics.texi.
13199
13200 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
13201
13202 * tree-vect-data-refs.c (vect_grouped_store_supported): New
13203 check for stores group of length 3.
13204 (vect_permute_store_chain): New permutations for stores group of
13205 length 3.
13206 * tree-vect-stmts.c (vect_model_store_cost): Change cost
13207 of vec_perm_shuffle for the new permutations.
13208
13209 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
13210
13211 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
13212 table rewriting temporarily on targets not supporting ONE_ONLY.
13213
13214 2014-06-11 Richard Biener <rguenther@suse.de>
13215
13216 PR middle-end/61437
13217 Revert
13218 2014-06-04 Richard Biener <rguenther@suse.de>
13219
13220 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13221 TREE_PUBLIC and DECL_EXTERNAL decls.
13222
13223 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13224
13225 * varasm.c (set_implicit_section): New function.
13226 (resolve_unique_section): Use it to set implicit section
13227 for aliases, too.
13228 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
13229 (default_function_section): Likewise.
13230 (decl_binds_to_current_def_p): Constify argument.
13231 * varasm.h (decl_binds_to_current_def_p): Update prototype.
13232 * asan.c (asan_protect_global): Use
13233 symtab_get_node (decl)->implicit_section.
13234 * symtab.c (dump_symtab_base): Dump implicit sections.
13235 (verify_symtab_base): Verify sanity of sectoins and comdats.
13236 (symtab_resolve_alias): Alias share the section of its target.
13237 (set_section_1): New function.
13238 (symtab_node::set_section): Move here, recurse to aliases.
13239 (verify_symtab): Check for duplicated symtab lists.
13240 * tree-core.h (implicit_section_name_p): Remove.
13241 * tree-vect-data-refs.c: Include varasm.h.
13242 (vect_can_force_dr_alignment_p): Fix conditional on when
13243 decl bints to current definition; use
13244 symtab_get_node (decl)->implicit_section.
13245 * cgraph.c (cgraph_make_node_local_1): Fix section set.
13246 * cgraph.h (struct symtab_node): Add implicit_section.
13247 (set_section): Rename to ...
13248 (set_section_for_node): ... this one.
13249 (set_section): Declare.
13250 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
13251 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
13252 input_overwrite_node, input_varpool_node): Stream implicit_section.
13253 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
13254 removal; it will fail in LTO.
13255
13256 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13257
13258 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
13259 Change second alternative type to f_mcr.
13260 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
13261 and 12th alternatives' types to f_mcr and f_mrc.
13262 (*movdi_aarch64): Same for 12th and 13th alternatives.
13263 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
13264 (aarch64_movtilow_tilow): Change type to fmov.
13265
13266 2014-06-10 Jiong Wang <jiong.wang@arm.com>
13267
13268 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
13269 (aarch64_save_or_restore_callee_save_registers): Fix layout.
13270
13271 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13272
13273 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
13274 New expander.
13275 (aarch64_sqrdmulh_lane<mode>): Likewise.
13276 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13277 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13278 (aarch64_sqdmulh_laneq<mode>): New expander.
13279 (aarch64_sqrdmulh_laneq<mode>): Likewise.
13280 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
13281 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
13282 (aarch64_sqdmulh_lane<mode>): New expander.
13283 (aarch64_sqrdmulh_lane<mode>): Likewise.
13284 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
13285 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
13286 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
13287 (aarch64_sqdmlal_laneq<mode>): Likewise.
13288 (aarch64_sqdmlsl_lane<mode>): Likewise.
13289 (aarch64_sqdmlsl_laneq<mode>): Likewise.
13290 (aarch64_sqdmlal2_lane<mode>): Likewise.
13291 (aarch64_sqdmlal2_laneq<mode>): Likewise.
13292 (aarch64_sqdmlsl2_lane<mode>): Likewise.
13293 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
13294 (aarch64_sqdmull_lane<mode>): Likewise.
13295 (aarch64_sqdmull_laneq<mode>): Likewise.
13296 (aarch64_sqdmull2_lane<mode>): Likewise.
13297 (aarch64_sqdmull2_laneq<mode>): Likewise.
13298
13299 2014-06-10 Richard Biener <rguenther@suse.de>
13300
13301 PR tree-optimization/61438
13302 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
13303 (eliminate_dom_walker::before_dom_children): Only try to inhibit
13304 insertion of IVs if running PRE.
13305 (eliminate): Adjust.
13306 (pass_pre::execute): Likewise.
13307 (pass_fre::execute): Likewise.
13308
13309 2014-06-10 Richard Biener <rguenther@suse.de>
13310
13311 PR middle-end/61456
13312 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
13313 Do not use the main variant for the type comparison.
13314 (ncr_compar): Likewise.
13315 (nonoverlapping_component_refs_p): Likewise.
13316
13317 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
13318
13319 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
13320 REG_CFA_RESTORE mode.
13321
13322 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
13323
13324 * config/i386/i386.c (expand_vec_perm_pblendv): New.
13325 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
13326 expand_vec_perm_pblendv.
13327
13328 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13329
13330 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
13331 available.
13332 Simplify description of __crc32d and __crc32cd intrinsics.
13333 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
13334 availability.
13335
13336 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
13337
13338 PR lto/61334
13339 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
13340 * config.in: Regenerate.
13341 * configure: Likewise.
13342
13343 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
13344
13345 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
13346 and public vars.
13347 (intersect_static_var_sets): Remove.
13348 (propagate): Do not prune local statics.
13349
13350 2014-06-10 Jakub Jelinek <jakub@redhat.com>
13351
13352 PR fortran/60928
13353 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
13354 Set lastprivate_firstprivate even if omp_private_outer_ref
13355 langhook returns true.
13356 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
13357 langhook, call unshare_expr on new_var and call
13358 build_outer_var_ref to get the last argument.
13359
13360 2014-06-10 Marek Polacek <polacek@redhat.com>
13361
13362 PR c/60988
13363 * doc/extend.texi: Add cindex for transparent_union.
13364
13365 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
13366
13367 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
13368 init_symbolic_number ().
13369
13370 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
13371
13372 PR middle-end/61141
13373 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
13374 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
13375 (verify_rtl_sharing): Likewise.
13376
13377 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
13378
13379 PR c++/54442
13380 * tree.c (build_qualified_type): Use a canonical type for
13381 TYPE_CANONICAL.
13382
13383 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13384
13385 * config/arm/arm-modes.def: Remove XFmode.
13386
13387 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
13388
13389 PR target/61062
13390 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
13391 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
13392 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
13393 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
13394 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
13395 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
13396 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
13397 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
13398 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
13399
13400 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
13401
13402 * tree-core.h (tree_decl_with_vis): Remove section_name.
13403
13404 2014-06-09 Kito Cheng <kito@0xlab.org>
13405
13406 * ira.c (ira): Don't call init_caller_save if LRA enabled
13407 since LRA use its own infrastructure to handle that.
13408
13409 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13410
13411 * symtab.c (dump_symtab_base): Update dumping.
13412 (symtab_make_decl_local): Clear only DECL_COMDAT.
13413 * tree-vect-data-refs.c (Check that variable is static before
13414 tampering with sections.
13415 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
13416 (cgraph_create_virtual_clone): Likewise.
13417 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
13418 (decl_section_name, set_decl_section_name): New accessors.
13419 (find_decls_types_r): Do not walk section name
13420 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
13421 (decl_comdat_group, decl_comdat_group_id): Constify.
13422 (decl_section_name, set_decl_section_name): Update.
13423 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
13424 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
13425 (cgraph_make_node_local_1): Clear section and comdat group.
13426 * cgraph.h (set_comdat_group): Sanity check.
13427 (get_section, set_section): New.
13428 * ipa-comdats.c (ipa_comdats): Use get_section.
13429 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
13430 * lto-streamer-out.c: Do not follow section names.
13431 * c-family/c-common.c (handle_section_attribute): Update.
13432 * lto-cgraph.c (lto_output_node): Output section.
13433 (lto_output_varpool_node): Likewise.
13434 (read_comdat_group): Rename to ...
13435 (read_identifier): ... this one.
13436 (read_string_cst): New function.
13437 (input_node, input_varpool_node): Input section names.
13438 * tree-emutls.c (get_emutls_init_templ_addr): Update.
13439 (new_emutls_decl): Update.
13440 (secname_for_decl): Check section names only of static vars.
13441 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
13442 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
13443 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
13444 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
13445 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
13446 * config/mcore/mcore.c (mcore_unique_section): Likewise.
13447 * config/mips/mips.c (mips16_build_function_stub): Likewise.
13448 * config/v850/v850.c (v850_insert_attributes): Likewise.
13449 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
13450 Likewise.
13451 (h8300_handle_tiny_data_attribute): Likewise.
13452 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
13453 (bfin_handle_l2_attribute): Likewise.
13454
13455 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13456
13457 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
13458 remove static initializer.
13459
13460 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13461
13462 * varasm.c (use_blocks_for_decl_p): Check symbol table
13463 instead of alias attribute.
13464 (place_block_symbol): Recurse on aliases.
13465
13466 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13467
13468 * ipa-visibility.c: Include varasm.h
13469 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
13470
13471 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
13472
13473 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
13474 outputting aliases.
13475
13476 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
13477
13478 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
13479 from test_insn into GGC space escape via SET_SRC.
13480
13481 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
13482
13483 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
13484 call statement, if any.
13485 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
13486 statements, if any. Tidy up.
13487
13488 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
13489
13490 PR target/61431
13491 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
13492 iterators, VSX_D that handles 64-bit types, and VSX_LE that
13493 handles swapping the two 64-bit double words on little endian
13494 systems. Include V1TImode and optionally TImode in VSX_LE so that
13495 these types are properly swapped. Change all of the insns and
13496 splits that do the 64-bit swaps to use VSX_LE.
13497 (vsx_le_perm_load_<mode>): Likewise.
13498 (vsx_le_perm_store_<mode>): Likewise.
13499 (splitters for little endian memory operations): Likewise.
13500 (vsx_xxpermdi2_le_<mode>): Likewise.
13501 (vsx_lxvd2x2_le_<mode>): Likewise.
13502 (vsx_stxvd2x2_le_<mode>): Likewise.
13503
13504 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
13505
13506 PR target/61423
13507 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
13508 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
13509 and corresponding splitters. Zero extend general register
13510 or memory input operand to XMM temporary. Enable for
13511 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
13512 (floatunssi<mode>2): Update expander predicate.
13513
13514 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
13515
13516 PR rtl-optimization/61325
13517 * lra-constraints.c (process_address_1): Check scale equal to one
13518 to prevent transformation: base + scale * index => base + new_reg.
13519
13520 2014-06-06 Richard Biener <rguenther@suse.de>
13521
13522 PR tree-optimization/59299
13523 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
13524 a def operand.
13525 (nearest_common_dominator_of_uses): Likewise.
13526 (statement_sink_location): Adjust. Support sinking loads.
13527
13528 2014-06-06 Martin Jambor <mjambor@suse.cz>
13529
13530 * ipa-prop.c (get_place_in_agg_contents_list): New function.
13531 (build_agg_jump_func_from_list): Likewise.
13532 (determine_known_aggregate_parts): Renamed to
13533 determine_locally_known_aggregate_parts. Moved some functionality
13534 to the two functions above, removed bound checks.
13535
13536 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
13537
13538 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
13539 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
13540 (aarch64_progress_pointer): Likewise.
13541 (aarch64_copy_one_part_and_move_pointers): Likewise.
13542 (aarch64_expand_movmen): Likewise.
13543 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
13544 * config/aarch64/aarch64.md (movmem<mode>): New.
13545
13546 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
13547
13548 * targhooks.c (default_add_stmt_cost): Call target specific
13549 hook instead of default one.
13550
13551 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13552
13553 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13554 endianness instead of host endianness.
13555 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13556 comments.
13557
13558 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13559
13560 PR debug/53927
13561 * function.c (instantiate_decls): Process the saved static chain.
13562 (expand_function_start): If not optimizing, save the static chain
13563 onto the stack.
13564 * tree-nested.c (convert_all_function_calls): Always create the static
13565 chain for nested functions if not optimizing.
13566
13567 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13568
13569 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13570
13571 2014-06-06 Richard Biener <rguenther@suse.de>
13572
13573 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13574 (construct_init_block): Likewise.
13575 (construct_exit_block): Likewise.
13576 (pass_expand::execute): Likewise.
13577 * graphite.c (graphite_transforms): Replace check for current_loops
13578 with a check for > 1 loops.
13579 (pass_graphite_transforms::execute): Adjust.
13580 * ipa-split.c (split_function): Remove check for current_loops.
13581 * omp-low.c (expand_parallel_call): Likewise.
13582 (expand_omp_for_init_counts): Likewise.
13583 (extract_omp_for_update_vars): Likewise.
13584 (expand_omp_for_generic): Likewise.
13585 (expand_omp_sections): Likewise.
13586 (expand_omp_target): Likewise.
13587 * tracer.c (tail_duplicate): Likewise.
13588 (pass_tracer::execute): Likewise.
13589 * trans-mem.c (expand_transaction): Likewise.
13590 * tree-complex.c (expand_complex_div_wide): Likewise.
13591 * tree-eh.c (lower_resx): Likewise.
13592 (cleanup_empty_eh_merge_phis): Likewise.
13593 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13594 current_loops with a check for > 1 loops.
13595 (pass_predcom::execute): Adjust.
13596 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13597 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13598 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13599 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13600 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13601 * tree-switch-conversion.c (process_switch): Likewise.
13602 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13603 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13604 (execute_vrp): Likewise.
13605 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13606
13607 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13608
13609 * rtl.h (insn_location): Declare.
13610 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13611 with UNKNOWN_LOCATION.
13612 * emit-rtl.c (insn_location): New function.
13613 * final.c (notice_source_line): Check that the instruction has a
13614 location before retrieving it and use insn_location.
13615 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13616 * print-rtl.c (print_rtx): Likewise.
13617
13618 2014-06-06 Richard Biener <rguenther@suse.de>
13619
13620 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13621
13622 2014-06-06 Christian Bruel <christian.bruel@st.com>
13623
13624 PR tree-optimization/43934
13625 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13626 cost.
13627
13628 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13629
13630 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13631 return NO_REGS for extra address and memory constraints. Handle
13632 operands that match (or are equivalent to something that matches)
13633 extra constant constraints. Ignore other non-register operands.
13634
13635 2014-06-06 Alan Modra <amodra@gmail.com>
13636
13637 PR target/61300
13638 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13639 * doc/tm.texi: Regenerate.
13640 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13641 Use throughout in place of REG_PARM_STACK_SPACE.
13642 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13643 "incoming" param. Pass to rs6000_function_parms_need_stack.
13644 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13645 prototype_p when incoming. Use function decl when incoming
13646 to handle K&R style functions.
13647 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13648 (INCOMING_REG_PARM_STACK_SPACE): Define.
13649
13650 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13651
13652 PR target/52472
13653 * cfgexpand.c (expand_debug_expr): Use address space of nested
13654 TREE_TYPE for ADDR_EXPR and MEM_REF.
13655
13656 2014-06-05 Jeff Law <law@redhat.com>
13657
13658 PR tree-optimization/61289
13659 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13660 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13661 looking for those which match LHS. All callers changed.
13662 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13663 parameters and code which manipulated them. All callers changed.
13664 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13665 and DST_MAP parameters. Simplify invalidation code by just calling
13666 invalidate_equivalences. All callers changed.
13667 (thread_across_edge): Simplify now that we don't need to maintain
13668 the map of equivalences to invalidate.
13669
13670 2014-06-05 Kai Tietz <ktietz@redhat.com>
13671 Richard Henderson <rth@redhat.com>
13672
13673 PR target/46219
13674 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13675 checking for !TARGET_X32.
13676 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13677 (sibcall_intern): New define_insn, plus required peepholes.
13678 (sibcall_pop_intern): Likewise.
13679 (sibcall_value_intern): Likewise.
13680 (sibcall_value_pop_intern): Likewise.
13681
13682 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13683
13684 * tree-inline.c (tree_function_versioning): Check DF info existence
13685 before accessing it.
13686
13687 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13688
13689 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13690 frame_size.
13691 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13692 aarch64_frame hard_fp_offset and frame_size.
13693 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13694 frame_size; remove original_frame_size.
13695 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13696 (aarch64_initial_elimination_offset): Remove frame_size and
13697 offset. Use aarch64_frame frame_size.
13698
13699 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13700 Jiong Wang <jiong.wang@arm.com>
13701 Renlin <renlin.li@arm.com>
13702
13703 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13704 initialization of R30 offset. Update offset. Iterate core
13705 regisers upto X30. Remove X29, X30 specific code.
13706
13707 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13708 Jiong Wang <jiong.wang@arm.com>
13709
13710 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13711 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13712 (aarch64_register_saved_on_entry): Adjust test.
13713
13714 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13715
13716 * config/aarch64/aarch64.h (machine_function): Move
13717 saved_varargs_size from here...
13718 (aarch64_frame): ... to here.
13719
13720 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13721 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13722 (aarch64_initial_elimination_offset)
13723 (aarch64_setup_incoming_varargs): Adjust location of
13724 saved_varargs_size.
13725
13726 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13727
13728 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13729 layout comment.
13730
13731 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13732 Prachi Godbole <Prachi.Godbole@imgtec.com>
13733
13734 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13735 mips32r5 entry to use PROCESSOR_P5600.
13736 * config/mips/mips-tables.opt: Regenerate.
13737 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13738 * config/mips/mips.c (mips_fmadd_bypass): New function.
13739 (mips_rtx_cost_data): Add costs for p5600.
13740 (mips_issue_rate): Add support for p5600.
13741 (mips_multipass_dfa_lookahead): Likewise.
13742 * config/mips/mips.h (TUNE_P5600): New define.
13743 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13744 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13745 * config/mips/mips.md: Include p5600.md.
13746 (processor): Add p5600.
13747 * config/mips/p5600.md: New file.
13748
13749 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13750
13751 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13752 * config/i386/predicates.md (palignr_operand): New.
13753 Indicates if permutation is suitable for palignr instruction.
13754
13755 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13756
13757 PR tree-optimization/61319
13758 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13759 stmt belongs to loop.
13760
13761 2014-06-05 Richard Biener <rguenther@suse.de>
13762
13763 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13764 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13765 (lookup_tmp_var): Adjust.
13766 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13767
13768 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13769
13770 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13771
13772 2014-06-05 Marek Polacek <polacek@redhat.com>
13773
13774 PR c/49706
13775 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13776
13777 2014-06-04 Tom de Vries <tom@codesourcery.com>
13778
13779 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13780 CONST_INT.
13781
13782 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13783
13784 PR tree-optimization/61385
13785 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13786
13787 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13788
13789 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13790 changed to use fatal_error.
13791 (main): Ensure lto_wrapper_cleanup is run atexit.
13792
13793 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13794
13795 * lra-constraints.c (valid_address_p): Move earlier in file.
13796 (address_eliminator): New structure.
13797 (satisfies_memory_constraint_p): New function.
13798 (satisfies_address_constraint_p): Likewise.
13799 (process_alt_operands, process_address, curr_insn_transform): Use them.
13800
13801 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13802
13803 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13804 const pointer.
13805 (target_lra_int, default_target_lra_int, this_target_lra_int)
13806 (op_alt_data): Delete.
13807 * lra.h (lra_init): Delete.
13808 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13809 (init_insn_code_data_once): Remove op_alt_data handling.
13810 (finish_insn_code_data_once): Likewise.
13811 (init_op_alt_data): Delete.
13812 (get_static_insn_data): Initialize operand_alternative to null.
13813 (free_insn_recog_data): Cast operand_alternative before freeing it.
13814 (setup_operand_alternative): Take the operand_alternative as
13815 parameter and assume it isn't already cached in the static
13816 insn data.
13817 (lra_set_insn_recog_data): Update accordingly.
13818 (lra_init): Delete.
13819 * ira.c (ira_init): Don't call lra_init.
13820 * target-globals.h (this_target_lra_int): Declare.
13821 (target_globals): Remove lra_int.
13822 (restore_target_globals): Update accordingly.
13823 * target-globals.c: Don't include lra-int.h.
13824 (default_target_globals, save_target_globals): Remove lra_int.
13825
13826 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13827
13828 * recog.h (operand_alternative): Convert reg_class, reject,
13829 matched and matches into bitfields.
13830 (preprocess_constraints): New overload.
13831 (preprocess_insn_constraints): New function.
13832 (preprocess_constraints): Take the insn as parameter.
13833 (recog_op_alt): Change into a pointer.
13834 (target_recog): Add x_op_alt.
13835 * recog.c (asm_op_alt): New variable.
13836 (recog_op_alt): Change into a pointer.
13837 (preprocess_constraints): New overload, replacing the old function
13838 definition with one that doesn't use global state.
13839 (preprocess_insn_constraints): New function.
13840 (preprocess_constraints): Use them. Take the insn as parameter.
13841 Use asm_op_alt for asms.
13842 (recog_init): Free existing x_op_alt entries.
13843 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13844 pointer const.
13845 (make_early_clobber_and_input_conflicts): Likewise.
13846 (process_bb_node_lives): Pass the insn to process_constraints.
13847 * reg-stack.c (check_asm_stack_operands): Likewise.
13848 (subst_asm_stack_regs): Likewise.
13849 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13850 * regrename.c (build_def_use): Likewise.
13851 * sched-deps.c (sched_analyze_insn): Likewise.
13852 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13853 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13854 (note_invalid_constants): Likewise.
13855 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13856 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13857 const.
13858
13859 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13860
13861 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13862 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13863 alternatives.
13864 (make_early_clobber_and_input_conflicts): Likewise.
13865 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13866
13867 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13868
13869 * recog.h (alternative_class): New function.
13870 (which_op_alt): Return a const recog_op_alt.
13871 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13872 (subst_asm_stack_regs): Likewise.
13873 * config/arm/arm.c (note_invalid_constants): Likewise.
13874 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13875 the operand_alternative; use alternative class instead.
13876 * sel-sched.c (get_reg_class): Likewise.
13877 * regrename.c (build_def_use): Likewise.
13878 (hide_operands, restore_operands, record_out_operands): Update type
13879 accordingly.
13880
13881 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13882
13883 * recog.h (recog_op_alt): Convert to a flat array.
13884 (which_op_alt): New function.
13885 * recog.c (recog_op_alt): Convert to a flat array.
13886 (preprocess_constraints): Update accordingly, grouping all
13887 operands of the same alternative together, rather than the
13888 other way around.
13889 * ira-lives.c (check_and_make_def_conflict): Likewise.
13890 (make_early_clobber_and_input_conflicts): Likewise.
13891 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13892 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13893 (subst_asm_stack_regs): Likewise.
13894 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13895 * regrename.c (hide_operands, record_out_operands): Likewise.
13896 (build_def_use): Likewise.
13897 * sel-sched.c (get_reg_class): Likewise.
13898 * config/arm/arm.c (note_invalid_constants): Likewise.
13899
13900 2014-06-04 Jason Merrill <jason@redhat.com>
13901
13902 PR c++/51253
13903 PR c++/61382
13904 * gimplify.c (gimplify_arg): Non-static.
13905 * gimplify.h: Declare it.
13906
13907 2014-06-04 Richard Biener <rguenther@suse.de>
13908
13909 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13910 TREE_PUBLIC and DECL_EXTERNAL decls.
13911
13912 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13913
13914 * regcprop.c (copyprop_hardreg_forward_1): Account for
13915 HARD_REGNO_CALL_PART_CLOBBERED.
13916
13917 2014-06-04 Richard Biener <rguenther@suse.de>
13918
13919 * configure.ac: Check whether the underlying type of int64_t
13920 is long or long long.
13921 * configure: Regenerate.
13922 * config.in: Likewise.
13923 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13924 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13925
13926 2014-06-04 Richard Biener <rguenther@suse.de>
13927
13928 PR tree-optimization/60098
13929 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13930 we hit a kill.
13931 (dse_optimize_stmt): Simplify, now that we found a kill
13932 earlier.
13933
13934 2014-06-04 Richard Biener <rguenther@suse.de>
13935
13936 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13937 of accesses with non-invariant address.
13938
13939 2014-06-04 Martin Liska <mliska@suse.cz>
13940
13941 * cgraph.h (cgraph_make_wrapper): New function introduced.
13942 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13943 * ipa-inline.h (inline_analyze_function): The function is global.
13944 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13945
13946 2014-06-04 Martin Liska <mliska@suse.cz>
13947
13948 * tree.h (private_lookup_attribute_starting): New function.
13949 (lookup_attribute_starting): Likewise.
13950 * tree.c (private_lookup_attribute_starting): Likewise.
13951
13952 2014-06-04 Martin Liska <mliska@suse.cz>
13953
13954 * cgraph.h (expand_thunk): New argument added.
13955 (address_taken_from_non_vtable_p): New global function.
13956 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13957 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13958 * cgraphunit.c (analyze_function): Likewise.
13959 (assemble_thunks_and_aliases): Argument added to call.
13960 (expand_thunk): New argument forces to produce GIMPLE thunk.
13961
13962 2014-06-04 Martin Liska <mliska@suse.cz>
13963
13964 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13965 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13966 * profile.c (branch_prob): Likewise.
13967
13968 2014-06-04 Martin Jambor <mjambor@suse.cz>
13969
13970 PR ipa/61340
13971 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13972 handler for switch on an ipa_ref_use enum.
13973 * ipa-reference.c (analyze_function): Likewise.
13974
13975 2014-06-04 Kai Tietz <ktietz@redhat.com>
13976
13977 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13978 from old call-instruction.
13979
13980 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13981
13982 * config/aarch64/aarch64.c (aarch64_classify_address)
13983 (aarch64_legitimize_reload_address): Support full addressing modes
13984 for vector modes.
13985 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13986 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13987
13988 2014-06-03 Andrew Pinski <apinski@cavium.com>
13989
13990 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13991 for OP0.
13992
13993 2014-06-03 Andrew Pinski <apinski@cavium.com>
13994
13995 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13996 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13997
13998 2014-06-03 Kai Tietz <ktietz@redhat.com>
13999
14000 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
14001 for 64-bit ms-abi.
14002
14003 2014-06-03 Dehao Chen <dehao@google.com>
14004
14005 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
14006 the same loop.
14007
14008 2014-06-03 Marek Polacek <polacek@redhat.com>
14009
14010 PR c/60439
14011 * doc/invoke.texi: Document -Wswitch-bool.
14012 * function.c (stack_protect_epilogue): Cast controlling expression of
14013 the switch to int.
14014 * gengtype.c (walk_type): Generate switch expression with its
14015 controlling expression cast to int.
14016
14017 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
14018
14019 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
14020 and attiny841.
14021 * config/avr/avr-tables.opt: Regenerate.
14022 * config/avr/t-multilib: Regenerate.
14023 * doc/avr-mmcu.texi: Regenerate.
14024
14025 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
14026 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14027
14028 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
14029 (ata6617c, ata664251): Add new avr35 devices.
14030 (ata6612c): Add new avr4 device.
14031 (ata6613c, ata6614q): Add new avr5 devices.
14032 * config/avr/avr-tables.opt: Regenerate.
14033 * config/avr/t-multilib: Regenerate.
14034 * doc/avr-mmcu.texi: Regenerate.
14035
14036 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14037
14038 * gcc/config/aarch64/aarch64-builtins.c
14039 (aarch64_types_binop_ssu_qualifiers): New static data.
14040 (TYPES_BINOP_SSU): Define.
14041 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
14042 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
14043 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
14044 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
14045 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
14046 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
14047 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
14048 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
14049 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
14050 suffix to builtin function name, remove cast.
14051 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
14052 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
14053 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
14054
14055 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14056
14057 * gcc/config/aarch64/aarch64-builtins.c
14058 (aarch64_types_binop_uus_qualifiers,
14059 aarch64_types_shift_to_unsigned_qualifiers,
14060 aarch64_types_unsigned_shiftacc_qualifiers): Define.
14061 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
14062 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
14063 sqshlu_n, uqshl_n): Update qualifiers.
14064 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
14065 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
14066 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
14067 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
14068 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
14069 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
14070 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
14071 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
14072 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
14073 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
14074 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
14075 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
14076 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
14077 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
14078 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
14079 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
14080 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
14081 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
14082 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
14083 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
14084 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
14085 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
14086 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
14087 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
14088 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
14089 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
14090 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
14091
14092 2014-06-03 Teresa Johnson <tejohnson@google.com>
14093
14094 * tree-sra.c (modify_function): Record caller nodes after rebuild.
14095
14096 2014-06-02 Jason Merrill <jason@redhat.com>
14097
14098 PR c++/61020
14099 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
14100
14101 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14102
14103 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
14104 location == 0.
14105
14106 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
14107
14108 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
14109 New pattern.
14110 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
14111 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
14112 * config/aarch64/iterators.md (REVERSE): New iterator.
14113 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
14114 (rev_op): New int_attribute.
14115 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
14116 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
14117 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
14118 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
14119 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
14120 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
14121 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
14122 Replace temporary __asm__ with __builtin_shuffle.
14123
14124 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14125
14126 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
14127 mips64r5.
14128 * config/mips/mips-tables.opt: Regenerate.
14129 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
14130 to use mips_isa_rev rather than ISA_MIPS32R2.
14131 * config/mips/mips.h (ISA_MIPS32R3): New define.
14132 (ISA_MIPS32R5): New define.
14133 (ISA_MIPS64R3): New define.
14134 (ISA_MIPS64R5): New define.
14135 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
14136 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
14137 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
14138 and mips64r5.
14139 (MIPS_ISA_SYNCI_SPEC): Likewise.
14140 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
14141 (LINK_SPEC): Added mips32r3 and mips32r5.
14142 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
14143 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
14144 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
14145 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
14146 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
14147 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
14148 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
14149
14150 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
14151
14152 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
14153 options.
14154 * config/mips/mips.opt (mxpa): New option.
14155 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
14156 assembler.
14157
14158 2014-06-03 Martin Jambor <mjambor@suse.cz>
14159
14160 PR ipa/61160
14161 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
14162 thunks.
14163
14164 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
14165
14166 PR tree-optimization/61328
14167 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
14168 initialization from find_bswap_or_nop_1.
14169 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
14170 in source_expr2 before using the size value the function sets. Also
14171 make use of init_symbolic_number () in both the old place and
14172 find_bswap_or_nop_load () to avoid reading uninitialized memory when
14173 doing recursion in the GIMPLE_BINARY_RHS case.
14174
14175 2014-06-03 Richard Biener <rguenther@suse.de>
14176
14177 PR tree-optimization/61383
14178 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
14179 stmts can't trap.
14180
14181 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
14182
14183 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
14184 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
14185 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
14186 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
14187 in this file.
14188 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
14189 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
14190 * system.h: ...here and make it unconditional.
14191 * target.def (conditional_register_usage): Mention
14192 define_register_constraint instead of old-style constraint macros.
14193 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
14194 * doc/tm.texi: Regenerate.
14195 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
14196 protected by !USE_MD_CONSTRAINTS.
14197 * config/frv/frv.md: Remove quote from old version of documentation.
14198 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
14199 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
14200 CONST_DOUBLE_OK_FOR_LETTER.
14201 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
14202
14203 2014-06-02 Andrew Pinski <apinski@cavium.com>
14204
14205 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
14206 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
14207 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
14208 file whose name depends on -mabi= and -mbig-endian.
14209 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
14210 Handle LP64 better and handle ilp32 too.
14211 (MULTILIB_OPTIONS): Delete.
14212 (MULTILIB_DIRNAMES): Delete.
14213
14214 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
14215
14216 * expr.h: Remove prototypes of functions defined in builtins.c.
14217 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
14218 Remove prototypes of functions defined in builtins.c.
14219 * builtins.h: Update prototype list to include all exported functions.
14220 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
14221 no_c99_libc_has_function): Move to targhooks.c
14222 (build_string_literal, build_call_expr_loc_array,
14223 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
14224 to tree.c.
14225 (expand_builtin_object_size, fold_builtin_object_size): Make static.
14226 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
14227 no_c99_libc_has_function): Relocate from builtins.c.
14228 * tree.c: Include builtins.h.
14229 (build_call_expr_loc_array, build_call_expr_loc_vec,
14230 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
14231 from builtins.c.
14232 * fold-const.h (fold_fma): Move prototype to builtins.h.
14233 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
14234 * asan.c: Include builtins.h.
14235 * cfgexpand.c: Likewise.
14236 * convert.c: Likewise.
14237 * emit-rtl.c: Likewise.
14238 * except.c: Likewise.
14239 * expr.c: Likewise.
14240 * fold-const.c: Likewise.
14241 * gimple-fold.c: Likewise.
14242 * gimple-ssa-strength-reduction.c: Likewise.
14243 * gimplify.c: Likewise.
14244 * ipa-inline.c: Likewise.
14245 * ipa-prop.c: Likewise.
14246 * lto-streamer-out.c: Likewise.
14247 * stmt.c: Likewise.
14248 * tree-inline.c: Likewise.
14249 * tree-object-size.c: Likewise.
14250 * tree-sra.c: Likewise.
14251 * tree-ssa-ccp.c: Likewise.
14252 * tree-ssa-forwprop.c: Likewise.
14253 * tree-ssa-loop-ivcanon.c: Likewise.
14254 * tree-ssa-loop-ivopts.c: Likewise.
14255 * tree-ssa-math-opts.c: Likewise.
14256 * tree-ssa-reassoc.c: Likewise.
14257 * tree-ssa-threadedge.c: Likewise.
14258 * tree-streamer-in.c: Likewise.
14259 * tree-vect-data-refs.c: Likewise.
14260 * tree-vect-patterns.c: Likewise.
14261 * tree-vect-stmts.c: Likewise.
14262 * config/aarch64/aarch64.c: Likewise.
14263 * config/alpha/alpha.c: Likewise.
14264 * config/arc/arc.c: Likewise.
14265 * config/arm/arm.c: Likewise.
14266 * config/avr/avr.c: Likewise.
14267 * config/bfin/bfin.c: Likewise.
14268 * config/c6x/c6x.c: Likewise.
14269 * config/cr16/cr16.c: Likewise.
14270 * config/cris/cris.c: Likewise.
14271 * config/epiphany/epiphany.c: Likewise.
14272 * config/fr30/fr30.c: Likewise.
14273 * config/frv/frv.c: Likewise.
14274 * config/h8300/h8300.c: Likewise.
14275 * config/i386/i386.c: Likewise.
14276 * config/i386/winnt.c: Likewise.
14277 * config/ia64/ia64.c: Likewise.
14278 * config/iq2000/iq2000.c: Likewise.
14279 * config/lm32/lm32.c: Likewise.
14280 * config/m32c/m32c.c: Likewise.
14281 * config/m32r/m32r.c: Likewise.
14282 * config/m68k/m68k.c: Likewise.
14283 * config/mcore/mcore.c: Likewise.
14284 * config/mep/mep.c: Likewise.
14285 * config/microblaze/microblaze.c: Likewise.
14286 * config/mips/mips.c: Likewise.
14287 * config/mmix/mmix.c: Likewise.
14288 * config/mn10300/mn10300.c: Likewise.
14289 * config/moxie/moxie.c: Likewise.
14290 * config/msp430/msp430.c: Likewise.
14291 * config/nds32/nds32.c: Likewise.
14292 * config/pa/pa.c: Likewise.
14293 * config/pdp11/pdp11.c: Likewise.
14294 * config/picochip/picochip.c: Likewise.
14295 * config/rl78/rl78.c: Likewise.
14296 * config/rs6000/rs6000.c: Likewise.
14297 * config/rx/rx.c: Likewise.
14298 * config/s390/s390.c: Likewise.
14299 * config/score/score.c: Likewise.
14300 * config/sh/sh.c: Likewise.
14301 * config/sparc/sparc.c: Likewise.
14302 * config/spu/spu.c: Likewise.
14303 * config/stormy16/stormy16.c: Likewise.
14304 * config/tilegx/tilegx.c: Likewise.
14305 * config/tilepro/tilepro.c: Likewise.
14306 * config/v850/v850.c: Likewise.
14307 * config/vax/vax.c: Likewise.
14308 * config/xtensa/xtensa.c: Likewise.
14309
14310 2014-06-02 Jeff Law <law@redhat.com>
14311
14312 PR rtl-optimization/61094
14313 * ree.c (combine_reaching_defs): Do not reextend an insn if it
14314 was marked as do_no_reextend. If a copy is needed to eliminate
14315 an extension, then mark it as do_not_reextend.
14316
14317 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
14318
14319 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
14320
14321 2014-06-02 Richard Henderson <rth@redhat.com>
14322
14323 PR target/61336
14324 * config/alpha/alpha.c (print_operand_address): Allow symbolic
14325 addresses inside asms. Use output_operand_lossage instead of
14326 gcc_unreachable.
14327
14328 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
14329
14330 PR target/61239
14331 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
14332 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
14333
14334 2014-06-02 Tom de Vries <tom@codesourcery.com>
14335
14336 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
14337 case that x has VOIDmode.
14338
14339 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
14340
14341 * varasm.c (copy_constant): Delete function.
14342 (build_constant_desc): Don't call it.
14343
14344 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14345
14346 PR target/61154
14347 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
14348 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
14349 with immediate_operand.
14350
14351 2014-06-02 Andreas Schwab <schwab@suse.de>
14352
14353 * config/ia64/ia64.c
14354 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
14355 pending_data_specs first.
14356
14357 2014-06-02 Richard Biener <rguenther@suse.de>
14358
14359 PR tree-optimization/61378
14360 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
14361 valueized_anything.
14362
14363 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
14364
14365 * config/i386/constraints.md (Bw): Rename from 'w'.
14366 (Bz): Rename from 'z'.
14367 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
14368
14369 2014-06-01 Kai Tietz <ktietz@redhat.com>
14370
14371 PR target/61377
14372 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
14373 * config/i386/i386.md (sibcall_insn_operand): Use Bs
14374 instead of m constraint.
14375
14376 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
14377
14378 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
14379 a separate alternative where the scratch operand 2 is marked as
14380 early clobber.
14381
14382 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
14383
14384 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
14385 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
14386 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
14387 and __builtins_arm_get_fpscr.
14388 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
14389 __builtins_arm_get_fpscr.
14390 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
14391 __builtins_arm_ldfpscr.
14392 (arm_atomic_assign_expand_fenv): New function.
14393 * config/arm/vfp.md (set_fpscr): New pattern.
14394 (get_fpscr) : Likewise.
14395 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
14396 VUNSPEC_SET_FPSCR.
14397 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14398 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
14399
14400 2014-05-30 Jakub Jelinek <jakub@redhat.com>
14401
14402 * asan.c (report_error_func): Add SLOW_P argument, use
14403 BUILT_IN_ASAN_*_N if set.
14404 (build_check_stmt): Likewise.
14405 (instrument_derefs): If T has insufficient alignment,
14406 force same handling as for odd sizes.
14407
14408 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
14409 BUILT_IN_ASAN_REPORT_STORE_N): New.
14410 * asan.c (struct asan_mem_ref): Change access_size type to
14411 HOST_WIDE_INT.
14412 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
14413 update_mem_ref_hash_table): Likewise.
14414 (asan_mem_ref_hasher::hash): Hash in a HWI.
14415 (report_error_func): Change size_in_bytes argument to HWI.
14416 Use *_N builtins if size_in_bytes is larger than 16 or not power of
14417 two.
14418 (build_shadow_mem_access): New function.
14419 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
14420 Handle size_in_bytes not power of two or larger than 16.
14421 (instrument_derefs): Don't give up if size_in_bytes is not
14422 power of two or is larger than 16.
14423
14424 2014-05-30 Kai Tietz <ktietz@redhat.com>
14425
14426 PR target/60104
14427 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
14428 for sibling-tail-calls.
14429 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
14430 to its use.
14431 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
14432 (sibcall_insn_operand): Add check for sibcall_memory_operand.
14433
14434 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14435
14436 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
14437 * config/avr/avr-tables.opt: Regenerate.
14438 * config/avr/t-multilib: Regenerate.
14439 * doc/avr-mmcu.texi: Regenerate.
14440
14441 2014-05-30 Ian Lance Taylor <iant@google.com>
14442
14443 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
14444 target("sse").
14445
14446 2014-05-30 Tom de Vries <tom@codesourcery.com>
14447
14448 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
14449 Redefine as true.
14450
14451 2014-05-30 Tom de Vries <tom@codesourcery.com>
14452
14453 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14454 * lra.c (initialize_lra_reg_info_element): Add init of
14455 actual_call_used_reg_set field.
14456 (lra): Call lra_create_live_ranges before lra_inheritance for
14457 -fuse-caller-save.
14458 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14459 -fuse-caller-save.
14460 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
14461 instead of call_used_reg_set for -fuse-caller-save.
14462 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14463
14464 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14465
14466 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
14467 to mov_imm.
14468 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
14469
14470 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
14471
14472 * ira.c (ira_get_dup_out_num): Check for output operands at
14473 the start of the loop. Handle cases where an included alternative
14474 follows an excluded one.
14475
14476 2014-05-29 Mike Stump <mikestump@comcast.net>
14477
14478 PR debug/61352
14479 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
14480 post ld passes when lto is used.
14481
14482 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
14483
14484 PR rtl-optimization/61325
14485 * lra-constraints.c (process_address): Rename to process_address_1.
14486 (process_address): New function.
14487
14488 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
14489
14490 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
14491 TYPES_BINOPV): New static data.
14492 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
14493 New builtin.
14494 * config/aarch64/aarch64-simd.md (aarch64_ext,
14495 aarch64_im_lane_boundsi): New patterns.
14496 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
14497 patterns for EXT.
14498 (aarch64_evpc_ext): New function.
14499
14500 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
14501
14502 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
14503 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
14504 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
14505 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
14506 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
14507
14508 2014-05-29 Tom de Vries <tom@codesourcery.com>
14509
14510 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
14511
14512 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
14513 Richard Sandiford <rdsandiford@googlemail.com>
14514
14515 * arm/iterators.md (shiftable_ops): New code iterator.
14516 (t2_binop0, arith_shift_insn): New code attributes.
14517 * arm/predicates.md (shift_nomul_operator): New predicate.
14518 * arm/arm.md (insn_enabled): Delete.
14519 (enabled): Remove insn_enabled test.
14520 (*arith_shiftsi): Delete. Replace with ...
14521 (*<arith_shift_insn>_multsi): ... new pattern.
14522 (*<arith_shift_insn>_shiftsi): ... new pattern.
14523 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
14524
14525 2014-05-29 Radovan Obradovic <robradovic@mips.com>
14526 Tom de Vries <tom@codesourcery.com>
14527
14528 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
14529 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
14530 clobber.
14531 (mips_split_call): Use POST_CALL_TMP_REG.
14532 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
14533
14534 2014-05-29 Tom de Vries <tom@codesourcery.com>
14535
14536 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
14537 with #ifdef STACK_REGS.
14538
14539 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
14540
14541 * varasm.c (get_variable_section): Walk aliases.
14542 (place_block_symbol): Walk aliases.
14543
14544 2014-05-28 Tom de Vries <tom@codesourcery.com>
14545
14546 Revert:
14547 2014-05-28 Tom de Vries <tom@codesourcery.com>
14548
14549 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14550 * lra.c (initialize_lra_reg_info_element): Add init of
14551 actual_call_used_reg_set field.
14552 (lra): Call lra_create_live_ranges before lra_inheritance for
14553 -fuse-caller-save.
14554 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14555 -fuse-caller-save.
14556 * lra-constraints.c (need_for_call_save_p): Use
14557 actual_call_used_reg_set instead of call_used_reg_set for
14558 -fuse-caller-save.
14559 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14560
14561 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14562
14563 * doc/md.texi: Document that the % constraint character must
14564 be at the beginning of the string.
14565 * genoutput.c (validate_insn_alternatives): Check that '=',
14566 '+' and '%' only appear at the beginning of a constraint.
14567 * ira.c (commutative_constraint_p): Delete.
14568 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14569 at the start of the string.
14570 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14571 duplicate '='s.
14572 * config/arm/neon.md (bicdi3_neon): Likewise.
14573 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14574 (slt_si, sltu_si): Likewise.
14575 * config/vax/vax.md (sbcdi3): Likewise.
14576 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14577 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14578 (mul64): Move '%' to beginning of constraint.
14579 * config/arm/arm.md (*xordi3_insn): Likewise.
14580 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14581 (xorsi3): Likewise.
14582
14583 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14584
14585 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14586
14587 2014-05-28 Jason Merrill <jason@redhat.com>
14588
14589 PR c++/47202
14590 * cgraph.h (symtab_node::get_comdat_group_id): New.
14591 * cgraphunit.c (analyze_functions): Call it.
14592 * symtab.c (dump_symtab_node): Likewise.
14593 * tree.c (decl_comdat_group_id): New.
14594 * tree.h: Declare it.
14595 * lto-streamer-out.c (write_symbol): Use it.
14596 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14597
14598 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14599
14600 PR bootstrap/PR61146
14601 * wide-int.cc: Do not include longlong.h when compiling with clang.
14602
14603 2014-05-28 Richard Biener <rguenther@suse.de>
14604
14605 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14606 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14607 (vrp_visit_assignment_or_call): Print less vertical space.
14608 (vrp_visit_stmt): Likewise.
14609 (vrp_visit_phi_node): Likewise. For a PHI argument with
14610 VR_VARYING range consider recording it as copy.
14611
14612 2014-05-28 Richard Biener <rguenther@suse.de>
14613
14614 Revert
14615 2014-05-28 Richard Biener <rguenther@suse.de>
14616
14617 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14618
14619 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14620
14621 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14622 sufficiently aligned and an offset is used at the same time.
14623 (expand_expr_real_1): Likewise.
14624
14625 2014-05-28 Richard Biener <rguenther@suse.de>
14626
14627 PR middle-end/61045
14628 * fold-const.c (fold_comparison): When folding
14629 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14630 the sign of the remaining constant operand stays the same.
14631
14632 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14633
14634 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14635 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14636 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14637 to the assembler.
14638 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14639 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14640 (m32bit-doubles) Likewise.
14641 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14642 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14643 option for RL78.
14644
14645 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14646
14647 * configure.ac ($gcc_cv_ld_clearcap): New test.
14648 * configure: Regenerate.
14649 * config.in: Regenerate.
14650 * config/sol2.opt (mclear-hwcap): New option.
14651 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14652 * config/sol2-clearcap.map: Moved here from
14653 testsuite/gcc.target/i386/clearcap.map.
14654 * config/sol2-clearcapv2.map: Move here from
14655 gcc.target/i386/clearcapv2.map.
14656 * config/t-sol2 (install): Depend on install-clearcap-map.
14657 (install-clearcap-map): New target.
14658 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14659 -mclear-hwcap.
14660
14661 2014-05-28 Richard Biener <rguenther@suse.de>
14662
14663 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14664 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14665 ... here and remove the rest.
14666 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14667
14668 2014-05-28 Richard Biener <rguenther@suse.de>
14669
14670 PR tree-optimization/61335
14671 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14672 new range fails, drop to varying.
14673
14674 2014-05-28 Olivier Hainque <hainque@adacore.com>
14675
14676 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14677 (CPP_SPEC): Add entry for -mcpu=8548.
14678 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14679 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14680
14681 2014-05-28 Tom de Vries <tom@codesourcery.com>
14682
14683 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14684 * lra.c (initialize_lra_reg_info_element): Add init of
14685 actual_call_used_reg_set field.
14686 (lra): Call lra_create_live_ranges before lra_inheritance for
14687 -fuse-caller-save.
14688 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14689 -fuse-caller-save.
14690 * lra-constraints.c (need_for_call_save_p): Use
14691 actual_call_used_reg_set instead of call_used_reg_set for
14692 -fuse-caller-save.
14693 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14694
14695 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14696 Tom de Vries <tom@codesourcery.com>
14697
14698 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14699 to gccoptlist.
14700 (@item -fuse-caller-save): New item.
14701
14702 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14703 Tom de Vries <tom@codesourcery.com>
14704
14705 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14706 OPT_fuse_caller_save.
14707
14708 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14709 Tom de Vries <tom@codesourcery.com>
14710
14711 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14712 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14713 get_call_reg_set_usage.
14714 * resource.c (mark_set_resources, mark_target_live_regs): Use
14715 get_call_reg_set_usage.
14716 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14717 field.
14718 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14719 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14720 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14721 * ira-build.c (ira_create_allocno): Init
14722 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14723 (create_cap_allocno, propagate_allocno_info)
14724 (propagate_some_info_from_allocno)
14725 (copy_info_to_removed_store_destinations): Handle
14726 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14727 * ira-costs.c (ira_tune_allocno_costs): Use
14728 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14729
14730 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14731 Tom de Vries <tom@codesourcery.com>
14732
14733 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14734 and function_used_regs_valid fields.
14735 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14736 find_all_hard_reg_sets.
14737 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14738 (get_call_reg_set_usage): New function.
14739 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14740 * regs.h (get_call_reg_set_usage): Declare.
14741
14742 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14743
14744 PR libgcc/61152
14745 * config/dbx.h (License): Add Runtime Library Exception.
14746 * config/newlib-stdint.h (License): Same.
14747 * config/rtems.h (License): Same
14748 * config/initfini-array.h (License): Same
14749 * config/v850/v850.h (License): Same.
14750 * config/v850/v850-opts.h (License): Same
14751 * config/v850/rtems.h (License): Same.
14752
14753 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14754
14755 PR target/61044
14756 * doc/extend.texi (Local Labels): Note that label differences are
14757 not supported for AVR.
14758
14759 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14760 Olivier Hainque <hainque@adacore.com>
14761
14762 * rtl.h (set_for_reg_notes): Declare.
14763 * emit-rtl.c (set_for_reg_notes): New function.
14764 (set_unique_reg_note): Use it.
14765 * optabs.c (add_equal_note): Likewise
14766
14767 2014-05-27 Andrew Pinski <apinski@cavium.com>
14768
14769 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14770 Use <w> for the register in assembly template.
14771 (stack_protect_test): Use the mode of operands[0] for the result.
14772 (stack_protect_test_<mode>): Use <w> for the register
14773 in assembly template.
14774
14775 2014-05-27 DJ Delorie <dj@redhat.com>
14776
14777 * config/rx/rx.c (add_vector_labels): New.
14778 (rx_output_function_prologue): Call it.
14779 (rx_handle_func_attribute): Don't require empty arguments.
14780 (rx_handle_vector_attribute): New.
14781 (rx_attribute_table): Add "vector" attribute.
14782 * doc/extend.texi (interrupt, vector): Document new/changed
14783 RX-specific attributes.
14784
14785 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14786
14787 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14788
14789 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14790 predicate to detect a negative quotient.
14791
14792 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14793
14794 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14795 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14796 Add X - Y CMP 0 to X CMP Y transformation.
14797 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14798
14799 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14800
14801 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14802 before printing.
14803
14804 2014-05-27 Steve Ellcey <sellcey@mips.com>
14805
14806 * config/mips/mips.c: Add include of cgraph.h.
14807
14808 2014-05-27 Richard Biener <rguenther@suse.de>
14809
14810 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14811
14812 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14813
14814 PR libgcc/61152
14815 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14816 * config/arm/arm-cores.def (License): Same.
14817 * config/arm/arm-opts.h (License): Same.
14818 * config/arm/aout.h (License): Same.
14819 * config/arm/bpabi.h (License): Same.
14820 * config/arm/elf.h (License): Same.
14821 * config/arm/linux-elf.h (License): Same.
14822 * config/arm/linux-gas.h (License): Same.
14823 * config/arm/netbsd-elf.h (License): Same.
14824 * config/arm/uclinux-eabi.h (License): Same.
14825 * config/arm/uclinux-elf.h (License): Same.
14826 * config/arm/vxworks.h (License): Same.
14827
14828 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14829
14830 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14831 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14832 (arm_init_neon_builtins): Handle NEON_BSWAP.
14833 Define required type nodes.
14834 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14835 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14836 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14837 * config/arm/iterators.md (VDQHSD): New mode iterator.
14838
14839 2014-05-27 Richard Biener <rguenther@suse.de>
14840
14841 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14842 Try using literal operands when comparing value-ranges failed.
14843
14844 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14845
14846 * ira.c (commutative_operand): Adjust for change to recog_data.
14847 [Missing from previous commit.]
14848
14849 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14850
14851 * system.h (TEST_BIT): New macro.
14852 * recog.h (alternative_mask): New type.
14853 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14854 (recog_data_d): Replace alternative_enabled_p array with
14855 enabled_alternatives.
14856 (target_recog): New structure.
14857 (default_target_recog, this_target_recog): Declare.
14858 (get_enabled_alternatives, recog_init): Likewise.
14859 * recog.c (default_target_recog, this_target_recog): New variables.
14860 (get_enabled_alternatives): New function.
14861 (extract_insn): Use it.
14862 (recog_init): New function.
14863 (preprocess_constraints, constrain_operands): Adjust for change to
14864 recog_data.
14865 * postreload.c (reload_cse_simplify_operands): Likewise.
14866 * reload.c (find_reloads): Likewise.
14867 * ira-costs.c (record_reg_classes): Likewise.
14868 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14869 all alternatives after a disabled one would be skipped.
14870 (ira_implicitly_set_insn_hard_regs): Likewise.
14871 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14872 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14873 with enabled_alternatives.
14874 * lra.c (free_insn_recog_data): Update accordingly.
14875 (lra_update_insn_recog_data): Likewise.
14876 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14877 * lra-constraints.c (process_alt_operands): Likewise. Handle
14878 only_alternative as part of the enabled mask.
14879 * target-globals.h (this_target_recog): Declare.
14880 (target_globals): Add a recog field.
14881 (restore_target_globals): Restore this_target_recog.
14882 * target-globals.c: Include recog.h.
14883 (default_target_globals): Initialize recog field.
14884 (save_target_globals): Likewise.
14885 * reginfo.c (reinit_regs): Call recog_init.
14886 * toplev.c (backend_init_target): Likewise.
14887
14888 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14889
14890 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14891 rather than any named insn's code.
14892
14893 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14894
14895 PR libgcc/61152
14896 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14897 * config/arm/arm-cores.def (License): Same.
14898
14899 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14900
14901 * tree.h (decl_comdat_group): Declare.
14902 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14903 * tree.c (decl_comdat_group): Here.
14904
14905 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14906
14907 PR rtl-optimization/61222
14908 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14909 the shift, truncate the PLUS operand to the result mode.
14910
14911 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14912
14913 PR target/61271
14914 * config/i386/i386.c (ix86_rtx_costs)
14915 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14916 Fix condition.
14917
14918 2014-05-26 Martin Jambor <mjambor@suse.cz>
14919
14920 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14921 subreg uses.
14922
14923 2014-05-26 Richard Biener <rguenther@suse.de>
14924
14925 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14926 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14927 Provide specializations.
14928 (wi::int_traits <HOST_WIDE_INT>,
14929 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14930
14931 2014-05-26 Alan Modra <amodra@gmail.com>
14932
14933 PR target/61098
14934 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14935 params and return a bool. Remove dead code. Update comment.
14936 Assert we have a const_int source. Remove bogus code from
14937 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14938 handling of constants > 2G and reg_equal note, from..
14939 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14940 return value. Update comment. If we can, use a new pseudo
14941 for intermediate calculations.
14942 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14943 prototype.
14944 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14945 call to rs6000_emit_set_const in splitter.
14946 (movdi_internal64+2, +3): Likewise.
14947
14948 2014-05-26 Richard Biener <rguenther@suse.de>
14949
14950 * system.h: Define __STDC_FORMAT_MACROS before
14951 including inttypes.h.
14952 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14953 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14954 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14955 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14956 HOST_WIDEST_INT_C): Remove.
14957 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14958 if C99 inttypes.h is not available.
14959 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14960 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14961 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14962 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14963 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14964 (struct output_info): Likewise.
14965 (print_statistics): Adjust.
14966 (dump_bitmap_statistics): Likewise.
14967 * bt-load.c (migrate_btr_defs): Print with PRId64.
14968 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14969 (MAX_SAFE_MULTIPLIER): Adjust.
14970 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14971 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14972 dump_cgraph_node): Likewise.
14973 * final.c (dump_basic_block_info): Likewise.
14974 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14975 * gcov.c (format_gcov): Likewise.
14976 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14977 for calculation.
14978 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14979 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14980 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14981 Use PRId64 for dumping.
14982 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14983 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14984 (add_allocno_hard_regs): Adjust.
14985 * loop-doloop.c (doloop_modify): Print using PRId64.
14986 * loop-iv.c (inverse): Compute in uint64_t.
14987 (determine_max_iter, iv_number_of_iterations): Likewise.
14988 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14989 Print using PRId64.
14990 * lto-streamer-out.c (write_symbol): Use uint64_t.
14991 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14992 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14993 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14994 * modulo-sched.c (const_iteration_count): Use int64_t.
14995 (sms_schedule): Dump using PRId64.
14996 * predict.c (dump_prediction): Likewise.
14997 * pretty-print.h (pp_widest_integer): Remove.
14998 * profile.c (get_working_sets, is_edge_inconsistent,
14999 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
15000 * tree-pretty-print.c (pp_double_int): Remove case handling
15001 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
15002 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
15003 and adjust users.
15004 (pass_optimize_bswap::execute): Remove restriction on hosts.
15005 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
15006 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
15007 * tree.c (widest_int_cst_value): Remove.
15008 * tree.h (widest_int_cst_value): Likewise.
15009 * value-prof.c (dump_histogram_value): Print using PRId64.
15010 * gengtype.c (main): Also inject int64_t.
15011 * ggc-page.c (struct max_alignment): Use int64_t.
15012 * alloc-pool.c (struct allocation_object_def): Likewise.
15013 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
15014 for computation.
15015 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
15016 * doc/tm.texi: Regenerated.
15017 * gengtype-lex.l (IWORD): Handle [u]int64_t.
15018 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
15019 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
15020 mmix_output_register_setting): Use [u]int64_t in prototypes.
15021 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
15022 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
15023 mmix_output_octa, mmix_output_shifted_value): Adjust.
15024 (mmix_intval): Adjust. Remove unreachable case.
15025 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
15026
15027 2014-05-26 Richard Biener <rguenther@suse.de>
15028
15029 * configure.ac: Drop __int64 type check. Insist that we
15030 found uint64_t and int64_t.
15031 * hwint.h (HOST_BITS_PER___INT64): Remove.
15032 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
15033 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
15034 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
15035 (HOST_WIDEST_FAST_INT): Remove __int64 case.
15036 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
15037 for dst_q_src_df_rms_cdt.
15038 * configure: Regenerate.
15039 * config.in: Likewise.
15040
15041 2014-05-26 Michael Tautschnig <mt@debian.org>
15042
15043 PR target/61249
15044 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
15045 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
15046
15047 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15048
15049 PR rtl-optimization/61278
15050 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
15051
15052 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15053
15054 PR rtl-optimization/61220
15055 Part of PR rtl-optimization/61225
15056 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
15057 insn; skip split_edge for a block with only one successor.
15058
15059 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15060
15061 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
15062 for variables.
15063
15064 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15065
15066 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
15067 (update_vtable_references): New function.
15068 (function_and_variable_visibility): Rewrite also vtable initializers.
15069 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
15070
15071 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15072
15073 * ggc.h (ggc_grow): New function.
15074 * ggc-none.c (ggc_grow): New function.
15075 * ggc-page.c (ggc_grow): Likewise.
15076
15077 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15078
15079 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
15080 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
15081 comdat_can_be_unshared_p, cgraph_externally_visible_p,
15082 varpool_externally_visible_p, can_replace_by_local_alias,
15083 update_visibility_by_resolution_info, function_and_variable_visibility,
15084 pass_data_ipa_function_and_variable_visibility,
15085 make_pass_ipa_function_and_variable_visibility,
15086 whole_program_function_and_variable_visibility,
15087 pass_data_ipa_whole_program_visibility,
15088 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
15089 * cgraph.h (cgraph_local_node_p): Declare.
15090 * ipa-visibility.c: New file.
15091 * Makefile.in (OBJS): Add ipa-visiblity.o
15092
15093 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15094
15095 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
15096 that var decl is available.
15097
15098 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15099
15100 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
15101 symtab_node pointer.
15102 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
15103 (find_decls_types_r): Do not walk COMDAT_GROUP.
15104 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
15105 * varasm.c (make_decl_one_only): Use set_comdat_group;
15106 create node if needed.
15107 * ipa-inline-transform.c (save_inline_function_body): Update
15108 way we decl->symtab mapping.
15109 * symtab.c (symtab_hash, hash_node, eq_node
15110 symtab_insert_node_to_hashtable): Remove.
15111 (symtab_register_node): Update.
15112 (symtab_unregister_node): Update.
15113 (symtab_get_node): Reimplement as inline function.
15114 (symtab_add_to_same_comdat_group): Update.
15115 (symtab_dissolve_same_comdat_group_list): Update.
15116 (dump_symtab_base): Update.
15117 (verify_symtab_base): Update.
15118 (symtab_make_decl_local): Update.
15119 (fixup_same_cpp_alias_visibility): Update.
15120 (symtab_nonoverwritable_alias): Update.
15121 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
15122 * ipa.c (update_visibility_by_resolution_info): UPdate.
15123 * bb-reorder.c: Include cgraph.h
15124 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
15125 with comdat groups.
15126 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
15127 * cgraph.c (cgraph_get_create_node): Update.
15128 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
15129 and comdat_group_.
15130 (symtab_get_node): Make inline.
15131 (symtab_insert_node_to_hashtable): Remove.
15132 (symtab_can_be_discarded): Update.
15133 (decl_comdat_group): New function.
15134 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
15135 Update.
15136 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
15137 comdat group name.
15138 (read_comdat_group): New function.
15139 (input_node, input_varpool_node): Use it.
15140 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
15141 comdat groups.
15142 * mips.c (mips_start_unique_function): Likewise.
15143 (ix86_code_end): Likewise.
15144 (rs6000_code_end): Likweise.
15145 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
15146
15147 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15148
15149 * gengtype-state.c (fatal_reading_state): Bring offline.
15150 * optabs.c (widening_optab_handler): Bring offline.
15151 * optabs.h (widening_optab_handler): Likewise.
15152 * final.c (get_attr_length_1): Likewise.
15153
15154 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
15155
15156 * sched-int.h (sd_iterator_cond): Manually tail recurse.
15157
15158 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15159
15160 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
15161 (ppc440-compare): Include shift with dot.
15162 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
15163 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
15164 without dot.
15165 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
15166 without dot.
15167 (e6500_sfx2): Include it.
15168 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
15169 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
15170 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
15171 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
15172 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
15173 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
15174 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
15175 *lshiftrt_internal1le, *lshiftrt_internal1be,
15176 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
15177 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
15178 *rotldi3_internal10le, *rotldi3_internal10be,
15179 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
15180 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
15181 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
15182 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
15183 define_insns): Use type "shift" in the appropriate alternatives.
15184
15185 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15186
15187 * config/rs6000/rs6000.md (type): Add "logical". Delete
15188 "fast_compare".
15189 (dot): Adjust comment.
15190 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
15191 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
15192 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
15193 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
15194 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
15195 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
15196 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
15197 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15198
15199 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15200 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15201 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15202 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15203 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15204 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15205 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15206 * config/rs6000/8540.md (ppc8540_su): Adjust.
15207 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15208 cell-cmp-microcoded): Adjust.
15209 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15210 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15211 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15212 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15213 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15214 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15215 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15216 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15217 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15218 Adjust.
15219 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15220 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
15221 Adjust. Adjust comment.
15222 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15223 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15224
15225 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15226
15227 * config/rs6000/rs6000.md (type): Add "add".
15228 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
15229 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
15230 define_insns): Use it.
15231 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
15232
15233 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15234 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
15235 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15236 * config/rs6000/601.md (ppc601-integer): Adjust.
15237 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15238 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15239 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15240 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15241 * config/rs6000/8540.md (ppc8540_su): Adjust.
15242 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15243 cell-cmp-microcoded): Adjust.
15244 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
15245 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15246 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
15247 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
15248 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
15249 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15250 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
15251 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
15252 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
15253 Adjust.
15254 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
15255 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
15256 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15257 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
15258
15259 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15260
15261 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
15262 "delayed_compare", "var_delayed_compare".
15263 (var_shift): New attribute.
15264 (cell_micro): Adjust.
15265 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
15266 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
15267 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
15268 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15269 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15270 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15271 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15272 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
15273 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
15274 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
15275 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
15276 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
15277 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
15278 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
15279 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
15280 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
15281 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
15282 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
15283 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
15284 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
15285 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
15286 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
15287 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
15288 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15289 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15290
15291 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
15292 * config/rs6000/440.md (ppc440-integer): Adjust.
15293 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
15294 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
15295 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
15296 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
15297 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
15298 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
15299 * config/rs6000/8540.md (ppc8540_su): Adjust.
15300 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
15301 cell-cmp-microcoded): Adjust.
15302 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
15303 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15304 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
15305 e500mc64_delayed): Adjust.
15306 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
15307 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
15308 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
15309 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
15310 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
15311 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
15312 power6-delayed-compare, power6-var-delayed-compare): Adjust.
15313 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
15314 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
15315 Adjust comment.
15316 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
15317 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15318
15319 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15320
15321 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
15322 (bits): New mode_attr.
15323 (idiv_ldiv): Delete mode_attr.
15324 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
15325 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15326 rs6000_adjust_priority, is_nonpipeline_insn,
15327 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15328
15329 * config/rs6000/40x.md (ppc403-idiv): Adjust.
15330 * config/rs6000/440.md (ppc440-idiv): Adjust.
15331 * config/rs6000/476.md (ppc476-idiv): Adjust.
15332 * config/rs6000/601.md (ppc601-idiv): Adjust.
15333 * config/rs6000/603.md (ppc603-idiv): Adjust.
15334 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
15335 ppc620-ldiv): Adjust.
15336 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
15337 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
15338 * config/rs6000/8540.md (ppc8540_divide): Adjust.
15339 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
15340 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
15341 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
15342 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
15343 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
15344 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
15345 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
15346 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
15347 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
15348 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
15349 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
15350 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
15351 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
15352 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
15353 * config/rs6000/titan.md (titan_fxu_div): Adjust.
15354
15355 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15356
15357 * config/rs6000/rs6000.md (type): Delete "insert_word",
15358 "insert_dword". Add "insert".
15359 (size): Update comment.
15360 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15361 insn_must_be_first_in_group): Adjust.
15362 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15363 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15364 *insvsi_internal6, insvdi_internal): Adjust.
15365
15366 * config/rs6000/40x.md (ppc403-integer): Adjust.
15367 * config/rs6000/440.md (ppc440-integer): Adjust.
15368 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
15369 * config/rs6000/601.md (ppc601-integer): Adjust.
15370 * config/rs6000/603.md (ppc603-integer): Adjust.
15371 * config/rs6000/6xx.md (ppc604-integer): Adjust.
15372 * config/rs6000/7450.md (ppc7450-integer): Adjust.
15373 * config/rs6000/7xx.md (ppc750-integer): Adjust.
15374 * config/rs6000/8540.md (ppc8540_su): Adjust.
15375 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
15376 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
15377 * config/rs6000/e500mc.md (e500mc_su): Adjust.
15378 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
15379 * config/rs6000/e5500.md (e5500_sfx): Adjust.
15380 * config/rs6000/e6500.md (e6500_sfx): Adjust.
15381 * config/rs6000/mpc.md (mpccore-integer): Adjust.
15382 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
15383 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
15384 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
15385 * config/rs6000/power7.md (power7-integer): Adjust.
15386 * config/rs6000/power8.md (power8-1cyc): Adjust.
15387 * config/rs6000/rs64.md (rs64a-integer): Adjust.
15388 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
15389
15390 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15391
15392 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
15393 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
15394 (size): New attribute.
15395 (dot): New attribute.
15396 (cell_micro): Adjust.
15397 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
15398 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
15399 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
15400 umuldi3_highpart): Adjust.
15401 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
15402 rs6000_adjust_priority, is_nonpipeline_insn,
15403 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
15404
15405 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
15406 ppc405-imul3): Adjust.
15407 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
15408 * config/rs6000/476.md (ppc476-imul): Adjust.
15409 * config/rs6000/601.md (ppc601-imul): Adjust.
15410 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
15411 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
15412 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
15413 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
15414 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
15415 Adjust.
15416 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
15417 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
15418 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
15419 cell-imul): Adjust.
15420 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
15421 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
15422 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
15423 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
15424 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
15425 * config/rs6000/mpc.md (mpccore-imul): Adjust.
15426 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
15427 power4-lmul, power4-imul, power4-imul3): Adjust.
15428 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
15429 power5-lmul, power5-imul, power5-imul3): Adjust.
15430 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
15431 power6-lmul, power6-imul, power6-imul3): Adjust.
15432 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
15433 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
15434
15435 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
15436 rs64a-lmul): Adjust.
15437 * config/rs6000/titan.md (titan_imul): Adjust.
15438
15439 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15440
15441 * config/rs6000/rs6000.md (type): Add new value "halfmul".
15442 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
15443 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
15444 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
15445 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
15446 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
15447 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
15448 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
15449 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
15450 * config/rs6000/titan.md: Delete nonsensical comment.
15451 (titan_imul): Add type imul3.
15452 (titan_mulhw): Remove type imul3; add type halfmul.
15453
15454 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
15455
15456 * config/rs6000/rs6000.md (type): Reorder, reformat.
15457
15458 2014-05-23 Martin Jambor <mjambor@suse.cz>
15459
15460 PR tree-optimization/53787
15461 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
15462 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
15463 analysis_done, update all uses.
15464 * ipa-prop.c: Include domwalk.h
15465 (param_analysis_info): Removed.
15466 (param_aa_status): New type.
15467 (ipa_bb_info): Likewise.
15468 (func_body_info): Likewise.
15469 (ipa_get_bb_info): New function.
15470 (aa_overwalked): Likewise.
15471 (find_dominating_aa_status): Likewise.
15472 (parm_bb_aa_status_for_bb): Likewise.
15473 (parm_preserved_before_stmt_p): Changed to use new param AA info.
15474 (load_from_unmodified_param): Accept func_body_info as a parameter
15475 instead of parms_ainfo.
15476 (parm_ref_data_preserved_p): Changed to use new param AA info.
15477 (parm_ref_data_pass_through_p): Likewise.
15478 (ipa_load_from_parm_agg_1): Likewise. Update callers.
15479 (compute_complex_assign_jump_func): Changed to use new param AA info.
15480 (compute_complex_ancestor_jump_func): Likewise.
15481 (ipa_compute_jump_functions_for_edge): Likewise.
15482 (ipa_compute_jump_functions): Removed.
15483 (ipa_compute_jump_functions_for_bb): New function.
15484 (ipa_analyze_indirect_call_uses): Likewise, moved variable
15485 declarations down.
15486 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
15487 and info, moved variable declarations down.
15488 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
15489 node and info.
15490 (ipa_analyze_stmt_uses): Likewise.
15491 (ipa_analyze_params_uses): Removed.
15492 (ipa_analyze_params_uses_in_bb): New function.
15493 (ipa_analyze_controlled_uses): Likewise.
15494 (free_ipa_bb_info): Likewise.
15495 (analysis_dom_walker): New class.
15496 (ipa_analyze_node): Handle node-specific forbidden analysis,
15497 initialize and free func_body_info, use dominator walker.
15498 (ipcp_modif_dom_walker): New class.
15499 (ipcp_transform_function): Create and free func_body_info, use
15500 ipcp_modif_dom_walker, moved a lot of functionality there.
15501
15502 2014-05-23 Marek Polacek <polacek@redhat.com>
15503 Jakub Jelinek <jakub@redhat.com>
15504
15505 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
15506 * gcc.c (sanitize_spec_function): Likewise.
15507 * convert.c (convert_to_integer): Include "ubsan.h". Add
15508 floating-point to integer instrumentation.
15509 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
15510 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
15511 SANITIZE_NONDEFAULT.
15512 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
15513 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
15514 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
15515 * ubsan.c: Include "realmpfr.h" and "dfp.h".
15516 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
15517 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
15518 float/double/long double.
15519 (ubsan_instrument_float_cast): New function.
15520 * ubsan.h (ubsan_instrument_float_cast): Declare.
15521
15522 2014-05-23 Jiong Wang <jiong.wang@arm.com>
15523
15524 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
15525 predicate.
15526 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
15527 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
15528 Adjust for tailcalling through registers.
15529 * config/aarch64/aarch64.h (enum reg_class): New caller save
15530 register class.
15531 (REG_CLASS_NAMES): Likewise.
15532 (REG_CLASS_CONTENTS): Likewise.
15533 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
15534 Allow tailcalling without decls.
15535
15536 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15537
15538 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15539 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
15540
15541 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
15542 gsi, and variables v_* to v*.
15543
15544 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
15545
15546 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
15547
15548 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15549
15550 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15551 * omp-low.c: Update accordingly.
15552
15553 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15554 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15555 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15556 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15557 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15558 GF_OMP_TARGET_KIND_UPDATE.
15559
15560 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15561 Explicitly enumerate the expected region types.
15562
15563 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15564
15565 PR other/56955
15566 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15567 documentation; the old documentation didn't clearly state the
15568 constraints on the contents of the pointed-to storage.
15569
15570 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15571
15572 Fix bootstrap error on ia64
15573 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15574 Return default value.
15575
15576 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15577
15578 PR tree-optimization/54733
15579 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15580 (CMPNOP): Define.
15581 (find_bswap_or_nop_load): New.
15582 (find_bswap_1): Renamed to ...
15583 (find_bswap_or_nop_1): This. Also add support for memory source.
15584 (find_bswap): Renamed to ...
15585 (find_bswap_or_nop): This. Also add support for memory source and
15586 detection of bitwise operations equivalent to load in target
15587 endianness.
15588 (execute_optimize_bswap): Likewise. Also move its leading comment back
15589 in place and split statement transformation into ...
15590 (bswap_replace): This.
15591
15592 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15593
15594 PR rtl-optimization/61215
15595 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15596 simplify_gen_subreg until final substitution.
15597
15598 2014-05-23 Alan Modra <amodra@gmail.com>
15599
15600 PR target/61231
15601 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15602 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15603 Use "Y" constraint rather than "m".
15604
15605 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15606
15607 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15608 define.
15609 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15610 New function declaration.
15611 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15612 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15613 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15614 (aarch64_init_builtins) : Initialize builtins
15615 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15616 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15617 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15618 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15619 and __builtins_aarch64_set_fpsr.
15620 (aarch64_atomic_assign_expand_fenv): New function.
15621 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15622 (get_fpcr) : Likewise.
15623 (set_fpsr) : Likewise.
15624 (get_fpsr) : Likewise.
15625 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15626 and UNSPECV_SET_FPSR.
15627 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15628 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15629 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15630
15631 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15632
15633 PR rtl-optimization/60969
15634 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15635 constraints. Set up mem cost for NO_REGS case.
15636
15637 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15638
15639 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15640
15641 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15642
15643 * config/darwin.c: Include "lto-section-names.h".
15644 (LTO_SEGMENT_NAME): Don't define.
15645 * config/i386/winnt.c: Include "lto-section-names.h".
15646 * lto-streamer.c: Include "lto-section-names.h".
15647 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15648 * lto-wrapper.c: Include "lto-section-names.h".
15649 (LTO_SECTION_NAME_PREFIX): Don't define.
15650 * lto-section-names.h: New file.
15651 * cgraphunit.c: Include "lto-section-names.h".
15652
15653 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15654
15655 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15656
15657 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15658
15659 PR target/61208
15660 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15661
15662 2014-05-22 Nick Clifton <nickc@redhat.com>
15663
15664 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15665
15666 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15667
15668 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15669 -> (T)A transformation to integer types.
15670
15671 2014-05-22 Teresa Johnson <tejohnson@google.com>
15672
15673 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15674 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15675 (gcov_rewrite): Use gcov_nonruntime_assert.
15676 (gcov_open): Ditto.
15677 (gcov_write_words): Ditto.
15678 (gcov_write_length): Ditto.
15679 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15680 gcc_assert from IN_LIBGCOV code.
15681 (gcov_read_summary): Use gcov_error to flag profile corruption.
15682 (gcov_sync): Use gcov_nonruntime_assert.
15683 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15684 (gcov_histo_index): Use gcov_nonruntime_assert.
15685 (static void gcov_histogram_merge): Ditto.
15686 (compute_working_sets): Ditto.
15687 * gcov-io.h (gcov_nonruntime_assert): Define.
15688 (gcov_error): Define for !IN_LIBGCOV
15689
15690 2014-05-22 Richard Biener <rguenther@suse.de>
15691
15692 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15693 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15694 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15695 and deallocation site.
15696 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15697 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15698 passing through the incoming points-to set.
15699 (handle_lhs_call): Use flags argument instead of recomputing it.
15700 (find_func_aliases_for_call): Call handle_lhs_call with proper
15701 call return flags.
15702
15703 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15704
15705 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15706 all padding bits in REAL_VALUE_TYPE are cleared.
15707
15708 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15709
15710 Cleanup and improve multipass_dfa_lookahead_guard
15711 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15712 (core2i7_first_cycle_multipass_begin,)
15713 (core2i7_first_cycle_multipass_issue,)
15714 (core2i7_first_cycle_multipass_backtrack): Update signature.
15715 * config/ia64/ia64.c
15716 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15717 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15718 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15719 hook definition.
15720 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15721 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15722 values.
15723 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15724 return values.
15725 * doc/tm.texi: Regenerate.
15726 * doc/tm.texi.in
15727 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15728 * haifa-sched.c (ready_try): Make signed to allow negative values.
15729 (rebug_ready_list_1): Update.
15730 (choose_ready): Simplify.
15731 (sched_extend_ready_list): Update.
15732
15733 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15734
15735 Remove IA64 speculation tweaking flags
15736 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15737 speculation tuning flags.
15738 (msched-prefer-non-data-spec-insns,)
15739 (msched-prefer-non-control-spec-insns): Obsolete options.
15740 * haifa-sched.c (choose_ready): Remove handling of
15741 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15742 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15743 and PREFER_NON_DATA_SPEC.
15744 * sel-sched.c (process_spec_exprs): Remove handling of
15745 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15746
15747 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15748
15749 Improve scheduling debug output
15750 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15751 (advance_one_cycle): Update.
15752 (schedule_insn, queue_to_ready): Add debug printouts.
15753 (debug_ready_list_1): New static function.
15754 (debug_ready_list): Update.
15755 (max_issue): Add debug printouts.
15756 (dump_insn_stream): New static function.
15757 (schedule_block): Use it. Also better indent printouts.
15758
15759 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15760
15761 Fix sched_insn debug counter
15762 * haifa-sched.c (schedule_insn): Update.
15763 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15764 (save_backtrack_point, restore_backtrack_point): Update.
15765 (first_nonscheduled_insn): New static function.
15766 (queue_to_ready, choose_ready): Use it.
15767 (schedule_block): Init nonscheduled_insns_begin.
15768 (sched_emit_insn): Update.
15769
15770
15771 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15772
15773 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15774 to GENERAL_REGS.
15775 (aarch64_secondary_reload) : LikeWise.
15776 (aarch64_class_max_nregs) : Remove CORE_REGS.
15777 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15778 (REG_CLASS_NAMES) : Likewise.
15779 (REG_CLASS_CONTENTS) : LikeWise.
15780 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15781
15782 2014-05-21 Guozhi Wei <carrot@google.com>
15783
15784 PR target/61202
15785 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15786 constraint.
15787 (vqdmulhq_n_s16): Likewise.
15788
15789 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15790
15791 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15792
15793 2014-05-21 Marek Polacek <polacek@redhat.com>
15794
15795 PR sanitizer/61272
15796 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15797
15798 2014-05-21 Martin Jambor <mjambor@suse.cz>
15799
15800 * doc/invoke.texi (Optimize Options): Document parameters
15801 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15802 ipa-cp-array-index-hint-bonus.
15803
15804 2014-05-21 Mark Wielaard <mjw@redhat.com>
15805
15806 PR debug/16063
15807 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15808 version >= 3 or not strict DWARF.
15809 * langhooks.h (struct lang_hooks_for_types): Add
15810 enum_underlying_base_type.
15811 * langhooks.c (lhd_enum_underlying_base_type): New function.
15812 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15813 enum_underlying_base_type.
15814 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15815 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15816 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15817
15818 2014-05-21 Richard Biener <rguenther@suse.de>
15819
15820 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15821
15822 2014-05-21 John Marino <gnugcc@marino.st>
15823
15824 * config.gcc (*-*-dragonfly*): New target.
15825 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15826 * configure: Regenerate.
15827 * config/dragonfly-stdint.h: New.
15828 * config/dragonfly.h: New.
15829 * config/dragonfly.opt: New.
15830 * config/i386/dragonfly.h: New.
15831 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15832
15833 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15834
15835 * tree.def (VOID_CST): New.
15836 * tree-core.h (TI_VOID): New.
15837 * tree.h (void_node): New.
15838 * tree.c (tree_node_structure_for_code, tree_code_size)
15839 (iterative_hash_expr): Handle VOID_CST.
15840 (build_common_tree_nodes): Initialize void_node.
15841
15842 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15843
15844 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15845 functions.
15846 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15847
15848 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15849 more places.
15850
15851 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15852 flag_reorder_blocks_and_partition.
15853 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15854
15855 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15856
15857 PR target/54236
15858 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15859 constraints.
15860 (*addc_r_t): Add new insn_and_split.
15861
15862 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15863
15864 PR middle-end/61252
15865 * omp-low.c (handle_simd_reference): New function.
15866 (lower_rec_input_clauses): Use it. Defer adding reference
15867 initialization even for reduction without placeholder if in simd,
15868 handle it properly later on.
15869
15870 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15871
15872 PR tree-optimization/60899
15873 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15874 assume all static symbols will have definition wile parsing and
15875 check the do have definition later in compilation; check that
15876 variable referring symbol will be output before concluding that
15877 reference is safe; be conservative for referring local statics;
15878 be more precise about when comdat is output in other partition.
15879
15880 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15881
15882 PR bootstrap/60984
15883 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15884 parameter.
15885 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15886 (ipa_inline): Loop inline_to_all_callers until no more aliases
15887 are removed.
15888
15889 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15890
15891 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15892 set writeonly flag only for vars actually written to.
15893
15894 2014-05-20 Dehao Chen <dehao@google.com>
15895
15896 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15897 and callee count to get clone count.
15898 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15899 count in copy_body.
15900
15901 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15902
15903 PR rtl-optimization/61243
15904 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15905
15906 2014-05-20 Xinliang David Li <davidxl@google.com>
15907
15908 * cgraphunit.c (walk_polymorphic_call_targets): Add
15909 dbgcnt and fopt-info support.
15910 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15911 * ipa-devirt.c (ipa_devirt): Ditto.
15912 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15913 * ipa.c (walk_polymorphic_call_targets): Ditto.
15914 * gimple-fold.c (fold_gimple_assign): Ditto.
15915 (gimple_fold_call): Ditto.
15916 * dbgcnt.def: New counter.
15917
15918 2014-05-20 DJ Delorie <dj@redhat.com>
15919
15920 * config/msp430/msp430.md (split): Don't allow subregs when
15921 splitting SImode adds.
15922 (andneghi): Fix subtraction logic.
15923 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15924
15925 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15926
15927 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15928 symbols.
15929 * except.c (switch_to_exception_section, resolve_unique_section,
15930 get_named_text_section, default_function_rodata_section,
15931 align_variable, get_block_for_decl, default_section_type_flags):
15932 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15933 * symtab.c (symtab_add_to_same_comdat_group,
15934 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15935 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15936 Likewise.
15937 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15938 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15939 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15940 (c6x_function_in_section_p): Likewise.
15941 * config/darwin.c (machopic_select_section): Likewise.
15942 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15943 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15944 * config/mep/mep.c (mep_select_section): LIkewise.
15945 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15946
15947 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15948
15949 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15950 EH region of calls to pure functions that can throw an exception.
15951 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15952 (copy_reference_ops_from_call): Also copy the EH region of the call if
15953 it can throw an exception.
15954
15955 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15956
15957 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15958 nested VEC_SELECTs that are inverses of each other.
15959
15960 2014-05-20 Richard Biener <rguenther@suse.de>
15961
15962 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15963 (extract_and_process_scc_for_name): not here.
15964 (cond_dom_walker::before_dom_children): Only process
15965 stmts that end the BB in interesting ways.
15966 (run_scc_vn): Mark param uses as visited.
15967
15968 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15969
15970 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15971 arm_restrict_it.
15972
15973 2014-05-20 Nick Clifton <nickc@redhat.com>
15974
15975 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15976 (msp430_gimplify_va_arg_expr): New function.
15977 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15978
15979 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15980 operand 0 in order to prevent confusion about the number of
15981 registers involved.
15982
15983 2014-05-20 Richard Biener <rguenther@suse.de>
15984
15985 PR tree-optimization/61221
15986 * tree-ssa-pre.c (el_to_update): Remove.
15987 (eliminate_dom_walker::before_dom_children): Handle released
15988 VDEFs by value-numbering them to the associated VUSE. Update
15989 stmt immediately for substituted call address.
15990 (eliminate): Remove delayed stmt updating code.
15991 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15992 possibly late re-numbered vuses.
15993 (vn_reference_lookup_2): Adjust.
15994 (vn_reference_lookup_pieces): Likewise.
15995 (vn_reference_lookup): Likewise.
15996
15997 2014-05-20 Richard Biener <rguenther@suse.de>
15998
15999 * config.gcc: Remove need_64bit_hwint.
16000 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
16001 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
16002 it to be true.
16003 * config.in: Regenerate.
16004 * configure: Likewise.
16005
16006 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
16007
16008 * doc/extend.texi: Create Label Attributes section,
16009 move all label attributes into it and reference it.
16010
16011 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
16012
16013 * arm.c (thumb1_reorg): When scanning backwards skip anything
16014 that's not a proper insn.
16015
16016 2014-05-19 Richard Biener <rguenther@suse.de>
16017
16018 PR tree-optimization/61221
16019 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16020 Do nothing for unreachable blocks.
16021 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
16022 Improve unreachability detection.
16023
16024 2014-05-19 Richard Biener <rguenther@suse.de>
16025
16026 PR tree-optimization/61209
16027 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
16028
16029 2014-05-19 Nick Clifton <nickc@redhat.com>
16030
16031 * except.c (init_eh): Fix computation of builtin setjmp buffer
16032 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
16033
16034 2014-05-19 Richard Biener <rguenther@suse.de>
16035
16036 PR tree-optimization/61184
16037 * tree-vrp.c (is_negative_overflow_infinity): Use
16038 TREE_OVERFLOW_P and do that check first.
16039 (is_positive_overflow_infinity): Likewise.
16040 (is_overflow_infinity): Likewise.
16041 (vrp_operand_equal_p): Properly treat operands with
16042 differing overflow as not equal.
16043
16044 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
16045
16046 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
16047 shift simplification where it was intended.
16048
16049 2014-05-19 Christian Bruel <christian.bruel@st.com>
16050
16051 PR target/61195
16052 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
16053
16054 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
16055
16056 PR target/61084
16057 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
16058 than wide_int.
16059
16060 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16061
16062 * reg-notes.def (CROSSING_JUMP): Likewise.
16063 * rtl.h (rtx_def): Update comment for jump flag.
16064 (CROSSING_JUMP_P): Define.
16065 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
16066 of a REG_CROSSING_JUMP note.
16067 * cfghooks.c (tidy_fallthru_edges): Likewise.
16068 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
16069 * emit-rtl.c (try_split): Likewise.
16070 * haifa-sched.c (sched_create_recovery_edges): Likewise.
16071 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
16072 * jump.c (redirect_jump_2): Likewise.
16073 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
16074 (relax_delay_slots): Likewise.
16075 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
16076 (bbit_di): Likewise.
16077 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
16078 * config/sh/sh.md (jump_compact): Likewise.
16079 * bb-reorder.c (rotate_loop): Likewise.
16080 (pass_duplicate_computed_gotos::execute): Likewise.
16081 (add_reg_crossing_jump_notes): Rename to...
16082 (update_crossing_jump_flags): ...this.
16083 (pass_partition_blocks::execute): Update accordingly.
16084
16085 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
16086
16087 * tree.h: Remove extraneous template <>.
16088
16089 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16090
16091 * ipa.c (symtab_remove_unreachable_nodes): Remove
16092 symbol from comdat group if its body was eliminated.
16093 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
16094 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
16095 (symtab_unregister_node): ... this one.
16096 (verify_symtab_base): More strict checking of comdats.
16097 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
16098
16099 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16100
16101 * tree-pass.h (make_pass_ipa_comdats): New pass.
16102 * timevar.def (TV_IPA_COMDATS): New timevar.
16103 * passes.def (pass_ipa_comdats): Add.
16104 * Makefile.in (OBJS): Add ipa-comdats.o
16105 * ipa-comdats.c: New file.
16106
16107 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16108
16109 * ipa.c (update_visibility_by_resolution_info): New function.
16110 (function_and_variable_visibility): Use it.
16111
16112 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
16113
16114 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
16115 New functions.
16116 (FOR_EACH_DEFINED_SYMBOL): New macro.
16117 (varpool_first_static_initializer, varpool_next_static_initializer,
16118 varpool_first_defined_variable, varpool_next_defined_variable):
16119 Fix comments.
16120 (symtab_in_same_comdat_p): Correctly deal with inline functions.
16121
16122 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16123
16124 * ggc-page.c (ggc_handle_finalizers): Add comment.
16125
16126 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16127
16128 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
16129 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
16130 (ggc_internal_cleared_alloc): Likewise.
16131 * ggc-page.c (finalizer): New class.
16132 (vec_finalizer): Likewise.
16133 (globals::finalizers): New member.
16134 (globals::vec_finalizers): Likewise.
16135 (ggc_internal_alloc): Record the finalizer if any for the block being
16136 allocated.
16137 (ggc_handle_finalizers): New function.
16138 (ggc_collect): Call ggc_handle_finalizers.
16139 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
16140 finalizer.
16141 (ggc_internal_cleared_alloc): Likewise.
16142 (finalize): New function.
16143 (need_finalization_p): Likewise.
16144 (ggc_alloc): Install the type's destructor as the finalizer if it
16145 might do something.
16146 (ggc_cleared_alloc): Likewise.
16147 (ggc_vec_alloc): Likewise.
16148 (ggc_cleared_vec_alloc): Likewise.
16149
16150 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16151
16152 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
16153
16154 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16155
16156 * alias.c (record_alias_subset): Adjust.
16157 * bitmap.c (bitmap_element_allocate): Likewise.
16158 (bitmap_gc_alloc_stat): Likewise.
16159 * cfg.c (init_flow): Likewise.
16160 (alloc_block): Likewise.
16161 (unchecked_make_edge): Likewise.
16162 * cfgloop.c (alloc_loop): Likewise.
16163 (flow_loops_find): Likewise.
16164 (rescan_loop_exit): Likewise.
16165 * cfgrtl.c (init_rtl_bb_info): Likewise.
16166 * cgraph.c (insert_new_cgraph_node_version): Likewise.
16167 (cgraph_allocate_node): Likewise.
16168 (cgraph_create_edge_1): Likewise.
16169 (cgraph_allocate_init_indirect_info): Likewise.
16170 * cgraphclones.c (cgraph_clone_edge): Likewise.
16171 * cgraphunit.c (add_asm_node): Likewise.
16172 (init_lowered_empty_function): Likewise.
16173 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
16174 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16175 (alpha_use_linkage): Likewise.
16176 * config/arc/arc.c (arc_init_machine_status): Likewise.
16177 * config/arm/arm.c (arm_init_machine_status): Likewise.
16178 * config/avr/avr.c (avr_init_machine_status): Likewise.
16179 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16180 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
16181 * config/cris/cris.c (cris_init_machine_status): Likewise.
16182 * config/darwin.c (machopic_indirection_name): Likewise.
16183 (darwin_build_constant_cfstring): Likewise.
16184 (darwin_enter_string_into_cfstring_table): Likewise.
16185 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
16186 * config/frv/frv.c (frv_init_machine_status): Likewise.
16187 * config/i386/i386.c (get_dllimport_decl): Likewise.
16188 (ix86_init_machine_status): Likewise.
16189 (assign_386_stack_local): Likewise.
16190 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16191 (i386_pe_maybe_record_exported_symbol): Likewise.
16192 (i386_pe_record_stub): Likewise.
16193 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16194 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16195 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16196 (m32c_note_pragma_address): Likewise.
16197 * config/mep/mep.c (mep_init_machine_status): Likewise.
16198 (mep_note_pragma_flag): Likewise.
16199 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16200 (mips16_local_alias): Likewise.
16201 (mips_init_machine_status): Likewise.
16202 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16203 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16204 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
16205 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
16206 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
16207 * config/pa/pa.c (pa_init_machine_status): Likewise.
16208 (pa_get_deferred_plabel): Likewise.
16209 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
16210 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16211 (rs6000_init_machine_status): Likewise.
16212 (output_toc): Likewise.
16213 * config/s390/s390.c (s390_init_machine_status): Likewise.
16214 * config/score/score.c (score_output_external): Likewise.
16215 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16216 * config/spu/spu.c (spu_init_machine_status): Likewise.
16217 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
16218 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
16219 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16220 * coverage.c (coverage_end_function): Likewise.
16221 * dbxout.c (dbxout_init): Likewise.
16222 * doc/gty.texi: Don't mention variable_size attribute.
16223 * dwarf2cfi.c (new_cfi): Adjust.
16224 (new_cfi_row): Likewise.
16225 (copy_cfi_row): Likewise.
16226 (create_cie_data): Likewise.
16227 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
16228 (new_loc_descr): Likewise.
16229 (find_AT_string_in_table): Likewise.
16230 (add_addr_table_entry): Likewise.
16231 (new_die): Likewise.
16232 (add_var_loc_to_decl): Likewise.
16233 (clone_die): Likewise.
16234 (clone_as_declaration): Likewise.
16235 (break_out_comdat_types): Likewise.
16236 (new_loc_list): Likewise.
16237 (add_loc_descr_to_each): Likewise.
16238 (add_location_or_const_value_attribute): Likewise.
16239 (add_linkage_name): Likewise.
16240 (lookup_filename): Likewise.
16241 (dwarf2out_var_location): Likewise.
16242 (new_line_info_table): Likewise.
16243 (dwarf2out_init): Likewise.
16244 (mem_loc_descriptor): Likewise.
16245 (loc_descriptor): Likewise.
16246 (add_const_value_attribute): Likewise.
16247 (tree_add_const_value_attribute): Likewise.
16248 (comp_dir_string): Likewise.
16249 (dwarf2out_vms_debug_main_pointer): Likewise.
16250 (string_cst_pool_decl): Likewise.
16251 * emit-rtl.c (set_mem_attrs): Likewise.
16252 (get_reg_attrs): Likewise.
16253 (start_sequence): Likewise.
16254 (init_emit): Likewise.
16255 (init_emit_regs): Likewise.
16256 * except.c (init_eh_for_function): Likewise.
16257 (gen_eh_region): Likewise.
16258 (gen_eh_region_catch): Likewise.
16259 (gen_eh_landing_pad): Likewise.
16260 (add_call_site): Likewise.
16261 * function.c (add_frame_space): Likewise.
16262 (insert_temp_slot_address): Likewise.
16263 (assign_stack_temp_for_type): Likewise.
16264 (get_hard_reg_initial_val): Likewise.
16265 (allocate_struct_function): Likewise.
16266 (prepare_function_start): Likewise.
16267 (types_used_by_var_decl_insert): Likewise.
16268 * gengtype.c (variable_size_p): Remove function.
16269 (enum alloc_quantity): Remove enum.
16270 (write_typed_alloc_def): Remove function.
16271 (write_typed_struct_alloc_def): Likewise.
16272 (write_typed_typedef_alloc_def): Likewise.
16273 (write_typed_alloc_defns): Likewise.
16274 (main): Adjust.
16275 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
16276 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
16277 * ggc.h (ggc_alloc): new function.
16278 (ggc_cleared_alloc): Likewise.
16279 (ggc_vec_alloc): Template on type of vector element, and remove
16280 element size argument.
16281 (ggc_cleared_vec_alloc): Likewise.
16282 * gimple.c (gimple_build_omp_for): Adjust.
16283 (gimple_copy): Likewise.
16284 * ipa-cp.c (get_replacement_map): Likewise.
16285 (find_aggregate_values_for_callers_subset): Likewise.
16286 (known_aggs_to_agg_replacement_list): Likewise.
16287 * ipa-devirt.c (get_odr_type): Likewise.
16288 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
16289 (read_agg_replacement_chain): Likewise.
16290 * loop-iv.c (get_simple_loop_desc): Likewise.
16291 * lto-cgraph.c (input_node_opt_summary): Likewise.
16292 * lto-section-in.c (lto_new_in_decl_state): Likewise.
16293 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16294 (input_eh_region): Likewise.
16295 (input_eh_lp): Likewise.
16296 (input_cfg): Likewise.
16297 * optabs.c (set_optab_libfunc): Likewise.
16298 (init_tree_optimization_optabs): Likewise.
16299 (set_conv_libfunc): Likewise.
16300 * passes.c (do_per_function_toporder): Likewise.
16301 * rtl.h: Don't use variable_size gty attribute.
16302 * sese.c (if_region_set_false_region): Adjust.
16303 * stringpool.c (gt_pch_save_stringpool): Likewise.
16304 * target-globals.c (save_target_globals): Likewise.
16305 * toplev.c (general_init): Likewise.
16306 * trans-mem.c (record_tm_replacement): Likewise.
16307 (split_bb_make_tm_edge): Likewise.
16308 * tree-cfg.c (move_sese_region_to_fn): Likewise.
16309 * tree-data-ref.h (lambda_vector_new): Likewise.
16310 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16311 * tree-iterator.c (tsi_link_before): Likewise.
16312 (tsi_link_after): Likewise.
16313 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16314 * tree-ssa-loop-niter.c (record_estimate): Likewise.
16315 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
16316 * tree-ssa-operands.h: Don't use variable_size gty attribute.
16317 * tree-ssa.c (init_tree_ssa): Adjust.
16318 * tree-ssanames.c (set_range_info): Likewise.
16319 (get_ptr_info): Likewise.
16320 (duplicate_ssa_name_ptr_info): Likewise.
16321 (duplicate_ssa_name_range_info): Likewise.
16322 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
16323 (unpack_ts_fixed_cst_value_fields): Likewise.
16324 * tree.c (build_fixed): Likewise.
16325 (build_real): Likewise.
16326 (build_string): Likewise.
16327 (decl_priority_info): Likewise.
16328 (decl_debug_expr_insert): Likewise.
16329 (decl_value_expr_insert): Likewise.
16330 (decl_debug_args_insert): Likewise.
16331 (type_hash_add): Likewise.
16332 (build_omp_clause): Likewise.
16333 * ubsan.c (decl_for_type_insert): Likewise.
16334 * varasm.c (get_unnamed_section): Likewise.
16335 (get_noswitch_section): Likewise.
16336 (get_section): Likewise.
16337 (get_block_for_section): Likewise.
16338 (create_block_symbol): Likewise.
16339 (build_constant_desc): Likewise.
16340 (create_constant_pool): Likewise.
16341 (force_const_mem): Likewise.
16342 (record_tm_clone_pair): Likewise.
16343 * varpool.c (varpool_create_empty_node): Likewise.
16344
16345 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
16346
16347 * dwarf2out.c (tree_add_const_value_attribute): Call
16348 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
16349 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
16350 instead of ggc_internal_<x>alloc_stat.
16351 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
16352 (ggc_realloc): Likewise.
16353 * ggc-none.c (ggc_internal_alloc): Likewise.
16354 (ggc_internal_cleared_alloc): Likewise.
16355 * ggc-page.c: Likewise.
16356 * ggc.h (ggc_internal_alloc_stat): Likewise.
16357 (ggc_internal_alloc): Remove macro.
16358 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
16359 (ggc_internal_cleared_alloc): Remove macro.
16360 (GGC_RESIZEVEC): Adjust.
16361 (ggc_resizevar): Remove macro.
16362 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
16363 (ggc_internal_cleared_vec_alloc_stat): Likewise.
16364 (ggc_internal_vec_cleared_alloc): Remove macro.
16365 (ggc_alloc_atomic_stat): Drop _stat suffix.
16366 (ggc_alloc_atomic): Remove macro.
16367 (ggc_alloc_cleared_atomic): Remove macro.
16368 (ggc_alloc_string_stat): Drop _stat suffix.
16369 (ggc_alloc_string): Remove macro.
16370 (ggc_alloc_rtx_def_stat): Adjust.
16371 (ggc_alloc_tree_node_stat): Likewise.
16372 (ggc_alloc_cleared_tree_node_stat): Likewise.
16373 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
16374 (ggc_alloc_cleared_simd_clone_stat): Likewise.
16375 * gimple.c (gimple_build_omp_for): Likewise.
16376 (gimple_copy): Likewise.
16377 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
16378 * toplev.c (realloc_for_line_map): Adjust.
16379 * tree-data-ref.h (lambda_vector_new): Likewise.
16380 * tree-phinodes.c (allocate_phi_node): Likewise.
16381 * tree.c (grow_tree_vec_stat): Likewise.
16382 * vec.h (va_gc::reserve): Adjust.
16383
16384 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
16385
16386 * config/microblaze/microblaze.c (break_handler): New Declaration.
16387 (microblaze_break_function_p,microblaze_is_break_handler): New.
16388 (compute_frame_size): Use microblaze_break_function_p.
16389 Add the test of break_handler.
16390 (microblaze_function_prologue) : Add the test of variable
16391 break_handler. Check the fnname by BREAK_HANDLER_NAME.
16392 (microblaze_function_epilogue) : Add the test of break_handler.
16393 (microblaze_globalize_label) : Add the test of break_handler.
16394 Check the name by BREAK_HANDLER_NAME.
16395
16396 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
16397
16398 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
16399 microblaze_is_break_handler test.
16400 (call_internal1,call_value_intern): Use microblaze_break_function_p.
16401 Use SYMBOL_REF_DECL.
16402
16403 * config/microblaze/microblaze-protos.h
16404 (microblaze_break_function_p,microblaze_is_break_handler):
16405 New Declaration.
16406
16407 * doc/extend.texi (MicroBlaze break_handler Functions): Document
16408 new MicroBlaze break_handler functions.
16409
16410 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16411
16412 * doc/extend.texi (Size of an asm): Move node text according
16413 to its @menu entry position.
16414
16415 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
16416
16417 PR tree-optimization/61140
16418 PR tree-optimization/61150
16419 PR tree-optimization/61197
16420 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
16421
16422 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
16423
16424 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
16425
16426 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
16427
16428 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
16429 __SIZEOF_INT128__ is defined.
16430
16431 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16432
16433 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
16434 (rs6000_delegitimize_address): Use it.
16435
16436 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
16437
16438 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
16439 inplace argument. Store the new address in the original MEM when true.
16440 * emit-rtl.c (change_address_1): Likewise.
16441 (adjust_address_1, adjust_automodify_address_1, offset_address):
16442 Update accordingly.
16443 * rtl.h (plus_constant): Add an inplace argument.
16444 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
16445 when true. Avoid generating (plus X (const_int 0)).
16446 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
16447 in-place. Pass true to plus_constant.
16448 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
16449
16450 2014-05-16 Dehao Chen <dehao@google.com>
16451
16452 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
16453
16454 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16455
16456 PR target/54089
16457 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
16458 patterns.
16459 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
16460
16461 2014-05-16 Dehao Chen <dehao@google.com>
16462
16463 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
16464 optimize_function_for_size_p.
16465 * regs.h (REG_FREQ_FROM_BB): Likewise.
16466
16467 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16468
16469 PR target/51244
16470 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
16471 negt_reg_operand cases.
16472 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
16473 predicate.
16474 * config/sh/predicates.md (cbranch_treg_value): Simplify.
16475
16476 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
16477
16478 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
16479 target variants.
16480
16481 2014-05-16 David Malcolm <dmalcolm@redhat.com>
16482
16483 Revert:
16484 2014-04-29 David Malcolm <dmalcolm@redhat.com>
16485
16486 * tree-cfg.c (dump_function_to_file): Dump the return type of
16487 functions, in a line to itself before the function body, mimicking
16488 the layout of a C function.
16489
16490 2014-05-16 Dehao Chen <dehao@google.com>
16491
16492 * cfghooks.c (make_forwarder_block): Use direct computation to
16493 get fall-through edge's count and frequency.
16494
16495 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
16496
16497 * config/arc/arc.c (arc_init): Fix typo in error message.
16498 * config/i386/i386.c (ix86_expand_builtin): Likewise.
16499 (split_stack_prologue_scratch_regno): Likewise.
16500 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
16501 word from error message.
16502
16503 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16504
16505 * ira-costs.c: Fix typo in comment.
16506
16507 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
16508
16509 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
16510
16511 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
16512
16513 * varpool.c (dump_varpool_node): Dump write-only flag.
16514 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
16515 write-only flag.
16516 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
16517 write-only variables.
16518 * ipa.c (process_references): New function.
16519 (set_readonly_bit): New function.
16520 (set_writeonly_bit): New function.
16521 (clear_addressable_bit): New function.
16522 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
16523 fix handling of aliases.
16524 * cgraph.h (struct varpool_node): Add writeonly flag.
16525
16526 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
16527
16528 PR rtl-optimization/60969
16529 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
16530 Calculate costs for this case.
16531
16532 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
16533
16534 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
16535 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
16536
16537 2014-05-16 Richard Biener <rguenther@suse.de>
16538
16539 PR tree-optimization/61194
16540 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
16541 bool patterns ending in a COND_EXPR.
16542
16543 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16544
16545 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
16546
16547 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16548
16549 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16550 where we were unable to cost an RTX.
16551
16552 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16553
16554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16555 HIGH, LO_SUM.
16556
16557 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16558 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16559
16560 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16561
16562 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16563 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16564
16565 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16566 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16567
16568 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16569 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16570
16571 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16572 operators.
16573
16574 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16575 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16576
16577 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16578 DIV/MOD.
16579
16580 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16581 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16582
16583 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16584 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16585
16586 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16587 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16588
16589 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16590 rotates and shifts.
16591
16592 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16593 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16594
16595 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16596 ZERO_EXTEND and SIGN_EXTEND better.
16597
16598 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16599 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16600
16601 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16602 logical operations.
16603
16604 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16605 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16606
16607 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16608 costs when costing loads and stores to memory.
16609
16610 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16611 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16612
16613 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16614 for SET RTX.
16615
16616 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16617
16618 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16619
16620 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16621 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16622
16623 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16624 to...
16625 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16626 well formed.
16627 (aarch64_rtx_mult_cost): New.
16628 (aarch64_rtx_costs): Use it, refactor as appropriate.
16629
16630 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16631 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16632
16633 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16634 emit instructions, return number of instructions which would
16635 be emitted.
16636 (aarch64_add_constant): Update call to aarch64_build_constant.
16637 (aarch64_output_mi_thunk): Likewise.
16638 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16639 a CONST_DOUBLE.
16640
16641 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16642
16643 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16644 (TARGET_RTX_COSTS): Call it.
16645
16646 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16647
16648 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16649 (cortexa57_vector_cost): Likewise.
16650 (cortexa57_tunings): Use them.
16651
16652 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16653
16654 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16655 (cpu_addrcost_table): Use it.
16656 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16657 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16658 move it.
16659
16660 2014-05-16 Richard Biener <rguenther@suse.de>
16661
16662 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16663 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16664 (visit_phi): Ignore edges marked as not executable.
16665 (class cond_dom_walker): New.
16666 (cond_dom_walker::before_dom_children): Value-number
16667 control statements and mark successor edges as not
16668 executable if possible.
16669 (run_scc_vn): First walk all control statements in
16670 dominator order, marking edges as not executable.
16671 * tree-inline.c (copy_edges_for_bb): Be not confused
16672 about random edge flags.
16673
16674 2014-05-16 Richard Biener <rguenther@suse.de>
16675
16676 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16677
16678 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16679
16680 PR target/61193
16681 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16682 (__TM_simple_begin): Use it.
16683 (__TM_begin): Likewise.
16684
16685 2014-05-15 Martin Jambor <mjambor@suse.cz>
16686
16687 PR ipa/61085
16688 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16689 type_preserved flag when the indirect edge is polymorphic.
16690
16691 2014-05-15 Martin Jambor <mjambor@suse.cz>
16692
16693 PR tree-optimization/61090
16694 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16695 build_ref_for_model.
16696
16697 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16698
16699 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16700 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16701
16702 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16703
16704 PR tree-optimization/61158
16705 * fold-const.c (fold_binary_loc): If X is zero-extended and
16706 shiftc >= prec, make sure zerobits is all ones instead of
16707 invoking undefined behavior.
16708
16709 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16710
16711 * regcprop.h: New file.
16712 * regcprop.c (skip_debug_insn_p): New decl.
16713 (replace_oldest_value_reg): Check skip_debug_insn_p.
16714 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16715 * shrink-wrap.c: Include regcprop.h.
16716 (prepare_shrink_wrap): Call
16717 copyprop_hardreg_forward_bb_without_debug_insn.
16718
16719 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16720
16721 * shrink-wrap.h: Update comment.
16722 * shrink-wrap.c: Update comment.
16723 (next_block_for_reg): Rename to live_edge_for_reg.
16724 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16725 (move_insn_for_shrink_wrap): Split live_edge.
16726 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16727
16728 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16729
16730 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16731 Delete.
16732 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16733 * config/sparc/sparc.md (fptype_ut699): New attribute.
16734 (in_branch_delay): Return false if -mfix-ut699 is specified and
16735 fptype_ut699 is set to single.
16736 (truncdfsf2): Add fptype_ut699 attribute.
16737 (fix_truncdfsi2): Likewise.
16738 (floatsisf2): Change fptype attribute.
16739 (fix_truncsfsi2): Likewise.
16740 (negtf2_notv9): Delete.
16741 (negtf2_v9): Likewise.
16742 (negtf2_hq): New instruction.
16743 (negtf2): New instruction and splitter.
16744 (negdf2_notv9): Rewrite.
16745 (abstf2_notv9): Delete.
16746 (abstf2_hq_v9): Likewise.
16747 (abstf2_v9): Likewise.
16748 (abstf2_hq): New instruction.
16749 (abstf2): New instruction and splitter.
16750 (absdf2_notv9): Rewrite.
16751
16752 2014-05-14 Cary Coutant <ccoutant@google.com>
16753
16754 PR debug/61013
16755 * opts.c (common_handle_option): Don't special-case "-g".
16756 (set_debug_level): Default to at least level 2 with "-g".
16757
16758 2014-05-14 DJ Delorie <dj@redhat.com>
16759
16760 * config/msp430/msp430.c (msp430_builtin): Add
16761 MSP430_BUILTIN_DELAY_CYCLES.
16762 (msp430_init_builtins): Register void __delay_cycles(long long).
16763 (msp430_builtin_decl): Add it.
16764 (cg_magic_constant): New.
16765 (msp430_expand_delay_cycles): New.
16766 (msp430_expand_builtin): Call it.
16767 (msp430_print_operand_raw): Change integer printing from "int" to
16768 HOST_WIDE_INT.
16769 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16770 (delay_cycles_start): New.
16771 (delay_cycles_end): New.
16772 (delay_cycles_32): New.
16773 (delay_cycles_32x): New.
16774 (delay_cycles_16): New.
16775 (delay_cycles_16x): New.
16776 (delay_cycles_2): New.
16777 (delay_cycles_1): New.
16778 * doc/extend.texi: Document __delay_cycles().
16779
16780 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16781
16782 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16783 length attribute computation.
16784
16785 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16786
16787 PR debug/61188
16788 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16789
16790 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16791
16792 PR target/61084
16793 * config/sparc/sparc.md: Fix types of low and high in DI constant
16794 splitter. Use gen_int_mode in some other splitters.
16795
16796 2014-05-14 Martin Jambor <mjambor@suse.cz>
16797
16798 PR ipa/60897
16799 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16800
16801 2014-05-14 James Norris <jnorris@codesourcery.com>
16802
16803 * omp-low.c (expand_parallel_call): Remove shadow variable.
16804 (expand_omp_taskreg): Likewise.
16805
16806 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16807
16808 * common/config/i386/i386-common.c
16809 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16810 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16811 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16812 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16813 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16814 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16815 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16816 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16817 xsavecintrin.h, xsavesintrin.h.
16818 (x86_64-*-*): Ditto.
16819 * config/i386/clflushoptintrin.h: New.
16820 * config/i386/xsavecintrin.h: Ditto.
16821 * config/i386/xsavesintrin.h: Ditto.
16822 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16823 (bit_XSAVES): Ditto.
16824 (bit_XSAVES): Ditto.
16825 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16826 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16827 -mno-clflushopt.
16828 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16829 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16830 OPTION_MASK_ISA_XSAVES.
16831 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16832 -mxsavec, -mxsaves.
16833 (PTA_CLFLUSHOPT) Define.
16834 (PTA_XSAVEC): Ditto.
16835 (PTA_XSAVES): Ditto.
16836 (ix86_option_override_internal): Handle new options.
16837 (ix86_valid_target_attribute_inner_p): Ditto.
16838 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16839 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16840 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16841 (bdesc_special_args): Add __builtin_ia32_xsaves,
16842 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16843 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16844 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16845 (ix86_expand_builtin): Handle new builtins.
16846 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16847 (TARGET_CLFLUSHOPT_P): Ditto.
16848 (TARGET_XSAVEC): Ditto.
16849 (TARGET_XSAVEC_P): Ditto.
16850 (TARGET_XSAVES): Ditto.
16851 (TARGET_XSAVES_P): Ditto.
16852 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16853 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16854 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16855 (ANY_XRSTOR): New.
16856 (ANY_XRSTOR64): Ditto.
16857 (xrstor): Ditto.
16858 (xrstor): Change into <xrstor>.
16859 (xrstor_rex64): Change into <xrstor>_rex64.
16860 (xrstor64): Change into <xrstor>64
16861 (clflushopt): New.
16862 * config/i386/i386.opt (mclflushopt): New.
16863 (mxsavec): Ditto.
16864 (mxsaves): Ditto.
16865 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16866 xsavecintrin.h.
16867 * doc/invoke.texi: Document new options.
16868
16869 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16870
16871 PR rtl-optimization/60866
16872 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16873 Default it to -1. Pass it down to init_simplejump_data.
16874 (init_simplejump_data): New parameter old_seqno. Pass it down
16875 to get_seqno_for_a_jump.
16876 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16877 initializing new jump seqno as a last resort. Add comment.
16878 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16879 jump and pass it down to sel_init_new_insn.
16880 (sel_redirect_edge_and_branch_force): Likewise.
16881
16882 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16883
16884 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16885 shifted values to avoid build warning.
16886
16887 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16888
16889 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16890 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16891 (cfg_layout_merge_blocks): Likewise.
16892 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16893
16894 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16895
16896 PR rtl-optimization/60901
16897 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16898 bb predecessor belongs to the same scheduling region. Adjust comment.
16899
16900 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16901
16902 * doc/sourcebuild.texi: (dfp_hw): Document.
16903 (p8vector_hw): Likewise.
16904 (powerpc_eabi_ok): Likewise.
16905 (powerpc_elfv2): Likewise.
16906 (powerpc_htm_ok): Likewise.
16907 (ppc_recip_hw): Likewise.
16908 (vsx_hw): Likewise.
16909
16910 2014-05-13 Cary Coutant <ccoutant@google.com>
16911
16912 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16913
16914 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16915
16916 * gengtype-parse.c (require3): Eliminate in favor of...
16917 (require4): New.
16918 (require_template_declaration): Update to support optional single *
16919 on a type.
16920
16921 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16922 (create_user_defined_type): Handle a single level of explicit
16923 pointerness within template arguments.
16924 (struct write_types_data): Add field "kind".
16925 (filter_type_name): Handle "*" character.
16926 (write_user_func_for_structure_ptr): Require a write_types_data
16927 rather than just a prefix string, so that we can look up the kind
16928 of the wtd and use it as an index into wrote_user_func_for_ptr,
16929 ensuring that such functions are written at most once. Support
16930 subclasses by invoking the marking function of the ultimate base class.
16931 (write_user_func_for_structure_body): Require a write_types_data
16932 rather than just a prefix string, so that we can pass this to
16933 write_user_func_for_structure_ptr.
16934 (write_func_for_structure): Likewise.
16935 (ggc_wtd): Add initializer of new "kind" field.
16936 (pch_wtd): Likewise.
16937
16938 * gengtype.h (enum write_types_kinds): New.
16939 (struct type): Add field wrote_user_func_for_ptr to the "s"
16940 union member.
16941
16942 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16943
16944 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16945 instead of const_binop.
16946 (fold_binary_loc): Likewise.
16947
16948 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16949
16950 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16951 calculation to match get_ref_base_and_extent.
16952
16953 2014-05-13 Catherine Moore <clm@codesourcery.com>
16954 Sandra Loosemore <sandra@codesourcery.com>
16955
16956 * configure.ac: Fix assembly for explicit JALR relocation check.
16957 * configure: Regenerate.
16958
16959 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16960
16961 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16962 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16963 Remove associated type declarations and initialisations.
16964 (arm_expand_neon_builtin): Likewise.
16965 (neon_emit_pair_result_insn): Delete.
16966 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16967 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16968 (neon_vzip<mode>): Likewise.
16969 (neon_vuzp<mode>): Likewise.
16970
16971 2014-05-13 Richard Biener <rguenther@suse.de>
16972
16973 PR ipa/60973
16974 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16975 it needs revisiting whether the call still may be tail-called.
16976
16977 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16978
16979 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16980 * rtl.h (block_symbol): Reduce number of fields to 2.
16981 (rtx_def): Add u2.symbol_ref_flags.
16982 (SYMBOL_REF_FLAGS): Use it.
16983 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16984 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16985 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16986 Lower index of SYMBOL_REF_DATA.
16987 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16988 Print SYMBOL_REF_FLAGS at the same time.
16989 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16990
16991 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16992
16993 * rtl.def (VAR_LOCATION): Remove "i" field.
16994 * rtl.h (rtx_def): Add u2.var_location_status.
16995 (PAT_VAR_LOCATION_STATUS): Use it.
16996 (gen_rtx_VAR_LOCATION): Declare.
16997 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16998 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16999 * var-tracking.c (emit_note_insn_var_location): Remove casts.
17000
17001 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17002
17003 * rtl.def (scratch): Fix outdated comment and remove "0" field.
17004 * gengtype.c (adjust_field_rtx_def): Update accordingly.
17005
17006 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17007
17008 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
17009 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
17010 * rtl.h (rtx_def): Add insn_uid to u2 field.
17011 (RTX_FLAG_CHECK8): Delete in favor of...
17012 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
17013 (INSN_DELETED_P): Update accordingly.
17014 (INSN_UID): Use u2.insn_uid.
17015 (INSN_CHAIN_CODE_P): Define.
17016 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
17017 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
17018 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
17019 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
17020 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
17021 indices accordingly.
17022 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
17023 Update indices for insn-chain rtxes.
17024 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
17025 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
17026 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
17027 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
17028 * combine.c (try_combine): Likewise.
17029 * ira.c (setup_prohibited_mode_move_regs): Likewise.
17030
17031 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17032
17033 * rtl.def (REG): Remove middle field.
17034 * rtl.h (rtx_def): Add orignal_regno to u2.
17035 (ORIGINAL_REGNO): Use it instead of field 1.
17036 (REG_ATTRS): Lower field index accordingly.
17037 * gengtype.c (adjust_field_rtx_def): Remove handling of
17038 ORIGINAL_REGNO. Move REG_ATTRS index down.
17039 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
17040 code that prints the REGNO.
17041
17042 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17043
17044 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
17045 GENERATOR_FILE.
17046
17047 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
17048
17049 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
17050
17051 2014-05-13 Bin Cheng <bin.cheng@arm.com>
17052
17053 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
17054 (alloc_iv): Lower base expressions containing ADDR_EXPR.
17055
17056 2014-05-13 Ian Bolton <ian.bolton@arm.com>
17057
17058 * config/aarch64/aarch64-protos.h
17059 (aarch64_hard_regno_caller_save_mode): New prototype.
17060 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
17061 New function.
17062 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
17063
17064 2014-05-13 Christian Bruel <christian.bruel@st.com>
17065
17066 * target.def (mode_switching): New hook vector.
17067 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
17068 (mode_exit, modepriority_to_mode): Likewise.
17069 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
17070 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17071 * target.h: Include tm.h and hard-reg-set.h.
17072 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
17073 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
17074 * doc/tm.texi Regenerate.
17075 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
17076 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17077 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
17078 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
17079 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
17080 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17081 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
17082 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
17083 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
17084 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
17085 (ix86_emit_mode_set): Hookify.
17086 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
17087 Delete.
17088 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
17089 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
17090 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
17091 (epiphany_mode_priority_to_mode): Remove declaration.
17092 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
17093 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
17094 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
17095 Likewise.
17096 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
17097 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
17098 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
17099
17100 2014-05-13 Jakub Jelinek <jakub@redhat.com>
17101
17102 PR target/61060
17103 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
17104 is const0_rtx, return immediately. Don't test count == 0 when
17105 it is always true.
17106
17107 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
17108
17109 * Makefile.in: add shrink-wrap.o.
17110 * config/i386/i386.c: include "shrink-wrap.h"
17111 * function.c: Likewise.
17112 (requires_stack_frame_p, next_block_for_reg,
17113 move_insn_for_shrink_wrap, prepare_shrink_wrap,
17114 dup_block_and_redirect): Move to shrink-wrap.c
17115 (thread_prologue_and_epilogue_insns): Extract three code segments
17116 as functions in shrink-wrap.c
17117 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
17118 shrink-wrap.h
17119 * shrink-wrap.c: New file.
17120 * shrink-wrap.h: New file.
17121
17122 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
17123
17124 * doc/extend.texi: Reflect current numbers of pragmas. Remove
17125 reference to Solaris.
17126
17127 2014-05-12 Mike Stump <mikestump@comcast.net>
17128
17129 PR other/31778
17130 * genattrtab.c (filename): Add.
17131 (convert_set_attr_alternative): Improve error message.
17132 (check_defs): Restore read_md_filename for error messages.
17133 (gen_insn): Save filename.
17134
17135 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
17136
17137 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
17138 -fno-local-ivars and -fivar-visibility.
17139 * c-family/c.opt: Make -Wshadow also implicitly enable
17140 -Wshadow-ivar.
17141
17142 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
17143
17144 * doc/tm.texi: Remove reference to deleted macro.
17145 * doc/tm.texi.in: Likewise.
17146
17147 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17148
17149 PR target/60991
17150 * config/avr/avr.c (avr_out_store_psi): Use correct constant
17151 to restore Y.
17152
17153 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
17154
17155 PR libgcc/61152
17156 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
17157 * config/arm/aout.h (License): Same.
17158 * config/arm/bpabi.h (License): Same.
17159 * config/arm/elf.h (License): Same.
17160 * config/arm/linux-elf.h (License): Same.
17161 * config/arm/linux-gas.h (License): Same.
17162 * config/arm/netbsd-elf.h (License): Same.
17163 * config/arm/uclinux-eabi.h (License): Same.
17164 * config/arm/uclinux-elf.h (License): Same.
17165 * config/arm/vxworks.h (License): Same.
17166
17167 2014-05-11 Jakub Jelinek <jakub@redhat.com>
17168
17169 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
17170 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
17171 number of operands to 3.
17172 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
17173 * tree-nested.c (convert_nonlocal_omp_clauses,
17174 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
17175 * gimplify.c (gimplify_scan_omp_clauses): Handle
17176 OMP_CLAUSE_LINEAR_STMT.
17177 * omp-low.c (lower_rec_input_clauses): Fix typo.
17178 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
17179 cast between Fortran boolean_type_node and C _Bool if
17180 needed.
17181
17182 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
17183
17184 PR tree-optimization/61136
17185 * wide-int.h (multiple_of_p): Define a version that doesn't return
17186 the quotient.
17187 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
17188 integer_zerop/const_binop pair.
17189 (multiple_of_p): Likewise, converting both operands to widest_int
17190 precision.
17191
17192 2014-05-09 Teresa Johnson <tejohnson@google.com>
17193
17194 * cgraphunit.c (analyze_functions): Use correct dump file.
17195
17196 2014-05-09 Florian Weimer <fweimer@redhat.com>
17197
17198 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
17199 expand_used_vars.
17200 (stack_protect_return_slot_p): New function.
17201 (expand_used_vars): Call stack_protect_decl_p and
17202 stack_protect_return_slot_p for -fstack-protector-strong.
17203
17204 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
17205 Andrew Haley <aph@redhat.com>
17206 Richard Sandiford <rdsandiford@googlemail.com>
17207
17208 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
17209 pages.
17210
17211 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
17212
17213 PR middle-end/61111
17214 * fold-const.c (fold_binary_loc): Changed width of mask.
17215
17216 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17217
17218 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
17219 unsigned int initializers for regno_in, regno_out.
17220
17221 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
17222
17223 PR target/61055
17224 * config/avr/avr.md (cc): Add new attribute set_vzn.
17225 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
17226 Set cc insn attribute to set_vzn instead of set_zn for alternatives
17227 with INC, DEC or NEG.
17228 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
17229 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
17230 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
17231
17232 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17233
17234 Revert:
17235 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17236
17237 * wide-int.cc (UTItype): Define.
17238 (UDWtype): Define for appropriate W_TYPE_SIZE.
17239
17240 2014-05-09 Richard Biener <rguenther@suse.de>
17241
17242 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
17243 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
17244 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
17245 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
17246 ssa_propagate): Adjust.
17247
17248 2014-05-08 Jeff Law <law@redhat.com>
17249
17250 PR tree-optimization/61009
17251 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
17252 tri-state rather than a boolean. When a block is too big to
17253 thread through, inform caller via negative return value.
17254 (thread_across_edge): If a block was too big for normal threading,
17255 then it's too big for a joiner too, so remove temporary equivalences
17256 and return immediately.
17257
17258 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17259 Matthias Klose <doko@ubuntu.com>
17260
17261 PR driver/61106
17262 * optc-gen.awk: Fix option handling for -Wunused-parameter.
17263
17264 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17265
17266 PR target/59952
17267 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
17268
17269 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
17270
17271 PR target/61092
17272 * config/alpha/alpha.c: Include gimple-iterator.h.
17273 (alpha_gimple_fold_builtin): New function. Move
17274 ALPHA_BUILTIN_UMULH folding from ...
17275 (alpha_fold_builtin): ... here.
17276 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
17277
17278 2014-05-08 Wei Mi <wmi@google.com>
17279
17280 PR target/58066
17281 * config/i386/i386.c (ix86_compute_frame_layout): Update
17282 preferred_stack_boundary for call, expanded from tls descriptor.
17283 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
17284 to depend on SP register.
17285 (*tls_local_dynamic_base_32_gnu): Ditto.
17286 (*tls_local_dynamic_32_once): Ditto.
17287 (tls_global_dynamic_64_<mode>): Set
17288 ix86_tls_descriptor_calls_expanded_in_cfun.
17289 (tls_local_dynamic_base_64_<mode>): Ditto.
17290 (tls_global_dynamic_32): Set
17291 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
17292 to depend on SP register.
17293 (tls_local_dynamic_base_32): Ditto.
17294
17295 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17296
17297 * config/arm/arm_neon.h: Update comment.
17298 * config/arm/neon-docgen.ml: Delete.
17299 * config/arm/neon-gen.ml: Delete.
17300 * doc/arm-neon-intrinsics.texi: Update comment.
17301
17302 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17303
17304 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
17305 and v4sf versions.
17306 (vand, vorr, veor, vorn, vbic): Remove.
17307 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
17308 iterator.
17309 (neon_vsub_unspec): Likewise.
17310 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
17311
17312 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17313
17314 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
17315 (vadd_s16): Likewise.
17316 (vadd_s32): Likewise.
17317 (vadd_f32): Likewise.
17318 (vadd_u8): Likewise.
17319 (vadd_u16): Likewise.
17320 (vadd_u32): Likewise.
17321 (vadd_s64): Likewise.
17322 (vadd_u64): Likewise.
17323 (vaddq_s8): Likewise.
17324 (vaddq_s16): Likewise.
17325 (vaddq_s32): Likewise.
17326 (vaddq_s64): Likewise.
17327 (vaddq_f32): Likewise.
17328 (vaddq_u8): Likewise.
17329 (vaddq_u16): Likewise.
17330 (vaddq_u32): Likewise.
17331 (vaddq_u64): Likewise.
17332 (vmul_s8): Likewise.
17333 (vmul_s16): Likewise.
17334 (vmul_s32): Likewise.
17335 (vmul_f32): Likewise.
17336 (vmul_u8): Likewise.
17337 (vmul_u16): Likewise.
17338 (vmul_u32): Likewise.
17339 (vmul_p8): Likewise.
17340 (vmulq_s8): Likewise.
17341 (vmulq_s16): Likewise.
17342 (vmulq_s32): Likewise.
17343 (vmulq_f32): Likewise.
17344 (vmulq_u8): Likewise.
17345 (vmulq_u16): Likewise.
17346 (vmulq_u32): Likewise.
17347 (vsub_s8): Likewise.
17348 (vsub_s16): Likewise.
17349 (vsub_s32): Likewise.
17350 (vsub_f32): Likewise.
17351 (vsub_u8): Likewise.
17352 (vsub_u16): Likewise.
17353 (vsub_u32): Likewise.
17354 (vsub_s64): Likewise.
17355 (vsub_u64): Likewise.
17356 (vsubq_s8): Likewise.
17357 (vsubq_s16): Likewise.
17358 (vsubq_s32): Likewise.
17359 (vsubq_s64): Likewise.
17360 (vsubq_f32): Likewise.
17361 (vsubq_u8): Likewise.
17362 (vsubq_u16): Likewise.
17363 (vsubq_u32): Likewise.
17364 (vsubq_u64): Likewise.
17365 (vand_s8): Likewise.
17366 (vand_s16): Likewise.
17367 (vand_s32): Likewise.
17368 (vand_u8): Likewise.
17369 (vand_u16): Likewise.
17370 (vand_u32): Likewise.
17371 (vand_s64): Likewise.
17372 (vand_u64): Likewise.
17373 (vandq_s8): Likewise.
17374 (vandq_s16): Likewise.
17375 (vandq_s32): Likewise.
17376 (vandq_s64): Likewise.
17377 (vandq_u8): Likewise.
17378 (vandq_u16): Likewise.
17379 (vandq_u32): Likewise.
17380 (vandq_u64): Likewise.
17381 (vorr_s8): Likewise.
17382 (vorr_s16): Likewise.
17383 (vorr_s32): Likewise.
17384 (vorr_u8): Likewise.
17385 (vorr_u16): Likewise.
17386 (vorr_u32): Likewise.
17387 (vorr_s64): Likewise.
17388 (vorr_u64): Likewise.
17389 (vorrq_s8): Likewise.
17390 (vorrq_s16): Likewise.
17391 (vorrq_s32): Likewise.
17392 (vorrq_s64): Likewise.
17393 (vorrq_u8): Likewise.
17394 (vorrq_u16): Likewise.
17395 (vorrq_u32): Likewise.
17396 (vorrq_u64): Likewise.
17397 (veor_s8): Likewise.
17398 (veor_s16): Likewise.
17399 (veor_s32): Likewise.
17400 (veor_u8): Likewise.
17401 (veor_u16): Likewise.
17402 (veor_u32): Likewise.
17403 (veor_s64): Likewise.
17404 (veor_u64): Likewise.
17405 (veorq_s8): Likewise.
17406 (veorq_s16): Likewise.
17407 (veorq_s32): Likewise.
17408 (veorq_s64): Likewise.
17409 (veorq_u8): Likewise.
17410 (veorq_u16): Likewise.
17411 (veorq_u32): Likewise.
17412 (veorq_u64): Likewise.
17413 (vbic_s8): Likewise.
17414 (vbic_s16): Likewise.
17415 (vbic_s32): Likewise.
17416 (vbic_u8): Likewise.
17417 (vbic_u16): Likewise.
17418 (vbic_u32): Likewise.
17419 (vbic_s64): Likewise.
17420 (vbic_u64): Likewise.
17421 (vbicq_s8): Likewise.
17422 (vbicq_s16): Likewise.
17423 (vbicq_s32): Likewise.
17424 (vbicq_s64): Likewise.
17425 (vbicq_u8): Likewise.
17426 (vbicq_u16): Likewise.
17427 (vbicq_u32): Likewise.
17428 (vbicq_u64): Likewise.
17429 (vorn_s8): Likewise.
17430 (vorn_s16): Likewise.
17431 (vorn_s32): Likewise.
17432 (vorn_u8): Likewise.
17433 (vorn_u16): Likewise.
17434 (vorn_u32): Likewise.
17435 (vorn_s64): Likewise.
17436 (vorn_u64): Likewise.
17437 (vornq_s8): Likewise.
17438 (vornq_s16): Likewise.
17439 (vornq_s32): Likewise.
17440 (vornq_s64): Likewise.
17441 (vornq_u8): Likewise.
17442 (vornq_u16): Likewise.
17443 (vornq_u32): Likewise.
17444 (vornq_u64): Likewise.
17445
17446 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17447
17448 * wide-int.cc (UTItype): Define.
17449 (UDWtype): Define for appropriate W_TYPE_SIZE.
17450
17451 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
17452
17453 PR tree-optimization/59100
17454 * tree-ssa-phiopt.c: Include tree-inline.h.
17455 (neutral_element_p, absorbing_element_p): New functions.
17456 (value_replacement): Handle conditional binary operations with a
17457 neutral or absorbing element.
17458
17459 2014-05-08 Richard Biener <rguenther@suse.de>
17460
17461 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
17462 folding the expression.
17463 (valueize_expr): Remove.
17464 (visit_reference_op_load): Do not valueize the result of
17465 vn_get_expr_for.
17466 (simplify_binary_expression): Likewise.
17467 (simplify_unary_expression): Likewise.
17468
17469 2014-05-08 Richard Biener <rguenther@suse.de>
17470
17471 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
17472 looking at TYPE_ARG_TYPES.
17473
17474 2014-05-08 Richard Biener <rguenther@suse.de>
17475
17476 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17477 pointer propagation special-case.
17478
17479 2014-05-08 Bin Cheng <bin.cheng@arm.com>
17480
17481 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
17482 core part of address expressions.
17483
17484 2014-05-08 Alan Modra <amodra@gmail.com>
17485
17486 PR target/60737
17487 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
17488 loads and stores when -mno-strict-align at any alignment.
17489 (expand_block_clear): Similarly. Also correct calculation of
17490 instruction count.
17491
17492 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
17493
17494 PR middle-end/39246
17495 * tree-complex.c (expand_complex_move): Keep line info when expanding
17496 complex move.
17497 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
17498 of complex expression. Use new argument to display correct location
17499 for values coming from phi statement.
17500 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
17501 (warn_uninitialized_phi): Pass location of phi argument to
17502 warn_uninit.
17503 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
17504 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
17505
17506 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17507
17508 * config/rs6000/predicates.md (indexed_address_mem): New.
17509 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
17510 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
17511 fpstore_ux, fpstore_u.
17512 (sign_extend, indexed, update): New.
17513 (cell_micro): Adjust.
17514 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
17515 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
17516 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
17517 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
17518 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
17519 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
17520 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
17521 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
17522 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
17523 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
17524 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
17525 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
17526 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
17527 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
17528 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
17529
17530 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
17531 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
17532 *vsx_extract_<mode>_store): Adjust.
17533 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
17534 is_cracked_insn, insn_must_be_first_in_group,
17535 insn_must_be_last_in_group): Adjust.
17536
17537 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
17538 Adjust.
17539 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
17540 ppc440-fpstore): Adjust.
17541 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
17542 ppc476-fpstore): Adjust.
17543 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
17544 ppc601-fpstore): Adjust.
17545 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
17546 Adjust.
17547 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17548 Adjust.
17549 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17550 ppc7450-fpstore): Adjust.
17551 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17552 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17553 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17554 Adjust.
17555 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17556 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17557 cell-fpstore, cell-fpstore-update): Adjust.
17558 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17559 ppce300c3_store, ppce300c3_fpstore): Adjust.
17560 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17561 e500mc_fpstore): Adjust.
17562 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17563 e500mc64_store, e500mc64_fpstore): Adjust.
17564 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17565 e5500_fpstore): Adjust.
17566 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17567 e6500_fpstore): Adjust.
17568 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17569 Adjust.
17570 * config/rs6000/power4.md (power4-load, power4-load-ext,
17571 power4-load-ext-update, power4-load-ext-update-indexed,
17572 power4-load-update-indexed, power4-load-update, power4-fpload,
17573 power4-fpload-update, power4-store, power4-store-update,
17574 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17575 Adjust.
17576 * config/rs6000/power5.md (power5-load, power5-load-ext,
17577 power5-load-ext-update, power5-load-ext-update-indexed,
17578 power5-load-update-indexed, power5-load-update, power5-fpload,
17579 power5-fpload-update, power5-store, power5-store-update,
17580 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17581 Adjust.
17582 * config/rs6000/power6.md (power6-load, power6-load-ext,
17583 power6-load-update, power6-load-update-indexed,
17584 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17585 power6-fpload-update, power6-store, power6-store-update,
17586 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17587 Adjust.
17588 * config/rs6000/power7.md (power7-load, power7-load-ext,
17589 power7-load-update, power7-load-update-indexed,
17590 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17591 power7-fpload-update, power7-store, power7-store-update,
17592 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17593 Adjust.
17594 * config/rs6000/power8.md (power8-load, power8-load-update,
17595 power8-load-ext, power8-load-ext-update, power8-fpload,
17596 power8-fpload-update, power8-store, power8-store-update-indexed,
17597 power8-fpstore, power8-fpstore-update): Adjust.
17598 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17599 Adjust.
17600 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17601 titan_lsu_store, titan_lsu_fpstore): Adjust.
17602 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17603
17604 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17605
17606 PR target/60884
17607 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17608 unrolled byte insns. Emit address increments after move insns.
17609
17610 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17611
17612 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17613 const_gimple, rather than a gimple.
17614 (gimple_call_builtin_p): Likewise, for the three variants.
17615
17616 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17617 (gimple_call_builtin_p): Likewise, for the three variants.
17618
17619 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17620
17621 PR tree-optimization/61095
17622 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17623
17624 2014-05-07 Richard Biener <rguenther@suse.de>
17625
17626 PR tree-optimization/61034
17627 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17628 (maybe_skip_until): Use translate to take into account
17629 lattices when trying to do disambiguations.
17630 (get_continuation_for_phi_1): Likewise.
17631 (get_continuation_for_phi): Adjust for added translate arguments.
17632 (walk_non_aliased_vuses): Likewise.
17633 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17634 (walk_non_aliased_vuses): Likewise.
17635 (call_may_clobber_ref_p_1): Declare.
17636 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17637 calls. Stop early if we are only supposed to disambiguate.
17638 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17639
17640 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17641
17642 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17643 Emit an error when the function has arguments.
17644
17645 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17646
17647 * cfgloop.h (unswitch_loops): Remove.
17648 * doc/passes.texi: Remove references to loop-unswitch.c
17649 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17650
17651 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17652
17653 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17654 check for loads group of length 3.
17655 (vect_permute_load_chain): New permutations for loads group of
17656 length 3.
17657 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17658 of vec_perm_shuffle for the new permutations.
17659
17660 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17661
17662 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17663 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17664 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17665 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17666 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17667 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17668 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17669 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17670
17671 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17672
17673 * loop-unswitch.c: Delete.
17674
17675 2014-05-07 Richard Biener <rguenther@suse.de>
17676
17677 * config.gcc: Always set need_64bit_hwint to yes.
17678
17679 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17680
17681 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17682 of using optimize_size.
17683
17684 2014-05-06 Mike Stump <mikestump@comcast.net>
17685
17686 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17687
17688 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17689
17690 * config/i386/sse.md (*mov<mode>_internal)
17691 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17692 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17693 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17694 (*<code><mode>3, *andnot<mode>3<mask_name>)
17695 (<mask_codefor><code><mode>3<mask_name>): Only consider
17696 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17697
17698 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17699
17700 Revert:
17701 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17702
17703 * lra-constraints.c (valid_address_p): Move earlier in file.
17704 Add a constraint argument to the address_info version.
17705 (satisfies_memory_constraint_p): New function.
17706 (satisfies_address_constraint_p): Likewise.
17707 (process_alt_operands, curr_insn_transform): Use them.
17708 (process_address): Pass the constraint to valid_address_p when
17709 checking address operands.
17710
17711 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17712
17713 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17714 to their respective blocks. Fix inadvertent use of "node".
17715
17716 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17717
17718 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17719 out from...
17720 (init_emit_once): ...here.
17721 * rtl.h (init_derived_machine_modes): Declare.
17722 * toplev.c (do_compile): Call it even if no_backend.
17723
17724 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17725 Mike Stump <mikestump@comcast.net>
17726 Richard Sandiford <rdsandiford@googlemail.com>
17727 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17728
17729 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17730 (rtx_equal_for_memref_p): Update comment.
17731 (adjust_offset_for_component_ref): Use wide-int interfaces.
17732 * builtins.c (get_object_alignment_2): Likewise.
17733 (c_readstr): Likewise.
17734 (target_char_cast): Add comment.
17735 (determine_block_size): Use wide-int interfaces.
17736 (expand_builtin_signbit): Likewise.
17737 (fold_builtin_int_roundingfn): Likewise.
17738 (fold_builtin_bitop): Likewise.
17739 (fold_builtin_bswap): Likewise.
17740 (fold_builtin_logarithm): Use signop.
17741 (fold_builtin_pow): Likewise.
17742 (fold_builtin_memory_op): Use wide-int interfaces.
17743 (fold_builtin_object_size): Likewise.
17744 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17745 nb_iterations_estimate.
17746 (record_niter_bound): Use wide-int interfaces.
17747 (get_estimated_loop_iterations_int): Likewise.
17748 (get_estimated_loop_iterations): Likewise.
17749 (get_max_loop_iterations): Likewise.
17750 * cfgloop.h: Include wide-int.h.
17751 (struct nb_iter_bound): Change bound to widest_int.
17752 (struct loop): Change nb_iterations_upper_bound and
17753 nb_iterations_estimate to widest_int.
17754 (record_niter_bound): Switch to use widest_int.
17755 (get_estimated_loop_iterations): Likewise.
17756 (get_max_loop_iterations): Likewise.
17757 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17758 update for wide-int.
17759 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17760 * combine.c (try_combine): Likewise.
17761 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17762 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17763 interfaces.
17764 (aarch64_float_const_representable_p): Likewise.
17765 * config/arc/arc.c: Include wide-int.h.
17766 (arc_can_use_doloop_p): Use wide-int interfaces.
17767 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17768 (vfp3_const_double_index): Likewise.
17769 * config/avr/avr.c (avr_out_round): Likewise.
17770 (avr_fold_builtin): Likewise.
17771 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17772 (bfin_can_use_doloop_p): Likewise.
17773 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17774 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17775 * config/i386/i386.c: Include wide-int.h.
17776 (ix86_data_alignment): Use wide-int interfaces.
17777 (ix86_local_alignment): Likewise.
17778 (ix86_emit_swsqrtsf): Update real_from_integer.
17779 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17780 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17781 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17782 (zero_constant): Likewise.
17783 (input_operand): Likewise.
17784 (splat_input_operand): Likewise.
17785 (non_logical_cint_operand): Change const_double to const_wide_int.
17786 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17787 (easy_altivec_constant): Remove comment.
17788 (paired_expand_vector_init): Use CONSTANT_P.
17789 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17790 (rs6000_emit_move): Update checks.
17791 (rs6000_aggregate_candidate): Use wide-int interfaces.
17792 (rs6000_expand_ternop_builtin): Likewise.
17793 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17794 (rs6000_assemble_integer): Likewise.
17795 (rs6000_hash_constant): Likewise.
17796 (output_toc): Likewise.
17797 (rs6000_rtx_costs): Likewise.
17798 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17799 * config/rs6000/rs6000-c.c: Include wide-int.h.
17800 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17801 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17802 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17803 Handle CONST_WIDE_INT.
17804 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17805 Use tree_fits_uhwi_p.
17806 * config/sparc/sparc.c: Include wide-int.h.
17807 (sparc_fold_builtin): Use wide-int interfaces.
17808 * config/vax/vax.c: Include wide-int.h.
17809 (vax_float_literal): Use real_from_integer.
17810 * coretypes.h (struct hwivec_def): New.
17811 (hwivec): New.
17812 (const_hwivec): New.
17813 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17814 (equiv_constant): Handle CONST_WIDE_INT.
17815 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17816 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17817 * dbxout.c (stabstr_U): Use wide-int interfaces.
17818 (dbxout_type): Update to use cst_fits_shwi_p.
17819 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17820 (TARGET_SUPPORTS_WIDE_INT): Add default.
17821 * dfp.c: Include wide-int.h.
17822 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17823 decimal_real_to_integer.
17824 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17825 decimal_real_to_integer.
17826 * doc/generic.texi (Constant expressions): Update for wide_int.
17827 * doc/rtl.texi (const_double): Likewise.
17828 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17829 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17830 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17831 (REAL_VALUE_FROM_INT): Remove.
17832 (TARGET_SUPPORTS_WIDE_INT): New.
17833 * doc/tm.texi: Regenerate.
17834 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17835 * double-int.h: Include wide-int.h.
17836 (struct wi::int_traits): New.
17837 * dwarf2out.c (get_full_len): New.
17838 (dw_val_equal_p): Add case dw_val_class_wide_int.
17839 (size_of_loc_descr): Likewise.
17840 (output_loc_operands): Likewise.
17841 (insert_double): Remove.
17842 (insert_wide_int): New.
17843 (add_AT_wide): New.
17844 (print_die): Add case dw_val_class_wide_int.
17845 (attr_checksum): Likewise.
17846 (attr_checksum_ordered): Likewise.
17847 (same_dw_val_p): Likewise.
17848 (size_of_die): Likewise.
17849 (value_format): Likewise.
17850 (output_die): Likewise.
17851 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17852 Use wide-int.
17853 (clz_loc_descriptor): Use wide-int interfaces.
17854 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17855 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17856 (round_up_to_align): Use wide-int interfaces.
17857 (field_byte_offset): Likewise.
17858 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17859 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17860 CONST_DOUBLE handling. Use wide-int interfaces.
17861 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17862 (gen_enumeration_type_die): Use add_AT_wide.
17863 (hash_loc_operands): Add case dw_val_class_wide_int.
17864 (compare_loc_operands): Likewise.
17865 * dwarf2out.h: Include wide-int.h.
17866 (wide_int_ptr): New.
17867 (enum dw_val_class): Add dw_val_class_wide_int.
17868 (struct dw_val_struct): Add val_wide.
17869 * emit-rtl.c (const_wide_int_htab): New.
17870 (const_wide_int_htab_hash): New.
17871 (const_wide_int_htab_eq): New.
17872 (lookup_const_wide_int): New.
17873 (const_double_htab_hash): Use wide-int interfaces.
17874 (const_double_htab_eq): Likewise.
17875 (rtx_to_double_int): Conditionally compile for wide-int.
17876 (immed_double_int_const): Rename to immed_wide_int_const and
17877 update for wide-int.
17878 (immed_double_const): Conditionally compile for wide-int.
17879 (init_emit_once): Use wide-int interfaces.
17880 * explow.c (plus_constant): Likewise.
17881 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17882 (lshift_value): Use wide-int interfaces.
17883 (expand_mult): Likewise.
17884 (choose_multiplier): Likewise.
17885 (expand_smod_pow2): Likewise.
17886 (make_tree): Likewise.
17887 * expr.c (convert_modes): Consolidate handling of constants.
17888 Use wide-int interfaces.
17889 (emit_group_load_1): Add note.
17890 (store_expr): Update comment.
17891 (get_inner_reference): Use wide-int interfaces.
17892 (expand_constructor): Update comment.
17893 (expand_expr_real_2): Use wide-int interfaces.
17894 (expand_expr_real_1): Likewise.
17895 (reduce_to_bit_field_precision): Likewise.
17896 (const_vector_from_tree): Likewise.
17897 * final.c: Include wide-int-print.h.
17898 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17899 * fixed-value.c: Include wide-int.h.
17900 (fixed_from_string): Use wide-int interfaces.
17901 (fixed_to_decimal): Likewise.
17902 (fixed_convert_from_real): Likewise.
17903 (real_convert_from_fixed): Likewise.
17904 * fold-const.h (mem_ref_offset): Return an offset_int.
17905 (div_if_zero_remainder): Remove code parameter.
17906 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17907 Use wide-int interfaces.
17908 (may_negate_without_overflow_p): Use wide-int interfaces.
17909 (negate_expr_p): Likewise.
17910 (fold_negate_expr): Likewise.
17911 (int_const_binop_1): Likewise.
17912 (const_binop): Likewise.
17913 (fold_convert_const_int_from_int): Likewise.
17914 (fold_convert_const_int_from_real): Likewise.
17915 (fold_convert_const_int_from_fixed): Likewise.
17916 (fold_convert_const_fixed_from_int): Likewise.
17917 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17918 (sign_bit_p): Use wide-int interfaces.
17919 (make_range_step): Likewise.
17920 (build_range_check): Likewise. Pass an integer of the correct type
17921 instead of using integer_one_node.
17922 (range_predecessor): Pass an integer of the correct type instead
17923 of using integer_one_node.
17924 (range_successor): Likewise.
17925 (merge_ranges): Likewise.
17926 (unextend): Use wide-int interfaces.
17927 (extract_muldiv_1): Likewise.
17928 (fold_div_compare): Likewise.
17929 (fold_single_bit_test): Likewise.
17930 (fold_sign_changed_comparison): Likewise.
17931 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17932 (fold_plusminus_mult_expr): Use wide-int interfaces.
17933 (native_encode_int): Likewise.
17934 (native_interpret_int): Likewise.
17935 (fold_unary_loc): Likewise.
17936 (pointer_may_wrap_p): Likewise.
17937 (size_low_cst): Likewise.
17938 (mask_with_tz): Likewise.
17939 (fold_binary_loc): Likewise.
17940 (fold_ternary_loc): Likewise.
17941 (multiple_of_p): Likewise.
17942 (tree_call_nonnegative_warnv_p): Update calls to
17943 tree_int_cst_min_precision and real_from_integer.
17944 (fold_negate_const): Use wide-int interfaces.
17945 (fold_abs_const): Likewise.
17946 (fold_relational_const): Use tree_int_cst_lt.
17947 (round_up_loc): Use wide-int interfaces.
17948 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17949 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17950 * gengtype.c: Remove include of double-int.h.
17951 (do_typedef): Use wide-int interfaces.
17952 (open_base_files): Add wide-int.h.
17953 (main): Add offset_int and widest_int typedefs.
17954 * gengtype-lex.l: Handle "^".
17955 (CXX_KEYWORD): Add "static".
17956 * gengtype-parse.c (require3): New.
17957 (require_template_declaration): Handle constant template arguments
17958 and nested templates.
17959 * gengtype-state.c: Don't include "double-int.h".
17960 * genpreds.c (write_one_predicate_function): Update comment.
17961 (write_tm_constrs_h): Add check for hval and lval use in
17962 CONST_WIDE_INT.
17963 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17964 (add_to_sequence): Likewise.
17965 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17966 and const_double_operand.
17967 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17968 interfaces.
17969 * gimple-fold.c (get_base_constructor): Likewise.
17970 (fold_array_ctor_reference): Likewise.
17971 (fold_nonarray_ctor_reference): Likewise.
17972 (fold_const_aggregate_ref_1): Likewise.
17973 (gimple_val_nonnegative_real_p): Likewise.
17974 (gimple_fold_indirect_ref): Likewise.
17975 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17976 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17977 (struct slsr_cand_d): Change index to be widest_int.
17978 (struct incr_info_d): Change incr to be widest_int.
17979 (alloc_cand_and_find_basis): Use wide-int interfaces.
17980 (slsr_process_phi): Likewise.
17981 (backtrace_base_for_ref): Likewise. Return a widest_int.
17982 (restructure_reference): Take a widest_int instead of a double_int.
17983 (slsr_process_ref): Use wide-int interfaces.
17984 (create_mul_ssa_cand): Likewise.
17985 (create_mul_imm_cand): Likewise.
17986 (create_add_ssa_cand): Likewise.
17987 (create_add_imm_cand): Take a widest_int instead of a double_int.
17988 (slsr_process_add): Use wide-int interfaces.
17989 (slsr_process_cast): Likewise.
17990 (slsr_process_copy): Likewise.
17991 (dump_candidate): Likewise.
17992 (dump_incr_vec): Likewise.
17993 (replace_ref): Likewise.
17994 (cand_increment): Likewise. Return a widest_int.
17995 (cand_abs_increment): Likewise.
17996 (replace_mult_candidate): Take a widest_int instead of a double_int.
17997 (replace_unconditional_candidate): Use wide-int interfaces.
17998 (incr_vec_index): Take a widest_int instead of a double_int.
17999 (create_add_on_incoming_edge): Likewise.
18000 (create_phi_basis): Use wide-int interfaces.
18001 (replace_conditional_candidate): Likewise.
18002 (record_increment): Take a widest_int instead of a double_int.
18003 (record_phi_increments): Use wide-int interfaces.
18004 (phi_incr_cost): Take a widest_int instead of a double_int.
18005 (lowest_cost_path): Likewise.
18006 (total_savings): Likewise.
18007 (analyze_increments): Use wide-int interfaces.
18008 (ncd_with_phi): Take a widest_int instead of a double_int.
18009 (ncd_of_cand_and_phis): Likewise.
18010 (nearest_common_dominator_for_cands): Likewise.
18011 (insert_initializers): Use wide-int interfaces.
18012 (all_phi_incrs_profitable): Likewise.
18013 (replace_one_candidate): Likewise.
18014 (replace_profitable_candidates): Likewise.
18015 * godump.c: Include wide-int-print.h.
18016 (go_output_typedef): Use wide-int interfaces.
18017 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
18018 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
18019 (build_loop_iteration_domains): Likewise.
18020 * hooks.h: Include wide-int.h rather than double-int.h.
18021 (hook_bool_dint_dint_uint_bool_true): Delete.
18022 (hook_bool_wint_wint_uint_bool_true): Declare.
18023 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
18024 (hook_bool_wint_wint_uint_bool_true): New.
18025 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
18026 interfaces.
18027 (ubsan_expand_si_overflow_mul_check): Likewise.
18028 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
18029 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
18030 (get_ancestor_addr_info): Likewise.
18031 (ipa_modify_call_arguments): Likewise.
18032 * loop-doloop.c (doloop_modify): Likewise.
18033 (doloop_optimize): Likewise.
18034 * loop-iv.c (iv_number_of_iterations): Likewise.
18035 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
18036 (unroll_loop_constant_iterations): Likewise.
18037 (decide_unroll_runtime_iterations): Likewise.
18038 (unroll_loop_runtime_iterations): Likewise.
18039 (decide_peel_simple): Likewise.
18040 (decide_unroll_stupid): Likewise.
18041 * lto-streamer-in.c (streamer_read_wi): Add.
18042 (input_cfg): Use wide-int interfaces.
18043 (lto_input_tree_1): Likewise.
18044 * lto-streamer-out.c (streamer_write_wi): Add.
18045 (hash_tree): Use wide-int interfaces.
18046 (output_cfg): Likewise.
18047 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
18048 (GTFILES): Add wide-int.h and signop.h.
18049 (TAGS): Look for .cc files too.
18050 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
18051 * optabs.c (expand_subword_shift): Likewise.
18052 (expand_doubleword_shift): Likewise.
18053 (expand_absneg_bit): Likewise.
18054 (expand_copysign_absneg): Likewise.
18055 (expand_copysign_bit): Likewise.
18056 * postreload.c (reload_cse_simplify_set): Likewise.
18057 * predict.c (predict_iv_comparison): Likewise.
18058 * pretty-print.h: Include wide-int-print.h.
18059 (pp_wide_int) New.
18060 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
18061 * print-tree.c: Include wide-int-print.h.
18062 (print_node_brief): Use wide-int interfaces.
18063 (print_node): Likewise.
18064 * read-rtl.c (validate_const_wide_int): New.
18065 (read_rtx_code): Add CONST_WIDE_INT case.
18066 * real.c: Include wide-int.h.
18067 (real_to_integer2): Delete.
18068 (real_to_integer): New function, returning a wide_int.
18069 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
18070 (ten_to_ptwo): Update call to real_from_integer.
18071 (real_digit): Likewise.
18072 * real.h: Include signop.h, wide-int.h and insn-modes.h.
18073 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
18074 (REAL_VALUE_TO_INT): Delete.
18075 (real_to_integer): Declare a wide-int form.
18076 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
18077 * recog.c (const_int_operand): Improve comment.
18078 (const_scalar_int_operand): New.
18079 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
18080 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
18081 (split_double): Likewise.
18082 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
18083 (rtx_size): Likewise.
18084 (rtx_alloc_stat_v): New.
18085 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
18086 (cwi_output_hex): New.
18087 (iterative_hash_rtx): Handle CONST_WIDE_INT.
18088 (cwi_check_failed_bounds): New.
18089 * rtl.def (CONST_WIDE_INT): New.
18090 * rtl.h: Include <utility> and wide-int.h.
18091 (struct hwivec_def): New.
18092 (CWI_GET_NUM_ELEM): New.
18093 (CWI_PUT_NUM_ELEM): New.
18094 (struct rtx_def): Add num_elem and hwiv.
18095 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
18096 (CASE_CONST_UNIQUE): Likewise.
18097 (CASE_CONST_ANY): Likewise.
18098 (CONST_SCALAR_INT_P): Likewise.
18099 (CONST_WIDE_INT_P): New.
18100 (CWI_ELT): New.
18101 (HWIVEC_CHECK): New.
18102 (cwi_check_failed_bounds): New.
18103 (CWI_ELT): New.
18104 (HWIVEC_CHECK): New.
18105 (CONST_WIDE_INT_VEC) New.
18106 (CONST_WIDE_INT_NUNITS) New.
18107 (CONST_WIDE_INT_ELT) New.
18108 (rtx_mode_t): New type.
18109 (wi::int_traits <rtx_mode_t>): New.
18110 (wi::shwi): New.
18111 (wi::min_value): New.
18112 (wi::max_value): New.
18113 (rtx_alloc_v) New.
18114 (const_wide_int_alloc): New.
18115 (immed_wide_int_const): New.
18116 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
18117 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
18118 * signop.h: New file.
18119 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
18120 (simplify_const_unary_operation): Use wide-int interfaces.
18121 (simplify_binary_operation_1): Likewise.
18122 (simplify_const_binary_operation): Likewise.
18123 (simplify_const_relational_operation): Likewise.
18124 (simplify_immed_subreg): Likewise.
18125 * stmt.c (expand_case): Likewise.
18126 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
18127 signop rather than a bool.
18128 * stor-layout.c (layout_type): Use wide-int interfaces.
18129 (initialize_sizetypes): Update calls to
18130 set_min_and_max_values_for_integral_type.
18131 (set_min_and_max_values_for_integral_type): Take a signop rather
18132 than a bool. Use wide-int interfaces.
18133 (fixup_signed_type): Update accordingly. Remove
18134 HOST_BITS_PER_DOUBLE_INT limit.
18135 (fixup_unsigned_type): Likewise.
18136 * system.h (STATIC_CONSTANT_P): New.
18137 (STATIC_ASSERT): New.
18138 * target.def (can_use_doloop_p): Take widest_ints rather than
18139 double_ints.
18140 * target.h: Include wide-int.h rather than double-int.h.
18141 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
18142 than double_ints.
18143 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
18144 rather than INT_CST_LT_UNSIGNED.
18145 (can_use_doloop_if_innermost): Take widest_ints rather than
18146 double_ints.
18147 * tree-affine.c: Include wide-int-print.h.
18148 (double_int_ext_for_comb): Delete.
18149 (wide_int_ext_for_comb): New.
18150 (aff_combination_zero): Use wide-int interfaces.
18151 (aff_combination_const): Take a widest_int instead of a double_int.
18152 (aff_combination_elt): Use wide-int interfaces.
18153 (aff_combination_scale): Take a widest_int instead of a double_int.
18154 (aff_combination_add_elt): Likewise.
18155 (aff_combination_add_cst): Likewise.
18156 (aff_combination_add): Use wide-int interfaces.
18157 (aff_combination_convert): Likewise.
18158 (tree_to_aff_combination): Likewise.
18159 (add_elt_to_tree): Take a widest_int instead of a double_int.
18160 (aff_combination_to_tree): Use wide-int interfaces.
18161 (aff_combination_remove_elt): Likewise.
18162 (aff_combination_add_product): Take a widest_int instead of
18163 a double_int.
18164 (aff_combination_mult): Use wide-int interfaces.
18165 (aff_combination_expand): Likewise.
18166 (double_int_constant_multiple_p): Delete.
18167 (wide_int_constant_multiple_p): New.
18168 (aff_combination_constant_multiple_p): Take a widest_int pointer
18169 instead of a double_int pointer.
18170 (print_aff): Use wide-int interfaces.
18171 (get_inner_reference_aff): Take a widest_int pointer
18172 instead of a double_int pointer.
18173 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
18174 * tree-affine.h: Include wide-int.h.
18175 (struct aff_comb_elt): Change type of coef to widest_int.
18176 (struct affine_tree_combination): Change type of offset to widest_int.
18177 (double_int_ext_for_comb): Delete.
18178 (wide_int_ext_for_comb): New.
18179 (aff_combination_const): Use widest_int instead of double_int.
18180 (aff_combination_scale): Likewise.
18181 (aff_combination_add_elt): Likewise.
18182 (aff_combination_constant_multiple_p): Likewise.
18183 (get_inner_reference_aff): Likewise.
18184 (aff_comb_cannot_overlap_p): Likewise.
18185 (aff_combination_zero_p): Use wide-int interfaces.
18186 * tree.c: Include tree.h.
18187 (init_ttree): Use make_int_cst.
18188 (tree_code_size): Removed code for INTEGER_CST case.
18189 (tree_size): Add INTEGER_CST case.
18190 (make_node_stat): Update comment.
18191 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
18192 (build_int_cst_type): Use wide-int interfaces.
18193 (double_int_to_tree): Likewise.
18194 (double_int_fits_to_tree_p): Delete.
18195 (force_fit_type_double): Delete.
18196 (force_fit_type): New.
18197 (int_cst_hash_hash): Use wide-int interfaces.
18198 (int_cst_hash_eq): Likewise.
18199 (build_int_cst_wide): Delete.
18200 (wide_int_to_tree): New.
18201 (cache_integer_cst): Use wide-int interfaces.
18202 (build_low_bits_mask): Likewise.
18203 (cst_and_fits_in_hwi): Likewise.
18204 (real_value_from_int_cst): Likewise.
18205 (make_int_cst_stat): New.
18206 (integer_zerop): Use wide_int interfaces.
18207 (integer_onep): Likewise.
18208 (integer_all_onesp): Likewise.
18209 (integer_pow2p): Likewise.
18210 (integer_nonzerop): Likewise.
18211 (tree_log2): Likewise.
18212 (tree_floor_log2): Likewise.
18213 (tree_ctz): Likewise.
18214 (int_size_in_bytes): Likewise.
18215 (mem_ref_offset): Return an offset_int rather than a double_int.
18216 (build_type_attribute_qual_variant): Use wide_int interfaces.
18217 (type_hash_eq): Likewise
18218 (tree_int_cst_equal): Likewise.
18219 (tree_int_cst_lt): Delete.
18220 (tree_int_cst_compare): Likewise.
18221 (tree_fits_shwi_p): Use wide_int interfaces.
18222 (tree_fits_uhwi_p): Likewise.
18223 (tree_int_cst_sign_bit): Likewise.
18224 (tree_int_cst_sgn): Likewise.
18225 (tree_int_cst_min_precision): Take a signop rather than a bool.
18226 (simple_cst_equal): Use wide_int interfaces.
18227 (compare_tree_int): Likewise.
18228 (iterative_hash_expr): Likewise.
18229 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
18230 INT_CST_LT.
18231 (get_type_static_bounds): Use wide_int interfaces.
18232 (tree_int_cst_elt_check_failed): New.
18233 (build_common_tree_nodes): Reordered to set prec before filling in
18234 value.
18235 (int_cst_value): Check cst_and_fits_in_hwi.
18236 (widest_int_cst_value): Use wide_int interfaces.
18237 (upper_bound_in_type): Likewise.
18238 (lower_bound_in_type): Likewise.
18239 (num_ending_zeros): Likewise.
18240 (drop_tree_overflow): Likewise.
18241 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
18242 (gen_conditions_for_pow_cst_base): Likewise.
18243 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
18244 (group_case_labels_stmt): Use wide-int interfaces.
18245 (verify_gimple_assign_binary): Likewise.
18246 (print_loop): Likewise.
18247 * tree-chrec.c (tree_fold_binomial): Likewise.
18248 * tree-core.h (struct tree_base): Add int_length.
18249 (struct tree_int_cst): Change rep of value.
18250 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
18251 (dr_may_alias_p): Likewise.
18252 (max_stmt_executions_tree): Likewise.
18253 * tree.def (INTEGER_CST): Update comment.
18254 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
18255 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
18256 * tree-dump.c: Include wide-int.h and wide-int-print.h.
18257 (dequeue_and_dump): Use wide-int interfaces.
18258 * tree.h: Include wide-int.h.
18259 (NULL_TREE): Moved to earlier loc in file.
18260 (TREE_INT_CST_ELT_CHECK): New.
18261 (tree_int_cst_elt_check_failed): New.
18262 (TYPE_SIGN): New.
18263 (TREE_INT_CST): Delete.
18264 (TREE_INT_CST_LOW): Use wide-int interfaces.
18265 (TREE_INT_CST_HIGH): Delete.
18266 (TREE_INT_CST_NUNITS): New.
18267 (TREE_INT_CST_EXT_NUNITS): Likewise.
18268 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
18269 (TREE_INT_CST_ELT): Likewise.
18270 (INT_CST_LT): Delete.
18271 (tree_int_cst_elt_check): New (two forms).
18272 (type_code_size): Update comment.
18273 (make_int_cst_stat, make_int_cst): New.
18274 (tree_to_double_int): Delete.
18275 (double_int_fits_to_tree_p): Delete.
18276 (force_fit_type_double): Delete.
18277 (build_int_cstu): Replace with out-of-line function.
18278 (build_int_cst_wide): Delete.
18279 (tree_int_cst_lt): Define inline.
18280 (tree_int_cst_le): New.
18281 (tree_int_cst_compare): Define inline.
18282 (tree_int_cst_min_precision): Take a signop rather than a bool.
18283 (wi::int_traits <const_tree>): New.
18284 (wi::int_traits <tree>): New.
18285 (wi::extended_tree): New.
18286 (wi::int_traits <wi::extended_tree>): New.
18287 (wi::to_widest): New.
18288 (wi::to_offset): New.
18289 (wi::fits_to_tree_p): New.
18290 (wi::min_value): New.
18291 (wi::max_value): New.
18292 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
18293 (copy_tree_body_r): Likewise.
18294 * tree-object-size.c (compute_object_offset): Likewise.
18295 (addr_object_size): Likewise.
18296 * tree-predcom.c: Include wide-int-print.h.
18297 (struct dref_d): Change type of offset to widest_int.
18298 (dump_dref): Call wide-int printer.
18299 (aff_combination_dr_offset): Use wide-int interfaces.
18300 (determine_offset): Take a widest_int pointer rather than a
18301 double_int pointer.
18302 (split_data_refs_to_components): Use wide-int interfaces.
18303 (suitable_component_p): Likewise.
18304 (order_drefs): Likewise.
18305 (add_ref_to_chain): Likewise.
18306 (valid_initializer_p): Likewise.
18307 (determine_roots_comp): Likewise.
18308 * tree-pretty-print.c: Include wide-int-print.h.
18309 (dump_generic_node): Use wide-int interfaces.
18310 * tree-sra.c (sra_ipa_modify_expr): Likewise.
18311 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
18312 (move_fixed_address_to_symbol): Likewise.
18313 (move_hint_to_base): Likewise.
18314 (move_pointer_to_base): Likewise.
18315 (move_variant_to_index): Likewise.
18316 (most_expensive_mult_to_index): Likewise.
18317 (addr_to_parts): Likewise.
18318 (copy_ref_info): Likewise.
18319 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
18320 (indirect_refs_may_alias_p): Likewise.
18321 (stmt_kills_ref_p_1): Likewise.
18322 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
18323 * tree-ssa-ccp.c: Update comment at top of file. Include
18324 wide-int-print.h.
18325 (struct prop_value_d): Change type of mask to widest_int.
18326 (extend_mask): New function.
18327 (dump_lattice_value): Use wide-int interfaces.
18328 (get_default_value): Likewise.
18329 (set_constant_value): Likewise.
18330 (set_value_varying): Likewise.
18331 (valid_lattice_transition): Likewise.
18332 (set_lattice_value): Likewise.
18333 (value_to_double_int): Delete.
18334 (value_to_wide_int): New.
18335 (get_value_from_alignment): Use wide-int interfaces.
18336 (get_value_for_expr): Likewise.
18337 (do_dbg_cnt): Likewise.
18338 (ccp_finalize): Likewise.
18339 (ccp_lattice_meet): Likewise.
18340 (bit_value_unop_1): Use widest_ints rather than double_ints.
18341 (bit_value_binop_1): Likewise.
18342 (bit_value_unop): Use wide-int interfaces.
18343 (bit_value_binop): Likewise.
18344 (bit_value_assume_aligned): Likewise.
18345 (evaluate_stmt): Likewise.
18346 (ccp_fold_stmt): Likewise.
18347 (visit_cond_stmt): Likewise.
18348 (ccp_visit_stmt): Likewise.
18349 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
18350 (constant_pointer_difference): Likewise.
18351 (associate_pointerplus): Likewise.
18352 (combine_conversions): Likewise.
18353 * tree-ssa-loop.h: Include wide-int.h.
18354 (struct tree_niter_desc): Change type of max to widest_int.
18355 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
18356 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
18357 (remove_redundant_iv_tests): Likewise.
18358 (canonicalize_loop_induction_variables): Likewise.
18359 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
18360 (constant_multiple_of): Take a widest_int pointer instead of
18361 a double_int pointer.
18362 (get_computation_aff): Use wide-int interfaces.
18363 (ptr_difference_cost): Likewise.
18364 (difference_cost): Likewise.
18365 (get_loop_invariant_expr_id): Likewise.
18366 (get_computation_cost_at): Likewise.
18367 (iv_elimination_compare_lt): Likewise.
18368 (may_eliminate_iv): Likewise.
18369 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
18370 instead of double_int.
18371 (max_loop_iterations): Likewise.
18372 (max_stmt_executions): Likewise.
18373 (estimated_stmt_executions): Likewise.
18374 * tree-ssa-loop-niter.c: Include wide-int-print.h.
18375 (split_to_var_and_offset): Use wide-int interfaces.
18376 (determine_value_range): Likewise.
18377 (bound_difference_of_offsetted_base): Likewise.
18378 (bounds_add): Take a widest_int instead of a double_int.
18379 (number_of_iterations_ne_max): Use wide-int interfaces.
18380 (number_of_iterations_ne): Likewise.
18381 (number_of_iterations_lt_to_ne): Likewise.
18382 (assert_loop_rolls_lt): Likewise.
18383 (number_of_iterations_lt): Likewise.
18384 (number_of_iterations_le): Likewise.
18385 (number_of_iterations_cond): Likewise.
18386 (number_of_iterations_exit): Likewise.
18387 (finite_loop_p): Likewise.
18388 (derive_constant_upper_bound_assign): Likewise.
18389 (derive_constant_upper_bound): Return a widest_int.
18390 (derive_constant_upper_bound_ops): Likewise.
18391 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
18392 (record_estimate): Take a widest_int rather than a double_int.
18393 (record_nonwrapping_iv): Use wide-int interfaces.
18394 (double_int_cmp): Delete.
18395 (wide_int_cmp): New.
18396 (bound_index): Take a widest_int rather than a double_int.
18397 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
18398 (maybe_lower_iteration_bound): Likewise.
18399 (estimate_numbers_of_iterations_loop): Likewise.
18400 (estimated_loop_iterations): Take a widest_int pointer than than
18401 a double_int pointer.
18402 (estimated_loop_iterations_int): Use wide-int interfaces.
18403 (max_loop_iterations): Take a widest_int pointer than than
18404 a double_int pointer.
18405 (max_loop_iterations_int): Use wide-int interfaces.
18406 (max_stmt_executions): Take a widest_int pointer than than
18407 a double_int pointer.
18408 (estimated_stmt_executions): Likewise.
18409 (n_of_executions_at_most): Use wide-int interfaces.
18410 (scev_probably_wraps_p): Likewise.
18411 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
18412 to real_to_integer.
18413 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
18414 interfaces.
18415 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
18416 double_ints. Adjust for trailing_wide_ints <3> representation.
18417 (set_nonzero_bits): Likewise.
18418 (get_range_info): Return wide_ints rather than double_ints.
18419 Adjust for trailing_wide_ints <3> representation.
18420 (get_nonzero_bits): Likewise.
18421 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
18422 representation.
18423 * tree-ssanames.h (struct range_info_def): Replace min, max and
18424 nonzero_bits with a trailing_wide_ints <3>.
18425 (set_range_info): Use wide_int_refs rather than double_ints.
18426 (set_nonzero_bits): Likewise.
18427 (get_range_info): Return wide_ints rather than double_ints.
18428 (get_nonzero_bits): Likewise.
18429 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
18430 * tree-ssa-pre.c (phi_translate_1): Likewise.
18431 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
18432 (acceptable_pow_call): Likewise.
18433 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
18434 interfaces.
18435 (vn_reference_fold_indirect): Likewise.
18436 (vn_reference_maybe_forwprop_address): Likewise.
18437 (valueize_refs_1): Likewise.
18438 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
18439 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
18440 tree_int_cst_lt and tree_int_cst_le.
18441 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
18442 interfaces.
18443 (streamer_alloc_tree): Likewise.
18444 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
18445 (streamer_write_tree_header): Likewise.
18446 (streamer_write_integer_cst): Likewise.
18447 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18448 (build_constructors): Likewise.
18449 (array_value_type): Likewise.
18450 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
18451 (vect_check_gather): Likewise.
18452 * tree-vect-generic.c (build_replicated_const): Likewise.
18453 (expand_vector_divmod): Likewise.
18454 * tree-vect-loop.c (vect_transform_loop): Likewise.
18455 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
18456 (vect_do_peeling_for_alignment): Likewise.
18457 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18458 * tree-vrp.c: Include wide-int.h.
18459 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
18460 (extract_range_from_assert): Use wide-int interfaces.
18461 (vrp_int_const_binop): Likewise.
18462 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
18463 double_int pointers.
18464 (ranges_from_anti_range): Use wide-int interfaces.
18465 (quad_int_cmp): Delete.
18466 (quad_int_pair_sort): Likewise.
18467 (extract_range_from_binary_expr_1): Use wide-int interfaces.
18468 (extract_range_from_unary_expr_1): Likewise.
18469 (adjust_range_with_scev): Likewise.
18470 (masked_increment): Take and return wide_ints rather than double_ints.
18471 (register_edge_assert_for_2): Use wide-int interfaces.
18472 (check_array_ref): Likewise.
18473 (search_for_addr_array): Likewise.
18474 (maybe_set_nonzero_bits): Likewise.
18475 (union_ranges): Pass an integer of the correct type instead of
18476 using integer_one_node.
18477 (intersect_ranges): Likewise.
18478 (simplify_truth_ops_using_ranges): Likewise.
18479 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
18480 (range_fits_type_p): Likewise.
18481 (simplify_cond_using_ranges): Likewise. Take a signop rather than
18482 a bool.
18483 (simplify_conversion_using_ranges): Use wide-int interfaces.
18484 (simplify_float_conversion_using_ranges): Likewise.
18485 (vrp_finalize): Likewise.
18486 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
18487 (gimple_stringops_transform): Likewise.
18488 * varasm.c (decode_addr_const): Likewise.
18489 (const_hash_1): Likewise.
18490 (const_rtx_hash_1): Likewise
18491 (output_constant): Likewise.
18492 (array_size_for_constructor): Likewise.
18493 (output_constructor_regular_field): Likewise.
18494 (output_constructor_bitfield): Likewise.
18495 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
18496 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
18497 GENERATOR_FILEs.
18498 * gencheck.c: Define BITS_PER_UNIT.
18499 * wide-int.cc: New.
18500 * wide-int.h: New.
18501 * wide-int-print.cc: New.
18502 * wide-int-print.h: New.
18503
18504 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18505
18506 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
18507
18508 2014-05-06 Richard Biener <rguenther@suse.de>
18509
18510 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
18511 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
18512 (TODO_verify_all): Adjust.
18513 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
18514 TODO_verify_stmts and TODO_verify_rtl_sharing.
18515 * bb-reorder.c: Likewise.
18516 * cfgexpand.c: Likewise.
18517 * cprop.c: Likewise.
18518 * cse.c: Likewise.
18519 * function.c: Likewise.
18520 * fwprop.c: Likewise.
18521 * gcse.c: Likewise.
18522 * gimple-ssa-isolate-paths.c: Likewise.
18523 * gimple-ssa-strength-reduction.c: Likewise.
18524 * ipa-split.c: Likewise.
18525 * loop-init.c: Likewise.
18526 * loop-unroll.c: Likewise.
18527 * lower-subreg.c: Likewise.
18528 * modulo-sched.c: Likewise.
18529 * postreload-gcse.c: Likewise.
18530 * predict.c: Likewise.
18531 * recog.c: Likewise.
18532 * sched-rgn.c: Likewise.
18533 * store-motion.c: Likewise.
18534 * tracer.c: Likewise.
18535 * trans-mem.c: Likewise.
18536 * tree-call-cdce.c: Likewise.
18537 * tree-cfg.c: Likewise.
18538 * tree-cfgcleanup.c: Likewise.
18539 * tree-complex.c: Likewise.
18540 * tree-eh.c: Likewise.
18541 * tree-emutls.c: Likewise.
18542 * tree-if-conv.c: Likewise.
18543 * tree-into-ssa.c: Likewise.
18544 * tree-loop-distribution.c: Likewise.
18545 * tree-object-size.c: Likewise.
18546 * tree-parloops.c: Likewise.
18547 * tree-pass.h: Likewise.
18548 * tree-sra.c: Likewise.
18549 * tree-ssa-ccp.c: Likewise.
18550 * tree-ssa-copy.c: Likewise.
18551 * tree-ssa-copyrename.c: Likewise.
18552 * tree-ssa-dce.c: Likewise.
18553 * tree-ssa-dom.c: Likewise.
18554 * tree-ssa-dse.c: Likewise.
18555 * tree-ssa-forwprop.c: Likewise.
18556 * tree-ssa-ifcombine.c: Likewise.
18557 * tree-ssa-loop-ch.c: Likewise.
18558 * tree-ssa-loop-ivcanon.c: Likewise.
18559 * tree-ssa-loop.c: Likewise.
18560 * tree-ssa-math-opts.c: Likewise.
18561 * tree-ssa-phiopt.c: Likewise.
18562 * tree-ssa-phiprop.c: Likewise.
18563 * tree-ssa-pre.c: Likewise.
18564 * tree-ssa-reassoc.c: Likewise.
18565 * tree-ssa-sink.c: Likewise.
18566 * tree-ssa-strlen.c: Likewise.
18567 * tree-ssa-tail-merge.c: Likewise.
18568 * tree-ssa-uncprop.c: Likewise.
18569 * tree-switch-conversion.c: Likewise.
18570 * tree-tailcall.c: Likewise.
18571 * tree-vect-generic.c: Likewise.
18572 * tree-vectorizer.c: Likewise.
18573 * tree-vrp.c: Likewise.
18574 * tsan.c: Likewise.
18575 * var-tracking.c: Likewise.
18576 * bt-load.c: Likewise.
18577 * cfgcleanup.c: Likewise.
18578 * combine-stack-adj.c: Likewise.
18579 * combine.c: Likewise.
18580 * compare-elim.c: Likewise.
18581 * config/epiphany/resolve-sw-modes.c: Likewise.
18582 * config/i386/i386.c: Likewise.
18583 * config/mips/mips.c: Likewise.
18584 * config/s390/s390.c: Likewise.
18585 * config/sh/sh_treg_combine.cc: Likewise.
18586 * config/sparc/sparc.c: Likewise.
18587 * dce.c: Likewise.
18588 * dse.c: Likewise.
18589 * final.c: Likewise.
18590 * ifcvt.c: Likewise.
18591 * mode-switching.c: Likewise.
18592 * passes.c: Likewise.
18593 * postreload.c: Likewise.
18594 * ree.c: Likewise.
18595 * reg-stack.c: Likewise.
18596 * regcprop.c: Likewise.
18597 * regrename.c: Likewise.
18598 * web.c: Likewise.
18599
18600 2014-05-06 Richard Biener <rguenther@suse.de>
18601
18602 PR middle-end/61070
18603 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18604 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18605
18606 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18607
18608 PR ipa/60965
18609 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18610
18611 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18612 Tom de Vries <tom@codesourcery.com>
18613
18614 * target.def (call_fusage_contains_non_callee_clobbers): New
18615 DEFHOOKPOD.
18616 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18617 Hooks to @menu.
18618 (@node Miscellaneous Register Hooks): New node.
18619 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18620 * doc/tm.texi: Regenerate.
18621
18622 2014-05-05 Marek Polacek <polacek@redhat.com>
18623
18624 PR driver/61065
18625 * opts.c (common_handle_option): Call error_at instead of warning_at.
18626
18627 2014-05-05 Richard Biener <rguenther@suse.de>
18628
18629 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18630 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18631 under the TODO_verify_il umbrella.
18632
18633 2014-05-05 Richard Biener <rguenther@suse.de>
18634
18635 * passes.c (execute_function_todo): Move TODO_verify_flow under
18636 the TODO_verify_ul umbrella.
18637
18638 2014-05-05 Richard Biener <rguenther@suse.de>
18639
18640 PR middle-end/61010
18641 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18642 X & CST away from a CST that is the mask of a mode.
18643
18644 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18645
18646 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18647 int argument to enum machine_mode.
18648 (picochip_class_max_nregs): Ditto.
18649 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18650 (picochip_class_max_nregs): Ditto.
18651
18652 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18653
18654 * target.def: Add new target hook.
18655 * doc/tm.texi: Regenerate.
18656 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18657 * targhooks.c (default_keep_leaf_when_profiled): New function.
18658
18659 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18660 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18661
18662 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18663
18664 PR tree-optimization/60363
18665 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18666 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18667 (update_destination_phis): New parameter.
18668 (create_edge_and_update_destination_phis): Ditto.
18669 (ssa_fix_duplicate_block_edges): Pass new arguments.
18670 (thread_single_edge): Ditto.
18671
18672 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18673
18674 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18675 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18676 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18677 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18678 Use RS6000_BTM_HARD_FLOAT.
18679 (BU_MISC_2): Likewise.
18680 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18681 RS6000_BTM_HARD_FLOAT.
18682 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18683 is explicitly used.
18684 (rs6000_invalid_builtin): Add hard floating builtin support.
18685 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18686 hard float builtins.
18687 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18688
18689 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18690
18691 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18692 Add missing function* argument.
18693
18694 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18695
18696 * lra-constraints.c (valid_address_p): Move earlier in file.
18697 Add a constraint argument to the address_info version.
18698 (satisfies_memory_constraint_p): New function.
18699 (satisfies_address_constraint_p): Likewise.
18700 (process_alt_operands, curr_insn_transform): Use them.
18701 (process_address): Pass the constraint to valid_address_p when
18702 checking address operands.
18703
18704 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18705
18706 * config/mips/mips.c (mips_isa_rev): New variable.
18707 (mips_set_architecture): Set it.
18708 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18709 from mips_isa_rev.
18710 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18711 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18712 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18713 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18714 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18715 conditions in terms of mips_isa_rev.
18716 (mips_isa_rev): Declare.
18717
18718 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18719
18720 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18721 (prob_unlikely, prob_likely): Make variables const.
18722
18723 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18724
18725 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18726
18727 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18728
18729 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18730
18731 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18732
18733 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18734 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18735 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18736 functions.
18737 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18738 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18739 sh_pass_in_reg_p.
18740 Replace usage of ROUND_REG with sh_round_reg.
18741 Use CEIL instead of ROUND_ADVANCE.
18742
18743 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18744
18745 PR target/61026
18746 * config/sh/sh.c: Include stdlib headers before everything else.
18747
18748 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18749
18750 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18751 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18752 (gimplify_adjust_omp_clauses): Simd region is never
18753 directly nested in combined parallel. Instead, for linear
18754 with copyin/copyout, if in combined for simd loop, make decl
18755 firstprivate/lastprivate on OMP_FOR.
18756 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18757 expand_omp_for_static_chunk): When setting endvar, also set
18758 fd->loop.v to the same value.
18759
18760 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18761
18762 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18763
18764 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18765
18766 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18767 expression.
18768
18769 2014-05-02 Marek Polacek <polacek@redhat.com>
18770
18771 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18772
18773 2014-05-02 Kito Cheng <kito@0xlab.org>
18774
18775 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18776 to a C expression marco.
18777 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18778 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18779 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18780 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18781 HONOR_REG_ALLOC_ORDER.
18782 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18783
18784 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18785
18786 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18787
18788 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18789
18790 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18791
18792 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18793
18794 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18795 (convert_scalar_cond_reduction): Likewise.
18796 (predicate_scalar_phi): Add recognition and transformation
18797 of simple conditioanl reduction to be vectorizable.
18798
18799 2014-05-01 Marek Polacek <polacek@redhat.com>
18800
18801 PR c/43245
18802 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18803
18804 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18805
18806 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18807 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18808 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18809 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18810 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18811 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18812 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18813 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18814
18815 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18816
18817 * config/arc/arc.opt (mlra): Move comment above option name
18818 to avoid mis-parsing as language options.
18819
18820 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18821
18822 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18823 * config/sol2.h: ... here.
18824 * config/sol2-10.h: Remove.
18825
18826 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18827 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18828 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18829 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18830 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18831 * config/sol2.h: ... here.
18832 (SECTION_NAME_FORMAT): Don't redefine.
18833 (STARTFILE_ARCH32_SPEC): Rename to ...
18834 (STARTFILE_ARCH_SPEC): ... this.
18835 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18836 * config/sparc/sol2.h: ... here.
18837 (SECTION_NAME_FORMAT): Don't undef.
18838 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18839 (SUBTARGET_EXTRA_SPECS): Remove.
18840 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18841
18842 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18843 (MD_STARTFILE_PREFIX): Remove.
18844 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18845 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18846 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18847 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18848 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18849 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18850 * config/i386/sol2.h: ... here.
18851 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18852 * config/i386/sol2-bi.h: Remove.
18853 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18854 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18855
18856 * config/i386/t-sol2-64: Rename to ...
18857 * config/i386/t-sol2: ... this.
18858 * config/sparc/t-sol2-64: Rename to ...
18859 * config/sparc/t-sol2: ... this.
18860
18861 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18862 sol2_tm_file_head, sol2_tm_file_tail.
18863 Include ${cpu_type}/sol2.h before sol2.h.
18864 Remove sol2-10.h.
18865 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18866 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18867 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18868 Reflect i386/t-sol2-64 renaming.
18869 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18870 Reflect sparc/t-sol2-64 renaming.
18871
18872 2014-04-30 Richard Biener <rguenther@suse.de>
18873
18874 * passes.c (execute_function_todo): Move TODO_verify_stmts
18875 and TODO_verify_ssa under the TODO_verify_il umbrella.
18876 * tree-ssa.h (verify_ssa): Adjust prototype.
18877 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18878 we should verify SSA operands.
18879 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18880 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18881 whether we should verify whether not throwing stmts have EH info.
18882 * graphite-scop-detection.c (create_sese_edges): Adjust.
18883 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18884 * tree-eh.c (lower_try_finally_switch): Do not add the
18885 default case label twice.
18886
18887 2014-04-30 Marek Polacek <polacek@redhat.com>
18888
18889 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18890 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18891 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18892 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18893
18894 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18895
18896 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18897 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18898 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18899 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18900 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18901 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18902 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18903 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18904
18905 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18906
18907 * tree-cfg.c (dump_function_to_file): Dump the return type of
18908 functions, in a line to itself before the function body, mimicking
18909 the layout of a C function.
18910
18911 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18912
18913 PR tree-optimization/60971
18914 * tree-tailcall.c (process_assignment): Reject conversions which
18915 reduce precision.
18916
18917 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18918
18919 * calls.c (initialize_argument_information): Always treat
18920 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18921 (expand_call): Likewise.
18922 (emit_library_call_calue_1): Likewise.
18923 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18924 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18925 code accordingly.
18926
18927 2014-04-29 Nick Clifton <nickc@redhat.com>
18928
18929 * config/msp430/msp430.md (umulsidi): Fix typo.
18930 (mulhisi3): Enable even inside interrupt handlers.
18931 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18932 bigger return address pushed in large mode.
18933
18934 2014-04-29 Nick Clifton <nickc@redhat.com>
18935
18936 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18937 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18938 available modes.
18939 * config/m32r/m32r.c (init_reg_tables): Likewise.
18940 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18941 enum to hold the modes.
18942
18943 2014-04-29 Richard Biener <rguenther@suse.de>
18944
18945 * dominance.c (free_dominance_info): Add overload with
18946 function parameter.
18947 (dom_info_state): Likewise.
18948 (dom_info_available_p): Likewise.
18949 * basic-block.h (free_dominance_info, dom_info_state,
18950 dom_info_available_p): Declare overloads.
18951 * passes.c (execute_function_todo): Verify that verifiers
18952 don't change dominator info state. Drop dominator info
18953 for IPA pass invocations.
18954 * cgraph.c (release_function_body): Restore asserts that
18955 dominator information is released.
18956
18957 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18958
18959 * doc/invoke.texi: Fix typo.
18960 * tree-vrp.c: Fix typos.
18961 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18962
18963 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18964
18965 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18966
18967 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18968
18969 * config/aarch64/aarch64-builtins.c
18970 (aarch64_types_storestruct_lane_qualifiers): New.
18971 (TYPES_STORESTRUCT_LANE): Likewise.
18972 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18973 (st3_lane): Likewise.
18974 (st4_lane): Likewise.
18975 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18976 (vec_store_lanesci_lane<mode>): Likewise.
18977 (vec_store_lanesxi_lane<mode>): Likewise.
18978 (aarch64_st2_lane<VQ:mode>): Likewise.
18979 (aarch64_st3_lane<VQ:mode>): Likewise.
18980 (aarch64_st4_lane<VQ:mode>): Likewise.
18981 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18982 * config/aarch64/arm_neon.h
18983 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18984 use new macro arguments.
18985 (__ST3_LANE_FUNC): Likewise.
18986 (__ST4_LANE_FUNC): Likewise.
18987 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18988 (V_THREE_ELEM): Likewise.
18989 (V_FOUR_ELEM): Likewise.
18990
18991 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18992
18993 * doc/gimple.texi: Replace the description of the now-defunct
18994 union gimple_statement_d with a diagram showing the
18995 gimple_statement_base class hierarchy and its relationships to
18996 the GSS_ and GIMPLE_ enums.
18997
18998 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18999
19000 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
19001 * config/aarch64/aarch64.c
19002 (aarch64_cannot_change_mode_class): Weaken conditions.
19003 (aarch64_modes_tieable_p): New.
19004 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
19005
19006 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
19007
19008 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
19009 (loadsync_<mode>): Change mode.
19010 (load_quadpti, store_quadpti): New.
19011 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
19012 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
19013
19014 2014-04-28 Martin Jambor <mjambor@suse.cz>
19015
19016 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
19017 same alias type as the original statement.
19018 (subreplacement_assignment_data): New type.
19019 (handle_unscalarized_data_in_subtree): New type of parameter,
19020 generate new memory accesses with same alias type as the original
19021 statement.
19022 (load_assign_lhs_subreplacements): Likewise.
19023 (sra_modify_constructor_assign): Generate new memory accesses with
19024 same alias type as the original statement.
19025
19026 2014-04-28 Richard Biener <rguenther@suse.de>
19027
19028 * tree-pass.h (TODO_verify_il): Define.
19029 (TODO_verify_all): Complete properly.
19030 * passes.c (execute_function_todo): Move existing loop-closed
19031 SSA verification under TODO_verify_il.
19032 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
19033 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
19034 Fix tree sharing issue.
19035
19036 2014-04-28 Richard Biener <rguenther@suse.de>
19037
19038 PR middle-end/60092
19039 * builtins.def (DEF_C11_BUILTIN): Add.
19040 (BUILT_IN_ALIGNED_ALLOC): Likewise.
19041 * coretypes.h (enum function_class): Add function_c11_misc.
19042 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19043 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
19044 (call_may_clobber_ref_p_1): Likewise.
19045 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
19046 (mark_all_reaching_defs_necessary_1): Likewise.
19047 (propagate_necessity): Likewise.
19048 (eliminate_unnecessary_stmts): Likewise.
19049 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
19050
19051 2014-04-28 Richard Biener <rguenther@suse.de>
19052
19053 * tree-vrp.c (vrp_var_may_overflow): Remove.
19054 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
19055 with overflow immediately bump to one before that value and
19056 let iteration figure out overflow status.
19057
19058 2014-04-28 Richard Biener <rguenther@suse.de>
19059
19060 * configure.ac: Do valgrind header checks unconditionally.
19061 Add --enable-valgrind-annotations.
19062 * system.h: Guard valgrind header inclusion with
19063 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
19064 * alloc-pool.c (pool_alloc, pool_free): Use
19065 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
19066 to guard possibly dead code.
19067 * config.in: Regenerated.
19068 * configure: Likewise.
19069
19070 2014-04-28 Jeff Law <law@redhat.com>
19071
19072 PR tree-optimization/60902
19073 * tree-ssa-threadedge.c
19074 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
19075 over real defs when invalidating outputs from statements that do not
19076 produce useful outputs for threading.
19077
19078 2014-04-28 Richard Biener <rguenther@suse.de>
19079
19080 PR tree-optimization/60979
19081 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
19082 SCOPs that end in a block with a successor with abnormal
19083 predecessors.
19084
19085 2014-04-28 Richard Biener <rguenther@suse.de>
19086
19087 * tree-pass.h (execute_pass_list): Adjust prototype.
19088 * passes.c (pass_manager::execute_early_local_passes): Adjust.
19089 (do_per_function): Change callback signature, push all actual
19090 work to the callbals.
19091 (do_per_function_toporder): Likewise.
19092 (execute_function_dump): Adjust.
19093 (execute_function_todo): Likewise.
19094 (clear_last_verified): Likewise.
19095 (verify_curr_properties): Likewise.
19096 (update_properties_after_pass): Likewise.
19097 (execute_pass_list_1): Split out from ...
19098 (execute_pass_list): ... here. Adjust.
19099 (execute_ipa_pass_list): Likewise.
19100 * cgraphunit.c (cgraph_add_new_function): Adjust.
19101 (analyze_function): Likewise.
19102 (expand_function): Likewise.
19103 * cgraph.c (release_function_body): Free dominance info
19104 here instead of asserting it was magically freed elsewhere.
19105
19106 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
19107
19108 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
19109 * configure: Regenerate.
19110 * config/sparc/sparc.opt (muser-mode): New option.
19111 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
19112 for LEON3.
19113 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
19114 * doc/invoke.texi (SPARC options): Document -muser-mode.
19115
19116 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
19117
19118 * cselib.c (find_slot_memmode): Delete.
19119 (cselib_hasher): Change compare_type to a struct.
19120 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
19121 constants.
19122 (preserve_constants_and_equivs): Adjust for new compare_type.
19123 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
19124 (wrap_constant): Delete.
19125 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
19126
19127 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
19128
19129 * doc/install.texi (Building with profile feedback): Remove
19130 outdated sentence.
19131
19132 2014-04-26 Tom de Vries <tom@codesourcery.com>
19133
19134 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
19135 array accesses.
19136
19137 2014-04-25 Cary Coutant <ccoutant@google.com>
19138
19139 PR debug/60929
19140 * dwarf2out.c (should_move_die_to_comdat): A type definition
19141 can contain a subprogram definition, but don't move it to a
19142 comdat unit.
19143 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
19144 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
19145 from original DIE.
19146 (clone_tree_hash): Rename to...
19147 (clone_tree_partial): ...this; change callers. Copy
19148 DW_TAG_subprogram DIEs as declarations.
19149 (copy_decls_walk): Don't copy children of a declaration into a
19150 type unit.
19151
19152 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
19153
19154 PR target/60969
19155 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
19156 alternative 12.
19157
19158 2014-04-25 Jiong Wang <jiong.wang@arm.com>
19159
19160 * config/arm/predicates.md (call_insn_operand): Add long_call check.
19161 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
19162 reg for long_call.
19163 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
19164 restriction.
19165
19166 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19167
19168 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
19169
19170 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19171
19172 PR tree-optimization/60930
19173 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
19174 creating a multiply candidate by folding two constant
19175 multiplicands when the result overflows.
19176
19177 2014-04-25 Jakub Jelinek <jakub@redhat.com>
19178
19179 PR tree-optimization/60960
19180 * tree-vect-generic.c (expand_vector_operation): Only call
19181 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
19182
19183 2014-04-25 Tom de Vries <tom@codesourcery.com>
19184
19185 * expr.c (clobber_reg_mode): New function.
19186 * expr.h (clobber_reg): New function.
19187
19188 2014-04-25 Tom de Vries <tom@codesourcery.com>
19189
19190 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
19191 clobbers.
19192
19193 2014-04-25 Radovan Obradovic <robradovic@mips.com>
19194 Tom de Vries <tom@codesourcery.com>
19195
19196 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
19197 handle.
19198 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
19199 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
19200 new argument to find_all_hard_reg_sets call.
19201
19202 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19203
19204 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
19205 Use HOST_WIDE_INT_C for mask literal.
19206 (aarch_rev16_shleft_mask_imm_p): Likewise.
19207
19208 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
19209
19210 PR target/60941
19211 * config/sparc/sparc.md (ashlsi3_extend): Delete.
19212
19213 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
19214
19215 PR preprocessor/56540
19216 * config/i386/i386-c.c (ix86_target_macros): Define
19217 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
19218
19219 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19220
19221 * configure.ac (tga_func): Remove.
19222 (LIB_TLS_SPEC): Remove.
19223 * configure: Regenerate.
19224 * config.in: Regenerate.
19225 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
19226
19227 2014-04-25 Richard Biener <rguenther@suse.de>
19228
19229 PR ipa/60912
19230 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
19231 call stmt use/clobber sets during stmt walk instead of
19232 walking the possibly incomplete set of caller edges.
19233
19234 2014-04-25 Richard Biener <rguenther@suse.de>
19235
19236 PR ipa/60911
19237 * passes.c (apply_ipa_transforms): Inline into only caller ...
19238 (execute_one_pass): ... here. Properly bring in function
19239 bodies for nodes we want to apply IPA transforms to.
19240
19241 2014-04-24 Cong Hou <congh@google.com>
19242
19243 PR tree-optimization/60896
19244 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
19245 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
19246 (vect_mark_pattern_stmts): Set the def type of all statements in
19247 PATTERN_DEF_SEQ as vect_internal_def.
19248
19249 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19250
19251 * doc/extend.texi (PowerPC Built-in Functions): Document new
19252 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
19253 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
19254
19255 * config/rs6000/predicates.md (const_0_to_3_operand): New
19256 predicate to match 0..3 integer constants.
19257
19258 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
19259 to support adding miscellaneous builtin functions.
19260 (BU_DFP_MISC_2): Likewise.
19261 (BU_P7_MISC_1): Likewise.
19262 (BU_P7_MISC_2): Likewise.
19263 (BU_P8V_MISC_3): Likewise.
19264 (BU_MISC_1): Likewise.
19265 (BU_MISC_2): Likewise.
19266 (DIVWE): Add extended divide builtin functions.
19267 (DIVWEO): Likewise.
19268 (DIVWEU): Likewise.
19269 (DIVWEUO): Likewise.
19270 (DIVDE): Likewise.
19271 (DIVDEO): Likewise.
19272 (DIVDEU): Likewise.
19273 (DIVDEUO): Likewise.
19274 (DXEX): Add decimal floating-point builtin functions.
19275 (DXEXQ): Likewise.
19276 (DDEDPD): Likewise.
19277 (DDEDPDQ): Likewise.
19278 (DENBCD): Likewise.
19279 (DENBCDQ): Likewise.
19280 (DIEX): Likewise.
19281 (DIEXQ): Likewise.
19282 (DSCLI): Likewise.
19283 (DSCLIQ): Likewise.
19284 (DSCRI): Likewise.
19285 (DSCRIQ): Likewise.
19286 (CDTBCD): Add new BCD builtin functions.
19287 (CBCDTD): Likewise.
19288 (ADDG6S): Likewise.
19289 (BCDADD): Likewise.
19290 (BCDADD_LT): Likewise.
19291 (BCDADD_EQ): Likewise.
19292 (BCDADD_GT): Likewise.
19293 (BCDADD_OV): Likewise.
19294 (BCDSUB): Likewise.
19295 (BCDSUB_LT): Likewise.
19296 (BCDSUB_EQ): Likewise.
19297 (BCDSUB_GT): Likewise.
19298 (BCDSUB_OV): Likewise.
19299 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
19300 (UNPACK_TD): Likewise.
19301 (PACK_TF): Likewise.
19302 (UNPACK_TF): Likewise.
19303 (UNPACK_TF_0): Likewise.
19304 (UNPACK_TF_1): Likewise.
19305 (PACK_V1TI): Likewise.
19306 (UNPACK_V1TI): Likewise.
19307
19308 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
19309 support for decimal floating point builtin functions.
19310 (rs6000_expand_ternop_builtin): Add checks for the new builtin
19311 functions that take constant arguments.
19312 (rs6000_invalid_builtin): Add decimal floating point builtin support.
19313 (rs6000_init_builtins): Setup long double, _Decimal64, and
19314 _Decimal128 types for new builtin functions.
19315 (builtin_function_type): Set the unsigned flags appropriately for
19316 the new builtin functions.
19317 (rs6000_opt_masks): Add support for decimal floating point builtin
19318 functions.
19319
19320 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
19321 floating point builtin functions.
19322 (RS6000_BTM_COMMON): Likewise.
19323 (RS6000_BTI_long_double): Likewise.
19324 (RS6000_BTI_dfloat64): Likewise.
19325 (RS6000_BTI_dfloat128): Likewise.
19326 (long_double_type_internal_node): Likewise.
19327 (dfloat64_type_internal_node): Likewise.
19328 (dfloat128_type_internal_node): Likewise.
19329
19330 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
19331 2.07 bcd arithmetic instructions.
19332 (UNSPEC_BCDSUB): Likewise.
19333 (UNSPEC_BCD_OVERFLOW): Likewise.
19334 (UNSPEC_BCD_ADD_SUB): Likewise.
19335 (bcd_add_sub): Likewise.
19336 (BCD_TEST): Likewise.
19337 (bcd<bcd_add_sub>): Likewise.
19338 (bcd<bcd_add_sub>_test): Likewise.
19339 (bcd<bcd_add_sub>_test2): Likewise.
19340 (bcd<bcd_add_sub>_<code>): Likewise.
19341 (peephole2 for combined bcd ops): Likewise.
19342
19343 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
19344 decimal floating point builtin functions.
19345 (UNSPEC_DENBCD): Likewise.
19346 (UNSPEC_DXEX): Likewise.
19347 (UNSPEC_DIEX): Likewise.
19348 (UNSPEC_DSCLI): Likewise.
19349 (UNSPEC_DSCRI): Likewise.
19350 (D64_D128): Likewise.
19351 (dfp_suffix): Likewise.
19352 (dfp_ddedpd_<mode>): Likewise.
19353 (dfp_denbcd_<mode>): Likewise.
19354 (dfp_dxex_<mode>): Likewise.
19355 (dfp_diex_<mode>): Likewise.
19356 (dfp_dscli_<mode>): Likewise.
19357 (dfp_dscri_<mode>): Likewise.
19358
19359 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
19360 builtin functions.
19361 (UNSPEC_CDTBCD): Likewise.
19362 (UNSPEC_CBCDTD): Likewise.
19363 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
19364 (UNSPEC_DIVEO): Likewise.
19365 (UNSPEC_DIVEU): Likewise.
19366 (UNSPEC_DIVEUO): Likewise.
19367 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
19368 pack/unpack 128-bit types.
19369 (UNSPEC_PACK_128BIT): Likewise.
19370 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
19371 (udiv<mode>3): Use idiv_ldiv mode attribute.
19372 (div<mode>3): Likewise.
19373 (addg6s): Add new BCD builtin functions.
19374 (cdtbcd): Likewise.
19375 (cbcdtd): Likewise.
19376 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
19377 (div_extend): Likewise.
19378 (div<div_extend>_<mode>"): Likewise.
19379 (FP128_64): Add support for new builtin functions to pack/unpack
19380 128-bit types.
19381 (unpack<mode>): Likewise.
19382 (unpacktf_0): Likewise.
19383 (unpacktf_1): Likewise.
19384 (unpack<mode>_dm): Likewise.
19385 (unpack<mode>_nodm): Likewise.
19386 (pack<mode>): Likewise.
19387 (unpackv1ti): Likewise.
19388 (packv1ti): Likewise.
19389
19390 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
19391
19392 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
19393 is disabled.
19394
19395 2014-04-24 Jakub Jelinek <jakub@redhat.com>
19396
19397 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
19398 * gimplify.c (omp_is_private): Change last argument's type to int.
19399 Only diagnose lastprivate if the simd argument is 1, only diagnose
19400 linear if the simd argument is 2.
19401 (gimplify_omp_for): Adjust omp_is_private callers. When adding
19402 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
19403 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
19404 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
19405 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
19406 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19407 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
19408 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
19409 * tree-nested.c (convert_nonlocal_omp_clauses,
19410 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
19411
19412 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
19413
19414 PR target/60822
19415 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
19416 operand 1.
19417
19418 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
19419
19420 * flag-types.h (enum ivar_visibility): Add.
19421
19422 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
19423
19424 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
19425 function * argument.
19426
19427 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
19428
19429 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
19430
19431 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19432 Tom de Vries <tom@codesourcery.com>
19433
19434 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
19435 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
19436 reg-note.
19437 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
19438 * emit-rtl.c (try_split): Same.
19439
19440 2014-04-24 Radovan Obradovic <robradovic@mips.com>
19441 Tom de Vries <tom@codesourcery.com>
19442
19443 * common.opt (fuse-caller-save): New option.
19444
19445 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
19446
19447 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
19448 elements for big-endian.
19449
19450 2014-04-24 Richard Biener <rguenther@suse.de>
19451
19452 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
19453 during TER and instead use the sepops interface for expanding
19454 non-GIMPLE_SINGLE_RHS.
19455
19456 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19457
19458 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
19459 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
19460
19461 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19462
19463 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
19464 assembler 64-bit option.
19465 * configure: Regenerate.
19466
19467 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19468
19469 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
19470 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
19471 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
19472 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
19473 (TARGET_CRYPTO): Take TARGET_SIMD into account.
19474
19475 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19476
19477 * config/aarch64/aarch64-builtins.c
19478 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
19479 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
19480 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
19481 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
19482 builtins.
19483 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
19484 (Vrevsuff): New mode attribute.
19485
19486 2014-04-24 Terry Guo <terry.guo@arm.com>
19487
19488 * config/arm/arm.h (machine_function): Define variable
19489 after_arm_reorg here.
19490 * config/arm/arm.c (after_arm_reorg): Remove the definition.
19491 (arm_split_constant): Update the way to access variable
19492 after_arm_reorg.
19493 (arm_reorg): Ditto.
19494 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
19495
19496 2014-04-23 Tom de Vries <tom@codesourcery.com>
19497
19498 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
19499
19500 2014-04-23 David Malcolm <dmalcolm@redhat.com>
19501
19502 * is-a.h: Update comments to reflect the following changes to the
19503 "pointerness" of the API, making the template parameter match the
19504 return type, allowing use of is-a.h with typedefs of pointers.
19505 (is_a_helper::cast): Return a T rather then a pointer to a T, so
19506 that the return type matches the parameter to the is_a_helper.
19507 (as_a): Likewise.
19508 (dyn_cast): Likewise.
19509
19510 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
19511 pointer from the is-a.h API.
19512
19513 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
19514 (is_a_helper <cgraph_node *>::test): ...this, matching change to
19515 is-a.h API.
19516 (is_a_helper <varpool_node>::test): Likewise, convert to...
19517 (is_a_helper <varpool_node *>::test): ...this.
19518
19519 (varpool_first_variable): Update for removal of implicit pointer
19520 from the is-a.h API.
19521 (varpool_next_variable): Likewise.
19522 (varpool_first_static_initializer): Likewise.
19523 (varpool_next_static_initializer): Likewise.
19524 (varpool_first_defined_variable): Likewise.
19525 (varpool_next_defined_variable): Likewise.
19526 (cgraph_first_defined_function): Likewise.
19527 (cgraph_next_defined_function): Likewise.
19528 (cgraph_first_function): Likewise.
19529 (cgraph_next_function): Likewise.
19530 (cgraph_first_function_with_gimple_body): Likewise.
19531 (cgraph_next_function_with_gimple_body): Likewise.
19532 (cgraph_alias_target): Likewise.
19533 (varpool_alias_target): Likewise.
19534 (cgraph_function_or_thunk_node): Likewise.
19535 (varpool_variable_node): Likewise.
19536 (symtab_real_symbol_p): Likewise.
19537 * cgraphunit.c (referred_to_p): Likewise.
19538 (analyze_functions): Likewise.
19539 (handle_alias_pairs): Likewise.
19540 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
19541 * gimple-ssa.h (gimple_vuse_op): Likewise.
19542 (gimple_vdef_op): Likewise.
19543 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
19544 * gimple.c (gimple_build_asm_1): Likewise.
19545 (gimple_build_try): Likewise.
19546 (gimple_build_resx): Likewise.
19547 (gimple_build_eh_dispatch): Likewise.
19548 (gimple_build_omp_for): Likewise.
19549 (gimple_omp_for_set_clauses): Likewise.
19550
19551 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19552 (is_a_helper <gimple_statement_asm *>::test): ...this.
19553 (is_a_helper <gimple_statement_bind>::test): Convert to...
19554 (is_a_helper <gimple_statement_bind *>::test): ...this.
19555 (is_a_helper <gimple_statement_call>::test): Convert to...
19556 (is_a_helper <gimple_statement_call *>::test): ...this.
19557 (is_a_helper <gimple_statement_catch>::test): Convert to...
19558 (is_a_helper <gimple_statement_catch *>::test): ...this.
19559 (is_a_helper <gimple_statement_resx>::test): Convert to...
19560 (is_a_helper <gimple_statement_resx *>::test): ...this.
19561 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19562 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19563 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19564 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19565 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19566 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19567 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19568 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19569 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19570 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19571 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19572 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19573 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19574 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19575 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19576 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19577 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19578 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19579 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19580 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19581 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19582 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19583 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19584 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19585 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19586 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19587 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19588 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19589 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19590 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19591 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19592 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19593 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19594 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19595 (is_a_helper <gimple_statement_phi>::test): Convert to...
19596 (is_a_helper <gimple_statement_phi *>::test): ...this.
19597 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19598 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19599 (is_a_helper <gimple_statement_try>::test): Convert to...
19600 (is_a_helper <gimple_statement_try *>::test): ...this.
19601 (is_a_helper <gimple_statement_wce>::test): Convert to...
19602 (is_a_helper <gimple_statement_wce *>::test): ...this.
19603 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19604 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19605 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19606 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19607 (is_a_helper <const gimple_statement_call>::test): Convert to...
19608 (is_a_helper <const gimple_statement_call *>::test): ...this.
19609 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19610 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19611 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19612 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19613 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19614 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19615 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19616 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19617 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19618 Convert to...
19619 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19620 ...this.
19621 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19622 Convert to...
19623 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19624 ...this.
19625 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19626 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19627 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19628 to...
19629 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19630 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19631 to...
19632 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19633 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19634 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19635 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19636 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19637 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19638 to...
19639 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19640 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19641 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19642 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19643 to...
19644 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19645 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19646 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19647 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19648 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19649 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19650 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19651 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19652 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19653 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19654 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19655 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19656 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19657 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19658 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19659 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19660 to...
19661 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19662 ...this.
19663 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19664 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19665
19666 (gimple_use_ops): Update for removal of implicit pointer from the
19667 is-a.h API.
19668 (gimple_set_use_ops): Likewise.
19669 (gimple_vuse): Likewise.
19670 (gimple_vdef): Likewise.
19671 (gimple_vuse_ptr): Likewise.
19672 (gimple_vdef_ptr): Likewise.
19673 (gimple_set_vuse): Likewise.
19674 (gimple_set_vdef): Likewise.
19675 (gimple_omp_return_set_lhs): Likewise.
19676 (gimple_omp_return_lhs): Likewise.
19677 (gimple_omp_return_lhs_ptr): Likewise.
19678 (gimple_call_fntype): Likewise.
19679 (gimple_call_set_fntype): Likewise.
19680 (gimple_call_set_internal_fn): Likewise.
19681 (gimple_call_use_set): Likewise.
19682 (gimple_call_clobber_set): Likewise.
19683 (gimple_bind_vars): Likewise.
19684 (gimple_bind_set_vars): Likewise.
19685 (gimple_bind_body_ptr): Likewise.
19686 (gimple_bind_set_body): Likewise.
19687 (gimple_bind_add_stmt): Likewise.
19688 (gimple_bind_block): Likewise.
19689 (gimple_bind_set_block): Likewise.
19690 (gimple_asm_ninputs): Likewise.
19691 (gimple_asm_noutputs): Likewise.
19692 (gimple_asm_nclobbers): Likewise.
19693 (gimple_asm_nlabels): Likewise.
19694 (gimple_asm_input_op): Likewise.
19695 (gimple_asm_input_op_ptr): Likewise.
19696 (gimple_asm_output_op): Likewise.
19697 (gimple_asm_output_op_ptr): Likewise.
19698 (gimple_asm_set_output_op): Likewise.
19699 (gimple_asm_clobber_op): Likewise.
19700 (gimple_asm_set_clobber_op): Likewise.
19701 (gimple_asm_label_op): Likewise.
19702 (gimple_asm_set_label_op): Likewise.
19703 (gimple_asm_string): Likewise.
19704 (gimple_catch_types): Likewise.
19705 (gimple_catch_types_ptr): Likewise.
19706 (gimple_catch_handler_ptr): Likewise.
19707 (gimple_catch_set_types): Likewise.
19708 (gimple_catch_set_handler): Likewise.
19709 (gimple_eh_filter_types): Likewise.
19710 (gimple_eh_filter_types_ptr): Likewise.
19711 (gimple_eh_filter_failure_ptr): Likewise.
19712 (gimple_eh_filter_set_types): Likewise.
19713 (gimple_eh_filter_set_failure): Likewise.
19714 (gimple_eh_must_not_throw_fndecl): Likewise.
19715 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19716 (gimple_eh_else_n_body_ptr): Likewise.
19717 (gimple_eh_else_e_body_ptr): Likewise.
19718 (gimple_eh_else_set_n_body): Likewise.
19719 (gimple_eh_else_set_e_body): Likewise.
19720 (gimple_try_eval_ptr): Likewise.
19721 (gimple_try_cleanup_ptr): Likewise.
19722 (gimple_try_set_eval): Likewise.
19723 (gimple_try_set_cleanup): Likewise.
19724 (gimple_wce_cleanup_ptr): Likewise.
19725 (gimple_wce_set_cleanup): Likewise.
19726 (gimple_phi_capacity): Likewise.
19727 (gimple_phi_num_args): Likewise.
19728 (gimple_phi_result): Likewise.
19729 (gimple_phi_result_ptr): Likewise.
19730 (gimple_phi_set_result): Likewise.
19731 (gimple_phi_arg): Likewise.
19732 (gimple_phi_set_arg): Likewise.
19733 (gimple_resx_region): Likewise.
19734 (gimple_resx_set_region): Likewise.
19735 (gimple_eh_dispatch_region): Likewise.
19736 (gimple_eh_dispatch_set_region): Likewise.
19737 (gimple_omp_critical_name): Likewise.
19738 (gimple_omp_critical_name_ptr): Likewise.
19739 (gimple_omp_critical_set_name): Likewise.
19740 (gimple_omp_for_clauses): Likewise.
19741 (gimple_omp_for_clauses_ptr): Likewise.
19742 (gimple_omp_for_set_clauses): Likewise.
19743 (gimple_omp_for_collapse): Likewise.
19744 (gimple_omp_for_index): Likewise.
19745 (gimple_omp_for_index_ptr): Likewise.
19746 (gimple_omp_for_set_index): Likewise.
19747 (gimple_omp_for_initial): Likewise.
19748 (gimple_omp_for_initial_ptr): Likewise.
19749 (gimple_omp_for_set_initial): Likewise.
19750 (gimple_omp_for_final): Likewise.
19751 (gimple_omp_for_final_ptr): Likewise.
19752 (gimple_omp_for_set_final): Likewise.
19753 (gimple_omp_for_incr): Likewise.
19754 (gimple_omp_for_incr_ptr): Likewise.
19755 (gimple_omp_for_set_incr): Likewise.
19756 (gimple_omp_for_pre_body_ptr): Likewise.
19757 (gimple_omp_for_set_pre_body): Likewise.
19758 (gimple_omp_parallel_clauses): Likewise.
19759 (gimple_omp_parallel_clauses_ptr): Likewise.
19760 (gimple_omp_parallel_set_clauses): Likewise.
19761 (gimple_omp_parallel_child_fn): Likewise.
19762 (gimple_omp_parallel_child_fn_ptr): Likewise.
19763 (gimple_omp_parallel_set_child_fn): Likewise.
19764 (gimple_omp_parallel_data_arg): Likewise.
19765 (gimple_omp_parallel_data_arg_ptr): Likewise.
19766 (gimple_omp_parallel_set_data_arg): Likewise.
19767 (gimple_omp_task_clauses): Likewise.
19768 (gimple_omp_task_clauses_ptr): Likewise.
19769 (gimple_omp_task_set_clauses): Likewise.
19770 (gimple_omp_task_child_fn): Likewise.
19771 (gimple_omp_task_child_fn_ptr): Likewise.
19772 (gimple_omp_task_set_child_fn): Likewise.
19773 (gimple_omp_task_data_arg): Likewise.
19774 (gimple_omp_task_data_arg_ptr): Likewise.
19775 (gimple_omp_task_set_data_arg): Likewise.
19776 (gimple_omp_taskreg_clauses): Likewise.
19777 (gimple_omp_taskreg_clauses_ptr): Likewise.
19778 (gimple_omp_taskreg_set_clauses): Likewise.
19779 (gimple_omp_taskreg_child_fn): Likewise.
19780 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19781 (gimple_omp_taskreg_set_child_fn): Likewise.
19782 (gimple_omp_taskreg_data_arg): Likewise.
19783 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19784 (gimple_omp_taskreg_set_data_arg): Likewise.
19785 (gimple_omp_task_copy_fn): Likewise.
19786 (gimple_omp_task_copy_fn_ptr): Likewise.
19787 (gimple_omp_task_set_copy_fn): Likewise.
19788 (gimple_omp_task_arg_size): Likewise.
19789 (gimple_omp_task_arg_size_ptr): Likewise.
19790 (gimple_omp_task_set_arg_size): Likewise.
19791 (gimple_omp_task_arg_align): Likewise.
19792 (gimple_omp_task_arg_align_ptr): Likewise.
19793 (gimple_omp_task_set_arg_align): Likewise.
19794 (gimple_omp_single_clauses): Likewise.
19795 (gimple_omp_single_clauses_ptr): Likewise.
19796 (gimple_omp_single_set_clauses): Likewise.
19797 (gimple_omp_target_clauses): Likewise.
19798 (gimple_omp_target_clauses_ptr): Likewise.
19799 (gimple_omp_target_set_clauses): Likewise.
19800 (gimple_omp_target_child_fn): Likewise.
19801 (gimple_omp_target_child_fn_ptr): Likewise.
19802 (gimple_omp_target_set_child_fn): Likewise.
19803 (gimple_omp_target_data_arg): Likewise.
19804 (gimple_omp_target_data_arg_ptr): Likewise.
19805 (gimple_omp_target_set_data_arg): Likewise.
19806 (gimple_omp_teams_clauses): Likewise.
19807 (gimple_omp_teams_clauses_ptr): Likewise.
19808 (gimple_omp_teams_set_clauses): Likewise.
19809 (gimple_omp_sections_clauses): Likewise.
19810 (gimple_omp_sections_clauses_ptr): Likewise.
19811 (gimple_omp_sections_set_clauses): Likewise.
19812 (gimple_omp_sections_control): Likewise.
19813 (gimple_omp_sections_control_ptr): Likewise.
19814 (gimple_omp_sections_set_control): Likewise.
19815 (gimple_omp_for_set_cond): Likewise.
19816 (gimple_omp_for_cond): Likewise.
19817 (gimple_omp_atomic_store_set_val): Likewise.
19818 (gimple_omp_atomic_store_val): Likewise.
19819 (gimple_omp_atomic_store_val_ptr): Likewise.
19820 (gimple_omp_atomic_load_set_lhs): Likewise.
19821 (gimple_omp_atomic_load_lhs): Likewise.
19822 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19823 (gimple_omp_atomic_load_set_rhs): Likewise.
19824 (gimple_omp_atomic_load_rhs): Likewise.
19825 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19826 (gimple_omp_continue_control_def): Likewise.
19827 (gimple_omp_continue_control_def_ptr): Likewise.
19828 (gimple_omp_continue_set_control_def): Likewise.
19829 (gimple_omp_continue_control_use): Likewise.
19830 (gimple_omp_continue_control_use_ptr): Likewise.
19831 (gimple_omp_continue_set_control_use): Likewise.
19832 (gimple_transaction_body_ptr): Likewise.
19833 (gimple_transaction_label): Likewise.
19834 (gimple_transaction_label_ptr): Likewise.
19835 (gimple_transaction_set_body): Likewise.
19836 (gimple_transaction_set_label): Likewise.
19837
19838 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19839 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19840 * ipa-ref.c (ipa_record_reference): Likewise.
19841 * ipa-reference.c (analyze_function): Likewise.
19842 (ipa_reference_write_optimization_summary): Likewise.
19843 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19844 (address_taken_from_non_vtable_p): Likewise.
19845 (comdat_can_be_unshared_p_1): Likewise.
19846 * lto-cgraph.c (lto_output_ref): Likewise.
19847 (add_references): Likewise.
19848 (compute_ltrans_boundary): Likewise.
19849 (output_symtab): Likewise.
19850 (input_ref): Likewise.
19851 (input_cgraph_1): Likewise.
19852 (output_cgraph_opt_summary): Likewise.
19853 * lto-streamer-out.c (lto_output): Likewise.
19854 (output_symbol_p): Likewise.
19855 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19856 (lsei_start_function_in_partition): Likewise.
19857 (lsei_next_variable_in_partition): Likewise.
19858 (lsei_start_variable_in_partition): Likewise.
19859 * symtab.c (insert_to_assembler_name_hash): Likewise.
19860 (unlink_from_assembler_name_hash): Likewise.
19861 (symtab_unregister_node): Likewise.
19862 (symtab_remove_node): Likewise.
19863 (dump_symtab_node): Likewise.
19864 (verify_symtab_base): Likewise.
19865 (verify_symtab_node): Likewise.
19866 (symtab_make_decl_local): Likewise.
19867 (symtab_alias_ultimate_target): Likewise.
19868 (symtab_resolve_alias): Likewise.
19869 (symtab_get_symbol_partitioning_class): Likewise.
19870 * tree-phinodes.c (allocate_phi_node): Likewise.
19871 (reserve_phi_args_for_new_edge): Likewise.
19872 (remove_phi_args): Likewise.
19873 * varpool.c (varpool_node_for_asm): Likewise.
19874 (varpool_remove_unreferenced_decls): Likewise.
19875
19876 2014-04-23 Jeff Law <law@redhat.com>
19877
19878 PR tree-optimization/60902
19879 * tree-ssa-threadedge.c
19880 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19881 invalidate outputs from statements that do not produce useful
19882 outputs for threading.
19883
19884 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19885
19886 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19887 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19888 machine descriptions for Stack Smashing Protector.
19889
19890 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19891
19892 * aarch64.md (<optab>_rol<mode>3): New pattern.
19893 (<optab>_rolsi3_uxtw): Likewise.
19894 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19895
19896 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19897
19898 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19899 (arm_cortex_a12_tune): Likewise.
19900
19901 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19902
19903 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19904
19905 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19906
19907 * config/arm/arm.md (arm_rev16si2): New pattern.
19908 (arm_rev16si2_alt): Likewise.
19909 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19910
19911 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19912
19913 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19914 (rev16<mode>2_alt): Likewise.
19915 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19916 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19917 (aarch_rev16_shleft_mask_imm_p): Likewise.
19918 (aarch_rev16_p_1): Likewise.
19919 (aarch_rev16_p): Likewise.
19920 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19921 (aarch_rev16_shright_mask_imm_p): Likewise.
19922 (aarch_rev16_shleft_mask_imm_p): Likewise.
19923
19924 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19925
19926 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19927 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19928 rev cost.
19929 (cortex_a53_extra_costs): Likewise.
19930 (cortex_a57_extra_costs): Likewise.
19931 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19932 (cortexa7_extra_costs): Likewise.
19933 (cortexa8_extra_costs): Likewise.
19934 (cortexa12_extra_costs): Likewise.
19935 (cortexa15_extra_costs): Likewise.
19936 (v7m_extra_costs): Likewise.
19937 (arm_new_rtx_costs): Handle BSWAP.
19938
19939 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19940
19941 * config/arm/arm.c (cortexa8_extra_costs): New table.
19942 (arm_cortex_a8_tune): New tuning struct.
19943 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19944
19945 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19946
19947 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19948
19949 2014-04-23 Richard Biener <rguenther@suse.de>
19950
19951 * Makefile.in (OBJS): Remove loop-unswitch.o.
19952 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19953 * passes.def (pass_rtl_unswitch): Likewise.
19954 * loop-init.c (gate_rtl_unswitch): Likewise.
19955 (rtl_unswitch): Likewise.
19956 (pass_data_rtl_unswitch): Likewise.
19957 (pass_rtl_unswitch): Likewise.
19958 (make_pass_rtl_unswitch): Likewise.
19959 * rtl.h (reversed_condition): Likewise.
19960 (compare_and_jump_seq): Likewise.
19961 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19962 and make static.
19963 * loop-unroll.c (compare_and_jump_seq): Likewise.
19964
19965 2014-04-23 Richard Biener <rguenther@suse.de>
19966
19967 PR tree-optimization/60903
19968 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19969 commented code block.
19970 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19971 loop flags to newly created BBs and edges.
19972
19973 2014-04-23 Nick Clifton <nickc@redhat.com>
19974
19975 * config/msp430/msp430.c (msp430_handle_option): Move function
19976 to msp430-common.c
19977 (msp430_option_override): Simplify mcu and mcpu option handling.
19978 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19979 support for -mhwmult command line option.
19980 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19981 -mhwmult command line option.
19982 (msp430_hwmult_enabled): Delete.
19983 (msp43o_output_labelref): Add support for -mhwmult command line option.
19984 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19985 (umulsidi3): Likewise.
19986 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19987 (mcpu, mlarge, msmall): Likewise.
19988 (mhwmult): New option.
19989 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19990 prototype.
19991 (msp430_is_f5_mcu): Remove prototype.
19992 (msp430_use_f5_series_hwmult): Add prototype.
19993 * config/msp430/msp430-opts.h: New file.
19994 * common/config/msp430: New directory.
19995 * common/config/msp430/msp430-common.c: New file.
19996 * config.gcc (msp430): Remove target_has_targetm_common.
19997 * doc/invoke.texi: Document -mhwmult command line option.
19998
19999 2014-04-23 Nick Clifton <nickc@redhat.com>
20000
20001 * config/i386/cygwin.h (ENDFILE_SPEC): Include
20002 default-manifest.o if it can be found in the search path.
20003 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20004
20005 2014-04-23 Terry Guo <terry.guo@arm.com>
20006
20007 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
20008
20009 2014-04-23 Richard Biener <rguenther@suse.de>
20010
20011 PR middle-end/60895
20012 * tree-inline.c (declare_return_variable): Use mark_addressable.
20013
20014 2014-04-23 Richard Biener <rguenther@suse.de>
20015
20016 PR middle-end/60891
20017 * loop-init.c (loop_optimizer_init): Make sure to apply
20018 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
20019
20020 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20021
20022 PR sanitizer/60275
20023 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
20024 New options.
20025 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
20026 if flag_sanitize_undefined_trap_on_error.
20027 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
20028 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
20029 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
20030 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
20031 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
20032 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
20033 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
20034 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
20035 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
20036 * ubsan.c (ubsan_instrument_unreachable): Return
20037 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
20038 (ubsan_expand_null_ifn): Emit __builtin_trap ()
20039 if flag_sanitize_undefined_trap_on_error and
20040 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
20041 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
20042 instrument_bool_enum_load): Emit __builtin_trap () if
20043 flag_sanitize_undefined_trap_on_error and
20044 __builtin_handle_*_abort () if !flag_sanitize_recover.
20045 * doc/invoke.texi (-fsanitize-recover,
20046 -fsanitize-undefined-trap-on-error): Document.
20047
20048 2014-04-22 Christian Bruel <christian.bruel@st.com>
20049
20050 * config/sh/sh.md (mov<mode>): Replace movQIHI.
20051 Force immediates to SImode.
20052
20053 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
20054
20055 * config/nios2/nios2.md (UNSPEC_ROUND): New.
20056 (lroundsfsi2): New.
20057 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
20058 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
20059 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
20060 (nios2_fpu_insn): Add entry for round.
20061 (N2FPU_NO_ERRNO_P): Define.
20062 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
20063 flag_errno_math.
20064 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
20065
20066 2014-04-22 Richard Henderson <rth@redhat.com>
20067
20068 * config/aarch64/aarch64 (addti3, subti3): New expanders.
20069 (add<GPI>3_compare0): Remove leading * from name.
20070 (add<GPI>3_carryin): Likewise.
20071 (sub<GPI>3_compare0): Likewise.
20072 (sub<GPI>3_carryin): Likewise.
20073 (<su_optab>mulditi3): New expander.
20074 (multi3): New expander.
20075 (madd<GPI>): Remove leading * from name.
20076
20077 2014-04-22 Martin Jambor <mjambor@suse.cz>
20078
20079 * cgraphclones.c (cgraph_function_versioning): Copy
20080 ipa_transforms_to_apply instead of asserting it is empty.
20081
20082 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
20083
20084 PR target/60868
20085 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
20086 on count_exp to get mode.
20087
20088 2014-04-22 Andrew Pinski <apinski@cavium.com>
20089
20090 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
20091 Handle TLS for ILP32.
20092 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
20093 (tlsie_small_<mode>): this and handle PTR.
20094 (tlsie_small_sidi): New pattern.
20095 (tlsle_small): Change to an expand to handle ILP32.
20096 (tlsle_small_<mode>): New pattern.
20097 (tlsdesc_small): Rename to ...
20098 (tlsdesc_small_<mode>): this and handle PTR.
20099
20100 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20101
20102 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
20103
20104 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20105
20106 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20107 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
20108 (aarch64_types_signed_poly_qualifiers): Likewise.
20109 (aarch64_types_unsigned_signed_qualifiers): Likewise.
20110 (aarch64_types_poly_signed_qualifiers): Likewise.
20111 (TYPES_REINTERP_SS): Type macro added.
20112 (TYPES_REINTERP_SU): Likewise.
20113 (TYPES_REINTERP_SP): Likewise.
20114 (TYPES_REINTERP_US): Likewise.
20115 (TYPES_REINTERP_PS): Likewise.
20116 (aarch64_fold_builtin): New expression folding added.
20117 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
20118 Declarations removed.
20119 (REINTERP_SS): Declarations added.
20120 (REINTERP_US): Likewise.
20121 (REINTERP_PS): Likewise.
20122 (REINTERP_SU): Likewise.
20123 (REINTERP_SP): Likewise.
20124 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
20125 (vreinterpretq_p8_f64): Likewise.
20126 (vreinterpret_p16_f64): Likewise.
20127 (vreinterpretq_p16_f64): Likewise.
20128 (vreinterpret_f32_f64): Likewise.
20129 (vreinterpretq_f32_f64): Likewise.
20130 (vreinterpret_f64_f32): Likewise.
20131 (vreinterpret_f64_p8): Likewise.
20132 (vreinterpret_f64_p16): Likewise.
20133 (vreinterpret_f64_s8): Likewise.
20134 (vreinterpret_f64_s16): Likewise.
20135 (vreinterpret_f64_s32): Likewise.
20136 (vreinterpret_f64_s64): Likewise.
20137 (vreinterpret_f64_u8): Likewise.
20138 (vreinterpret_f64_u16): Likewise.
20139 (vreinterpret_f64_u32): Likewise.
20140 (vreinterpret_f64_u64): Likewise.
20141 (vreinterpretq_f64_f32): Likewise.
20142 (vreinterpretq_f64_p8): Likewise.
20143 (vreinterpretq_f64_p16): Likewise.
20144 (vreinterpretq_f64_s8): Likewise.
20145 (vreinterpretq_f64_s16): Likewise.
20146 (vreinterpretq_f64_s32): Likewise.
20147 (vreinterpretq_f64_s64): Likewise.
20148 (vreinterpretq_f64_u8): Likewise.
20149 (vreinterpretq_f64_u16): Likewise.
20150 (vreinterpretq_f64_u32): Likewise.
20151 (vreinterpretq_f64_u64): Likewise.
20152 (vreinterpret_s64_f64): Likewise.
20153 (vreinterpretq_s64_f64): Likewise.
20154 (vreinterpret_u64_f64): Likewise.
20155 (vreinterpretq_u64_f64): Likewise.
20156 (vreinterpret_s8_f64): Likewise.
20157 (vreinterpretq_s8_f64): Likewise.
20158 (vreinterpret_s16_f64): Likewise.
20159 (vreinterpretq_s16_f64): Likewise.
20160 (vreinterpret_s32_f64): Likewise.
20161 (vreinterpretq_s32_f64): Likewise.
20162 (vreinterpret_u8_f64): Likewise.
20163 (vreinterpretq_u8_f64): Likewise.
20164 (vreinterpret_u16_f64): Likewise.
20165 (vreinterpretq_u16_f64): Likewise.
20166 (vreinterpret_u32_f64): Likewise.
20167 (vreinterpretq_u32_f64): Likewise.
20168
20169 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20170
20171 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
20172 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
20173 (vreinterpret_p8_s8): Likewise.
20174 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
20175 (vreinterpret_p8_s16): Likewise.
20176 (vreinterpret_p8_s32): Likewise.
20177 (vreinterpret_p8_s64): Likewise.
20178 (vreinterpret_p8_f32): Likewise.
20179 (vreinterpret_p8_u8): Likewise.
20180 (vreinterpret_p8_u16): Likewise.
20181 (vreinterpret_p8_u32): Likewise.
20182 (vreinterpret_p8_u64): Likewise.
20183 (vreinterpret_p8_p16): Likewise.
20184 (vreinterpretq_p8_s8): Likewise.
20185 (vreinterpretq_p8_s16): Likewise.
20186 (vreinterpretq_p8_s32): Likewise.
20187 (vreinterpretq_p8_s64): Likewise.
20188 (vreinterpretq_p8_f32): Likewise.
20189 (vreinterpretq_p8_u8): Likewise.
20190 (vreinterpretq_p8_u16): Likewise.
20191 (vreinterpretq_p8_u32): Likewise.
20192 (vreinterpretq_p8_u64): Likewise.
20193 (vreinterpretq_p8_p16): Likewise.
20194 (vreinterpret_p16_s8): Likewise.
20195 (vreinterpret_p16_s16): Likewise.
20196 (vreinterpret_p16_s32): Likewise.
20197 (vreinterpret_p16_s64): Likewise.
20198 (vreinterpret_p16_f32): Likewise.
20199 (vreinterpret_p16_u8): Likewise.
20200 (vreinterpret_p16_u16): Likewise.
20201 (vreinterpret_p16_u32): Likewise.
20202 (vreinterpret_p16_u64): Likewise.
20203 (vreinterpret_p16_p8): Likewise.
20204 (vreinterpretq_p16_s8): Likewise.
20205 (vreinterpretq_p16_s16): Likewise.
20206 (vreinterpretq_p16_s32): Likewise.
20207 (vreinterpretq_p16_s64): Likewise.
20208 (vreinterpretq_p16_f32): Likewise.
20209 (vreinterpretq_p16_u8): Likewise.
20210 (vreinterpretq_p16_u16): Likewise.
20211 (vreinterpretq_p16_u32): Likewise.
20212 (vreinterpretq_p16_u64): Likewise.
20213 (vreinterpretq_p16_p8): Likewise.
20214 (vreinterpret_f32_s8): Likewise.
20215 (vreinterpret_f32_s16): Likewise.
20216 (vreinterpret_f32_s32): Likewise.
20217 (vreinterpret_f32_s64): Likewise.
20218 (vreinterpret_f32_u8): Likewise.
20219 (vreinterpret_f32_u16): Likewise.
20220 (vreinterpret_f32_u32): Likewise.
20221 (vreinterpret_f32_u64): Likewise.
20222 (vreinterpret_f32_p8): Likewise.
20223 (vreinterpret_f32_p16): Likewise.
20224 (vreinterpretq_f32_s8): Likewise.
20225 (vreinterpretq_f32_s16): Likewise.
20226 (vreinterpretq_f32_s32): Likewise.
20227 (vreinterpretq_f32_s64): Likewise.
20228 (vreinterpretq_f32_u8): Likewise.
20229 (vreinterpretq_f32_u16): Likewise.
20230 (vreinterpretq_f32_u32): Likewise.
20231 (vreinterpretq_f32_u64): Likewise.
20232 (vreinterpretq_f32_p8): Likewise.
20233 (vreinterpretq_f32_p16): Likewise.
20234 (vreinterpret_s64_s8): Likewise.
20235 (vreinterpret_s64_s16): Likewise.
20236 (vreinterpret_s64_s32): Likewise.
20237 (vreinterpret_s64_f32): Likewise.
20238 (vreinterpret_s64_u8): Likewise.
20239 (vreinterpret_s64_u16): Likewise.
20240 (vreinterpret_s64_u32): Likewise.
20241 (vreinterpret_s64_u64): Likewise.
20242 (vreinterpret_s64_p8): Likewise.
20243 (vreinterpret_s64_p16): Likewise.
20244 (vreinterpretq_s64_s8): Likewise.
20245 (vreinterpretq_s64_s16): Likewise.
20246 (vreinterpretq_s64_s32): Likewise.
20247 (vreinterpretq_s64_f32): Likewise.
20248 (vreinterpretq_s64_u8): Likewise.
20249 (vreinterpretq_s64_u16): Likewise.
20250 (vreinterpretq_s64_u32): Likewise.
20251 (vreinterpretq_s64_u64): Likewise.
20252 (vreinterpretq_s64_p8): Likewise.
20253 (vreinterpretq_s64_p16): Likewise.
20254 (vreinterpret_u64_s8): Likewise.
20255 (vreinterpret_u64_s16): Likewise.
20256 (vreinterpret_u64_s32): Likewise.
20257 (vreinterpret_u64_s64): Likewise.
20258 (vreinterpret_u64_f32): Likewise.
20259 (vreinterpret_u64_u8): Likewise.
20260 (vreinterpret_u64_u16): Likewise.
20261 (vreinterpret_u64_u32): Likewise.
20262 (vreinterpret_u64_p8): Likewise.
20263 (vreinterpret_u64_p16): Likewise.
20264 (vreinterpretq_u64_s8): Likewise.
20265 (vreinterpretq_u64_s16): Likewise.
20266 (vreinterpretq_u64_s32): Likewise.
20267 (vreinterpretq_u64_s64): Likewise.
20268 (vreinterpretq_u64_f32): Likewise.
20269 (vreinterpretq_u64_u8): Likewise.
20270 (vreinterpretq_u64_u16): Likewise.
20271 (vreinterpretq_u64_u32): Likewise.
20272 (vreinterpretq_u64_p8): Likewise.
20273 (vreinterpretq_u64_p16): Likewise.
20274 (vreinterpret_s8_s16): Likewise.
20275 (vreinterpret_s8_s32): Likewise.
20276 (vreinterpret_s8_s64): Likewise.
20277 (vreinterpret_s8_f32): Likewise.
20278 (vreinterpret_s8_u8): Likewise.
20279 (vreinterpret_s8_u16): Likewise.
20280 (vreinterpret_s8_u32): Likewise.
20281 (vreinterpret_s8_u64): Likewise.
20282 (vreinterpret_s8_p8): Likewise.
20283 (vreinterpret_s8_p16): Likewise.
20284 (vreinterpretq_s8_s16): Likewise.
20285 (vreinterpretq_s8_s32): Likewise.
20286 (vreinterpretq_s8_s64): Likewise.
20287 (vreinterpretq_s8_f32): Likewise.
20288 (vreinterpretq_s8_u8): Likewise.
20289 (vreinterpretq_s8_u16): Likewise.
20290 (vreinterpretq_s8_u32): Likewise.
20291 (vreinterpretq_s8_u64): Likewise.
20292 (vreinterpretq_s8_p8): Likewise.
20293 (vreinterpretq_s8_p16): Likewise.
20294 (vreinterpret_s16_s8): Likewise.
20295 (vreinterpret_s16_s32): Likewise.
20296 (vreinterpret_s16_s64): Likewise.
20297 (vreinterpret_s16_f32): Likewise.
20298 (vreinterpret_s16_u8): Likewise.
20299 (vreinterpret_s16_u16): Likewise.
20300 (vreinterpret_s16_u32): Likewise.
20301 (vreinterpret_s16_u64): Likewise.
20302 (vreinterpret_s16_p8): Likewise.
20303 (vreinterpret_s16_p16): Likewise.
20304 (vreinterpretq_s16_s8): Likewise.
20305 (vreinterpretq_s16_s32): Likewise.
20306 (vreinterpretq_s16_s64): Likewise.
20307 (vreinterpretq_s16_f32): Likewise.
20308 (vreinterpretq_s16_u8): Likewise.
20309 (vreinterpretq_s16_u16): Likewise.
20310 (vreinterpretq_s16_u32): Likewise.
20311 (vreinterpretq_s16_u64): Likewise.
20312 (vreinterpretq_s16_p8): Likewise.
20313 (vreinterpretq_s16_p16): Likewise.
20314 (vreinterpret_s32_s8): Likewise.
20315 (vreinterpret_s32_s16): Likewise.
20316 (vreinterpret_s32_s64): Likewise.
20317 (vreinterpret_s32_f32): Likewise.
20318 (vreinterpret_s32_u8): Likewise.
20319 (vreinterpret_s32_u16): Likewise.
20320 (vreinterpret_s32_u32): Likewise.
20321 (vreinterpret_s32_u64): Likewise.
20322 (vreinterpret_s32_p8): Likewise.
20323 (vreinterpret_s32_p16): Likewise.
20324 (vreinterpretq_s32_s8): Likewise.
20325 (vreinterpretq_s32_s16): Likewise.
20326 (vreinterpretq_s32_s64): Likewise.
20327 (vreinterpretq_s32_f32): Likewise.
20328 (vreinterpretq_s32_u8): Likewise.
20329 (vreinterpretq_s32_u16): Likewise.
20330 (vreinterpretq_s32_u32): Likewise.
20331 (vreinterpretq_s32_u64): Likewise.
20332 (vreinterpretq_s32_p8): Likewise.
20333 (vreinterpretq_s32_p16): Likewise.
20334 (vreinterpret_u8_s8): Likewise.
20335 (vreinterpret_u8_s16): Likewise.
20336 (vreinterpret_u8_s32): Likewise.
20337 (vreinterpret_u8_s64): Likewise.
20338 (vreinterpret_u8_f32): Likewise.
20339 (vreinterpret_u8_u16): Likewise.
20340 (vreinterpret_u8_u32): Likewise.
20341 (vreinterpret_u8_u64): Likewise.
20342 (vreinterpret_u8_p8): Likewise.
20343 (vreinterpret_u8_p16): Likewise.
20344 (vreinterpretq_u8_s8): Likewise.
20345 (vreinterpretq_u8_s16): Likewise.
20346 (vreinterpretq_u8_s32): Likewise.
20347 (vreinterpretq_u8_s64): Likewise.
20348 (vreinterpretq_u8_f32): Likewise.
20349 (vreinterpretq_u8_u16): Likewise.
20350 (vreinterpretq_u8_u32): Likewise.
20351 (vreinterpretq_u8_u64): Likewise.
20352 (vreinterpretq_u8_p8): Likewise.
20353 (vreinterpretq_u8_p16): Likewise.
20354 (vreinterpret_u16_s8): Likewise.
20355 (vreinterpret_u16_s16): Likewise.
20356 (vreinterpret_u16_s32): Likewise.
20357 (vreinterpret_u16_s64): Likewise.
20358 (vreinterpret_u16_f32): Likewise.
20359 (vreinterpret_u16_u8): Likewise.
20360 (vreinterpret_u16_u32): Likewise.
20361 (vreinterpret_u16_u64): Likewise.
20362 (vreinterpret_u16_p8): Likewise.
20363 (vreinterpret_u16_p16): Likewise.
20364 (vreinterpretq_u16_s8): Likewise.
20365 (vreinterpretq_u16_s16): Likewise.
20366 (vreinterpretq_u16_s32): Likewise.
20367 (vreinterpretq_u16_s64): Likewise.
20368 (vreinterpretq_u16_f32): Likewise.
20369 (vreinterpretq_u16_u8): Likewise.
20370 (vreinterpretq_u16_u32): Likewise.
20371 (vreinterpretq_u16_u64): Likewise.
20372 (vreinterpretq_u16_p8): Likewise.
20373 (vreinterpretq_u16_p16): Likewise.
20374 (vreinterpret_u32_s8): Likewise.
20375 (vreinterpret_u32_s16): Likewise.
20376 (vreinterpret_u32_s32): Likewise.
20377 (vreinterpret_u32_s64): Likewise.
20378 (vreinterpret_u32_f32): Likewise.
20379 (vreinterpret_u32_u8): Likewise.
20380 (vreinterpret_u32_u16): Likewise.
20381 (vreinterpret_u32_u64): Likewise.
20382 (vreinterpret_u32_p8): Likewise.
20383 (vreinterpret_u32_p16): Likewise.
20384 (vreinterpretq_u32_s8): Likewise.
20385 (vreinterpretq_u32_s16): Likewise.
20386 (vreinterpretq_u32_s32): Likewise.
20387 (vreinterpretq_u32_s64): Likewise.
20388 (vreinterpretq_u32_f32): Likewise.
20389 (vreinterpretq_u32_u8): Likewise.
20390 (vreinterpretq_u32_u16): Likewise.
20391 (vreinterpretq_u32_u64): Likewise.
20392 (vreinterpretq_u32_p8): Likewise.
20393 (vreinterpretq_u32_p16): Likewise.
20394
20395 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20396
20397 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
20398 Pattern extended.
20399 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
20400 (sqabs): Likewise.
20401 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
20402 (vqnegd_s64): Likewise.
20403 (vqabs_s64): Likewise.
20404 (vqabsd_s64): Likewise.
20405
20406 2014-04-22 Richard Henderson <rth@redhat.com>
20407
20408 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
20409 computation to the top of the loop.
20410
20411 2014-04-22 Renlin <renlin.li@arm.com>
20412 Jiong Wang <jiong.wang@arm.com>
20413
20414 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
20415 * config/aarch64/aarch64.c (aarch64_layout_frame)
20416 (aarch64_initial_elimination_offset): Likewise.
20417
20418 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
20419
20420 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
20421 Fix indentation.
20422
20423 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
20424
20425 * machmode.h (bitwise_mode_for_mode): Declare.
20426 * stor-layout.h (bitwise_type_for_mode): Likewise.
20427 * stor-layout.c (bitwise_mode_for_mode): New function.
20428 (bitwise_type_for_mode): Likewise.
20429 * builtins.c (fold_builtin_memory_op): Use it instead of
20430 int_mode_for_mode and build_nonstandard_integer_type.
20431
20432 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20433
20434 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
20435 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
20436 (*-*-solaris2*): Simplify.
20437 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
20438 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
20439 *-*-solaris2.9* handling.
20440
20441 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
20442 as bug.
20443 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
20444 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
20445 handling, simplify.
20446 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
20447 * configure: Regenerate.
20448
20449 * config/i386/sol2-9.h: Remove.
20450
20451 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
20452 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
20453 Remove Solaris 9 references.
20454
20455 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
20456
20457 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
20458 (floatuns<GPI:mode><GPF:mode>2): Remove.
20459 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
20460 and floatuns conversions.
20461 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
20462 and floatuns conversions.
20463 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
20464 (w1,w2): New mode attributes for inequal width conversions.
20465
20466 2014-04-22 Renlin Li <Renlin.Li@arm.com>
20467
20468 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
20469 the output asm format.
20470
20471 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
20472
20473 * config/aarch64/aarch64-simd.md
20474 (aarch64_cm<optab>di): Always split.
20475 (*aarch64_cm<optab>di): New.
20476 (aarch64_cmtstdi): Always split.
20477 (*aarch64_cmtstdi): New.
20478
20479 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20480
20481 PR tree-optimization/60823
20482 * omp-low.c (ipa_simd_modify_function_body): Go through
20483 all SSA_NAMEs and for those refering to vector arguments
20484 which are going to be replaced adjust SSA_NAME_VAR and,
20485 if it is a default definition, change it into a non-default
20486 definition assigned at the beginning of function from new_decl.
20487 (ipa_simd_modify_stmt_ops): Rewritten.
20488 * tree-dfa.c (set_ssa_default_def): When removing default def,
20489 check for NULL loc instead of NULL *loc.
20490
20491 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20492
20493 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
20494 restrictions on core registers for DImode values in Thumb2.
20495
20496 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20497
20498 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
20499 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
20500
20501 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20502
20503 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
20504 (*iordi_notzesidi_di): Likewise.
20505 (*iordi_notsesidi_di): Likewise.
20506
20507 2014-04-22 Ian Bolton <ian.bolton@arm.com>
20508
20509 * config/arm/arm-protos.h (tune_params): New struct members.
20510 * config/arm/arm.c: Initialise tune_params per processor.
20511 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
20512 for speed, based on new tune_params.
20513
20514 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
20515
20516 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
20517 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
20518 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
20519 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
20520 * config/aarch64/arm_neon.h (vrnd_f64): Added.
20521 (vrnda_f64): Likewise.
20522 (vrndi_f64): Likewise.
20523 (vrndm_f64): Likewise.
20524 (vrndn_f64): Likewise.
20525 (vrndp_f64): Likewise.
20526 (vrndx_f64): Likewise.
20527
20528 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20529
20530 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
20531 GET_MODE_SIZE argument is enum machine_mode.
20532
20533 2014-04-22 Jakub Jelinek <jakub@redhat.com>
20534
20535 PR target/60910
20536 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
20537 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
20538
20539 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
20540
20541 PR middle-end/60281
20542 * asan.c (asan_emit_stack_protection): Force the base to align to
20543 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
20544 appropriate bits if STRICT_ALIGNMENT.
20545 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
20546 when asan is on.
20547 (expand_used_vars): Leave a space in the stack frame for alignment
20548 if STRICT_ALIGNMENT.
20549
20550 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20551
20552 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20553 than a gimple.
20554 (gimple_store_p): Likewise.
20555 (gimple_assign_load_p): Likewise.
20556 (gimple_assign_cast_p): Likewise.
20557 (gimple_clobber_p): Likewise.
20558
20559 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20560 rather than a gimple.
20561 (gimple_assign_cast_p): Likewise.
20562
20563 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20564
20565 PR target/60735
20566 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20567 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20568
20569 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20570 more debug information for E500 if -mdebug=reg.
20571
20572 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20573
20574 PR target/60909
20575 * config/i386/i386.c (ix86_expand_builtin)
20576 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20577 register for target RTX.
20578 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20579
20580 2014-04-18 Cong Hou <congh@google.com>
20581
20582 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20583 the widen-mult pattern by handling two operands with different sizes,
20584 and operands whose size is smaller than half of the result type.
20585
20586 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20587
20588 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20589 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20590 (do_estimate_edge_time): Compute it.
20591 * ipa-inline.c (want_inline_small_function_p): Bypass
20592 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20593
20594 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20595
20596 * ipa-inline.c (spec_rem): New static variable.
20597 (dump_overall_stats): New function.
20598 (dump_inline_stats): New function.
20599
20600 2014-04-18 Richard Henderson <rth@redhat.com>
20601
20602 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20603 to GET_MODE_SIZE, not a reg_class_t.
20604
20605 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20606
20607 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20608 (vsx_xxmrglw_<mode>): Likewise.
20609
20610 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20611
20612 PR target/60876
20613 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20614 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20615 (rs6000_init_hard_regno_mode_ok): Likewise.
20616
20617 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20618
20619 * ipa-inline.c (inline_small_functions): Account only non-cold
20620 functions.
20621 * doc/invoke.texi (inline-unit-growth): Update documentation.
20622
20623 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20624
20625 * config/rs6000/rs6000.md (addti3, subti3): New.
20626
20627 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20628
20629 PR target/60863
20630 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20631 comment. Check optimize_insn_for_size_p instead of
20632 optimize_insn_for_speed_p.
20633
20634 2014-04-17 Martin Jambor <mjambor@suse.cz>
20635
20636 * gimple-iterator.c (gsi_start_edge): New function.
20637 * gimple-iterator.h (gsi_start_edge): Declare.
20638 * tree-sra.c (single_non_eh_succ): New function.
20639 (disqualify_ops_if_throwing_stmt): Renamed to
20640 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20641 having one non-EH successor BB.
20642 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20643 generate loads into replacements.
20644 (sra_modify_assign): Likewise and and also use the simple path for
20645 such statements.
20646 (sra_modify_function_body): Commit statements on edges.
20647
20648 2014-04-17 Richard Biener <rguenther@suse.de>
20649
20650 PR middle-end/60849
20651 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20652 comparison results and add clarifying comment.
20653
20654 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20655
20656 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20657 (blank_mode): Initialize it.
20658 (emit_mode_size_inline, emit_mode_nunits_inline,
20659 emit_mode_inner_inline): New functions.
20660 (emit_insn_modes_h): Call them and surround their output with
20661 #if GCC_VERSION >= 4001 ... #endif.
20662 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20663 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20664 mode_* arrays if the argument is __builtin_constant_p.
20665 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20666 is enum machine_mode.
20667
20668 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20669
20670 * passes.c (opt_pass::execute): Adjust.
20671 (pass_manager::execute_pass_mode_switching): Likewise.
20672 (early_local_passes::execute): Likewise.
20673 (execute_one_pass): Pass cfun to the pass's execute method.
20674 * tree-pass.h (opt_pass::execute): Add function * argument.
20675 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20676 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20677 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20678 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20679 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20680 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20681 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20682 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20683 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20684 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20685 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20686 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20687 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20688 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20689 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20690 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20691 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20692 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20693 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20694 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20695 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20696 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20697 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20698 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20699 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20700 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20701 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20702 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20703 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20704 Adjust.
20705
20706 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20707
20708 * passes.c (opt_pass::gate): Take function * argument.
20709 (gate_all_early_local_passes): Merge into
20710 (early_local_passes::gate): this.
20711 (gate_all_early_optimizations): Merge into
20712 (all_early_optimizations::gate): this.
20713 (gate_all_optimizations): Mege into
20714 (all_optimizations::gate): this.
20715 (gate_all_optimizations_g): Merge into
20716 (all_optimizations_g::gate): this.
20717 (gate_rest_of_compilation): Mege into
20718 (rest_of_compilation::gate): this.
20719 (gate_postreload): Merge into
20720 (postreload::gate): this.
20721 (dump_one_pass): Pass cfun to the pass's gate method.
20722 (execute_ipa_summary_passes): Likewise.
20723 (execute_one_pass): Likewise.
20724 (ipa_write_summaries_2): Likewise.
20725 (ipa_write_optimization_summaries_1): Likewise.
20726 (ipa_read_summaries_1): Likewise.
20727 (ipa_read_optimization_summaries_1): Likewise.
20728 (execute_ipa_stmt_fixups): Likewise.
20729 * tree-pass.h (opt_pass::gate): Add function * argument.
20730 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20731 combine-stack-adj.c, combine.c, compare-elim.c,
20732 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20733 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20734 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20735 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20736 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20737 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20738 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20739 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20740 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20741 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20742 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20743 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20744 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20745 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20746 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20747 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20748 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20749 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20750 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20751 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20752 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20753 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20754 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20755 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20756 var-tracking.c, vtable-verify.c, web.c: Adjust.
20757
20758 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20759
20760 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20761 * configure: Regenerate.
20762
20763 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20764
20765 * passes.c (dump_one_pass): don't check pass->has_gate.
20766 (execute_ipa_summary_passes): Likewise.
20767 (execute_one_pass): Likewise.
20768 (ipa_write_summaries_2): Likewise.
20769 (ipa_write_optimization_summaries_1): Likewise.
20770 (ipa_read_optimization_summaries_1): Likewise.
20771 (execute_ipa_stmt_fixups): Likewise.
20772 * tree-pass.h (pass_data::has_gate): Remove.
20773 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20774 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20775 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20776 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20777 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20778 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20779 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20780 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20781 gimple-low.c, gimple-ssa-isolate-paths.c,
20782 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20783 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20784 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20785 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20786 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20787 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20788 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20789 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20790 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20791 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20792 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20793 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20794 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20795 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20796 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20797 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20798 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20799 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20800 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20801 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20802 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20803 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20804 Adjust.
20805
20806 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20807
20808 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20809 declaration.
20810 * passes.c (pass_manager::register_dump_files_1): Merge into
20811 (pass_manager::register_dump_files): this, and remove its handling of
20812 properties since the pass always has the properties anyway.
20813 (pass_manager::pass_manager): Adjust.
20814
20815 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20816
20817 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20818 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20819 dealing with properties.
20820 (pass_manager::register_dump_files): Adjust.
20821
20822 2014-03-20 Mark Wielaard <mjw@redhat.com>
20823
20824 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20825 then represent the bound as normal constant value.
20826
20827 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20828
20829 PR target/60847
20830 Forward port from 4.8 branch
20831 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20832
20833 * config/i386/bmiintrin.h (_blsi_u32): New.
20834 (_blsi_u64): Ditto.
20835 (_blsr_u32): Ditto.
20836 (_blsr_u64): Ditto.
20837 (_blsmsk_u32): Ditto.
20838 (_blsmsk_u64): Ditto.
20839 (_tzcnt_u32): Ditto.
20840 (_tzcnt_u64): Ditto.
20841
20842 2014-04-17 Kito Cheng <kito@0xlab.org>
20843
20844 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20845
20846 2014-04-17 Richard Biener <rguenther@suse.de>
20847
20848 PR middle-end/60849
20849 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20850 boolean results for comparisons.
20851
20852 2014-04-17 Richard Biener <rguenther@suse.de>
20853
20854 PR tree-optimization/60836
20855 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20856 initial PHI args to be gimple values.
20857
20858 2014-04-17 Richard Biener <rguenther@suse.de>
20859
20860 PR tree-optimization/60841
20861 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20862 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20863 of stmts to SLP build.
20864 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20865 (vect_analyze_slp): Likewise.
20866 (vect_analyze_slp_instance): Likewise.
20867 (vect_build_slp_tree): Limit overall SLP tree growth.
20868 * tree-vectorizer.h (vect_analyze_data_refs,
20869 vect_analyze_slp): Adjust prototypes.
20870
20871 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20872
20873 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20874 Silvermont.
20875
20876 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20877
20878 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20879 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20880 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20881 for TARGET_SLOW_PSHUFB
20882
20883 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20884
20885 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20886 * config/i386/i386.c (intel_cost): Ditto.
20887
20888 2014-04-17 Joey Ye <joey.ye@arm.com>
20889
20890 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20891
20892 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20893
20894 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20895 with -fuse-profile.
20896
20897 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20898
20899 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20900 (type_all_derivations_known_p): New predicate.
20901 (type_all_ctors_visible_p): New predicate.
20902 (type_possibly_instantiated_p): New predicate.
20903 (get_odr_type): Compute all_derivations_known.
20904 (dump_odr_type): Dump the flag.
20905 (maybe_record_type): Cleanup.
20906 (record_target_from_binfo): Add bases_to_consider array;
20907 record bases for types w/o instances and skip CXX destructor.
20908 (possible_polymorphic_call_targets_1): Add bases_to_consider
20909 and consider_construction parameters; check if type may have instance.
20910 (get_polymorphic_call_info): Set maybe_in_construction to true
20911 when we know nothing.
20912 (record_targets_from_bases): Skip CXX destructors; they are
20913 never called for types in construction.
20914 (possible_polymorphic_call_targets): Do not record target when
20915 type may not have instance.
20916
20917 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20918
20919 PR ipa/60854
20920 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20921 external aliases alive, too.
20922
20923 2014-04-16 Andrew Pinski <apinski@cavium.com>
20924
20925 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20926 definition.
20927
20928 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20929
20930 * final.c (compute_alignments): Do not apply loop alignment to a block
20931 falling through to the exit.
20932
20933 2014-04-16 Catherine Moore <clm@codesourcery.com>
20934
20935 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20936 Adjust constraints for microMIPS store patterns.
20937
20938 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20939
20940 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20941
20942 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20943
20944 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20945 (append_use): Run at -O0.
20946 (append_vdef): Likewise.
20947 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20948 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20949
20950 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20951
20952 PR tree-optimization/60844
20953 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20954 (propagate_op_to_single_use, remove_visited_stmt_chain,
20955 linearize_expr, repropagate_negates, reassociate_bb): Use it
20956 instead of gsi_remove.
20957
20958 2014-04-16 Martin Jambor <mjambor@suse.cz>
20959
20960 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20961 ipa_transforms_to_apply.
20962 (cgraph_function_versioning): Assert that old_node has empty
20963 ipa_transforms_to_apply.
20964 * trans-mem.c (ipa_tm_create_version): Likewise.
20965 * tree-inline.c (tree_function_versioning): Do not duplicate
20966 ipa_transforms_to_apply.
20967
20968 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20969
20970 PR target/60817
20971 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20972 x86_64-*-* cases.
20973 Pass necessary as flags on 64-bit Solaris/x86.
20974 Use lowercase relocs for x86_64-*-*.
20975 * configure: Regenerate.
20976
20977 2014-04-15 Jan Hubicka <jh@suse.cz>
20978
20979 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20980 (maybe_record_node, likely_target_p): Use it.
20981
20982 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20983
20984 PR target/60839
20985 Revert following patch
20986
20987 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20988
20989 PR target/60735
20990 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20991 software floating point or no floating point registers, do not
20992 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20993 in GPRs that occurs after we tested for GPRs that would never be
20994 true.
20995
20996 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20997 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20998 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20999 specifically allow DDmode, since that does not use the SPE SIMD
21000 instructions.
21001
21002 2014-03-21 Mark Wielaard <mjw@redhat.com>
21003
21004 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
21005 as unsigned or int depending on type and value used.
21006
21007 2014-04-15 Richard Biener <rguenther@suse.de>
21008
21009 PR rtl-optimization/56965
21010 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
21011 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
21012 ... here.
21013 * alias.c (true_dependence_1): Do not call
21014 nonoverlapping_component_refs_p.
21015 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
21016 nonoverlapping_component_refs_p.
21017 (indirect_refs_may_alias_p): Likewise.
21018
21019 2014-04-15 Teresa Johnson <tejohnson@google.com>
21020
21021 * cfg.c (dump_bb_info): Fix flags check.
21022 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
21023
21024 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21025
21026 PR rtl-optimization/60663
21027 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
21028 avoid 0 cost.
21029
21030 2014-04-15 Richard Biener <rguenther@suse.de>
21031
21032 * lto-streamer.h (LTO_major_version): Bump to 4.
21033
21034 2014-04-15 Richard Biener <rguenther@suse.de>
21035
21036 * common.opt (lto_partition_model): New enum.
21037 (flto-partition=): Merge separate options with a single with argument,
21038 add -flto-partition=one support.
21039 * flag-types.h (enum lto_partition_model): Declare.
21040 * opts.c (finish_options): Remove duplicate -flto-partition=
21041 option check.
21042 * lto-wrapper.c (run_gcc): Adjust.
21043
21044 2014-04-15 Richard Biener <rguenther@suse.de>
21045
21046 * alias.c (ncr_compar): New function.
21047 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
21048
21049 2014-04-15 Richard Biener <rguenther@suse.de>
21050
21051 * alias.c (record_component_aliases): Do not walk BINFOs.
21052
21053 2014-04-15 Richard Biener <rguenther@suse.de>
21054
21055 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
21056 Add struct function argument and adjust.
21057 (find_func_aliases_for_call): Likewise.
21058 (find_func_aliases): Likewise.
21059 (find_func_clobbers): Likewise.
21060 (intra_create_variable_infos): Likewise.
21061 (compute_points_to_sets): Likewise.
21062 (ipa_pta_execute): Adjust. Do not push/pop cfun.
21063
21064 2014-04-15 Richard Biener <rguenther@suse.de>
21065
21066 * tree.c (iterative_hash_expr): Use enum tree_code_class
21067 to store TREE_CODE_CLASS.
21068 (tree_block): Likewise.
21069 (tree_set_block): Likewise.
21070 * tree.h (fold_build_pointer_plus_loc): Use
21071 convert_to_ptrofftype_loc.
21072
21073 2014-04-15 Jakub Jelinek <jakub@redhat.com>
21074
21075 PR plugins/59335
21076 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
21077 added in 4.9.
21078
21079 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
21080
21081 * cfgloop.h (struct loop): Move force_vectorize down.
21082 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
21083 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
21084 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
21085 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
21086 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
21087 * tree-core.h (enum annot_expr_kind): Add new kind values.
21088 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
21089 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
21090 kinds.
21091 * tree.def (ANNOTATE_EXPR): Tweak comment.
21092
21093 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
21094
21095 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
21096 cxa_pure_virtual).
21097
21098 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
21099
21100 * tree.h (TYPE_IDENTIFIER): Declare.
21101 * tree.c (subrange_type_for_debug_p): Use it.
21102 * godump.c (go_format_type): Likewise.
21103 * dwarf2out.c (is_cxx_auto, modified_type_die,
21104 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
21105 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
21106
21107 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
21108
21109 PR lto/60820
21110 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
21111
21112 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
21113
21114 * config/i386/i386.c (examine_argument): Return bool. Return true if
21115 parameter should be passed in memory.
21116 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
21117 (construct_container): Update calls to examine_argument.
21118 (function_arg_advance_64): Ditto.
21119 (return_in_memory_32): Merge with ix86_return_in_memory.
21120 (return_in_memory_64): Ditto.
21121 (return_in_memory_ms_64): Ditto.
21122
21123 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
21124
21125 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
21126 * coverage.c (coverage_compute_profile_id): Handle externally visible
21127 symbols.
21128
21129 2014-04-14 Martin Jambor <mjambor@suse.cz>
21130
21131 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
21132 DECL_DISREGARD_INLINE_LIMITS functions.
21133
21134 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
21135
21136 PR target/60827
21137 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
21138
21139 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
21140
21141 PR target/60827
21142 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
21143 optimize_insn_for_speed_p instead of
21144 optimize_function_for_speed_p.
21145
21146 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
21147
21148 * doc/invoke.texi (free): Document AArch64.
21149
21150 2014-04-14 Richard Biener <rguenther@suse.de>
21151
21152 PR tree-optimization/60042
21153 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
21154 (insert_into_preds_of_block): Do not prevent PHI insertion
21155 for REFERENCE exprs here ...
21156 (eliminate_dom_walker::before_dom_children): ... but prevent
21157 their use here under similar conditions when applied to the
21158 IL after PRE optimizations.
21159
21160 2014-04-14 Richard Biener <rguenther@suse.de>
21161
21162 * passes.def: Move early points-to after early SRA.
21163
21164 2014-04-14 Richard Biener <rguenther@suse.de>
21165
21166 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
21167 check for which sign-changes we allow when forwarding
21168 a converted value into a switch.
21169
21170 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21171
21172 * stor-layout.c (place_field): Finalize non-constant offset for the
21173 field, if any.
21174
21175 2014-04-14 Richard Biener <rguenther@suse.de>
21176
21177 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
21178 as argument.
21179 (expand_switch_using_bit_tests_p): Likewise.
21180 (process_switch): Compute and pass on speed_p based on the
21181 switch stmt.
21182 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
21183 optimize_bb_for_speed_p.
21184
21185 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
21186
21187 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
21188 * function.h (struct function): Rename has_force_vect_loops into
21189 has_force_vectorize_loops.
21190 * lto-streamer-in.c (input_cfg): Adjust for renaming.
21191 (input_struct_function_base): Likewise.
21192 * lto-streamer-out.c (output_cfg): Likewise.
21193 (output_struct_function_base): Likewise.
21194 * omp-low.c (expand_omp_simd): Likewise.
21195 * tree-cfg.c (move_sese_region_to_fn): Likewise.
21196 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
21197 (version_loop_for_if_conversion): Likewise.
21198 (tree_if_conversion): Likewise.
21199 (main_tree_if_conversion): Likewise.
21200 (gate_tree_if_conversion): Likewise.
21201 * tree-inline.c (copy_loops): Likewise.
21202 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
21203 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
21204 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21205 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
21206 * tree-vectorizer.c (vectorize_loops): Likewise.
21207 * tree-vectorizer.h (unlimited_cost_model): Likewise.
21208
21209 2014-04-14 Richard Biener <rguenther@suse.de>
21210
21211 PR lto/60720
21212 * lto-streamer-out.c (wrap_refs): New function.
21213 (lto_output): Wrap symbol references in global initializes in
21214 type-preserving MEM_REFs.
21215
21216 2014-04-14 Christian Bruel <christian.bruel@st.com>
21217
21218 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
21219
21220 2014-04-14 Christian Bruel <christian.bruel@st.com>
21221
21222 * config/sh/sh.md (setmemqi): New expand pattern.
21223 * config/sh/sh.h (CLEAR_RATIO): Define.
21224 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
21225 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
21226
21227 2014-04-14 Richard Biener <rguenther@suse.de>
21228
21229 PR middle-end/55022
21230 * fold-const.c (negate_expr_p): Don't negate directional rounding
21231 division.
21232 (fold_negate_expr): Likewise.
21233
21234 2014-04-14 Richard Biener <rguenther@suse.de>
21235
21236 PR tree-optimization/59817
21237 PR tree-optimization/60453
21238 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
21239 recursion to catch all CHRECs in the scalar evolution and restrict
21240 the predicate for the remains appropriately.
21241
21242 2014-04-12 Catherine Moore <clm@codesourcery.com>
21243
21244 * config/mips/constraints.md: Add new register constraint "kb".
21245 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
21246 (*movhi_internal): Likewise.
21247 (*movqi_internal): Likewise.
21248 * config/mips/mips.h (M16_STORE_REGS): New register class.
21249 (REG_CLASS_NAMES): Add M16_STORE_REGS.
21250 (REG_CLASS_CONTENTS): Likewise.
21251 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
21252
21253 2014-04-11 Tobias Burnus <burnus@net-b.de>
21254
21255 PR c/60194
21256 * doc/invoke.texi (-Wformat-signedness): Document it.
21257 (Wformat=2): Mention that this enables -Wformat-signedness.
21258
21259 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21260
21261 * common/config/epiphany/epiphany-common.c
21262 (epiphany_option_optimization_table): Enable section anchors by
21263 default at -O1 or higher.
21264 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
21265 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
21266 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
21267 carries no extra cost.
21268 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
21269 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
21270 * config/epiphany/predicates.md (memclob_operand): New predicate.
21271 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
21272 Use memclob_operand predicate and X constraint for operand 3.
21273
21274 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21275
21276 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
21277 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
21278 its operands.
21279
21280 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
21281
21282 PR rtl-optimization/60651
21283 * mode-switching.c (optimize_mode_switching): Make sure to emit
21284 sets of a lower numbered entity before sets of a higher numbered
21285 entity to a mode of the same or lower priority.
21286 When creating a seginfo for a basic block that starts with a code
21287 label, move the insertion point past the code label.
21288 (new_seginfo): Document and enforce requirement that
21289 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
21290 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
21291 * doc/tm.texi: Regenerate.
21292
21293 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
21294
21295 PR target/60811
21296 * config/arc/arc.c (arc_save_restore): Fix assert typo.
21297
21298 2013-04-11 Jakub Jelinek <jakub@redhat.com>
21299
21300 * BASE-VER: Set to 4.10.0.
21301
21302 2014-04-11 Tobias Burnus <burnus@net-b.de>
21303
21304 PR other/59055
21305 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
21306 * doc/gcc.texi (Service): Update description in the @menu
21307 * doc/invoke.texi (Option Summary): Remove misplaced and
21308 duplicated @menu.
21309
21310 2014-04-11 Steve Ellcey <sellcey@mips.com>
21311 Jakub Jelinek <jakub@redhat.com>
21312
21313 PR middle-end/60556
21314 * expr.c (convert_move): Use emit_store_flag_force instead of
21315 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
21316 argument to it.
21317
21318 2014-04-11 Richard Biener <rguenther@suse.de>
21319
21320 PR middle-end/60797
21321 * varasm.c (assemble_alias): Avoid endless error reporting
21322 recursion by setting TREE_ASM_WRITTEN.
21323
21324 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21325
21326 * config/s390/s390.md: Add a splitter for NOT rtx.
21327
21328 2014-04-11 Jakub Jelinek <jakub@redhat.com>
21329
21330 PR rtl-optimization/60663
21331 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
21332
21333 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
21334 Jakub Jelinek <jakub@redhat.com>
21335
21336 PR lto/60567
21337 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
21338 flag from decl_node to node.
21339
21340 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21341
21342 PR debug/60655
21343 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
21344 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
21345 ameliorating the cases where it can be.
21346
21347 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
21348
21349 Revert
21350 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21351
21352 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21353 (loadsync_<mode>): Change mode.
21354 (load_quadpti, store_quadpti): New.
21355 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21356 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21357 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
21358
21359 2014-04-09 Cong Hou <congh@google.com>
21360
21361 PR testsuite/60773
21362 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
21363 documentation.
21364
21365 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21366
21367 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
21368 instead of vnor to exploit possible fusion opportunity in the
21369 future.
21370 (altivec_expand_vec_perm_const_le): Likewise.
21371
21372 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
21373
21374 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
21375 (loadsync_<mode>): Change mode.
21376 (load_quadpti, store_quadpti): New.
21377 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
21378 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
21379
21380 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
21381
21382 PR target/60763
21383 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
21384 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
21385 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
21386
21387 2014-04-08 Richard Biener <rguenther@suse.de>
21388
21389 PR middle-end/60706
21390 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
21391 a 64bit widest int print double-int similar to on HWI64 hosts.
21392
21393 2014-04-08 Richard Biener <rguenther@suse.de>
21394
21395 PR tree-optimization/60785
21396 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
21397 default defs properly.
21398
21399 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
21400
21401 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
21402 (Weffc++): Likewise.
21403
21404 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
21405
21406 * ipa-devirt.c (maybe_record_node): When node is not recorded,
21407 set completep to false rather than true.
21408
21409 2014-04-07 Douglas B Rupp <rupp@adacore.com>
21410
21411 PR target/60504
21412 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
21413 ARM_TARGET2_DWARF_FORMAT.
21414
21415 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
21416
21417 PR target/60609
21418 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
21419 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
21420 ADDR_DIFF_VEC.
21421
21422 2014-04-07 Richard Biener <rguenther@suse.de>
21423
21424 PR tree-optimization/60766
21425 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
21426 (may_eliminate_iv): Convert cand_value_at result to desired type.
21427
21428 2014-04-07 Jason Merrill <jason@redhat.com>
21429
21430 PR c++/60731
21431 * common.opt (-fno-gnu-unique): Add.
21432 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
21433
21434 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21435
21436 * haifa-sched.c: Fix outdated function reference and minor
21437 grammar errors in introductory comment.
21438
21439 2014-04-07 Richard Biener <rguenther@suse.de>
21440
21441 PR middle-end/60750
21442 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
21443 for noreturn calls.
21444 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
21445
21446 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
21447
21448 PR debug/55794
21449 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
21450 size accounting for thunks.
21451 (pa_asm_output_mi_thunk): Use final_start_function() and
21452 final_end_function() to output function start and end directives.
21453
21454 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
21455
21456 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
21457 device specific ISA/ feature information. Remove short_sp and
21458 errata_skip ds. Add avr_device_specific_features enum to have device
21459 specific info.
21460 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
21461 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
21462 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
21463 updated device specific info.
21464 * config/avr/avr-mcus.def: Merge device specific details to
21465 dev_attribute field.
21466 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
21467 errata_skip.
21468 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
21469 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
21470 assembler if RMW isa supported by current device.
21471 * config/avr/genmultilib.awk: Update as device info structure changed.
21472 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
21473
21474 2014-04-04 Cong Hou <congh@google.com>
21475
21476 PR tree-optimization/60656
21477 * tree-vect-stmts.c (supportable_widening_operation):
21478 Fix a bug that elements in a vector with vect_used_by_reduction
21479 property are incorrectly reordered when the operation on it is not
21480 consistant with the one in reduction operation.
21481
21482 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
21483
21484 PR rtl-optimization/60155
21485 * gcse.c (record_set_data): New function.
21486 (single_set_gcse): New function.
21487 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
21488 (hoist_code): Likewise.
21489 (get_pressure_class_and_nregs): Likewise.
21490
21491 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
21492
21493 * explow.c (probe_stack_range): Emit a final optimization blockage.
21494
21495 2014-04-04 Anthony Green <green@moxielogic.com>
21496
21497 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
21498 typos.
21499
21500 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
21501
21502 PR ipa/59626
21503 * lto-cgraph.c (input_overwrite_node): Check that partitioning
21504 flags are set only during streaming.
21505 * ipa.c (process_references, walk_polymorphic_call_targets,
21506 symtab_remove_unreachable_nodes): Drop bodies of always inline
21507 after early inlining.
21508 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
21509
21510 2014-04-04 Jakub Jelinek <jakub@redhat.com>
21511 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21512
21513 PR debug/60655
21514 * dwarf2out.c (const_ok_for_output_1): Reject expressions
21515 containing a NOT.
21516
21517 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21518
21519 PR bootstrap/60743
21520 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
21521 duration.
21522 (cortex_a53_fdivd): Likewise.
21523
21524 2014-04-04 Martin Jambor <mjambor@suse.cz>
21525
21526 PR ipa/60640
21527 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
21528 Adjust all callers.
21529 * cgraph.c (clone_of_p): Also return true if thunks match.
21530 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
21531 cgraph_function_or_thunk_node and an obsolete comment.
21532 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
21533 file.
21534 (build_function_decl_skip_args): Likewise.
21535 (set_new_clone_decl_and_node_flags): New function.
21536 (duplicate_thunk_for_node): Likewise.
21537 (redirect_edge_duplicating_thunks): Likewise.
21538 (cgraph_clone_node): New parameter args_to_skip, pass it to
21539 redirect_edge_duplicating_thunks which is called instead of
21540 cgraph_redirect_edge_callee.
21541 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
21542 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
21543
21544 2014-04-04 Jeff Law <law@redhat.com>
21545
21546 PR target/60657
21547 * config/arm/predicates.md (const_int_I_operand): New predicate.
21548 (const_int_M_operand): Similarly.
21549 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21550 const_int_operand.
21551 (insv_t2, extv_reg, extzv_t2): Likewise.
21552 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21553 (pop_multiple_with_writeback_and_return): Likewise.
21554 (vfp_pop_multiple_with_writeback): Likewise
21555
21556 2014-04-04 Richard Biener <rguenther@suse.de>
21557
21558 PR ipa/60746
21559 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21560 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21561 non-GIMPLE_LABELs.
21562 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21563 * gimplify.c (gimple_add_tmp_var_fn): New function.
21564 * gimple-expr.h (create_tmp_reg_fn): Declare.
21565 * gimple-expr.c (create_tmp_reg_fn): New function.
21566 * gimple-low.c (record_vars_into): Don't change cfun.
21567 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21568 code generation without cfun.
21569
21570 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21571
21572 PR bootstrap/60719
21573 * Makefile.in (install-driver): Fix shell scripting.
21574
21575 2014-04-03 Cong Hou <congh@google.com>
21576
21577 PR tree-optimization/60505
21578 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21579 threshold of number of iterations below which no vectorization
21580 will be done.
21581 * tree-vect-loop.c (new_loop_vec_info):
21582 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21583 * tree-vect-loop.c (vect_analyze_loop_operations):
21584 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21585 * tree-vect-loop.c (vect_transform_loop):
21586 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21587 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21588 of iterations of the loop and see if we should build the epilogue.
21589
21590 2014-04-03 Richard Biener <rguenther@suse.de>
21591
21592 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21593 (streamer_tree_cache_create): Adjust.
21594 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21595 to allow optional nodes array.
21596 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21597 (streamer_tree_cache_append): Likewise.
21598 (streamer_tree_cache_create): Create nodes array optionally
21599 as specified by parameter.
21600 * lto-streamer-out.c (create_output_block): Avoid maintaining
21601 the node array in the writer cache.
21602 (DFS_write_tree): Remove assertion.
21603 (produce_asm_for_decls): Free the out decl state hash table early.
21604 * lto-streamer-in.c (lto_data_in_create): Adjust for
21605 streamer_tree_cache_create prototype change.
21606
21607 2014-04-03 Richard Biener <rguenther@suse.de>
21608
21609 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21610 set TREE_CHAIN to NULL_TREE.
21611
21612 2014-04-03 Richard Biener <rguenther@suse.de>
21613
21614 PR tree-optimization/60740
21615 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21616 over all GIMPLE_COND operands.
21617
21618 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21619
21620 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21621 (Weffc++): Remove Scott's numbering, merge lists and reference
21622 Wnon-virtual-dtor.
21623
21624 2014-04-03 Nick Clifton <nickc@redhat.com>
21625
21626 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21627 properly.
21628
21629 2014-04-03 Martin Jambor <mjambor@suse.cz>
21630
21631 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21632 mention gcc_unreachable before failing.
21633 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21634 removed symbols.
21635
21636 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21637
21638 PR ipa/60659
21639 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21640 inconsistent code and instead mark the context inconsistent.
21641 (possible_polymorphic_call_targets): For inconsistent contexts
21642 return empty complete list.
21643
21644 2014-04-02 Anthony Green <green@moxielogic.com>
21645
21646 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21647 (extendqisi2, extendhisi2): Define.
21648 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21649 (WCHAR_TYPE): Change to unsigned int.
21650
21651 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21652
21653 PR tree-optimization/60733
21654 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21655 insertion point for PHI candidates to be the end of the feeding
21656 block for the PHI argument.
21657
21658 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21659
21660 PR rtl-optimization/60650
21661 * lra-constraints.c (process_alt_operands): Decrease reject for
21662 earlyclobber matching.
21663
21664 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21665
21666 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21667
21668 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21669
21670 * config/spu/spu.c (pad_bb): Do not crash when the last
21671 insn is CODE_FOR_blockage.
21672
21673 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21674
21675 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21676 lies outside the target mode.
21677
21678 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21679
21680 PR target/60735
21681 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21682 software floating point or no floating point registers, do not
21683 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21684 in GPRs that occurs after we tested for GPRs that would never be
21685 true.
21686
21687 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21688 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21689 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21690 specifically allow DDmode, since that does not use the SPE SIMD
21691 instructions.
21692
21693 2014-04-02 Richard Biener <rguenther@suse.de>
21694
21695 PR middle-end/60729
21696 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21697 MODE_INTs. Properly use negv_optab.
21698 (expand_abs): Likewise.
21699
21700 2014-04-02 Richard Biener <rguenther@suse.de>
21701
21702 PR bootstrap/60719
21703 * Makefile.in (install-driver): Guard extra installs with special
21704 names properly.
21705
21706 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21707
21708 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21709 Document vec_vgbbd.
21710
21711 2014-04-01 Richard Henderson <rth@redhat.com>
21712
21713 PR target/60704
21714 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21715 alternative enabled before register allocation.
21716
21717 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21718
21719 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21720 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21721 typo.
21722 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21723 (nios2_got_address): Update nios2_large_got_address call site.
21724 (nios2_delegitimize_address): New function.
21725 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21726 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21727 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21728
21729 2014-04-01 Martin Husemann <martin@duskware.de>
21730
21731 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21732 for -mabi=32.
21733
21734 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21735
21736 PR rtl-optimization/60604
21737 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21738 check from register_operand.
21739 (register_operand): Redefine in terms of general_operand.
21740 (nonmemory_operand): Use register_operand for the non-constant cases.
21741
21742 2014-04-01 Richard Biener <rguenther@suse.de>
21743
21744 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21745
21746 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21747
21748 * doc/invoke.texi (mapp-regs): Clarify.
21749
21750 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21751
21752 * config/i386/avx512fintrin.h (__v32hi): Define type.
21753 (__v64qi): Likewise.
21754 (_mm512_set1_epi8): Define.
21755 (_mm512_set1_epi16): Define.
21756 (_mm512_set4_epi32): Define.
21757 (_mm512_set4_epi64): Define.
21758 (_mm512_set4_pd): Define.
21759 (_mm512_set4_ps): Define.
21760 (_mm512_setr4_epi64): Define.
21761 (_mm512_setr4_epi32): Define.
21762 (_mm512_setr4_pd): Define.
21763 (_mm512_setr4_ps): Define.
21764 (_mm512_setzero_epi32): Define.
21765
21766 2014-03-31 Martin Jambor <mjambor@suse.cz>
21767
21768 PR middle-end/60647
21769 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21770 callsite_arguments_match_p. Updated all callers. Also check types of
21771 corresponding formal parameters and actual arguments.
21772 (not_all_callers_have_enough_arguments_p) Renamed to
21773 some_callers_have_mismatched_arguments_p.
21774
21775 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21776
21777 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21778
21779 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21780
21781 PR target/60034
21782 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21783 section anchor.
21784
21785 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21786
21787 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21788 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21789 Split out
21790 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21791 Use FMAMODE_NOVF512 mode iterator.
21792 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21793 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21794 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21795 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21796 Split out
21797 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21798 Use VF_128_256 mode iterator.
21799 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21800 Ditto.
21801
21802 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21803
21804 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21805 static chain if needed.
21806
21807 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21808
21809 PR target/60697
21810 * lra-constraints.c (index_part_to_reg): New.
21811 (process_address): Use it.
21812
21813 2014-03-27 Jeff Law <law@redhat.com>
21814 Jakub Jelinek <jakub@redhat.com>
21815
21816 PR target/60648
21817 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21818 gen_rtx_{PLUS,MULT} to build up the address expression.
21819
21820 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21821 creating non-canonical RTL.
21822
21823 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21824
21825 PR ipa/60243
21826 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21827 functions; reorganize to make cheap checks first.
21828 (inline_small_functions): Do not estimate growth when dumping;
21829 it is expensive.
21830 * ipa-inline.h (inline_summary): Add min_size.
21831 (growth_likely_positive): New function.
21832 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21833 (set_cond_stmt_execution_predicate): Cleanup.
21834 (estimate_edge_size_and_time): Compute min_size.
21835 (estimate_calls_size_and_time): Likewise.
21836 (estimate_node_size_and_time): Likewise.
21837 (inline_update_overall_summary): Update min_size.
21838 (do_estimate_edge_time): Likewise.
21839 (do_estimate_edge_size): Update.
21840 (do_estimate_edge_hints): Update.
21841 (growth_likely_positive): New function.
21842
21843 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21844
21845 PR target/60693
21846 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21847 also if addr has VOIDmode.
21848
21849 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21850
21851 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21852 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21853 Declare extern.
21854 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21855 instructions as well as AdvancedSIMD loads.
21856
21857 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21858
21859 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21860 Use crypto_aese type.
21861 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21862 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21863 crypto_aese, crypto_aesmc. Move to types.md.
21864 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21865 crypto_aesmc.
21866 * config/arm/iterators.md (crypto_type): Likewise.
21867
21868 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21869
21870 * cgraph.c: Include expr.h and tree-dfa.h.
21871 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21872 remove LHS.
21873
21874 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21875
21876 PR target/60675
21877 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21878 regs from checking multi-reg pseudos.
21879
21880 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21881
21882 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21883
21884 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21885
21886 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21887 if it would clobber the stack pointer, even temporarily.
21888
21889 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21890
21891 * mode-switching.c: Make small adjustments to the top comment.
21892
21893 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21894
21895 * config/rs6000/constraints.md (wD constraint): New constraint to
21896 match the constant integer to get the top DImode/DFmode out of a
21897 vector in a VSX register.
21898
21899 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21900 match the constant integer to get the top DImode/DFmode out of a
21901 vector in a VSX register.
21902
21903 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21904 for ISA 2.07.
21905
21906 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21907 vbpermq builtins.
21908
21909 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21910 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21911
21912 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21913 Optimize vec_extract of 64-bit values, where the value being
21914 extracted is in the top word, where we can use scalar
21915 instructions. Add direct move and store support. Combine the big
21916 endian/little endian vector select load support into a single insn.
21917 (vsx_extract_<mode>_internal1): Likewise.
21918 (vsx_extract_<mode>_internal2): Likewise.
21919 (vsx_extract_<mode>_load): Likewise.
21920 (vsx_extract_<mode>_store): Likewise.
21921 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21922 combined into vsx_extract_<mode>_load.
21923 (vsx_extract_<mode>_one_le): Likewise.
21924
21925 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21926 define the top 64-bit vector element.
21927
21928 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21929 constraint.
21930
21931 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21932 Document vec_vbpermq builtin.
21933
21934 PR target/60672
21935 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21936 enable use of xxsldwi and xxpermdi builtin functions.
21937 (vec_xxpermdi): Likewise.
21938
21939 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21940 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21941
21942 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21943
21944 PR rtl-optimization/60650
21945 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21946 first_p. Use it.
21947 (find_spills_for): New.
21948 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21949 Spill all pseudos on the second iteration.
21950
21951 2014-03-27 Marek Polacek <polacek@redhat.com>
21952
21953 PR c/50347
21954 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21955 types.
21956
21957 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21958
21959 * config/s390/s390.c (s390_can_use_return_insn): Check for
21960 call-saved FPRs on 31 bit.
21961
21962 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21963
21964 PR middle-end/60682
21965 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21966 if they need regimplification, just drop them instead of
21967 calling gimple_regimplify_operands on them.
21968
21969 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21970
21971 PR target/60580
21972 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21973 (aarch64_frame_pointer_required): Adjust logic.
21974 (aarch64_can_eliminate): Adjust logic.
21975 (aarch64_override_options_after_change): Adjust logic.
21976
21977 2014-03-27 Dehao Chen <dehao@google.com>
21978
21979 * ipa-inline.c (early_inliner): Update node's inline info.
21980
21981 2014-03-26 Dehao Chen <dehao@google.com>
21982
21983 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21984 compiler inserted conditional jumps for NAN float check.
21985
21986 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21987
21988 * ubsan.h (ubsan_create_data): Change second argument's type
21989 to const location_t *.
21990 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21991 _("<unknown>").
21992 (ubsan_create_data): Change second argument to const location_t *PLOC.
21993 Create Loc field whenever PLOC is non-NULL.
21994 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21995 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21996 callers.
21997
21998 PR other/59545
21999 * real.c (real_to_integer2): Change type of low to UHWI.
22000
22001 2014-03-26 Tobias Burnus <burnus@net-b.de>
22002
22003 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
22004 (CILK_SELF_SPECS): New define.
22005 (driver_self_specs): Use it.
22006
22007 2014-03-26 Richard Biener <rguenther@suse.de>
22008
22009 * tree-pretty-print.c (percent_K_format): Implement special
22010 case for LTO and its stripped down BLOCK tree.
22011
22012 2014-03-26 Jakub Jelinek <jakub@redhat.com>
22013
22014 PR sanitizer/60636
22015 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
22016
22017 * tree-vrp.c (simplify_internal_call_using_ranges): If only
22018 one range is range_int_cst_p, but not both, at least optimize
22019 addition/subtraction of 0 and multiplication by 0 or 1.
22020 * gimple-fold.c (gimple_fold_call): Fold
22021 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
22022 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
22023 INTEGER_CSTs, try to fold at least x * 0 and y - y.
22024
22025 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
22026
22027 PR rtl-optimization/60452
22028 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
22029 <case REG>: Return 1 for invalid offsets from the frame pointer.
22030
22031 2014-03-26 Marek Polacek <polacek@redhat.com>
22032
22033 PR c/37428
22034 * doc/extend.texi (C Extensions): Mention variable-length arrays in
22035 a structure/union.
22036
22037 2014-03-26 Marek Polacek <polacek@redhat.com>
22038
22039 PR c/39525
22040 * doc/extend.texi (Designated Inits): Describe what happens to omitted
22041 field members.
22042
22043 2014-03-26 Marek Polacek <polacek@redhat.com>
22044
22045 PR other/59545
22046 * ira-color.c (update_conflict_hard_regno_costs): Perform the
22047 multiplication in unsigned type.
22048
22049 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
22050
22051 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
22052
22053 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
22054
22055 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
22056
22057 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
22058
22059 PR ipa/60315
22060 * cif-code.def (UNREACHABLE) New code.
22061 * ipa-inline.c (inline_small_functions): Skip edges to
22062 __builtlin_unreachable.
22063 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
22064 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
22065 predicate to __bulitin_unreachable.
22066 (set_cond_stmt_execution_predicate): Fix issue when
22067 invert_tree_comparison returns ERROR_MARK.
22068 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
22069 propagate to inline clones.
22070 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
22071 to unreachable.
22072 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
22073 * cgraphclones.c (cgraph_clone_node): If call destination is already
22074 ureachable, do not redirect it back.
22075 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
22076 unreachable.
22077
22078 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
22079
22080 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
22081 Do not modify inline clones.
22082
22083 2014-03-25 Jakub Jelinek <jakub@redhat.com>
22084
22085 * config/i386/i386.md (general_sext_operand): New mode attr.
22086 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
22087 don't generate (sign_extend (const_int)).
22088 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
22089 operands[2]. Use We constraint instead of <i> and
22090 <general_sext_operand> predicate instead of <general_operand>.
22091 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
22092 * config/i386/constraints.md (We): New constraint.
22093 * config/i386/predicates.md (x86_64_sext_operand,
22094 sext_operand): New predicates.
22095
22096 2014-03-25 Martin Jambor <mjambor@suse.cz>
22097
22098 PR ipa/60600
22099 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
22100 inconsistent devirtualizations to __builtin_unreachable.
22101
22102 2014-03-25 Marek Polacek <polacek@redhat.com>
22103
22104 PR c/35449
22105 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
22106
22107 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
22108
22109 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
22110 order of elements for big-endian.
22111
22112 2014-03-25 Richard Biener <rguenther@suse.de>
22113
22114 PR middle-end/60635
22115 * gimplify-me.c (gimple_regimplify_operands): Update the
22116 re-gimplifed stmt.
22117
22118 2014-03-25 Martin Jambor <mjambor@suse.cz>
22119
22120 PR ipa/59176
22121 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
22122 (lto_output_varpool_node): Likewise.
22123 (input_overwrite_node): Likewise.
22124 (input_varpool_node): Likewise.
22125
22126 2014-03-25 Richard Biener <rguenther@suse.de>
22127
22128 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
22129 (run_gcc): Likewise.
22130
22131 2014-03-25 Jakub Jelinek <jakub@redhat.com>
22132
22133 * combine.c (simplify_compare_const): Add MODE argument.
22134 Handle mode_width 0 as very large mode_width.
22135 (try_combine, simplify_comparison): Adjust callers.
22136
22137 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
22138 type to avoid signed integer overflow.
22139 * explow.c (plus_constant): Likewise.
22140
22141 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
22142
22143 * doc/generic.texi: Correct typos.
22144
22145 2014-03-24 Tobias Burnus <burnus@net-b.de>
22146
22147 * doc/invoke.texi (-flto): Expand section about
22148 using static libraries with LTO.
22149
22150 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22151
22152 PR rtl-optimization/60501
22153 * optabs.def (addptr3_optab): New optab.
22154 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
22155 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
22156 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
22157
22158 * lra.c (emit_add3_insn): Use the addptr pattern if available.
22159
22160 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
22161
22162 2014-03-24 Ulrich Drepper <drepper@gmail.com>
22163
22164 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
22165 _mm512_set1_pd.
22166
22167 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
22168 (_mm256_undefined_ps): Define.
22169 (_mm256_undefined_pd): Define.
22170 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
22171 (_mm_undefined_pd): Define.
22172 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
22173 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
22174 (_mm512_undefined_ps): Define.
22175 (_mm512_undefined_pd): Define.
22176 Use _mm*_undefined_*.
22177 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
22178
22179 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
22180
22181 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
22182 (lshr_simd): DI mode added.
22183 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
22184 (aarch64_ushr_simddi): Likewise.
22185 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
22186 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
22187 (vshrd_n_u64): Likewise.
22188
22189 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22190
22191 * Makefile.in (s-macro_list): Depend on cc1.
22192
22193 2014-03-23 Teresa Johnson <tejohnson@google.com>
22194
22195 * ipa-utils.c (ipa_print_order): Use specified dump file.
22196
22197 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
22198
22199 PR rtl-optimization/60601
22200 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
22201
22202 * gcc.c (eval_spec_function): Initialize save_growing_value.
22203
22204 2014-03-22 Jakub Jelinek <jakub@redhat.com>
22205
22206 PR sanitizer/60613
22207 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
22208 code == MINUS_EXPR, never swap op0 with op1.
22209
22210 * toplev.c (init_local_tick): Avoid signed integer multiplication
22211 overflow.
22212 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
22213 shift by first operand's bitsize.
22214
22215 2014-03-21 Jakub Jelinek <jakub@redhat.com>
22216
22217 PR target/60610
22218 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
22219 redefine to 1 or 0.
22220 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
22221 TARGET_ISA_64BIT_P(x).
22222
22223 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22224
22225 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
22226 pattern for vector nor instead of subtract from splat(-1).
22227 (altivec_expand_vec_perm_const_le): Likewise.
22228
22229 2014-03-21 Richard Henderson <rth@twiddle.net>
22230
22231 PR target/60598
22232 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
22233 related insns after epilogue_completed.
22234
22235 2014-03-21 Martin Jambor <mjambor@suse.cz>
22236
22237 PR ipa/59176
22238 * cgraph.h (symtab_node): New flag body_removed.
22239 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
22240 when removing bodies.
22241 * symtab.c (dump_symtab_base): Dump body_removed flag.
22242 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
22243 had their bodies removed.
22244
22245 2014-03-21 Martin Jambor <mjambor@suse.cz>
22246
22247 PR ipa/60419
22248 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
22249 in the border.
22250
22251 2014-03-21 Richard Biener <rguenther@suse.de>
22252
22253 PR tree-optimization/60577
22254 * tree-core.h (struct tree_base): Document nothrow_flag use
22255 in DECL_NONALIASED.
22256 * tree.h (DECL_NONALIASED): New.
22257 (may_be_aliased): Adjust.
22258 * coverage.c (build_var): Set DECL_NONALIASED.
22259
22260 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22261
22262 * expr.c (expand_expr_real_1): Remove outdated comment.
22263
22264 2014-03-20 Jakub Jelinek <jakub@redhat.com>
22265
22266 PR middle-end/60597
22267 * ira.c (adjust_cleared_regs): Call copy_rtx on
22268 *reg_equiv[REGNO (loc)].src_p before passing it to
22269 simplify_replace_fn_rtx.
22270
22271 PR target/60568
22272 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
22273 into CONST, put pic register as first operand of PLUS. Use
22274 gen_const_mem for both 32-bit and 64-bit PIC got loads.
22275
22276 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22277
22278 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
22279
22280 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22281
22282 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
22283 around for store forwarding issue in the FPU on the UT699.
22284 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
22285 loads and operations if -mfix-ut699 is specified.
22286 (divtf3_hq): Tweak attribute.
22287 (sqrttf2_hq): Likewise.
22288
22289 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
22290
22291 * calls.c (store_one_arg): Remove incorrect const qualification on the
22292 type of the temporary.
22293 * cfgexpand.c (expand_return): Likewise.
22294 * expr.c (expand_constructor): Likewise.
22295 (expand_expr_real_1): Likewise.
22296
22297 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22298
22299 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
22300 of parts.
22301
22302 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
22303
22304 PR target/60039
22305 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
22306
22307 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
22308
22309 * config/arm/aarch-common-protos.h
22310 (alu_cost_table): Fix spelling of "extend".
22311 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
22312
22313 2014-03-19 Richard Biener <rguenther@suse.de>
22314
22315 PR middle-end/60553
22316 * tree-core.h (tree_type_common): Re-order pointer members
22317 to reduce recursion depth during GC walks.
22318
22319 2014-03-19 Marek Polacek <polacek@redhat.com>
22320
22321 PR sanitizer/60569
22322 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
22323 before accessing it.
22324
22325 2014-03-19 Richard Biener <rguenther@suse.de>
22326
22327 PR lto/59543
22328 * lto-streamer-in.c (input_function): In WPA stage do not drop
22329 debug stmts.
22330
22331 2014-03-19 Jakub Jelinek <jakub@redhat.com>
22332
22333 PR tree-optimization/60559
22334 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
22335 with build_zero_cst assignment.
22336
22337 2014-03-18 Kai Tietz <ktietz@redhat.com>
22338
22339 PR rtl-optimization/56356
22340 * sdbout.c (sdbout_parms): Verify that parms'
22341 incoming argument is valid.
22342 (sdbout_reg_parms): Likewise.
22343
22344 2014-03-18 Richard Henderson <rth@redhat.com>
22345
22346 PR target/60562
22347 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
22348 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
22349 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
22350
22351 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
22352
22353 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
22354 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
22355 Italicize plugin event names in description. Explain that
22356 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
22357 Remind that no GCC functions should be called after PLUGIN_FINISH.
22358 Explain what pragmas with expansion are.
22359
22360 2014-03-18 Martin Liska <mliska@suse.cz>
22361
22362 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
22363 gimple call statement is update.
22364 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
22365 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
22366
22367 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22368
22369 PR sanitizer/60557
22370 * ubsan.c (ubsan_instrument_unreachable): Call
22371 initialize_sanitizer_builtins.
22372 (ubsan_pass): Likewise.
22373
22374 PR sanitizer/60535
22375 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
22376 varpool_finalize_decl instead of rest_of_decl_compilation.
22377
22378 2014-03-18 Richard Biener <rguenther@suse.de>
22379
22380 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
22381 by using bitmap_and_compl instead of bitmap_and_compl_into.
22382 (df_rd_transfer_function): Likewise.
22383
22384 2014-03-18 Richard Biener <rguenther@suse.de>
22385
22386 * doc/lto.texi (fresolution): Fix typo.
22387
22388 2014-03-18 Richard Biener <rguenther@suse.de>
22389
22390 * doc/invoke.texi (flto): Update for changes in 4.9.
22391
22392 2014-03-18 Richard Biener <rguenther@suse.de>
22393
22394 * doc/loop.texi: Remove section on the removed lambda framework.
22395 Update loop docs with recent changes in preserving loop structure.
22396
22397 2014-03-18 Richard Biener <rguenther@suse.de>
22398
22399 * doc/lto.texi (-fresolution): Document.
22400
22401 2014-03-18 Richard Biener <rguenther@suse.de>
22402
22403 * doc/contrib.texi: Adjust my name.
22404
22405 2014-03-18 Jakub Jelinek <jakub@redhat.com>
22406
22407 PR ipa/58721
22408 * internal-fn.c: Include diagnostic-core.h.
22409 (expand_BUILTIN_EXPECT): New function.
22410 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
22411 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
22412 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
22413 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
22414 IFN_BUILTIN_EXPECT.
22415 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
22416 Revert 3 argument __builtin_expect code.
22417 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
22418 * gimple-fold.c (gimple_fold_call): Likewise.
22419 * tree.h (fold_builtin_expect): New prototype.
22420 * builtins.c (build_builtin_expect_predicate): Add predictor
22421 argument, if non-NULL, create 3 argument __builtin_expect.
22422 (fold_builtin_expect): No longer static. Add ARG2 argument,
22423 pass it through to build_builtin_expect_predicate.
22424 (fold_builtin_2): Adjust caller.
22425 (fold_builtin_3): Handle BUILT_IN_EXPECT.
22426 * internal-fn.def (BUILTIN_EXPECT): New.
22427
22428 2014-03-18 Tobias Burnus <burnus@net-b.de>
22429
22430 PR ipa/58721
22431 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
22432 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
22433 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
22434
22435 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
22436
22437 PR ipa/58721
22438 * predict.c (combine_predictions_for_bb): Fix up formatting.
22439 (expr_expected_value_1, expr_expected_value): Add predictor argument,
22440 fill what it points to if non-NULL.
22441 (tree_predict_by_opcode): Adjust caller, use the predictor.
22442 * predict.def (PRED_COMPARE_AND_SWAP): Add.
22443
22444 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
22445
22446 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
22447 proper constant for the store mode.
22448
22449 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
22450
22451 * symtab.c (change_decl_assembler_name): Fix transparent alias
22452 chain construction.
22453
22454 2014-03-16 Renlin Li <Renlin.Li@arm.com>
22455
22456 * config/aarch64/aarch64.c: Correct the comments about the
22457 aarch64 stack layout.
22458
22459 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
22460
22461 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
22462 check for GF_OMP_FOR_KIND_FOR.
22463
22464 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
22465
22466 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
22467 ymm and zmm register names.
22468
22469 2014-03-17 Jakub Jelinek <jakub@redhat.com>
22470
22471 PR target/60516
22472 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
22473 note creation for the 2010-08-31 changes.
22474
22475 2014-03-17 Marek Polacek <polacek@redhat.com>
22476
22477 PR middle-end/60534
22478 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
22479 as -fno-tree-loop-vectorize.
22480 (expand_omp_simd): Likewise.
22481
22482 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
22483
22484 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
22485 (eligible_for_call_delay): New prototype.
22486 * config/sparc/sparc.c (tls_call_delay): Rename into...
22487 (eligible_for_call_delay): ...this. Return false if the instruction
22488 cannot be put in the delay slot of a branch.
22489 (eligible_for_restore_insn): Simplify.
22490 (eligible_for_return_delay): Return false if the instruction cannot be
22491 put in the delay slot of a branch and simplify.
22492 (eligible_for_sibcall_delay): Return false if the instruction cannot be
22493 put in the delay slot of a branch.
22494 * config/sparc/sparc.md (fix_ut699): New attribute.
22495 (tls_call_delay): Delete.
22496 (in_call_delay): Reimplement.
22497 (eligible_for_sibcall_delay): Rename into...
22498 (in_sibcall_delay): ...this.
22499 (eligible_for_return_delay): Rename into...
22500 (in_return_delay): ...this.
22501 (in_branch_delay): Reimplement.
22502 (in_uncond_branch_delay): Delete.
22503 (in_annul_branch_delay): Delete.
22504
22505 2014-03-14 Richard Henderson <rth@redhat.com>
22506
22507 PR target/60525
22508 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
22509 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
22510 (*floathi<X87MODEF>2_i387_with_temp): Remove.
22511 (floathi splitters): Remove.
22512 (float<SWI48x>xf2): New pattern.
22513 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
22514 code that tried to handle DImode for 32-bit, but which was excluded
22515 by the pattern's condition. Drop allocation of stack temporary.
22516 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
22517 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
22518 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
22519 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
22520 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
22521 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
22522 (*float<SWI48><MODEF>2_sse_interunit): Remove.
22523 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
22524 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
22525 (*float<SWI48x><X87MODEF>2_i387): Remove.
22526 (all float _with_temp splitters): Remove.
22527 (*float<SWI48x><MODEF>2_i387): New pattern.
22528 (*float<SWI48><MODEF>2_sse): New pattern.
22529 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
22530 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
22531
22532 2014-03-14 Jakub Jelinek <jakub@redhat.com>
22533 Marek Polacek <polacek@redhat.com>
22534
22535 PR middle-end/60484
22536 * common.opt (dump_base_name_prefixed): New Variable.
22537 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
22538 if x_dump_base_name_prefixed is already set, set it at the end.
22539
22540 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
22541
22542 PR rtl-optimization/60508
22543 * lra-constraints.c (get_reload_reg): Add new parameter
22544 in_subreg_p.
22545 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
22546 Pass the new parameter values.
22547
22548 2014-03-14 Richard Biener <rguenther@suse.de>
22549
22550 * common.opt: Revert unintented changes from r205065.
22551 * opts.c: Likewise.
22552
22553 2014-03-14 Richard Biener <rguenther@suse.de>
22554
22555 PR middle-end/60518
22556 * cfghooks.c (split_block): Properly adjust all loops the
22557 block was a latch of.
22558
22559 2014-03-14 Martin Jambor <mjambor@suse.cz>
22560
22561 PR lto/60461
22562 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22563 and simplify it.
22564
22565 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22566
22567 PR target/59396
22568 * config/avr/avr.c (avr_set_current_function): Pass function name
22569 through default_strip_name_encoding before sanity checking instead
22570 of skipping the first char of the assembler name.
22571
22572 2014-03-13 Richard Henderson <rth@redhat.com>
22573
22574 PR debug/60438
22575 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22576 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22577 * config/i386/i386-protos.h: Likewise.
22578 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22579 in the expander instead of a splitter.
22580 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22581 any possibility of requiring a memory.
22582 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22583 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22584 (fp branch splitters): Update for ix86_split_fp_branch.
22585 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22586 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22587 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22588 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22589 (*fop_<MODEF>_3_i387): Likewise.
22590 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22591 (splitters for the fop_* register patterns): Remove.
22592 (fscalexf4_i387): Rename from *fscalexf4_i387.
22593 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22594
22595 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22596
22597 PR tree-optimization/59779
22598 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22599 type for bitsize and maxsize instead of HOST_WIDE_INT.
22600
22601 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22602
22603 PR rtl-optimization/57320
22604 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22605 the CFG after thread_prologue_and_epilogue_insns.
22606
22607 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22608
22609 PR rtl-optimization/57189
22610 * lra-constraints.c (process_alt_operands): Disfavor spilling
22611 vector pseudos.
22612
22613 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22614
22615 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22616
22617 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22618
22619 PR tree-optimization/59025
22620 PR middle-end/60418
22621 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22622 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22623
22624 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22625
22626 PR target/60486
22627 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22628 calls of avr_out_plus_1.
22629
22630 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22631
22632 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22633 BB's single pred and update the father loop's latch info later.
22634
22635 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22636
22637 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22638 (VEC_M): Likewise.
22639 (VEC_N): Likewise.
22640 (VEC_R): Likewise.
22641 (VEC_base): Likewise.
22642 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22643 registers, we need to swap double words in little endian mode.
22644
22645 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22646 to be a container mode for 128-bit integer operations added in ISA
22647 2.07. Unlike TImode and PTImode, the preferred register set is
22648 the Altivec/VMX registers for the 128-bit operations.
22649
22650 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22651 declarations.
22652 (rs6000_split_128bit_ok_p): Likewise.
22653
22654 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22655 macros for creating ISA 2.07 normal and overloaded builtin
22656 functions with 3 arguments.
22657 (BU_P8V_OVERLOAD_3): Likewise.
22658 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22659 for use as overloaded functions.
22660 (VPERM_1TI_UNS): Likewise.
22661 (VSEL_1TI): Likewise.
22662 (VSEL_1TI_UNS): Likewise.
22663 (ST_INTERNAL_1ti): Likewise.
22664 (LD_INTERNAL_1ti): Likewise.
22665 (XXSEL_1TI): Likewise.
22666 (XXSEL_1TI_UNS): Likewise.
22667 (VPERM_1TI): Likewise.
22668 (VPERM_1TI_UNS): Likewise.
22669 (XXPERMDI_1TI): Likewise.
22670 (SET_1TI): Likewise.
22671 (LXVD2X_V1TI): Likewise.
22672 (STXVD2X_V1TI): Likewise.
22673 (VEC_INIT_V1TI): Likewise.
22674 (VEC_SET_V1TI): Likewise.
22675 (VEC_EXT_V1TI): Likewise.
22676 (EQV_V1TI): Likewise.
22677 (NAND_V1TI): Likewise.
22678 (ORC_V1TI): Likewise.
22679 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22680 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22681 overloaded builtin.
22682 (VADDUQM): Likewise.
22683 (VSUBCUQ): Likewise.
22684 (VADDEUQM): Likewise.
22685 (VADDECUQ): Likewise.
22686 (VSUBEUQM): Likewise.
22687 (VSUBECUQ): Likewise.
22688
22689 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22690 __int128_t and __uint128_t types.
22691 (__uint128_type): Likewise.
22692 (altivec_categorize_keyword): Add support for vector __int128_t,
22693 vector __uint128_t, vector __int128, and vector unsigned __int128
22694 as a container type for TImode operations that need to be done in
22695 VSX/Altivec registers.
22696 (rs6000_macro_to_expand): Likewise.
22697 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22698 to support 128-bit integer instructions vaddcuq, vadduqm,
22699 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22700 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22701
22702 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22703 for V1TImode, and set up preferences to use VSX/Altivec registers.
22704 Setup VSX reload handlers.
22705 (rs6000_debug_reg_global): Likewise.
22706 (rs6000_init_hard_regno_mode_ok): Likewise.
22707 (rs6000_preferred_simd_mode): Likewise.
22708 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22709 (easy_altivec_constant): Likewise.
22710 (output_vec_const_move): Likewise.
22711 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22712 simple move.
22713 (rs6000_expand_vector_extract): Likewise.
22714 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22715 addressing.
22716 (rs6000_const_vec): Add support for V1TImode.
22717 (rs6000_emit_le_vsx_load): Swap double words when loading or
22718 storing TImode/V1TImode.
22719 (rs6000_emit_le_vsx_store): Likewise.
22720 (rs6000_emit_le_vsx_move): Likewise.
22721 (rs6000_emit_move): Add support for V1TImode.
22722 (altivec_expand_ld_builtin): Likewise.
22723 (altivec_expand_st_builtin): Likewise.
22724 (altivec_expand_vec_init_builtin): Likewise.
22725 (altivec_expand_builtin): Likewise.
22726 (rs6000_init_builtins): Add support for V1TImode type. Add
22727 support for ISA 2.07 128-bit integer builtins. Define type names
22728 for the VSX/Altivec vector types.
22729 (altivec_init_builtins): Add support for overloaded vector
22730 functions with V1TImode type.
22731 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22732 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22733 external function.
22734 (rs6000_split_128bit_ok_p): Likewise.
22735 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22736 __int128_t and vector __uint128_t.
22737
22738 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22739 and mode attributes.
22740 (VSX_M): Likewise.
22741 (VSX_M2): Likewise.
22742 (VSm): Likewise.
22743 (VSs): Likewise.
22744 (VSr): Likewise.
22745 (VSv): Likewise.
22746 (VS_scalar): Likewise.
22747 (VS_double): Likewise.
22748 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22749
22750 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22751 we support the ISA 2.07 128-bit integer arithmetic instructions.
22752 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22753 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22754 and TImode types for use with the builtin functions.
22755 (V1TI_type_node): Likewise.
22756 (unsigned_V1TI_type_node): Likewise.
22757 (intTI_type_internal_node): Likewise.
22758 (uintTI_type_internal_node): Likewise.
22759
22760 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22761 128-bit builtin functions.
22762 (UNSPEC_VADDEUQM): Likewise.
22763 (UNSPEC_VADDECUQ): Likewise.
22764 (UNSPEC_VSUBCUQ): Likewise.
22765 (UNSPEC_VSUBEUQM): Likewise.
22766 (UNSPEC_VSUBECUQ): Likewise.
22767 (VM): Add V1TImode to vector mode iterators.
22768 (VM2): Likewise.
22769 (VI_unit): Likewise.
22770 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22771 (altivec_vaddcuq): Likewise.
22772 (altivec_vsubuqm): Likewise.
22773 (altivec_vsubcuq): Likewise.
22774 (altivec_vaddeuqm): Likewise.
22775 (altivec_vaddecuq): Likewise.
22776 (altivec_vsubeuqm): Likewise.
22777 (altivec_vsubecuq): Likewise.
22778
22779 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22780 mode iterators.
22781 (BOOL_128): Likewise.
22782 (BOOL_REGS_OUTPUT): Likewise.
22783 (BOOL_REGS_OP1): Likewise.
22784 (BOOL_REGS_OP2): Likewise.
22785 (BOOL_REGS_UNARY): Likewise.
22786 (BOOL_REGS_AND_CR0): Likewise.
22787
22788 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22789 128-bit integer builtin support.
22790 (vec_vadduqm): Likewise.
22791 (vec_vaddecuq): Likewise.
22792 (vec_vaddeuqm): Likewise.
22793 (vec_vsubecuq): Likewise.
22794 (vec_vsubeuqm): Likewise.
22795 (vec_vsubcuq): Likewise.
22796 (vec_vsubuqm): Likewise.
22797
22798 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22799 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22800 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22801 128-bit integer add/subtract to ISA 2.07.
22802
22803 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22804
22805 * config/arc/arc.c (arc_predicate_delay_insns):
22806 Fix third argument passed to conditionalize_nonjump.
22807
22808 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22809
22810 * config/aarch64/aarch64-builtins.c
22811 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22812 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22813 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22814 instead of __builtin_lfloor.
22815 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22816
22817 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22818
22819 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22820 (tree_ssa_ifcombine_bb_1): New function.
22821 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22822 is an empty forwarder block to then_bb or vice versa and then_bb
22823 and else_bb are effectively swapped.
22824
22825 2014-03-12 Christian Bruel <christian.bruel@st.com>
22826
22827 PR target/60264
22828 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22829 REG_CFA_DEF_CFA note.
22830 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22831 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22832
22833 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22834
22835 PR tree-optimization/60454
22836 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22837
22838 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22839
22840 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22841 Do not define target_cpu_default2 to generic.
22842 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22843 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22844 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22845
22846 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22847 Marc Glisse <marc.glisse@inria.fr>
22848
22849 PR tree-optimization/60502
22850 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22851 instead of build_low_bits_mask.
22852
22853 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22854
22855 PR middle-end/60482
22856 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22857 if there are multiple uses, but op doesn't live on E edge.
22858 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22859 clobber stmts before __builtin_unreachable.
22860
22861 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22862
22863 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22864 hard_frame_pointer_rtx.
22865 * cse.c (cse_insn): Remove volatile check.
22866 * cselib.c (cselib_process_insn): Likewise.
22867 * dse.c (scan_insn): Likewise.
22868
22869 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22870
22871 * config/arc/arc.c (conditionalize_nonjump): New function,
22872 broken out of ...
22873 (arc_ifcvt): ... this.
22874 (arc_predicate_delay_insns): Use it.
22875
22876 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22877
22878 * config/arc/predicates.md (extend_operand): During/after reload,
22879 allow const_int_operand.
22880 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22881 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22882 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22883 to "i".
22884 (umulsi3_highpart_i): Likewise.
22885
22886 2014-03-11 Richard Biener <rguenther@suse.de>
22887
22888 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22889 Add asserts to guard possible wrong-code bugs.
22890
22891 2014-03-11 Richard Biener <rguenther@suse.de>
22892
22893 PR tree-optimization/60429
22894 PR tree-optimization/60485
22895 * tree-ssa-structalias.c (set_union_with_increment): Properly
22896 take into account all fields that overlap the shifted vars.
22897 (do_sd_constraint): Likewise.
22898 (do_ds_constraint): Likewise.
22899 (get_constraint_for_ptr_offset): Likewise.
22900
22901 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22902
22903 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22904 (nios2_compute_frame_layout):
22905 Add calculation of cfun->machine->fp_save_offset.
22906 (nios2_expand_prologue): Correct setting of frame pointer register
22907 in prologue.
22908 (nios2_expand_epilogue): Update recovery of stack pointer from
22909 frame pointer accordingly.
22910 (nios2_initial_elimination_offset): Update calculation of offset
22911 for eliminating to HARD_FRAME_POINTER_REGNUM.
22912
22913 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22914
22915 PR ipa/60457
22916 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22917 cgraph_get_create_node on VAR_DECLs.
22918
22919 2014-03-10 Richard Biener <rguenther@suse.de>
22920
22921 PR middle-end/60474
22922 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22923
22924 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22925
22926 * config/vms/vms.opt (vms_float_format): New variable.
22927
22928 2014-03-08 Tobias Burnus <burnus@net-b.de>
22929
22930 * doc/invoke.texi (-fcilkplus): Update implementation status.
22931
22932 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22933 Richard Biener <rguenther@suse.de>
22934
22935 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22936 consistently accross all TUs.
22937 (run_gcc): Enable -fshort-double automatically at link at link-time
22938 and disallow override.
22939
22940 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22941
22942 PR target/58271
22943 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22944 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22945 if they can't be used.
22946
22947 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22948
22949 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22950 for Solaris 11/x86 ld.
22951 * configure: Regenerate.
22952
22953 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22954
22955 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22956 (LIB_TLS_SPEC): Save as ld_tls_libs.
22957 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22958 (HAVE_AS_IX86_TLSLDM): New test.
22959 * configure, config.in: Regenerate.
22960 * config/i386/i386.c (legitimize_tls_address): Fall back to
22961 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22962 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22963 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22964 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22965
22966 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22967
22968 * common.opt (fira-loop-pressure): Mark as optimization.
22969
22970 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22971
22972 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22973 an OpenMP mappable type.
22974
22975 2014-03-06 Matthias Klose <doko@ubuntu.com>
22976
22977 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22978 MULTILIB_OSDIRNAMES is not defined.
22979
22980 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22981 Meador Inge <meadori@codesourcery.com>
22982
22983 PR target/58595
22984 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22985 (arm_legitimize_address): Call legitimize_tls_address for any
22986 arm_tls_referenced_p expression, handle constant addend. Call it
22987 before testing for !TARGET_ARM.
22988 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22989
22990 2014-03-06 Richard Biener <rguenther@suse.de>
22991
22992 PR middle-end/60445
22993 PR lto/60424
22994 PR lto/60427
22995 Revert
22996 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22997
22998 * tree-streamer.c (record_common_node): Assert we don't record
22999 nodes with type double.
23000 (preload_common_node): Skip type double, complex double and double
23001 pointer since it is now frontend dependent due to fshort-double option.
23002
23003 2014-03-06 Richard Biener <rguenther@suse.de>
23004
23005 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
23006 or -fno-lto is specified and the linker has full plugin support.
23007 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
23008 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
23009 * lto-wrapper.c (merge_and_complain): Merge compile-time
23010 optimization levels.
23011 (run_gcc): And pass it through to the link options.
23012
23013 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
23014
23015 PR debug/60381
23016 Revert:
23017 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23018 PR debug/59992
23019 * cselib.c (remove_useless_values): Skip to avoid quadratic
23020 behavior if the condition moved from...
23021 (cselib_process_insn): ... here holds.
23022
23023 2014-03-05 Jakub Jelinek <jakub@redhat.com>
23024
23025 PR plugins/59335
23026 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
23027 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
23028
23029 PR plugins/59335
23030 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
23031 (TM_H): Add x86-tune.def.
23032
23033 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23034
23035 * config/aarch64/aarch64.c (generic_tunings):
23036 Use cortexa57_extra_costs.
23037
23038 2014-03-05 Jakub Jelinek <jakub@redhat.com>
23039
23040 PR lto/60404
23041 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
23042 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
23043 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
23044 cost for in_lto_p.
23045
23046 2014-03-04 Heiher <r@hev.cc>
23047
23048 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
23049 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
23050
23051 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
23052
23053 * config/i386/predicates.md (const2356_operand): Change to ...
23054 (const2367_operand): ... this.
23055 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
23056 const2367_operand.
23057 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23058 (*avx512pf_scatterpf<mode>sf): Ditto.
23059 (avx512pf_scatterpf<mode>df): Ditto.
23060 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23061 (*avx512pf_scatterpf<mode>df): Ditto.
23062 * config/i386/i386.c (ix86_expand_builtin): Update
23063 incorrect hint operand error message.
23064
23065 2014-03-04 Richard Biener <rguenther@suse.de>
23066
23067 * lto-section-in.c (lto_get_section_data): Fix const cast.
23068
23069 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
23070
23071 * tree-streamer.c (record_common_node): Assert we don't record
23072 nodes with type double.
23073 (preload_common_node): Skip type double, complex double and double
23074 pointer since it is now frontend dependent due to fshort-double option.
23075
23076 2014-03-04 Richard Biener <rguenther@suse.de>
23077
23078 PR lto/60405
23079 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
23080 (lto_input_toplevel_asms): Likewise.
23081 * lto-section-in.c (lto_get_section_data): Instead do it here
23082 for every section.
23083
23084 2014-03-04 Richard Biener <rguenther@suse.de>
23085
23086 PR tree-optimization/60382
23087 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
23088 dead PHIs a reduction.
23089
23090 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
23091
23092 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
23093 hint value.
23094 (_mm_prefetch): Move out of GCC target("sse") pragma.
23095 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
23096 GCC target("prfchw") pragma.
23097 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
23098 for locality <= 2.
23099 * config/i386/i386.c (ix86_option_override_internal): Enable
23100 -mprfchw with -mprefetchwt1.
23101
23102 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
23103
23104 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
23105 Mark as varying.
23106
23107 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
23108
23109 * opts.h (CL_PCH_IGNORE): Define.
23110 * targhooks.c (option_affects_pch_p):
23111 Return false for options that have CL_PCH_IGNORE set.
23112 * opt-functions.awk: Process PchIgnore.
23113 * doc/options.texi: Document PchIgnore.
23114
23115 * config/arc/arc.opt (misize): Add PchIgnore property.
23116
23117 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23118
23119 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
23120 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
23121 constraint on constants to permit them being loaded into
23122 GENERAL_REGS or BASE_REGS.
23123
23124 2014-03-03 Nick Clifton <nickc@redhat.com>
23125
23126 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
23127 anti-cacnonical alternatives.
23128 (negandhi3_real): New pattern.
23129 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
23130
23131 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23132
23133 * config/avr/avr-mcus.def: Remove atxmega16x1.
23134 * config/avr/avr-tables.opt: Regenerate.
23135 * config/avr/t-multilib: Regenerate.
23136 * doc/avr-mmcu.texi: Regenerate.
23137
23138 2014-03-03 Tobias Grosser <tobias@grosser.es>
23139 Mircea Namolaru <mircea.namolaru@inria.fr>
23140
23141 PR tree-optimization/58028
23142 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
23143 scalar dimensions.
23144
23145 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23146
23147 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
23148 not handled by recognizers.
23149
23150 2014-03-03 Jakub Jelinek <jakub@redhat.com>
23151
23152 PR middle-end/60175
23153 * function.c (expand_function_end): Don't emit
23154 clobber_return_register sequence if clobber_after is a BARRIER.
23155 * cfgexpand.c (construct_exit_block): Append instructions before
23156 return_label to prev_bb.
23157
23158 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23159
23160 * config/rs6000/constraints.md: Document reserved use of "wc".
23161
23162 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
23163
23164 PR ipa/60150
23165 * ipa.c (function_and_variable_visibility): When dissolving comdat
23166 group, also set all symbols to local.
23167
23168 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
23169
23170 PR ipa/60306
23171
23172 Revert:
23173 2013-12-14 Jan Hubicka <jh@suse.cz>
23174 PR middle-end/58477
23175 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
23176
23177 2014-03-02 Jon Beniston <jon@beniston.com>
23178
23179 PR bootstrap/48230
23180 PR bootstrap/50927
23181 PR bootstrap/52466
23182 PR target/46898
23183 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
23184 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
23185 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
23186 (simple_return, *simple_return): New patterns
23187 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
23188 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
23189
23190 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
23191
23192 * dwarf2out.c (gen_subprogram_die): Tidy.
23193
23194 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
23195
23196 PR target/60071
23197 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
23198 (*mov_t_msb_neg_negc): ... this new insn.
23199
23200 2014-02-28 Jason Merrill <jason@redhat.com>
23201
23202 PR c++/58678
23203 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
23204 function.
23205
23206 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
23207
23208 PR c++/60314
23209 * dwarf2out.c (decltype_auto_die): New static.
23210 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
23211 (gen_type_die_with_usage): Handle 'decltype(auto)'.
23212 (is_cxx_auto): Likewise.
23213
23214 2014-02-28 Ian Bolton <ian.bolton@arm.com>
23215
23216 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
23217 we are not using general regs only.
23218
23219 2014-02-28 Richard Biener <rguenther@suse.de>
23220
23221 PR target/60280
23222 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
23223 previous fix and only allow to remove trivial pre-headers
23224 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
23225 (remove_forwarder_block): Properly update the latch of a loop.
23226
23227 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23228
23229 PR debug/59992
23230 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
23231 (cselib_preserved_hash_table): New.
23232 (preserve_constants_and_equivs): Move preserved vals to it.
23233 (cselib_find_slot): Look it up first.
23234 (cselib_init): Initialize it.
23235 (cselib_finish): Release it.
23236 (dump_cselib_table): Dump it.
23237
23238 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23239
23240 PR debug/59992
23241 * cselib.c (remove_useless_values): Skip to avoid quadratic
23242 behavior if the condition moved from...
23243 (cselib_process_insn): ... here holds.
23244
23245 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
23246
23247 PR debug/57232
23248 * var-tracking.c (vt_initialize): Apply the same condition to
23249 preserve the CFA base value.
23250
23251 2014-02-28 Joey Ye <joey.ye@arm.com>
23252
23253 PR target/PR60169
23254 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
23255 if reload in progress or completed.
23256
23257 2014-02-28 Tobias Burnus <burnus@net-b.de>
23258
23259 PR middle-end/60147
23260 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
23261 NAMELIST_DECL.
23262
23263 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
23264
23265 * doc/tm.texi.in (Condition Code Status): Update documention for
23266 relative locations of cc0-setter and cc0-user.
23267
23268 2014-02-27 Jeff Law <law@redhat.com>
23269
23270 PR rtl-optimization/52714
23271 * combine.c (try_combine): When splitting an unrecognized PARALLEL
23272 into two independent simple sets, if I3 is a jump, ensure the
23273 pattern we place into I3 is a (set (pc) ...).
23274
23275 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
23276 Jeff Law <law@redhat.com>
23277
23278 PR rtl-optimization/49847
23279 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
23280 are in different blocks.
23281 * doc/tm.texi (Condition Code Status): Update documention for
23282 relative locations of cc0-setter and cc0-user.
23283
23284 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
23285
23286 PR target/59222
23287 * lra.c (lra_emit_add): Check SUBREG too.
23288
23289 2014-02-27 Andreas Schwab <schwab@suse.de>
23290
23291 * config/m68k/m68k.c (m68k_option_override): Disable
23292 -flive-range-shrinkage for classic m68k.
23293 (m68k_override_options_after_change): Likewise.
23294
23295 2014-02-27 Marek Polacek <polacek@redhat.com>
23296
23297 PR middle-end/59223
23298 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
23299 -Wmaybe-uninitialized.
23300
23301 2014-02-27 Alan Modra <amodra@gmail.com>
23302
23303 PR target/57936
23304 * reload1.c (emit_input_reload_insns): When reload_override_in,
23305 set old to rl->in_reg when rl->in_reg is a subreg.
23306
23307 2014-02-26 Richard Biener <rguenther@suse.de>
23308
23309 PR bootstrap/60343
23310 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
23311
23312 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23313
23314 * common/config/i386/predicates.md (const1256_operand): Remove.
23315 (const2356_operand): New.
23316 (const_1_to_2_operand): Remove.
23317 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23318 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23319 (*avx512pf_gatherpf<mode>sf): Ditto.
23320 (avx512pf_gatherpf<mode>df): Ditto.
23321 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23322 (*avx512pf_gatherpf<mode>df): Ditto.
23323 (avx512pf_scatterpf<mode>sf): Ditto.
23324 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23325 (*avx512pf_scatterpf<mode>sf): Ditto.
23326 (avx512pf_scatterpf<mode>df): Ditto.
23327 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23328 (*avx512pf_scatterpf<mode>df): Ditto.
23329 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
23330
23331 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
23332
23333 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
23334 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
23335 (_mm512_mask_testn_epi64_mask): Move to ...
23336 * config/i386/avx512cdintrin.h: Here.
23337 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
23338 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
23339 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
23340 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
23341 TARGET_AVX512F from TARGET_AVX512CD.
23342
23343 2014-02-26 Richard Biener <rguenther@suse.de>
23344
23345 PR ipa/60327
23346 * ipa.c (walk_polymorphic_call_targets): Properly guard
23347 call to inline_update_overall_summary.
23348
23349 2014-02-26 Bin Cheng <bin.cheng@arm.com>
23350
23351 PR target/60280
23352 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
23353 and latches only if requested. Fix latch if it is removed.
23354 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
23355 LOOPS_HAVE_PREHEADERS.
23356
23357 2014-02-25 Andrew Pinski <apinski@cavium.com>
23358
23359 * builtins.c (expand_builtin_thread_pointer): Create a new target
23360 when the target is NULL.
23361
23362 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
23363
23364 PR rtl-optimization/60317
23365 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23366 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
23367 * lra-assigns.c: Include params.h.
23368 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
23369 other reload pseudos considerations.
23370
23371 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23372
23373 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
23374 to use canonical form for nor<mode>3.
23375
23376 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23377
23378 PR target/55426
23379 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
23380 conversions.
23381
23382 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
23383
23384 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
23385 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
23386 (ix86_handle_option): Handle OPT_mprefetchwt1.
23387 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
23388 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23389 PREFETCHWT1 CPUID.
23390 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23391 OPTION_MASK_ISA_PREFETCHWT1.
23392 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
23393 (PTA_PREFETCHWT1): New.
23394 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
23395 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
23396 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
23397 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
23398 (*prefetch_avx512pf_<mode>_: Change into ...
23399 (*prefetch_prefetchwt1_<mode>: This.
23400 * config/i386/i386.opt (mprefetchwt1): New.
23401 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
23402 (_mm_prefetch): Handle intent to write.
23403 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
23404
23405 2014-02-25 Richard Biener <rguenther@suse.de>
23406
23407 PR middle-end/60291
23408 * emit-rtl.c (mem_attrs_htab): Remove.
23409 (mem_attrs_htab_hash): Likewise.
23410 (mem_attrs_htab_eq): Likewise.
23411 (set_mem_attrs): Always allocate new mem-attrs when something changed.
23412 (init_emit_once): Do not allocate mem_attrs_htab.
23413
23414 2014-02-25 Richard Biener <rguenther@suse.de>
23415
23416 PR lto/60319
23417 * lto-opts.c (lto_write_options): Output non-explicit conservative
23418 -fwrapv, -fno-trapv and -fno-strict-overflow.
23419 * lto-wrapper.c (merge_and_complain): Handle merging those options.
23420 (run_gcc): And pass them through.
23421
23422 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23423
23424 * sel-sched.c (calculate_new_fences): New parameter ptime.
23425 Calculate it as a maximum over all fence cycles.
23426 (sel_sched_region_2): Adjust the call to calculate_new_fences.
23427 Print the final schedule timing when sched_verbose.
23428
23429 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
23430
23431 PR rtl-optimization/60292
23432 * sel-sched.c (fill_vec_av_set): Do not reset target availability
23433 bit fot the fence instruction.
23434
23435 2014-02-24 Alangi Derick <alangiderick@gmail.com>
23436
23437 * calls.h: Fix typo in comment.
23438
23439 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
23440
23441 * config/pa/pa.c (pa_output_move_double): Don't valididate when
23442 adjusting offsetable addresses.
23443
23444 2014-02-24 Guozhi Wei <carrot@google.com>
23445
23446 * sparseset.h (sparseset_pop): Fix the wrong index.
23447
23448 2014-02-24 Walter Lee <walt@tilera.com>
23449
23450 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
23451 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
23452 triplet.
23453 * common/config/tilegx/tilegx-common.c
23454 (TARGET_DEFAULT_TARGET_FLAGS): Define.
23455 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
23456 (LINK_SPEC): Ditto.
23457 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
23458 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
23459 (tilegx_gimplify_va_arg_expr): Handle big endian.
23460 (tilegx_expand_unaligned_load): Ditto.
23461 (tilegx_expand_unaligned_store): Ditto.
23462 (TARGET_RETURN_IN_MSB): New.
23463 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
23464 (TARGET_ENDIAN_DEFAULT): New.
23465 (TARGET_BIG_ENDIAN): Handle big endian.
23466 (BYTES_BIG_ENDIAN): Ditto.
23467 (WORDS_BIG_ENDIAN): Ditto.
23468 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
23469 (ENDIAN_SPEC): New.
23470 (EXTRA_SPECS): New.
23471 * config/tilegx/tilegx.md (extv): Handle big endian.
23472 (extzv): Ditto.
23473 (insn_st<n>): Ditto.
23474 (insn_st<n>_add<bitsuffix>): Ditto.
23475 (insn_stnt<n>): Ditto.
23476 (insn_stnt<n>_add<bitsuffix>):Ditto.
23477 (vec_interleave_highv8qi): Handle big endian.
23478 (vec_interleave_highv8qi_be): New.
23479 (vec_interleave_highv8qi_le): New.
23480 (insn_v1int_h): Handle big endian.
23481 (vec_interleave_lowv8qi): Handle big endian.
23482 (vec_interleave_lowv8qi_be): New.
23483 (vec_interleave_lowv8qi_le): New.
23484 (insn_v1int_l): Handle big endian.
23485 (vec_interleave_highv4hi): Handle big endian.
23486 (vec_interleave_highv4hi_be): New.
23487 (vec_interleave_highv4hi_le): New.
23488 (insn_v2int_h): Handle big endian.
23489 (vec_interleave_lowv4hi): Handle big endian.
23490 (vec_interleave_lowv4hi_be): New.
23491 (vec_interleave_lowv4hi_le): New.
23492 (insn_v2int_l): Handle big endian.
23493 (vec_interleave_highv2si): Handle big endian.
23494 (vec_interleave_highv2si_be): New.
23495 (vec_interleave_highv2si_le): New.
23496 (insn_v4int_h): Handle big endian.
23497 (vec_interleave_lowv2si): Handle big endian.
23498 (vec_interleave_lowv2si_be): New.
23499 (vec_interleave_lowv2si_le): New.
23500 (insn_v4int_l): Handle big endian.
23501 * config/tilegx/tilegx.opt (mbig-endian): New option.
23502 (mlittle-endian): New option.
23503 * doc/install.texi: Document tilegxbe-linux.
23504 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
23505
23506 2014-02-24 Martin Jambor <mjambor@suse.cz>
23507
23508 PR ipa/60266
23509 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
23510 there are no parameter descriptors.
23511
23512 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
23513
23514 PR rtl-optimization/60268
23515 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
23516 initialization to ...
23517 (sched_rgn_init): ... here.
23518 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
23519
23520 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23521
23522 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
23523 names.
23524
23525 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
23526
23527 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
23528 definition.
23529
23530 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23531
23532 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
23533 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
23534
23535 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
23536
23537 * config/microblaze/predicates.md: Add cmp_op predicate.
23538 * config/microblaze/microblaze.md: Add branch_compare instruction
23539 which uses cmp_op predicate and emits cmp insn before branch.
23540 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
23541 to microblaze_expand_conditional_branch and consolidate logic.
23542 (microblaze_expand_conditional_branch): emit branch_compare
23543 insn instead of handling cmp op separate from branch insn.
23544
23545 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23546
23547 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23548 to permit subregs.
23549
23550 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23551
23552 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23553 define_insn with define_expand and new define_insn
23554 *altivec_lve<VI_char>x_internal.
23555 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23556 and new define_insn *altivec_stve<VI_char>x_internal.
23557 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23558 prototype.
23559 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23560 lve*x built-ins.
23561 (altivec_expand_stvex_be): New function.
23562
23563 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23564
23565 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23566 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23567 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23568 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23569
23570 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23571
23572 PR target/60298
23573 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23574 instead of emit_move_insn.
23575
23576 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23577
23578 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23579 vspltw with vsldoi.
23580 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23581 gen_altivec_vsumsws.
23582
23583 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23584
23585 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23586 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23587 (altivec_lvxl_<mode>): New define_expand incorporating
23588 -maltivec=be semantics where needed.
23589 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23590 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23591 semantics where needed.
23592 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23593 (altivec_stvx_<mode>): New define_expand incorporating
23594 -maltivec=be semantics where needed.
23595 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23596 VM2 iterator instead of V4SI.
23597 (altivec_stvxl_<mode>): New define_expand incorporating
23598 -maltivec=be semantics where needed.
23599 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23600 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23601 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23602 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23603 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23604 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23605 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23606 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23607 ALTIVEC_BUILTIN_STVXL.
23608 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23609 (altivec_expand_stvx_be): Likewise.
23610 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23611 (altivec_expand_lvx_be): Likewise.
23612 (altivec_expand_stvx_be): Likewise.
23613 (altivec_expand_builtin): Add cases for
23614 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23615 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23616 (altivec_init_builtins): Add definitions for
23617 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23618 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23619
23620 2014-02-21 Catherine Moore <clm@codesourcery.com>
23621
23622 * doc/invoke.texi (mvirt, mno-virt): Document.
23623 * config/mips/mips.opt (mvirt): New option.
23624 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23625
23626 2014-02-21 Richard Biener <rguenther@suse.de>
23627
23628 PR tree-optimization/60276
23629 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23630 (STMT_VINFO_MIN_NEG_DIST): New macro.
23631 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23632 STMT_VINFO_MIN_NEG_DIST.
23633 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23634 made for negative dependence distances still hold.
23635
23636 2014-02-21 Richard Biener <rguenther@suse.de>
23637
23638 PR middle-end/60291
23639 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23640 DECL_INITIAL for globals not in the current function context.
23641
23642 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23643
23644 PR tree-optimization/56490
23645 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23646 * tree-ssa-uninit.c: Include params.h.
23647 (compute_control_dep_chain): Add num_calls argument, return false
23648 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23649 num_calls to recursive call.
23650 (find_predicates): Change dep_chain into normal array,
23651 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23652 variable and adjust compute_control_dep_chain caller.
23653 (find_def_preds): Likewise.
23654
23655 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23656
23657 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23658 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23659
23660 2014-02-21 Nick Clifton <nickc@redhat.com>
23661
23662 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23663 (pushhi1): Likewise.
23664 (popqi1): Add mode to pre_dec.
23665 (pophi1): Likewise.
23666
23667 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23668
23669 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23670 mode for mask of V8SFmode permutation.
23671
23672 2014-02-20 Richard Henderson <rth@redhat.com>
23673
23674 PR c++/60272
23675 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23676 a new pseudo for OLDVAL.
23677
23678 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23679
23680 PR target/57896
23681 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23682 gen_reg_rtx if d->testing_p.
23683 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23684 if d->testing_p and we will certainly return true.
23685 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23686 if d->testing_p.
23687
23688 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23689
23690 * emit-rtl.c (gen_reg_rtx): Assert that
23691 crtl->emit.regno_pointer_align_length is non-zero.
23692
23693 2014-02-20 Richard Henderson <rth@redhat.com>
23694
23695 PR c++/60272
23696 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23697 on failure the store back into EXPECT.
23698
23699 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23700 Sandra Loosemore <sandra@codesourcery.com>
23701
23702 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23703 * config/nios2/nios2.c (nios2_function_profiler): Add
23704 -fPIC (flag_pic == 2) support.
23705 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23706 (nios2_large_offset_p): New function.
23707 (nios2_unspec_reloc_p): Move up position, update to use
23708 nios2_large_offset_p.
23709 (nios2_unspec_address): Remove function.
23710 (nios2_unspec_offset): New function.
23711 (nios2_large_got_address): New function.
23712 (nios2_got_address): Add large offset support.
23713 (nios2_legitimize_tls_address): Update usage of removed and new
23714 functions.
23715 (nios2_symbol_binds_local_p): New function.
23716 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23717 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23718 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23719 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23720 processing for (const (unspec ...)).
23721 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23722
23723 2014-02-20 Richard Biener <rguenther@suse.de>
23724
23725 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23726 doing the substitution.
23727 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23728
23729 2014-02-20 Martin Jambor <mjambor@suse.cz>
23730
23731 PR ipa/55260
23732 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23733 info when checking whether lattices are bottom.
23734
23735 2014-02-20 Richard Biener <rguenther@suse.de>
23736
23737 PR middle-end/60221
23738 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23739 regions at -O0.
23740
23741 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23742
23743 PR ipa/58555
23744 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23745 parameter specifying the scaling.
23746 (inline_call): Update.
23747 (want_inline_recursively): Guard division by zero.
23748 (recursive_inlining): Update.
23749 * ipa-inline.h (clone_inlined_nodes): Update.
23750
23751 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23752
23753 PR target/60204
23754 * config/i386/i386.c (classify_argument): Pass structures of size
23755 64 bytes or less in register.
23756
23757 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23758 Kirill Yukhin <kirill.yukhin@intel.com>
23759
23760 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23761 (_mm_rcp28_round_ss): Ditto.
23762 (_mm_rsqrt28_round_sd): Ditto.
23763 (_mm_rsqrt28_round_ss): Ditto.
23764 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23765 (_mm_rcp14_round_ss): Ditto.
23766 (_mm_rsqrt14_round_sd): Ditto.
23767 (_mm_rsqrt14_round_ss): Ditto.
23768 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23769 the first input operand, get rid of match_dup.
23770 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23771 attribute to sse.
23772 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23773 Ditto.
23774 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23775 operand as the first input operand, set type attribute.
23776 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23777 Set type attribute.
23778 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23779 operand as the first input operand, set type attribute.
23780
23781 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23782
23783 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23784 bit of zero.
23785
23786 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23787
23788 PR target/60207
23789 * config/i386/i386.c (construct_container): Remove TFmode check
23790 for X86_64_INTEGER_CLASS.
23791
23792 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23793
23794 PR target/59794
23795 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23796 only when -Wpsabi is enabled.
23797
23798 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23799
23800 PR target/59799
23801 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23802 passing arrays in registers are the same as for structs, so remove the
23803 special case for them.
23804
23805 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23806
23807 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23808 destination type, extract only the valid bits if the source type is not
23809 integral and has a different mode.
23810
23811 2014-02-19 Richard Biener <rguenther@suse.de>
23812
23813 PR ipa/60243
23814 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23815 for all calls.
23816
23817 2014-02-19 Richard Biener <rguenther@suse.de>
23818
23819 PR ipa/60243
23820 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23821 (ipa_modify_call_arguments): Emit an argument load explicitely and
23822 preserve virtual SSA form there and for the replacement call.
23823 Do not update SSA form nor free dominance info.
23824
23825 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23826
23827 * ipa.c (function_and_variable_visibility): Also clear WEAK
23828 flag when disolving COMDAT_GROUP.
23829
23830 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23831
23832 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23833 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23834 not devirtualizing.
23835 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23836 do more sanity checks.
23837 (detect_type_change): Return true when giving up early.
23838 (compute_complex_assign_jump_func): Fix type parameter of
23839 ipa_set_ancestor_jf.
23840 (compute_complex_ancestor_jump_func): Likewise.
23841 (update_jump_functions_after_inlining): Fix updating of
23842 ancestor function.
23843 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23844
23845 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23846
23847 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23848 inline clones when edge disappears.
23849
23850 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23851
23852 PR target/60203
23853 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23854 Split 64-bit moves into 2 patterns. Do not allow the use of
23855 direct move for TDmode in little endian, since the decimal value
23856 has little endian bytes within a word, but the 64-bit pieces are
23857 ordered in a big endian fashion, and normal subreg's of TDmode are
23858 not allowed.
23859 (mov<mode>_64bit_dm): Likewise.
23860 (movtd_64bit_nodm): Likewise.
23861
23862 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23863
23864 PR tree-optimization/60174
23865 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23866 statement of an SSA_NAME that occurs in an abnormal PHI node.
23867
23868 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23869
23870 PR sanitizer/60142
23871 * final.c (SEEN_BB): Remove.
23872 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23873 (final_scan_insn): Don't force_source_line on second
23874 NOTE_INSN_BASIC_BLOCK.
23875
23876 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23877
23878 PR target/60205
23879 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23880 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23881 (type_natural_mode): Warn ABI change when %zmm register is not
23882 available for AVX512F vector value passing.
23883
23884 2014-02-18 Kai Tietz <ktietz@redhat.com>
23885
23886 PR target/60193
23887 * config/i386/i386.c (ix86_expand_prologue): Use value in
23888 rax register as displacement when restoring %r10 or %rax.
23889 Fix wrong offset when restoring both registers.
23890
23891 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23892
23893 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23894 assertion with conditional return.
23895
23896 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23897 Uros Bizjak <ubizjak@gmail.com>
23898
23899 PR driver/60233
23900 * config/i386/driver-i386.c (host_detect_local_cpu): If
23901 YMM state is not saved by the OS, also clear has_f16c. Move
23902 CPUID 0x80000001 handling before YMM state saving checking.
23903
23904 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23905
23906 PR rtl-optimization/58960
23907 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23908 factored out from ...
23909 (sched_init): ... here.
23910 (free_global_sched_pressure_data): New, factored out from ...
23911 (sched_finish): ... here.
23912 * sched-int.h (free_global_sched_pressure_data): Declare.
23913 * sched-rgn.c (nr_regions_initial): New static global.
23914 (haifa_find_rgns): Initialize it.
23915 (schedule_region): Disable sched-pressure for the newly
23916 generated regions.
23917
23918 2014-02-17 Richard Biener <rguenther@suse.de>
23919
23920 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23921 release SSA defs of pattern stmts.
23922
23923 2014-02-17 Richard Biener <rguenther@suse.de>
23924
23925 * tree-inline.c (expand_call_inline): Release the virtual
23926 operand defined by the call we are about to inline.
23927
23928 2014-02-17 Richard Biener <rguenther@suse.de>
23929
23930 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23931
23932 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23933 Ilya Tocar <ilya.tocar@intel.com>
23934
23935 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23936 arguments order in builtin.
23937 (_mm512_permutexvar_epi64): Ditto.
23938 (_mm512_mask_permutexvar_epi64): Ditto
23939 (_mm512_maskz_permutexvar_epi32): Ditto
23940 (_mm512_permutexvar_epi32): Ditto
23941 (_mm512_mask_permutexvar_epi32): Ditto
23942
23943 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23944
23945 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23946 (p8_vmrgow): Likewise.
23947
23948 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23949
23950 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23951 endian targets.
23952
23953 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23954
23955 PR target/60203
23956 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23957 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23958 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23959 using direct move instructions on ISA 2.07. Also adjust
23960 instruction length for 64-bit.
23961 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23962 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23963
23964 2014-02-15 Alan Modra <amodra@gmail.com>
23965
23966 PR target/58675
23967 PR target/57935
23968 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23969 find_replacement on parts of insn rtl that might be reloaded.
23970
23971 2014-02-15 Richard Biener <rguenther@suse.de>
23972
23973 PR tree-optimization/60183
23974 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23975 (tree_ssa_phiprop): Calculate and free post-dominators.
23976
23977 2014-02-14 Jeff Law <law@redhat.com>
23978
23979 PR rtl-optimization/60131
23980 * ree.c (get_extended_src_reg): New function.
23981 (combine_reaching_defs): Use it rather than assuming location of REG.
23982 (find_and_remove_re): Verify first operand of extension is
23983 a REG before adding the insns to the copy list.
23984
23985 2014-02-14 Roland McGrath <mcgrathr@google.com>
23986
23987 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23988 * configure: Regenerated.
23989 * config.in: Regenerated.
23990 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23991 instead of ASM_SHORT.
23992
23993 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23994 Richard Earnshaw <rearnsha@arm.com>
23995
23996 PR rtl-optimization/59535
23997 * lra-constraints.c (process_alt_operands): Encourage alternative
23998 when unassigned pseudo class is superset of the alternative class.
23999 (inherit_reload_reg): Don't inherit when optimizing for code size.
24000 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
24001 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
24002 modes not less than 4 for Thumb1.
24003
24004 2014-02-14 Kyle McMartin <kyle@redhat.com>
24005
24006 PR pch/60010
24007 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
24008
24009 2014-02-14 Richard Biener <rguenther@suse.de>
24010
24011 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
24012 (get_frame_arg): Drop the assert with langhook types_compatible_p.
24013 Do not strip INDIRECT_REFs.
24014
24015 2014-02-14 Richard Biener <rguenther@suse.de>
24016
24017 PR lto/60179
24018 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
24019 DECL_FUNCTION_SPECIFIC_TARGET.
24020 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
24021 * tree-streamer-out.c (pack_ts_target_option): Remove.
24022 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
24023 (write_ts_function_decl_tree_pointers): Do not stream
24024 DECL_FUNCTION_SPECIFIC_TARGET.
24025 * tree-streamer-in.c (unpack_ts_target_option): Remove.
24026 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
24027 (lto_input_ts_function_decl_tree_pointers): Do not stream
24028 DECL_FUNCTION_SPECIFIC_TARGET.
24029
24030 2014-02-14 Jakub Jelinek <jakub@redhat.com>
24031
24032 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
24033 (get_initial_def_for_induction, vectorizable_induction): Ignore
24034 debug stmts when looking for exit_phi.
24035 (vectorizable_live_operation): Fix up condition.
24036
24037 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24038
24039 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
24040 nreverse() because it changes the content of original tree list.
24041
24042 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24043
24044 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
24045 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
24046
24047 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
24048
24049 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
24050 GNU coding standards.
24051
24052 2014-02-13 Jakub Jelinek <jakub@redhat.com>
24053
24054 PR debug/60152
24055 * dwarf2out.c (gen_subprogram_die): Don't call
24056 add_calling_convention_attribute if subr_die is old_die.
24057
24058 2014-02-13 Sharad Singhai <singhai@google.com>
24059
24060 * doc/optinfo.texi: Fix order of nodes.
24061
24062 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
24063
24064 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
24065 operands[2], not operands[3].
24066
24067 2014-02-13 Richard Biener <rguenther@suse.de>
24068
24069 PR bootstrap/59878
24070 * doc/install.texi (ISL): Update recommended version to 0.12.2,
24071 mention the possibility of an in-tree build.
24072 (CLooG): Update recommended version to 0.18.1, mention the
24073 possibility of an in-tree build and clarify that the ISL
24074 bundled with CLooG does not work.
24075
24076 2014-02-13 Jakub Jelinek <jakub@redhat.com>
24077
24078 PR target/43546
24079 * expr.c (compress_float_constant): If x is a hard register,
24080 extend into a pseudo and then move to x.
24081
24082 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
24083
24084 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
24085 caused by bad second argument to warning_at() with -mhotpatch and
24086 nested functions (e.g. with gfortran).
24087
24088 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
24089
24090 * opts.c (option_name): Remove "enabled by default" rider.
24091
24092 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
24093
24094 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
24095
24096 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
24097 Uros Bizjak <ubizjak@gmail.com>
24098
24099 PR target/60151
24100 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
24101 * configure: Regenerated.
24102
24103 2014-02-12 Richard Biener <rguenther@suse.de>
24104
24105 * vec.c (vec_prefix::calculate_allocation): Move as
24106 inline variant to vec.h.
24107 (vec_prefix::calculate_allocation_1): New out-of-line version.
24108 * vec.h (vec_prefix::calculate_allocation_1): Declare.
24109 (vec_prefix::m_has_auto_buf): Rename to ...
24110 (vec_prefix::m_using_auto_storage): ... this.
24111 (vec_prefix::calculate_allocation): Inline the easy cases
24112 and dispatch to calculate_allocation_1 which doesn't need the
24113 prefix address.
24114 (va_heap::reserve): Use gcc_checking_assert.
24115 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
24116 m_using_auto_storage.
24117 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
24118 member and adjust.
24119 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
24120 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
24121 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
24122
24123 2014-02-12 Richard Biener <rguenther@suse.de>
24124
24125 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
24126 when we found a dependence.
24127
24128 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
24129
24130 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
24131 common code...
24132 (maybe_fold_stmt): ... into this new function.
24133 * omp-low.c (lower_omp): Update comment.
24134
24135 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
24136 last use.
24137
24138 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
24139 dereference.
24140
24141 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
24142
24143 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
24144 identifiers in comments.
24145 (cortexa53_extra_costs): Likewise.
24146 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
24147 (cortexa7_extra_costs): Likewise.
24148 (cortexa12_extra_costs): Likewise.
24149 (cortexa15_extra_costs): Likewise.
24150 (v7m_extra_costs): Likewise.
24151
24152 2014-02-12 Richard Biener <rguenther@suse.de>
24153
24154 PR middle-end/60092
24155 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
24156 of posix_memalign being successful.
24157 (lower_stmt): Restrict lowering of posix_memalign to when
24158 -ftree-bit-ccp is enabled.
24159
24160 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
24161
24162 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
24163 arg_loc.
24164 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
24165
24166 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
24167
24168 PR rtl-optimization/60116
24169 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
24170 other_insn once the combination has been validated.
24171
24172 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
24173
24174 PR lto/59468
24175 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
24176 and wrapper.
24177 * ipa-devirt.c: Include demangle.h
24178 (odr_violation_reported): New static variable.
24179 (add_type_duplicate): Update odr_violations.
24180 (maybe_record_node): Add completep parameter; update it.
24181 (record_target_from_binfo): Add COMPLETEP parameter;
24182 update it as needed.
24183 (possible_polymorphic_call_targets_1): Likewise.
24184 (struct polymorphic_call_target_d): Add nonconstruction_targets;
24185 rename FINAL to COMPLETE.
24186 (record_targets_from_bases): Sanity check we found the binfo;
24187 fix COMPLETEP updating.
24188 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
24189 parameter, fix computing of COMPLETEP.
24190 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
24191 at LTO time do demangling.
24192 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
24193 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
24194 parameter.
24195 (gimple_get_virt_method_for_binfo): Likewise.
24196 * gimple-fold.h (gimple_get_virt_method_for_binfo,
24197 gimple_get_virt_method_for_vtable): Update prototypes.
24198
24199 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
24200
24201 PR target/49008
24202 * genautomata.c (add_presence_absence): Fix typo with
24203 {final_}presence_list.
24204
24205 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
24206
24207 PR target/60137
24208 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
24209 for VSX/Altivec vectors that land in GPR registers.
24210
24211 2014-02-11 Richard Henderson <rth@redhat.com>
24212 Jakub Jelinek <jakub@redhat.com>
24213
24214 PR debug/59776
24215 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
24216 around drhs if type conversion to lacc->type is not useless.
24217
24218 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24219
24220 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
24221 tuning struct.
24222 (cortex-a57.cortex-a53): Likewise.
24223 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
24224
24225 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24226
24227 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
24228 arm_restrict_it.
24229
24230 2014-02-11 Renlin Li <Renlin.Li@arm.com>
24231
24232 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
24233 add_options_for_arm_vfp3.
24234
24235 2014-02-11 Jeff Law <law@redhat.com>
24236
24237 PR middle-end/54041
24238 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
24239 object with an undesirable mode.
24240
24241 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24242
24243 PR libgomp/60107
24244 * config/i386/sol2-9.h: New file.
24245 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
24246 *-*-solaris2.9*): Use it.
24247
24248 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24249
24250 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
24251 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
24252
24253 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
24254
24255 * config/microblaze/microblaze.c: Extend mcpu version format
24256
24257 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
24258
24259 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
24260
24261 2014-02-10 Richard Henderson <rth@redhat.com>
24262
24263 PR target/59927
24264 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
24265 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
24266 ms-abi vs -mno-accumulate-outgoing-args.
24267 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
24268 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
24269 respect to ms-abi.
24270
24271 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
24272
24273 PR middle-end/60080
24274 * cfgexpand.c (expand_asm_operands): Attach source location to
24275 ASM_INPUT rtx objects.
24276 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
24277
24278 2014-02-10 Nick Clifton <nickc@redhat.com>
24279
24280 * config/mn10300/mn10300.c (popcount): New function.
24281 (mn10300_expand_prologue): Include saved registers in stack usage
24282 count.
24283
24284 2014-02-10 Jeff Law <law@redhat.com>
24285
24286 PR middle-end/52306
24287 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
24288 when changing the SET_DEST of a prior insn to avoid an input reload.
24289
24290 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24291
24292 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
24293 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
24294 -mcall-openbsd, or -mcall-linux.
24295 (CC1_ENDIAN_BIG_SPEC): Remove.
24296 (CC1_ENDIAN_LITTLE_SPEC): Remove.
24297 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24298 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
24299 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
24300 and %cc1_endian_default.
24301 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
24302
24303 2014-02-10 Richard Biener <rguenther@suse.de>
24304
24305 PR tree-optimization/60115
24306 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
24307 MEM_REF handling. Properly verify that the accesses are not
24308 out of the objects bound.
24309
24310 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24311
24312 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
24313 coretex to cortex.
24314
24315 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
24316
24317 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
24318 proper constants and fix formatting.
24319 (possible_polymorphic_call_targets): Fix formatting.
24320
24321 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
24322 Ilya Tocar <ilya.tocar@intel.com>
24323
24324 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
24325 (_mm512_loadu_epi32): Renamed into...
24326 (_mm512_loadu_si512): This.
24327 (_mm512_storeu_epi32): Renamed into...
24328 (_mm512_storeu_si512): This.
24329 (_mm512_maskz_ceil_ps): Removed.
24330 (_mm512_maskz_ceil_pd): Ditto.
24331 (_mm512_maskz_floor_ps): Ditto.
24332 (_mm512_maskz_floor_pd): Ditto.
24333 (_mm512_floor_round_ps): Ditto.
24334 (_mm512_floor_round_pd): Ditto.
24335 (_mm512_ceil_round_ps): Ditto.
24336 (_mm512_ceil_round_pd): Ditto.
24337 (_mm512_mask_floor_round_ps): Ditto.
24338 (_mm512_mask_floor_round_pd): Ditto.
24339 (_mm512_mask_ceil_round_ps): Ditto.
24340 (_mm512_mask_ceil_round_pd): Ditto.
24341 (_mm512_maskz_floor_round_ps): Ditto.
24342 (_mm512_maskz_floor_round_pd): Ditto.
24343 (_mm512_maskz_ceil_round_ps): Ditto.
24344 (_mm512_maskz_ceil_round_pd): Ditto.
24345 (_mm512_expand_pd): Ditto.
24346 (_mm512_expand_ps): Ditto.
24347 * config/i386/i386.c (ix86_builtins): Remove
24348 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
24349 (bdesc_args): Ditto.
24350 * config/i386/predicates.md (const1256_operand): New.
24351 (const_1_to_2_operand): Ditto.
24352 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
24353 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24354 (*avx512pf_gatherpf<mode>sf): Ditto.
24355 (avx512pf_gatherpf<mode>df): Ditto.
24356 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24357 (*avx512pf_gatherpf<mode>df): Ditto.
24358 (avx512pf_scatterpf<mode>sf): Ditto.
24359 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24360 (*avx512pf_scatterpf<mode>sf): Ditto.
24361 (avx512pf_scatterpf<mode>df): Ditto.
24362 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24363 (*avx512pf_scatterpf<mode>df): Ditto.
24364 (avx512f_expand<mode>): Removed.
24365 (<shift_insn><mode>3<mask_name>): Change predicate type.
24366
24367 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24368
24369 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
24370 not at the end of datarefs vector use ordered_remove to avoid
24371 reordering datarefs vector.
24372
24373 PR c/59984
24374 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
24375 mark local addressable non-static vars as GOVD_PRIVATE
24376 instead of GOVD_LOCAL.
24377 * omp-low.c (lower_omp_for): Move gimple_bind_vars
24378 and BLOCK_VARS of gimple_bind_block to new_stmt rather
24379 than copying them.
24380
24381 PR middle-end/60092
24382 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
24383 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
24384 assume_aligned or alloc_align attributes.
24385 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
24386 arguments. Handle also assume_aligned and alloc_align attributes.
24387 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
24388 calls to functions with assume_aligned or alloc_align attributes.
24389 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
24390
24391 2014-02-08 Terry Guo <terry.guo@arm.com>
24392
24393 * doc/invoke.texi: Document ARM -march=armv7e-m.
24394
24395 2014-02-08 Jakub Jelinek <jakub@redhat.com>
24396
24397 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
24398 flag on __cilkrts_rethrow builtin.
24399
24400 PR ipa/60026
24401 * ipa-cp.c (determine_versionability): Fail at -O0
24402 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
24403 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
24404
24405 Revert:
24406 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24407
24408 PR ipa/60026
24409 * tree-inline.c (copy_forbidden): Fail for
24410 __attribute__((optimize (0))) functions.
24411
24412 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24413
24414 * varpool.c: Include pointer-set.h.
24415 (varpool_remove_unreferenced_decls): Variables in other partitions
24416 will not be output; be however careful to not lose information
24417 about partitioning.
24418
24419 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
24420
24421 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
24422 lookup in the vtable constructor.
24423
24424 2014-02-07 Jeff Law <law@redhat.com>
24425
24426 PR target/40977
24427 * config/m68k/m68k.md (ashldi_extsi): Turn into a
24428 define_insn_and_split.
24429
24430 * ipa-inline.c (inline_small_functions): Fix typos.
24431
24432 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24433
24434 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
24435 (s390_can_use_return_insn): Declare.
24436 * config/s390/s390.h (EPILOGUE_USES): Define.
24437 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
24438 instructions.
24439 (s390_chunkify_start): Handle return JUMP_LABELs.
24440 (s390_early_mach): Emit a main_pool instruction on the entry edge.
24441 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
24442 (s390_can_use_return_insn): New functions.
24443 (s390_fix_long_loop_prediction): Handle conditional returns.
24444 (TARGET_SET_UP_BY_PROLOGUE): Define.
24445 * config/s390/s390.md (ANY_RETURN): New code iterator.
24446 (*creturn, *csimple_return, return, simple_return): New patterns.
24447
24448 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24449
24450 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
24451 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
24452 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
24453 REG_CFA_RESTORE list when deciding not to restore a register.
24454
24455 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24456
24457 * config/s390/s390.c: Include tree-pass.h and context.h.
24458 (s390_early_mach): New function, split out from...
24459 (s390_emit_prologue): ...here.
24460 (pass_data_s390_early_mach): New pass structure.
24461 (pass_s390_early_mach): New class.
24462 (s390_option_override): Create and register early_mach pass.
24463 Move to end of file.
24464
24465 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24466
24467 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
24468 to match for the exit block.
24469
24470 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24471
24472 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
24473 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
24474 Reject misaligned operands.
24475
24476 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24477
24478 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
24479
24480 2014-02-07 Richard Biener <rguenther@suse.de>
24481
24482 PR middle-end/60092
24483 * gimple-low.c (lower_builtin_posix_memalign): New function.
24484 (lower_stmt): Call it to lower posix_memalign in a way
24485 to make alignment info accessible.
24486
24487 2014-02-07 Jakub Jelinek <jakub@redhat.com>
24488
24489 PR c++/60082
24490 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
24491 __builtin_setjmp_receiver.
24492
24493 2014-02-07 Richard Biener <rguenther@suse.de>
24494
24495 PR middle-end/60092
24496 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
24497 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
24498 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24499 Handle BUILT_IN_POSIX_MEMALIGN.
24500 (find_func_clobbers): Likewise.
24501 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
24502 (call_may_clobber_ref_p_1): Likewise.
24503
24504 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24505
24506 PR ipa/59918
24507 * ipa-devirt.c (record_target_from_binfo): Remove overactive
24508 sanity check.
24509
24510 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24511
24512 PR ipa/59469
24513 * lto-cgraph.c (lto_output_node): Use
24514 symtab_get_symbol_partitioning_class.
24515 (lto_output_varpool_node): likewise.
24516 (symtab_get_symbol_partitioning_class): Move here from
24517 lto/lto-partition.c
24518 * cgraph.h (symbol_partitioning_class): Likewise.
24519 (symtab_get_symbol_partitioning_class): Declare.
24520
24521 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24522
24523 * ggc.h (ggc_internal_cleared_alloc): New macro.
24524 * vec.h (vec_safe_copy): Handle memory stats.
24525 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
24526 * target-globals.c (save_target_globals): Likewise.
24527
24528 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
24529
24530 PR target/60077
24531 * expr.c (emit_move_resolve_push): Export; be bit more selective
24532 on when to clear alias set.
24533 * expr.h (emit_move_resolve_push): Declare.
24534 * function.h (struct function): Add tail_call_marked.
24535 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
24536 * config/i386/i386-protos.h (ix86_expand_push): Remove.
24537 * config/i386/i386.md (TImode move expander): De not call
24538 ix86_expand_push.
24539 (FP push expanders): Preserve memory attributes.
24540 * config/i386/sse.md (push<mode>1): Remove.
24541 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
24542 (ix86_expand_push): Remove.
24543 * config/i386/mmx.md (push<mode>1): Remove.
24544
24545 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24546
24547 PR rtl-optimization/60030
24548 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24549 lopart with paradoxical subreg before shifting it up by hprec.
24550
24551 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24552
24553 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24554 Remove extra newline at end of file.
24555 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24556 (arm_issue_rate): Handle cortexa57.
24557 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24558 (cortex-a57.cortex-a53): Likewise.
24559
24560 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24561
24562 PR target/59575
24563 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24564 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24565 bitmask.
24566 (arm_expand_prologue): Adjust all callers.
24567 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24568 info, registers also at the lowest numbered registers side. Use
24569 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24570 XEXP.
24571
24572 PR debug/59992
24573 * var-tracking.c (adjust_mems): Before adding a SET to
24574 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24575
24576 2014-02-06 Alan Modra <amodra@gmail.com>
24577
24578 PR target/60032
24579 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24580 change SDmode to DDmode when lra_in_progress.
24581
24582 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24583
24584 PR middle-end/59150
24585 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24586 free_data_ref on the dr first, and before goto again also set dr
24587 to the next dr. For simd_lane_access, free old datarefs[i] before
24588 overwriting it. For get_vectype_for_scalar_type failure, don't
24589 free_data_ref if simd_lane_access.
24590
24591 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24592
24593 PR target/60062
24594 * tree.h (opts_for_fn): New inline function.
24595 (opt_for_fn): Define.
24596 * config/i386/i386.c (ix86_function_regparm): Use
24597 opt_for_fn (decl, optimize) instead of optimize.
24598
24599 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24600
24601 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24602 for SYMBOL_REF in large memory model.
24603
24604 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24605
24606 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24607 and crypto support.
24608 (cortex-a57): Likewise.
24609 (cortex-a57.cortex-a53): Likewise.
24610
24611 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24612 Kugan Vivekanandarajah <kuganv@linaro.org>
24613
24614 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24615 unaligned_access.
24616 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24617
24618 2014-02-06 Richard Biener <rguenther@suse.de>
24619
24620 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24621 set_loop_copy and initialize_original_copy_tables.
24622
24623 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24624
24625 * config/aarch64/aarch64-simd.md
24626 (aarch64_ashr_simddi): Change QI to SI.
24627
24628 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24629 Jakub Jelinek <jakub@redhat.com>
24630
24631 PR middle-end/60013
24632 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24633 of the dataflow.
24634
24635 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24636
24637 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24638 CODE_FOR_altivec_vpku[hw]um to
24639 CODE_FOR_altivec_vpku[hw]um_direct.
24640 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24641 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24642 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24643 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24644
24645 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24646
24647 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24648 generation for -maltivec=be.
24649 (altivec_vsumsws): Simplify redundant test.
24650
24651 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24652
24653 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24654 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24655 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24656 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24657 gen_altivec_vpkuwum.
24658 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24659 BYTES_BIG_ENDIAN.
24660 (altivec_vpks<VI_char>ss): Likewise.
24661 (altivec_vpks<VI_char>us): Likewise.
24662 (altivec_vpku<VI_char>us): Likewise.
24663 (altivec_vpku<VI_char>um): Likewise.
24664 (altivec_vpku<VI_char>um_direct): New (copy of
24665 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24666 internal use).
24667 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24668 target is little endian and -maltivec=be is not specified.
24669 (*altivec_vupkhs<VU_char>_direct): New (copy of
24670 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24671 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24672 target is little endian and -maltivec=be is not specified.
24673 (*altivec_vupkls<VU_char>_direct): New (copy of
24674 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24675 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24676 little endian and -maltivec=be is not specified.
24677 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24678 little endian and -maltivec=be is not specified.
24679
24680 2014-02-05 Richard Henderson <rth@redhat.com>
24681
24682 PR debug/52727
24683 * combine-stack-adj.c: Revert r206943.
24684 * sched-int.h (struct deps_desc): Add last_args_size.
24685 * sched-deps.c (init_deps): Initialize it.
24686 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24687 contain REG_ARGS_SIZE notes.
24688
24689 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24690
24691 * lto-cgraph.c (asm_nodes_output): Make global.
24692 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24693 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24694 (driver_handle_option): Handle OPT_fwpa.
24695
24696 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24697
24698 PR ipa/59947
24699 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24700 a comment typo and formatting issue. If odr_hash hasn't been
24701 created, return vNULL and set *completep to false.
24702
24703 PR middle-end/57499
24704 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24705 bb with no successors.
24706
24707 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24708
24709 PR target/59718
24710 * doc/invoke.texi (-march): Clarify documentation for ARM.
24711 (-mtune): Likewise.
24712 (-mcpu): Likewise.
24713
24714 2014-02-05 Richard Biener <rguenther@suse.de>
24715
24716 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24717 when not vectorizing because of too many alias checks.
24718 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24719 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24720
24721 2014-02-05 Nick Clifton <nickc@redhat.com>
24722
24723 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24724 accept extended registers in any mode when compiling for the MN10300.
24725
24726 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24727
24728 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24729 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24730 sanitization attributes.
24731 (can_inline_edge_p): Likewise.
24732 (sanitize_attrs_match_for_inline_p): New function.
24733
24734 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24735
24736 * ipa-prop.c (detect_type_change): Shor circuit testing of
24737 type changes on THIS pointer.
24738
24739 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24740
24741 PR target/59777
24742 * config/pa/pa.c (legitimize_tls_address): Return original address
24743 if not passed a SYMBOL_REF rtx.
24744 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24745 addresses.
24746 (pa_emit_move_sequence): Simplify TLS source operands.
24747 (pa_legitimate_constant_p): Reject all TLS constants.
24748 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24749 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24750
24751 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24752
24753 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24754 groups when we know they are controlled by LTO.
24755 * varasm.c (default_binds_local_p_1): If object is in other partition,
24756 it will be resolved locally.
24757
24758 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24759
24760 * config/host-linux.c (linux_gt_pch_use_address): Don't
24761 use SSIZE_MAX because it is not always defined.
24762
24763 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24764
24765 PR bootstrap/59913
24766 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24767 threshold for pseudo splitting.
24768 (update_ebb_live_info): Process call argument hard registers and
24769 hard registers from insn definition too.
24770 (max_small_class_regs_num): New constant.
24771 (inherit_in_ebb): Update live hard regs through EBBs. Update
24772 reloads_num only for small register classes. Don't split for
24773 outputs of jumps.
24774
24775 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24776
24777 PR ipa/60058
24778 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24779 is non-null.
24780
24781 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24782
24783 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24784 visibility is safe.
24785
24786 2014-02-04 Marek Polacek <polacek@redhat.com>
24787
24788 * gdbinit.in (pel): Define.
24789
24790 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24791
24792 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24793 behavior.
24794
24795 2014-02-04 Richard Biener <rguenther@suse.de>
24796
24797 PR lto/59723
24798 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24799 in function context local.
24800 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24801 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24802 similar to LTO_imported_decl_ref.
24803
24804 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24805
24806 PR tree-optimization/60002
24807 * cgraphclones.c (build_function_decl_skip_args): Clear
24808 DECL_LANG_SPECIFIC.
24809
24810 PR tree-optimization/60023
24811 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24812 false to gsi_replace.
24813 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24814 has been in some EH region and vec_stmt could throw, add
24815 vec_stmt into the same EH region.
24816 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24817 has no lhs, ignore it.
24818 * internal-fn.c (expand_MASK_LOAD): Likewise.
24819
24820 PR ipa/60026
24821 * tree-inline.c (copy_forbidden): Fail for
24822 __attribute__((optimize (0))) functions.
24823
24824 PR other/58712
24825 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24826 is set, copy one less argument.
24827 (expand_simd_clones): Don't subtract clone_info->inbranch
24828 from simd_clone_struct_alloc argument.
24829
24830 PR rtl-optimization/57915
24831 * recog.c (simplify_while_replacing): If all unary/binary/relational
24832 operation arguments are constant, attempt to simplify those.
24833
24834 PR middle-end/59261
24835 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24836 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24837
24838 2014-02-04 Richard Biener <rguenther@suse.de>
24839
24840 PR tree-optimization/60012
24841 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24842 TBAA disambiguation to all DDRs.
24843
24844 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24845
24846 PR target/59788
24847 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24848 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24849
24850 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24851
24852 PR ipa/59882
24853 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24854
24855 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24856
24857 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24858 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24859
24860 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24861
24862 PR ipa/59831
24863 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24864 to figure out targets of polymorphic calls with known decl.
24865 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24866 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24867 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24868 (get_polymorphic_call_info): ... here.
24869 (get_polymorphic_call_info_from_invariant): New function.
24870
24871 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24872
24873 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24874 lookup via vtable pointer; check for type consistency
24875 and turn inconsitent facts into UNREACHABLE.
24876 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24877 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24878 type inconsistent querries; return UNREACHABLE instead.
24879
24880 2014-02-03 Richard Henderson <rth@twiddle.net>
24881
24882 PR tree-opt/59924
24883 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24884 already processed this node.
24885 (normalize_one_pred_1): Pass along mark_set.
24886 (normalize_one_pred): Create and destroy a pointer_set_t.
24887 (normalize_one_pred_chain): Likewise.
24888
24889 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24890
24891 PR gcov-profile/58602
24892 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24893
24894 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24895
24896 PR ipa/59831
24897 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24898 -fno-devirtualize; try to devirtualize by the knowledge of
24899 virtual table pointer given by aggregate propagation.
24900 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24901 (ipa_print_node_jump_functions): Dump also offset that
24902 is relevant for polymorphic calls.
24903 (determine_known_aggregate_parts): Add arg_type parameter; use it
24904 instead of determining the type from pointer type.
24905 (ipa_compute_jump_functions_for_edge): Update call of
24906 determine_known_aggregate_parts.
24907 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24908 (gimple_get_virt_method_for_binfo): ... here; simplify using
24909 vtable_pointer_value_to_vtable.
24910 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24911 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24912 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24913 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24914 POINTER_PLUS_EXPR.
24915 (vtable_pointer_value_to_binfo): ... here.
24916 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24917
24918 2014-02-03 Teresa Johnson <tejohnson@google.com>
24919
24920 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24921 redef of outer loop index variable.
24922
24923 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24924
24925 PR c++/53017
24926 PR c++/59211
24927 * doc/extend.texi (Function Attributes): Typo.
24928
24929 2014-02-03 Cong Hou <congh@google.com>
24930
24931 PR tree-optimization/60000
24932 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24933 if the vectorized statement is a store. A store statement can only
24934 appear at the end of pattern statements.
24935
24936 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24937
24938 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24939 (ix86_option_override_internal): Default long double to 64-bit for
24940 32-bit Bionic and to 128-bit for 64-bit Bionic.
24941
24942 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24943 TARGET_LONG_DOUBLE_128 is true.
24944 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24945
24946 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24947 (mlong-double-64): Negate -mlong-double-128.
24948 (mlong-double-128): New option.
24949
24950 * config/i386/i386-c.c (ix86_target_macros): Define
24951 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24952
24953 * doc/invoke.texi: Document -mlong-double-128.
24954
24955 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24956
24957 PR rtl-optimization/60024
24958 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24959
24960 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24961
24962 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24963
24964 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24965
24966 PR rtl-optimization/57662
24967 * sel-sched.c (code_motion_path_driver): Do not mark already not
24968 existing blocks in the visiting bitmap.
24969
24970 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24971
24972 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24973 on the insn being emitted.
24974
24975 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24976 Will Deacon <will.deacon@arm.com>
24977
24978 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24979
24980 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24981
24982 * config/arm/arm-tables.opt: Regenerate.
24983
24984 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24985
24986 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24987 for vector types other than V16QImode.
24988 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24989 define_expand, and call altivec_expand_vec_perm_le when producing
24990 code with little endian element order.
24991 (*altivec_vperm_<mode>_internal): New insn having previous
24992 behavior of altivec_vperm_<mode>.
24993 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24994 altivec_expand_vec_perm_le when producing code with little endian
24995 element order.
24996 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24997 behavior of altivec_vperm_<mode>_uns.
24998
24999 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25000
25001 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
25002 (altivec_vsumsws): Add handling for -maltivec=be with a little
25003 endian target.
25004 (altivec_vsumsws_direct): New.
25005 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
25006 gen_altivec_vsumsws.
25007
25008 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
25009
25010 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
25011 vtable_pointer_value_to_binfo): New functions.
25012 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
25013 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
25014
25015 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
25016
25017 * config/nios2/nios2.md (load_got_register): Initialize GOT
25018 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
25019 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
25020
25021 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
25022
25023 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
25024 preserverd by passthrough, do not propagate the type.
25025
25026 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25027
25028 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
25029 (mips_atomic_assign_expand_fenv): New function.
25030 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
25031
25032 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25033
25034 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
25035 (__builtin_mips_set_fcsr): Likewise.
25036 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
25037 MIPS_USI_FTYPE_VOID.
25038 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
25039 (mips16_expand_set_fcsr): Likewise.
25040 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
25041 (mips16_set_fcsr_stub): Likewise.
25042 (mips16_get_fcsr_one_only_stub): New class.
25043 (mips16_set_fcsr_one_only_stub): Likewise.
25044 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
25045 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
25046 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
25047 (hard_float): New availability predicate.
25048 (mips_builtins): Add get_fcsr and set_fcsr.
25049 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
25050 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
25051 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
25052 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
25053 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
25054 patterns.
25055
25056 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
25057
25058 * config/mips/mips.c (mips_one_only_stub): New class.
25059 (mips_need_mips16_rdhwr_p): Replace with...
25060 (mips16_rdhwr_stub): ...this new variable.
25061 (mips16_stub_call_address): New function.
25062 (mips16_rdhwr_one_only_stub): New class.
25063 (mips_expand_thread_pointer): Use mips16_stub_call_address.
25064 (mips_output_mips16_rdhwr): Delete.
25065 (mips_finish_stub): New function.
25066 (mips_code_end): Use it to handle rdhwr stubs.
25067
25068 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
25069
25070 PR target/60017
25071 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
25072 when calculating size of integer atomic types.
25073
25074 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
25075
25076 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
25077
25078 2014-02-01 Jakub Jelinek <jakub@redhat.com>
25079
25080 PR tree-optimization/60003
25081 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
25082 * profile.c (branch_prob): Use gimple_call_builtin_p
25083 to check for BUILT_IN_SETJMP_RECEIVER.
25084 * tree-inline.c (copy_bb): Call notice_special_calls.
25085
25086 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
25087
25088 PR bootstrap/59985
25089 * lra-constraints.c (process_alt_operands): Update reload_sum only
25090 on the first pass.
25091
25092 2014-01-31 Richard Henderson <rth@redhat.com>
25093
25094 PR middle-end/60004
25095 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
25096 until after else_eh is processed.
25097
25098 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
25099
25100 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
25101 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
25102 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
25103 in smmintrin.h, remove them.
25104 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
25105 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
25106 * config/i386/i386.md (ROUND_SAE): Fix value.
25107 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
25108 (const48_operand): New.
25109 * config/i386/subst.md (round), (round_expand): Use
25110 const_4_or_8_to_11_operand.
25111 (round_saeonly), (round_saeonly_expand): Use const48_operand.
25112
25113 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
25114
25115 * config/i386/constraints.md (Yk): Swap meaning with k.
25116 * config/i386/i386.md (movhi_internal): Change Yk to k.
25117 (movqi_internal): Ditto.
25118 (*k<logic><mode>): Ditto.
25119 (*andhi_1): Ditto.
25120 (*andqi_1): Ditto.
25121 (kandn<mode>): Ditto.
25122 (*<code>hi_1): Ditto.
25123 (*<code>qi_1): Ditto.
25124 (kxnor<mode>): Ditto.
25125 (kortestzhi): Ditto.
25126 (kortestchi): Ditto.
25127 (kunpckhi): Ditto.
25128 (*one_cmplhi2_1): Ditto.
25129 (*one_cmplqi2_1): Ditto.
25130 * config/i386/sse.md (): Change k to Yk.
25131 (avx512f_load<mode>_mask): Ditto.
25132 (avx512f_blendm<mode>): Ditto.
25133 (avx512f_store<mode>_mask): Ditto.
25134 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
25135 (avx512f_storedqu<mode>_mask): Ditto.
25136 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
25137 Ditto.
25138 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
25139 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
25140 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
25141 (avx512f_maskcmp<mode>3): Ditto.
25142 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
25143 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
25144 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
25145 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
25146 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
25147 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
25148 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
25149 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
25150 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
25151 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
25152 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
25153 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
25154 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
25155 (vec_extract_lo_<mode>_maskm): Ditto.
25156 (vec_extract_hi_<mode>_maskm): Ditto.
25157 (avx512f_vternlog<mode>_mask): Ditto.
25158 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
25159 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
25160 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
25161 (avx512f_<code>v8div16qi2_mask): Ditto.
25162 (avx512f_<code>v8div16qi2_mask_store): Ditto.
25163 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
25164 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
25165 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
25166 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
25167 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
25168 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25169 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
25170 (*avx512pf_scatterpf<mode>df_mask): Ditto.
25171 (avx512cd_maskb_vec_dupv8di): Ditto.
25172 (avx512cd_maskw_vec_dupv16si): Ditto.
25173 (avx512f_vpermi2var<mode>3_maskz): Ditto.
25174 (avx512f_vpermi2var<mode>3_mask): Ditto.
25175 (avx512f_vpermi2var<mode>3_mask): Ditto.
25176 (avx512f_vpermt2var<mode>3_maskz): Ditto.
25177 (*avx512f_gathersi<mode>): Ditto.
25178 (*avx512f_gathersi<mode>_2): Ditto.
25179 (*avx512f_gatherdi<mode>): Ditto.
25180 (*avx512f_gatherdi<mode>_2): Ditto.
25181 (*avx512f_scattersi<mode>): Ditto.
25182 (*avx512f_scatterdi<mode>): Ditto.
25183 (avx512f_compress<mode>_mask): Ditto.
25184 (avx512f_compressstore<mode>_mask): Ditto.
25185 (avx512f_expand<mode>_mask): Ditto.
25186 * config/i386/subst.md (mask): Change k to Yk.
25187 (mask_scalar_merge): Ditto.
25188 (sd): Ditto.
25189
25190 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
25191
25192 * doc/extend.texi (Vector Extensions): Document ?: in C++.
25193
25194 2014-01-31 Richard Biener <rguenther@suse.de>
25195
25196 PR middle-end/59990
25197 * builtins.c (fold_builtin_memory_op): Make sure to not
25198 use a floating-point mode or a boolean or enumeral type for
25199 the copy operation.
25200
25201 2014-01-30 DJ Delorie <dj@redhat.com>
25202
25203 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
25204 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
25205 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
25206 whenever main() has an epilogue.
25207
25208 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25209
25210 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
25211 unused variable "field".
25212 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
25213 (vsx_mergeh_<mode>): Likewise.
25214 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
25215 (altivec_vmrghh): Likewise.
25216 (altivec_vmrghw): Likewise.
25217 (altivec_vmrglb): Likewise.
25218 (altivec_vmrglh): Likewise.
25219 (altivec_vmrglw): Likewise.
25220 (altivec_vspltb): Add missing uses.
25221 (altivec_vsplth): Likewise.
25222 (altivec_vspltw): Likewise.
25223 (altivec_vspltsf): Likewise.
25224
25225 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25226
25227 PR target/59923
25228 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
25229 frame related instructions.
25230
25231 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
25232
25233 PR rtl-optimization/59959
25234 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
25235 any reload of register whose subreg is invalid.
25236
25237 2014-01-30 Jakub Jelinek <jakub@redhat.com>
25238
25239 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
25240 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
25241 Add missing return type - void.
25242
25243 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25244
25245 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
25246 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
25247 remove element index adjustment for endian (now handled in vsx.md
25248 and altivec.md).
25249 (altivec_expand_vec_perm_const): Use
25250 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
25251 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
25252 (vsx_xxspltw_<mode>): Adjust element index for little endian.
25253 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
25254 define_expand and a new define_insn *altivec_vspltb_internal;
25255 adjust for -maltivec=be on a little endian target.
25256 (altivec_vspltb_direct): New.
25257 (altivec_vsplth): Divide into a define_expand and a new
25258 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
25259 little endian target.
25260 (altivec_vsplth_direct): New.
25261 (altivec_vspltw): Divide into a define_expand and a new
25262 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
25263 little endian target.
25264 (altivec_vspltw_direct): New.
25265 (altivec_vspltsf): Divide into a define_expand and a new
25266 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
25267 a little endian target.
25268
25269 2014-01-30 Richard Biener <rguenther@suse.de>
25270
25271 PR tree-optimization/59993
25272 * tree-ssa-forwprop.c (associate_pointerplus): Check we
25273 can propagate form the earlier stmt and avoid the transform
25274 when the intermediate result is needed.
25275
25276 2014-01-30 Alangi Derick <alangiderick@gmail.com>
25277
25278 * README.Portability: Fix typo.
25279
25280 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
25281
25282 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
25283 comparison_operator with ordered_comparison_operator.
25284
25285 2014-01-30 Nick Clifton <nickc@redhat.com>
25286
25287 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
25288 Rename to mn10300_store_multiple_regs.
25289 * config/mn10300/mn10300.c: Likewise.
25290 * config/mn10300/mn10300.md (store_movm): Fix typo: call
25291 store_multiple_regs.
25292 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
25293 Call mn10300_store_multiple_regs.
25294
25295 2014-01-30 Nick Clifton <nickc@redhat.com>
25296 DJ Delorie <dj@redhat.com>
25297
25298 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
25299 %fp 2 to keep registers after it properly word-aligned.
25300 (rl78_alloc_physical_registers_umul): Handle the case where both
25301 input operands are the same.
25302
25303 2014-01-30 Richard Biener <rguenther@suse.de>
25304
25305 PR tree-optimization/59903
25306 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
25307 check properly.
25308
25309 2014-01-30 Jason Merrill <jason@redhat.com>
25310
25311 PR c++/59633
25312 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
25313
25314 PR c++/59645
25315 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
25316
25317 2014-01-30 Richard Biener <rguenther@suse.de>
25318
25319 PR tree-optimization/59951
25320 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
25321
25322 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
25323
25324 PR target/59784
25325 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
25326 SFmode to DFmode case.
25327
25328 2014-01-29 DJ Delorie <dj@redhat.com>
25329
25330 * config/msp430/msp430.opt (-minrt): New.
25331 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
25332 if -minrt given.
25333 (ENDFILE_SPEC): Likewise.
25334
25335 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
25336
25337 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
25338 (estimate_function_body_sizes): Use it.
25339
25340 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
25341
25342 PR c++/58561
25343 * dwarf2out.c (is_cxx_auto): New.
25344 (is_base_type): Use it.
25345 (gen_type_die_with_usage): Likewise.
25346
25347 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25348
25349 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
25350 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
25351 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
25352 -maltivec=be with LE targets.
25353 (vsx_mergeh_<mode>): Likewise.
25354 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
25355 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
25356 (altivec_vmrghb): Replace with define_expand and new
25357 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
25358 (altivec_vmrghb_direct): New define_insn.
25359 (altivec_vmrghh): Replace with define_expand and new
25360 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
25361 (altivec_vmrghh_direct): New define_insn.
25362 (altivec_vmrghw): Replace with define_expand and new
25363 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
25364 (altivec_vmrghw_direct): New define_insn.
25365 (*altivec_vmrghsf): Adjust for endianness.
25366 (altivec_vmrglb): Replace with define_expand and new
25367 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
25368 (altivec_vmrglb_direct): New define_insn.
25369 (altivec_vmrglh): Replace with define_expand and new
25370 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
25371 (altivec_vmrglh_direct): New define_insn.
25372 (altivec_vmrglw): Replace with define_expand and new
25373 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
25374 (altivec_vmrglw_direct): New define_insn.
25375 (*altivec_vmrglsf): Adjust for endianness.
25376 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25377 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25378 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
25379 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
25380 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25381 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25382 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
25383 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
25384
25385 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
25386
25387 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
25388 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
25389 whitespace.
25390
25391 2014-01-29 Richard Biener <rguenther@suse.de>
25392
25393 PR tree-optimization/58742
25394 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
25395 associate_pointerplus_align.
25396 (associate_pointerplus_diff): New function.
25397 (associate_pointerplus): Likewise. Call associate_pointerplus_align
25398 and associate_pointerplus_diff.
25399
25400 2014-01-29 Richard Biener <rguenther@suse.de>
25401
25402 * lto-streamer.h (LTO_major_version): Bump to 3.
25403 (LTO_minor_version): Reset to 0.
25404
25405 2014-01-29 Renlin Li <Renlin.Li@arm.com>
25406
25407 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
25408 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
25409 (arm_file_start): Generate correct asm header for armv7ve.
25410 * config/arm/bpabi.h: Add multilib support for armv7ve.
25411 * config/arm/driver-arm.c: Change the architectures of cortex-a7
25412 and cortex-a15 to armv7ve.
25413 * config/arm/t-aprofile: Add multilib support for armv7ve.
25414 * doc/invoke.texi: Document -march=armv7ve.
25415
25416 2014-01-29 Richard Biener <rguenther@suse.de>
25417
25418 PR tree-optimization/58742
25419 * tree-ssa-forwprop.c (associate_plusminus): Return true
25420 if we changed sth, defer EH cleanup to ...
25421 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
25422 (simplify_mult): New function.
25423
25424 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25425
25426 PR middle-end/59917
25427 PR tree-optimization/59920
25428 * tree.c (build_common_builtin_nodes): Remove
25429 __builtin_setjmp_dispatcher initialization.
25430 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
25431 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
25432 instead of gsi_after_labels + manually skipping debug stmts.
25433 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
25434 ignore bbs with IFN_ABNORMAL_DISPATCHER.
25435 * tree-inline.c (copy_edges_for_bb): Remove
25436 can_make_abnormal_goto argument, instead add abnormal_goto_dest
25437 argument. Ignore computed_goto_p stmts. Don't call
25438 make_abnormal_goto_edges. If a call might need abnormal edges
25439 for non-local gotos, see if it already has an edge to
25440 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
25441 with true argument, don't do anything then, otherwise add
25442 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
25443 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
25444 caller.
25445 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
25446 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
25447 (lower_stmt): Don't set data->calls_builtin_setjmp.
25448 (lower_builtin_setjmp): Adjust comment.
25449 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
25450 * tree-cfg.c (found_computed_goto): Remove.
25451 (factor_computed_gotos): Remove.
25452 (make_goto_expr_edges): Return bool, true for computed gotos.
25453 Don't call make_abnormal_goto_edges.
25454 (build_gimple_cfg): Don't set found_computed_goto, don't call
25455 factor_computed_gotos.
25456 (computed_goto_p): No longer static.
25457 (make_blocks): Don't set found_computed_goto.
25458 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
25459 (make_edges): If make_goto_expr_edges returns true, push bb
25460 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
25461 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
25462 vector. Record mapping between bbs and OpenMP regions if there
25463 are any, adjust make_gimple_omp_edges caller. Call
25464 handle_abnormal_edges.
25465 (make_abnormal_goto_edges): Remove.
25466 * tree-cfg.h (make_abnormal_goto_edges): Remove.
25467 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
25468 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
25469 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
25470 * internal-fn.def (ABNORMAL_DISPATCHER): New.
25471 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
25472 filling *region also set *region_idx to (*region)->entry->index.
25473
25474 PR other/58712
25475 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
25476 For REGs set ORIGINAL_REGNO.
25477
25478 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
25479
25480 * doc/md.texi: Mention that a target shouldn't implement
25481 vec_widen_(s|u)mul_even/odd pair if it is less efficient
25482 than hi/lo pair.
25483
25484 2014-01-29 Jakub Jelinek <jakub@redhat.com>
25485
25486 PR tree-optimization/59594
25487 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
25488 a copy of the datarefs vector rather than the vector itself.
25489
25490 2014-01-28 Jason Merrill <jason@redhat.com>
25491
25492 PR c++/53756
25493 * dwarf2out.c (auto_die): New static.
25494 (gen_type_die_with_usage): Handle C++1y 'auto'.
25495 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
25496 on definition.
25497
25498 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
25499
25500 PR target/59672
25501 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
25502 (SPEC_X32): Likewise.
25503 (SPEC_64): Likewise.
25504 * config/i386/i386.c (ix86_option_override_internal): Turn off
25505 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
25506 for TARGET_16BIT.
25507 (x86_file_start): Output .code16gcc for TARGET_16BIT.
25508 * config/i386/i386.h (TARGET_16BIT): New macro.
25509 (TARGET_16BIT_P): Likewise.
25510 * config/i386/i386.opt: Add m16.
25511 * doc/invoke.texi: Document -m16.
25512
25513 2014-01-28 Jakub Jelinek <jakub@redhat.com>
25514
25515 PR preprocessor/59935
25516 * input.c (location_get_source_line): Bail out on when line number
25517 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
25518
25519 2014-01-28 Richard Biener <rguenther@suse.de>
25520
25521 PR tree-optimization/58742
25522 * tree-ssa-forwprop.c (associate_plusminus): Handle
25523 pointer subtraction of the form (T)(P + A) - (T)P.
25524
25525 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25526
25527 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
25528 at const_int_cost.
25529
25530 2014-01-28 Richard Biener <rguenther@suse.de>
25531
25532 Revert
25533 2014-01-28 Richard Biener <rguenther@suse.de>
25534
25535 PR rtl-optimization/45364
25536 PR rtl-optimization/59890
25537 * var-tracking.c (local_get_addr_clear_given_value): Handle
25538 already cleared slot.
25539 (val_reset): Handle not allocated local_get_addr_cache.
25540 (vt_find_locations): Use post-order on the inverted CFG.
25541
25542 2014-01-28 Richard Biener <rguenther@suse.de>
25543
25544 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
25545
25546 2014-01-28 Richard Biener <rguenther@suse.de>
25547
25548 PR rtl-optimization/45364
25549 PR rtl-optimization/59890
25550 * var-tracking.c (local_get_addr_clear_given_value): Handle
25551 already cleared slot.
25552 (val_reset): Handle not allocated local_get_addr_cache.
25553 (vt_find_locations): Use post-order on the inverted CFG.
25554
25555 2014-01-28 Alan Modra <amodra@gmail.com>
25556
25557 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25558 * configure.ac <recursive call for build != host>: Define
25559 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25560 and LD_FOR_BUILD too.
25561 * configure: Regenerate.
25562
25563 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25564
25565 * config/i386/i386.c (get_builtin_code_for_version): Separate
25566 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25567 Broadwell from Haswell.
25568
25569 2014-01-27 Steve Ellcey <sellcey@mips.com>
25570
25571 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25572 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25573 * config/mips/mips.c (mips_option_override): Change setting
25574 of TARGET_DSP.
25575 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25576 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25577 Change from Mask to Var.
25578
25579 2014-01-27 Jeff Law <law@redhat.com>
25580
25581 * ipa-inline.c (inline_small_functions): Fix typo.
25582
25583 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25584
25585 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25586 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25587 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25588 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25589 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25590 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25591 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25592 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25593 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25594 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25595 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25596 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25597 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25598 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25599 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25600 (_mm512_storeu_epi64): Ditto.
25601 (_mm512_cmpge_epi32_mask): Ditto.
25602 (_mm512_cmpge_epu32_mask): Ditto.
25603 (_mm512_cmpge_epi64_mask): Ditto.
25604 (_mm512_cmpge_epu64_mask): Ditto.
25605 (_mm512_cmple_epi32_mask): Ditto.
25606 (_mm512_cmple_epu32_mask): Ditto.
25607 (_mm512_cmple_epi64_mask): Ditto.
25608 (_mm512_cmple_epu64_mask): Ditto.
25609 (_mm512_cmplt_epi32_mask): Ditto.
25610 (_mm512_cmplt_epu32_mask): Ditto.
25611 (_mm512_cmplt_epi64_mask): Ditto.
25612 (_mm512_cmplt_epu64_mask): Ditto.
25613 (_mm512_cmpneq_epi32_mask): Ditto.
25614 (_mm512_cmpneq_epu32_mask): Ditto.
25615 (_mm512_cmpneq_epi64_mask): Ditto.
25616 (_mm512_cmpneq_epu64_mask): Ditto.
25617 (_mm512_expand_pd): Ditto.
25618 (_mm512_expand_ps): Ditto.
25619 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25620 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25621 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25622 * config/i386/i386.c (ix86_builtins): Add
25623 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25624 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25625 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25626 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25627 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25628 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25629 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25630 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25631 IX86_BUILTIN_PMOVUSQW512_MEM.
25632 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25633 __builtin_ia32_pmovsqd512mem_mask,
25634 __builtin_ia32_pmovqd512mem_mask,
25635 __builtin_ia32_pmovusqw512mem_mask,
25636 __builtin_ia32_pmovsqw512mem_mask,
25637 __builtin_ia32_pmovqw512mem_mask,
25638 __builtin_ia32_pmovusdw512mem_mask,
25639 __builtin_ia32_pmovsdw512mem_mask,
25640 __builtin_ia32_pmovdw512mem_mask,
25641 __builtin_ia32_pmovqb512mem_mask,
25642 __builtin_ia32_pmovusqb512mem_mask,
25643 __builtin_ia32_pmovsqb512mem_mask,
25644 __builtin_ia32_pmovusdb512mem_mask,
25645 __builtin_ia32_pmovsdb512mem_mask,
25646 __builtin_ia32_pmovdb512mem_mask.
25647 (bdesc_args): Add __builtin_ia32_expanddf512,
25648 __builtin_ia32_expandsf512.
25649 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25650 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25651 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25652 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25653 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25654 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25655 (avx512f_<code>v8div16qi2_mask_store): This.
25656 (avx512f_expand<mode>): New.
25657
25658 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25659
25660 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25661 New.
25662 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25663 (_mm512_prefetch_i32scatter_pd): Ditto.
25664 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25665 (_mm512_prefetch_i64scatter_pd): Ditto.
25666 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25667 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25668 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25669 (_mm512_prefetch_i32scatter_ps): Ditto.
25670 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25671 (_mm512_prefetch_i64scatter_ps): Ditto.
25672 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25673 * config/i386/i386-builtin-types.def: Define
25674 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25675 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25676 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25677 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25678 IX86_BUILTIN_SCATTERPFQPD.
25679 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25680 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25681 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25682 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25683 __builtin_ia32_scatterpfqps.
25684 (ix86_expand_builtin): Expand new built-ins.
25685 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25686 fix memory access data type.
25687 (*avx512pf_gatherpf<mode>_mask): Ditto.
25688 (*avx512pf_gatherpf<mode>): Ditto.
25689 (avx512pf_scatterpf<mode>): Ditto.
25690 (*avx512pf_scatterpf<mode>_mask): Ditto.
25691 (*avx512pf_scatterpf<mode>): Ditto.
25692 (GATHER_SCATTER_SF_MEM_MODE): New.
25693 (avx512pf_gatherpf<mode>df): Ditto.
25694 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25695 (*avx512pf_scatterpf<mode>df): Ditto.
25696
25697 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25698
25699 PR bootstrap/59934
25700 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25701 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25702 reached.
25703
25704 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25705
25706 * common/config/arm/arm-common.c
25707 (arm_rewrite_mcpu): Handle multiple names.
25708 * config/arm/arm.h
25709 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25710
25711 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25712
25713 * gimple-builder.h (create_gimple_tmp): Delete.
25714
25715 2014-01-27 Christian Bruel <christian.bruel@st.com>
25716
25717 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25718 words comparisons.
25719
25720 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25721
25722 * config/pa/pa.md (call): Generate indirect long calls to non-local
25723 functions when outputing 32-bit code.
25724 (call_value): Likewise except for special call to buggy powf function.
25725
25726 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25727 portable runtime and PIC indirect calls.
25728 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25729 and PIC call sequences. Use ldo instead of blr to set return register
25730 in PIC call sequence.
25731
25732 2014-01-25 Walter Lee <walt@tilera.com>
25733
25734 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25735 avoid clobbering a live register.
25736
25737 2014-01-25 Walter Lee <walt@tilera.com>
25738
25739 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25740 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25741 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25742 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25743
25744 2014-01-25 Walter Lee <walt@tilera.com>
25745
25746 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25747 arguments on even registers.
25748 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25749 STACK_BOUNDARY.
25750 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25751 (BIGGEST_ALIGNMENT): Ditto.
25752 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25753
25754 2014-01-25 Walter Lee <walt@tilera.com>
25755
25756 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25757 insns before bundling.
25758 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25759
25760 2014-01-25 Walter Lee <walt@tilera.com>
25761
25762 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25763 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25764 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25765
25766 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25767
25768 * config/mips/constraints.md (kl): Delete.
25769 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25770 define expands, using...
25771 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25772 instructions for MIPS16.
25773 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25774 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25775
25776 2014-01-25 Walter Lee <walt@tilera.com>
25777
25778 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25779 (clzdi2): Ditto.
25780 (ffsdi2): Ditto.
25781
25782 2014-01-25 Walter Lee <walt@tilera.com>
25783
25784 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25785 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25786
25787 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25788
25789 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25790 Handle XOR.
25791
25792 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25793
25794 * print-rtl.c (in_call_function_usage): New var.
25795 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25796 EXPR_LIST mode as mode and not as reg note name.
25797
25798 PR middle-end/59561
25799 * cfgloopmanip.c (copy_loop_info): If
25800 loop->warned_aggressive_loop_optimizations, make sure
25801 the flag is set in target loop too.
25802
25803 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25804
25805 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25806 flag_cilkplus.
25807 * builtins.def: Likewise.
25808 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25809 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25810 * ira.c (ira_setup_eliminable_regset): Likewise.
25811 * omp-low.c (gate_expand_omp): Likewise.
25812 (execute_lower_omp): Likewise.
25813 (diagnose_sb_0): Likewise.
25814 (gate_diagnose_omp_blocks): Likewise.
25815 (simd_clone_clauses_extract): Likewise.
25816 (gate): Likewise.
25817
25818 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25819
25820 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25821 correction for little endian...
25822 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25823 here.
25824
25825 2014-01-24 Jeff Law <law@redhat.com>
25826
25827 PR tree-optimization/59919
25828 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25829 for non-returning calls.
25830
25831 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25832
25833 * common/config/aarch64/aarch64-common.c
25834 (aarch64_rewrite_mcpu): Handle multiple names.
25835 * config/aarch64/aarch64.h
25836 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25837
25838 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25839
25840 * input.c (add_file_to_cache_tab): Handle the case where fopen
25841 returns NULL.
25842
25843 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25844
25845 PR target/59929
25846 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25847 from push operand if code of push isn't PRE_DEC.
25848
25849 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25850
25851 PR target/59909
25852 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25853 -mquad-memory-atomic. Update -mquad-memory documentation to say
25854 it is only used for non-atomic loads/stores.
25855
25856 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25857 -mquad-memory or -mquad-memory-atomic switches.
25858
25859 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25860 -mquad-memory-atomic to ISA 2.07 support.
25861
25862 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25863 to separate support of normal quad word memory operations (ldq, stq)
25864 from the atomic quad word memory operations.
25865
25866 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25867 support to separate non-atomic quad word operations from atomic
25868 quad word operations. Disable non-atomic quad word operations in
25869 little endian mode so that we don't have to swap words after the
25870 load and before the store.
25871 (quad_load_store_p): Add comment about atomic quad word support.
25872 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25873 options printed with -mdebug=reg.
25874
25875 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25876 -mquad-memory-atomic as the test for whether we have quad word
25877 atomic instructions.
25878 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25879 or -mp8-vector are used, allow byte/half-word atomic operations.
25880
25881 * config/rs6000/sync.md (load_lockedti): Insure that the address
25882 is a proper indexed or indirect address for the lqarx instruction.
25883 On little endian systems, swap the hi/lo registers after the lqarx
25884 instruction.
25885 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25886 insure the address is valid for the lqarx instruction.
25887 (store_conditionalti): Insure that the address is a proper indexed
25888 or indirect address for the stqcrx. instruction. On little endian
25889 systems, swap the hi/lo registers before doing the stqcrx.
25890 instruction.
25891 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25892 insure the address is valid for the stqcrx. instruction.
25893
25894 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25895 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25896 type of quad memory support is available.
25897
25898 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25899
25900 PR regression/59915
25901 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25902 there is a danger of looping.
25903
25904 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25905
25906 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25907 force flag_ira_loop_pressure if set via command line.
25908
25909 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25910
25911 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25912 (ashr_simd): New builtin handling DI mode.
25913 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25914 (aarch64_sshr_simddi): New match pattern.
25915 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25916 (vshrd_n_s64): Likewise.
25917 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25918
25919 2014-01-23 Nick Clifton <nickc@redhat.com>
25920
25921 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25922 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25923 favour of mcu specific scripts.
25924 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25925 430x multilibs.
25926
25927 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25928 Alex Velenko <Alex.Velenko@arm.com>
25929
25930 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25931 (vaddv_s16): Likewise.
25932 (vaddv_s32): Likewise.
25933 (vaddv_u8): Likewise.
25934 (vaddv_u16): Likewise.
25935 (vaddv_u32): Likewise.
25936 (vaddvq_s8): Likewise.
25937 (vaddvq_s16): Likewise.
25938 (vaddvq_s32): Likewise.
25939 (vaddvq_s64): Likewise.
25940 (vaddvq_u8): Likewise.
25941 (vaddvq_u16): Likewise.
25942 (vaddvq_u32): Likewise.
25943 (vaddvq_u64): Likewise.
25944 (vaddv_f32): Likewise.
25945 (vaddvq_f32): Likewise.
25946 (vaddvq_f64): Likewise.
25947 (vmaxv_f32): Likewise.
25948 (vmaxv_s8): Likewise.
25949 (vmaxv_s16): Likewise.
25950 (vmaxv_s32): Likewise.
25951 (vmaxv_u8): Likewise.
25952 (vmaxv_u16): Likewise.
25953 (vmaxv_u32): Likewise.
25954 (vmaxvq_f32): Likewise.
25955 (vmaxvq_f64): Likewise.
25956 (vmaxvq_s8): Likewise.
25957 (vmaxvq_s16): Likewise.
25958 (vmaxvq_s32): Likewise.
25959 (vmaxvq_u8): Likewise.
25960 (vmaxvq_u16): Likewise.
25961 (vmaxvq_u32): Likewise.
25962 (vmaxnmv_f32): Likewise.
25963 (vmaxnmvq_f32): Likewise.
25964 (vmaxnmvq_f64): Likewise.
25965 (vminv_f32): Likewise.
25966 (vminv_s8): Likewise.
25967 (vminv_s16): Likewise.
25968 (vminv_s32): Likewise.
25969 (vminv_u8): Likewise.
25970 (vminv_u16): Likewise.
25971 (vminv_u32): Likewise.
25972 (vminvq_f32): Likewise.
25973 (vminvq_f64): Likewise.
25974 (vminvq_s8): Likewise.
25975 (vminvq_s16): Likewise.
25976 (vminvq_s32): Likewise.
25977 (vminvq_u8): Likewise.
25978 (vminvq_u16): Likewise.
25979 (vminvq_u32): Likewise.
25980 (vminnmv_f32): Likewise.
25981 (vminnmvq_f32): Likewise.
25982 (vminnmvq_f64): Likewise.
25983
25984 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25985
25986 * config/aarch64/aarch64-simd.md
25987 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25988 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25989 (*aarch64_mul3_elt<mode>): Likewise.
25990 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25991 (*aarch64_mul3_elt_to_64v2df): Likewise.
25992 (*aarch64_mla_elt<mode>): Likewise.
25993 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25994 (*aarch64_mls_elt<mode>): Likewise.
25995 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25996 (*aarch64_fma4_elt<mode>): Likewise.
25997 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25998 (*aarch64_fma4_elt_to_64v2df): Likewise.
25999 (*aarch64_fnma4_elt<mode>): Likewise.
26000 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
26001 (*aarch64_fnma4_elt_to_64v2df): Likewise.
26002 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
26003 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
26004 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26005 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
26006 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
26007 (aarch64_sqdmull_lane<mode>_internal): Likewise.
26008 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
26009
26010 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
26011
26012 * config/aarch64/aarch64-simd.md
26013 (aarch64_be_checked_get_lane<mode>): New define_expand.
26014 * config/aarch64/aarch64-simd-builtins.def
26015 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
26016 New builtin definition.
26017 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
26018 Use new safe be builtin.
26019
26020 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
26021
26022 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
26023 New define_insn.
26024 (aarch64_be_st1<mode>): Likewise.
26025 (aarch_ld1<VALL:mode>): Define_expand modified.
26026 (aarch_st1<VALL:mode>): Likewise.
26027 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
26028 (UNSPEC_ST1): Likewise.
26029
26030 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
26031
26032 * config/microblaze/microblaze.md: Add trap insn and attribute
26033
26034 2014-01-23 Dodji Seketeli <dodji@redhat.com>
26035
26036 PR preprocessor/58580
26037 * input.h (location_get_source_line): Take an additional line_size
26038 parameter.
26039 (void diagnostics_file_cache_fini): Declare new function.
26040 * input.c (struct fcache): New type.
26041 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
26042 New static constants.
26043 (diagnostic_file_cache_init, total_lines_num)
26044 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
26045 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
26046 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
26047 (get_next_line, read_next_line, goto_next_line, read_line_num):
26048 New static function definitions.
26049 (diagnostic_file_cache_fini): New function.
26050 (location_get_source_line): Take an additional output line_len
26051 parameter. Re-write using lookup_or_add_file_to_cache_tab and
26052 read_line_num.
26053 * diagnostic.c (diagnostic_finish): Call
26054 diagnostic_file_cache_fini.
26055 (adjust_line): Take an additional input parameter for the length
26056 of the line, rather than calculating it with strlen.
26057 (diagnostic_show_locus): Adjust the use of
26058 location_get_source_line and adjust_line with respect to their new
26059 signature. While displaying a line now, do not stop at the first
26060 null byte. Rather, display the zero byte as a space and keep
26061 going until we reach the size of the line.
26062 * Makefile.in: Add vec.o to OBJS-libcommon
26063
26064 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
26065 Ilya Tocar <ilya.tocar@intel.com>
26066
26067 * config/i386/avx512fintrin.h (_mm512_kmov): New.
26068 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
26069 (__builtin_ia32_kmov16): Ditto.
26070 * config/i386/i386.md (UNSPEC_KMOV): New.
26071 (kmovw): Ditto.
26072
26073 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
26074
26075 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
26076 (_mm512_storeu_si512): Ditto.
26077
26078 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
26079
26080 PR target/52125
26081 * rtl.h (get_referenced_operands): Declare.
26082 * recog.c (get_referenced_operands): New function.
26083 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
26084 operands have been referenced when recording LO_SUM references.
26085
26086 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
26087
26088 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
26089
26090 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
26091
26092 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
26093 Enable for generic and recent AMD targets.
26094
26095 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
26096
26097 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
26098 ARG_SIZE note when adjustment was eliminated.
26099
26100 2014-01-22 Jeff Law <law@redhat.com>
26101
26102 PR tree-optimization/59597
26103 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
26104 in file. Accept new argument REGISTERING and use it to modify
26105 dump output appropriately.
26106 (register_jump_thread): Corresponding changes.
26107 (mark_threaded_blocks): Reinstate code to cancel unprofitable
26108 thread paths involving joiner blocks. Add code to dump cancelled
26109 jump threading paths.
26110
26111 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
26112
26113 PR rtl-optimization/59477
26114 * lra-constraints.c (inherit_in_ebb): Process call for living hard
26115 regs. Update reloads_num and potential_reload_hard_regs for all insns.
26116
26117 2014-01-22 Tom Tromey <tromey@redhat.com>
26118
26119 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
26120 PARAMS.
26121 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
26122
26123 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
26124
26125 PR rtl-optimization/59896
26126 * lra-constraints.c (process_alt_operands): Check unused note for
26127 matched operands of insn with no output reloads.
26128
26129 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
26130
26131 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
26132 (mips_move_from_gpr_cost): Likewise.
26133
26134 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
26135
26136 PR rtl-optimization/59858
26137 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
26138 ira_class_hard_regs_num.
26139 (process_alt_operands): Increase reject for dying matched operand.
26140
26141 2014-01-21 Jakub Jelinek <jakub@redhat.com>
26142
26143 PR target/59003
26144 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
26145 smaller than size, perform several stores or loads and stores
26146 at dst + count - size to store or copy all of size bytes, rather
26147 than just last modesize bytes.
26148
26149 2014-01-20 DJ Delorie <dj@redhat.com>
26150
26151 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
26152 that CLOBBERs are REGs before propogating their values.
26153
26154 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 PR middle-end/59789
26157 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
26158 (cgraph_inline_failed_type): New function.
26159 * cgraph.h (DEFCIFCODE): Add type.
26160 (cgraph_inline_failed_type_t): New enum.
26161 (cgraph_inline_failed_type): New prototype.
26162 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
26163 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26164 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
26165 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
26166 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
26167 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
26168 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
26169 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
26170 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
26171 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
26172 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
26173 OPTIMIZATION_MISMATCH.
26174 * tree-inline.c (expand_call_inline): Emit errors during
26175 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
26176
26177 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26178
26179 PR target/59685
26180 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
26181 mode attribute in insn output.
26182
26183 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
26184
26185 * output.h (output_constant): Delete.
26186 * varasm.c (output_constant): Make private.
26187
26188 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
26189
26190 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
26191
26192 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26193
26194 PR middle-end/59860
26195 * tree.h (fold_builtin_strcat): New prototype.
26196 * builtins.c (fold_builtin_strcat): No longer static. Add len
26197 argument, if non-NULL, don't call c_strlen. Optimize
26198 directly into __builtin_memcpy instead of __builtin_strcpy.
26199 (fold_builtin_2): Adjust fold_builtin_strcat caller.
26200 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
26201
26202 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
26203
26204 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26205 for SImode_address_operand operands, having only a REG argument.
26206
26207 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
26208
26209 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
26210 loader name using mbig-endian.
26211 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
26212
26213 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26214
26215 * doc/invoke.texi (-march): Clarify documentation for AArch64.
26216 (-mtune): Likewise.
26217 (-mcpu): Likewise.
26218
26219 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
26220
26221 * config/aarch64/aarch64-protos.h
26222 (aarch64_cannot_change_mode_class_ptr): Declare.
26223 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
26224 aarch64_cannot_change_mode_class_ptr): New.
26225 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
26226 backend hook aarch64_cannot_change_mode_class.
26227
26228 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
26229
26230 * common/config/aarch64/aarch64-common.c
26231 (aarch64_handle_option): Don't handle any option order logic here.
26232 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
26233 selected_cpu, warn on architecture version mismatch.
26234 (aarch64_override_options): Fix parsing order for option strings.
26235
26236 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26237 Iain Sandoe <iain@codesourcery.com>
26238
26239 PR bootstrap/59496
26240 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
26241 warning. Amend comment to reflect current functionality.
26242
26243 2014-01-20 Richard Biener <rguenther@suse.de>
26244
26245 PR middle-end/59860
26246 * builtins.c (fold_builtin_strcat): Remove case better handled
26247 by tree-ssa-strlen.c.
26248
26249 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
26250
26251 * config/aarch64/aarch64.opt
26252 (mcpu, march, mtune): Make case-insensitive.
26253
26254 2014-01-20 Jakub Jelinek <jakub@redhat.com>
26255
26256 PR target/59880
26257 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
26258 if operands[1] is a REG or ZERO_EXTEND of a REG.
26259
26260 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
26261
26262 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
26263
26264 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
26265
26266 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
26267 long non-pic millicode calls.
26268
26269 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26270
26271 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
26272
26273 2014-01-19 Kito Cheng <kito@0xlab.org>
26274
26275 * builtins.c (expand_movstr): Check movstr expand done or fail.
26276
26277 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26278 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 PR target/59379
26281 * config/i386/i386.md (*lea<mode>): Zero-extend return register
26282 to DImode for zero-extended addresses.
26283
26284 2014-01-19 Jakub Jelinek <jakub@redhat.com>
26285
26286 PR rtl-optimization/57763
26287 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
26288 on the new indirect jump_insn and increment LABEL_NUSES (label).
26289
26290 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
26291
26292 PR bootstrap/59580
26293 PR bootstrap/59583
26294 * config.gcc (x86_archs): New variable.
26295 (x86_64_archs): Likewise.
26296 (x86_cpus): Likewise.
26297 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
26298 --with-arch/--with-cpu= options.
26299 Support --with-arch=/--with-cpu={nehalem,westmere,
26300 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
26301
26302 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26303
26304 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
26305 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
26306
26307 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
26308
26309 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
26310
26311 2014-01-18 Jakub Jelinek <jakub@redhat.com>
26312
26313 PR target/58944
26314 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
26315 clear cpp_get_options (parse_in)->warn_unused_macros for
26316 ix86_target_macros_internal with cpp_define.
26317
26318 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
26319
26320 * jump.c (delete_related_insns): Keep (use (insn))s.
26321 * reorg.c (redundant_insn): Check for barriers too.
26322
26323 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26324
26325 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
26326
26327 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
26328
26329 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
26330 call to $$dyncall when TARGET_LONG_CALLS is true.
26331
26332 2014-01-17 Jeff Law <law@redhat.com>
26333
26334 * ree.c (combine_set_extension): Temporarily disable test for
26335 changing number of hard registers.
26336
26337 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26338
26339 PR middle-end/58125
26340 * ipa-inline-analysis.c (inline_free_summary):
26341 Do not free summary of aliases.
26342
26343 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26344
26345 PR middle-end/59706
26346 * gimplify.c (gimplify_expr): Use create_tmp_var
26347 instead of create_tmp_var_raw. If cond doesn't have
26348 integral type, don't add the IFN_ANNOTATE builtin at all.
26349
26350 2014-01-17 Martin Jambor <mjambor@suse.cz>
26351
26352 PR ipa/59736
26353 * ipa-cp.c (prev_edge_clone): New variable.
26354 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
26355 Also resize prev_edge_clone vector.
26356 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
26357 (ipcp_edge_removal_hook): New function.
26358 (ipcp_driver): Register ipcp_edge_removal_hook.
26359
26360 2014-01-17 Andrew Pinski <apinski@cavium.com>
26361 Steve Ellcey <sellcey@mips.com>
26362
26363 PR target/59462
26364 * config/mips/mips.c (mips_print_operand): Check operand mode instead
26365 of operator mode.
26366
26367 2014-01-17 Jeff Law <law@redhat.com>
26368
26369 PR middle-end/57904
26370 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
26371 so that pass_ccp runs first.
26372
26373 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26374
26375 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
26376 (ix86_adjust_cost): Use !TARGET_XXX.
26377 (do_reorder_for_imul): Likewise.
26378 (swap_top_of_ready_list): Likewise.
26379 (ix86_sched_reorder): Likewise.
26380
26381 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
26382
26383 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26384 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
26385 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
26386 (intel_memset): New. Duplicate slm_memset.
26387 (intel_cost): New. Duplicate slm_cost.
26388 (m_INTEL): New macro.
26389 (processor_target_table): Add "intel".
26390 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
26391 with PROCESSOR_INTEL for "intel".
26392 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
26393 PROCESSOR_SILVERMONT.
26394 (ix86_issue_rate): Likewise.
26395 (ix86_adjust_cost): Likewise.
26396 (ia32_multipass_dfa_lookahead): Likewise.
26397 (swap_top_of_ready_list): Likewise.
26398 (ix86_sched_reorder): Likewise.
26399 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
26400 instead of TARGET_OPT_AGU.
26401 * config/i386/i386.h (TARGET_INTEL): New.
26402 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
26403 (processor_type): Add PROCESSOR_INTEL.
26404 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
26405 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
26406
26407 2014-01-17 Marek Polacek <polacek@redhat.com>
26408
26409 PR c/58346
26410 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
26411 size is zero.
26412
26413 2014-01-17 Richard Biener <rguenther@suse.de>
26414
26415 PR tree-optimization/46590
26416 * opts.c (default_options_table): Add entries for
26417 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
26418 all enabled at -O1 but not for -Og.
26419 * common.opt (fbranch-count-reg): Remove Init(1).
26420 (fmove-loop-invariants): Likewise.
26421 (ftree-pta): Likewise.
26422
26423 2014-01-17 Jakub Jelinek <jakub@redhat.com>
26424
26425 * config/i386/i386.c (ix86_data_alignment): For compatibility with
26426 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
26427 decls to at least the GCC 4.8 used alignments.
26428
26429 PR fortran/59440
26430 * tree-nested.c (convert_nonlocal_reference_stmt,
26431 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
26432 of GIMPLE_BIND stmts, adjust associated decls.
26433
26434 2014-01-17 Richard Biener <rguenther@suse.de>
26435
26436 PR tree-optimization/46590
26437 * vec.h (vec<>::bseach): New member function implementing
26438 binary search according to C89 bsearch.
26439 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
26440 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
26441 bitmap pointer again. Make accesses_in_loop a flat array.
26442 (mem_ref_obstack): New global.
26443 (outermost_indep_loop): Adjust for mem_ref->stored changes.
26444 (mark_ref_stored): Likewise.
26445 (ref_indep_loop_p_2): Likewise.
26446 (set_ref_stored_in_loop): New helper function.
26447 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
26448 (memref_free): Adjust.
26449 (record_mem_ref_loc): Simplify.
26450 (gather_mem_refs_stmt): Adjust.
26451 (sort_locs_in_loop_postorder_cmp): New function.
26452 (analyze_memory_references): Sort accesses_in_loop after
26453 loop postorder number.
26454 (find_ref_loc_in_loop_cmp): New function.
26455 (for_all_locs_in_loop): Find relevant cluster of locs in
26456 accesses_in_loop and iterate without recursion.
26457 (execute_sm): Avoid uninit warning.
26458 (struct ref_always_accessed): Simplify.
26459 (ref_always_accessed::operator ()): Likewise.
26460 (ref_always_accessed_p): Likewise.
26461 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
26462 loop postorder numbers here.
26463 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
26464 numbers.
26465
26466 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
26467
26468 PR c++/57945
26469 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
26470 on decls for which assemble_alias has been called.
26471
26472 2014-01-17 Nick Clifton <nickc@redhat.com>
26473
26474 * config/msp430/msp430.opt: (mcpu): New option.
26475 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
26476 (msp430_option_override): Parse target_cpu. If the MCU name
26477 matches a generic string, clear target_mcu.
26478 (msp430_attr): Allow numeric interrupt values up to 63.
26479 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
26480 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
26481 option.
26482 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
26483 Add mcpu matches.
26484 * config/msp430/msp430.md (popm): Use %J rather than %I.
26485 (addsi3): Use msp430_nonimmediate_operand for operand 2.
26486 (addhi_cy_i): Use immediate_operand for operand 2.
26487 * doc/invoke.texi: Document -mcpu option.
26488
26489 2014-01-17 Richard Biener <rguenther@suse.de>
26490
26491 PR rtl-optimization/38518
26492 * df.h (df_analyze_loop): Declare.
26493 * df-core.c: Include cfgloop.h.
26494 (df_analyze_1): Split out main part of df_analyze.
26495 (df_analyze): Adjust.
26496 (loop_inverted_post_order_compute): New function.
26497 (loop_post_order_compute): Likewise.
26498 (df_analyze_loop): New function avoiding whole-function
26499 postorder computes.
26500 * loop-invariant.c (find_defs): Use df_analyze_loop.
26501 (find_invariants): Adjust.
26502 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
26503
26504 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
26505
26506 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
26507 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
26508
26509 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
26510
26511 * ipa-ref.c (ipa_remove_stmt_references): Fix references
26512 traversal when removing references.
26513
26514 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
26515
26516 PR ipa/59775
26517 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
26518
26519 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
26520
26521 PR middle-end/56791
26522 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
26523 pushing a reload for an autoinc when we had previously reloaded an
26524 inner part of the address.
26525
26526 2014-01-16 Jakub Jelinek <jakub@redhat.com>
26527
26528 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
26529 field.
26530 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
26531 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
26532 when not giving up or versioning for alias only because of
26533 loop->safelen.
26534 (vect_analyze_data_ref_dependences): Set to true.
26535 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
26536 is a GIMPLE_PHI.
26537 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
26538 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
26539 to the condition.
26540
26541 PR middle-end/58344
26542 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
26543
26544 PR target/59839
26545 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
26546 operand 0 predicate for gathers, use a new pseudo as subtarget.
26547
26548 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26549
26550 PR middle-end/59609
26551 * lra-constraints.c (process_alt_operands): Add printing debug info.
26552 Check absence of input/output reloads for matched operands too.
26553
26554 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26555
26556 PR rtl-optimization/59835
26557 * ira.c (ira_init_register_move_cost): Increase cost for
26558 impossible modes.
26559
26560 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26561
26562 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26563
26564 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26565
26566 PR target/59780
26567 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26568 non-register objects. Use gen_(high/low)part more consistently.
26569 Fix assertions.
26570
26571 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26572
26573 PR target/59844
26574 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26575 endian support, remove tests for WORDS_BIG_ENDIAN.
26576 (p8_mfvsrd_3_<mode>): Likewise.
26577 (reload_gpr_from_vsx<mode>): Likewise.
26578 (reload_gpr_from_vsxsf): Likewise.
26579 (p8_mfvsrd_4_disf): Likewise.
26580
26581 2014-01-16 Richard Biener <rguenther@suse.de>
26582
26583 PR rtl-optimization/46590
26584 * lcm.c (compute_antinout_edge): Use postorder iteration.
26585 (compute_laterin): Use inverted postorder iteration.
26586
26587 2014-01-16 Nick Clifton <nickc@redhat.com>
26588
26589 PR middle-end/28865
26590 * varasm.c (output_constant): Return the number of bytes actually
26591 emitted.
26592 (output_constructor_array_range): Update the field size with the
26593 number of bytes emitted by output_constant.
26594 (output_constructor_regular_field): Likewise. Also do not
26595 complain if the total number of bytes emitted is now greater
26596 than the expected fieldpos.
26597 * output.h (output_constant): Update prototype and descriptive comment.
26598
26599 2014-01-16 Marek Polacek <polacek@redhat.com>
26600
26601 PR middle-end/59827
26602 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26603 it is error_mark_node.
26604
26605 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26606
26607 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26608 VALID_AVX256_REG_OR_OI_MODE.
26609
26610 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26611
26612 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26613 current procedure should be profiled.
26614
26615 2014-01-15 Andrew Pinski <apinski@cavium.com>
26616
26617 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26618 of moving from/to the STACK_REG register class.
26619
26620 2014-01-15 Richard Henderson <rth@redhat.com>
26621
26622 PR debug/54694
26623 * reginfo.c (global_regs_decl): Globalize.
26624 * rtl.h (global_regs_decl): Declare.
26625 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26626 reserved via global_regs.
26627
26628 2014-01-15 Teresa Johnson <tejohnson@google.com>
26629
26630 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26631
26632 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26633
26634 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26635 and vmulosh rather than call gen_vec_widen_smult_*.
26636 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26637 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26638 (vec_widen_smult_even_v16qi): Likewise.
26639 (vec_widen_umult_even_v8hi): Likewise.
26640 (vec_widen_smult_even_v8hi): Likewise.
26641 (vec_widen_umult_odd_v16qi): Likewise.
26642 (vec_widen_smult_odd_v16qi): Likewise.
26643 (vec_widen_umult_odd_v8hi): Likewise.
26644 (vec_widen_smult_odd_v8hi): Likewise.
26645 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26646 vmuloub rather than call gen_vec_widen_umult_*.
26647 (vec_widen_umult_lo_v16qi): Likewise.
26648 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26649 vmulosb rather than call gen_vec_widen_smult_*.
26650 (vec_widen_smult_lo_v16qi): Likewise.
26651 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26652 rather than call gen_vec_widen_umult_*.
26653 (vec_widen_umult_lo_v8hi): Likewise.
26654 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26655 rather than call gen_vec_widen_smult_*.
26656 (vec_widen_smult_lo_v8hi): Likewise.
26657
26658 2014-01-15 Jeff Law <law@redhat.com>
26659
26660 PR tree-optimization/59747
26661 * ree.c (find_and_remove_re): Properly handle case where a second
26662 eliminated extension requires widening a copy created for elimination
26663 of a prior extension.
26664 (combine_set_extension): Ensure that the number of hard regs needed
26665 for a destination register does not change when we widen it.
26666
26667 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26668
26669 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26670 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26671 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26672 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26673 (avr-*-rtems*): Likewise.
26674 (bfin*-rtems*): Likewise.
26675 (moxie-*-rtems*): Likewise.
26676 (h8300-*-rtems*): Likewise.
26677 (i[34567]86-*-rtems*): Likewise.
26678 (lm32-*-rtems*): Likewise.
26679 (m32r-*-rtems*): Likewise.
26680 (m68k-*-rtems*): Likewise.
26681 (microblaze*-*-rtems*): Likewise.
26682 (mips*-*-rtems*): Likewise.
26683 (powerpc-*-rtems*): Likewise.
26684 (sh-*-rtems*): Likewise.
26685 (sparc-*-rtems*): Likewise.
26686 (sparc64-*-rtems*): Likewise.
26687 (v850-*-rtems*): Likewise.
26688 (m32c-*-rtems*): Likewise.
26689
26690 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26691
26692 PR rtl-optimization/59511
26693 * ira.c (ira_init_register_move_cost): Use memory costs for some
26694 cases of register move cost calculations.
26695 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26696 instead of BB frequency.
26697 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26698 * lra-assigns.c (find_hard_regno_for): Ditto.
26699
26700 2014-01-15 Richard Biener <rguenther@suse.de>
26701
26702 PR tree-optimization/59822
26703 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26704 (vectorizable_load): Use it to hoist defs of uses of invariant
26705 loads out of the loop.
26706
26707 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26708 Kugan Vivekanandarajah <kuganv@linaro.org>
26709
26710 PR target/59695
26711 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26712 truncation.
26713
26714 2014-01-15 Richard Biener <rguenther@suse.de>
26715
26716 PR rtl-optimization/59802
26717 * lcm.c (compute_available): Use inverted postorder to seed
26718 the initial worklist.
26719
26720 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26721
26722 PR target/59803
26723 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26724 ADDR_REGS for invalid symrefs in non-PIC code.
26725
26726 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26727
26728 PR other/58712
26729 * builtins.c (determine_block_size): Initialize *probable_max_size
26730 even if len_rtx is CONST_INT.
26731
26732 2014-01-14 Andrew Pinski <apinski@cavium.com>
26733
26734 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26735 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26736 (cortexa53_tunings): Likewise.
26737 (aarch64_sched_issue_rate): New function.
26738 (TARGET_SCHED_ISSUE_RATE): Define.
26739
26740 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26741
26742 * ira-costs.c (find_costs_and_classes): Add missed
26743 ira_init_register_move_cost_if_necessary.
26744
26745 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26746
26747 PR target/59787
26748 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26749
26750 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26751
26752 PR target/59794
26753 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26754 to indicate if type is used for function return value. Warn ABI
26755 change if the vector mode isn't available for function return value.
26756 (ix86_function_arg_advance): Pass false to type_natural_mode.
26757 (ix86_function_arg): Likewise.
26758 (ix86_gimplify_va_arg): Likewise.
26759 (function_arg_32): Don't warn ABI change.
26760 (ix86_function_value): Pass true to type_natural_mode.
26761 (ix86_return_in_memory): Likewise.
26762 (ix86_struct_value_rtx): Removed.
26763 (TARGET_STRUCT_VALUE_RTX): Likewise.
26764
26765 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26766
26767 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26768 converting a conditional jump into a conditional return.
26769
26770 2014-01-14 Richard Biener <rguenther@suse.de>
26771
26772 PR tree-optimization/58921
26773 PR tree-optimization/59006
26774 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26775 hoisting invariant stmts.
26776 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26777 invariant loads on the preheader edge if possible.
26778
26779 2014-01-14 Joey Ye <joey.ye@arm.com>
26780
26781 * doc/plugin.texi (Building GCC plugins): Update to C++.
26782
26783 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26784
26785 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26786 (_mm_rcp28_round_ss): Ditto.
26787 (_mm_rsqrt28_round_sd): Ditto.
26788 (_mm_rsqrt28_round_ss): Ditto.
26789 (_mm_rcp28_sd): Ditto.
26790 (_mm_rcp28_ss): Ditto.
26791 (_mm_rsqrt28_sd): Ditto.
26792 (_mm_rsqrt28_ss): Ditto.
26793 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26794 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26795 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26796 (IX86_BUILTIN_RCP28SD): Ditto.
26797 (IX86_BUILTIN_RCP28SS): Ditto.
26798 (IX86_BUILTIN_RSQRT28SD): Ditto.
26799 (IX86_BUILTIN_RSQRT28SS): Ditto.
26800 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26801 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26802 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26803 (ix86_expand_special_args_builtin): Expand new FTYPE.
26804 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26805 (srcp14<mode>): Make insn unary.
26806 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26807 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26808 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26809 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26810 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26811 Fix rounding: make it SAE only.
26812 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26813 Ditto.
26814 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26815 Ditto.
26816 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26817 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26818 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26819 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26820 (round_saeonly_mask_scalar_operand4): Ditto.
26821 (round_saeonly_mask_scalar_op3): Ditto.
26822 (round_saeonly_mask_scalar_op4): Ditto.
26823
26824 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26825
26826 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26827 Implement -maltivec=be for vec_insert and vec_extract.
26828
26829 2014-01-10 DJ Delorie <dj@redhat.com>
26830
26831 * config/msp430/msp430.md (call_internal): Don't allow memory
26832 references with SP as the base register.
26833 (call_value_internal): Likewise.
26834 * config/msp430/constraints.md (Yc): New. For memory references
26835 that don't use SP as a base register.
26836
26837 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26838 "an integer without a # prefix"
26839 * config/msp430/msp430.md (epilogue_helper): Use it.
26840
26841 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26842
26843 PR target/59617
26844 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26845 AVX512F gather builtins.
26846 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26847 on gather decls with INTEGER_TYPE masktype.
26848 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26849 directly into the builtin rather than hoisting it before loop.
26850
26851 PR tree-optimization/59387
26852 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26853 (scev_const_prop): If folded_casts and type has undefined overflow,
26854 use force_gimple_operand instead of force_gimple_operand_gsi and
26855 for each added stmt if it is assign with
26856 arith_code_with_undefined_signed_overflow, call
26857 rewrite_to_defined_overflow.
26858 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26859 gimple-fold.h instead.
26860 (arith_code_with_undefined_signed_overflow,
26861 rewrite_to_defined_overflow): Moved to ...
26862 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26863 rewrite_to_defined_overflow): ... here. No longer static.
26864 Include gimplify-me.h.
26865 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26866 rewrite_to_defined_overflow): New prototypes.
26867
26868 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26869
26870 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26871
26872 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26873
26874 * builtins.c (get_object_alignment_2): Minor tweak.
26875 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26876
26877 2014-01-13 Christian Bruel <christian.bruel@st.com>
26878
26879 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26880 optimized non constant lengths.
26881
26882 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26883
26884 PR libgomp/59194
26885 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26886 load as __atomic_load_N if possible.
26887
26888 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26889
26890 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26891 target parameter.
26892 (rs6000_expand_builtin): Adjust call.
26893
26894 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26895
26896 PR target/58115
26897 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26898 * config/rs6000/rs6000.c: Include target-globals.h.
26899 (rs6000_set_current_function): Instead of doing target_reinit
26900 unconditionally, use save_target_globals_default_opts and
26901 restore_target_globals.
26902
26903 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26904 FPSCR.
26905 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26906 (rs6000_expand_builtin): Handle mffs and mtfsf.
26907 (rs6000_init_builtins): Define mffs and mtfsf.
26908 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26909 (rs6000_mffs): New pattern.
26910 (rs6000_mtfsf): New pattern.
26911
26912 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26913
26914 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26915 Start narrowing with START. Apply candidate-use pair
26916 and check overall cost in narrowing.
26917 (iv_ca_prune): Pass new argument.
26918
26919 2014-01-10 Jeff Law <law@redhat.com>
26920
26921 PR middle-end/59743
26922 * ree.c (combine_reaching_defs): Ensure the defining statement
26923 occurs before the extension when optimizing extensions with
26924 different source and destination hard registers.
26925
26926 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26927
26928 PR ipa/58585
26929 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26930 vtables into the type inheritance graph.
26931
26932 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26933
26934 PR rtl-optimization/59754
26935 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26936 modes in the REGNO != REGNO case.
26937
26938 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26939
26940 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26941
26942 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26943
26944 PR tree-optimization/59745
26945 * tree-predcom.c (tree_predictive_commoning_loop): Call
26946 free_affine_expand_cache if giving up because components is NULL.
26947
26948 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26949 GC in payload of target_globals struct instead of allocating them on
26950 the heap and the larger structs separately using GC.
26951 * target-globals.h (struct target_globals): Make regs, hard_regs,
26952 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26953 of GTY((skip)) and change type to void *.
26954 (reset_target_globals): Cast loads from those fields to corresponding
26955 types.
26956
26957 2014-01-10 Steve Ellcey <sellcey@mips.com>
26958
26959 PR plugins/59335
26960 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26961 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26962 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26963
26964 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26965
26966 PR target/59744
26967 * aarch64-modes.def (CC_Zmode): New flags mode.
26968 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26969 represents an equality.
26970 (aarch64_get_condition_code): Handle CC_Zmode.
26971 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26972
26973 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26974
26975 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26976 extraction in good case.
26977
26978 2014-01-10 Richard Biener <rguenther@suse.de>
26979
26980 PR tree-optimization/59374
26981 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26982 checking after SLP discovery. Mark stmts not participating
26983 in any SLP instance properly.
26984
26985 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26986
26987 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26988 when handling a SET rtx.
26989
26990 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26991
26992 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26993 (cortex-a57): Likewise.
26994 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26995
26996 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26997
26998 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26999 non-iwmmxt builtins.
27000
27001 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
27002
27003 PR ipa/58252
27004 PR ipa/59226
27005 * ipa-devirt.c record_target_from_binfo): Take as argument
27006 stack of binfos and lookup matching one for virtual inheritance.
27007 (possible_polymorphic_call_targets_1): Update.
27008
27009 2014-01-10 Huacai Chen <chenhc@lemote.com>
27010
27011 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
27012 kernel strings for Loongson-2E/2F/3A.
27013
27014 2014-01-10 Jakub Jelinek <jakub@redhat.com>
27015
27016 PR middle-end/59670
27017 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
27018 is_gimple_call before calling gimple_call_internal_p.
27019
27020 2014-01-09 Steve Ellcey <sellcey@mips.com>
27021
27022 * Makefile.in (TREE_FLOW_H): Remove.
27023 (TREE_SSA_H): Add file names from tree-flow.h.
27024 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
27025 * tree.h: Remove tree-flow.h reference.
27026 * hash-table.h: Remove tree-flow.h reference.
27027 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
27028 reference with tree-ssa-loop.h.
27029
27030 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27031
27032 * doc/invoke.texi: Add -maltivec={be,le} options, and document
27033 default element-order behavior for -maltivec.
27034 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
27035 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
27036 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
27037 when targeting big endian, at least for now.
27038 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
27039
27040 2014-01-09 Jakub Jelinek <jakub@redhat.com>
27041
27042 PR middle-end/47735
27043 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
27044 var satisfies use_register_for_decl, just take into account type
27045 alignment, rather than decl alignment.
27046
27047 PR tree-optimization/59622
27048 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
27049 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
27050 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
27051 Don't devirtualize for inplace at all. For targets.length () == 1,
27052 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
27053
27054 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
27055
27056 * config/i386/i386.md (cpu): Remove the unused btver1.
27057
27058 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
27059
27060 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
27061
27062 2014-01-09 Jakub Jelinek <jakub@redhat.com>
27063
27064 PR target/58115
27065 * tree-core.h (struct target_globals): New forward declaration.
27066 (struct tree_target_option): Add globals field.
27067 * tree.h (TREE_TARGET_GLOBALS): Define.
27068 (prepare_target_option_nodes_for_pch): New prototype.
27069 * target-globals.h (struct target_globals): Define even if
27070 !SWITCHABLE_TARGET.
27071 * tree.c (prepare_target_option_node_for_pch,
27072 prepare_target_option_nodes_for_pch): New functions.
27073 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
27074 * config/i386/i386.c: Include target-globals.h.
27075 (ix86_set_current_function): Instead of doing target_reinit
27076 unconditionally, use save_target_globals_default_opts and
27077 restore_target_globals.
27078
27079 2014-01-09 Richard Biener <rguenther@suse.de>
27080
27081 PR tree-optimization/59715
27082 * tree-cfg.h (split_critical_edges): Declare.
27083 * tree-cfg.c (split_critical_edges): Export.
27084 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
27085
27086 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
27087
27088 * cfgexpand.c (expand_stack_vars): Optionally disable
27089 asan stack protection.
27090 (expand_used_vars): Likewise.
27091 (partition_stack_vars): Likewise.
27092 * asan.c (asan_emit_stack_protection): Optionally disable
27093 after return stack usage.
27094 (instrument_derefs): Optionally disable memory access instrumentation.
27095 (instrument_builtin_call): Likewise.
27096 (instrument_strlen_call): Likewise.
27097 (asan_protect_global): Optionally disable global variables protection.
27098 * doc/invoke.texi: Added doc for new options.
27099 * params.def: Added new options.
27100 * params.h: Likewise.
27101
27102 2014-01-09 Jakub Jelinek <jakub@redhat.com>
27103
27104 PR rtl-optimization/59724
27105 * ifcvt.c (cond_exec_process_if_block): Don't call
27106 flow_find_head_matching_sequence with 0 longest_match.
27107 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
27108 non-active insns if !stop_after.
27109 (try_head_merge_bb): Revert 2014-01-07 changes.
27110
27111 2014-01-08 Jeff Law <law@redhat.com>
27112
27113 * ree.c (get_sub_rtx): New function, extracted from...
27114 (merge_def_and_ext): Here.
27115 (combine_reaching_defs): Use get_sub_rtx.
27116
27117 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
27118
27119 * cgraph.h (varpool_variable_node): Do not choke on null node.
27120
27121 2014-01-08 Catherine Moore <clm@codesourcery.com>
27122
27123 * config/mips/mips.md (simple_return): Attempt to use JRC
27124 for microMIPS.
27125 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
27126
27127 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
27128
27129 PR rtl-optimization/59137
27130 * reorg.c (steal_delay_list_from_target): Call update_block for
27131 elided insns.
27132 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
27133
27134 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27135
27136 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
27137 two duplicate entries.
27138
27139 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
27140
27141 Revert:
27142 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
27143
27144 * config/mips/mips.c (mips_truncated_op_cost): New function.
27145 (mips_rtx_costs): Adjust test for BADDU.
27146 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
27147
27148 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
27149
27150 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
27151 (*baddu_si): ...this new pattern.
27152
27153 2014-01-08 Jakub Jelinek <jakub@redhat.com>
27154
27155 PR ipa/59722
27156 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
27157
27158 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
27159
27160 PR middle-end/57748
27161 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
27162 inner_reference_p.
27163 (expand_expr, expand_normal): Adjust.
27164 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
27165 inner_reference_p. Use inner_reference_p to expand inner references.
27166 (store_expr): Adjust.
27167 * cfgexpand.c (expand_call_stmt): Adjust.
27168
27169 2014-01-08 Rong Xu <xur@google.com>
27170
27171 * gcov-io.c (gcov_var): Move from gcov-io.h.
27172 (gcov_position): Ditto.
27173 (gcov_is_error): Ditto.
27174 (gcov_rewrite): Ditto.
27175 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
27176 only part to libgcc/libgcov.h.
27177
27178 2014-01-08 Marek Polacek <polacek@redhat.com>
27179
27180 PR middle-end/59669
27181 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
27182
27183 2014-01-08 Marek Polacek <polacek@redhat.com>
27184
27185 PR sanitizer/59667
27186 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
27187
27188 2014-01-08 Jakub Jelinek <jakub@redhat.com>
27189
27190 PR rtl-optimization/59649
27191 * stor-layout.c (get_mode_bounds): For BImode return
27192 0 and STORE_FLAG_VALUE.
27193
27194 2014-01-08 Richard Biener <rguenther@suse.de>
27195
27196 PR middle-end/59630
27197 * gimple.h (is_gimple_builtin_call): Remove.
27198 (gimple_builtin_call_types_compatible_p): New.
27199 (gimple_call_builtin_p): New overload.
27200 * gimple.c (is_gimple_builtin_call): Remove.
27201 (validate_call): Rename to ...
27202 (gimple_builtin_call_types_compatible_p): ... this and export. Also
27203 check return types.
27204 (validate_type): New static function.
27205 (gimple_call_builtin_p): New overload and adjust.
27206 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
27207 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
27208 (gimple_fold_stmt_to_constant_1): Likewise.
27209 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
27210
27211 2014-01-08 Richard Biener <rguenther@suse.de>
27212
27213 PR middle-end/59471
27214 * gimplify.c (gimplify_expr): Gimplify register-register type
27215 VIEW_CONVERT_EXPRs to separate stmts.
27216
27217 2014-01-07 Jeff Law <law@redhat.com>
27218
27219 PR middle-end/53623
27220 * ree.c (combine_set_extension): Handle case where source
27221 and destination registers in an extension insn are different.
27222 (combine_reaching_defs): Allow source and destination registers
27223 in extension to be different under limited circumstances.
27224 (add_removable_extension): Remove restriction that the
27225 source and destination registers in the extension are the same.
27226 (find_and_remove_re): Emit a copy from the extension's
27227 destination to its source after the defining insn if
27228 the source and destination registers are different.
27229
27230 PR middle-end/59285
27231 * ifcvt.c (merge_if_block): If we are merging a block with more than
27232 one successor with a block with no successors, remove any BARRIER
27233 after the second block.
27234
27235 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
27236
27237 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
27238
27239 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
27240
27241 PR target/59652
27242 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
27243 for 14-bit register offsets when INT14_OK_STRICT is false.
27244
27245 2014-01-07 Roland Stigge <stigge@antcom.de>
27246 Michael Meissner <meissner@linux.vnet.ibm.com>
27247
27248 PR 57386/target
27249 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
27250 Only check TFmode for SPE constants. Don't check TImode or TDmode.
27251
27252 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
27253
27254 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
27255 -mcpu.
27256
27257 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
27258
27259 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
27260 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
27261 rtx is const0_rtx or not.
27262
27263 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
27264
27265 PR target/58115
27266 * target-globals.c (save_target_globals): Remove this_fn_optab
27267 handling.
27268 * toplev.c: Include optabs.h.
27269 (target_reinit): Temporarily restore the global options if another
27270 set of options are in force.
27271
27272 2014-01-07 Jakub Jelinek <jakub@redhat.com>
27273
27274 PR rtl-optimization/58668
27275 * cfgcleanup.c (flow_find_cross_jump): Don't count
27276 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
27277 to determine what is counted.
27278 (flow_find_head_matching_sequence): Use active_insn_p to determine
27279 what is counted.
27280 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
27281 counting change.
27282 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
27283 determine what is counted.
27284
27285 PR tree-optimization/59643
27286 * tree-predcom.c (split_data_refs_to_components): If one dr is
27287 read and one write, determine_offset fails and the write isn't
27288 in the bad component, just put the read into the bad component.
27289
27290 2014-01-07 Mike Stump <mikestump@comcast.net>
27291 Jakub Jelinek <jakub@redhat.com>
27292
27293 PR pch/59436
27294 * tree-core.h (struct tree_optimization_option): Change optabs
27295 type from unsigned char * to void *.
27296 * optabs.c (init_tree_optimization_optabs): Adjust
27297 TREE_OPTIMIZATION_OPTABS initialization.
27298
27299 2014-01-06 Jakub Jelinek <jakub@redhat.com>
27300
27301 PR target/59644
27302 * config/i386/i386.h (struct machine_function): Add
27303 no_drap_save_restore field.
27304 * config/i386/i386.c (ix86_save_reg): Use
27305 !cfun->machine->no_drap_save_restore instead of
27306 crtl->stack_realign_needed.
27307 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
27308 this function clears frame_pointer_needed. Set
27309 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
27310 and DRAP reg is needed.
27311
27312 2014-01-06 Marek Polacek <polacek@redhat.com>
27313
27314 PR c/57773
27315 * doc/implement-c.texi: Mention that other integer types are
27316 permitted as bit-field types in strictly conforming mode.
27317
27318 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
27319
27320 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
27321 is newly allocated.
27322
27323 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
27324
27325 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
27326
27327 2014-01-06 Martin Jambor <mjambor@suse.cz>
27328
27329 PR ipa/59008
27330 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
27331 to int.
27332 * ipa-prop.c (ipa_print_node_params): Fix indentation.
27333
27334 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
27335
27336 PR debug/59350
27337 PR debug/59510
27338 * var-tracking.c (add_stores): Preserve the value of the source even if
27339 we don't record the store.
27340
27341 2014-01-06 Terry Guo <terry.guo@arm.com>
27342
27343 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
27344
27345 2014-01-05 Iain Sandoe <iain@codesourcery.com>
27346
27347 PR bootstrap/59541
27348 * config/darwin.c (darwin_function_section): Adjust return values to
27349 correspond to optimisation changes made in r206070.
27350
27351 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
27352
27353 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
27354 from prefetch_block tune setting.
27355 (nocona_cost): Correct size of prefetch block to 64.
27356
27357 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
27358
27359 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
27360 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
27361 used to save the static chain register in the computation of the offset
27362 from which the FP registers need to be restored.
27363
27364 2014-01-04 Jakub Jelinek <jakub@redhat.com>
27365
27366 PR tree-optimization/59519
27367 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
27368 ICE if get_current_def (current_new_name) is already non-NULL, as long
27369 as it is a phi result of some other phi in *new_exit_bb that has
27370 the same argument.
27371
27372 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
27373 or vmovdqu* for misaligned_operand.
27374 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
27375 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
27376 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
27377 aligned_mem for AVX512F masked aligned load and store builtins and for
27378 non-temporal moves.
27379
27380 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
27381
27382 PR tree-optimization/59651
27383 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
27384 Address range for negative step should be added by TYPE_SIZE_UNIT.
27385
27386 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
27387
27388 * config/m68k/m68k.c (handle_move_double): Handle pushes with
27389 overlapping registers also for registers other than the stack pointer.
27390
27391 2014-01-03 Marek Polacek <polacek@redhat.com>
27392
27393 PR other/59661
27394 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
27395 __builtin_FILE.
27396
27397 2014-01-03 Jakub Jelinek <jakub@redhat.com>
27398
27399 PR target/59625
27400 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
27401 asm goto as jump.
27402
27403 * config/i386/i386.md (MODE_SIZE): New mode attribute.
27404 (push splitter): Use <P:MODE_SIZE> instead of
27405 GET_MODE_SIZE (<P:MODE>mode).
27406 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
27407 (mov -1, reg peephole2): Likewise.
27408 * config/i386/sse.md (*mov<mode>_internal,
27409 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
27410 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
27411 *<code><mode>3, *andnot<mode>3<mask_name>,
27412 <mask_codefor><code><mode>3<mask_name>): Likewise.
27413 * config/i386/subst.md (mask_mode512bit_condition,
27414 sd_mask_mode512bit_condition): Likewise.
27415
27416 2014-01-02 Xinliang David Li <davidxl@google.com>
27417
27418 PR tree-optimization/59303
27419 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
27420 (dump_predicates): Better output format.
27421 (pred_equal_p): New function.
27422 (is_neq_relop_p): Ditto.
27423 (is_neq_zero_form_p): Ditto.
27424 (pred_expr_equal_p): Ditto.
27425 (pred_neg_p): Ditto.
27426 (simplify_pred): Ditto.
27427 (simplify_preds_2): Ditto.
27428 (simplify_preds_3): Ditto.
27429 (simplify_preds_4): Ditto.
27430 (simplify_preds): Ditto.
27431 (push_pred): Ditto.
27432 (push_to_worklist): Ditto.
27433 (get_pred_info_from_cmp): Ditto.
27434 (is_degenerated_phi): Ditto.
27435 (normalize_one_pred_1): Ditto.
27436 (normalize_one_pred): Ditto.
27437 (normalize_one_pred_chain): Ditto.
27438 (normalize_preds): Ditto.
27439 (normalize_cond_1): Remove function.
27440 (normalize_cond): Ditto.
27441 (is_gcond_subset_of): Ditto.
27442 (is_subset_of_any): Ditto.
27443 (is_or_set_subset_of): Ditto.
27444 (is_and_set_subset_of): Ditto.
27445 (is_norm_cond_subset_of): Ditto.
27446 (pred_chain_length_cmp): Ditto.
27447 (convert_control_dep_chain_into_preds): Type change.
27448 (find_predicates): Ditto.
27449 (find_def_preds): Ditto.
27450 (destroy_predicates_vecs): Ditto.
27451 (find_matching_predicates_in_rest_chains): Ditto.
27452 (use_pred_not_overlap_with_undef_path_pred): Ditto.
27453 (is_pred_expr_subset): Ditto.
27454 (is_pred_chain_subset_of): Ditto.
27455 (is_included_in): Ditto.
27456 (is_superset_of): Ditto.
27457
27458 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27459
27460 Update copyright years.
27461
27462 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
27463
27464 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
27465 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
27466 config/arc/arc.md, config/arc/arc.opt,
27467 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
27468 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
27469 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
27470 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
27471 config/linux-protos.h, config/linux.c, config/winnt-c.c,
27472 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
27473 vtable-verify.c, vtable-verify.h: Use the standard form for the
27474 copyright notice.
27475
27476 2014-01-02 Tobias Burnus <burnus@net-b.de>
27477
27478 * gcc.c (process_command): Update copyright notice dates.
27479 * gcov-dump.c: Ditto.
27480 * gcov.c: Ditto.
27481 * doc/cpp.texi: Bump @copying's copyright year.
27482 * doc/cppinternals.texi: Ditto.
27483 * doc/gcc.texi: Ditto.
27484 * doc/gccint.texi: Ditto.
27485 * doc/gcov.texi: Ditto.
27486 * doc/install.texi: Ditto.
27487 * doc/invoke.texi: Ditto.
27488
27489 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27490
27491 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
27492
27493 2014-01-01 Jakub Jelinek <jakub@redhat.com>
27494
27495 * config/i386/sse.md (*mov<mode>_internal): Guard
27496 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
27497
27498 PR rtl-optimization/59647
27499 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
27500 new_rtx into UNSIGNED_FLOAT rtxes.
27501 \f
27502 Copyright (C) 2014 Free Software Foundation, Inc.
27503
27504 Copying and distribution of this file, with or without modification,
27505 are permitted in any medium without royalty provided the copyright
27506 notice and this notice are preserved.