]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
9fbf522c75ae7d73faedeb7750b1b86786065c40
[thirdparty/gcc.git] / gcc / ChangeLog
1 2014-08-27 David Malcolm <dmalcolm@redhat.com>
2
3 * function.h (struct rtl_data): Strengthen field
4 "x_stack_slot_list" from rtx to rtx_expr_list *.
5
6 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
7 when assigning to stack_slot_list.
8
9 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10
11 * function.h (struct rtl_data): Strengthen field
12 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
13 * rtl.h (remove_node_from_expr_list): Strengthen second param from
14 rtx * to rtx_expr_list **.
15
16 * cfgbuild.c (make_edges): In loop over
17 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
18 rtx_expr_list *, and use methods of the latter class to clarify
19 the code.
20 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
21 rtx_expr_list *, and use methods of the latter class to clarify
22 the code.
23 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
24 * reload1.c (set_initial_label_offsets): Likewise for local "x".
25 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
26 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
27 to rtx_expr_list *. Use methods of the latter class to clarify
28 the code.
29
30 2014-08-27 David Malcolm <dmalcolm@redhat.com>
31
32 * function.h (struct expr_status): Strengthen field
33 "x_forced_labels" from rtx to rtx_expr_list *.
34
35 * cfgbuild.c (make_edges): Split local "x" into two locals,
36 strengthening one from rtx to rtx_expr_list *, and using methods
37 of said class.
38 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
39 loop over forced_labels, introduce strengthen it from rtx to
40 rtx_expr_list *, using methods to clarify the code.
41 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
42 to rtx_expr_list *, using methods of said class to clarify the
43 code.
44 * reload1.c (set_initial_label_offsets): Split local "x" into two
45 per-loop variables, strengthening the first from rtx to
46 rtx_expr_list * and using methods.
47
48 2014-08-27 David Malcolm <dmalcolm@redhat.com>
49
50 * coretypes.h (class rtx_expr_list): Add forward declaration.
51 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
52 * gengenrtl.c (special_rtx): Add EXPR_LIST.
53 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
54 invariant: GET_CODE (X) == EXPR_LIST.
55 (is_a_helper <rtx_expr_list *>::test): New.
56 (rtx_expr_list::next): New.
57 (rtx_expr_list::element): New.
58 (gen_rtx_EXPR_LIST): New.
59
60 2014-08-27 David Malcolm <dmalcolm@redhat.com>
61
62 * varasm.c (mark_constants): Convert a GET_CODE check into a
63 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
64 Use methods of rtx_sequence to clarify the code.
65
66 2014-08-27 David Malcolm <dmalcolm@redhat.com>
67
68 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
69 local "seq" via a checked cast, and use methods of rtx_sequence
70 to simplify the code.
71
72 2014-08-27 David Malcolm <dmalcolm@redhat.com>
73
74 * resource.c (mark_referenced_resources): Strengthen local
75 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
76 using methods of rtx_sequence to clarify the code.
77 (find_dead_or_set_registers): Within the switch statement, convert
78 a GET_CODE check to a dyn_cast, introducing local "seq". Within
79 the JUMP_P handling, introduce another local "seq", adding a
80 checked cast to rtx_sequence *. In both cases, use methods of
81 rtx_sequence to clarify the code.
82 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
83 via a checked cast, and use methods of rtx_sequence to simplify
84 the code.
85
86 2014-08-27 David Malcolm <dmalcolm@redhat.com>
87
88 * reorg.c (redundant_insn): In two places in the function, replace
89 a check of GET_CODE with a dyn_cast, introducing local "seq", and
90 usings methods of rtx_sequence to clarify the code.
91
92 2014-08-27 David Malcolm <dmalcolm@redhat.com>
93
94 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
95 local "seq" with a checked cast, and use methods of rtx_sequence
96 to clarify the code.
97
98 2014-08-27 David Malcolm <dmalcolm@redhat.com>
99
100 * function.c (contains): Introduce local "seq" for PATTERN (insn),
101 with a checked cast, in the region for where we know it's a
102 SEQUENCE. Use methods of rtx_sequence.
103
104 2014-08-27 David Malcolm <dmalcolm@redhat.com>
105
106 * final.c (get_attr_length_1): Replace GET_CODE check with a
107 dyn_cast, introducing local "seq" and the use of methods of
108 rtx_sequence.
109 (shorten_branches): Likewise, introducing local "body_seq".
110 Strengthen local "inner_insn" from rtx to rtx_insn *.
111 (reemit_insn_block_notes): Replace GET_CODE check with a
112 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
113 Use methods of rtx_sequence.
114 (final_scan_insn): Likewise, introducing local "seq" for when
115 "body" is known to be a SEQUENCE, using its methods.
116
117 2014-08-27 David Malcolm <dmalcolm@redhat.com>
118
119 * except.c (can_throw_external): Strengthen local "seq" from rtx
120 to rtx_sequence *. Use methods of rtx_sequence.
121 (insn_nothrow_p): Likewise.
122
123 2014-08-27 David Malcolm <dmalcolm@redhat.com>
124
125 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
126 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
127 Use methods of rtx_sequence.
128 (scan_trace): Likewise for local "pat".
129
130 2014-08-27 David Malcolm <dmalcolm@redhat.com>
131
132 * coretypes.h (class rtx_sequence): Add forward declaration.
133 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
134 invariant: GET_CODE (X) == SEQUENCE.
135 (is_a_helper <rtx_sequence *>::test): New.
136 (is_a_helper <const rtx_sequence *>::test): New.
137 (rtx_sequence::len): New.
138 (rtx_sequence::element): New.
139 (rtx_sequence::insn): New.
140
141 2014-08-27 David Malcolm <dmalcolm@redhat.com>
142
143 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
144 rtx_insn_list **.
145 (alloc_INSN_LIST): Strengthen return type from rtx to
146 rtx_insn_list *.
147 (copy_INSN_LIST): Likewise for return type and param.
148 (concat_INSN_LIST): Likewise for both params and return type.
149 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
150 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
151 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
152 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
153
154 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
155 "implicit_sets", "control_uses", "clobbers" from rtx to
156 rtx_insn_list *.
157 (struct deps_desc): Likewise for fields "pending_read_insns",
158 "pending_write_insns", "pending_jump_insns",
159 "last_pending_memory_flush", "last_function_call",
160 "last_function_call_may_noreturn", "sched_before_next_call",
161 "sched_before_next_jump".
162 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
163 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
164
165 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
166 from rtx to rtx_insn_list *.
167 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
168 rtx_insn_list *.
169
170 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
171 to rtx_insn_list **.
172 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
173 rtx_insn_list *.
174 (queue_insn): Likewise for local "link".
175 (struct haifa_saved_data): Strengthen field "insn_queue" from
176 rtx * to rtx_insn_list **.
177 (save_backtrack_point): Update allocation of save->insn_queue to
178 reflect the strengthening of elements from rtx to rtx_insn_list *.
179 (queue_to_ready): Strengthen local "link" from rtx to
180 rtx_insn_list *; use methods "next" and "insn" when traversing the
181 list.
182 (early_queue_to_ready): Likewise for locals "link", "next_link",
183 "prev_link".
184 (schedule_block): Update allocation of insn_queue to reflect the
185 strengthening of elements from rtx to rtx_insn_list *. Strengthen
186 local "link" from rtx to rtx_insn_list *, and use methods when
187 working it.
188 (add_to_speculative_block): Strengthen locals "twins" and
189 "next_node" from rtx to rtx_insn_list *, and use methods when
190 working with them. Strengthen local "twin" from rtx to
191 rtx_insn *, eliminating a checked cast.
192 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
193 from rtx to rtx_insn_list *, and use methods when working with
194 them.
195
196 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
197 from rtx to rtx_insn_list *, adding a checked cast.
198 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
199 rtx_insn_list **.
200 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
201 "newlink" from rtx to rtx_insn_list *. Strengthen local
202 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
203 from rtx to rtx_insn *.
204 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
205 from rtx to rtx_insn_list *. Use methods of the latter class.
206 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
207 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
208 (remove_free_INSN_LIST_node): Strengthen return type and local
209 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
210 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
211 rtx_insn_list *, using "insn" method.
212
213 * sched-deps.c (add_dependence_list): Strengthen param "list"
214 from rtx to rtx_insn_list *, and use methods when working with it.
215 (add_dependence_list_and_free): Strengthen param "listp" from
216 rtx * to rtx_insn_list **.
217 (remove_from_dependence_list): Strenghten param "listp" from rtx *
218 to rtx_insn_list **, and use methods when working with *listp.
219 (remove_from_both_dependence_lists): Strengthen param "listp" from
220 rtx * to rtx_insn_list **
221 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
222 to rtx_insn_list **. Eliminate local "link", in favor of two new
223 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
224 respectively.
225 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
226 by introducing local "cond_deps".
227 (remove_from_deps): Strengthen param "insn" from rtx to
228 rtx_insn *.
229
230 * sched-rgn.c (concat_insn_mem_list): Strengthen param
231 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
232 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
233 Use methods of rtx_insn_list.
234
235 * store-motion.c (struct st_expr): Strengthen fields
236 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
237 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
238 rtx_insn_list *.
239 (find_moveable_store): Split out "tmp" into multiple more-tightly
240 scoped locals. Use methods of rtx_insn_list *.
241 (compute_store_table): Strengthen local "tmp" from rtx to
242 rtx_insn *. Use methods of rtx_insn_list *.
243
244 2014-08-27 David Malcolm <dmalcolm@redhat.com>
245
246 * coretypes.h (class rtx_insn_list): Add forward declaration.
247 * rtl.h (class rtx_insn_list): New subclass of rtx_def
248 (is_a_helper <rtx_insn_list *>::test): New.
249 (rtx_insn_list::next): New.
250 (rtx_insn_list::insn): New.
251 (gen_rtx_INSN_LIST): Add prototype.
252 * emit-rtl.c (gen_rtx_INSN_LIST): New.
253 * gengenrtl.c (special_rtx): Add INSN_LIST.
254
255 2014-08-27 David Malcolm <dmalcolm@redhat.com>
256
257 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
258 "prev" from rtx to rtx_insn *.
259
260 2014-08-27 David Malcolm <dmalcolm@redhat.com>
261
262 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
263 functions. Require merely an rtx for now, not an rtx_insn *.
264 (BLOCK_FOR_INSN): Likewise.
265 (INSN_LOCATION): Likewise.
266 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
267
268 2014-08-27 David Malcolm <dmalcolm@redhat.com>
269
270 * rtl.h (PATTERN): Convert this macro into a pair of inline
271 functions, for now, requiring const_rtx and rtx.
272
273 2014-08-27 David Malcolm <dmalcolm@redhat.com>
274
275 * target.def (unwind_emit): Strengthen param "insn" from rtx to
276 rtx_insn *.
277 (final_postscan_insn): Likewise.
278 (adjust_cost): Likewise.
279 (adjust_priority): Likewise.
280 (variable_issue): Likewise.
281 (macro_fusion_pair_p): Likewise.
282 (dfa_post_cycle_insn): Likewise.
283 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
284 (first_cycle_multipass_issue): Likewise.
285 (dfa_new_cycle): Likewise.
286 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
287 (speculate_insn): Likewise for param "insn".
288 (gen_spec_check): Likewise for params "insn" and "label".
289 (get_insn_spec_ds): Likewise for param "insn".
290 (get_insn_checked_ds): Likewise.
291 (dispatch_do): Likewise.
292 (dispatch): Likewise.
293 (cannot_copy_insn_p): Likewise.
294 (invalid_within_doloop): Likewise.
295 (legitimate_combined_insn): Likewise.
296 (needed): Likewise.
297 (after): Likewise.
298
299 * doc/tm.texi: Automatically updated to reflect changes to
300 target.def.
301
302 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
303 working with insn.
304 (schedule_block): Likewise.
305 (sched_init): Likewise.
306 (sched_speculate_insn): Strengthen param "insn" from rtx to
307 rtx_insn *.
308 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
309 working with insn.
310 * hooks.c (hook_bool_rtx_true): Rename to...
311 hook_bool_rtx_insn_true): ...this, and strengthen first param from
312 rtx to rtx_insn *.
313 (hook_constcharptr_const_rtx_null): Rename to...
314 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
315 first param from const_rtx to const rtx_insn *.
316 (hook_bool_rtx_int_false): Rename to...
317 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
318 param from rtx to rtx_insn *.
319 (hook_void_rtx_int): Rename to...
320 (hook_void_rtx_insn_int): ...this, and strengthen first param from
321 rtx to rtx_insn *.
322
323 * hooks.h (hook_bool_rtx_true): Rename to...
324 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
325 rtx to rtx_insn *.
326 (hook_bool_rtx_int_false): Rename to...
327 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
328 param from rtx to rtx_insn *.
329 (hook_void_rtx_int): Rename to...
330 (hook_void_rtx_insn_int): ...this, and strengthen first param from
331 rtx to rtx_insn *.
332 (hook_constcharptr_const_rtx_null): Rename to...
333 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
334 first param from const_rtx to const rtx_insn *.
335
336 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
337 and local "prev" from rtx to rtx_insn *.
338
339 * sched-int.h (sched_speculate_insn): Strengthen first param from
340 rtx to rtx_insn *.
341
342 * sel-sched.c (create_speculation_check): Likewise for local "label".
343 * targhooks.c (default_invalid_within_doloop): Strengthen param
344 "insn" from const_rtx to const rtx_insn *.
345 * targhooks.h (default_invalid_within_doloop): Strengthen param
346 from const_rtx to const rtx_insn *.
347
348 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
349 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
350
351 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
352 "insn".
353 (arc_invalid_within_doloop): Likewise, with const.
354
355 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
356 (arm_cannot_copy_insn_p): Likewise for param "insn".
357 (arm_unwind_emit): Likewise.
358
359 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
360 "dep_insn".
361
362 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
363 (c6x_variable_issue): Likewise. Removed now-redundant checked
364 cast.
365 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
366
367 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
368 Likewise for param "insn".
369 (epiphany_mode_after): Likewise.
370 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
371 params "insn", "dep_insn".
372 (epiphany_mode_needed): Likewise for param "insn".
373 (epiphany_mode_after): Likewise.
374
375 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
376 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
377 (ix86_avx_u128_mode_needed): Likewise.
378 (ix86_i387_mode_needed): Likewise.
379 (ix86_mode_needed): Likewise.
380 (ix86_avx_u128_mode_after): Likewise.
381 (ix86_mode_after): Likewise.
382 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
383 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
384 (ix86_adjust_priority): Likewise for param "insn".
385 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
386 (do_dispatch): Likewise.
387 (has_dispatch): Likewise.
388 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
389
390 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
391 reflect renaming of default hook implementation from
392 hook_constcharptr_const_rtx_null to
393 hook_constcharptr_const_rtx_insn_null.
394 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
395 rtx to rtx_insn *.
396 (ia64_variable_issue): Likewise for param "insn".
397 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
398 (ia64_dfa_new_cycle): Likewise.
399 (ia64_get_insn_spec_ds): Likewise.
400 (ia64_get_insn_checked_ds): Likewise.
401 (ia64_speculate_insn): Likewise.
402 (ia64_gen_spec_check): Likewise for params "insn", "label".
403 (ia64_asm_unwind_emit): Likewise for param "insn".
404
405 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
406
407 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
408 "insn", "def_insn".
409 (m68k_sched_variable_issue): Likewise for param "insn".
410
411 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
412 "def_insn".
413
414 * config/microblaze/microblaze.c (microblaze_adjust_cost):
415 Likewise for params "insn", "dep".
416
417 * config/mips/mips.c (mips_adjust_cost): Likewise.
418 (mips_variable_issue): Likewise for param "insn".
419 (mips_final_postscan_insn): Likewise.
420
421 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
422 for params "insn", "dep".
423
424 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
425 "dep_insn".
426 (pa_adjust_priority): Likewise for param "insn".
427
428 * config/picochip/picochip.c (picochip_sched_adjust_cost):
429 Likewise for params "insn", "dep_insn".
430
431 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
432 param "insn".
433 (rs6000_variable_issue): Likewise.
434 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
435 (rs6000_debug_adjust_cost): Likewise.
436 (rs6000_adjust_priority): Likewise for param "insn".
437 (rs6000_use_sched_lookahead_guard): Likewise.
438 (get_next_active_insn): Likewise for return type and both params.
439 (redefine_groups): Likewise for params "prev_head_insn", "tail"
440 and locals "insn", "next_insn".
441 (pad_groups): Likewise.
442
443 * config/s390/s390.c (s390_adjust_priority): Likewise for param
444 "insn".
445 (s390_cannot_copy_insn_p): Likewise.
446 (s390_sched_variable_issue): Likewise for third param, eliminating
447 checked cast.
448 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
449 default hook implementation from hook_constcharptr_const_rtx_null
450 to hook_constcharptr_const_rtx_insn_null.
451
452 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
453 from rtx to rtx_insn *.
454 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
455 (sh_variable_issue): Likewise for param "insn".
456 (sh_dfa_new_cycle): Likewise.
457 (sh_mode_needed): Likewise.
458 (sh_mode_after): Likewise.
459
460 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
461 params "insn", "dep_insn".
462 (hypersparc_adjust_cost): Likewise.
463 (sparc_adjust_cost): Likewise.
464
465 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
466 param, eliminated checked cast.
467 (spu_sched_adjust_cost): Likewise for first and third params.
468
469 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
470 params "insn" and "dep_insn" from rtx to rtx_insn *.
471
472 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
473
474 2014-08-27 David Malcolm <dmalcolm@redhat.com>
475
476 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
477 (set_is_load_p): ...this, updating to work on a SET pattern rather
478 than an insn.
479 (is_store_insn): Rename to...
480 (set_is_store_p): ...this, updating to work on a SET pattern
481 rather than an insn.
482 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
483 top of function to where it is needed. Rewrite the bogus
484 condition that checks for "insn" and "dep" being PARALLEL to
485 instead use single_set, introducing locals "insn_set" and
486 "dep_set". Given that we only ever returned "cost" for a non-pair
487 of SETs, bail out early if we don't have a pair of SET.
488 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
489 use the new locals "insn_set" and "dep_set", and update calls to
490 is_load_insn and is_store_insn to be calls to set_is_load_p and
491 set_is_store_p.
492
493 2014-08-27 Guozhi Wei <carrot@google.com>
494
495 PR target/62262
496 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
497 amount before using it.
498
499 2014-08-27 Richard Biener <rguenther@suse.de>
500
501 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
502 get_maxval_strlen inside a more useful API.
503 (gimple_fold_builtin_with_strlen): Remove and fold into ...
504 (gimple_fold_builtin): ... caller.
505 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
506 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
507 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
508 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
509 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
510 gimple_fold_builtin_sprintf): Adjust to compute maxval
511 themselves.
512
513 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
514
515 PR other/62248
516 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
517
518 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
519 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
520 Anna Tikhonova <anna.tikhonova@intel.com>
521 Ilya Tocar <ilya.tocar@intel.com>
522 Andrey Turetskiy <andrey.turetskiy@intel.com>
523 Ilya Verbin <ilya.verbin@intel.com>
524 Kirill Yukhin <kirill.yukhin@intel.com>
525 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
526
527 * config/i386/sse.md
528 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
529 Use `concat_tg_mode' attribute to determine asm register size.
530
531 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
532 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
533 Anna Tikhonova <anna.tikhonova@intel.com>
534 Ilya Tocar <ilya.tocar@intel.com>
535 Andrey Turetskiy <andrey.turetskiy@intel.com>
536 Ilya Verbin <ilya.verbin@intel.com>
537 Kirill Yukhin <kirill.yukhin@intel.com>
538 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
539
540 * config/i386/sse.md
541 (define_mode_iterator VI48_AVX512VL): New.
542 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
543 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
544 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
545 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
546 with VI1): Change mode iterator.
547 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
548 with VI_ULOADSTORE_BW_AVX512VL): New.
549 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
550 with VI_ULOADSTORE_F_AVX512VL): Ditto.
551 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
552 with VI1): Change mode iterator.
553 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
554 with VI_ULOADSTORE_BW_AVX512VL): New.
555 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
556 with VI_ULOADSTORE_F_AVX512VL): Ditto.
557 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
558 with VI1): Change mode iterator.
559 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
560 with VI_ULOADSTORE_BW_AVX512VL): New.
561 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
562 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
563 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
564 (define_insn "<avx512>_storedqu<mode>_mask" with
565 VI48_AVX512VL): New.
566 (define_insn "<avx512>_storedqu<mode>_mask" with
567 VI12_AVX512VL): Ditto.
568
569 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
570 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
571 Anna Tikhonova <anna.tikhonova@intel.com>
572 Ilya Tocar <ilya.tocar@intel.com>
573 Andrey Turetskiy <andrey.turetskiy@intel.com>
574 Ilya Verbin <ilya.verbin@intel.com>
575 Kirill Yukhin <kirill.yukhin@intel.com>
576 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
577
578 * config/i386/sse.md
579 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
580 (define_mode_iterator VI48_AVX512BW): New.
581 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
582 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
583 with VI48_AVX2_48_AVX512F): New.
584 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
585 with VI2_AVX512VL): Ditto.
586
587 2014-08-27 Richard Biener <rguenther@suse.de>
588
589 PR middle-end/62239
590 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
591 (fold_builtin_3): Do not fold strcat_chk here.
592 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
593 from builtins.c.
594 (gimple_fold_builtin): Fold strcat_chk here.
595
596 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
597
598 * dwarf2out.h (dwarf2out_decl): Remove prototype.
599 * dwarf2out.c (dwarf2out_decl): Make static.
600
601 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
602
603 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
604
605 2014-08-26 David Malcolm <dmalcolm@redhat.com>
606
607 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
608 from rtx to rtx_insn *.
609 (cselib_lookup_from_insn): Likewise for final param.
610 (cselib_subst_to_values_from_insn): Likewise.
611 (cselib_add_permanent_equiv): Likewise.
612
613 * cselib.c (cselib_current_insn): Likewise for this variable.
614 (cselib_subst_to_values_from_insn): Likewise for param "insn".
615 (cselib_lookup_from_insn): Likewise.
616 (cselib_add_permanent_equiv): Likewise for param "insn" and local
617 "save_cselib_current_insn".
618 (cselib_process_insn): Replace use of NULL_RTX with NULL.
619
620 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
621 from rtx to rtx_insn *.
622
623 2014-08-26 David Malcolm <dmalcolm@redhat.com>
624
625 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
626 rtx_insn *.
627
628 2014-08-26 David Malcolm <dmalcolm@redhat.com>
629
630 * df.h (df_dump_insn_problem_function): Strengthen first param of
631 this callback from const_rtx to const rtx_insn *.
632 (struct df_insn_info): Strengthen field "insn" from rtx to
633 rtx_insn *.
634 (DF_REF_INSN): Eliminate this function, reinstating the older
635 macro definition.
636 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
637 (df_reg_defined): Likewise.
638 (df_find_use): Likewise.
639 (df_reg_used): Likewise.
640 (df_dump_insn_top): Strengthen param 1 from const_rtx to
641 const rtx_insn *.
642 (df_dump_insn_bottom): Likewise.
643 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
644 (df_insn_debug_regno): Likewise.
645 (debug_df_insn): Likewise.
646 (df_rd_simulate_one_insn): Likewise for param 2.
647 (df_word_lr_simulate_defs): Likewise for param 1.
648 (df_word_lr_simulate_uses): Likewise.
649 (df_md_simulate_one_insn): Likewise for param 2.
650 (df_simulate_find_noclobber_defs): Likewise for param 1.
651 (df_simulate_find_defs): Likewise.
652 (df_simulate_defs): Likewise.
653 (df_simulate_uses): Likewise.
654 (df_simulate_one_insn_backwards): Likewise for param 2.
655 (df_simulate_one_insn_forwards): Likewise.
656 (df_uses_create): Likewise for param 2.
657 (df_insn_create_insn_record): Likewise for param 1.
658 (df_insn_delete): Likewise.
659 (df_insn_rescan): Likewise.
660 (df_insn_rescan_debug_internal): Likewise.
661 (df_insn_change_bb): Likewise.
662 (df_notes_rescan): Likewise.
663 * rtl.h (remove_death): Likewise for param 2.
664 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
665 const rtx_insn *.
666 * sched-int.h (reemit_notes): Strengthen param from rtx to
667 rtx_insn *.
668 * valtrack.h (propagate_for_debug): Likewise for param 1.
669
670 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
671 local "tmp_rtx" from const_rtx to const rtx_insn *.
672 * combine.c (remove_death): Strengthen param "insn" from rtx to
673 rtx_insn *.
674 (move_deaths): Likewise for local "where_dead".
675 * cse.c (delete_trivially_dead_insns): Introduce local
676 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
677 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
678 rtx_insn *.
679 (df_reg_defined): Likewise.
680 (df_find_use): Likewise.
681 (df_reg_used): Likewise.
682 (df_dump_insn_problem_data): Strengthen param "insn" from
683 const_rtx to const rtx_insn *.
684 (df_dump_insn_top): Likewise.
685 (df_dump_insn_bottom): Likewise.
686 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
687 (df_insn_debug_regno): Likewise.
688 (debug_df_insn): Likewise.
689 (DF_REF_INSN): Delete.
690 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
691 from rtx to rtx_insn *.
692 (df_chain_insn_top_dump): Strengthen param "insn" from
693 const_rtx to const rtx_insn *.
694 (df_chain_insn_bottom_dump): Likewise.
695 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
696 rtx_insn *.
697 (df_word_lr_simulate_uses): Likewise.
698 (df_print_note): Likewise.
699 (df_remove_dead_and_unused_notes): Likewise.
700 (df_set_unused_notes_for_mw): Likewise.
701 (df_set_dead_notes_for_mw): Likewise.
702 (df_create_unused_note): Likewise.
703 (df_simulate_find_defs): Likewise.
704 (df_simulate_find_uses): Likewise.
705 (df_simulate_find_noclobber_defs): Likewise.
706 (df_simulate_defs): Likewise.
707 (df_simulate_uses): Likewise.
708 (df_simulate_one_insn_backwards): Likewise.
709 (df_simulate_one_insn_forwards): Likewise.
710 (df_md_simulate_one_insn): Likewise.
711 * df-scan.c (df_uses_create): Likewise.
712 (df_insn_create_insn_record): Likewise.
713 (df_insn_delete): Likewise.
714 (df_insn_rescan): Likewise.
715 (df_insn_rescan_debug_internal): Likewise.
716 (df_insn_change_bb): Likewise.
717 (df_notes_rescan): Likewise.
718 (df_refs_add_to_chains): Likewise.
719 (df_insn_refs_verify): Likewise.
720 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
721 when invoking df_insn_delete.
722 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
723 (set_unique_reg_note): Add checked cast.
724 * final.c (cleanup_subreg_operands): Likewise.
725 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
726 "insn" from rtx to rtx_insn *.
727 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
728 "last" from rtx to rtx_insn *.
729 * ira-emit.c (change_regs_in_insn): New function.
730 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
731 Invoke change_regs_in_insn rather than change_regs.
732 * ira.c (update_equiv_regs): Strengthen locals "insn",
733 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
734 for_each_rtx_in_insn rather than for_each_rtx.
735 * recog.c (confirm_change_group): Add checked casts.
736 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
737 Add checked cast.
738 (peep2_fill_buffer): Add checked cast.
739 * rtlanal.c (remove_note): Likewise.
740 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
741 locals "next" "end" from rtx to rtx_insn *.
742
743 2014-08-26 David Malcolm <dmalcolm@redhat.com>
744
745 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
746 to rtx_insn *.
747 (struct reg_use_data): Likewise for field "insn".
748 (insn_cost): Likewise for param.
749 (real_insn_for_shadow): Likewise for return type and param.
750 (increase_insn_priority): Likewise for param 1.
751 (debug_dependencies): Likewise for both params.
752
753 * haifa-sched.c (insn_delay): Likewise for param "insn".
754 (real_insn_for_shadow): Likewise for return type and param "insn".
755 (update_insn_after_change): Likewise for param "insn".
756 (recompute_todo_spec): Likewise for param "next" and locals "pro",
757 "other".
758 (insn_cost): Likewise for param "insn".
759 (increase_insn_priority): Likewise.
760 (calculate_reg_deaths): Likewise.
761 (setup_insn_reg_pressure_info): Likewise.
762 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
763 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
764 (model_recompute): Likewise.
765 (must_restore_pattern_p): Likewise for param "next".
766 (model_excess_cost): Likewise for param "insn".
767 (queue_remove): Likewise.
768 (adjust_priority): Likewise for param "prev".
769 (update_register_pressure): Likewise for param "insn".
770 (setup_insn_max_reg_pressure): Likewise for local "insn".
771 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
772 (model_add_to_schedule): Likewise.
773 (model_reset_queue_indices): Likewise for local "insn".
774 (unschedule_insns_until): Strengthen local "recompute_vec" from
775 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
776 "con" from rtx to rtx_insn *.
777 (restore_last_backtrack_point): Likewise for both locals "x". Add
778 checked casts.
779 (estimate_insn_tick): Likewise for param "insn".
780 (commit_schedule): Likewise for params "prev_head", "tail" and
781 local "x".
782 (verify_shadows): Likewise for locals "i1", "i2".
783 (dump_insn_stream): Likewise for params "head", "tail" and locals
784 "next_tail", "insn".
785 (schedule_block): Likewise for locals "insn", "x". Add a checked
786 cast.
787 (fix_inter_tick): Likewise for params "head", "tail".
788 (create_check_block_twin): Likewise for local "jump".
789 (haifa_change_pattern): Likewise for param "insn".
790 (haifa_speculate_insn): Likewise.
791 (dump_new_block_header): Likewise for params "head", "tail".
792 (fix_jump_move): Likewise for param "jump".
793 (move_block_after_check): Likewise.
794 (sched_init_insn_luid): Likewise for param "insn".
795 (sched_init_luids): Likewise for local "insn".
796 (insn_luid): Likewise for param "insn".
797 (init_h_i_d): Likewise.
798 (haifa_init_h_i_d): Likewise for local "insn".
799 (haifa_init_insn): Likewise for param "insn".
800 * sched-deps.c (add_dependence): Likewise for local "real_pro",
801 "other".
802 (create_insn_reg_use): Likewise for param "insn".
803 (setup_insn_reg_uses): Likewise. Add a checked cast.
804 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
805 "tail" from rtx to rtx_insn *.
806 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
807 "insn", "next_tail".
808
809 2014-08-26 David Malcolm <dmalcolm@redhat.com>
810
811 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
812 from rtx to rtx_insn *.
813 (model_add_to_schedule): Likewise for locals "start", "end",
814 "iter".
815
816 2014-08-26 David Malcolm <dmalcolm@redhat.com>
817
818 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
819 rtx_insn *.
820 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
821 "to" and locals "insn", "next", "copy". Remove now-redundant
822 checked cast.
823
824 2014-08-26 David Malcolm <dmalcolm@redhat.com>
825
826 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
827 rtx_insn * and param 4 from rtx * to rtx_insn **.
828 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
829 param 2 from rtx * to rtx_insn **.
830
831 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
832 rtx_insn * and final param from rtx * to rtx_insn **.
833
834 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
835 from rtx to rtx_insn *.
836 (try_head_merge_bb): Likewise for both locals named "move_upto".
837 * df-problems.c (can_move_insns_across): Likewise for params
838 "from", "to", "across_from", "across_to" and locals "insn",
839 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
840 rtx_insn **.
841 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
842 from rtx to rtx_insn *.
843 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
844 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
845 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
846 rtx_insn *.
847 (noce_try_abs): Likewise.
848 (noce_get_condition): Likewise for param "jump". Strengthen param
849 "earliest" from rtx * to rtx_insn **.
850 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
851 rtx_insn *.
852 (find_cond_trap): Likewise.
853 (dead_or_predicable): Likewise for local "earliest".
854 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
855 checked cast.
856 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
857 and local "prev". Strengthen param "earliest" from rtx * to
858 rtx_insn **.
859 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
860 Strengthen param "earliest" from rtx * to rtx_insn **.
861
862 2014-08-26 David Malcolm <dmalcolm@redhat.com>
863
864 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
865 "to" and local "insn" from rtx to rtx_insn *.
866
867 2014-08-26 David Malcolm <dmalcolm@redhat.com>
868
869 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
870 from rtx to rtx_insn *.
871 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
872 (code_motion_path_driver): Likewise for local "last_insn".
873 (simplify_changed_insns): Likewise for local "insn".
874
875 2014-08-26 David Malcolm <dmalcolm@redhat.com>
876
877 * rtl.h (push_to_sequence): Strengthen param from rtx to
878 rtx_insn *.
879 (push_to_sequence2): Likewise for both params.
880 (delete_insns_since): Likewise for param.
881 (reorder_insns_nobb): Likewise for all three params.
882 (set_new_first_and_last_insn): Likewise for both params.
883
884 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
885 rtx_insn *. Remove now-redundant cast.
886 (set_last_insn): Likewise.
887
888 * builtins.c (expand_builtin_return): Strengthen local
889 "call_fusage" from rtx to rtx_insn *.
890 * cfgrtl.c (create_basic_block_structure): Likewise for local
891 "after".
892 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
893 "first", "last" and local "insn".
894 (delete_insns_since): Likewise for param "from".
895 (reorder_insns_nobb): Likewise for params "from", "to", "after"
896 and local "x".
897 (push_to_sequence): Likewise for param "first" and local "last".
898 (push_to_sequence2): Likewise for params "first" and "last".
899 * lra.c (emit_add3_insn): Likewise for local "last".
900 (lra_emit_add): Likewise.
901 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
902 "last_insn".
903 (process_address_1): Likewise for locals "insn", last".
904 * modulo-sched.c (ps_first_note): Likewise for return type.
905 * optabs.c (expand_binop_directly): Likewise for param "last".
906
907 2014-08-26 David Malcolm <dmalcolm@redhat.com>
908
909 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
910 to rtx_insn*.
911 * emit-rtl.c (get_last_insn_anywhere): Likewise.
912
913 2014-08-26 David Malcolm <dmalcolm@redhat.com>
914
915 * function.h (struct sequence_stack): Strengthen fields "first"
916 and "last" from rtx to rtx_insn *.
917 (struct emit_status): Likewise for fields "x_first_insn" and
918 "x_last_insn".
919
920 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
921 (set_first_insn): Add checked cast.
922 (get_last_insn): Remove now-redundant checked cast.
923 (set_last_insn): Add checked cast.
924
925 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
926 "saved_first" and "saved_last" from rtx to rtx_insn *.
927
928 2014-08-26 David Malcolm <dmalcolm@redhat.com>
929
930 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
931 (unlink_insn_chain): Strengthen both params from rtx to
932 rtx_insn *.
933
934 * cfgrtl.c (cfg_layout_function_header): Likewise for this
935 variable.
936 (unlink_insn_chain): Likewise for params "first" and "last".
937 Remove now-redundant checked cast.
938 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
939 (fixup_reorder_chain): Strengthen local "insn" from rtx to
940 rtx_insn *.
941 * emit-rtl.c (link_insn_into_chain): Likewise for all three
942 params.
943 (add_insn): Likewise for param "insn" and local "prev".
944 (add_insn_after_nobb): Likewise for both params and local "next".
945 (add_insn_before_nobb): Likewise for both params and local "prev".
946 (add_insn_after): Rename param "after" to "uncast_after",
947 introducing local "after" with another checked cast.
948 (add_insn_before): Rename params "insn" and "before", giving them
949 "uncast_" prefixes, adding the old names back using checked casts.
950 (emit_note_after): Likewise for param "after".
951 (emit_note_before): Likewise for param "before".
952 (emit_label): Add a checked cast.
953
954 2014-08-26 David Malcolm <dmalcolm@redhat.com>
955
956 * cselib.h (cselib_record_sets_hook): Strengthen initial param
957 "insn" from rtx to rtx_insn *.
958
959 * cselib.c (cselib_record_sets_hook): Likewise.
960
961 * var-tracking.c (add_with_sets): Likewise, renaming back from
962 "uncast_insn" to "insn" and eliminating the checked cast from rtx
963 to rtx_insn *.
964
965 2014-08-26 David Malcolm <dmalcolm@redhat.com>
966
967 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
968 and "header_" from rtx to rtx_insn *.
969 (struct basic_block_d): Likewise for field "head_" within "x"
970 field of union basic_block_il_dependent.
971 (BB_HEAD): Drop function...
972 (SET_BB_HEAD): ...and this function in favor of...
973 (BB_HEAD): ...reinstate macro.
974 (BB_END): Drop function...
975 (SET_BB_END): ...and this function in favor of...
976 (BB_END): ...reinstate macro.
977 (BB_HEADER): Drop function...
978 (SET_BB_HEADER): ...and this function in favor of...
979 (BB_HEADER): ...reinstate macro.
980
981 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
982 (fix_crossing_unconditional_branches): Likewise.
983 * caller-save.c (save_call_clobbered_regs): Likewise.
984 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
985 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
986 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
987 (merge_blocks_move_successor_nojumps): Likewise.
988 (outgoing_edges_match): Update use of for_each_rtx to
989 for_each_rtx_in_insn.
990 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
991 (expand_gimple_cond): Likewise.
992 (expand_gimple_tailcall): Likewise.
993 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
994 SET_BB_END.
995 (construct_exit_block): Drop use of SET_BB_END.
996 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
997 rtx_insn *.
998 (delete_insn): Rename param "insn" to "uncast_insn", introducing
999 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1000 SET_BB_HEAD and SET_BB_END.
1001 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1002 SET_BB_END.
1003 (rtl_delete_block): Drop use of SET_BB_HEAD.
1004 (rtl_split_block): Drop use of SET_BB_END.
1005 (emit_nop_for_unique_locus_between): Likewise.
1006 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1007 (block_label): Drop use of SET_BB_HEAD.
1008 (fixup_abnormal_edges): Drop use of SET_BB_END.
1009 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1010 (relink_block_chain): Likewise.
1011 (fixup_reorder_chain): Drop use of SET_BB_END.
1012 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1013 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1014 rtx_insn **. Drop use of SET_BB_HEADER.
1015 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1016 SET_BB_HEAD.
1017 (BB_HEAD): Delete this function.
1018 (SET_BB_HEAD): Likewise.
1019 (BB_END): Likewise.
1020 (SET_BB_END): Likewise.
1021 (BB_HEADER): Likewise.
1022 (SET_BB_HEADER): Likewise.
1023 * emit-rtl.c (add_insn_after): Rename param "insn" to
1024 "uncast_insn", adding a new local "insn" and a checked cast to
1025 rtx_insn *. Drop use of SET_BB_END.
1026 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1027 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1028 (reorder_insns): Drop use of SET_BB_END.
1029 (emit_insn_after_1): Strengthen param "first" and locals "last",
1030 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1031 (emit_pattern_after_noloc): Add checked cast.
1032 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1033 (restore_other_notes): Likewise.
1034 (move_insn): Likewise.
1035 (sched_extend_bb): Likewise.
1036 (fix_jump_move): Likewise.
1037 * ifcvt.c (noce_process_if_block): Likewise.
1038 (dead_or_predicable): Likewise.
1039 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1040 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1041 * sel-sched-ir.c (sel_move_insn): Likewise.
1042 * sel-sched.c (move_nop_to_previous_block): Likewise.
1043
1044 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1045 SET_BB_END.
1046 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1047
1048 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1049
1050 * basic-block.h (create_basic_block_structure): Strengthen params
1051 1 "head" and 2 "end" from rtx to rtx_insn *.
1052 * cfgrtl.c (create_basic_block_structure): Likewise.
1053 (rtl_create_basic_block): Update casts from void * to rtx to
1054 rtx_insn *, so that we can pass them as rtx_insn * to
1055 create_basic_block_structure.
1056 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1057
1058 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1059
1060 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1061 rtx_insn **.
1062 (check_for_inc_dec): Strengthen param "insn" from rtx to
1063 rtx_insn *.
1064
1065 * cselib.h (cselib_process_insn): Likewise.
1066
1067 * cselib.c (cselib_record_sets): Likewise.
1068 (cselib_process_insn): Likewise.
1069
1070 * dse.c (struct insn_info): Likewise for field "insn".
1071 (check_for_inc_dec_1): Likewise for local "insn".
1072 (check_for_inc_dec): Likewise for param "insn".
1073 (scan_insn): Likewise.
1074 (dse_step1): Likewise for local "insn".
1075
1076 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1077 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1078
1079 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1080
1081 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1082 from rtx to rtx_insn *.
1083 (DEP_PRO): Delete this function and...
1084 (SET_DEP_PRO): ...this function in favor of...
1085 (DEP_PRO): ...reinstate this macro.
1086 (DEP_CON): Delete this function and...
1087 (SET_DEP_CON): ...this function in favor of...
1088 (DEP_CON): ...reinstate this old macro.
1089 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1090 (init_dep): Likewise.
1091 (set_priorities): Likewise for both params.
1092 (sd_copy_back_deps): Likewise for params 1 and 2.
1093
1094 * haifa-sched.c (priority): Likewise for param "insn" and local
1095 "next".
1096 (set_priorities): Likewise for params "head" and "tail" and local
1097 "insn".
1098 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1099 local "consumer".
1100 (add_to_speculative_block): Add a checked cast.
1101 (create_check_block_twin): Drop use of SET_DEP_CON.
1102 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1103 rtx to rtx_insn *.
1104
1105 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1106 Drop use of SET_DEP_PRO
1107 (init_dep): Strengthen params "pro" and "con" from rtx to
1108 rtx_insn *.
1109 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1110 use of SET_DEP_CON.
1111 (DEP_PRO): Delete.
1112 (DEP_CON): Delete.
1113 (SET_DEP_PRO): Delete.
1114 (SET_DEP_CON): Delete.
1115
1116 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1117
1118 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1119 from rtx to rtx_insn *.
1120 (VINSN_INSN_RTX): Eliminate rvalue function and...
1121 (SET_VINSN_INSN): ...lvalue function in favor of...
1122 (VINSN_INSN_RTX): reinstate this old macro.
1123
1124 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1125 in favor of VINSN_INSN_RTX.
1126 (VINSN_INSN_RTX): Delete this function.
1127 (SET_VINSN_INSN_RTX): Likewise.
1128
1129 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1130
1131 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1132 (BND_TO): Delete this function and...
1133 (SET_BND_TO): ...this functions in favor of...
1134 (BND_TO): ...reinstating this macro.
1135 (struct _fence): Strengthen field "executing_insns" from
1136 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1137 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1138 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1139 and param "insn" from rtx to insn_t.
1140 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1141 rtx_insn *.
1142
1143 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1144 vec<rtx_insn *> .
1145 (rtx_vec_t): Likewise.
1146 (struct sched_deps_info_def): Strengthen param of "start_insn"
1147 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1148 "note_mem_dep" callback and first param of "note_dep" callback.
1149
1150 * haifa-sched.c (add_to_speculative_block): Strengthen param
1151 "insn" from rtx to rtx_insn *.
1152 (clear_priorities): Likewise.
1153 (calc_priorities): Likewise for local "insn".
1154
1155 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1156 Remove redundant checked cast.
1157 (haifa_note_mem_dep): Likewise for param "pending_insn".
1158 (haifa_note_dep): Likewise for param "elem".
1159 (note_mem_dep): Likewise for param "e".
1160 (sched_analyze_1): Add checked casts.
1161 (sched_analyze_2): Likewise.
1162
1163 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1164 from rtx to rtx_insn *.
1165 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1166 from vec<rtx> * to vec<rtx_insn *> *.
1167
1168 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1169 scaffolding.
1170 (flist_add): Strengthen param "executing_insns" from
1171 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1172 (advance_deps_context): Remove now-redundant checked cast.
1173 (init_fences): Replace uses of NULL_RTX with NULL.
1174 (merge_fences): Strengthen params "last_scheduled_insn" and
1175 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1176 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1177 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1178 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1179 an instruction, rather than doing double-duty as a pattern.
1180 (return_nop_to_pool): Update for change of insn_t.
1181 (deps_init_id): Remove now-redundant checked cast.
1182 (struct sched_scan_info_def): Strengthen param of "init_insn"
1183 callback from rtx to insn_t.
1184 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1185 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1186 NULL.
1187 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1188 "end" from rtx to rtx_insn *.
1189 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1190 (rtx insn_rtx, bool force_unique_p)
1191 (BND_TO): Delete function.
1192 (SET_BND_TO): Delete function.
1193
1194 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1195 rtx to rtx_insn *.
1196 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1197 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1198 rtx to rtx_insn *.
1199 (undo_transformations): Likewise for param "insn".
1200 (update_liveness_on_insn): Likewise.
1201 (compute_live_below_insn): Likewise for param "insn" and local
1202 "succ".
1203 (update_data_sets): Likewise for param "insn".
1204 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1205 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1206 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1207 rtx_insn *.
1208 (move_cond_jump): Likewise for param "insn".
1209 (move_cond_jump): Drop use of SET_BND_TO.
1210 (compute_av_set_on_boundaries): Likewise.
1211 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1212 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1213 from rtx to rtx_insn *.
1214 (maybe_emit_renaming_copy): Likewise for param "insn".
1215 (maybe_emit_speculative_check): Likewise.
1216 (handle_emitting_transformations): Likewise.
1217 (remove_insn_from_stream): Likewise.
1218 (code_motion_process_successors): Strengthen local "succ" from rtx
1219 to insn_t.
1220
1221 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1222
1223 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1224 ilist_t, not _xlist_t;
1225 (ILIST_INSN): Define in terms of new union field "insn".
1226 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1227 _XLIST_NEXT.
1228 (struct _list_node): Add new field "insn" to the union, of type
1229 insn_t.
1230 (ilist_add): Replace macro with an inline function, requiring an
1231 insn_t.
1232 (ilist_remove): Define this macro directly in terms of
1233 _list_remove, rather than indirectly via _xlist_remove.
1234 (ilist_clear): Likewise, in terms of _list_clear rather than
1235 _xlist_clear.
1236 (ilist_is_in_p): Replace macro with an inline function, requiring
1237 an insn_t.
1238 (_list_iter_cond_insn): New function.
1239 (ilist_iter_remove): Define this macro directly in terms of
1240 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1241 (ilist_iterator): Define directly in terms of _list_iterator
1242 rather than indirectly through _xlist_iterator.
1243 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1244 than in terms of _FOR_EACH_X.
1245 (FOR_EACH_INSN_1): Likewise.
1246
1247 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1248
1249 PR target/60606
1250 PR target/61330
1251 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1252 DECL_HARD_REGISTER and return for invalid register specifications.
1253 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1254 DECL_HARD_REGISTER, call expand_one_error_var.
1255 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1256 CC_REGNUM with non-MODE_CC modes.
1257 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1258
1259 2014-08-26 Marek Polacek <polacek@redhat.com>
1260
1261 PR c/61271
1262 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1263
1264 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1265
1266 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1267 qi cost; add di cost.
1268 (cortexa57_addrcost_table): Likewise.
1269
1270 2014-08-26 Marek Polacek <polacek@redhat.com>
1271
1272 PR c/61271
1273 * expr.c (is_aligning_offset): Remove logical not.
1274
1275 2014-08-26 Marek Polacek <polacek@redhat.com>
1276
1277 PR c/61271
1278 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1279 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1280
1281 2014-08-26 Richard Biener <rguenther@suse.de>
1282
1283 PR tree-optimization/62175
1284 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1285 expand possibly trapping operations.
1286
1287 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1288
1289 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1290 "insn" from rtx to rtx_insn *.
1291 (permute_load): Likewise for param "insn".
1292 (permute_store): Likewise.
1293 (handle_special_swappables): Likewise for local "insn".
1294 (replace_swap_with_copy): Likewise for locals "insn" and
1295 "new_insn".
1296 (rs6000_analyze_swaps): Likewise for local "insn".
1297
1298 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1299
1300 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1301 to rtx_insn *.
1302
1303 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1304
1305 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1306 "note_list" from rtx to rtx_insn *.
1307 (BB_NOTE_LIST): Replace this function and...
1308 (SET_BB_NOTE_LIST): ...this function with...
1309 (BB_NOTE_LIST): ...the former macro implementation.
1310
1311 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1312 local "from_start" from rtx to rtx_insn *. Strengthen param
1313 "to_endp" from rtx * to rtx_insn **.
1314
1315 * haifa-sched.c (concat_note_lists): Likewise.
1316 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1317 BB_NOTE_LIST.
1318 (sel_restore_notes): Likewise.
1319 (move_bb_info): Likewise.
1320 (BB_NOTE_LIST): Delete this function.
1321 (SET_BB_NOTE_LIST): Delete this function.
1322 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1323 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1324
1325 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1326
1327 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1328 from rtx * to rtx_insn **.
1329 (reorder2): Likewise.
1330 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1331 from rtx to rtx_insn *.
1332
1333 * doc/tm.texi: Update mechanically for above change to target.def.
1334
1335 * sched-int.h (note_list): Strengthen this variable from rtx to
1336 rtx_insn *.
1337 (remove_notes): Likewise for both params.
1338 (restore_other_notes): Likewise for return type and first param.
1339 (struct ready_list): Strengthen field "vec" from rtx * to
1340 rtx_insn **.
1341 (struct dep_replacement): Strenghten field "insn" from rtx to
1342 rtx_insn *.
1343 (struct deps_desc): Likewise for fields "last_debug_insn",
1344 "last_args_size".
1345 (struct haifa_sched_info): Likewise for callback field
1346 "can_schedule_ready_p"'s param, for first param of "new_ready"
1347 callback field, for both params of "rank" callback field, for
1348 first field of "print_insn" callback field (with a const), for
1349 both params of "contributes_to_priority" callback, for param
1350 of "insn_finishes_block_p" callback, for fields "prev_head",
1351 "next_tail", "head", "tail", for first param of "add_remove_insn"
1352 callback, for first param of "begin_schedule_ready" callback, for
1353 both params of "begin_move_insn" callback, and for second param
1354 of "advance_target_bb" callback.
1355 (add_dependence): Likewise for params 1 and 2.
1356 (sched_analyze): Likewise for params 2 and 3.
1357 (deps_analyze_insn): Likewise for param 2.
1358 (ready_element): Likewise for return type.
1359 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1360 (try_ready): Strenghten param from rtx to rtx_insn *.
1361 (sched_emit_insn): Likewise for return type.
1362 (record_delay_slot_pair): Likewise for params 1 and 2.
1363 (add_delay_dependencies): Likewise for param.
1364 (contributes_to_priority): Likewise for both params.
1365 (find_modifiable_mems): Likewise.
1366
1367 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1368 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1369 "first_older_only_insn" from rtx to rtx_insn *.
1370 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1371 rtx_insn **.
1372
1373 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1374 "last_scheduled_iter0" from rtx to rtx_insn *.
1375 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1376 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1377 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1378 "insn" from rtx to rtx_insn *.
1379 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1380 rtx_insn **.
1381 (c6x_sched_reorder2): Strengthen param "ready" and locals
1382 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1383 "insn" from rtx to rtx_insn *.
1384 (c6x_variable_issue): Add a checked cast when assigning from insn
1385 to ss.last_scheduled_iter0.
1386 (split_delayed_branch): Strengthen param "insn" and local "i1"
1387 from rtx to rtx_insn *.
1388 (split_delayed_nonbranch): Likewise.
1389 (undo_split_delayed_nonbranch): Likewise for local "insn".
1390 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1391 "entry_after", "end_packet", "head_insn", "tail_insn",
1392 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1393 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1394 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1395 but add a checked cast on loop->start_label. Consolidate calls to
1396 avoid assigning result of gen_spkernel to "insn", now an
1397 rtx_insn *.
1398
1399 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1400 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1401 rtx to rtx_insn *.
1402 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1403 rtx_insn **. Strengthen locals "top", "next" from rtx to
1404 rtx_insn *.
1405 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1406 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1407 (add_parameter_dependencies): Strengthen params "call", "head" and
1408 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1409 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1410 (add_dependee_for_func_arg): Likewise for param "arg" and local
1411 "insn".
1412 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1413 "tail" and locals "insn", "first_arg".
1414
1415 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1416 for params "head", "tail" and locals "insn", "next", "next_tail".
1417 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1418 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1419 "insn", "lowest", "highest" from rtx to rtx_insn *.
1420 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1421 rtx_insn **.
1422 (ia64_sched_reorder2): Likewise.
1423
1424 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1425 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1426 from rtx * to rtx_insn **.
1427 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1428 rtx_insn **.
1429 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1430 rtx_insn *.
1431 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1432 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1433 to rtx_insn *.
1434
1435 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1436 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1437 to rtx_insn *.
1438 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1439 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1440 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1441 rtx_insn **.
1442 (vr4130_reorder): Likewise.
1443 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1444 rtx to rtx_insn *.
1445 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1446 rtx_insn **.
1447 (mips_sched_reorder): Likewise.
1448 (mips_sched_reorder2): Likewise.
1449
1450 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1451
1452 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1453 Strengthen local "tmp" from rtx to rtx_insn *.
1454 (rs6000_sched_reorder2): Likewise.
1455
1456 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1457 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1458 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1459 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1460
1461 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1462 "tmp2" from rtx to rtx_insn *.
1463 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1464 Strengthen local "insn" from rtx to rtx_insn *.
1465 (ready_reorder): Strengthen param "ready" from rtx * to
1466 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1467 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1468 (sh_reorder2): Likewise.
1469
1470 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1471 local "insn" from rtx to rtx_insn *.
1472
1473 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1474 rtx_insn *.
1475 (scheduled_insns): Strengthen this variable from vec<rtx> to
1476 vec<rtx_insn *>.
1477 (set_modulo_params): Likewise for locals "i1", "i2".
1478 (record_delay_slot_pair): Likewise for params "i1", "i2".
1479 (add_delay_dependencies): Likewise for param "insn".
1480 (cond_clobbered_p): Likewise.
1481 (recompute_todo_spec): Likewise for local "prev".
1482 (last_scheduled_insn): Likewise for this variable.
1483 (nonscheduled_insns_begin): Likewise.
1484 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1485 rtx_insn **.
1486 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1487 rtx_insn *.
1488 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1489 Strengthen local "insn" from rtx to rtx_insn *.
1490 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1491 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1492 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1493 (ready_remove_first): Likewise for return type and local "t".
1494 (ready_element): Likewise for return type.
1495 (ready_remove): Likewise for return type and local "t".
1496 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1497 (check_clobbered_conditions): Strengthen local "x" from rtx to
1498 rtx_insn *, adding a checked cast.
1499 (schedule_insn): Likewise for param "insn".
1500 (remove_notes): Likewise for params "head", "tail" and locals
1501 "next_tail", "insn", "next".
1502 (struct haifa_saved_data): Likewise for fields
1503 "last_scheduled_insn", "nonscheduled_insns_begin".
1504 (save_backtrack_point): Update for change to field "vec" of
1505 struct ready_list.
1506 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1507 rtx_insn **.
1508 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1509 from rtx to rtx_insn *
1510 (resolve_dependencies): Strengthen param "insn" from rtx to
1511 rtx_insn *
1512 (restore_other_notes): Likewise for return type, for param "head"
1513 and local "note_head".
1514 (undo_all_replacements): Likewise for local "insn".
1515 (first_nonscheduled_insn): Likewise for return type and local "insn".
1516 (queue_to_ready): Likewise for local "insn", adding checked casts.
1517 (early_queue_to_ready): Likewise for local "insn".
1518 (debug_ready_list_1): Strengthen local "p" from rtx * to
1519 rtx_insn **.
1520 (move_insn): Strengthen param "insn" and local "note" from rtx to
1521 rtx_insn *
1522 (insn_finishes_cycle_p): Likewise for param "insn".
1523 (max_issue): Likewise for local "insn".
1524 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1525 to rtx_insn **.
1526 (commit_schedule): Strengthen param "prev_head" and local "insn"
1527 from rtx to rtx_insn *
1528 (prune_ready_list): Likewise for local "insn".
1529 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1530 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1531 (set_priorities): Likewise for local "prev_head".
1532 (try_ready): Likewise for param "next".
1533 (fix_tick_ready): Likewise.
1534 (change_queue_index): Likewise.
1535 (sched_extend_ready_list): Update for change to field "vec" of
1536 struct ready_list.
1537 (generate_recovery_code): Strengthen param "insn" from rtx to
1538 rtx_insn *.
1539 (begin_speculative_block): Likewise.
1540 (create_check_block_twin): Likewise for param "insn" and locals
1541 "label", "check", "twin". Introduce local "check_pat" to avoid
1542 "check" being used as a plain rtx before being used as an insn.
1543 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1544 extracting elements from ready_list.
1545 (sched_remove_insn): Strengthen param "insn" from rtx to
1546 rtx_insn *.
1547 (sched_emit_insn): Likewise for return type.
1548 (ready_remove_first_dispatch): Likewise for return type and local
1549 "insn".
1550
1551 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1552
1553 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1554 const rtx_insn *.
1555
1556 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1557 from rtx to rtx_insn *.
1558 (add_dependence_list): Likewise for param "insn". Add a checked
1559 cast.
1560 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1561 to rtx_insn *. Strengthen param "list_p" from rtx * to
1562 rtx_insn **.
1563 (chain_to_prev_insn): Strengthen param "insn" and locals
1564 "prec_nonnote", "i" from rtx to rtx_insn *.
1565 (flush_pending_lists): Likewise for param "insn".
1566 (cur_insn): Likewise for this variable.
1567 (haifa_start_insn): Add a checked cast.
1568 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1569 (sched_analyze_reg): Likewise for param "insn".
1570 (sched_analyze_1): Likewise.
1571 (sched_analyze_2): Likewise. Add checked casts.
1572 (sched_analyze_insn): Likewise. Also for local "prev".
1573 (deps_analyze_insn): Likewise for param "insn".
1574 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1575 (add_dependence_1): Likewise for params "insn", "elem".
1576 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1577 (parse_add_or_inc): Likewise for param "insn".
1578 (find_inc): Likewise for local "inc_cand".
1579 (find_modifiable_mems): Likewise for params "head", "tail" and
1580 locals "insn", "next_tail".
1581
1582 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1583 (begin_schedule_ready): Likewise for param "insn".
1584 (begin_move_insn): Likewise for params "insn" and "last".
1585 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1586 const rtx_insn *.
1587 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1588 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1589 (ebb_add_remove_insn): Likewise for param "insn".
1590 (advance_target_bb): Likewise.
1591
1592 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1593 "insn".
1594 (check_live): Likewise for param "insn".
1595 (init_ready_list): Likewise for local "insn".
1596 (can_schedule_ready_p): Likewise for param "insn".
1597 (begin_schedule_ready): Likewise.
1598 (new_ready): Likewise for param "next".
1599 (rgn_print_insn): Likewise for param "insn".
1600 (rgn_rank): Likewise for params "insn1", "insn2".
1601 (contributes_to_priority): Likewise for params "next", "insn".
1602 (rgn_insn_finishes_block_p): Likewise for param "insn".
1603 (add_branch_dependences): Likewise for params "head", "tail" and
1604 locals "insn", "last".
1605 (rgn_add_remove_insn): Likewise for param "insn".
1606 (advance_target_bb): Likewise.
1607
1608 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1609 const_rtx to const rtx_insn *.
1610
1611 * sel-sched-dump.h (sel_print_insn): Likewise.
1612
1613 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1614 (deps_init_id): Likewise.
1615
1616 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1617 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1618 rtx_insn **.
1619
1620 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1621
1622 * output.h (final_start_function): Strengthen param 1 from rtx to
1623 rtx_insn *.
1624
1625 * final.c (final_start_function): Likewise, renaming back from
1626 "uncast_first" to "first", and dropping the checked cast from rtx
1627 to rtx_insn *.
1628
1629 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1630
1631 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1632 * final.c (final): Likewise. Rename param back from
1633 "uncast_first" to "first" and eliminate the checked cast from rtx
1634 to rtx_insn *.
1635
1636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1637
1638 * output.h (shorten_branches): Strengthen param from rtx to
1639 rtx_insn *.
1640
1641 * final.c (shorten_branches): Likewise, renaming param back from
1642 "uncast_first" to "first", and dropping the checked cast from rtx
1643 to rtx_insn *.
1644
1645 * genattr.c (gen_attr): Likewise when writing out the prototype of
1646 shorten_branches.
1647
1648 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1649
1650 * sched-int.h (struct haifa_sched_info): Strengthen fields
1651 "prev_head" and "next_tail" from rtx to rtx_insn *.
1652
1653 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1654
1655 * rtl.h (rtx_jump_table_data::get_labels): New method.
1656 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1657 with use of the new rtx_jump_table_data::get_labels method.
1658 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1659 to rtx_jump_table_data *. Simplify by using get_labels method.
1660 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1661 a dyn_cast, introducing local "table", using it to replace
1662 label-lookup logic with a get_labels method call.
1663 (patch_jump_insn): Simplify using get_labels method.
1664 * dwarf2cfi.c (create_trace_edges): Likewise.
1665 * rtlanal.c (label_is_jump_target_p): Likewise.
1666
1667 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1668
1669 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1670 to rtx_insn *.
1671
1672 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1673 (unshare_all_rtl_again): Likewise, also for local "p".
1674
1675 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1676
1677 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1678 to rtx_insn *.
1679 * cfgrtl.c (delete_insn_and_edges): Likewise.
1680
1681 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1682
1683 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1684 from rtx to rtx_insn *.
1685
1686 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1687
1688 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1689
1690 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1691 locals "returnjump", "epilogue_end", "insn", "next".
1692
1693 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1694 "returnjump" from rtx * to rtx_insn **.
1695 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1696
1697 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1698
1699 * basic-block.h (struct edge_def). Strengthen "r" within
1700 union edge_def_insns from rtx to rtx_insn *.
1701
1702 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1703 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1704 rtx_insn *.
1705 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1706 from rtx to rtx_insn *.
1707 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1708 rtx_insn *.
1709 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1710 (reg_used_on_edge): Likewise.
1711 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1712 (gt_pch_nx): New overload for rtx_insn *&.
1713 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1714 from rtx to rtx_insn *.
1715
1716 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1717
1718 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1719 from rtx to rtx_insn *.
1720 (BB_FOOTER): Replace function with access macro.
1721 (SET_BB_FOOTER): Delete.
1722
1723 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1724 with BB_FOOTER.
1725 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1726 (emit_barrier_after_bb): Likewise.
1727 (record_effective_endpoints): Likewise.
1728 (relink_block_chain): Likewise.
1729 (fixup_fallthru_exit_predecessor): Likewise.
1730 (cfg_layout_duplicate_bb): Likewise.
1731 (cfg_layout_split_block): Likewise.
1732 (cfg_layout_delete_block): Likewise.
1733 (cfg_layout_merge_blocks): Likewise.
1734 (BB_FOOTER): Delete function.
1735 (SET_BB_FOOTER): Delete function.
1736 * combine.c (update_cfg_for_uncondjump): Replace uses of
1737 SET_BB_FOOTER with BB_FOOTER.
1738
1739 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1740
1741 * except.h (struct eh_landing_pad_d): Strengthen field
1742 "landing_pad" from rtx to rtx_code_label *.
1743
1744 * except.c (sjlj_emit_dispatch_table): Likewise for param
1745 "dispatch_label"
1746 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1747
1748 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1749
1750 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1751 first param from rtx to rtx_insn *.
1752 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1753 field "set_frame_ptr_insn".
1754 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1755 "csend" from rtx to rtx_code_label *.
1756 (xtensa_expand_atomic): Likewise for local "csloop".
1757 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1758 rtx_insn *.
1759 (xtensa_call_tls_desc): Likewise for return type and locals
1760 "call_insn", "insns".
1761 (xtensa_legitimize_tls_address): Likewise for local "insns".
1762 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1763
1764 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1765
1766 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1767 first param from rtx to rtx_insn *.
1768 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1769 "insn".
1770
1771 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1772
1773 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1774 Strengthen param 1 from rtx to rtx_insn *.
1775 (tilepro_output_cbranch): Likewise.
1776 (tilepro_adjust_insn_length): Likewise.
1777 (tilepro_final_prescan_insn): Likewise for sole param.
1778
1779 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1780 Likewise for local "last".
1781 (cbranch_predicted_p): Likewise for param "insn".
1782 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1783 (tilepro_output_cbranch_with_opcode): Likewise.
1784 (tilepro_output_cbranch): Likewise.
1785 (frame_emit_load): Likewise for return type and locals "seq",
1786 "insn".
1787 (emit_sp_adjust): Likewise for return type and local "insn".
1788 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1789 "insn".
1790 (tilepro_adjust_insn_length): Likewise for param "insn".
1791 (next_insn_to_bundle): Likewise for return type and params
1792 "r", "end".
1793 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1794 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1795 local "new_insns".
1796 (match_addli_pcrel): Likewise for param "insn".
1797 (replace_addli_pcrel): Likewise.
1798 (match_auli_pcrel): Likewise.
1799 (replace_auli_pcrel): Likewise.
1800 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1801 "next_insn".
1802 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1803 "queue", "next_queue", "prev".
1804 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1805 (tilepro_final_prescan_insn): Likewise for param "insn".
1806
1807 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1808
1809 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1810 Strengthen param 1 from rtx to rtx_insn *.
1811 (tilegx_output_cbranch): Likewise.
1812 (tilegx_adjust_insn_length): Likewise.
1813 (tilegx_final_prescan_insn): Likewise for sole param.
1814
1815 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1816 or local "last".
1817 (cbranch_predicted_p): Likewise for param "insn".
1818 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1819 (tilegx_output_cbranch_with_opcode): Likewise.
1820 (tilegx_output_cbranch): Likewise.
1821 (frame_emit_load): Likewise for return type.
1822 (set_frame_related_p): Likewise for locals "seq", "insn".
1823 (emit_sp_adjust): Likewise for return type, and for local "insn".
1824 Introduce local "pat" for use in place of "insn" where the latter
1825 isn't an instruction.
1826 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1827 from rtx to rtx_insn *.
1828 (tilegx_adjust_insn_length): Likewise for param "insn".
1829 (next_insn_to_bundle): Likewise for return type and params "r" and
1830 "end".
1831 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1832 "end".
1833 (replace_insns): Likewise for params "old_insn", "new_insns".
1834 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1835 "new_insns".
1836 (replace_mov_pcrel_step2): Likewise.
1837 (replace_mov_pcrel_step3): Likewise.
1838 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1839 "next_insn".
1840 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1841 "queue", "next_queue", "prev".
1842 (tilegx_output_mi_thunk): Likewise for local "insn".
1843 (tilegx_final_prescan_insn): Likewise for param "insn".
1844
1845 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1846
1847 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1848 rtx to rtx_insn *.
1849 (frame_emit_load): Likewise.
1850 (frame_emit_add_imm): Likewise, also for local "insn".
1851 (spu_expand_prologue): Likewise for local "insn".
1852 (struct spu_bb_info): Likewise for field "prop_jump".
1853 (emit_nop_for_insn): Likewise for param "insn" and local
1854 "new_insn".
1855 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1856 "hbr_insn".
1857 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1858 locals "hint", "insn".
1859 (get_branch_target): Likewise for param "branch".
1860 (insn_clobbers_hbr): Likewise for param "insn".
1861 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1862 locals "insn", "before_4", "before_16".
1863 (insert_hbrp): Likewise for local "insn".
1864 (spu_machine_dependent_reorg): Likewise for locals "branch",
1865 "insn", "next", "bbend".
1866 (uses_ls_unit): Likewise for param "insn".
1867 (get_pipe): Likewise.
1868 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1869 introducing a checked cast.
1870 (spu_sched_adjust_cost): Likewise for params "insn" and
1871 "dep_insn".
1872 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1873 (spu_sms_res_mii): Likewise.
1874
1875 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1876
1877 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1878 from rtx to rtx_insn *.
1879 (output_cbranch): Likewise for param 6.
1880 (output_return): Likewise for param 1.
1881 (output_sibcall): Likewise.
1882 (output_v8plus_shift): Likewise.
1883 (output_v8plus_mult): Likewise.
1884 (output_v9branch): Likewise for param 7.
1885 (output_cbcond): Likewise for param 3.
1886
1887 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1888 for local "insn".
1889 (sparc_legitimize_pic_address): Likewise.
1890 (sparc_emit_call_insn): Likewise.
1891 (emit_save_or_restore_regs): Likewise.
1892 (emit_window_save): Likewise for return type and local "insn".
1893 (sparc_expand_prologue): Likewise for local "insn".
1894 (sparc_flat_expand_prologue): Likewise.
1895 (output_return): Likewise for param "insn".
1896 (output_sibcall): Likewise for param "insn" and local "delay".
1897 (output_ubranch): Likewise for param "insn".
1898 (output_cbranch): Likewise.
1899 (output_cbcond): Likewise.
1900 (output_v9branch): Likewise.
1901 (output_v8plus_shift): Likewise.
1902 (sparc_output_mi_thunk): Likewise for local "insn".
1903 (get_some_local_dynamic_name): Likewise.
1904 (output_v8plus_mult): Likewise for param "insn".
1905
1906 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1907
1908 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1909 from rtx to rtx_insn *.
1910 (output_branchy_insn): Likewise for param 3.
1911 (output_far_jump): Likewise for param 1.
1912 (final_prescan_insn): Likewise.
1913 (sh_insn_length_adjustment): Likewise for sole param.
1914
1915 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1916 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1917 rtx_code_label *.
1918 (sh_emit_compare_and_set): Likewise for local "lab".
1919 (output_far_jump): Strengthen param "insn" and local "prev" from
1920 rtx to rtx_insn *.
1921 (output_branchy_insn): Likewise for param "insn" and local
1922 "next_insn".
1923 (output_ieee_ccmpeq): Likewise for param "insn".
1924 (struct label_ref_list_d): Strengthen field "label" from rtx to
1925 rtx_code_label *.
1926 (pool_node): Likewise.
1927 (pool_window_label): Likewise for this global.
1928 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1929 (dump_table): Strengthen params "start", "barrier" and local
1930 "scan" from rtx to rtx_insn *.
1931 (broken_move): Likewise for param "insn".
1932 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1933 Strengthen param "first_mova" from rtx * to rtx_insn **.
1934 (mova_p): Likewise for param "insn".
1935 (fixup_mova): Likewise for param "mova".
1936 (find_barrier): Likewise for return type, params "mova" and
1937 "from", and locals "barrier_before_mova", "found_barrier",
1938 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1939 "label" from rtx to rtx_code_label *.
1940 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1941 rtx to rtx_insn *.
1942 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1943 (split_branches): Likewise for param "first" and local "insn".
1944 (final_prescan_insn): Likewise for param "insn".
1945 (sequence_insn_p): Likewise for locals "prev", "next".
1946 (sh_insn_length_adjustment): Likewise for param "insn".
1947 (sh_can_redirect_branch): Likewise for local "insn".
1948 (find_r0_life_regions): Likewise for locals "end", "insn".
1949 (sh_output_mi_thunk): Likewise for local "insns".
1950
1951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1952
1953 * config/score/score.c (score_output_mi_thunk): Strengthen local
1954 "insn" from rtx to rtx_insn *.
1955 (score_prologue): Likewise.
1956
1957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1958
1959 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
1960 1 from rtx to rtx_insn *.
1961 (s390_emit_jump): Likewise for return type.
1962 (s390_emit_call): Likewise.
1963 (s390_load_got): Likewise.
1964
1965 * config/s390/s390.c (last_scheduled_insn): Likewise for this
1966 variable.
1967 (s390_match_ccmode): Likewise for param "insn".
1968 (s390_emit_jump): Likewise for return type.
1969 (s390_split_branches): Likewise for local "label".
1970 (struct constant): Strengthen field "label" from rtx to
1971 rtx_code_label *.
1972 (struct constant_pool): Likewise for field "label". Strengthen
1973 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
1974 rtx_insn *.
1975 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
1976 insns.
1977 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
1978 (s390_end_pool): Likewise.
1979 (s390_dump_pool): Likewise for local "insn".
1980 (s390_mainpool_start): Likewise.
1981 (s390_chunkify_start): Likewise.
1982 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
1983 with insns. Strengthen locals "label", "jump", "barrier", "next",
1984 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
1985 (s390_chunkify_finish): Strengthen local "insn" from rtx to
1986 rtx_insn *.
1987 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
1988 "jump", "label", "next_insn".
1989 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
1990 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
1991 "tbegin_insn".
1992 (s390_load_got): Likewise for return type and local "insns".
1993 (s390_save_gprs_to_fprs): Likewise for local "insn".
1994 (s390_restore_gprs_from_fprs): Likewise.
1995 (pass_s390_early_mach::execute): Likewise.
1996 (s390_emit_prologue): Likewise for local "insns".
1997 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
1998 rtx_code_label *.
1999 (s390_emit_call): Strengthen return type and local "insn" from
2000 rtx to rtx_insn *.
2001 (s390_emit_tpf_eh_return): Likewise for local "insn".
2002 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2003 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2004 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2005 local "cur_insn".
2006 (s390_non_addr_reg_read_p): Likewise for param "insn".
2007 (find_cond_jump): Likewise for return type and param "insn".
2008 (s390_swap_cmp): Likewise for param "insn".
2009 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2010 "prev_insn", "next_insn".
2011 (s390_reorg): Likewise for locals "insn", "target".
2012 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2013 (s390_sched_variable_issue): For now, rename param "insn" to
2014 "uncast_insn", introducing a checked cast.
2015 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2016 insn.
2017 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2018 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2019
2020 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2021
2022 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2023 param from rtx to rtx_insn *.
2024 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2025
2026 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2027
2028 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2029 4 from rtx to rtx_insn *.
2030 (rs6000_final_prescan_insn): Likewise for first param.
2031 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2032 local "insn".
2033 (rs6000_get_some_local_dynamic_name): Likewise.
2034 (output_cbranch): Likewise for param "insn".
2035 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2036 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2037 (rs6000_emit_allocate_stack): Likewise for local "insn".
2038 (load_cr_save): Likewise.
2039 (restore_saved_cr): Likewise.
2040 (restore_saved_lr): Likewise.
2041 (emit_cfa_restores): Likewise.
2042 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2043 "deleted_debug_label".
2044 (rs6000_output_mi_thunk): Likewise for local "insn".
2045 (rs6000_final_prescan_insn): Likewise for param "insn".
2046
2047 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2048
2049 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2050 Strengthen param "insn" from rtx to rtx_insn *.
2051 * config/picochip/picochip.c (picochip_current_prescan_insn):
2052 Likewise for this variable.
2053 (picochip_final_prescan_insn): Likewise for param "insn".
2054
2055 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2056
2057 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2058 from rtx to rtx_insn *.
2059 (pa_output_indirect_call): Likewise.
2060 (pa_adjust_insn_length): Likewise.
2061 (pa_attr_length_millicode_call): Likewise.
2062 (pa_attr_length_call): Likewise.
2063 (pa_attr_length_indirect_call): Likewise.
2064
2065 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2066 "insn".
2067 (pa_attr_length_millicode_call): Likewise.
2068 (pa_attr_length_call): Likewise.
2069 (pa_output_call): Likewise.
2070 (pa_attr_length_indirect_call): Likewise.
2071 (pa_output_indirect_call): Likewise.
2072
2073 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2074
2075 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2076 Strengthen first param from rtx to rtx_insn *.
2077 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2078 param "insn".
2079
2080 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2081
2082 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2083 type from rtx to rtx_insn *.
2084 (mips_expand_call): Likewise.
2085 (mips_adjust_insn_length): Likewise for first param.
2086 (mips_output_conditional_branch): Likewise.
2087 (mips_output_order_conditional_branch): Likewise.
2088 (mips_final_prescan_insn): Likewise.
2089
2090 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2091 rtx_insn * for the SEQUENCE case.
2092 (SEQ_END): Likewise.
2093 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2094 (mips_emit_call_insn): Likewise, also for local "insn".
2095 (mips16_gp_pseudo_reg): Likewise for local "scan".
2096 (mips16_build_call_stub): Likewise for return type and for local
2097 "insn". Introduce a new local "pattern" so that "insn" can indeed
2098 be an insn.
2099 (mips_expand_call): Strengthen return type and local "insn" from
2100 rtx to rtx_insn *.
2101 (mips_block_move_loop): Strengthen local "label" from rtx to
2102 rtx_code_label *.
2103 (mips_expand_synci_loop): Likewise for locals "label",
2104 "end_label".
2105 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2106 rtx_insn *.
2107 (mips16e_collect_argument_saves): Likewise for locals "insn",
2108 "next".
2109 (mips_find_gp_ref): Likewise for param of callback for "pred"
2110 param, and for local "insn".
2111 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2112 (mips_insn_has_flexible_gp_ref_p): Likewise.
2113 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2114 local "insn".
2115 (mips_epilogue_set_cfa): Likewise for local "insn".
2116 (mips_expand_epilogue): Likewise.
2117 (mips_adjust_insn_length): Likewise for param "insn".
2118 (mips_output_conditional_branch): Likewise.
2119 (mips_output_order_conditional_branch): Likewise.
2120 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2121 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2122 "falu2_turn_enabled_insn".
2123 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2124 "done_label" from rtx to rtx_code_label *.
2125 (struct mips16_constant): Likewise for field "label".
2126 (mips16_add_constant): Likewise for return type.
2127 (mips16_emit_constants_1): Strengthen return type and param "insn"
2128 from rtx to rtx_insn *.
2129 (mips16_emit_constants): Likewise for param "insn".
2130 (mips16_insn_length): Likewise.
2131 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2132 to rtx_code_label *.
2133 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2134 from rtx to rtx_insn *.
2135 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2136 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2137 (r10k_simplify_address): Strengthen param "insn" and local
2138 "def_insn" from rtx to rtx_insn *.
2139 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2140 rtx_insn *.
2141 (r10k_needs_protection_p_1): Update target type of cast of data
2142 from to rtx to rtx_insn *.
2143 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2144 rtx * to rtx_insn **.
2145 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2146 rtx_insn *.
2147 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2148 (mips_call_expr_from_insn): Likewise for param "insn".
2149 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2150 (mips_find_pic_call_symbol): Likewise for param "insn".
2151 (mips_annotate_pic_calls): Likewise for local "insn".
2152 (mips_sim_insn): Likewise for this variable.
2153 (struct mips_sim): Likewise for field "insn" within elements of
2154 last_set array.
2155 (mips_sim_wait_reg): Likewise for param "insn".
2156 (mips_sim_wait_regs): Likewise.
2157 (mips_sim_wait_units): Likewise.
2158 (mips_sim_wait_insn): Likewise.
2159 (mips_sim_issue_insn): Likewise.
2160 (mips_sim_finish_insn): Likewise.
2161 (mips_seq_time): Likewise for param "seq" and local "insn".
2162 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2163 locals "first", "second".
2164 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2165 "last", "last2", "next".
2166 (mips_avoid_hazard): Likewise for params "after", "insn".
2167 (mips_reorg_process_insns): Likewise for locals "insn",
2168 "last_insn", "subinsn", "next_insn".
2169 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2170 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2171 "jump_sequence".
2172 (mips_output_mi_thunk): Likewise for local "insn".
2173 (mips_final_prescan_insn): Likewise for param "insn".
2174
2175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2176
2177 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2178 Strengthen return type and local "insns" from rtx to rtx_insn *.
2179 (microblaze_legitimize_tls_address): Likewise for local "insns".
2180 (microblaze_block_move_loop): Strengthen local "label" from rtx
2181 to rtx_code_label *.
2182 (microblaze_expand_prologue): Strengthen two locals named "insn"
2183 from rtx to rtx_insn *.
2184 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2185 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2186 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2187 to rtx_code_label *.
2188
2189 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2190
2191 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2192 param from rtx to rtx_insn *.
2193 (mep_reuse_lo): Likewise for third param.
2194 (mep_use_post_modify_p): Likewise for first param.
2195 (mep_core_address_length): Likewise.
2196 (mep_cop_address_length): Likewise.
2197 (mep_final_prescan_insn): Likewise.
2198 (mep_store_data_bypass_p): Likewise for both params.
2199 (mep_mul_hilo_bypass_p): Likewise.
2200 (mep_ipipe_ldc_p): Likewise for param.
2201
2202 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2203 (mep_rewrite_mult): Likewise.
2204 (mep_rewrite_mulsi3): Likewise.
2205 (mep_rewrite_maddsi3): Likewise.
2206 (mep_reuse_lo_p_1): Likewise.
2207 (mep_reuse_lo_p): Likewise.
2208 (mep_frame_expr): Likewise.
2209 (mep_make_parallel): Likewise for both params.
2210 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2211 local "insn".
2212 (mep_use_post_modify_p): Likewise for param "insn".
2213 (mep_core_address_length): Likewise.
2214 (mep_cop_address_length): Likewise.
2215 (mep_reg_set_in_function): Likewise for local "insn".
2216 (mep_asm_without_operands_p): Likewise.
2217 (F): Likewise for return type and param "x".
2218 (add_constant): Likewise for local "insn".
2219 (maybe_dead_move): Likewise for return type and local "insn".
2220 (mep_expand_prologue): Likewise for local "insn".
2221 (mep_final_prescan_insn): Likewise for param "insn".
2222 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2223 "next", "follow", "x".
2224 (mep_insert_repeat_label_last): Likewise for return type, param
2225 "last_insn", and locals "next", "prev". Strengthen param "label"
2226 from rtx to rtx_code_label *.
2227 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2228 rtx_insn *.
2229 (struct mep_doloop_end): Likewise for fields "insn" and
2230 "fallthrough".
2231 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2232 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2233 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2234 rtx_insn *.
2235 (mep_invert_branch): Likewise for params "insn" and "after".
2236 (mep_reorg_erepeat): Likewise for param "insns" and locals
2237 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2238 "l" from rtx to rtx_code_label *.
2239 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2240 from rtx to rtx_insn *.
2241 (mep_reorg_addcombine): Likewise for param "insns" and locals
2242 "i", "n".
2243 (add_sp_insn_p): Likewise for param "insn".
2244 (mep_reorg_noframe): Likewise for param "insns" and locals
2245 "start_frame_insn", "end_frame_insn", "next".
2246 (mep_reorg): Likewise for local "insns".
2247 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2248 cast.
2249 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2250 (mep_mul_hilo_bypass_p): Likewise.
2251 (mep_ipipe_ldc_p): Likewise for param "insn".
2252 (mep_make_bundle): Likewise for return type, param "cop" and local
2253 "insn", splitting out the latter into a new local "seq" for when it
2254 is a SEQUENCE rather than an insn.
2255 (core_insn_p): Likewise for param "insn".
2256 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2257 "last", "first", "note", "prev", "core_insn".
2258
2259 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2260
2261 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2262 rtx to rtx_insn *.
2263 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2264 (m68k_final_prescan_insn): Likewise for first param.
2265
2266 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2267 (m68k_set_frame_related): Likewise for param "insn".
2268 (output_btst): Likewise for param "insn".
2269 (m68k_final_prescan_insn): Likewise.
2270 (m68k_move_to_reg): Likewise for local "insn".
2271 (m68k_call_tls_get_addr): Likewise for local "insns".
2272 (m68k_call_m68k_read_tp): Likewise.
2273 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2274 (m68k_output_mi_thunk): Likewise for local "insn".
2275
2276 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2277
2278 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2279 first param from rtx to rtx_insn *.
2280 (iq2000_adjust_insn_length): Likewise.
2281 (iq2000_output_conditional_branch): Likewise.
2282 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2283 "insn" and local "nop_insn".
2284 (iq2000_annotate_frame_insn): Likewise for param "insn".
2285 (iq2000_expand_prologue): Likewise for both locals "insn".
2286 (iq2000_adjust_insn_length): Likewise for param "insn".
2287 (iq2000_output_conditional_branch): Likewise.
2288
2289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2290
2291 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2292 "insns" from rtx to rtx_insn *.
2293 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2294 (struct spill_fill_data): Likewise for field "init_after" and for
2295 elements of array field "prev_insn".
2296 (spill_restore_mem): Likewise for locals "insn", "first".
2297 (do_spill): Likewise for local "insn".
2298 (do_restore): Likewise.
2299 (ia64_expand_prologue): Likewise.
2300 (ia64_expand_epilogue): Likewise.
2301 (emit_insn_group_barriers): Likewise for locals "insn",
2302 "last_label".
2303 (emit_all_insn_group_barriers): Likewise for locals "insn",
2304 "last".
2305 (dfa_stop_insn): Likewise for this global.
2306 (dfa_pre_cycle_insn): Likewise.
2307 (ia64_nop): Likewise.
2308 (final_emit_insn_group_barriers): Likewise for locals "insn",
2309 "last".
2310 (emit_predicate_relation_info): Likewise for locals "head", "n",
2311 "insn", "b", "a".
2312 (ia64_reorg): Likewise for local "insn".
2313 (ia64_output_mi_thunk): Likewise.
2314 (expand_vec_perm_interleave_2): Likewise for local "seq".
2315
2316 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2317
2318 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2319 param 1 "insn" from rtx to rtx_insn *.
2320 (ix86_use_lea_for_mov): Likewise.
2321 (ix86_avoid_lea_for_addr): Likewise.
2322 (ix86_split_lea_for_addr): Likewise.
2323 (ix86_lea_for_add_ok): Likewise.
2324 (ix86_output_call_insn): Likewise.
2325
2326 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2327 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2328 (ix86_output_function_epilogue): Likewise for locals "insn",
2329 "deleted_debug_label".
2330 (legitimize_tls_address): Likewise for local "insn".
2331 (get_some_local_dynamic_name): Likewise.
2332 (increase_distance): Likewise for params "prev", "next".
2333 (distance_non_agu_define_in_bb): Likewise for params "insn",
2334 "start" and locals "prev", "next".
2335 (distance_non_agu_define): Likewise for param "insn".
2336 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2337 locals "next", "prev".
2338 (distance_agu_use): Likewise for param "insn".
2339 (ix86_lea_outperforms): Likewise.
2340 (ix86_ok_to_clobber_flags): Likewise.
2341 (ix86_avoid_lea_for_add): Likewise.
2342 (ix86_use_lea_for_mov): Likewise.
2343 (ix86_avoid_lea_for_addr): Likewise.
2344 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2345 (ix86_split_lea_for_addr): Likewise for param "insn".
2346 (ix86_lea_for_add_ok): Likewise for param "insn".
2347 (ix86_expand_carry_flag_compare): Likewise for local
2348 "compare_seq".
2349 (ix86_expand_int_movcc): Likewise.
2350 (ix86_output_call_insn): Likewise for param "insn".
2351 (ix86_output_call_insn): Likewise for local "i".
2352 (x86_output_mi_thunk): Introduce local "insn", using it in place
2353 of "tmp" when dealing with insns.
2354 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2355 "start".
2356 (ix86_pad_returns): Likewise for locals "ret", "prev".
2357 (ix86_count_insn_bb): Likewise for local "insn".
2358 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2359 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2360 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2361 (expand_vec_perm_interleave2): Likewise for local "seq".
2362 (expand_vec_perm_vperm2f128_vblend): Likewise.
2363 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2364 call to for_each_rtx with for_each_rtx_in_insn.
2365
2366 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2367
2368 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2369 "label" from rtx to rtx_code_label *.
2370 (ix86_expand_prologue): Likewise.
2371 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2372 "varargs_label".
2373 (ix86_split_idivmod): Likewise for locals "end_label" and
2374 "qimode_label".
2375 (ix86_expand_branch): Likewise for local "label2".
2376 (ix86_expand_aligntest): Likewise for return type and local "label".
2377 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2378 "top_label".
2379 (expand_movmem_epilogue): Likewise for the various locals named
2380 "label".
2381 (expand_setmem_epilogue): Likewise.
2382 (expand_small_movmem_or_setmem): Likewise for local "label".
2383 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2384 Strengthen param "done_label" from rtx * to rtx_code_label **.
2385 Strengthen locals "loop_label" and "label" from rtx to
2386 rtx_code_label *.
2387 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2388 Likewise for locals "loop_label", "label".
2389 (ix86_expand_set_or_movmem): Likewise for locals "label",
2390 "jump_around_label", "hot_label".
2391 (ix86_expand_strlensi_unroll_1): Likewise for locals
2392 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2393 "end_2_label".
2394 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2395 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2396 "label2", "jump_label".
2397 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2398 local "label".
2399 (ix86_expand_lfloorceil): Likewise for local "label".
2400 (ix86_expand_rint): Likewise.
2401 (ix86_expand_floorceildf_32): Likewise.
2402 (ix86_expand_floorceil): Likewise.
2403 (ix86_expand_rounddf_32): Likewise.
2404 (ix86_expand_trunc): Likewise.
2405 (ix86_expand_truncdf_32): Likewise.
2406 (ix86_expand_round): Likewise.
2407
2408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2409
2410 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2411 first param from rtx to rtx_insn *.
2412 (h8300_insn_length_from_table): Likewise.
2413 * config/h8300/h8300.c (F): Likewise for return type and param
2414 "x".
2415 (Fpa): Add a checked cast to rtx_insn *.
2416 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2417 rtx_insn *.
2418 (final_prescan_insn): Likewise for param "insn".
2419 (h8300_binary_length): Likewise.
2420 (h8300_insn_length_from_table): Likewise.
2421
2422 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2423
2424 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2425 Strengthen first param "insn" from rtx to rtx_insn *.
2426
2427 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2428 Likewise.
2429 (frame_insn): Likewise for return type. Introduce local "insn"
2430 for use in place of local "x" for use as an rtx_insn *.
2431 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2432 (epiphany_expand_prologue): Likewise for local "insn".
2433 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2434 * config/epiphany/resolve-sw-modes.c
2435 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2436 "seq".
2437
2438 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2439
2440 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2441 param from rtx to rtx_insn *.
2442 (c6x_final_prescan_insn): Likewise for first param.
2443
2444 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2445 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2446 (c6x_expand_compare): Strengthen local "insns" from rtx to
2447 rtx_insn *.
2448 (c6x_get_unit_specifier): Likewise for param "insn".
2449 (c6x_print_unit_specifier_field): Likewise.
2450 (c6x_final_prescan_insn): Likewise.
2451 (emit_add_sp_const): Likewise for local "insn".
2452 (c6x_expand_prologue): Likewise.
2453
2454 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2455
2456 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2457 param 1 from rtx to rtx_insn *.
2458 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2459 the various locals named "insn".
2460 (expand_epilogue_reg_restore): Likewise.
2461 (frame_related_constant_load): Likewise.
2462 (add_to_reg): Likewise.
2463 (emit_link_insn): Likewise.
2464 (do_link): Likewise.
2465 (expand_interrupt_handler_prologue): Likewise.
2466 (branch_dest): Likewise for param "branch".
2467 (asm_conditional_branch): Likewise for param "insn".
2468 (gen_one_bundle): Likewise for elements of param "slot" and local
2469 "t".
2470 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2471 elements of local "slot".
2472 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2473 "queue", "next_queue", "prev".
2474 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2475 (add_sched_insns_for_speculation): Likewise for local "insn".
2476
2477 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2478
2479 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2480 from rtx to rtx_insn *.
2481 (output_movhi): Likewise.
2482 (output_movsisf): Likewise.
2483 (avr_out_tstsi): Likewise.
2484 (avr_out_tsthi): Likewise.
2485 (avr_out_tstpsi): Likewise.
2486 (avr_out_compare): Likewise.
2487 (avr_out_compare64): Likewise.
2488 (avr_out_movpsi): Likewise.
2489 (ashlqi3_out): Likewise.
2490 (ashlhi3_out): Likewise.
2491 (ashlsi3_out): Likewise.
2492 (ashrqi3_out): Likewise.
2493 (ashrhi3_out): Likewise.
2494 (ashrsi3_out): Likewise.
2495 (lshrqi3_out): Likewise.
2496 (lshrhi3_out): Likewise.
2497 (lshrsi3_out): Likewise.
2498 (avr_out_ashlpsi3): Likewise.
2499 (avr_out_ashrpsi3): Likewise.
2500 (avr_out_lshrpsi3): Likewise.
2501 (avr_out_fract): Likewise.
2502 (avr_out_sbxx_branch): Likewise.
2503 (avr_out_round): Likewise.
2504 (avr_out_xload): Likewise.
2505 (avr_out_movmem): Likewise.
2506 (adjust_insn_length): Likewise.
2507 (avr_out_lpm): Likewise.
2508 (reg_unused_after): Likewise.
2509 (_reg_unused_after): Likewise.
2510 (avr_jump_mode): Likewise for second param.
2511 (jump_over_one_insn): Likewise for first param.
2512 (avr_final_prescan_insn): Likewise.
2513 (out_shift_with_cnt): Likewise for second param.
2514
2515 * config/avr/avr.c (get_sequence_length): Likewise for param
2516 "insns" and local "insn".
2517 (emit_push_byte): Likewise for local "insn".
2518 (emit_push_sfr): Likewise.
2519 (avr_prologue_setup_frame): Likewise for locals "insn",
2520 "fp_plus_insns", "sp_plus_insns".
2521 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2522 "sp_plus_insns".
2523 (avr_jump_mode): Likewise for param "insn".
2524 (avr_final_prescan_insn): Likewise.
2525 (avr_find_unused_d_reg): Likewise.
2526 (avr_out_lpm_no_lpmx): Likewise.
2527 (avr_out_lpm): Likewise.
2528 (avr_out_xload): Likewise.
2529 (output_movqi): Likewise.
2530 (output_movhi): Likewise.
2531 (out_movqi_r_mr): Likewise.
2532 (out_movhi_r_mr): Likewise.
2533 (out_movsi_r_mr): Likewise.
2534 (out_movsi_mr_r): Likewise.
2535 (output_movsisf): Likewise.
2536 (avr_out_load_psi): Likewise.
2537 (avr_out_store_psi): Likewise.
2538 (avr_out_movpsi): Likewise.
2539 (out_movqi_mr_r): Likewise.
2540 (avr_out_movhi_mr_r_xmega): Likewise.
2541 (out_movhi_mr_r): Likewise.
2542 (compare_condition): Likewise for param "insn" and local "next".
2543 (compare_sign_p): Likewise for param "insn".
2544 (compare_diff_p): Likewise.
2545 (compare_eq_p): Likewise.
2546 (avr_out_compare): Likewise.
2547 (avr_out_compare64): Likewise.
2548 (avr_out_tsthi): Likewise.
2549 (avr_out_tstpsi): Likewise.
2550 (avr_out_tstsi): Likewise.
2551 (out_shift_with_cnt): Likewise.
2552 (ashlqi3_out): Likewise.
2553 (ashlhi3_out): Likewise.
2554 (avr_out_ashlpsi3): Likewise.
2555 (ashlsi3_out): Likewise.
2556 (ashrqi3_out): Likewise.
2557 (ashrhi3_out): Likewise.
2558 (avr_out_ashrpsi3): Likewise.
2559 (ashrsi3_out): Likewise.
2560 (lshrqi3_out): Likewise.
2561 (lshrhi3_out): Likewise.
2562 (avr_out_lshrpsi3): Likewise.
2563 (lshrsi3_out): Likewise.
2564 (avr_out_fract): Likewise.
2565 (avr_out_round): Likewise.
2566 (avr_adjust_insn_length): Likewise.
2567 (reg_unused_after): Likewise.
2568 (_reg_unused_after): Likewise.
2569 (avr_compare_pattern): Likewise.
2570 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2571 and locals "branch1", "branch2", "insn2", "jump".
2572 (avr_reorg): Likewise for local "insn".
2573 (avr_2word_insn_p): Likewise for param "insn".
2574 (jump_over_one_insn_p): Likewise.
2575 (avr_out_sbxx_branch): Likewise.
2576 (avr_out_movmem): Likewise.
2577
2578 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2579
2580 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2581 param from rtx to rtx_insn *.
2582 (thumb1_final_prescan_insn): Likewise.
2583 (thumb2_final_prescan_insn): Likewise.
2584
2585 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2586 rtx to rtx_insn *.
2587 (struct minipool_node): Likewise for field "insn".
2588 (dump_minipool): Likewise for param "scan".
2589 (create_fix_barrier): Likewise for local "from". Strengthen local
2590 "label" from rtx to rtx_code_label *.
2591 (push_minipool_barrier): Strengthen param "insn" from rtx to
2592 rtx_insn *.
2593 (push_minipool_fix): Likewise.
2594 (note_invalid_constants): Likewise.
2595 (thumb2_reorg): Likewise for local "insn".
2596 (arm_reorg): Likewise.
2597 (thumb2_final_prescan_insn): Likewise for param
2598 "insn" and local "first_insn".
2599 (arm_final_prescan_insn): Likewise for param "insn" and locals
2600 "start_insn", "this_insn".
2601 (arm_debugger_arg_offset): Likewise for param "insn".
2602 (thumb1_emit_multi_reg_push): Likewise for return type and local
2603 "insn".
2604 (thumb1_final_prescan_insn): Likewise for param "insn".
2605 (thumb_far_jump_used_p): Likewise for local "insn".
2606 (thumb1_expand_prologue): Likewise.
2607 (arm_expand_epilogue_apcs_frame): Likewise.
2608 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2609 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2610 from rtx to rtx_code_label *.
2611 (arm_split_atomic_op): Likewise for local "label".
2612 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2613
2614 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2615
2616 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2617 first param from rtx to rtx_insn *.
2618 (arc_verify_short): Likewise.
2619 (arc_short_long): Likewise.
2620 (arc_need_delay): Likewise.
2621
2622 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2623 "target_insn".
2624 (arc_ccfsm_advance): Likewise for param "insn" and locals
2625 "start_insn", "this_insn".
2626 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2627 (arc_ccfsm_post_advance): Likewise for param "insn".
2628 (arc_next_active_insn): Likewise for return type and param "insn".
2629 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2630 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2631 (output_short_suffix): Likewise for local "insn".
2632 (arc_final_prescan_insn): Likewise for param "insn". Remove
2633 now-redundant checked cast.
2634 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2635 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2636 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2637 for use where lc_set became an insn.
2638 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2639 rtx to rtx_insn *.
2640 (arc_get_insn_variants): Likewise for local "prev".
2641 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2642 "next".
2643 (arc_predicate_delay_insns): Likewise for local "insn".
2644 (arc_pad_return): Likewise for local "prev". For now, add a
2645 checked cast when extracting the insn from "final_sequence".
2646 (arc_short_long): Likewise for param "insn".
2647 (arc_need_delay): Likewise for param "insn" and local "next".
2648 (arc_label_align): Likewise for locals "prev", "next".
2649
2650 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2651
2652 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2653 "insn" from rtx to rtx_insn *.
2654 (alpha_gp_save_rtx): Likewise for local "seq".
2655 (alpha_instantiate_decls): Likewise for local "top".
2656 (get_some_local_dynamic_name): Likewise for local "insn".
2657 (alpha_does_function_need_gp): Likewise.
2658 (set_frame_related_p): Likewise for return type and for locals
2659 "seq" and "insn".
2660 (emit_frame_store_1): Likewise for local "insn".
2661 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2662 (alpha_end_function): Likewise for local "insn".
2663 (alpha_output_mi_thunk_osf): Likewise.
2664 (alphaev4_insn_pipe): Likewise for param "insn".
2665 (alphaev5_insn_pipe): Likewise.
2666 (alphaev4_next_group): Likewise for return type and param 1
2667 "insn".
2668 (alphaev5_next_group): Likewise.
2669 (alpha_align_insns_1): Likewise for return type and param 1 of
2670 callback param "next_group", and for locals "i", "next", "prev",
2671 "where", "where2", "insn".
2672
2673 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2674
2675 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2676 rather than modifying the stmt.
2677
2678 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2679
2680 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2681 cgraph_state conversion.
2682
2683 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2684
2685 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2686 Strengthen local "insns" from rtx to rtx_insn *.
2687 (aarch64_set_frame_expr): Likewise for local "insn".
2688 (aarch64_save_or_restore_fprs): Likewise.
2689 (aarch64_save_or_restore_callee_save_registers): Likewise.
2690 (aarch64_expand_prologue): Likewise.
2691 (aarch64_expand_epilogue): Likewise.
2692 (aarch64_output_mi_thunk): Likewise.
2693 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2694 "label2" from rtx to rtx_code_label *.
2695 (aarch64_split_atomic_op): Likewise for local "label".
2696
2697 2014-08-25 Martin Liska <mliska@suse.cz>
2698
2699 * cgraph.h (symtab_node):
2700 (bool needed_p (void)): created from decide_is_symbol_needed
2701 (bool referred_to_p (void)): created from referred_to_p
2702 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2703 * cgraph.h (cgraph_node):
2704 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2705 (void expand (void)): created from expand_function
2706 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2707 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2708 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2709 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2710 * cgraph.h (varpool_node):
2711 (static void add (tree decl): created from varpool_add_new_variable
2712 * cgraph.h (cgraph_edge):
2713 void remove (void);
2714 (void remove_caller (void)): created from cgraph_edge_remove_caller
2715 (void remove_callee (void)): created from cgraph_edge_remove_callee
2716 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2717 created from cgraph_set_call_stmt
2718 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2719 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2720 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2721 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2722 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2723 created from cgraph_speculative_call_info
2724 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2725 int freq_scale, bool update_original)): created from cgraph_clone_edge
2726 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2727 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2728 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2729 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2730 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2731 (static void rebuild_references (void)): created from cgraph_rebuild_references
2732 * cgraph.h (symbol_table):
2733 (create_reference): renamed from add_reference
2734 (maybe_create_reference): renamed from maybe_add_reference
2735 (void register_symbol (symtab_node *node)): new function
2736 (void clear_asm_symbols (void)): new function
2737 (void unregister (symtab_node *node)): new function
2738 (void release_symbol (cgraph_node *node, int uid)): new function
2739 (cgraph_node * allocate_cgraph_symbol (void)): new function
2740 (void initialize (void)): created from cgraph_init
2741 (symtab_node *first_symbol (void)):new function
2742 (asm_node *first_asm_symbol (void)):new function
2743 (symtab_node *first_defined_symbol (void)):new function
2744 (varpool_node *first_variable (void)):new function
2745 (varpool_node *next_variable (varpool_node *node)):new function
2746 (varpool_node *first_static_initializer (void)):new function
2747 (varpool_node *next_static_initializer (varpool_node *node)):new function
2748 (varpool_node *first_defined_variable (void)):new function
2749 (varpool_node *next_defined_variable (varpool_node *node)):new function
2750 (cgraph_node *first_defined_function (void)):new function
2751 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2752 (cgraph_node *first_function (void)):new function
2753 (cgraph_node *next_function (cgraph_node *node)):new function
2754 (cgraph_node *first_function_with_gimple_body (void)):new function
2755 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2756 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2757 created from symtab_remove_unreachable_nodes
2758 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2759 (void process_new_functions (void)): created from cgraph_process_new_functions
2760 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2761 (bool output_variables (void)): created from varpool_node::output_variables
2762 (void output_asm_statements (void)): created from output_asm_statements
2763 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2764 (void compile (void)): created from compile
2765 (void output_weakrefs (void)): created from output_weakrefs
2766 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2767 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2768 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2769 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2770 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2771 created from cgraph_next_function_with_gimple_body
2772 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2773 created from cgraph_remove_edge_removal_hook
2774 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2775 created from cgraph_add_node_removal_hook
2776 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2777 created from cgraph_remove_node_removal_hook
2778 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2779 created from varpool_add_node_removal_hook
2780 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2781 created from varpool_remove_node_removal_hook
2782 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2783 created from cgraph_add_function_insertion_hook
2784 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2785 created from cgraph_remove_function_insertion_hook
2786 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2787 created from varpool_add_variable_insertion_hook
2788 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2789 created from varpool_remove_variable_insertion_hook
2790 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2791 created from cgraph_add_edge_duplication_hook
2792 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2793 created from cgraph_remove_edge_duplication_hook
2794 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2795 created from cgraph_add_node_duplication_hook
2796 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2797 created from cgraph_remove_node_duplication_hook
2798 (void call_edge_removal_hooks (cgraph_edge *e)):
2799 created from cgraph_call_edge_removal_hooks
2800 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2801 created from call_function_insertion_hooks
2802 (void call_cgraph_removal_hooks (cgraph_node *node)):
2803 created from cgraph_call_node_removal_hooks
2804 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2805 created from cgraph_node::call_duplication_hooks
2806 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2807 created from cgraph_call_edge_duplication_hooks
2808 (void call_varpool_removal_hooks (varpool_node *node)):
2809 created from varpool_call_node_removal_hooks
2810 (void call_varpool_insertion_hooks (varpool_node *node)):
2811 created from varpool_call_variable_insertion_hooks
2812 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2813 created from insert_to_assembler_name_hash
2814 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2815 created from unlink_from_assembler_name_hash
2816 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2817 created from symtab_prevail_in_asm_name_hash
2818 (void symtab_initialize_asm_name_hash (void)):
2819 created from symtab_initialize_asm_name_hash
2820 (void change_decl_assembler_name (tree decl, tree name)):
2821 created from change_decl_assembler_name
2822 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2823 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2824 created from decl_assembler_name_hash
2825 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2826 created from decl_assembler_name_equal
2827 (static hashval_t hash_node_by_assembler_name (const void *p)):
2828 created from hash_node_by_assembler_name
2829 (static int eq_assembler_name (const void *p1, const void *p2)):
2830 created from eq_assembler_name
2831
2832 2014-08-25 Marek Polacek <polacek@redhat.com>
2833
2834 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2835
2836 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2837
2838 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2839 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2840 SWI1248_AVX512BW mode iterator.
2841
2842 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2843
2844 PR target/62111
2845 * config/sh/predicates.md (general_extend_operand): Disable
2846 TRUNCATE before reload completes.
2847
2848 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2849
2850 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2851
2852 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2853
2854 PR target/61996
2855 * config/sh/sh.opt (musermode): Allow negative form.
2856 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2857 targets that don't support it.
2858 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2859 Document -mno-usermode option.
2860
2861 2014-08-24 Kito Cheng <kito@0xlab.org>
2862
2863 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2864 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2865 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2866 * doc/tm.texi: Regenerate.
2867
2868 2014-08-24 Kito Cheng <kito@0xlab.org>
2869
2870 * ira.c: Fix typo in comment.
2871
2872 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2873
2874 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2875 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2876
2877 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2878
2879 PR target/62038
2880 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2881 last_address when the current function is a thunk.
2882 (pa_asm_output_mi_thunk): When we don't have named sections or they
2883 are not being used, check that thunk can reach the stub table with a
2884 short branch.
2885
2886 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2887
2888 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2889 rtx_insn *.
2890 (pass_web::execute): Likewise for local "insn".
2891
2892 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2893
2894 * var-tracking.c (struct micro_operation_def): Strengthen field
2895 "insn" from rtx to rtx_insn *.
2896 (struct emit_note_data_def): Likewise.
2897 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2898 (vt_stack_adjustments): Likewise for local "insn".
2899 (adjust_insn): Likewise for param "insn".
2900 (val_store): Likewise.
2901 (val_resolve): Likewise.
2902 (struct count_use_info): Likewise for field "insn".
2903 (log_op_type): Likewise for param "insn".
2904 (reverse_op): Likewise.
2905 (prepare_call_arguments): Likewise.
2906 (add_with_sets): The initial param takes an insn, but we can't
2907 yet strengthen it from rtx to rtx_insn * since it's used as a
2908 cselib_record_sets_hook callback. For now rename initial param
2909 from "insn" to "uncast_insn", and introduce a local "insn" of
2910 the stronger rtx_insn * type, with a checked cast.
2911 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2912 rtx_insn *.
2913 (emit_note_insn_var_location): Likewise.
2914 (emit_notes_for_changes): Likewise.
2915 (emit_notes_for_differences): Likewise.
2916 (next_non_note_insn_var_location): Likewise for return type and
2917 for param "insn".
2918 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2919 (vt_initialize): Likewise for local "insn".
2920 (delete_debug_insns): Likewise for locals "insn" and "next".
2921
2922 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2923
2924 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2925 rtx_insn *.
2926 (mark_constant_pool): Likewise for local "insn".
2927
2928 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2929
2930 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2931 rtx to rtx_insn *.
2932 (dead_debug_promote_uses): Likewise.
2933 (dead_debug_insert_temp): Likewise.
2934
2935 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2936
2937 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2938 from const_rtx to const rtx_insn *.
2939 (store_killed_after): Likewise. Strengthen locals "last", "act"
2940 from rtx to rtx_insn *.
2941 (store_killed_before): Strengthen param "insn" from const_rtx to
2942 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2943 (find_moveable_store): Strengthen param "insn" from rtx to
2944 rtx_insn *.
2945 (compute_store_table): Likewise for local "insn".
2946 (insert_insn_start_basic_block): Likewise for param "insn" and
2947 locals "prev", "before", "insn".
2948 (insert_store): For now, add a checked cast to rtx_insn * on the
2949 result of gen_move_insn.
2950 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
2951 to rtx_insn *.
2952 (replace_store_insn): Likewise. For now, add a checked cast to
2953 rtx_insn * on the result of gen_move_insn.
2954
2955 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2956
2957 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
2958 rtx_insn *.
2959 (expand_sjlj_dispatch_table): Likewise.
2960
2961 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2962
2963 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
2964 "insn" from rtx to rtx_insn *.
2965
2966 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2967
2968 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
2969 "insn" from rtx to rtx_insn *.
2970 (dup_block_and_redirect): Likewise for param 3 "before".
2971
2972 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
2973 from rtx to rtx_insn *.
2974 (move_insn_for_shrink_wrap): Likewise.
2975 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
2976 (dup_block_and_redirect): Likewise for param "before" and local
2977 "insn".
2978 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
2979 "end".
2980 (convert_to_simple_return): Likewise for local "start".
2981
2982 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
2983 Strengthen local "insn" from rtx to rtx_insn *, for use when
2984 invoking requires_stack_frame_p.
2985
2986 2014-08-22 David Malcolm <dmalcolm@redhat.com>
2987
2988 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
2989 rtx_insn *.
2990 (speculate_expr): Likewise for locals "orig_insn_rtx",
2991 "spec_insn_rtx".
2992 (eq_transformed_insns): Likewise for locals "i1", "i2".
2993 (check_for_new_jump): Likewise for return type and local "end".
2994 (find_new_jump): Likewise for return type and local "jump".
2995 (sel_split_edge): Likewise for local "jump".
2996 (sel_create_recovery_block): Likewise.
2997 (sel_redirect_edge_and_branch_force): Likewise.
2998 (sel_redirect_edge_and_branch): Likewise.
2999
3000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3001
3002 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3003 "new_insn" from rtx to rtx_insn *.
3004 (create_insn_rtx_with_rhs): Likewise for return type and for local
3005 "insn_rtx".
3006 (create_insn_rtx_with_lhs): Likewise.
3007 (create_speculation_check): Likewise for local "insn_rtx".
3008 (implicit_clobber_conflict_p): Likewise for local "insn".
3009 (get_expr_cost): Likewise.
3010 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3011 (move_cond_jump): Likewise for locals "next", "prev", "link",
3012 "head", "from", "to".
3013
3014 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3015
3016 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3017 "next" from rtx to rtx_insn *.
3018 (find_conditional_protection): Likewise for local "next".
3019 (is_conditionally_protected): Likewise for local "insn1".
3020 (is_pfree): Likewise for locals "insn1", "insn2".
3021
3022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3023
3024 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3025 from rtx to rtx_insn *.
3026
3027 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3028 locals "insn1", "insn2" from rtx to rtx_insn *.
3029 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3030 locals "insn", "prev", "last_jump", "next_tail".
3031 (schedule_ebb): Likewise for params "head", "tail".
3032 (schedule_ebbs): Likewise for locals "tail", "head".
3033
3034 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3035 to rtx_insn on "last_insn" in one of the invocations of
3036 schedule_ebb.
3037
3038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3039
3040 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3041 "elem", "insn" from rtx to rtx_insn *.
3042 (change_spec_dep_to_hard): Likewise.
3043 (get_back_and_forw_lists): Likewise for local "con".
3044 (sd_add_dep): Likewise for locals "elem", "insn".
3045 (sd_resolve_dep): Likewise for locals "pro", "con".
3046 (sd_unresolve_dep): Likewise.
3047 (sd_delete_dep): Likewise.
3048 (chain_to_prev_insn): Likewise for local "pro".
3049 (find_inc): Likewise for locals "pro", "con".
3050
3051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3052
3053 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3054 to rtx_insn *.
3055 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3056 const rtx_insn *.
3057 (modified_between_p): Strengthen local "insn" from rtx to
3058 rtx_insn *.
3059 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3060 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3061 const rtx_insn *.
3062
3063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3064
3065 * resource.c (next_insn_no_annul): Strengthen local "next" from
3066 rtx to rtx_insn *.
3067 (mark_referenced_resources): Likewise for local "insn".
3068
3069 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3070
3071 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3072 to rtx_insn *.
3073 (find_reloads): Likewise for param 1.
3074 (subst_reloads): Likewise for sole param.
3075 (find_equiv_reg): Likwise for param 2.
3076 (regno_clobbered_p): Likwise for param 2.
3077 (reload): Likewise for param 1.
3078
3079 * caller-save.c (save_call_clobbered_regs): Strengthen local
3080 "insn" from rtx to rtx_insn *.
3081 (insert_one_insn): Likewise for local "insn".
3082
3083 * reload.c (this_insn): Likewise for this global.
3084 (find_reloads): Likewise for param "insn".
3085 (find_reloads_toplev): Likewise.
3086 (find_reloads_address): Likewise.
3087 (subst_reg_equivs): Likewise.
3088 (update_auto_inc_notes): Likewise.
3089 (find_reloads_address_1): Likewise.
3090 (find_reloads_subreg_address): Likewise.
3091 (subst_reloads): Likewise.
3092 (find_equiv_reg): Likewise, also for local "p".
3093 (regno_clobbered_p): Likewise for param "insn".
3094
3095 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3096 array.
3097 (spill_reg_store): Likewise for the elements of this array.
3098 (remove_init_insns): Likewise for local "equiv_insn".
3099 (will_delete_init_insn_p): Likewise for param "insn".
3100 (reload): Likewise for param ""first" and local "insn".
3101 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3102 rtx_insn *.
3103 (calculate_elim_costs_all_insns): Likewise.
3104 (delete_caller_save_insns): Likewise.
3105 (spill_failure): Likewise for param "insn".
3106 (delete_dead_insn): Likewise.
3107 (set_label_offsets): Likewise.
3108 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3109 "prev_insn".
3110 (elimination_costs_in_insn): Likewise for param "insn".
3111 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3112 when referring to an insn.
3113 (set_initial_label_offsets): Likewise.
3114 (set_offsets_for_label): Strengthen param "insn" from rtx to
3115 rtx_insn *.
3116 (init_eliminable_invariants): Likewise for param "first" and local
3117 "insn".
3118 (fixup_eh_region_note): Likewise for param "insn".
3119 (reload_as_needed): Likewise for locals "prev", "insn",
3120 "old_next", "old_prev", "next".
3121 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3122 "last".
3123 (reload_inheritance_insn): Strengthen elements of this array from
3124 rtx to rtx_insn *.
3125 (failed_reload): Likewise for param "insn".
3126 (choose_reload_regs): Likewise for local "insn". Replace use of
3127 NULL_RTX with NULL when referring to an insn.
3128 (input_reload_insns): Strengthen elements of this array from rtx
3129 to rtx_insn *.
3130 (other_input_address_reload_insns): Likewise for this global.
3131 (other_input_reload_insns): Likewise for this global.
3132 (input_address_reload_insns): Likwise for the elements of this
3133 array.
3134 (inpaddr_address_reload_insns): Likwise for the elements of this
3135 array.
3136 (output_reload_insns): Likewise for the elements of this array.
3137 (output_address_reload_insns): Likewise for the elements of this
3138 array.
3139 (outaddr_address_reload_insns): Likewise for the elements of this
3140 array.
3141 (operand_reload_insns): Likewise for this global.
3142 (other_operand_reload_insns): Likewise for this global.
3143 (other_output_reload_insns): Likewise for the elements of this
3144 array.
3145 (new_spill_reg_store): Likewise for the elements of this
3146 array.
3147 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3148 Strengthen local "where" from rtx * to rtx_insn **.
3149 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3150 from rtx to rtx_insn *.
3151 (do_input_reload): Likewise for local "insn".
3152 (do_output_reload): Likewise for local "insn".
3153 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3154 (emit_insn_if_valid_for_reload): Likewise for return type and local
3155 "last". Add checked cast to rtx_insn when returning "insn" since
3156 this has been through emit_insn.
3157 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3158 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3159 returning "insn" since it's been through
3160 emit_insn_if_valid_for_reload at this point.
3161 (delete_output_reload): Strengthen param "insn" and locals
3162 "output_reload_insn", "i2" from rtx to rtx_insn *.
3163 (delete_address_reloads): Likewise for params "dead_insn",
3164 "current_insn" and locals "prev", "next".
3165 (delete_address_reloads_1): Likewise for params "dead_insn",
3166 "current_insn" and locals "prev", "i2".
3167 (inc_for_reload): Likewise for locals "last", "add_insn".
3168 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3169 rtx_insn *.
3170
3171 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3172 param of this duplicate of the prototype from reload.h
3173
3174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3175
3176 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3177 rtx to rtx_insn *.
3178 (regstat_bb_compute_calls_crossed): Likewise.
3179
3180 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3181
3182 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3183 to rtx_insn *.
3184 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3185 with an insn.
3186 (regrename_analyze): Strengthen local "insn" from rtx to
3187 rtx_insn *.
3188 (scan_rtx_reg): Likewise for param "insn".
3189 (scan_rtx_address): Likewise.
3190 (scan_rtx): Likewise.
3191 (restore_operands): Likewise.
3192 (record_out_operands): Likewise.
3193 (build_def_use): Likewise for local "insn". Replace use of
3194 NULL_RTX with NULL when dealing with an insn.
3195
3196 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3197
3198 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3199 * reginfo.c (reg_scan): Likewise, also for local "insn".
3200 (reg_scan_mark_refs): Likewise for param "insn".
3201 (init_subregs_of_mode): Likewise for local "insn".
3202
3203 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3204
3205 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3206 "insn" from rtx to rtx_insn *.
3207 (replace_oldest_value_reg): Likewise for param "insn".
3208 (replace_oldest_value_addr): Likewise.
3209 (replace_oldest_value_mem): Likewise.
3210 (apply_debug_insn_changes): Likewise for local "last_insn".
3211 (copyprop_hardreg_forward_1): Likewise for local "insn".
3212
3213 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3214
3215 * reg-stack.c (next_flags_user): Strengthen return type and param
3216 "insn" from rtx to rtx_insn *.
3217 (straighten_stack): Likewise for param "insn".
3218 (check_asm_stack_operands): Likewise.
3219 (remove_regno_note): Likewise.
3220 (emit_pop_insn): Likewise for return type, param "insn", local
3221 "pop_insn".
3222 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3223 "limit" from rtx to rtx_insn *.
3224 (swap_to_top): Likewise for param "insn".
3225 (move_for_stack_reg): Likewise.
3226 (move_nan_for_stack_reg): Likewise.
3227 (swap_rtx_condition): Likewise.
3228 (compare_for_stack_reg): Likewise.
3229 (subst_all_stack_regs_in_debug_insn): Likewise.
3230 (subst_stack_regs_pat): Likewise, and local "insn2".
3231 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3232 rtx_insn *.
3233 (subst_stack_regs): Likewise.
3234 (change_stack): Likewise.
3235 (convert_regs_1): Likewise for locals "insn", "next".
3236
3237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3238
3239 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3240 rtx_insn *.
3241 (combine_set_extension): Likewise for param "curr_insn".
3242 (transform_ifelse): Likewise for param "def_insn".
3243 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3244 from vec<rtx> * to vec<rtx_insn *> *.
3245 (is_cond_copy_insn): Likewise for param "insn".
3246 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3247 to vec<rtx_insn *>.
3248 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3249 local "def_insn" from rtx to rtx_insn *.
3250 (get_sub_rtx): Likewise for param "def_insn".
3251 (merge_def_and_ext): Likewise.
3252 (combine_reaching_defs): Likewise.
3253 (add_removable_extension): Likewise for param "insn".
3254 (find_removable_extensions): Likewise for local "insn".
3255 (find_and_remove_re): Likewise for locals "curr_insn" and
3256 "def_insn". Strengthen locals "reinsn_del_list" and
3257 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3258
3259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3260
3261 * recog.c (split_insn): Strengthen param "insn" and locals
3262 "first", "last" from rtx to rtx_insn *.
3263 (split_all_insns): Likewise for locals "insn", "next".
3264 (split_all_insns_noflow): Likewise.
3265
3266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3267
3268 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3269 const rtx_insn *.
3270 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3271 (debug_rtx_find): Likewise for param 1 "x".
3272
3273 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3274 const_rtx to const rtx_insn *. Likewise for local "insn".
3275 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3276 (debug_rtx_find): Likewise for param 1 "x".
3277 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3278 from const_rtx to const rtx_insn * within the appropriate cases of
3279 the switch statement.
3280
3281 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3282 Strengthen local "insns" from rtx to rtx_insn * since this is
3283 passed to a call to debug_rtx_list.
3284
3285 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3286
3287 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3288 to rtx_insn *.
3289
3290 * function.c (stack_protect_epilogue): Add checked cast to
3291 rtx_insn for now when invoking predict_insn_def.
3292
3293 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3294 rtx_insn *.
3295 (predict_insn_def): Likewise.
3296 (rtl_predict_edge): Likewise for local "last_insn".
3297 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3298 const rtx_insn *.
3299 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3300 to rtx_insn *.
3301 (bb_estimate_probability_locally): Likewise for local "last_insn".
3302 (expensive_function_p): Likewise for local "insn".
3303
3304 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3305 local "jmp", since this is used when invoking predict_insn_def.
3306
3307 2014-08-22 Marek Polacek <polacek@redhat.com>
3308
3309 PR c++/62199
3310 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3311
3312 2014-08-22 Marek Polacek <polacek@redhat.com>
3313
3314 PR c/61271
3315 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3316 a comparison in parens.
3317 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3318 in parens.
3319
3320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3321
3322 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3323 rtx_insn *.
3324
3325 * cprop.c (fis_get_condition): Likewise.
3326
3327 * postreload.c (reload_cse_regs): Likewise for param "first".
3328 (reload_cse_simplify): Likewise for param "insn".
3329 (reload_cse_regs_1): Likewise for local "insn".
3330 (reload_cse_simplify_set): Likewise for param "insn".
3331 (reload_cse_simplify_operands): Likewise.
3332 (struct reg_use): Likewise for field "insn".
3333 (reload_combine_purge_insn_uses): Likewise for param "insn".
3334 (fixup_debug_insns): Likewise for params "from", "to" and local
3335 "insn".
3336 (try_replace_in_use): Likewise for local "use_insn".
3337 (reload_combine_recognize_const_pattern): Likewise for param
3338 "insn" and locals "add_moved_after_insn", "use_insn".
3339 (reload_combine_recognize_pattern): Likewise for param "insn" and
3340 local "prev".
3341 (reload_combine): Likewise for locals "insn", "prev".
3342 (reload_combine_note_use): Likewise for param "insn".
3343 (move2add_use_add2_insn): Likewise.
3344 (move2add_use_add3_insn): Likewise.
3345 (reload_cse_move2add): Likewise, also for local "next".
3346 (move2add_note_store): Likewise for local "insn".
3347
3348 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3349
3350 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3351 rtx to rtx_insn *.
3352 (struct unoccr): Likewise.
3353 (struct modifies_mem): Likewise.
3354 (alloc_mem): Likewise for local "insn".
3355 (insert_expr_in_table): Likewise for param "insn".
3356 (dump_expr_hash_table_entry): Likewise for local "insn".
3357 (oprs_unchanged_p): Likewise for param "insn".
3358 (load_killed_in_block_p): Likewise for local "setter".
3359 (record_last_reg_set_info): Likewise for param "insn".
3360 (record_last_reg_set_info_regno): Likewise.
3361 (record_last_mem_set_info): Likewise.
3362 (record_last_set_info): Likewise for local "last_set_insn".
3363 (record_opr_changes): Likewise for param "insn".
3364 (hash_scan_set): Likewise.
3365 (compute_hash_table): Likewise for local "insn".
3366 (get_avail_load_store_reg): Likewise for param "insn".
3367 (eliminate_partially_redundant_load): Likewise, also for locals
3368 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3369 RTX for insns.
3370 (eliminate_partially_redundant_loads): Likewise for local "insn".
3371
3372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3373
3374 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3375 rtx to rtx_insn *.
3376 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3377 (expand_twoval_unop): Likewise for locals entry_last", "last".
3378 (expand_twoval_binop): Likewise.
3379 (expand_twoval_binop_libfunc): Likewise for local "insns".
3380 (widen_leading): Likewise for local "last".
3381 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3382 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3383 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3384 (expand_parity): Likewise for locals "last" and "seq".
3385 (expand_ffs): Likewise for local "seq". Strengthen local
3386 "nonzero_label" from rtx to rtx_code_label *.
3387 (expand_absneg_bit): Strengthen local "insns" from rtx to
3388 rtx_insn *.
3389 (expand_unop_direct): Likewise for local "last".
3390 (expand_unop): Likewise for locals "last", "insns".
3391 (expand_abs_nojump): Likewise for local "last".
3392 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3393 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3394 rtx_insn *.
3395 (expand_copysign_absneg): Strengthen local "label" from rtx to
3396 rtx_code_label *.
3397 (expand_copysign_bit): Strengthen local "insns" from rtx to
3398 rtx_insn *.
3399 (struct no_conflict_data): Likewise for fields "first", "insn".
3400 (emit_libcall_block_1): Likewise for param "insns" and locals
3401 "next", "last", "insn".
3402 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3403 on "insns" when invoking emit_libcall_block_1. Ultimately we
3404 want to strengthen insns itself.
3405 (prepare_cmp_insn): Strengthen local "last" from rtx to
3406 rtx_insn *.
3407 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3408 (prepare_float_lib_cmp): Likewise for local "insns".
3409 (emit_conditional_move): Likewise for local "last".
3410 (emit_conditional_add): Likewise.
3411 (have_sub2_insn): Likewise for local "seq".
3412 (expand_float): Likewise for local "insns". Strengthen locals
3413 "label", "neglabel" from rtx to rtx_code_label *.
3414 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3415 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3416 (expand_fixed_convert): Likewise for local "insns" (to
3417 rtx_insn *).
3418 (expand_sfix_optab): Likewise for local "last".
3419 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3420 to rtx_code_label *.
3421 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3422 from rtx to rtx_insn *.
3423 (expand_atomic_fetch_op): Likewise for local "insn".
3424 (maybe_legitimize_operand_same_code): Likewise for local "last".
3425 (maybe_legitimize_operands): Likewise.
3426
3427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3428
3429 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3430 "insn" from rtx to rtx_insn *.
3431 (ps_rtl_insn): Likewise for return type.
3432 (doloop_register_get): Likewise for params "head", "tail" and
3433 locals "insn", "first_insn_not_to_check".
3434 (schedule_reg_move): Likewise for local "this_insn".
3435 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3436 of gen_move_insn for now.
3437 (reset_sched_times): Strengthen local "insn" from rtx to
3438 rtx_insn *.
3439 (permute_partial_schedule): Likewise.
3440 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3441 (dump_insn_location): Likewise for param "insn".
3442 (loop_canon_p): Likewise for local "insn".
3443 (sms_schedule): Likewise.
3444 (print_partial_schedule): Likewise.
3445 (ps_has_conflicts): Likewise.
3446
3447 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3448
3449 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3450 "tailp" from rtx * to rtx_insn **.
3451
3452 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3453 from rtx to rtx_insn *.
3454 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3455 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3456 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3457 rtx to rtx_insn *.
3458 * modulo-sched.c (const_iteration_count): Strengthen return type
3459 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3460 use of NULL_RTX with NULL when working with insns.
3461 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3462 to rtx_insn *.
3463 (sms_schedule): Likewise.
3464 * sched-rgn.c (init_ready_list): Likewise, also for locals
3465 "src_head" and "src_next_tail".
3466 (compute_block_dependences): Likewise.
3467 (free_block_dependencies): Likewise.
3468 (debug_rgn_dependencies): Likewise.
3469 (free_rgn_deps): Likewise.
3470 (compute_priorities): Likewise.
3471 (schedule_region): Likewise.
3472 * sel-sched.c (find_ebb_boundaries): Likewise.
3473
3474 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3475 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3476
3477 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3478
3479 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3480 from rtx to rtx_insn *.
3481 (new_seginfo): Likewise for param "insn".
3482 (create_pre_exit): Likewise for locals "last_insn",
3483 "before_return_copy", "return_copy".
3484 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3485 "mode_set".
3486
3487 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3488
3489 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3490 from rtx to rtx_insn *.
3491 (lra_push_insn): Likewise for 1st param.
3492 (lra_push_insn_and_update_insn_regno_info): Likewise.
3493 (lra_pop_insn): Likewise for return type.
3494 (lra_invalidate_insn_data): Likewise for 1st param.
3495 (lra_set_insn_deleted): Likewise.
3496 (lra_delete_dead_insn): Likewise.
3497 (lra_process_new_insns): Likewise for first 3 params.
3498 (lra_set_insn_recog_data): Likewise for 1st param.
3499 (lra_update_insn_recog_data): Likewise.
3500 (lra_set_used_insn_alternative): Likewise.
3501 (lra_invalidate_insn_regno_info): Likewise.
3502 (lra_update_insn_regno_info): Likewise.
3503 (lra_former_scratch_operand_p): Likewise.
3504 (lra_eliminate_regs_1): Likewise.
3505 (lra_get_insn_recog_data): Likewise.
3506
3507 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3508 rtx to rtx_insn *.
3509
3510 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3511 "mv1" and "mv2".
3512 (substitute_within_insn): New.
3513 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3514 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3515 Replace call to "substitute" with call to substitute_within_insn.
3516
3517 * lra-constraints.c (curr_insn): Strengthen from rtx to
3518 rtx_insn *.
3519 (get_equiv_with_elimination): Likewise for param "insn".
3520 (match_reload): Strengthen params "before" and "after" from rtx *
3521 to rtx_insn **.
3522 (emit_spill_move): Likewise for return type. Add a checked cast
3523 to rtx_insn * on result of gen_move_insn for now.
3524 (check_and_process_move): Likewise for local "before". Replace
3525 NULL_RTX with NULL when referring to insns.
3526 (process_addr_reg): Strengthen params "before" and "after" from
3527 rtx * to rtx_insn **.
3528 (insert_move_for_subreg): Likewise.
3529 (simplify_operand_subreg): Strengthen locals "before" and "after"
3530 from rtx to rtx_insn *.
3531 (process_address_1): Strengthen params "before" and "after" from
3532 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3533 rtx to rtx_insn *.
3534 (process_address): Strengthen params "before" and "after" from
3535 rtx * to rtx_insn **.
3536 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3537 (curr_insn_transform): Strengthen locals "before" and "after"
3538 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3539 to insns.
3540 (loc_equivalence_callback): Update cast of "data", changing
3541 resulting type from rtx to rtx_insn *.
3542 (substitute_pseudo_within_insn): New.
3543 (inherit_reload_reg): Strengthen param "insn" from rtx to
3544 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3545 NULL when referring to insns. Add a checked cast to rtx_insn *
3546 when using usage_insn to invoke lra_update_insn_regno_info.
3547 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3548 likewise for locals "restore", "save". Add checked casts to
3549 rtx_insn * when using usage_insn to invoke
3550 lra_update_insn_regno_info and lra_process_new_insns. Replace
3551 NULL_RTX with NULL when referring to insns.
3552 (split_if_necessary): Strengthen param "insn" from rtx to
3553 rtx_insn *.
3554 (update_ebb_live_info): Likewise for params "head", "tail" and local
3555 "prev_insn".
3556 (get_last_insertion_point): Likewise for return type and local "insn".
3557 (get_live_on_other_edges): Likewise for local "last".
3558 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3559 "prev_insn", "next_insn", "restore".
3560 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3561 (undo_optional_reloads): Likewise for local "insn".
3562
3563 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3564 "insn".
3565 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3566 insns.
3567 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3568 rtx_insn *.
3569 (spill_pseudos): Likewise for local "insn".
3570 (init_elimination): Likewise.
3571 (process_insn_for_elimination): Likewise for param "insn".
3572
3573 * lra-lives.c (curr_insn): Likewise.;
3574
3575 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3576 (remove_pseudos): Likewise for param "insn".
3577 (spill_pseudos): Likewise for local "insn".
3578 (lra_final_code_change): Likewise for locals "insn", "curr".
3579
3580 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3581 (lra_set_insn_deleted): Likewise.
3582 (lra_delete_dead_insn): Likewise, and for local "prev".
3583 (new_insn_reg): Likewise for param "insn".
3584 (lra_set_insn_recog_data): Likewise.
3585 (lra_update_insn_recog_data): Likewise.
3586 (lra_set_used_insn_alternative): Likewise.
3587 (get_insn_freq): Likewise.
3588 (invalidate_insn_data_regno_info): Likewise.
3589 (lra_invalidate_insn_regno_info): Likewise.
3590 (lra_update_insn_regno_info): Likewise.
3591 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3592 vec<rtx_insn *>.
3593 (lra_push_insn_1): Strengthen param "insn" from rtx to
3594 rtx_insn *.
3595 (lra_push_insn): Likewise.
3596 (lra_push_insn_and_update_insn_regno_info): Likewise.
3597 (lra_pop_insn): Likewise for return type and local "insn".
3598 (push_insns): Likewise for params "from", "to", and local "insn".
3599 (setup_sp_offset): Likewise for params "from", "last" and locals
3600 "before", "insn".
3601 (lra_process_new_insns): Likewise for params "insn", "before",
3602 "after" and local "last".
3603 (struct sloc): Likewise for field "insn".
3604 (lra_former_scratch_operand_p): Likewise for param "insn".
3605 (remove_scratches): Likewise for locals "insn", "last".
3606 (check_rtl): Likewise for local "insn".
3607 (add_auto_inc_notes): Likewise for param "insn".
3608 (update_inc_notes): Likewise for local "insn".
3609 (lra): Replace NULL_RTX with NULL when referring to insn.
3610
3611 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3612
3613 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3614 to rtx_insn *.
3615 (resolve_reg_notes): Likewise.
3616 (resolve_simple_move): Likewise for return type, param "insn", and
3617 locals "insns", "minsn".
3618 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3619 (resolve_use): Likewise.
3620 (resolve_debug): Likewise.
3621 (find_decomposable_shift_zext): Likewise.
3622 (resolve_shift_zext): Likewise for return type, param "insn", and
3623 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3624 (decompose_multiword_subregs): Likewise for local "insn",
3625 "orig_insn", "decomposed_shift", "end".
3626
3627 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3628
3629 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3630 param "insns" from rtx to rtx_insn *.
3631
3632 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3633 rtx to rtx_insn *.
3634 (struct iv_to_split): Likewise.
3635 (loop_exit_at_end_p): Likewise for local "insn".
3636 (split_edge_and_insert): Likewise for param "insns".
3637 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3638 and locals "seq", "jump".
3639 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3640 "branch_code"; update invocations of compare_and_jump_seq to
3641 eliminate NULL_RTX in favor of NULL.
3642 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3643 rtx to rtx_insn *.
3644 (reset_debug_uses_in_loop): Likewise.
3645 (analyze_insn_to_expand_var): Likewise for param "insn".
3646 (analyze_iv_to_split_insn): Likewise.
3647 (analyze_insns_in_loop): Likewise for local "insn".
3648 (insert_base_initialization): Likewise for param
3649 "insn" and local "seq".
3650 (split_iv): Likewise for param "insn" and local "seq".
3651 (expand_var_during_unrolling): Likewise for param "insn".
3652 (insert_var_expansion_initialization): Likewise for local "seq".
3653 (combine_var_copies_in_loop_exit): Likewise.
3654 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3655 "insn".
3656 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3657 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3658 "next".
3659
3660 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3661
3662 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3663 rtx_insn *.
3664 (iv_analyze_result): Likewise.
3665 (iv_analyze_expr): Likewise.
3666 (biv_p): Likewise.
3667
3668 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3669 local "def_insn" from rtx to rtx_insn *.
3670 (get_biv_step_1): Likewise for local "insn".
3671 (iv_analyze_expr): Likewise for param "insn".
3672 (iv_analyze_def): Likewise for local "insn".
3673 (iv_analyze_op): Likewise for param "insn".
3674 (iv_analyze): Likewise.
3675 (iv_analyze_result): Likewise.
3676 (biv_p): Likewise.
3677 (suitable_set_for_replacement): Likewise.
3678 (simplify_using_initial_values): Likewise for local "insn".
3679 (iv_number_of_iterations): Likewise for param "insn".
3680 (check_simple_exit): Add checked cast to rtx_insn when invoking
3681 iv_number_of_iterations for now (until get_condition is
3682 strengthened).
3683
3684 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3685 "insn" from rtx to rtx_insn *.
3686 (analyze_insns_in_loop): Likewise for local "insn".
3687
3688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3689
3690 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3691 to rtx_insn *.
3692 (struct invariant): Likewise.
3693 (hash_invariant_expr_1): Likewise for param "insn".
3694 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3695 (find_exits): Likewise for local "insn".
3696 (create_new_invariant): Likewise for param "insn".
3697 (check_dependencies): Likewise.
3698 (find_invariant_insn): Likewise.
3699 (record_uses): Likewise.
3700 (find_invariants_insn): Likewise.
3701 (find_invariants_bb): Likewise for local "insn".
3702 (get_pressure_class_and_nregs): Likewise for param "insn".
3703 (calculate_loop_reg_pressure): Likewise for local "insn".
3704
3705 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3706
3707 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3708 to rtx_insn *.
3709 (add_test): Likewise for locals "seq", "jump".
3710 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3711
3712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3713
3714 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3715 rtx_insn *.
3716 (rebuild_jump_labels_chain): Likewise for param "chain".
3717
3718 * cfgexpand.c (pass_expand::execute): Add checked cast to
3719 rtx_insn * when calling rebuild_jump_labels_chain in region where
3720 we know e->insns.r is non-NULL.
3721
3722 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3723 rtx_insn *.
3724 (rebuild_jump_labels): Likewise.
3725 (rebuild_jump_labels_chain): Likewise for param "chain".
3726 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3727 (init_label_info): Likewise for param "f".
3728 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3729 "prev_nonjump_insn".
3730 (mark_all_labels): Likewise for param "f" and locals "insn",
3731 "prev_nonjump_insn".
3732
3733 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3734
3735 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3736 from rtx to rtx_insn *insn.
3737 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3738 (ira_add_allocno_copy): Likewise.
3739 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3740 rtx to rtx_insn *.
3741 (ira_create_copy): Likewise.
3742 (ira_add_allocno_copy): Likewise.
3743 (create_bb_allocnos): Likewise for local "insn".
3744 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3745 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3746 process_regs_for_copy for rtx_insn * param.
3747 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3748 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3749 process_regs_for_copy for rtx_insn * param.
3750 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3751 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3752 (record_operand_costs): Likewise.
3753 (scan_one_insn): Likewise for return type, and for param "insn".
3754 (process_bb_for_costs): Likewise for local "insn".
3755 (process_bb_node_for_hard_reg_moves): Likewise.
3756 * ira-emit.c (struct move): Likewise for field "insn".
3757 (create_move): Eliminate use of NULL_RTX when dealing with an
3758 rtx_insn *.
3759 (emit_move_list): Strengthen return type and locals "result",
3760 "insn" from rtx to rtx_insn *insn.
3761 (emit_moves): Likewise for locals "insns", "tmp".
3762 (ira_emit): Likewise for local "insn".
3763 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3764 "insn".
3765 (find_call_crossed_cheap_reg): Likewise.
3766 (process_bb_node_lives): Likewise for local "insn".
3767 * ira.c (decrease_live_ranges_number): Likewise.
3768 (compute_regs_asm_clobbered): Likewise.
3769 (build_insn_chain): Likewise.
3770 (find_moveable_pseudos): Likewise, also locals "def_insn",
3771 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3772 to rtx_insn **. Add a checked cast when assigning from
3773 "closest_use" into closest_uses array in a region where we know
3774 it's a non-NULL insn.
3775 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3776 to rtx_insn *.
3777 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3778 "last_interesting_insn", "uin".
3779 (move_unallocated_pseudos): Likewise for locals "def_insn",
3780 "move_insn", "newinsn".
3781
3782 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3783
3784 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3785 Strengthen locals "done_label", "do_error" from rtx to
3786 rtx_code_label *.
3787 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3788 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3789 rtx_code_label *.
3790 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3791 "done_label", "do_error" to rtx_code_label * and local "last" to
3792 rtx_insn *.
3793 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3794 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3795 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3796 "after_lopart_neg", "do_overflow", "hipart_different" to
3797 rtx_code_label * and local "last" to rtx_insn *.
3798
3799 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3800
3801 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3802 "insn" and "move_insn" from rtx to rtx_insn *.
3803
3804 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3805
3806 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3807 rtx_insn *.
3808 (cheap_bb_rtx_cost_p): Likewise.
3809 (first_active_insn): Likewise for return type and local "insn".
3810 (last_active_insn): Likewise for return type and locals "insn",
3811 "head".
3812 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3813 "insn_b".
3814 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3815 "seq".
3816 (noce_try_move): Likewise for local "seq".
3817 (noce_try_store_flag): Likewise.
3818 (noce_try_store_flag_constants): Likewise.
3819 (noce_try_addcc): Likewise.
3820 (noce_try_store_flag_mask): Likewise.
3821 (noce_try_cmove): Likewise.
3822 (noce_try_minmax): Likewise.
3823 (noce_try_abs): Likewise.
3824 (noce_try_sign_mask): Likewise.
3825 (noce_try_bitop): Likewise.
3826 (noce_can_store_speculate_p): Likewise for local "insn".
3827 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3828 seq".
3829 (check_cond_move_block): Likewise for local "insn".
3830 (cond_move_convert_if_block): Likewise.
3831 (cond_move_process_if_block): Likewise for locals "seq",
3832 "loc_insn".
3833 (noce_find_if_block): Likewise for local "jump".
3834 (merge_if_block): Likewise for local "last".
3835 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3836 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3837 (block_has_only_trap): Likewise for return type and local "trap".
3838 (find_if_case_1): Likewise for local "jump".
3839 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3840 "insn".
3841
3842 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3843
3844 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3845 "last_insn", "loop_end" from rtx to rtx_insn *.
3846
3847 * hw-doloop.c (scan_loop): Likewise for local "insn".
3848 (discover_loop): Likewise for param "tail_insn".
3849 (discover_loops): Likewise for local "tail".
3850
3851 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3852 cast to rtx_insn * when assigning from an rtx local to a
3853 hwloop_info's "last_insn" field.
3854
3855 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3856
3857 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3858 (add_delay_dependencies): Strengthen local "pro" from rtx to
3859 rtx_insn *.
3860 (recompute_todo_spec): Likewise.
3861 (dep_cost_1): Likewise for locals "insn", "used".
3862 (schedule_insn): Likewise for local "dbg".
3863 (schedule_insn): Likewise for locals "pro", "next".
3864 (unschedule_insns_until): Likewise for local "con".
3865 (restore_pattern): Likewise for local "next".
3866 (estimate_insn_tick): Likewise for local "pro".
3867 (resolve_dependencies): Likewise for local "next".
3868 (fix_inter_tick): Likewise.
3869 (fix_tick_ready): Likewise for local "pro".
3870 (add_to_speculative_block): Likewise for locals "check", "twin",
3871 "pro".
3872 (sched_extend_bb): Likewise for locals "end", "insn".
3873 (init_before_recovery): Likewise for local "x".
3874 (sched_create_recovery_block): Likewise for local "barrier".
3875 (create_check_block_twin): Likewise for local "pro".
3876 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3877 "consumer".
3878 (unlink_bb_notes): Update for change to type of bb_header.
3879 Strengthen locals "prev", "label", "note", "next" from rtx to
3880 rtx_insn *.
3881 (clear_priorities): Likewise for local "pro".
3882
3883 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3884
3885 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3886 rtx_insn *.
3887 (test_insn): Likewise for this global.
3888 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3889 const rtx_insn *.
3890 (oprs_anticipatable_p): Likewise.
3891 (oprs_available_p): Likewise.
3892 (insert_expr_in_table): Strengthen param "insn" from rtx to
3893 rtx_insn *.
3894 (hash_scan_set): Likewise.
3895 (hash_scan_clobber): Likewise.
3896 (hash_scan_call): Likewise.
3897 (hash_scan_insn): Likewise.
3898 (compute_hash_table_work): Likewise for local "insn".
3899 (process_insert_insn): Likewise for return type and local "pat".
3900 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3901 "pat", "pat_end", "maybe_cc0_setter".
3902 (pre_edge_insert): Likewise for local "insn".
3903 (pre_insert_copy_insn): Likewise for param "insn".
3904 (pre_insert_copies): Likewise for local "insn".
3905 (struct set_data): Likewise for field "insn".
3906 (single_set_gcse): Likewise for param "insn".
3907 (gcse_emit_move_after): Likewise.
3908 (pre_delete): Likewise for local "insn".
3909 (update_bb_reg_pressure): Likewise for param "from" and local
3910 "insn".
3911 (should_hoist_expr_to_dom): Likewise for param "from".
3912 (hoist_code): Likewise for local "insn".
3913 (get_pressure_class_and_nregs): Likewise for param "insn".
3914 (calculate_bb_reg_pressure): Likewise for local "insn".
3915 (compute_ld_motion_mems): Likewise.
3916
3917 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3918
3919 * genpeep.c (main): Rename param back from "uncast_ins1" to
3920 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3921 checked cast.
3922
3923 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3924
3925 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3926
3927 PR target/62195
3928 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3929 documentation to state it is only for VSX operations.
3930
3931 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3932 constraint only active if VSX.
3933
3934 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3935 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3936 (lfiwzx): Likewise.
3937
3938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3939
3940 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3941 Strengthen local "insn" from rtx to rtx_insn *.
3942 (use_killed_between): Likewise for param "target_insn".
3943 (all_uses_available_at): Likewise for param "target_insn" and
3944 local "next".
3945 (update_df_init): Likewise for params "def_insn", "insn".
3946 (update_df): Likewise for param "insn".
3947 (try_fwprop_subst): Likewise for param "def_insn" and local
3948 "insn".
3949 (free_load_extend): Likewise for param "insn".
3950 (forward_propagate_subreg): Likewise for param "def_insn" and
3951 local "use_insn".
3952 (forward_propagate_asm): Likewise for param "def_insn" and local
3953 "use_insn".
3954 (forward_propagate_and_simplify): Likewise for param "def_insn"
3955 and local "use_insn".
3956 (forward_propagate_into): Likewise for locals "def_insn" and
3957 "use_insn".
3958
3959 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3960
3961 * function.c (emit_initial_value_sets): Strengthen local "seq"
3962 from rtx to rtx_insn *.
3963 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
3964 local "seq".
3965 (instantiate_virtual_regs): Likewise for local "insn".
3966 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
3967 (reorder_blocks_1): Likewise for param "insns" and local "insn".
3968 (expand_function_end): Likewise for locals "insn" and "seq".
3969 (epilogue_done): Likewise for local "insn".
3970 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
3971 "last", "trial".
3972 (reposition_prologue_and_epilogue_notes): Likewise for locals
3973 "insn", "last", "note", "first".
3974 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
3975 (pass_match_asm_constraints::execute): Likewise for local "insn".
3976
3977 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3978
3979 * output.h (final_scan_insn): Strengthen return type from rtx to
3980 rtx_insn *.
3981 (final_forward_branch_p): Likewise for param.
3982 (current_output_insn): Likewise for this global.
3983
3984 * final.c (rtx debug_insn): Likewise for this variable.
3985 (current_output_insn): Likewise.
3986 (get_attr_length_1): Rename param "insn" to "uncast_insn",
3987 adding "insn" back in as an rtx_insn * with a checked cast, so
3988 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
3989 first param.
3990 (compute_alignments): Strengthen local "label" from rtx to
3991 rtx_insn *.
3992 (shorten_branches): Rename param from "first" to "uncast_first",
3993 introducing a new local rtx_insn * "first" using a checked cast to
3994 effectively strengthen "first" from rtx to rtx_insn * without
3995 affecting the type signature. Strengthen locals "insn", "seq",
3996 "next", "label" from rtx to rtx_insn *.
3997 (change_scope): Strengthen param "orig_insn" and local "insn" from
3998 rtx to rtx_insn *.
3999 (final_start_function): Rename param from "first" to "uncast_first",
4000 introducing a new local rtx_insn * "first" using a checked cast to
4001 effectively strengthen "first" from rtx to rtx_insn * without
4002 affecting the type signature. Strengthen local "insn" from rtx to
4003 rtx_insn *.
4004 (dump_basic_block_info): Strengthen param "insn" from rtx to
4005 rtx_insn *.
4006 (final): Rename param from "first" to "uncast_first",
4007 introducing a new local rtx_insn * "first" using a checked cast to
4008 effectively strengthen "first" from rtx to rtx_insn * without
4009 affecting the type signature. Strengthen locals "insn", "next"
4010 from rtx to rtx_insn *.
4011 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4012 rtx_insn *.
4013 (call_from_call_insn): Strengthen param "insn" from rtx to
4014 rtx_call_insn *.
4015 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4016 introducing a new local rtx_insn * "insn" using a checked cast to
4017 effectively strengthen "insn" from rtx to rtx_insn * without
4018 affecting the type signature. Strengthen return type and locals
4019 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4020 now-redundant checked cast to rtx_insn * from both invocations of
4021 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4022 introducing a local "call_insn" for use when invoking
4023 call_from_call_insn.
4024 (notice_source_line): Strengthen param "insn" from rtx to
4025 rtx_insn *.
4026 (leaf_function_p): Likewise for local "insn".
4027 (final_forward_branch_p): Likewise.
4028 (leaf_renumber_regs): Likewise for param "first".
4029 (rest_of_clean_state): Likewise for locals "insn" and "next".
4030 (self_recursive_call_p): Likewise for param "insn".
4031 (collect_fn_hard_reg_usage): Likewise for local "insn".
4032 (get_call_fndecl): Likewise for param "insn".
4033 (get_call_cgraph_rtl_info): Likewise.
4034 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4035 introducing a new local rtx_insn * "insn" using a checked cast to
4036 effectively strengthen "insn" from rtx to rtx_insn * without
4037 affecting the type signature.
4038
4039 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4040 cast when assigning from param "insn" to current_output_insn.
4041 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4042 so that we can assign it back to current_output_insn.
4043
4044 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4045
4046 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4047 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4048 atmxt540s and atmxt540sreva devices.
4049 * config/avr/avr-tables.opt: Regenerate.
4050 * config/avr/t-multilib: Regenerate.
4051 * doc/avr-mmcu.texi: Regenerate.
4052
4053 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4054
4055 * expr.c (convert_move): Strengthen local "insns" from rtx to
4056 rtx_insn *.
4057 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4058 "top_label" from rtx to rtx_code_label *.
4059 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4060 rtx_insn *.
4061 (emit_single_push_insn): Likewise for locals "prev", "last".
4062 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4063 to rtx_code_label *.
4064 (store_constructor): Likewise for locals "loop_start", "loop_end".
4065 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4066 rtx_insn *.
4067 (expand_expr_real_2): Likewise.
4068 (expand_expr_real_1): Strengthen local "label" from rtx to
4069 rtx_code_label *.
4070
4071 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4072
4073 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4074 from rtx to rtx_insn *.
4075 (store_bit_field_1): Likewise.
4076 (extract_bit_field_1): Likewise.
4077 (expand_mult_const): Likewise for local "insns".
4078 (expmed_mult_highpart): Strengthen local "label" from rtx to
4079 rtx_code_label *.
4080 (expand_smod_pow2): Likewise.
4081 (expand_sdiv_pow2): Likewise.
4082 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4083 rtx_insn *. Strengthen locals "label", "label1", "label2",
4084 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4085 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4086 (emit_store_flag): Likewise.
4087 (emit_store_flag_force): Strengthen local "label" from rtx to
4088 rtx_code_label *.
4089 (do_cmp_and_jump): Likewise for param "label".
4090
4091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4092
4093 * explow.c (force_reg): Strengthen local "insn" from rtx to
4094 rtx_insn *.
4095 (adjust_stack_1): Likewise.
4096 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4097 "final_label", "available_label", "space_available" from rtx to
4098 rtx_code_label *.
4099 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4100 (anti_adjust_stack_and_probe): Likewise.
4101
4102 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4103
4104 * except.h (sjlj_emit_function_exit_after): Strengthen param
4105 "after" from rtx to rtx_insn *. This is only called with
4106 result of get_last_insn (in function.c) so type-change should be
4107 self-contained.
4108
4109 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4110 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4111 to rtx_insn *. These fields are only used from except.c so this
4112 type-change should be self-contained to this patch.
4113
4114 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4115 local "last" from rtx to rtx_insn *.
4116 (dw2_build_landing_pads): Likewise for local "seq".
4117 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4118 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4119 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4120 rtx to rtx_insn *.
4121 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4122 to rtx_insn *.
4123 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4124 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4125 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4126 referring to an insn. Strengthen local "dispatch_label" from
4127 rtx to rtx_code_label *.
4128 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4129 rtx_insn *.
4130 (expand_eh_return): Strengthen local "around_label" from
4131 rtx to rtx_code_label *.
4132 (convert_to_eh_region_ranges): Strengthen locals "iter",
4133 "last_action_insn", "first_no_action_insn",
4134 "first_no_action_insn_before_switch",
4135 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4136
4137 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4138
4139 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4140 from rtx to rtx_insn *.
4141 (cached_next_real_insn): Likewise.
4142 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4143 working with insns.
4144 (dwarf2out_var_location): Strengthen locals "next_real",
4145 "next_note", "expected_next_loc_note", "last_start", "insn" from
4146 rtx to rtx_insn *.
4147
4148 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4149
4150 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4151 from rtx to rtx_insn *.
4152 (create_pseudo_cfg): Likewise for local "insn".
4153
4154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4155
4156 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4157 from rtx to rtx_insn *.
4158 (df_bb_regno_last_def_find): Likewise.
4159
4160 * df-problems.c (df_rd_bb_local_compute): Likewise.
4161 (df_lr_bb_local_compute): Likewise.
4162 (df_live_bb_local_compute): Likewise.
4163 (df_chain_remove_problem): Likewise.
4164 (df_chain_create_bb): Likewise.
4165 (df_word_lr_bb_local_compute): Likewise.
4166 (df_remove_dead_eq_notes): Likewise for param "insn".
4167 (df_note_bb_compute): Likewise for local "insn".
4168 (simulate_backwards_to_point): Likewise.
4169 (df_md_bb_local_compute): Likewise.
4170
4171 * df-scan.c (df_scan_free_bb_info): Likewise.
4172 (df_scan_start_dump): Likewise.
4173 (df_scan_start_block): Likewise.
4174 (df_install_ref_incremental): Likewise for local "insn".
4175 (df_insn_rescan_all): Likewise.
4176 (df_reorganize_refs_by_reg_by_insn): Likewise.
4177 (df_reorganize_refs_by_insn_bb): Likewise.
4178 (df_recompute_luids): Likewise.
4179 (df_bb_refs_record): Likewise.
4180 (df_update_entry_exit_and_calls): Likewise.
4181 (df_bb_verify): Likewise.
4182
4183 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4184
4185 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4186 "first_note" from rtx to rtx_insn *.
4187 (get_node_of_insn): Likewise for param 2 "insn".
4188 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4189
4190 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4191 rtx_insn *.
4192 (mem_write_insn_p): Likewise.
4193 (mem_access_insn_p): Likewise.
4194 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4195 (def_has_ccmode_p): Likewise for param "insn".
4196 (add_cross_iteration_register_deps): Likewise for locals
4197 "def_insn" and "use_insn".
4198 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4199 (build_intra_loop_deps): Likewise for local "src_insn".
4200 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4201 to rtx_insn *.
4202 (get_node_of_insn): Likewise for param "insn".
4203
4204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4205
4206 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4207 (deletable_insn_p): Strengthen param "insn" from rtx to
4208 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4209 find_call_stack_args, since this is guarded by CALL_P (insn).
4210 (marked_insn_p): Strengthen param "insn" from rtx to
4211 rtx_insn *.
4212 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4213 invoking find_call_stack_args, since this is guarded by
4214 CALL_P (insn).
4215 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4216 rtx_insn *; we know this is an insn since this was called by
4217 mark_nonreg_stores.
4218 (mark_nonreg_stores_2): Likewise.
4219 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4220 rtx_insn *.
4221 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4222 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4223 to rtx_insn *.
4224 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4225 from rtx to rtx_insn *.
4226 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4227 "next", "ref_insn".
4228 (delete_unmarked_insns): Likewise for locals "insn", "next".
4229 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4230 (mark_reg_dependencies): Likewise for param "insn".
4231 (rest_of_handle_ud_dce): Likewise for local "insn".
4232 (word_dce_process_block): Likewise.
4233 (dce_process_block): Likewise.
4234
4235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4236
4237 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4238 from rtx to rtx_insn *.
4239 (struct change_cc_mode_args): Likewise for field "insn".
4240 (this_insn): Strengthen from rtx to rtx_insn *.
4241 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4242 with insn.
4243 (validate_canon_reg): Strengthen param "insn" from rtx to
4244 rtx_insn *.
4245 (canon_reg): Likewise.
4246 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4247 dealing with insn.
4248 (record_jump_equiv): Strengthen param "insn" from rtx to
4249 rtx_insn *.
4250 (try_back_substitute_reg): Likewise, also for locals "prev",
4251 "bb_head".
4252 (find_sets_in_insn): Likewise for param "insn".
4253 (canonicalize_insn): Likewise.
4254 (cse_insn): Likewise. Add a checked cast.
4255 (invalidate_from_clobbers): Likewise for param "insn".
4256 (invalidate_from_sets_and_clobbers): Likewise.
4257 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4258 dealing with insn.
4259 (cse_prescan_path): Strengthen local "insn" from rtx to
4260 rtx_insn *.
4261 (cse_extended_basic_block): Likewise for locals "insn" and
4262 "prev_insn".
4263 (cse_main): Likewise for param "f".
4264 (check_for_label_ref): Likewise for local "insn".
4265 (set_live_p): Likewise for second param ("insn").
4266 (insn_live_p): Likewise for first param ("insn") and for local
4267 "next".
4268 (cse_change_cc_mode_insn): Likewise for first param "insn".
4269 (cse_change_cc_mode_insns): Likewise for first and second params
4270 "start" and "end".
4271 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4272 and "end".
4273 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4274 "cc_src_insn".
4275
4276 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4277 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4278 Anna Tikhonova <anna.tikhonova@intel.com>
4279 Ilya Tocar <ilya.tocar@intel.com>
4280 Andrey Turetskiy <andrey.turetskiy@intel.com>
4281 Ilya Verbin <ilya.verbin@intel.com>
4282 Kirill Yukhin <kirill.yukhin@intel.com>
4283 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4284
4285 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4286 New.
4287 * config/i386/sse.md
4288 (define_mode_iterator VI248_AVX2): Delete.
4289 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4290 (define_mode_iterator VI48_AVX2): Ditto.
4291 (define_insn <shift_insn><mode>3): Delete.
4292 (define_insn "<shift_insn><mode>3<mask_name>" with
4293 VI2_AVX2_AVX512BW): New.
4294 (define_insn "<shift_insn><mode>3<mask_name>" with
4295 VI48_AVX2): Ditto.
4296
4297 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4298 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4299 Anna Tikhonova <anna.tikhonova@intel.com>
4300 Ilya Tocar <ilya.tocar@intel.com>
4301 Andrey Turetskiy <andrey.turetskiy@intel.com>
4302 Ilya Verbin <ilya.verbin@intel.com>
4303 Kirill Yukhin <kirill.yukhin@intel.com>
4304 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4305
4306 * config/i386/sse.md
4307 (define_mode_iterator VI4F_BRCST32x2): New.
4308 (define_mode_attr 64x2_mode): Ditto.
4309 (define_mode_attr 32x2mode): Ditto.
4310 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4311 with VI4F_BRCST32x2): Ditto.
4312 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4313 with V16FI mode iterator): Ditto.
4314 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4315 with V16FI): Ditto.
4316 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4317 with VI8F_BRCST64x2): Ditto.
4318
4319 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4320 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4321 Anna Tikhonova <anna.tikhonova@intel.com>
4322 Ilya Tocar <ilya.tocar@intel.com>
4323 Andrey Turetskiy <andrey.turetskiy@intel.com>
4324 Ilya Verbin <ilya.verbin@intel.com>
4325 Kirill Yukhin <kirill.yukhin@intel.com>
4326 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4327
4328 * config/i386/sse.md
4329 (define_mode_iterator VI8_AVX512VL): New.
4330 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4331
4332 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4333
4334 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4335 (define_mode_iterator V48_AVX512VL): New.
4336 (define_mode_iterator V12_AVX512VL): Ditto.
4337 (define_insn <avx512>_load<mode>_mask): Split into two similar
4338 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4339 Refactor output template.
4340 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4341
4342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4343
4344 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4345 rtx_insn *.
4346 (reg_available_p): Likewise for param "insn".
4347 (insert_set_in_table): Likewise.
4348 (hash_scan_set): Likewise.
4349 (hash_scan_insn): Likewise.
4350 (make_set_regs_unavailable): Likewise.
4351 (compute_hash_table_work): Likewise for local "insn".
4352 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4353 const rtx_insn *.
4354 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4355 (try_replace_reg): Likewise.
4356 (find_avail_set): Likewise.
4357 (cprop_jump): Likewise for params "setcc", "jump".
4358 (constprop_register): Likewise for param "insn".
4359 (cprop_insn): Likewise.
4360 (do_local_cprop): Likewise.
4361 (local_cprop_pass): Likewise for local "insn".
4362 (bypass_block): Likewise for params "setcc" and "jump".
4363 (bypass_conditional_jumps): Likewise for locals "setcc" and
4364 "insn".
4365 (one_cprop_pass): Likewise for local "insn".
4366
4367 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4368
4369 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4370 from rtx to rtx_insn *.
4371 (struct comparison): Likewise, also for field "prev_clobber".
4372 (conforming_compare): Likewise for param "insn".
4373 (arithmetic_flags_clobber_p): Likewise.
4374 (find_flags_uses_in_insn): Likewise.
4375 (find_comparison_dom_walker::before_dom_children): Likewise for
4376 locals "insn", "next", "last_clobber".
4377 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4378
4379 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4380
4381 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4382 "insn" from rtx to rtx_insn *.
4383 (single_set_for_csa): Likewise for param "insn".
4384 (record_one_stack_ref): Likewise.
4385 (try_apply_stack_adjustment): Likewise.
4386 (struct record_stack_refs_data): Likewise for field "insn".
4387 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4388 (prev_active_insn_bb): Likewise for return type and param "insn".
4389 (next_active_insn_bb): Likewise.
4390 (force_move_args_size_note): Likewise for params "prev" and "last"
4391 and locals "test", "next_candidate", "prev_candidate".
4392 (combine_stack_adjustments_for_block): Strengthen locals
4393 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4394 rtx_insn *.
4395
4396 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4397
4398 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4399 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4400 (subst_insn): Likewise for this variable.
4401 (added_links_insn): Likewise.
4402 (struct insn_link): Likewise for field "insn".
4403 (alloc_insn_link): Likewise for param "insn".
4404 (struct undobuf): Likewise for field "other_insn".
4405 (find_single_use): Likewise for param "insn" and local "next".
4406 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4407 (delete_noop_moves): Likewise for locals "insn", "next".
4408 (create_log_links): Likewise for locals "insn", "use_insn".
4409 Strengthen local "next_use" from rtx * to rtx_insn **.
4410 (insn_a_feeds_b): Likewise for params "a", "b".
4411 (combine_instructions): Likewise for param "f" and locals "insn",
4412 "next", "prev", "first", "last_combined_insn", "link", "link1",
4413 "temp". Replace use of NULL_RTX with NULL when referring to
4414 insns.
4415 (setup_incoming_promotions): Likewise for param "first"
4416 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4417 (can_combine_p): Likewise for params "insn", "i3", "pred",
4418 "pred2", "succ", "succ2" and for local "p".
4419 (combinable_i3pat): Likewise for param "i3".
4420 (cant_combine_insn_p): Likewise for param "insn".
4421 (likely_spilled_retval_p): Likewise.
4422 (adjust_for_new_dest): Likewise.
4423 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4424 (try_combine): Likewise for return type and for params "i3", "i2",
4425 "i1", "i0", "last_combined_insn", and for locals "insn",
4426 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4427 "i0_insn". Eliminate local "tem" in favor of new locals
4428 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4429 checked cast for now to rtx_insn * on the return type of
4430 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4431 insns.
4432 (find_split_point): Strengthen param "insn" from rtx to
4433 rtx_insn *.
4434 (simplify_set): Likewise for local "other_insn".
4435 (recog_for_combine): Likewise for param "insn".
4436 (record_value_for_reg): Likewise.
4437 (record_dead_and_set_regs_1): Likewise for local
4438 "record_dead_insn".
4439 (record_dead_and_set_regs): Likewise for param "insn".
4440 (record_promoted_value): Likewise.
4441 (check_promoted_subreg): Likewise.
4442 (get_last_value_validate): Likewise.
4443 (reg_dead_at_p): Likewise.
4444 (move_deaths): Likewise for param "to_insn".
4445 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4446 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4447 in favor of new locals "tem_note" and "tem_insn", the latter being
4448 an rtx_insn *.
4449 (distribute_links): Strengthen locals "place", "insn" from rtx to
4450 rtx_insn *.
4451
4452 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4453
4454 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4455 than a const_rtx.
4456 (can_delete_label_p): Require a const rtx_code_label * rather than
4457 a const_rtx.
4458 (delete_insn): Add checked cast to rtx_code_label * when we know
4459 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4460 rtx to rtx_insn *.
4461 (delete_insn_chain): Strengthen locals "prev" and "current" from
4462 rtx to rtx_insn *. Add a checked cast when assigning from
4463 "finish" (strengthening the params will come later). Add a
4464 checked cast to rtx_note * in region where we know
4465 NOTE_P (current).
4466 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4467 rtx_insn *.
4468 (compute_bb_for_insn): Likewise.
4469 (free_bb_for_insn): Likewise for local "insn".
4470 (compute_bb_for_insn): Likewise.
4471 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4472 local "insn" from rtx to rtx_insn *
4473 (flow_active_insn_p): Require a const rtx_insn * rather than a
4474 const_rtx.
4475 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4476 rtx_insn *.
4477 (can_fallthru): Likewise for locals "insn" and "insn2".
4478 (bb_note): Likewise for local "note".
4479 (first_insn_after_basic_block_note): Likewise for local "note" and
4480 for return type.
4481 (rtl_split_block): Likewise for locals "insn" and "next".
4482 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4483 "end".
4484 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4485 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4486 "prev", "tmp".
4487 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4488 them), "kill_from", "barrier", "new_insn".
4489 (patch_jump_insn): Likewise for params "insn", "old_label".
4490 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4491 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4492 "old_label", "new_label".
4493 (rtl_tidy_fallthru_edge): Likewise for local "q".
4494 (rtl_split_edge): Likewise for locals "before", "last".
4495 (commit_one_edge_insertion): Likewise for locals "before",
4496 "after", "insns", "tmp", "last", adding a checked cast where
4497 currently necessary.
4498 (commit_edge_insertions): Likewise.
4499 (rtl_dump_bb): Likewise for locals "insn", "last".
4500 (print_rtl_with_bb): Likewise for local "x".
4501 (rtl_verify_bb_insns): Likewise for local "x".
4502 (rtl_verify_bb_pointers): Likewise for local "insn".
4503 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4504 "head", "end".
4505 (rtl_verify_fallthru): Likewise for local "insn".
4506 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4507 (purge_dead_edges): Likewise for local "insn".
4508 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4509 (skip_insns_after_block): Likewise for return type and for locals
4510 "insn", "last_insn", "next_head", "prev".
4511 (record_effective_endpoints): Likewise for locals "next_insn",
4512 "insn", "end".
4513 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4514 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4515 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4516 (duplicate_insn_chain): For now, add checked cast from rtx to
4517 rtx_insn * when returning insn.
4518 (cfg_layout_duplicate_bb): Likewise for local "insn".
4519 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4520 "prev", "remaints".
4521 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4522 (rtl_block_empty_p): Likewise.
4523 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4524 "split_point", "last".
4525 (rtl_block_ends_with_call_p): Likewise for local "insn".
4526 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4527 const rtx_insn *.
4528 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4529 "split_at_insn" from rtx to rtx_insn *.
4530 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4531 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4532 to const rtx_insn *.
4533 (rtl_account_profile_record): Likewise.
4534
4535 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4536
4537 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4538 rtx to rtx_insn *.
4539 (average_num_loop_insns): Likewise.
4540 (init_set_costs): Likewise for local "seq".
4541 (seq_cost): Likewise for param "seq", from const_rtx to const
4542 rtx_insn *.
4543
4544 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4545
4546 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4547 rtx to rtx_insn *.
4548
4549 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4550
4551 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4552 "f1" and "f2" from rtx * to rtx_insn **.
4553 (flow_find_head_matching_sequence): Likewise.
4554
4555 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4556 "cbranch_insn" from rtx to rtx_insn *.
4557 (thread_jump): Likewise for local "insn".
4558 (try_forward_edges): Likewise for local "last".
4559 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4560 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4561 "real_b_end".
4562 (can_replace_by): Likewise for params "i1", "i2".
4563 (old_insns_match_p): Likewise.
4564 (merge_notes): Likewise.
4565 (walk_to_nondebug_insn): Likewise for param "i1".
4566 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4567 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4568 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4569 (flow_find_head_matching_sequence): Strengthen params "f1" and
4570 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4571 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4572 rtx_insn *.
4573 (outgoing_edges_match): Likewise for locals "last1", "last2".
4574 (try_crossjump_to_edge): Likewise for local "insn".
4575 Replace call to for_each_rtx with for_each_rtx_in_insn.
4576
4577 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4578 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4579 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4580 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4581 (try_optimize_cfg): Strengthen local "last" from rtx to
4582 rtx_insn *.
4583 (delete_dead_jumptables): Likewise for locals "insn", "next",
4584 "label".
4585
4586 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4587 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4588 "rtx else_first_tail", to reflect the basic-block.h changes above.
4589
4590 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4591
4592 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4593 rtx_insn *.
4594 (purge_dead_tablejump_edges): Likewise.
4595 (find_bb_boundaries): Likewise for locals "insn", "end",
4596 "flow_transfer_insn".
4597
4598 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4599
4600 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4601 "ins" and "prev" from rtx to rtx_insn *.
4602
4603 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4604
4605 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4606 rtx_insn *.
4607 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4608 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4609 "scan_start".
4610 (load_register_parameters): Likewise for local "before_arg".
4611 (check_sibcall_argument_overlap): Likewise for param "insn".
4612 (expand_call): Likewise for locals "normal_call_insns",
4613 "tail_call_insns", "insns", "before_call", "after_args",
4614 "before_arg", "last", "prev". Strengthen one of the "last" from
4615 rtx to rtx_call_insn *.
4616 (fixup_tail_calls): Strengthen local "insn" from rtx to
4617 rtx_insn *.
4618 (emit_library_call_value_1): Likewise for locals "before_call" and
4619 "last".
4620
4621 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4622
4623 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4624 and "last" from rtx to rtx_insn *.
4625 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4626 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4627 rtx_call_insn *.
4628 (expand_errno_check): Strengthen local "lab" from rtx to
4629 rtx_code_label *.
4630 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4631 rtx_insn *.
4632 (expand_builtin_mathfn_2): Likewise.
4633 (expand_builtin_mathfn_ternary): Likewise.
4634 (expand_builtin_mathfn_3): Likewise.
4635 (expand_builtin_interclass_mathfn): Likewise for local "last".
4636 (expand_builtin_int_roundingfn): Likewise for local "insns".
4637 (expand_builtin_int_roundingfn_2): Likewise.
4638 (expand_builtin_strlen): Likewise for local "before_strlen".
4639 (expand_builtin_strncmp): Likewise for local "seq".
4640 (expand_builtin_signbit): Likewise for local "last".
4641 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4642 from rtx to rtx_code_label *.
4643 (expand_stack_restore): Strengthen local "prev" from rtx to
4644 rtx_insn *.
4645
4646 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4647
4648 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4649 to rtx_insn *.
4650 (struct btr_def_s): Likewise.
4651 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4652 const rtx_insn *.
4653 (add_btr_def): Likewise.
4654 (new_btr_user): Likewise.
4655 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4656 rtx to rtx_insn *.
4657 (link_btr_uses): Likewise.
4658 (move_btr_def): Likewise for locals "insp", "old_insn",
4659 "new_insn". Add checked cast to rtx_insn * for now on result of
4660 gen_move_insn.
4661 (can_move_up): Strengthen param "insn" from const_rtx to
4662 const rtx_insn *.
4663
4664 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4665
4666 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4667 rtx_insn *.
4668 (get_uncond_jump_length): Likewise for locals "label", "jump".
4669 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4670 "jump", "insn".
4671 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4672 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4673 (find_jump_block): Likewise for local "insn".
4674 (fix_crossing_conditional_branches): Likewise for locals
4675 "old_jump", "new_jump".
4676 (fix_crossing_unconditional_branches): Likewise for locals
4677 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4678 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4679
4680 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4681
4682 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4683 rtx to rtx_insn *.
4684 (struct mem_insn): Likewise for field "insn".
4685 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4686 (reg_next_inc_use): Likewise.
4687 (reg_next_def): Likewise.
4688 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4689 from rtx to rtx_insn *.
4690 (move_insn_before): Likewise for param "next_insn" and local "insns".
4691 (attempt_change): Likewise for local "mov_insn".
4692 (try_merge): Likewise for param "last_insn".
4693 (get_next_ref): Likewise for return type and local "insn".
4694 Strengthen param "next_array" from rtx * to rtx_insn **.
4695 (parse_add_or_inc): Strengthen param "insn" from rtx to
4696 rtx_insn *.
4697 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4698 the latter).
4699 (merge_in_block): Likewise for locals "insn", "curr",
4700 "other_insn".
4701 (pass_inc_dec::execute): Update allocations of the arrays to
4702 reflect the stronger types.
4703
4704 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4705
4706 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4707 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4708 from rtx to rtx_code_label *.
4709
4710 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4711
4712 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4713 to rtx_insn *.
4714
4715 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4716
4717 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4718 generated a warning and prevented bootstrapping the compiler.
4719
4720 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4721
4722 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4723 rtx_insn *.
4724
4725 * jump.c (delete_related_insns): Likewise, also for locals "next"
4726 and "prev".
4727
4728 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4729
4730 * genautomata.c (output_internal_insn_latency_func): When writing
4731 the function "internal_insn_latency" to insn-automata.c,
4732 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4733 allowing the optional guard function of (define_bypass) clauses to
4734 expect a pair of rtx_insn *, rather than a pair of rtx.
4735 (output_insn_latency_func): When writing the function
4736 "insn_latency", add an "uncast_" prefix to params "insn" and
4737 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4738 using checked casts from the params, thus enabling the above
4739 change to the generated "internal_insn_latency" function.
4740
4741 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4742
4743 PR tree-optimization/62091
4744 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4745 handle correctly arrays.
4746 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4747 inheritance binfos.
4748 (record_known_type): Walk into inner type.
4749 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4750 condition on no type changes.
4751
4752 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4753
4754 * genattrtab.c (write_attr_get): Within the generated get_attr_
4755 functions, rename param "insn" to "uncast_insn" and reintroduce
4756 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4757 is an rtx_insn * within insn-attrtab.c
4758
4759 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4760
4761 * output.h (peephole): Strengthen return type from rtx to
4762 rtx_insn *.
4763 * rtl.h (delete_for_peephole): Likewise for both params.
4764 * genpeep.c (main): In generated "peephole" function, strengthen
4765 return type and local "insn" from rtx to rtx_insn *. For now,
4766 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4767 rtx_insn *, with a checked cast.
4768 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4769 locals "insn", "next", "prev" from rtx to rtx_insn *.
4770
4771 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4772
4773 PR tree-optimization/62112
4774 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4775 * gimple-iterator.h (gsi_replace): Return bool.
4776 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4777 moved from ref_may_alias_global_p.
4778 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4779 New overloads.
4780 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4781 (stmt_kills_ref_p_1): Rename...
4782 (stmt_kills_ref_p): ... to this.
4783 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4784 stmt_kills_ref_p): Declare.
4785 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4786 Move the self-assignment case...
4787 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4788
4789 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4790
4791 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4792
4793 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4794 "after". For now, don't strengthen param "trial", which requires
4795 adding checked casts when returning it.
4796
4797 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4798
4799 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4800 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4801 "var_location" hook from rtx to rtx_insn *.
4802 (debug_nothing_rtx): Delete in favor of...
4803 (debug_nothing_rtx_code_label): New prototype.
4804 (debug_nothing_rtx_rtx): Delete unused prototype.
4805 (debug_nothing_rtx_insn): New prototype.
4806
4807 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4808 invoking debug_hooks->var_location (in two places, one in a NOTE
4809 case of a switch statement, the other guarded by a CALL_P
4810 conditional. Add checked cast to rtx_code_label * when invoking
4811 debug_hooks->label (within CODE_LABEL case of switch statement).
4812
4813 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4814 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4815 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4816 (xcoff_debug_hooks): Likewise.
4817 * debug.c (do_nothing_debug_hooks): Likewise.
4818 (debug_nothing_rtx): Delete in favor of...
4819 (debug_nothing_rtx_insn): New function.
4820 (debug_nothing_rtx_rtx): Delete unused function.
4821 (debug_nothing_rtx_code_label): New function.
4822 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4823 debug_nothing_rtx to debug_nothing_rtx_code_label.
4824 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4825 to rtx_insn *.
4826 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4827 debug_nothing_rtx to debug_nothing_rtx_insn.
4828 (sdbout_label): Strengthen param "insn" from rtx to
4829 rtx_code_label *.
4830 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4831 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4832 "var_location" hook from debug_nothing_rtx to
4833 debug_nothing_rtx_insn.
4834
4835 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4836
4837 * recog.h (insn_output_fn): Update this function typedef to match
4838 the changes below to the generated output functions, strengthening
4839 the 2nd param from rtx to rtx_insn *.
4840
4841 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4842 insn when invoking an output function, to match the new signature
4843 of insn_output_fn with a stronger second param.
4844
4845 * genconditions.c (write_header): In the generated code for
4846 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4847 to match the other changes in this patch.
4848
4849 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4850 the generated "gen_" functions from rtx to rtx_insn * within their
4851 implementations.
4852
4853 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4854 the subfunctions within the generated "recog_", "split", "peephole2"
4855 function trees from rtx to rtx_insn *. For now, the top-level
4856 generated functions ("recog", "split", "peephole2") continue to
4857 take a plain rtx for "insn", to avoid introducing dependencies on
4858 other patches. Rename this 2nd param from "insn" to
4859 "uncast_insn", and reintroduce "insn" as a local variable of type
4860 rtx_insn *, initialized at the top of the generated function with
4861 a checked cast on "uncast_insn".
4862 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4863 the generated "gen_" functions from rtx to rtx_insn * within their
4864 prototypes.
4865
4866 * genoutput.c (process_template): Strengthen the 2nd param within
4867 the generated "output_" functions "insn" from rtx to rtx_insn *.
4868
4869 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4870
4871 * tree-profile.c (tree_profiling): Skip external functions
4872 when doing coverage instrumentation.
4873 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4874
4875 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4876
4877 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4878 (vec_mergee): Likewise.
4879 (vec_mergeo): Likewise.
4880 (vec_cntlz): Likewise.
4881 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4882 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4883 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4884 VMRGEW, and VMRGOW.
4885 * doc/extend.texi: Document various forms of vec_cpsgn,
4886 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4887 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4888 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4889 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4890 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4891
4892 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4893
4894 * config/rs6000/rs6000.c (context.h): New include.
4895 (tree-pass.h): Likewise.
4896 (make_pass_analyze_swaps): New decl.
4897 (rs6000_option_override): Register pass_analyze_swaps.
4898 (swap_web_entry): New subsclass of web_entry_base (df.h).
4899 (special_handling_values): New enum.
4900 (union_defs): New function.
4901 (union_uses): Likewise.
4902 (insn_is_load_p): Likewise.
4903 (insn_is_store_p): Likewise.
4904 (insn_is_swap_p): Likewise.
4905 (rtx_is_swappable_p): Likewise.
4906 (insn_is_swappable_p): Likewise.
4907 (chain_purpose): New enum.
4908 (chain_contains_only_swaps): New function.
4909 (mark_swaps_for_removal): Likewise.
4910 (swap_const_vector_halves): Likewise.
4911 (adjust_subreg_index): Likewise.
4912 (permute_load): Likewise.
4913 (permute_store): Likewise.
4914 (handle_special_swappables): Likewise.
4915 (replace_swap_with_copy): Likewise.
4916 (dump_swap_insn_table): Likewise.
4917 (rs6000_analyze_swaps): Likewise.
4918 (pass_data_analyze_swaps): New pass_data.
4919 (pass_analyze_swaps): New rtl_opt_pass.
4920 (make_pass_analyze_swaps): New function.
4921 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4922
4923 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4924
4925 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4926 type from rtx to rtx_insn *.
4927 (create_copy_of_insn_rtx): Likewise.
4928 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4929 (create_copy_of_insn_rtx): Likewise, also for local "res".
4930
4931 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4932
4933 * rtl.h (find_first_parameter_load): Strengthen return type from
4934 rtx to rtx_insn *.
4935 * rtlanal.c (find_first_parameter_load): Strengthen return type
4936 from rtx to rtx_insn *. Add checked cast for now, to postpone
4937 strengthening the params.
4938
4939 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4940
4941 PR fortran/44054
4942 * diagnostic.c: Set default caret.
4943 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4944 line is needed.
4945 * diagnostic.h (struct diagnostic_context):
4946
4947 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4948
4949 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
4950 (sel_bb_head): Strengthen return type insn_t (currently just an
4951 rtx) to rtx_insn *.
4952 (sel_bb_end): Likewise.
4953
4954 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
4955 (sel_bb_head): Strengthen return type and local "head" from
4956 insn_t (currently just an rtx) to rtx_insn *.
4957 (sel_bb_end): Likewise for return type.
4958 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
4959 working with insn.
4960
4961 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4962
4963 * basic-block.h (get_last_bb_insn): Strengthen return type from
4964 rtx to rtx_insn *.
4965 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
4966 end".
4967
4968 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4969
4970 PR fortran/44054
4971 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
4972 to here ...
4973 (diagnostic_report_diagnostic): ... from here.
4974 * toplev.c (general_init): Move code to c-family.
4975
4976 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4977
4978 * df.h (web_entry_base): Replace existing struct web_entry with a
4979 new class web_entry_base with only the predecessor member.
4980 (unionfind_root): Remove declaration and move to class member.
4981 (unionfind_union): Remove declaration and move to friend
4982 function.
4983 (union_defs): Remove declaration.
4984 * web.c (web_entry_base::unionfind_root): Modify to be member
4985 function and adjust accessors.
4986 (unionfind_union): Modify to be friend function and adjust
4987 accessors.
4988 (web_entry): New subclass of web_entry_base containing the reg
4989 member.
4990 (union_match_dups): Modify for struct -> class changes.
4991 (union_defs): Likewise.
4992 (entry_register): Likewise.
4993 (pass_web::execute): Likewise.
4994
4995 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
4996
4997 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
4998 builtin define __VEC_ELEMENT_REG_ORDER__.
4999
5000 2014-08-20 Martin Jambor <mjambor@suse.cz>
5001 Wei Mi <wmi@google.com>
5002
5003 PR ipa/60449
5004 PR middle-end/61776
5005 * tree-ssa-operands.c (update_stmt_operands): Remove
5006 MODIFIED_NORETURN_CALLS.
5007 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5008 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5009 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5010 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5011 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5012 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5013 (gimple_call_set_ctrl_altering): New func.
5014 (gimple_call_ctrl_altering_p): Ditto.
5015 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5016 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5017 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5018 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5019 remove MODIFIED_NORETURN_CALLS.
5020
5021 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5022
5023 * coverage.c (coverage_compute_profile_id): Return non-0;
5024 also handle symbols with unique name.
5025 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5026
5027 2014-08-20 Steve Ellcey <sellcey@mips.com>
5028
5029 PR middle-end/49191
5030 * doc/sourcebuild.texi (non_strict_align): New.
5031
5032 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5033
5034 * cgraphunit.c (ipa_passes, compile): Reshedule
5035 symtab_remove_unreachable_nodes passes; update comments.
5036 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5037 TODO_remove_functions before the pass; the functions ought to be
5038 already removed.
5039 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5040 TODO_remove_functions.
5041 * passes.c (pass_data_early_local_passes): Do not schedule function
5042 removal.
5043 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5044
5045 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5046
5047 PR c/59304
5048 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5049 before setting the option.
5050 * diagnostic.c (diagnostic_classify_diagnostic): Record
5051 command-line status.
5052
5053 2014-08-20 Richard Biener <rguenther@suse.de>
5054
5055 PR lto/62190
5056 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5057 to build uint{16,32,64}_type_node.
5058
5059 2014-08-20 Terry Guo <terry.guo@arm.com>
5060
5061 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5062 with immediate_operand.
5063
5064 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5065
5066 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5067 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5068 NULL.
5069
5070 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5071
5072 PR preprocessor/51303
5073 * incpath.c (remove_duplicates): Use cpp_warning.
5074
5075 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5076
5077 PR c/60975
5078 PR c/53063
5079 * doc/options.texi (CPP): Document it.
5080 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5081 * optc-gen.awk: Handle CPP.
5082 * opth-gen.awk: Likewise.
5083
5084 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5085
5086 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5087 rtx_insn *.
5088 (duplicate_insn_chain): Likewise.
5089 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5090 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5091 checked cast for now (until we can strengthen the params in the
5092 same way).
5093 (duplicate_insn_chain): Likewise.
5094
5095 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5096
5097 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5098 rtx_insn *.
5099 (prev_cc0_setter): Likewise.
5100
5101 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5102 rtx_insn *, adding checked casts for now as necessary.
5103 (prev_cc0_setter): Likewise.
5104
5105 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5106
5107 * expr.h (emit_move_insn): Strengthen return type from rtx to
5108 rtx_insn *.
5109 (emit_move_insn_1): Likewise.
5110 (emit_move_complex_push): Likewise.
5111 (emit_move_complex_parts): Likewise.
5112
5113 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5114 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5115 with insns.
5116 (emit_move_complex_push): Strengthen return type from rtx to
5117 rtx_insn *.
5118 (emit_move_complex): Likewise, also for local "ret".
5119 (emit_move_ccmode): Likewise.
5120 (emit_move_multi_word): Likewise for return type and locals
5121 "last_insn", "seq".
5122 (emit_move_insn_1): Likewise for return type and locals "result",
5123 "ret".
5124 (emit_move_insn): Likewise for return type and local "last_insn".
5125 (compress_float_constant): Likewise.
5126
5127 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5128
5129 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5130 from rtx to rtx_insn *.
5131
5132 * rtl.h (emit_insn_before): Likewise.
5133 (emit_insn_before_noloc): Likewise.
5134 (emit_insn_before_setloc): Likewise.
5135 (emit_jump_insn_before): Likewise.
5136 (emit_jump_insn_before_noloc): Likewise.
5137 (emit_jump_insn_before_setloc): Likewise.
5138 (emit_call_insn_before): Likewise.
5139 (emit_call_insn_before_noloc): Likewise.
5140 (emit_call_insn_before_setloc): Likewise.
5141 (emit_debug_insn_before): Likewise.
5142 (emit_debug_insn_before_noloc): Likewise.
5143 (emit_debug_insn_before_setloc): Likewise.
5144 (emit_label_before): Likewise.
5145 (emit_insn_after): Likewise.
5146 (emit_insn_after_noloc): Likewise.
5147 (emit_insn_after_setloc): Likewise.
5148 (emit_jump_insn_after): Likewise.
5149 (emit_jump_insn_after_noloc): Likewise.
5150 (emit_jump_insn_after_setloc): Likewise.
5151 (emit_call_insn_after): Likewise.
5152 (emit_call_insn_after_noloc): Likewise.
5153 (emit_call_insn_after_setloc): Likewise.
5154 (emit_debug_insn_after): Likewise.
5155 (emit_debug_insn_after_noloc): Likewise.
5156 (emit_debug_insn_after_setloc): Likewise.
5157 (emit_label_after): Likewise.
5158 (emit_insn): Likewise.
5159 (emit_debug_insn): Likewise.
5160 (emit_jump_insn): Likewise.
5161 (emit_call_insn): Likewise.
5162 (emit_label): Likewise.
5163 (gen_clobber): Likewise.
5164 (emit_clobber): Likewise.
5165 (gen_use): Likewise.
5166 (emit_use): Likewise.
5167 (emit): Likewise.
5168
5169 (emit_barrier_before): Strengthen return type from rtx to
5170 rtx_barrier *.
5171 (emit_barrier_after): Likewise.
5172 (emit_barrier): Likewise.
5173
5174 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5175 from rtx to rtx_insn *. Add checked casts for now when converting
5176 "last" from rtx to rtx_insn *.
5177 (emit_insn_before_noloc): Likewise for return type.
5178 (emit_jump_insn_before_noloc): Likewise.
5179 (emit_call_insn_before_noloc): Likewise.
5180 (emit_debug_insn_before_noloc): Likewise.
5181 (emit_barrier_before): Strengthen return type and local "insn"
5182 from rtx to rtx_barrier *.
5183 (emit_label_before): Strengthen return type from rtx to
5184 rtx_insn *. Add checked cast for now when returning param
5185 (emit_pattern_after_noloc): Strengthen return type from rtx to
5186 rtx_insn *. Add checked casts for now when converting "last" from
5187 rtx to rtx_insn *.
5188 (emit_insn_after_noloc): Strengthen return type from rtx to
5189 rtx_insn *.
5190 (emit_jump_insn_after_noloc): Likewise.
5191 (emit_call_insn_after_noloc): Likewise.
5192 (emit_debug_insn_after_noloc): Likewise.
5193 (emit_barrier_after): Strengthen return type from rtx to
5194 rtx_barrier *.
5195 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5196 Add checked cast for now when converting "label" from rtx to
5197 rtx_insn *.
5198 (emit_pattern_after_setloc): Strengthen return type from rtx to
5199 rtx_insn *. Add checked casts for now when converting "last" from
5200 rtx to rtx_insn *.
5201 (emit_pattern_after): Strengthen return type from rtx to
5202 rtx_insn *.
5203 (emit_insn_after_setloc): Likewise.
5204 (emit_insn_after): Likewise.
5205 (emit_jump_insn_after_setloc): Likewise.
5206 (emit_jump_insn_after): Likewise.
5207 (emit_call_insn_after_setloc): Likewise.
5208 (emit_call_insn_after): Likewise.
5209 (emit_debug_insn_after_setloc): Likewise.
5210 (emit_debug_insn_after): Likewise.
5211 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5212 when converting "last" from rtx to rtx_insn *.
5213 (emit_pattern_before): Strengthen return type from rtx to
5214 rtx_insn *.
5215 (emit_insn_before_setloc): Likewise.
5216 (emit_insn_before): Likewise.
5217 (emit_jump_insn_before_setloc): Likewise.
5218 (emit_jump_insn_before): Likewise.
5219 (emit_call_insn_before_setloc): Likewise.
5220 (emit_call_insn_before): Likewise.
5221 (emit_debug_insn_before_setloc): Likewise.
5222 (emit_debug_insn_before): Likewise.
5223 (emit_insn): Strengthen return type and locals "last", "insn",
5224 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5225 within cases where we know we have an insn.
5226 (emit_debug_insn): Likewise.
5227 (emit_jump_insn): Likewise.
5228 (emit_call_insn): Strengthen return type and local "insn" from rtx
5229 to rtx_insn *.
5230 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5231 a checked cast to rtx_insn * for now on "label".
5232 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5233 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5234 (emit_use): Likewise.
5235 (gen_use): Likewise, also for local "seq".
5236 (emit): Likewise for return type and local "insn".
5237 (rtx_insn): Likewise for return type and local "new_rtx".
5238
5239 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5240 from rtx to rtx_barrier *.
5241
5242 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5243 changed return type from rtx to rtx_insn *, we must update
5244 "emit_fn" type, and this in turn means updating...
5245 (frame_insn): ...this. Strengthen return type from rtx to
5246 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5247
5248 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5249
5250 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5251 rtx to rtx_jump_table_data *. Also for local.
5252 * rtl.h (emit_jump_table_data): Likewise.
5253
5254 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5255
5256 * basic-block.h (create_basic_block_structure): Strengthen third
5257 param "bb_note" from rtx to rtx_note *.
5258 * rtl.h (emit_note_before): Strengthen return type from rtx to
5259 rtx_note *.
5260 (emit_note_after): Likewise.
5261 (emit_note): Likewise.
5262 (emit_note_copy): Likewise. Also, strengthen param similarly.
5263 * function.h (struct rtl_data): Strengthen field
5264 "x_stack_check_probe_note" from rtx to rtx_note *.
5265
5266 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5267 from rtx to rtx_note *.
5268 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5269 "bb_note" from rtx to rtx_note *.
5270 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5271 when calling emit_note_copy.
5272 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5273 rtx_note *.
5274 (emit_note_after): Likewise.
5275 (emit_note_before): Likewise.
5276 (emit_note_copy): Likewise. Also, strengthen param similarly.
5277 (emit_note): Likewise.
5278 * except.c (emit_note_eh_region_end): Likewise for return type.
5279 Strengthen local "next" from rtx to rtx_insn *.
5280 (convert_to_eh_region_ranges): Strengthen local "note"
5281 from rtx to rtx_note *.
5282 * final.c (change_scope): Likewise.
5283 (reemit_insn_block_notes): Likewise, for both locals named "note".
5284 Also, strengthen local "insn" from rtx to rtx_insn *.
5285 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5286 rtx to rtx_note *.
5287 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5288 strengthen local "seq" from rtx to rtx_insn *.
5289 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5290 to rtx_note *.
5291 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5292 vec<rtx_note *>.
5293 (get_bb_note_from_pool): Strengthen return type from rtx to
5294 rtx_note *.
5295 (sel_create_basic_block): Strengthen local "new_bb_note" from
5296 insn_t to rtx_note *.
5297 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5298 "note" from rtx to rtx_note *.
5299 (emit_notes_in_bb): Likewise.
5300
5301 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5302
5303 * function.h (struct rtl_data): Strengthen field
5304 "x_parm_birth_insn" from rtx to rtx_insn *.
5305 * function.c (struct assign_parm_data_all): Strengthen fields
5306 "first_conversion_insn" and "last_conversion_insn" from rtx to
5307 rtx_insn *.
5308
5309 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5310
5311 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5312 to rtx_insn *; also for local "var_end_seq".
5313 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5314 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5315 "insn".
5316 (expand_gimple_cond): Likewise for locals "last2" and "last".
5317 (mark_transaction_restart_calls): Likewise for local "insn".
5318 (expand_gimple_stmt): Likewise for return type and locals "last"
5319 and "insn".
5320 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5321 (avoid_complex_debug_insns): Likewise for param "insn".
5322 (expand_debug_locations): Likewise for locals "insn", "last",
5323 "prev_insn" and "insn2".
5324 (expand_gimple_basic_block): Likewise for local "last".
5325 (construct_exit_block): Likewise for locals "head", "end",
5326 "orig_end".
5327 (pass_expand::execute): Likewise for locals "var_seq",
5328 "var_ret_seq", "next".
5329
5330 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5331
5332 * asan.h (asan_emit_stack_protection): Strengthen return type from
5333 rtx to rtx_insn *.
5334 * asan.c (asan_emit_stack_protection): Likewise. Add local
5335 "insns" to hold the return value.
5336
5337 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5338
5339 * basic-block.h (bb_note): Strengthen return type from rtx to
5340 rtx_note *.
5341 * sched-int.h (bb_note): Likewise.
5342 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5343
5344 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5345
5346 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5347 rtx_insn *.
5348
5349 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5350 "insn" from rtx to rtx_insn *.
5351 (make_debug_insn_raw): Strengthen return type from rtx to
5352 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5353 (make_jump_insn_raw): Strengthen return type from rtx to
5354 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5355 (make_call_insn_raw): Strengthen return type from rtx to
5356 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5357 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5358 callback from rtx to rtx_insn *; likewise for local "insn" and
5359 "next", adding a checked cast to rtx_insn in the relevant cases of
5360 the switch statement.
5361 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5362 callback from rtx to rtx_insn *.
5363 (emit_pattern_after_setloc): Likewise.
5364 (emit_pattern_after): Likewise.
5365 (emit_pattern_before_setloc): Likewise.
5366 (emit_pattern_before): Likewise.
5367
5368 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5369
5370 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5371 rtx_call_insn *.
5372 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5373 accepting an rtx_insn *.
5374 (last_call_insn): Strengthen return type from rtx to
5375 rtx_call_insn *.
5376
5377 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5378
5379 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5380 "insns" from rtx to rtx_insn *.
5381 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5382 locals "insn" and "prev".
5383
5384 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5385
5386 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5387 rtx_jump_table_data **.
5388
5389 * cfgbuild.c (make_edges): Introduce local "table", using it in
5390 place of "tmp" for jump table data.
5391 (find_bb_boundaries): Strengthen local "table" from rtx to
5392 rtx_jump_table_data *.
5393 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5394 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5395 (try_crossjump_to_edge): Likewise.
5396 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5397 "table".
5398 (patch_jump_insn): Introduce local "table", using it in place of
5399 "tmp" for jump table data.
5400 (force_nonfallthru_and_redirect): Introduce local "table", so that
5401 call to tablejump_p can receive an rtx_jump_table_data **. Update
5402 logic around the call to overwrite "note" appropriately if
5403 tablejump_p returns non-zero.
5404 (get_last_bb_insn): Introduce local "table", using it in place of
5405 "tmp" for jump table data.
5406 * dwarf2cfi.c (create_trace_edges): Likewise.
5407
5408 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5409 from rtx to rtx_jump_table_data *.
5410 (create_fix_barrier): Strengthen local "tmp" from rtx to
5411 rtx_jump_table_data *.
5412 (arm_reorg): Likewise for local "table".
5413
5414 * config/s390/s390.c (s390_chunkify_start): Likewise.
5415
5416 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5417
5418 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5419 rtx to rtx_jump_table_data *.
5420
5421 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5422 rtx_jump_table_data **. Add a checked cast when writing through
5423 the pointer: we know there that local "table" is non-NULL and that
5424 JUMP_TABLE_DATA_P (table) holds.
5425 (label_is_jump_target_p): Introduce local "table", using it in
5426 place of "tmp" for jump table data.
5427
5428 2014-08-19 Marek Polacek <polacek@redhat.com>
5429
5430 PR c++/62153
5431 * doc/invoke.texi: Document -Wbool-compare.
5432
5433 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5434
5435 * rtl.h (entry_of_function): Strengthen return type from rtx to
5436 rtx_insn *.
5437 * cfgrtl.c (entry_of_function): Likewise.
5438
5439 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5440
5441 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5442 rtx_insn *, adding a checked cast for now.
5443 (get_last_insn): Likewise.
5444
5445 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5446
5447 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5448 rtx_code_label *.
5449
5450 * emit-rtl.c (gen_label_rtx): Likewise.
5451
5452 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5453
5454 * rtl.h (previous_insn): Strengthen return type from rtx to
5455 rtx_insn *.
5456 (next_insn): Likewise.
5457 (prev_nonnote_insn): Likewise.
5458 (prev_nonnote_insn_bb): Likewise.
5459 (next_nonnote_insn): Likewise.
5460 (next_nonnote_insn_bb): Likewise.
5461 (prev_nondebug_insn): Likewise.
5462 (next_nondebug_insn): Likewise.
5463 (prev_nonnote_nondebug_insn): Likewise.
5464 (next_nonnote_nondebug_insn): Likewise.
5465 (prev_real_insn): Likewise.
5466 (next_real_insn): Likewise.
5467 (prev_active_insn): Likewise.
5468 (next_active_insn): Likewise.
5469
5470 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5471 rtx_insn *, adding a checked cast.
5472 (previous_insn): Likewise.
5473 (next_nonnote_insn): Likewise.
5474 (next_nonnote_insn_bb): Likewise.
5475 (prev_nonnote_insn): Likewise.
5476 (prev_nonnote_insn_bb): Likewise.
5477 (next_nondebug_insn): Likewise.
5478 (prev_nondebug_insn): Likewise.
5479 (next_nonnote_nondebug_insn): Likewise.
5480 (prev_nonnote_nondebug_insn): Likewise.
5481 (next_real_insn): Likewise.
5482 (prev_real_insn): Likewise.
5483 (next_active_insn): Likewise.
5484 (prev_active_insn): Likewise.
5485
5486 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5487 param "stepfunc" so that it returns an rtx_insn * rather than an
5488 rtx, to track the change to prev_nonnote_insn_bb, which is the
5489 only function this is called with.
5490 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5491
5492 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5493
5494 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5495 assert.
5496
5497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5498
5499 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5500 (class rtx_nonjump_insn): Likewise.
5501 (class rtx_jump_insn): Likewise.
5502 (class rtx_call_insn): Likewise.
5503 (class rtx_jump_table_data): Likewise.
5504 (class rtx_barrier): Likewise.
5505 (class rtx_code_label): Likewise.
5506 (class rtx_note): Likewise.
5507
5508 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5509 adding the invariant DEBUG_INSN_P (X).
5510 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5511 the invariant NONJUMP_INSN_P (X).
5512 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5513 the invariant JUMP_P (X).
5514 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5515 the invariant CALL_P (X).
5516 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5517 invariant JUMP_TABLE_DATA_P (X).
5518 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5519 invariant BARRIER_P (X).
5520 (class rtx_code_label): New, a subclass of rtx_insn, adding
5521 the invariant LABEL_P (X).
5522 (class rtx_note): New, a subclass of rtx_insn, adding
5523 the invariant NOTE_P(X).
5524 (is_a_helper <rtx_debug_insn *>::test): New.
5525 (is_a_helper <rtx_nonjump_insn *>::test): New.
5526 (is_a_helper <rtx_jump_insn *>::test): New.
5527 (is_a_helper <rtx_call_insn *>::test): New.
5528 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5529 overloaded for both rtx and rtx_insn *.
5530 (is_a_helper <rtx_barrier *>::test): New.
5531 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5532 for both rtx and rtx_insn *.
5533 (is_a_helper <rtx_note *>::test): New.
5534
5535 2014-08-19 Marek Polacek <polacek@redhat.com>
5536
5537 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5538 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5539 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5540 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5541
5542 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5543
5544 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5545 rtx_insn *. To help with transition, for now, convert from an
5546 access macro into a pair of functions: BND_TO, returning an
5547 rtx_insn *, and...
5548 (SET_BND_TO): New function, for use where BND_TO is used as an
5549 lvalue.
5550
5551 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5552 SET_BND_TO.
5553 (BND_TO): New function, adding a checked cast.
5554 (SET_BND_TO): New function.
5555
5556 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5557 SET_BND_TO.
5558 (compute_av_set_on_boundaries): Likewise.
5559
5560 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5561
5562 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5563 destination if it is used in source.
5564 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5565 (*popcount<mode>2_falsedep_1): Likewise.
5566
5567 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5568
5569 PR other/62168
5570 * configure.ac: Set install_gold_as_default to no first.
5571 * configure: Regenerated.
5572
5573 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5574
5575 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5576 "note_list" field will eventually be an rtx_insn *. To help with
5577 transition, for now, convert from an access macro into a pair of
5578 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5579 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5580 used as an lvalue.
5581
5582 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5583 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5584
5585 * sel-sched-ir.c (init_bb): Likewise.
5586 (sel_restore_notes): Likewise.
5587 (move_bb_info): Likewise.
5588 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5589 (SET_BB_NOTE_LIST): New function.
5590
5591 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5592
5593 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5594 field will eventually be an rtx_insn *. To help with transition,
5595 for now, convert from an access macro into a pair of functions:
5596 VINSN_INSN_RTX, returning an rtx_insn *, and...
5597 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5598 is used as an lvalue.
5599
5600 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5601 SET_VINSN_INSN_RTX where it's used as an lvalue.
5602 (VINSN_INSN_RTX): New function.
5603 (SET_VINSN_INSN_RTX): New function.
5604
5605 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5606
5607 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5608 eventually be rtx_insn *, but to help with transition, for now,
5609 convert from an access macro into a pair of functions: DEP_PRO
5610 returning an rtx_insn * and...
5611 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5612 lvalue, returning an rtx&.
5613 (DEP_CON): Analogous changes to DEP_PRO above.
5614 (SET_DEP_CON): Likewise.
5615
5616 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5617 an lvalue to SET_DEP_CON.
5618 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5619 (sd_copy_back_deps): Likewise for DEP_CON.
5620 (DEP_PRO): New function, adding a checked cast for now.
5621 (DEP_CON): Likewise.
5622 (SET_DEP_PRO): New function.
5623 (SET_DEP_CON): Likewise.
5624
5625 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5626
5627 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5628 (extra_options): Add i386/cygwin.opt.
5629 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5630 (CPP_SPEC): Accept -pthread.
5631 (LINK_SPEC): Ditto.
5632 (GOMP_SELF_SPECS): Update comment.
5633 * config/i386/cygwin.opt: New file for -pthread flag.
5634
5635 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5636
5637 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5638 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5639 that we can return an rtx_insn *.
5640
5641 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5642
5643 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5644 when building executables, not DLLs. Add --large-address-aware
5645 under the same conditions.
5646 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5647 when building executables, not DLLs. Add --large-address-aware
5648 under the same conditions when using -m32.
5649
5650 * config/i386/cygwin-stdint.h: Throughout, make type
5651 definitions dependent on target architecture, not host.
5652
5653 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5654
5655 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5656 the return type from rtx to rtx_insn *, which will enable various
5657 conversions in followup patches. For now this is is done by a
5658 checked cast.
5659 (NEXT_INSN): Likewise.
5660 (SET_PREV_INSN): Convert to an inline function. This is intended
5661 for use as an lvalue, and so returns an rtx& to allow in-place
5662 modification.
5663 (SET_NEXT_INSN): Likewise.
5664
5665 2014-07-08 Mark Wielaard <mjw@redhat.com>
5666
5667 PR debug/59051
5668 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5669
5670 2014-08-19 Marek Polacek <polacek@redhat.com>
5671
5672 PR c/61271
5673 * cgraphunit.c (handle_alias_pairs): Fix condition.
5674
5675 2014-08-19 Richard Biener <rguenther@suse.de>
5676
5677 * gimple-fold.c (fold_gimple_assign): Properly build a
5678 null-pointer constant when devirtualizing addresses.
5679
5680 2014-07-07 Mark Wielaard <mjw@redhat.com>
5681
5682 * dwarf2out.c (decl_quals): New function.
5683 (modified_type_die): Take one cv_quals argument instead of two,
5684 one for const and one for volatile.
5685 (add_type_attribute): Likewise.
5686 (generic_parameter_die): Call add_type_attribute with one modifier
5687 argument.
5688 (base_type_for_mode): Likewise.
5689 (add_bounds_info): Likewise.
5690 (add_subscript_info): Likewise.
5691 (gen_array_type_die): Likewise.
5692 (gen_descr_array_type_die): Likewise.
5693 (gen_entry_point_die): Likewise.
5694 (gen_enumeration_type_die): Likewise.
5695 (gen_formal_parameter_die): Likewise.
5696 (gen_subprogram_die): Likewise.
5697 (gen_variable_die): Likewise.
5698 (gen_const_die): Likewise.
5699 (gen_field_die): Likewise.
5700 (gen_pointer_type_die): Likewise.
5701 (gen_reference_type_die): Likewise.
5702 (gen_ptr_to_mbr_type_die): Likewise.
5703 (gen_inheritance_die): Likewise.
5704 (gen_subroutine_type_die): Likewise.
5705 (gen_typedef_die): Likewise.
5706 (force_type_die): Likewise.
5707
5708 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709
5710 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5711 if unset.
5712 * configure: Regenerate.
5713
5714 2014-08-19 Richard Biener <rguenther@suse.de>
5715
5716 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5717 DECL_EXTERNALs in BLOCKs as non-references.
5718 * tree-streamer-out.c (streamer_write_chain): Likewise.
5719
5720 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5721 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5722 Anna Tikhonova <anna.tikhonova@intel.com>
5723 Ilya Tocar <ilya.tocar@intel.com>
5724 Andrey Turetskiy <andrey.turetskiy@intel.com>
5725 Ilya Verbin <ilya.verbin@intel.com>
5726 Kirill Yukhin <kirill.yukhin@intel.com>
5727 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5728
5729 * config/i386/sse.md
5730 (define_mode_iterator VI48_AVX512F): Delete.
5731 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5732 (define_mode_iterator VI2_AVX512VL): Ditto.
5733 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5734 Delete.
5735 (define_insn
5736 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5737 New.
5738 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5739 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5740 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5741 with VI48_AVX512F_AVX512VL): New.
5742 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5743 with VI2_AVX512VL): Ditto.
5744
5745 2014-08-19 Marek Polacek <polacek@redhat.com>
5746
5747 * doc/invoke.texi: Document -Wc99-c11-compat.
5748
5749 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5750
5751 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5752 for rvalues, and...
5753 (SET_PREV_INSN): New macro, for use as an lvalue.
5754 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5755
5756 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5757 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5758 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5759 (fixup_abnormal_edges): Likewise.
5760 (unlink_insn_chain): Likewise.
5761 (fixup_reorder_chain): Likewise.
5762 (cfg_layout_delete_block): Likewise.
5763 (cfg_layout_merge_blocks): Likewise.
5764 * combine.c (update_cfg_for_uncondjump): Likewise.
5765 * emit-rtl.c (link_insn_into_chain): Likewise.
5766 (remove_insn): Likewise.
5767 (delete_insns_since): Likewise.
5768 (reorder_insns_nobb): Likewise.
5769 (emit_insn_after_1): Likewise.
5770 * final.c (rest_of_clean_state): Likewise.
5771 (final_scan_insn): Likewise.
5772 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5773 * haifa-sched.c (concat_note_lists): Likewise.
5774 (remove_notes): Likewise.
5775 (restore_other_notes): Likewise.
5776 (move_insn): Likewise.
5777 (unlink_bb_notes): Likewise.
5778 (restore_bb_notes): Likewise.
5779 * jump.c (delete_for_peephole): Likewise.
5780 * optabs.c (emit_libcall_block_1): Likewise.
5781 * reorg.c (emit_delay_sequence): Likewise.
5782 (fill_simple_delay_slots): Likewise.
5783 * sel-sched-ir.c (sel_move_insn): Likewise.
5784 (sel_remove_insn): Likewise.
5785 (get_bb_note_from_pool): Likewise.
5786 * sel-sched.c (move_nop_to_previous_block): Likewise.
5787
5788 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5789 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5790 (c6x_gen_bundles): Likewise.
5791 (hwloop_optimize): Likewise.
5792 * config/frv/frv.c (frv_function_prologue): Likewise.
5793 (frv_register_nop): Likewise.
5794 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5795 (ia64_reorg): Likewise.
5796 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5797 (mep_make_bundle): Likewise.
5798 (mep_bundle_insns): Likewise.
5799 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5800 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5801 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5802
5803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5804
5805 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5806 return type from rtx to rtx_insn *.
5807 (BB_END): Likewise.
5808 (BB_HEADER): Likewise.
5809 (BB_FOOTER): Likewise.
5810 (SET_BB_HEAD): Convert to a function.
5811 (SET_BB_END): Likewise.
5812 (SET_BB_HEADER): Likewise.
5813 (SET_BB_FOOTER): Likewise.
5814
5815 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5816 Strengthen the return type from rtx to rtx_insn *. For now, this
5817 is done by adding a checked cast, but this will eventually
5818 become a field lookup.
5819 (BB_END): Likewise.
5820 (BB_HEADER): Likewise.
5821 (BB_FOOTER): Likewise.
5822 (SET_BB_HEAD): New function, from macro of same name. This is
5823 intended for use as an lvalue, and so returns an rtx& to allow
5824 in-place modification.
5825 (SET_BB_END): Likewise.
5826 (SET_BB_HEADER): Likewise.
5827 (SET_BB_FOOTER): Likewise.
5828
5829 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5830
5831 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5832 for rvalues, and...
5833 (SET_BB_HEAD): New macro, for use as a lvalue.
5834 (BB_END, SET_BB_END): Likewise.
5835 (BB_HEADER, SET_BB_HEADER): Likewise.
5836 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5837
5838 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5839 of BB_* macros into SET_BB_* macros.
5840 (fix_crossing_unconditional_branches): Likewise.
5841 * caller-save.c (save_call_clobbered_regs): Likewise.
5842 (insert_one_insn): Likewise.
5843 * cfgbuild.c (find_bb_boundaries): Likewise.
5844 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5845 (outgoing_edges_match): Likewise.
5846 (try_optimize_cfg): Likewise.
5847 * cfgexpand.c (expand_gimple_cond): Likewise.
5848 (expand_gimple_tailcall): Likewise.
5849 (expand_gimple_basic_block): Likewise.
5850 (construct_exit_block): Likewise.
5851 * cfgrtl.c (delete_insn): Likewise.
5852 (create_basic_block_structure): Likewise.
5853 (rtl_delete_block): Likewise.
5854 (rtl_split_block): Likewise.
5855 (emit_nop_for_unique_locus_between): Likewise.
5856 (rtl_merge_blocks): Likewise.
5857 (block_label): Likewise.
5858 (try_redirect_by_replacing_jump): Likewise.
5859 (emit_barrier_after_bb): Likewise.
5860 (fixup_abnormal_edges): Likewise.
5861 (record_effective_endpoints): Likewise.
5862 (relink_block_chain): Likewise.
5863 (fixup_reorder_chain): Likewise.
5864 (fixup_fallthru_exit_predecessor): Likewise.
5865 (cfg_layout_duplicate_bb): Likewise.
5866 (cfg_layout_split_block): Likewise.
5867 (cfg_layout_delete_block): Likewise.
5868 (cfg_layout_merge_blocks): Likewise.
5869 * combine.c (update_cfg_for_uncondjump): Likewise.
5870 * emit-rtl.c (add_insn_after): Likewise.
5871 (remove_insn): Likewise.
5872 (reorder_insns): Likewise.
5873 (emit_insn_after_1): Likewise.
5874 * haifa-sched.c (get_ebb_head_tail): Likewise.
5875 (restore_other_notes): Likewise.
5876 (move_insn): Likewise.
5877 (sched_extend_bb): Likewise.
5878 (fix_jump_move): Likewise.
5879 * ifcvt.c (noce_process_if_block): Likewise.
5880 (dead_or_predicable): Likewise.
5881 * ira.c (update_equiv_regs): Likewise.
5882 * reg-stack.c (change_stack): Likewise.
5883 * sel-sched-ir.c (sel_move_insn): Likewise.
5884 * sel-sched.c (move_nop_to_previous_block): Likewise.
5885
5886 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5887 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5888
5889 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5890
5891 * rtl.h (for_each_rtx_in_insn): New function.
5892 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5893
5894 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5895
5896 * coretypes.h (class rtx_insn): Add forward declaration.
5897
5898 * rtl.h: Include is-a.h.
5899 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5900 workaround to ensure gengtype knows inheritance is occurring,
5901 whilst continuing to use the pre-existing special-casing for
5902 rtx_def.
5903 (class rtx_insn): New subclass of rtx_def, adding the
5904 invariant that we're dealing with something we can sanely use
5905 INSN_UID, NEXT_INSN, PREV_INSN on.
5906 (is_a_helper <rtx_insn *>::test): New.
5907 (is_a_helper <const rtx_insn *>::test): New.
5908
5909 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5910
5911 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5912
5913 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5914
5915 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5916 comdats as extern.
5917
5918 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5919
5920 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5921 to BUILT_IN_UNREACHABLE.
5922
5923 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5924
5925 PR target/62011
5926 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5927 New tune flag.
5928 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5929 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5930 (ffs<mode>2): Do not expand with tzcnt for
5931 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5932 (ffssi2_no_cmove): Ditto.
5933 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5934 (ctz<mode>2): New expander.
5935 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5936 (*ctz<mode>2_falsedep): New insn.
5937 (*ctz<mode>2): Rename from ctz<mode>2.
5938 (clz<mode>2_lzcnt): New expander.
5939 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5940 (*clz<mode>2_lzcnt_falsedep): New insn.
5941 (*clz<mode>2): Rename from ctz<mode>2.
5942 (popcount<mode>2): New expander.
5943 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5944 (*popcount<mode>2_falsedep): New insn.
5945 (*popcount<mode>2): Rename from ctz<mode>2.
5946 (*popcount<mode>2_cmp): Remove.
5947 (*popcountsi2_cmp_zext): Ditto.
5948
5949 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
5950
5951 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
5952 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
5953 * config/microblaze/microblaze.h
5954 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
5955
5956 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
5957
5958 PR other/62168
5959 * configure.ac: Set install_gold_as_default to no for
5960 --enable-gold=no.
5961 * configure: Regenerated.
5962
5963 2014-08-18 Roman Gareev <gareevroman@gmail.com>
5964
5965 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
5966 * config.in: Add undef of HAVE_isl.
5967 * configure: Regenerate.
5968 * configure.ac: Add definition of HAVE_isl.
5969 * graphite-blocking.c: Add checking of HAVE_isl.
5970 * graphite-dependences.c: Likewise.
5971 * graphite-interchange.c: Likewise.
5972 * graphite-isl-ast-to-gimple.c: Likewise.
5973 * graphite-optimize-isl.c: Likewise.
5974 * graphite-poly.c: Likewise.
5975 * graphite-scop-detection.c: Likewise.
5976 * graphite-sese-to-poly.c: Likewise.
5977 * graphite.c: Likewise.
5978 * toplev.c: Replace the checking of HAVE_cloog with the checking
5979 of HAVE_isl.
5980
5981 2014-08-18 Richard Biener <rguenther@suse.de>
5982
5983 PR tree-optimization/62090
5984 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
5985 (fold_builtin_3): Do not fold snprintf.
5986 (fold_builtin_4): Likewise.
5987 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
5988 moved from builtins.c.
5989 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
5990 (gimple_fold_builtin): Do not fold sprintf here.
5991
5992 2014-08-18 Richard Biener <rguenther@suse.de>
5993
5994 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
5995 code to ...
5996 (maybe_canonicalize_mem_ref_addr): ... this function.
5997 (fold_stmt_1): Apply it here before all simplification.
5998
5999 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6000
6001 PR ipa/61800
6002 * cgraph.h (cgraph_node::create_indirect_edge): Add
6003 compute_indirect_info param.
6004 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6005 indirect_info only when it is required.
6006 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6007 indirect_info fore cloned indirect edge.
6008
6009 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6010 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6011 Anna Tikhonova <anna.tikhonova@intel.com>
6012 Ilya Tocar <ilya.tocar@intel.com>
6013 Andrey Turetskiy <andrey.turetskiy@intel.com>
6014 Ilya Verbin <ilya.verbin@intel.com>
6015 Kirill Yukhin <kirill.yukhin@intel.com>
6016 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6017
6018 * config/i386/sse.md
6019 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6020 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6021
6022 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6023 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6024 Anna Tikhonova <anna.tikhonova@intel.com>
6025 Ilya Tocar <ilya.tocar@intel.com>
6026 Andrey Turetskiy <andrey.turetskiy@intel.com>
6027 Ilya Verbin <ilya.verbin@intel.com>
6028 Kirill Yukhin <kirill.yukhin@intel.com>
6029 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6030
6031 * config/i386/sse.md
6032 (define_mode_iterator VF1_AVX512VL): New.
6033 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6034 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6035 New.
6036
6037 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6038 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6039 Anna Tikhonova <anna.tikhonova@intel.com>
6040 Ilya Tocar <ilya.tocar@intel.com>
6041 Andrey Turetskiy <andrey.turetskiy@intel.com>
6042 Ilya Verbin <ilya.verbin@intel.com>
6043 Kirill Yukhin <kirill.yukhin@intel.com>
6044 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6045
6046 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6047 * config/i386/i386.md
6048 (define_code_iterator any_float): New.
6049 (define_code_attr floatsuffix): New.
6050 * config/i386/sse.md
6051 (define_mode_iterator VF1_128_256VL): New.
6052 (define_mode_iterator VF2_512_256VL): New.
6053 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6054 TARGET check.
6055 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6056 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6057 New.
6058 (define_mode_attr qq2pssuff): New.
6059 (define_mode_attr sselongvecmode): New.
6060 (define_mode_attr sselongvecmodelower): New.
6061 (define_mode_attr sseintvecmode3): New.
6062 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6063 New.
6064 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6065 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6066 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6067 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6068
6069 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6070 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6071 Anna Tikhonova <anna.tikhonova@intel.com>
6072 Ilya Tocar <ilya.tocar@intel.com>
6073 Andrey Turetskiy <andrey.turetskiy@intel.com>
6074 Ilya Verbin <ilya.verbin@intel.com>
6075 Kirill Yukhin <kirill.yukhin@intel.com>
6076 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6077
6078 * config/i386/sse.md
6079 (define_mode_iterator VF2_AVX512VL): New.
6080 (define_mode_attr sseintvecmode2): New.
6081 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6082 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6083 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6084 (define_insn
6085 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6086 Ditto.
6087 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6088 Ditto.
6089 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6090 Ditto.
6091
6092 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6093 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6094 Anna Tikhonova <anna.tikhonova@intel.com>
6095 Ilya Tocar <ilya.tocar@intel.com>
6096 Andrey Turetskiy <andrey.turetskiy@intel.com>
6097 Ilya Verbin <ilya.verbin@intel.com>
6098 Kirill Yukhin <kirill.yukhin@intel.com>
6099 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6100
6101 * config/i386/i386.md
6102 (define_insn "*movoi_internal_avx"): Add evex version.
6103 (define_insn "*movti_internal"): Ditto.
6104
6105 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6106 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6107 Anna Tikhonova <anna.tikhonova@intel.com>
6108 Ilya Tocar <ilya.tocar@intel.com>
6109 Andrey Turetskiy <andrey.turetskiy@intel.com>
6110 Ilya Verbin <ilya.verbin@intel.com>
6111 Kirill Yukhin <kirill.yukhin@intel.com>
6112 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6113
6114 * config/i386/i386.md
6115 (define_attr "isa"): Add avx512dq, noavx512dq.
6116 (define_attr "enabled"): Ditto.
6117 * config/i386/sse.md
6118 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6119
6120 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6122 Anna Tikhonova <anna.tikhonova@intel.com>
6123 Ilya Tocar <ilya.tocar@intel.com>
6124 Andrey Turetskiy <andrey.turetskiy@intel.com>
6125 Ilya Verbin <ilya.verbin@intel.com>
6126 Kirill Yukhin <kirill.yukhin@intel.com>
6127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6128
6129 * config/i386/i386.c
6130 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6131 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6132 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6133 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6134 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6135 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6136 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6137 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6138 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6139 * config/i386/sse.md
6140 (define_mode_iterator VMOVE): Allow V4TI mode.
6141 (define_mode_iterator V_AVX512VL): New.
6142 (define_mode_iterator V): New handling for AVX512VL.
6143 (define_insn "avx512f_load<mode>_mask"): Delete.
6144 (define_insn "<avx512>_load<mode>_mask"): New.
6145 (define_insn "avx512f_store<mode>_mask"): Delete.
6146 (define_insn "<avx512>_store<mode>_mask"): New.
6147
6148
6149 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6150
6151 PR sanitizer/62089
6152 * asan.c (instrument_derefs): Fix bitfield check.
6153
6154 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6155
6156 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6157 * config/rs6000/htm.md (ttest): Remove clobber.
6158 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6159 (and_operand): Reformat.
6160 (and_2rld_operand): New predicate.
6161 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6162 parameter.
6163 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6164 parameter. Handle AND directly.
6165 (rs6000_split_logical_di): Remove last parameter.
6166 (rs6000_split_logical): Remove last parameter. Remove obsolete
6167 comment.
6168 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6169 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6170 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6171 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6172 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6173 and 5 anonymous splitters): Delete.
6174 (and<mode>3): New expander.
6175 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6176 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6177 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6178 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6179 (floatdisf2_internal1): Remove clobbers.
6180 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6181 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6182 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6183 (and<mode>3 for BOOL_128): Remove clobber.
6184 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6185 rs6000_split_logical.
6186 (*bool<mode>3_internal for BOOL_128): Adjust call of
6187 rs6000_split_logical.
6188 (*boolc<mode>3_internal1 for BOOL_128,
6189 *boolc<mode>3_internal2 for BOOL_128,
6190 *boolcc<mode>3_internal1 for BOOL_128,
6191 *boolcc<mode>3_internal2 for BOOL_128,
6192 *eqv<mode>3_internal1 for BOOL_128,
6193 *eqv<mode>3_internal2 for BOOL_128,
6194 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6195 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6196 clobber.
6197 (*vec_reload_and_reg_<mptrsize>): Delete.
6198
6199 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6200
6201 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6202 and split, *boolccsi3_internal3 and split): Delete.
6203 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6204 *boolccdi3_internal3 and split): Delete.
6205 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6206 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6207
6208 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6209
6210 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6211 and split, *boolcsi3_internal3 and split): Delete.
6212 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6213 *boolcdi3_internal3 and split): Delete.
6214 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6215
6216 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6217
6218 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6219 <'u'>: Also support printing the low-order 16 bits.
6220 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6221 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6222 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6223 *booldi3_internal3 and split): Delete.
6224 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6225 *bool<mode>3_dot2): New.
6226 (two anonymous define_splits for non_logical_cint_operand): Merge.
6227
6228 2014-08-17 Marek Polacek <polacek@redhat.com>
6229 Manuel López-Ibáñez <manu@gcc.gnu.org>
6230
6231 PR c/62059
6232 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6233 (diagnostic_show_locus): Don't print caret diagnostic
6234 if a column is larger than the line_width.
6235
6236 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6237
6238 * common.opt: Make the ISL AST generator to be the main code generator
6239 of Graphite.
6240
6241 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6242
6243 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6244
6245 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6246
6247 PR target/61641
6248 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6249 Declare.
6250 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6251 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6252 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6253 Define.
6254 * config/pa/pa.md (begin_brtab): Delete insn.
6255 (end_brtab): Likewise.
6256
6257 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6258
6259 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6260
6261 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6262
6263 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6264 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6265 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6266 (get_dynamic_type): Remove.
6267 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6268 (clear_speculation): Bring to ipa-deivrt.h
6269 (get_class_context): Rename to ...
6270 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6271 (contains_type_p): Update.
6272 (get_dynamic_type): Rename to ...
6273 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6274 (possible_polymorphic_call_targets): UPdate.
6275 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6276 * ipa-prop.c (ipa_analyze_call_uses): Update.
6277
6278 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6279
6280 * doc/invoke.texi (SH options): Document missing processor variant
6281 options. Remove references to Hitachi. Undocument deprecated mspace
6282 option.
6283
6284 2014-08-15 Jason Merrill <jason@redhat.com>
6285
6286 * tree.c (type_hash_canon): Uncomment assert.
6287
6288 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6289
6290 * input.h (in_system_header_at): Add comment.
6291
6292 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6293
6294 PR fortran/44054
6295 * diagnostic.c (build_message_string): Make it extern.
6296 * diagnostic.h (build_message_string): Make it extern.
6297
6298 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6299
6300 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6301 load/store from/to non-floating class pseudo.
6302
6303 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6304
6305 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6306
6307 2014-08-15 Richard Biener <rguenther@suse.de>
6308
6309 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6310 (get_constraint_for_ssa_var): Remove dead code.
6311 (get_constraint_for_1): Adjust.
6312 (find_what_var_points_to): Likewise.
6313 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6314
6315 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6316
6317 PR target/61878
6318 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6319 (_mm512_mask_cmpge_epu32_mask): Ditto.
6320 (_mm512_cmpge_epu32_mask): Ditto.
6321 (_mm512_mask_cmpge_epi64_mask): Ditto.
6322 (_mm512_cmpge_epi64_mask): Ditto.
6323 (_mm512_mask_cmpge_epu64_mask): Ditto.
6324 (_mm512_cmpge_epu64_mask): Ditto.
6325 (_mm512_mask_cmple_epi32_mask): Ditto.
6326 (_mm512_cmple_epi32_mask): Ditto.
6327 (_mm512_mask_cmple_epu32_mask): Ditto.
6328 (_mm512_cmple_epu32_mask): Ditto.
6329 (_mm512_mask_cmple_epi64_mask): Ditto.
6330 (_mm512_cmple_epi64_mask): Ditto.
6331 (_mm512_mask_cmple_epu64_mask): Ditto.
6332 (_mm512_cmple_epu64_mask): Ditto.
6333 (_mm512_mask_cmplt_epi32_mask): Ditto.
6334 (_mm512_cmplt_epi32_mask): Ditto.
6335 (_mm512_mask_cmplt_epu32_mask): Ditto.
6336 (_mm512_cmplt_epu32_mask): Ditto.
6337 (_mm512_mask_cmplt_epi64_mask): Ditto.
6338 (_mm512_cmplt_epi64_mask): Ditto.
6339 (_mm512_mask_cmplt_epu64_mask): Ditto.
6340 (_mm512_cmplt_epu64_mask): Ditto.
6341 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6342 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6343 (_mm512_cmpneq_epu32_mask): Ditto.
6344 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6345 (_mm512_cmpneq_epi64_mask): Ditto.
6346 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6347 (_mm512_cmpneq_epu64_mask): Ditto.
6348 (_mm512_castpd_ps): Ditto.
6349 (_mm512_castpd_si512): Ditto.
6350 (_mm512_castps_pd): Ditto.
6351 (_mm512_castps_si512): Ditto.
6352 (_mm512_castsi512_ps): Ditto.
6353 (_mm512_castsi512_pd): Ditto.
6354 (_mm512_castpd512_pd128): Ditto.
6355 (_mm512_castps512_ps128): Ditto.
6356 (_mm512_castsi512_si128): Ditto.
6357 (_mm512_castpd512_pd256): Ditto.
6358 (_mm512_castps512_ps256): Ditto.
6359 (_mm512_castsi512_si256): Ditto.
6360 (_mm512_castpd128_pd512): Ditto.
6361 (_mm512_castps128_ps512): Ditto.
6362 (_mm512_castsi128_si512): Ditto.
6363 (_mm512_castpd256_pd512): Ditto.
6364 (_mm512_castps256_ps512): Ditto.
6365 (_mm512_castsi256_si512): Ditto.
6366 (_mm512_cmpeq_epu32_mask): Ditto.
6367 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6368 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6369 (_mm512_cmpeq_epu64_mask): Ditto.
6370 (_mm512_cmpgt_epu32_mask): Ditto.
6371 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6372 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6373 (_mm512_cmpgt_epu64_mask): Ditto.
6374 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6375 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6376 * config/i386/i386.c (enum ix86_builtins): Add
6377 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6378 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6379 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6380 (bdesc_args): Add __builtin_ia32_si512_256si,
6381 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6382 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6383 __builtin_ia32_pd512_pd.
6384 (ix86_expand_args_builtin): Handle new FTYPEs.
6385 * config/i386/sse.md (castmode): Add 512-bit modes.
6386 (AVX512MODE2P): New.
6387 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6388 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6389
6390 2014-08-15 Richard Biener <rguenther@suse.de>
6391
6392 * fold-const.c (tree_swap_operands_p): Put all constants
6393 last, also strip sign-changing NOPs when considering further
6394 canonicalization. Canonicalize also when optimizing for size.
6395
6396 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6397
6398 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6399 one_match > zero_match case to just before simple_sequence.
6400
6401 2014-08-15 Richard Biener <rguenther@suse.de>
6402
6403 * data-streamer.h (streamer_string_index, string_for_index):
6404 Remove.
6405 * data-streamer-out.c (streamer_string_index): Make static.
6406 * data-streamer-in.c (string_for_index): Likewise.
6407 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6408 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6409
6410 2014-08-15 Richard Biener <rguenther@suse.de>
6411
6412 PR tree-optimization/62031
6413 * tree-data-ref.c (dr_analyze_indices): Do not set
6414 DR_UNCONSTRAINED_BASE.
6415 (dr_may_alias_p): All indirect accesses have to go the
6416 formerly DR_UNCONSTRAINED_BASE path.
6417 * tree-data-ref.h (struct indices): Remove
6418 unconstrained_base member.
6419 (DR_UNCONSTRAINED_BASE): Remove.
6420
6421 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6422
6423 PR middle-end/62092
6424 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6425 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6426 in OMP_CLAUSE_MAP in some outer target region.
6427
6428 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6429
6430 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6431 name_expansion_cache.
6432 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6433 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6434 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6435 (difference_cannot_overflow_p): New parameter. Use affine
6436 expansion for equality check.
6437 (iv_elimination_compare_lt): Pass new argument.
6438
6439 2014-08-14 DJ Delorie <dj@redhat.com>
6440
6441 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6442 variables to the accumulator.
6443
6444 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6445 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6446 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6447 with far-far moves.
6448
6449 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6450 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6451 (umulqihi3_virt): Likewise.
6452 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6453 (umulqihi3_real): Likewise.
6454
6455 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6456
6457 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6458
6459 PR tree-optimization/62091
6460 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6461 function_entry_reached.
6462 (walk_aliased_vdefs): Clear it here.
6463 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6464
6465 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6466
6467 * ipa-utils.h (compare_virtual_tables): Declare.
6468 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6469
6470 2014-08-14 Marek Polacek <polacek@redhat.com>
6471
6472 DR 458
6473 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6474 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6475
6476 2014-08-14 Tom de Vries <tom@codesourcery.com>
6477
6478 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6479
6480 2014-08-14 Tom de Vries <tom@codesourcery.com>
6481
6482 PR rtl-optimization/62004
6483 PR rtl-optimization/62030
6484 * ifcvt.c (rtx_interchangeable_p): New function.
6485 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6486 * emit-rtl.h (mem_attrs_eq_p): Declare.
6487
6488 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6489
6490 * graphite-scop-detection.c:
6491 Add inclusion of cp-tree.h.
6492 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6493 in case they are pointers to object types
6494
6495 2014-08-14 Richard Biener <rguenther@suse.de>
6496
6497 * BASE-VER: Change to 5.0.0
6498
6499 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6500 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6501 Anna Tikhonova <anna.tikhonova@intel.com>
6502 Ilya Tocar <ilya.tocar@intel.com>
6503 Andrey Turetskiy <andrey.turetskiy@intel.com>
6504 Ilya Verbin <ilya.verbin@intel.com>
6505 Kirill Yukhin <kirill.yukhin@intel.com>
6506 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6507
6508 * config/i386/sse.md (define_mode_attr avx512): New.
6509 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6510 V4DI modes.
6511 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6512 (define_mode_attr ssse3_avx2): Ditto.
6513 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6514 (define_mode_attr avx2_avx512bw): New.
6515 (define_mode_attr ssedoublemodelower): New.
6516 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6517 V32HI, V64QI modes.
6518 (define_mode_attr ssebytemode): Allow V8DI modes.
6519 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6520 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6521 (define_mode_attr ssePSmode2): New.
6522 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6523 V16HI, V32HI modes.
6524 (define_mode_attr dbpsadbwmode): New.
6525 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6526 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6527 (vi8_sse4_1_avx2_avx512): New.
6528 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6529 mode attribute.
6530 (define_mode_attr blendbits): Move before its immediate use.
6531
6532 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6533 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6534 Anna Tikhonova <anna.tikhonova@intel.com>
6535 Ilya Tocar <ilya.tocar@intel.com>
6536 Andrey Turetskiy <andrey.turetskiy@intel.com>
6537 Ilya Verbin <ilya.verbin@intel.com>
6538 Kirill Yukhin <kirill.yukhin@intel.com>
6539 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6540
6541 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6542 * config/i386/subst.md
6543 (define_mode_iterator SUBST_V): Update.
6544 (define_mode_iterator SUBST_A): Ditto.
6545 (define_subst_attr "mask_operand7"): New.
6546 (define_subst_attr "mask_operand10"): New.
6547 (define_subst_attr "mask_operand_arg34") : New.
6548 (define_subst_attr "mask_expand_op3"): New.
6549 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6550 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6551 (define_subst_attr "mask_avx512vl_condition"): New.
6552 (define_subst_attr "round_mask_operand4"): Ditto.
6553 (define_subst_attr "round_mask_scalar_op3"): Delete.
6554 (define_subst_attr "round_mask_op4"): New.
6555 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6556 V16SImode.
6557 (define_subst_attr "round_modev8sf_condition"): New.
6558 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6559 <MODE>mode.
6560 (define_subst_attr "round_saeonly_mask_operand4"): New.
6561 (define_subst_attr "round_saeonly_mask_op4"): New.
6562 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6563 V8DImode, V16SImode.
6564 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6565 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6566 (define_subst_attr "mask_expand4_args"): New.
6567 (define_subst "mask_expand4"): New.
6568
6569 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6570 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6571 Anna Tikhonova <anna.tikhonova@intel.com>
6572 Ilya Tocar <ilya.tocar@intel.com>
6573 Andrey Turetskiy <andrey.turetskiy@intel.com>
6574 Ilya Verbin <ilya.verbin@intel.com>
6575 Kirill Yukhin <kirill.yukhin@intel.com>
6576 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6577
6578 * config/i386/i386.md
6579 (define_attr "isa"): Add avx512bw,noavx512bw.
6580 (define_attr "enabled"): Ditto.
6581 (define_split): Add 32/64-bit mask logic.
6582 (define_insn "*k<logic>qi"): New.
6583 (define_insn "*k<logic>hi"): New.
6584 (define_insn "*anddi_1"): Add mask version.
6585 (define_insn "*andsi_1"): Ditto.
6586 (define_insn "*<code><mode>_1"): Ditto.
6587 (define_insn "*<code>hi_1"): Ditto.
6588 (define_insn "kxnor<mode>"): New.
6589 (define_insn "kunpcksi"): New.
6590 (define_insn "kunpckdi"): New.
6591 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6592 (define_insn "*one_cmplhi2_1"): Ditto.
6593
6594 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6595 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6596 Anna Tikhonova <anna.tikhonova@intel.com>
6597 Ilya Tocar <ilya.tocar@intel.com>
6598 Andrey Turetskiy <andrey.turetskiy@intel.com>
6599 Ilya Verbin <ilya.verbin@intel.com>
6600 Kirill Yukhin <kirill.yukhin@intel.com>
6601 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6602
6603 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6604 V32HImode.
6605
6606 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6607 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6608 Anna Tikhonova <anna.tikhonova@intel.com>
6609 Ilya Tocar <ilya.tocar@intel.com>
6610 Andrey Turetskiy <andrey.turetskiy@intel.com>
6611 Ilya Verbin <ilya.verbin@intel.com>
6612 Kirill Yukhin <kirill.yukhin@intel.com>
6613 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6614
6615 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6616 registers.
6617 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6618 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6619 xmm/ymm16+ when availble.
6620 * config/i386/i386.h
6621 (HARD_REGNO_NREGS): Add mask regs.
6622 (VALID_AVX512F_REG_MODE): Ditto.
6623 (VALID_AVX512F_REG_MODE) : Define.
6624 (VALID_MASK_AVX512BW_MODE): Ditto.
6625 (reg_class) (MASK_REG_P(X)): Define.
6626 * config/i386/i386.md: Do not split long moves with mask register,
6627 use kmovb if avx512bw is availible.
6628 (movdi_internal): Handle mask registers.
6629
6630 2014-08-14 Richard Biener <rguenther@suse.de>
6631
6632 PR tree-optimization/62081
6633 * tree-ssa-loop.c (pass_fix_loops): New pass.
6634 (pass_tree_loop::gate): Do not fixup loops here.
6635 * tree-pass.h (make_pass_fix_loops): Declare.
6636 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6637
6638 2014-08-14 Richard Biener <rguenther@suse.de>
6639
6640 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6641 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6642
6643 2014-08-14 Richard Biener <rguenther@suse.de>
6644
6645 PR tree-optimization/62090
6646 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6647 (fold_builtin_2): Do not fold sprintf.
6648 (fold_builtin_3): Likewise.
6649 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6650 moved from builtins.c.
6651 (gimple_fold_builtin): Fold sprintf.
6652
6653 2014-08-14 Richard Biener <rguenther@suse.de>
6654
6655 PR rtl-optimization/62079
6656 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6657 run cleanup_cfg.
6658
6659 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6660
6661 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6662 current_function_decl.
6663
6664 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6665
6666 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6667 cgraph_function_node to cgraph_node::function_symbol
6668 refactoring.
6669
6670 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6671
6672 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6673 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6674
6675 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6676
6677 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6678 warning.
6679
6680 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6681
6682 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6683 generator.
6684
6685 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6686
6687 PR target/62025
6688 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6689 any registers that are used in mem_insn.
6690
6691 2014-08-12 Steve Ellcey <sellcey@mips.com>
6692
6693 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6694
6695 2014-08-12 Steve Ellcey <sellcey@mips.com>
6696
6697 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6698 (MULTILIB_DIRNAMES): Ditto.
6699 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6700 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6701 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6702 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6703 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6704 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6705
6706 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6707
6708 PR target/61413
6709 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6710 of __ARM_SIZEOF_WCHAR_T.
6711
6712 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6713
6714 PR target/62098
6715 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6716 Remove unnecessary attributes.
6717
6718 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6719
6720 * internal-fn.c (init_internal_fns): Fix off-by-one.
6721
6722 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6724 Anna Tikhonova <anna.tikhonova@intel.com>
6725 Ilya Tocar <ilya.tocar@intel.com>
6726 Andrey Turetskiy <andrey.turetskiy@intel.com>
6727 Ilya Verbin <ilya.verbin@intel.com>
6728 Kirill Yukhin <kirill.yukhin@intel.com>
6729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6730
6731 * config/i386/i386.c (standard_sse_constant_opcode): Use
6732 vpxord/vpternlog if avx512 is availible.
6733
6734 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6735
6736 PR middle-end/62103
6737 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6738 bitfields, that is when size doesn't match the size of type or the
6739 size of the constructor.
6740
6741 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6742
6743 * config/rs6000/constraints.md (wh constraint): New constraint,
6744 for FP registers if direct move is available.
6745 (wi constraint): New constraint, for VSX/FP registers that can
6746 handle 64-bit integers.
6747 (wj constraint): New constraint for VSX/FP registers that can
6748 handle 64-bit integers for direct moves.
6749 (wk constraint): New constraint for VSX/FP registers that can
6750 handle 64-bit doubles for direct moves.
6751 (wy constraint): Make documentation match implementation.
6752
6753 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6754 scalar_in_vmx_p field to simplify tests of whether SFmode or
6755 DFmode can go in the Altivec registers.
6756 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6757 (rs6000_setup_reg_addr_masks): Likewise.
6758 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6759 field, and wh/wi/wj/wk constraints.
6760 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6761 the wh/wi/wj/wk constraints.
6762 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6763 upper registers, prefer VSX registers unless the operation is a
6764 memory operation with REG+OFFSET addressing.
6765
6766 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6767 DImode. Change SFmode to use ww constraint instead of d to allow
6768 SF registers in the upper registers.
6769 (VSr2): Likewise.
6770 (VSr3): Likewise.
6771 (VSr5): Fix thinko in comment.
6772 (VSa): New mode attribute that is an alternative to wa, that
6773 returns the VSX register class that a mode can go in, but may not
6774 be the preferred register class.
6775 (VS_64dm): New mode attribute for appropriate register classes for
6776 referencing 64-bit elements of vectors for direct moves and normal
6777 moves.
6778 (VS_64reg): Likewise.
6779 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6780 register allocator to only registers the data type can handle.
6781 (vsx_le_perm_load_<mode>): Likewise.
6782 (vsx_le_perm_store_<mode>): Likewise.
6783 (vsx_xxpermdi2_le_<mode>): Likewise.
6784 (vsx_xxpermdi4_le_<mode>): Likewise.
6785 (vsx_lxvd2x2_le_<mode>): Likewise.
6786 (vsx_lxvd2x4_le_<mode>): Likewise.
6787 (vsx_stxvd2x2_le_<mode>): Likewise.
6788 (vsx_add<mode>3): Likewise.
6789 (vsx_sub<mode>3): Likewise.
6790 (vsx_mul<mode>3): Likewise.
6791 (vsx_div<mode>3): Likewise.
6792 (vsx_tdiv<mode>3_internal): Likewise.
6793 (vsx_fre<mode>2): Likewise.
6794 (vsx_neg<mode>2): Likewise.
6795 (vsx_abs<mode>2): Likewise.
6796 (vsx_nabs<mode>2): Likewise.
6797 (vsx_smax<mode>3): Likewise.
6798 (vsx_smin<mode>3): Likewise.
6799 (vsx_sqrt<mode>2): Likewise.
6800 (vsx_rsqrte<mode>2): Likewise.
6801 (vsx_tsqrt<mode>2_internal): Likewise.
6802 (vsx_fms<mode>4): Likewise.
6803 (vsx_nfma<mode>4): Likewise.
6804 (vsx_eq<mode>): Likewise.
6805 (vsx_gt<mode>): Likewise.
6806 (vsx_ge<mode>): Likewise.
6807 (vsx_eq<mode>_p): Likewise.
6808 (vsx_gt<mode>_p): Likewise.
6809 (vsx_ge<mode>_p): Likewise.
6810 (vsx_xxsel<mode>): Likewise.
6811 (vsx_xxsel<mode>_uns): Likewise.
6812 (vsx_copysign<mode>3): Likewise.
6813 (vsx_float<VSi><mode>2): Likewise.
6814 (vsx_floatuns<VSi><mode>2): Likewise.
6815 (vsx_fix_trunc<mode><VSi>2): Likewise.
6816 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6817 (vsx_x<VSv>r<VSs>i): Likewise.
6818 (vsx_x<VSv>r<VSs>ic): Likewise.
6819 (vsx_btrunc<mode>2): Likewise.
6820 (vsx_b2trunc<mode>2): Likewise.
6821 (vsx_floor<mode>2): Likewise.
6822 (vsx_ceil<mode>2): Likewise.
6823 (vsx_<VS_spdp_insn>): Likewise.
6824 (vsx_xscvspdp): Likewise.
6825 (vsx_xvcvspuxds): Likewise.
6826 (vsx_float_fix_<mode>2): Likewise.
6827 (vsx_set_<mode>): Likewise.
6828 (vsx_extract_<mode>_internal1): Likewise.
6829 (vsx_extract_<mode>_internal2): Likewise.
6830 (vsx_extract_<mode>_load): Likewise.
6831 (vsx_extract_<mode>_store): Likewise.
6832 (vsx_splat_<mode>): Likewise.
6833 (vsx_xxspltw_<mode>): Likewise.
6834 (vsx_xxspltw_<mode>_direct): Likewise.
6835 (vsx_xxmrghw_<mode>): Likewise.
6836 (vsx_xxmrglw_<mode>): Likewise.
6837 (vsx_xxsldwi_<mode>): Likewise.
6838 (vsx_xscvdpspn): Tighten constraints to only use register classes
6839 the types use.
6840 (vsx_xscvspdpn): Likewise.
6841 (vsx_xscvdpspn_scalar): Likewise.
6842
6843 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6844 wj, and wk constraints.
6845 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6846 general purpose registers.
6847
6848 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6849 direct moves.
6850 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6851 DImode instead of wm. Use wk constraint for direct move of DFmode
6852 instead of wm.
6853 (extendsidi2_lfiwax): Likewise.
6854 (lfiwax): Likewise.
6855 (lfiwzx): Likewise.
6856 (movdi_internal64): Likewise.
6857
6858 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6859 wk constraints. Make the wy constraint documentation match them
6860 implementation.
6861
6862 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6863
6864 Replacement of isl_int by isl_val
6865 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6866 (compute_bounds_for_param): use isl_val instead of isl_int
6867 (compute_bounds_for_loop): likewise
6868 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6869 (build_linearized_memory_access): use isl_val instead of isl_int
6870 (pdr_stride_in_loop): likewise
6871 * graphite-optimize-isl.c:
6872 (getPrevectorMap): use isl_val instead of isl_int
6873 * graphite-poly.c:
6874 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6875 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6876 (extern the_isl_ctx): declare
6877 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6878 (extract_affine_gmp): likewise
6879 (wrap): likewise
6880 (build_loop_iteration_domains): likewise
6881 (add_param_constraints): likewise
6882
6883 2014-08-11 Richard Biener <rguenther@suse.de>
6884
6885 PR tree-optimization/62075
6886 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6887 handle uses in patterns.
6888
6889 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6890 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6891 Anna Tikhonova <anna.tikhonova@intel.com>
6892 Ilya Tocar <ilya.tocar@intel.com>
6893 Andrey Turetskiy <andrey.turetskiy@intel.com>
6894 Ilya Verbin <ilya.verbin@intel.com>
6895 Kirill Yukhin <kirill.yukhin@intel.com>
6896 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6897
6898 * common/config/i386/i386-common.c
6899 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6900 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6901 (ix86_handle_option): Handle OPT_mavx512vl.
6902 * config/i386/cpuid.h (bit_AVX512VL): Define.
6903 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6904 set -mavx512vl accordingly.
6905 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6906 OPTION_MASK_ISA_AVX512VL.
6907 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6908 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6909 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6910 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6911 * config/i386/i386.h (TARGET_AVX512VL): Define.
6912 (TARGET_AVX512VL_P(x)): Ditto.
6913 * config/i386/i386.opt: Add mavx512vl.
6914
6915 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6916
6917 PR tree-optimization/62073
6918 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6919 a basic block.
6920
6921 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6922 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6923 Anna Tikhonova <anna.tikhonova@intel.com>
6924 Ilya Tocar <ilya.tocar@intel.com>
6925 Andrey Turetskiy <andrey.turetskiy@intel.com>
6926 Ilya Verbin <ilya.verbin@intel.com>
6927 Kirill Yukhin <kirill.yukhin@intel.com>
6928 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6929
6930 * common/config/i386/i386-common.c
6931 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6932 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6933 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6934 (ix86_handle_option): Handle OPT_mavx512bw.
6935 * config/i386/cpuid.h (bit_AVX512BW): Define.
6936 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6937 set -mavx512bw accordingly.
6938 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6939 OPTION_MASK_ISA_AVX512BW.
6940 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6941 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6942 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6943 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6944 * config/i386/i386.h (TARGET_AVX512BW): Define.
6945 (TARGET_AVX512BW_P(x)): Ditto.
6946 * config/i386/i386.opt: Add mavx512bw.
6947
6948 2014-08-11 Richard Biener <rguenther@suse.de>
6949
6950 PR tree-optimization/62070
6951 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
6952 Remove SSA checking.
6953
6954 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6955
6956 * asan.c (asan_check_flags): New enum.
6957 (build_check_stmt_with_calls): Removed function.
6958 (build_check_stmt): Split inlining logic to
6959 asan_expand_check_ifn.
6960 (instrument_derefs): Rename parameter.
6961 (instrument_mem_region_access): Rename parameter.
6962 (instrument_strlen_call): Likewise.
6963 (asan_expand_check_ifn): New function.
6964 (asan_instrument): Remove old code.
6965 (pass_sanopt::execute): Change handling of
6966 asan-instrumentation-with-call-threshold.
6967 (asan_clear_shadow): Fix formatting.
6968 (asan_function_start): Likewise.
6969 (asan_emit_stack_protection): Likewise.
6970 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
6971 Update description.
6972 * internal-fn.c (expand_ASAN_CHECK): New function.
6973 * internal-fn.def (ASAN_CHECK): New internal function.
6974 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
6975 Update description.
6976 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
6977 * tree.c: Small comment fix.
6978
6979 2014-08-11 Yury Gribov <y.gribov@samsung.com>
6980
6981 * gimple.c (gimple_call_fnspec): Support internal functions.
6982 (gimple_call_return_flags): Use const.
6983 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
6984 * internal-fn.def: Add fnspec information.
6985 * internal-fn.h (internal_fn_fnspec): New function.
6986 (init_internal_fns): Declare new function.
6987 * internal-fn.c (internal_fn_fnspec_array): New global variable.
6988 (init_internal_fns): New function.
6989 * tree-core.h: Update macro call.
6990 * tree.c (build_common_builtin_nodes): Initialize internal fns.
6991
6992 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
6993
6994 * lto-streamer.h (struct output_block::symbol): Change from
6995 struct symtab_node to plain symtab_node.
6996 (referenced_from_this_partition_p): Change first parameter
6997 from struct symtab_node to plain symtab_node.
6998
6999 2014-08-10 Marek Polacek <polacek@redhat.com>
7000
7001 PR c/51849
7002 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7003
7004 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7005
7006 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7007 DECL correctly; do not give up on types in static storage.
7008
7009 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7010
7011 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7012
7013 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7014
7015 * graphite-isl-ast-to-gimple.c:
7016 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7017
7018 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7019
7020 2014-08-08 Guozhi Wei <carrot@google.com>
7021
7022 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7023
7024 2014-08-08 Cary Coutant <ccoutant@google.com>
7025
7026 * dwarf2out.c (get_skeleton_type_unit): Remove.
7027 (output_skeleton_debug_sections): Remove skeleton type units.
7028 (output_comdat_type_unit): Likewise.
7029 (dwarf2out_finish): Likewise.
7030
7031 2014-08-07 Yi Yang <ahyangyi@google.com>
7032
7033 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7034
7035 2014-08-08 Richard Biener <rguenther@suse.de>
7036
7037 * lto-streamer.h (struct lto_input_block): Make it a class
7038 with a constructor.
7039 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7040 (struct lto_function_header, struct lto_simple_header,
7041 struct lto_simple_header_with_strings,
7042 struct lto_decl_header, struct lto_function_header): Make
7043 a simple inheritance hieararchy. Remove unused fields.
7044 (struct lto_asm_header): Remove.
7045 * lto-streamer-out.c (produce_asm): Adjust.
7046 (lto_output_toplevel_asms): Likewise.
7047 (produce_asm_for_decls): Likewise.
7048 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7049 * data-streamer-in.c (string_for_index): Likewise.
7050 * ipa-inline-analysis.c (inline_read_section): Likewise.
7051 * ipa-prop.c (ipa_prop_read_section): Likewise.
7052 (read_replacements_section): Likewise.
7053 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7054 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7055 (lto_destroy_simple_input_block): Likewise.
7056 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7057 (lto_input_toplevel_asms): Likewise.
7058
7059 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7060 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7061 Anna Tikhonova <anna.tikhonova@intel.com>
7062 Ilya Tocar <ilya.tocar@intel.com>
7063 Andrey Turetskiy <andrey.turetskiy@intel.com>
7064 Ilya Verbin <ilya.verbin@intel.com>
7065 Kirill Yukhin <kirill.yukhin@intel.com>
7066 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7067
7068 * common/config/i386/i386-common.c
7069 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7070 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7071 (ix86_handle_option): Handle OPT_mavx512dq.
7072 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7073 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7074 set -mavx512dq accordingly.
7075 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7076 OPTION_MASK_ISA_AVX512DQ.
7077 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7078 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7079 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7080 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7081 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7082 (TARGET_AVX512DQ_P(x)): Ditto.
7083 * config/i386/i386.opt: Add mavx512dq.
7084
7085 2014-08-08 Richard Biener <rguenther@suse.de>
7086
7087 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7088 target_percent, target_percent_s): Export.
7089 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7090 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7091 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7092 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7093 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7094 Move to gimple-fold.c.
7095 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7096 strcat and strcpy.
7097 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7098 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7099 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7100 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7101 (rewrite_call_expr_array): Remove.
7102 (fold_builtin_sprintf_chk): Likewise.
7103 (fold_builtin_snprintf_chk): Likewise.
7104 (fold_builtin_varargs): Remove handling of sprintf_chk,
7105 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7106 (gimple_fold_builtin_sprintf_chk): Remove.
7107 (gimple_fold_builtin_snprintf_chk): Likewise.
7108 (gimple_fold_builtin_varargs): Likewise.
7109 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7110 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7111 * gimple.c (gimple_seq_add_seq_without_update): New function.
7112 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7113 * gimple-fold.c: Include output.h.
7114 (gsi_replace_with_seq_vops): New function, split out from ...
7115 (gimplify_and_update_call_from_tree): ... here.
7116 (replace_call_with_value): New function.
7117 (replace_call_with_call_and_fold): Likewise.
7118 (var_decl_component_p): Moved from builtins.c.
7119 (gimple_fold_builtin_memory_op): Moved from builtins.c
7120 fold_builtin_memory_op and rewritten to GIMPLE.
7121 (gimple_fold_builtin_memset): Likewise.
7122 (gimple_fold_builtin_strcpy): Likewise.
7123 (gimple_fold_builtin_strncpy): Likewise.
7124 (gimple_fold_builtin_strcat): Likewise.
7125 (gimple_fold_builtin_fputs): Likewise.
7126 (gimple_fold_builtin_memory_chk): Likewise.
7127 (gimple_fold_builtin_stxcpy_chk): Likewise.
7128 (gimple_fold_builtin_stxncpy_chk): Likewise.
7129 (gimple_fold_builtin_snprintf_chk): Likewise.
7130 (gimple_fold_builtin_sprintf_chk): Likewise.
7131 (gimple_fold_builtin_strlen): New function.
7132 (gimple_fold_builtin_with_strlen): New function split out from
7133 gimple_fold_builtin.
7134 (gimple_fold_builtin): Change signature and handle
7135 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7136 here. Call gimple_fold_builtin_with_strlen.
7137 (gimple_fold_call): Adjust.
7138
7139 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7140
7141 * calls.c (precompute_arguments): Check
7142 promoted_for_signed_and_unsigned_p and set the promoted mode.
7143 (promoted_for_signed_and_unsigned_p): New function.
7144 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7145 and set the promoted mode.
7146 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7147 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7148 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7149
7150
7151 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7152
7153 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7154 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7155 (expand_call): Likewise.
7156 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7157 to get promoted mode.
7158 * combine.c (record_promoted_value): Skip > 0 comparison with
7159 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7160 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7161 of SUBREG_PROMOTED_UNSIGNED_P.
7162 (convert_modes): Likewise.
7163 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7164 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7165 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7166 SUBREG_PROMOTED_UNSIGNED_SET.
7167 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7168 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7169 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7170 SUBREG_PROMOTED_SET.
7171 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7172 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7173 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7174 of SUBREG_PROMOTED_UNSIGNED_P.
7175 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7176 (SUBREG_PROMOTED_SET): New define.
7177 (SUBREG_PROMOTED_GET): Likewise.
7178 (SUBREG_PROMOTED_SIGN): Likewise.
7179 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7180 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7181 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7182 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7183 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7184 (nonzero_bits1): Skip > 0 comparison with the results as
7185 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7186 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7187 of !SUBREG_PROMOTED_UNSIGNED_P.
7188 * simplify-rtx.c (simplify_unary_operation_1): Use new
7189 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7190 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7191 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7192 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7193
7194 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7195
7196 * ipa-devirt.c: Include gimple-pretty-print.h
7197 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7198 further tests.
7199 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7200 (get_polymorphic_call_info): Fix return value
7201 (type_change_info): New sturcture based on ipa-prop
7202 variant.
7203 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7204 based on ipa-prop variant.
7205 (extr_type_from_vtbl_ptr_store): New function
7206 based on ipa-prop variant.
7207 (record_known_type): New function.
7208 (check_stmt_for_type_change): New function.
7209 (get_dynamic_type): New function.
7210 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7211 * tree-ssa-pre.c: ipa-utils.h
7212 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7213 machinery; sanity check with ipa-prop devirtualization.
7214 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7215 polymorphic flag.
7216
7217 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7218
7219 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7220 * alias.c, cfgexpand.c, cgraphbuild.c,
7221 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7222 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7223 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7224 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7225 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7226 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7227 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7228 dse.c, except.c, gengtype.c, gimple-expr.c,
7229 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7230 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7231 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7232 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7233 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7234 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7235 pointer-set.h.
7236 * pointer-set.c: Remove file.
7237 * pointer-set.h: Remove file.
7238
7239 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7240
7241 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7242 * config/arm/types.md (f_sels, f_seld): Delete.
7243
7244 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7245
7246 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7247 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7248 (aarch64_movdi_<mode>high): Likewise.
7249 (aarch64_mov<mode>high_di): Likewise.
7250 (aarch64_movdi_<mode>low): Likewise.
7251 (aarch64_mov<mode>low_di): Likewise.
7252 (aarch64_movtilow_tilow): Likewise.
7253 Add comment explaining usage of fp,simd attributes and of
7254 TARGET_FLOAT and TARGET_SIMD.
7255
7256 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7257 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7258
7259 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7260 Use MOVN when one of the half-words is 0xffff.
7261
7262 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7263
7264 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7265
7266 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7267
7268 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7269 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7270 (rfs_str): String corresponding to RFS_* constants.
7271 (rank_for_schedule_stats_t): New typedef.
7272 (rank_for_schedule_stats): New static variable.
7273 (rfs_result): New static function.
7274 (rank_for_schedule): Track statistics for deciding heuristics.
7275 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7276 static functions.
7277 (ready_sort): Use them for debug printouts.
7278 (schedule_block): Init statistics state. Print statistics on
7279 rank_for_schedule decisions.
7280
7281 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7282
7283 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7284
7285 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7286
7287 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7288 constraint.
7289
7290 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7291
7292 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7293 function to not conflict.
7294 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7295 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7296 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7297 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7298 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7299 of pointer_map.
7300
7301 2014-08-07 Marek Polacek <polacek@redhat.com>
7302
7303 * fold-const.c (fold_binary_loc): Add folding of
7304 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7305
7306 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7307
7308 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7309 instead of type size.
7310 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7311
7312 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7313
7314 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7315 (*thumb1_movqi_insn): Likewise.
7316 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7317
7318 2014-08-07 Tom de Vries <tom@codesourcery.com>
7319
7320 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7321 (glibc_2_11_or_earlier): Remove effective-target keywords.
7322
7323 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7324
7325 * config/arm/arm.c (bdesc_2arg): Fix typo.
7326 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7327
7328 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7329
7330 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7331
7332 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7333
7334 PR debug/61923
7335 * haifa-sched.c (advance_one_cycle): Fix dump.
7336 (schedule_block): Don't advance cycle if we are already at the
7337 beginning of the cycle.
7338
7339 2014-08-06 Martin Jambor <mjambor@suse.cz>
7340
7341 PR ipa/61393
7342 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7343
7344 2014-08-06 Richard Biener <rguenther@suse.de>
7345
7346 PR lto/62034
7347 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7348 SCCs here.
7349 (lto_input_tree): Pop SCCs here.
7350
7351 2014-08-06 Richard Biener <rguenther@suse.de>
7352
7353 PR tree-optimization/61320
7354 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7355 handle misaligned loads.
7356
7357 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7358
7359 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7360 (aarch64_expand_vec_perm_const): Check for dup before zip.
7361
7362 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7363
7364 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7365 CONST_INT_P instead of GET_CODE and compare.
7366 (aarch64_select_cc_mode): Likewise.
7367 (aarch64_print_operand): Likewise.
7368 (aarch64_rtx_costs): Likewise.
7369 (aarch64_simd_valid_immediate): Likewise.
7370 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7371 (aarch64_simd_emit_pair_result_insn): Likewise.
7372
7373 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7374
7375 * gdbhooks.py (find_gcc_source_dir): New helper function.
7376 (class PassNames): New class, locating and parsing passes.def.
7377 (class BreakOnPass): New command "break-on-pass".
7378
7379 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7380
7381 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7382 getting olde.
7383
7384 2014-08-05 Richard Biener <rguenther@suse.de>
7385
7386 PR rtl-optimization/61672
7387 * emit-rtl.h (mem_attrs_eq_p): Declare.
7388 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7389 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7390 * cfgcleanup.c (merge_memattrs): Likewise.
7391 Include emit-rtl.h.
7392
7393 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7394
7395 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7396 rather than singleton vectors.
7397 (vqdmlsls_lane_s32): Likewise.
7398
7399 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7400
7401 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7402 Use VSDQ_HSI mode iterator.
7403 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7404 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7405 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7406 Use BUILTIN_VDQHS macro.
7407 (sqrdmulh_laneq): Likewise.
7408 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7409 (vqdmlals_laneq_s32): Likewise.
7410 (vqdmlslh_laneq_s16): Likewise.
7411 (vqdmlsls_laneq_s32): Likewise.
7412 (vqdmulhh_laneq_s16): Likewise.
7413 (vqdmulhs_laneq_s32): Likewise.
7414 (vqrdmulhh_laneq_s16): Likewise.
7415 (vqrdmulhs_laneq_s32): Likewise.
7416
7417 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7418
7419 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7420 (vmuld_laneq_f64): Likewise.
7421 (vmuls_laneq_f32): Likewise.
7422 (vmul_n_f64): Likewise.
7423 (vmuld_lane_f64): Reimplement in C.
7424 (vmuls_lane_f32): Likewise.
7425
7426 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7427
7428 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7429 to reservation.
7430 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7431
7432 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7433
7434 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7435 (rbitsi2): Likewise.
7436 (*arm_rev): Set predicable and predicable_short_it attributes.
7437
7438 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7439
7440 * convert.c (convert_to_integer): Guard transformation to lrint by
7441 -fno-math-errno.
7442
7443 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7444
7445 * config/aarch64/aarch64-builtins.c
7446 (aarch64_simd_builtin_type_mode): Delete.
7447 (v8qi_UP): Remap to V8QImode.
7448 (v4hi_UP): Remap to V4HImode.
7449 (v2si_UP): Remap to V2SImode.
7450 (v2sf_UP): Remap to V2SFmode.
7451 (v1df_UP): Remap to V1DFmode.
7452 (di_UP): Remap to DImode.
7453 (df_UP): Remap to DFmode.
7454 (v16qi_UP):V16QImode.
7455 (v8hi_UP): Remap to V8HImode.
7456 (v4si_UP): Remap to V4SImode.
7457 (v4sf_UP): Remap to V4SFmode.
7458 (v2di_UP): Remap to V2DImode.
7459 (v2df_UP): Remap to V2DFmode.
7460 (ti_UP): Remap to TImode.
7461 (ei_UP): Remap to EImode.
7462 (oi_UP): Remap to OImode.
7463 (ci_UP): Map to CImode.
7464 (xi_UP): Remap to XImode.
7465 (si_UP): Remap to SImode.
7466 (sf_UP): Remap to SFmode.
7467 (hi_UP): Remap to HImode.
7468 (qi_UP): Remap to QImode.
7469 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7470 (VAR1): Build builtin name.
7471 (aarch64_init_simd_builtins): Remove dead code.
7472
7473 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7474
7475 * graphite-isl-ast-to-gimple.c:
7476 (set_options): New function.
7477 (scop_to_isl_ast): Add calling of set_options.
7478
7479 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7480
7481 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7482 (analyze_iv_to_split_insn): Don't initialize them.
7483 (get_ivts_expr): Removed.
7484 (allocate_basic_variable, insert_base_initialization): Use
7485 SET_SRC instead of *get_ivts_expr.
7486 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7487
7488 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7489
7490 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7491 (translate_isl_ast_for_loop): Add checking of the
7492 flag_loop_parallelize_all.
7493 (ast_build_before_for): New function.
7494 (scop_to_isl_ast): Add checking of the
7495 flag_loop_parallelize_all.
7496 * graphite-dependences.c: Move the defenition of the
7497 scop_get_dependences from graphite-optimize-isl.c to this file.
7498 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7499 (carries_deps): Add checking of the x's value.
7500 * graphite-optimize-isl.c: Move the defenition of the
7501 scop_get_dependences to graphite-dependences.c.
7502 * graphite-poly.h: Add declarations of scop_get_dependences
7503 and carries_deps.
7504
7505 2014-08-04 Rohit <rohitarulraj@freescale.com>
7506
7507 PR target/60102
7508 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7509 names.
7510 (alt_reg_names): Likewise.
7511 (rs6000_dwarf_register_span): For SPE high registers, replace
7512 dwarf register numbers with GCC hard register numbers.
7513 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7514 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7515 register number for the corresponding GCC hard register number.
7516 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7517 newly added GCC hard register numbers for SPE high registers.
7518 (DWARF_FRAME_REGISTERS): Likewise.
7519 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7520 (DWARF_FRAME_REGNUM): Likewise.
7521 (FIXED_REGISTERS): Likewise.
7522 (CALL_USED_REGISTERS): Likewise.
7523 (CALL_REALLY_USED_REGISTERS): Likewise.
7524 (REG_ALLOC_ORDER): Likewise.
7525 (enum reg_class): Likewise.
7526 (REG_CLASS_NAMES): Likewise.
7527 (REG_CLASS_CONTENTS): Likewise.
7528 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7529
7530 2014-08-04 Richard Biener <rguenther@suse.de>
7531
7532 * gimple-fold.h (gimple_fold_builtin): Remove.
7533 * gimple-fold.c (gimple_fold_builtin): Make static.
7534 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7535 fold_stmt, not gimple_fold_builtin.
7536
7537 2014-08-04 Martin Liska <mliska@suse.cz>
7538
7539 * cgraph.h (csi_end_p): Removed.
7540 (csi_next): Likewise.
7541 (csi_node): Likewise.
7542 (csi_start): Likewise.
7543 (cgraph_node_in_set_p): Likewise.
7544 (cgraph_node_set_size): Likewise.
7545 (vsi_end_p): Likewise.
7546 (vsi_next): Likewise.
7547 (vsi_node): Likewise.
7548 (vsi_start): Likewise.
7549 (varpool_node_set_size): Likewise.
7550 (cgraph_node_set_nonempty_p): Likewise.
7551 (varpool_node_set_nonempty_p): Likewise.
7552 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7553 cgraph_node_set.
7554 * ipa-inline-transform.c: Likewise.
7555 * ipa-utils.c (cgraph_node_set_new): Removed.
7556 (cgraph_node_set_add): Likewise.
7557 (cgraph_node_set_remove): Likewise.
7558 (cgraph_node_set_find): Likewise.
7559 (dump_cgraph_node_set): Likewise.
7560 (debug_cgraph_node_set): Likewise.
7561 (free_cgraph_node_set): Likewise.
7562 (varpool_node_set_new): Likewise.
7563 (varpool_node_set_add): Likewise.
7564 (varpool_node_set_remove): Likewise.
7565 (varpool_node_set_find): Likewise.
7566 (dump_varpool_node_set): Likewise.
7567 (free_varpool_node_set): Likewise.
7568 (debug_varpool_node_set): Likewise.
7569 * tree-emutls.c (struct tls_var_data):
7570 (emutls_index): Removed.
7571 (emutls_decl): Likewise.
7572 (gen_emutls_addr): Function implementation uses newly added
7573 hash_map<varpool_node *, tls_var_data>.
7574 (clear_access_vars): Likewise.
7575 (create_emultls_var): Likewise.
7576 (ipa_lower_emutls): Likewise.
7577 (reset_access): New function.
7578
7579 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7580
7581 * config/i386/i386.c (ix86_option_override_internal): Add
7582 PTA_RDRND and PTA_MOVBE for bdver4.
7583
7584 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7585 James Greenhalgh <james.greenhalgh@arm.com>
7586
7587 * doc/md.texi (clrsb): Document.
7588 (clz): Change reference to x into operand 1.
7589 (ctz): Likewise.
7590 (popcount): Likewise.
7591
7592 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7593
7594 PR target/61713
7595 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7596 move to subtarget in serial version if result is ignored.
7597
7598 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7599 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7600
7601 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7602 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7603 (sched_analyze_insn): Update use of try_group_insn to
7604 sched_macro_fuse_insns.
7605 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7606 arguments that are not conditional jumps.
7607
7608 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7609
7610 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7611 family information. Handle BTVER2 cpu with cpuid family value.
7612
7613 2014-08-04 Tom de Vries <tom@codesourcery.com>
7614
7615 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7616 (glibc_2_11_or_earlier): Document effective-target keywords.
7617
7618 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7619
7620 * ipa-devirt.c (odr_type_warn_count): Add type.
7621 (possible_polymorphic_call_targets): Set it.
7622 (ipa_devirt): Use it.
7623
7624 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7625
7626 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7627 Document.
7628 * ipa-devirt.c: Include hash-map.h
7629 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7630 (clear_speculation): Break out of ...
7631 (get_class_context): ... here; speed up handling obviously useless
7632 speculations.
7633 (odr_type_warn_count, decl_warn_count): New structures.
7634 (final_warning_record): New structure.
7635 (final_warning_records): New static variable.
7636 (possible_polymorphic_call_targets): Cleanup handling of
7637 speculative info; do not build speculation when user do not care;
7638 record info about warnings when asked for.
7639 (add_decl_warning): New function.
7640 (type_warning_cmp): New function.
7641 (decl_warning_cmp): New function.
7642 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7643 (gate): Enable pass when warnings are requested.
7644 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7645 options.
7646
7647 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7648
7649 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7650 Fix cast.
7651 (hash_map::remove): New method.
7652 (hash_map::traverse): New method.
7653 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7654 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7655 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7656 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7657 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7658 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7659 pointer_map.
7660
7661 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7662
7663 * hash-set.h: new File.
7664 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7665 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7666 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7667 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7668 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7669 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7670 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7671 varpool.c: Use hash_set instead of pointer_set.
7672
7673 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7674
7675 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7676
7677 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7678
7679 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7680 for frame access when strict_p is false.
7681
7682 2014-08-01 Renlin Li <renlin.li@arm.com>
7683 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7684
7685 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7686 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7687 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7688 Declaration.
7689 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7690 predicate.
7691 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7692 aarch64_mem_pair_offset.
7693
7694 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7695
7696 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7697 offset.
7698 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7699 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7700
7701 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7702
7703 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7704
7705 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7706
7707 PR regression/61510
7708 * cgraphunit.c (analyze_functions): Use get_create rather than get
7709 for decls which are clones of abstract functions.
7710
7711 2014-08-01 Martin Liska <mliska@suse.cz>
7712
7713 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7714 * ipa-prop.h (count_formal_params): Global function created from static.
7715 * ipa-prop.c (count_formal_params): Likewise.
7716 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7717 profiles for semantically equivalent functions.
7718 * passes.c (do_per_function): If we load body of a function
7719 during WPA, this condition should behave same.
7720 * varpool.c (ctor_for_folding): More tolerant assert for variable
7721 aliases created during WPA.
7722
7723 2014-08-01 Martin Liska <mliska@suse.cz>
7724
7725 * doc/invoke.texi (Options That Control Optimization): Documentation
7726 for -foptimize-strlen introduced. Optimization levels default options
7727 fixed.
7728
7729 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7730
7731 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7732 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7733 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7734 type to bool.
7735 * stor-layout.h (min_align_of_type): New prototype.
7736 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7737 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7738 check.
7739 * ubsan.c: Include builtins.h.
7740 (ubsan_expand_bounds_ifn): Change return type to bool,
7741 always return true.
7742 (ubsan_expand_null_ifn): Change return type to bool, change
7743 argument to gimple_stmt_iterator *. Handle both null and alignment
7744 sanitization, take type from ckind argument's type rather than
7745 first argument.
7746 (instrument_member_call): Removed.
7747 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7748 Handle both null and alignment sanitization, don't say whole
7749 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7750 call instead of 2 argument.
7751 (instrument_null): Adjust instrument_mem_ref caller. Don't
7752 instrument calls here.
7753 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7754 like SANITIZE_NULL.
7755 * stor-layout.c (min_align_of_type): New function.
7756 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7757 Or it into SANITIZE_UNDEFINED.
7758 * doc/invoke.texi (-fsanitize=alignment): Document.
7759
7760 2014-07-31 Andi Kleen <ak@linux.intel.com>
7761
7762 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7763
7764 2014-07-31 Andi Kleen <ak@linux.intel.com>
7765
7766 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7767 inchash.
7768 (vn_reference_compute_hash): Dito.
7769 (vn_nary_op_compute_hash): Dito.
7770 (vn_phi_compute_hash): Dito.
7771 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7772
7773 2014-07-31 Andi Kleen <ak@linux.intel.com>
7774
7775 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7776 Rename to inchash:add_expr_commutative. Convert to inchash.
7777 (iterative_hash_hashable_expr): Rename to
7778 inchash:add_hashable_expr. Convert to inchash.
7779 (avail_expr_hash): Dito.
7780
7781 2014-07-31 Andi Kleen <ak@linux.intel.com>
7782
7783 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7784 Convert to inchash.
7785
7786 2014-07-31 Andi Kleen <ak@linux.intel.com>
7787
7788 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7789
7790 2014-07-31 Andi Kleen <ak@linux.intel.com>
7791
7792 * Makefile.in (OBJS): Add rtlhash.o
7793 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7794 (loc_checksum): Dito.
7795 (loc_checksum_ordered): Dito.
7796 (hash_loc_operands): Dito.
7797 (hash_locs): Dito.
7798 (hash_loc_list): Dito.
7799 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7800 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7801 * rtlhash.c: New file.
7802 * rtlhash.h: New file.
7803
7804 2014-07-31 Andi Kleen <ak@linux.intel.com>
7805
7806 * inchash.h (inchash): Change inchash class to namespace.
7807 (class hash): ... Rename from inchash.
7808 (add_object): Move from macro to class template.
7809 * lto-streamer-out.c (hash_tree): Change inchash
7810 to inchash::hash.
7811 * tree.c (build_type_attribute_qual_variant): Dito.
7812 (type_hash_list): Dito.
7813 (attribute_hash_list): Dito.
7814 (iterative_hstate_expr): Rename to inchash::add_expr
7815 (build_range_type_1): Change inchash to inchash::hash
7816 and use hash::add_expr.
7817 (build_array_type_1): Dito.
7818 (build_function_type): Dito
7819 (build_method_type_directly): Dito.
7820 (build_offset_type): Dito.
7821 (build_complex_type): Dito.
7822 (make_vector_type): Dito.
7823 * tree.h (iterative_hash_expr): Dito.
7824
7825 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7826
7827 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7828
7829 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7830
7831 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7832 correct alphabetical position.
7833 (vpaddd_f64): Rewrite using builtins.
7834 (vpaddd_s64): Move to correct alphabetical position.
7835 (vpaddd_u64): New.
7836
7837 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7838
7839 PR target/61844
7840 * config/sh/sh.c (sh_legitimate_address_p,
7841 sh_legitimize_reload_address): Handle reg+reg address modes when
7842 ALLOW_INDEXED_ADDRESS is false.
7843 * config/sh/predicates.md (general_movsrc_operand,
7844 general_movdst_operand): Likewise.
7845
7846 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7847
7848 * config/aarch64/aarch64-builtins.c
7849 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7850 BYTES_BIG_ENDIAN.
7851
7852 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7853
7854 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7855 the generated mask based on BYTES_BIG_ENDIAN.
7856 (aarch64_simd_check_vect_par_cnst_half): New.
7857 * config/aarch64/aarch64-protos.h
7858 (aarch64_simd_check_vect_par_cnst_half): New.
7859 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7860 the check out to aarch64_simd_check_vect_par_cnst_half.
7861 (vect_par_cnst_lo_half): Likewise.
7862 * config/aarch64/aarch64-simd.md
7863 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7864 (move_hi_quad_<mode>): Always generate a low mask.
7865
7866 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7867
7868 * doc/invoke.texi (AVR Options): Add documentation about
7869 __AVR_DEVICE_NAME__ built-in macro.
7870
7871 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7872
7873 PR target/61948
7874 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7875 constraints are satisfied.
7876 (<shift>di3_neon): Likewise.
7877
7878 2014-07-31 Richard Biener <rguenther@suse.de>
7879
7880 PR tree-optimization/61964
7881 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7882 by structural equality.
7883
7884 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7885
7886 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7887 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7888 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7889 New enums.
7890 * gcc.c (sanitize_spec_function): Support new option.
7891 (SANITIZER_SPEC): Remove now redundant check.
7892 * opts.c (common_handle_option): Support new option.
7893 (finish_options): Check for incompatibilities.
7894 * toplev.c (process_options): Split userspace-specific checks.
7895
7896 2014-07-31 Richard Biener <rguenther@suse.de>
7897
7898 * lto-streamer.h (struct output_block): Remove global.
7899 (struct data_in): Remove labels, num_named_labels and
7900 num_unnamed_labels.
7901 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7902 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7903
7904 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7905
7906 PR c++/60517
7907 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7908 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7909 (isolate_path): New argument to avoid inserting a trap.
7910 (find_implicit_erroneous_behaviour): Handle returning the address
7911 of a local variable.
7912 (find_explicit_erroneous_behaviour): Likewise.
7913
7914 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7915
7916 PR lto/61868
7917 * toplev.c (init_random_seed): Move piece of code never called to
7918 set_random_seed.
7919 (set_random_seed): see above.
7920
7921 2014-07-31 Tom de Vries <tom@codesourcery.com>
7922
7923 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7924
7925 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7926
7927 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7928 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7929
7930 2014-07-31 Richard Biener <rguenther@suse.de>
7931
7932 * data-streamer.h (streamer_write_data_stream): Declare here,
7933 renamed from ...
7934 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7935 * lto-cgraph.c (lto_output_node): Adjust.
7936 (lto_output_varpool_node): Likewise.
7937 * data-streamer-out.c (streamer_string_index): Likewise.
7938 (streamer_write_data_stream, lto_append_block): Move from ...
7939 * lto-section-out.c (lto_output_data_stream,
7940 lto_append_block): ... here.
7941
7942 2014-07-30 Mike Stump <mikestump@comcast.net>
7943
7944 * configure.ac: Also check for popen.
7945 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7946 * configure: Regenerate.
7947 * config.in: Regenerate.
7948
7949 2014-07-30 Martin Jambor <mjambor@suse.cz>
7950
7951 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
7952 parameter to gimple.
7953
7954 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7955
7956 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
7957 address as second parameter to __tpf_eh_return routine.
7958
7959 2014-07-30 Jiong Wang <jiong.wang@arm.com>
7960
7961 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
7962 Thumb2.
7963
7964 2014-07-30 Tom Tromey <tromey@redhat.com>
7965
7966 PR c/59855
7967 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
7968 * doc/extend.texi (Type Attributes): Document designated_init
7969 attribute.
7970
7971 2014-07-30 Roman Gareev <gareevroman@gmail.com>
7972
7973 * graphite-isl-ast-to-gimple.c:
7974 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
7975 (gcc_expression_from_isl_expression): Pass type to
7976 gcc_expression_from_isl_ast_expr_id.
7977
7978 2014-07-30 Richard Biener <rguenther@suse.de>
7979
7980 * lto-streamer.h (lto_write_data): New function.
7981 * langhooks.c (lhd_append_data): Do not free block.
7982 * lto-section-out.c (lto_write_data): New function writing
7983 raw data to the current section.
7984 (lto_write_stream): Adjust for langhook semantic change.
7985 (lto_destroy_simple_output_block): Write header directly.
7986 * lto-opts.c (lto_write_options): Write options directly.
7987 * lto-streamer-out.c (produce_asm): Write heaeder directly.
7988 (lto_output_toplevel_asms): Likewise.
7989 (copy_function_or_variable): Copy data directly.
7990 (write_global_references): Output index table directly.
7991 (lto_output_decl_state_refs): Likewise.
7992 (write_symbol): Write data directly.
7993 (produce_symtab): Adjust.
7994 (produce_asm_for_decls): Output header and refs directly.
7995
7996 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
7997
7998 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
7999 to speculative_targets
8000 (get_class_context): Fix handling of contextes without outer type;
8001 avoid matching non-polymorphic types in LTO.
8002 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8003 parameter to speculative_targetsp; handle speculation.
8004 (dump_possible_polymorphic_call_targets): Update dumping.
8005
8006 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8007
8008 * common.opt (Wodr): Enable by default.
8009
8010 2014-07-29 Olivier Hainque <hainque@adacore.com>
8011
8012 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8013
8014 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8015
8016 PR bootstrap/61914
8017 * gengtype.c (strtoken): New function.
8018 (create_user_defined_type): Replace strtok with strtoken.
8019
8020 2014-07-29 Nathan Sidwell <nathan@acm.org>
8021
8022 * gcov-io.c (gcov_var): Make hidden.
8023 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8024 (gcov_do_dump): Declare.
8025 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8026
8027 2014-07-29 Martin Jambor <mjambor@suse.cz>
8028
8029 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8030 parameter to gimple.
8031 (sra_modify_assign): Likewise.
8032
8033 2014-07-29 Richard Biener <rguenther@suse.de>
8034
8035 PR middle-end/52478
8036 * expr.c (expand_expr_real_2): Revert last change.
8037
8038 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8039
8040 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8041 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8042 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8043 call.
8044 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8045 (contains_type_p): Forward declare.
8046 (polymorphic_call_target_hasher::hash): Hash speculative info.
8047 (polymorphic_call_target_hasher::equal): Compare speculative info.
8048 (get_class_context): Handle speuclation.
8049 (contains_type_p): Update.
8050 (get_polymorphic_call_info_for_decl): Update.
8051 (walk_ssa_copies): Break out from ...
8052 (get_polymorphic_call_info): ... here; set speculative context
8053 before giving up.
8054 * ipa-prop.c (ipa_write_indirect_edge_info,
8055 ipa_read_indirect_edge_info): Stream speculative context.
8056 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8057 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8058 SPECULATIVE_MAYBE_DERIVED_TYPE).
8059 (possible_polymorphic_call_targets overriders): Update.
8060 (dump_possible_polymorphic_call_targets overriders): Update.
8061 (dump_possible_polymorphic_call_target_p overriders): Update.
8062
8063 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8064
8065 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8066 ipa-devirt path; fix thinko there.
8067
8068 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8069
8070 * config/i386/i386.c (ix86_return_in_memory): Replace one
8071 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8072
8073 2014-07-28 Marek Polacek <polacek@redhat.com>
8074
8075 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8076
8077 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8078
8079 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8080 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8081 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8082 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8083 (USE_LD_AS_NEEDED): Likewise.
8084 (ASM_APP_ON): Likewise.
8085 (ASM_APP_OFF): Likewise.
8086 (TARGET_POSIX_IO): Likewise.
8087 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8088 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8089 (USE_LD_AS_NEEDED): Likewise.
8090 (ASM_APP_ON): Likewise.
8091 (ASM_APP_OFF): Likewise.
8092 (TARGET_POSIX_IO): Likewise.
8093
8094 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8095
8096 PR middle-end/61734
8097 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8098 operators other than the equality operators.
8099
8100 2014-07-28 Richard Biener <rguenther@suse.de>
8101
8102 PR middle-end/52478
8103 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8104 sure to register SImode ones, not only >= word_mode ones.
8105 * expr.c (expand_expr_real_2): When expanding -ftrapv
8106 binops do not use OPTAB_LIB_WIDEN.
8107
8108 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8109
8110 PR middle-end/61919
8111 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8112 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8113 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8114 inserting them in the insn stream.
8115
8116 2014-07-28 Marek Polacek <polacek@redhat.com>
8117
8118 PR middle-end/61913
8119 * common.opt (Wodr): Add Var.
8120
8121 2014-07-28 Richard Biener <rguenther@suse.de>
8122
8123 PR tree-optimization/61921
8124 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8125 if there is a varpool node before dereferencing it.
8126
8127 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8128
8129 * graphite-sese-to-poly.c:
8130 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8131 id of the pbb), which contains pointer to the pbb1.
8132
8133 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8134
8135 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8136
8137 * graphite-isl-ast-to-gimple.c:
8138 (graphite_create_new_guard): New function.
8139 (translate_isl_ast_node_if): New function.
8140 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8141
8142 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8143
8144 2014-07-27 Anthony Green <green@moxielogic.com>
8145
8146 * config.gcc: Add moxie-*-moxiebox* configuration.
8147 * config/moxie/moxiebox.h: New file.
8148
8149 2014-07-26 Andrew Pinski <apinski@cavium.com>
8150
8151 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8152 from the read only register.
8153
8154 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8155
8156 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8157 as the allocation class if it isn't likely to be spilled.
8158
8159 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8160
8161 * rtl.h (tls_referenced_p): Declare.
8162 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8163 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8164 (mips_cannot_force_const_mem): Use tls_referenced_p.
8165 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8166 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8167 instead of pa_tls_referenced_p.
8168 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8169 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8170 (pa_legitimate_constant_p): Likewise.
8171 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8172 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8173 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8174 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8175 rs6000_tls_referenced_p.
8176 (rs6000_tls_symbol_ref_1): Delete.
8177
8178 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8179
8180 PR target/44551
8181 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8182 Optimize inverse of a VEC_CONCAT.
8183
8184 2014-07-25 Xinliang David Li <davidxl@google.com>
8185
8186 * params.def: New parameter.
8187 * coverage.c (get_coverage_counts): Check new flag.
8188 (coverage_compute_profile_id): Check new flag.
8189 (coverage_begin_function): Check new flag.
8190 (coverage_end_function): Check new flag.
8191 * value-prof.c (coverage_node_map_initialized_p): New function.
8192 (init_node_map): Populate map with all functions.
8193 * doc/invoke.texi: Document new parameter.
8194
8195 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8196 Richard Biener <rguenther@suse.de>
8197
8198 * lto-streamer-out.c (struct sccs): Turn to ...
8199 (class DFS): ... this one; refactor the DFS walk so it can
8200 be re-done on per-SCC basis.
8201 (DFS::DFS): New constructor.
8202 (DFS::~DFS): New destructor.
8203 (hash_tree): Add new MAP argument holding in-SCC hash values;
8204 remove POINTER_TYPE hashing hack.
8205 (scc_entry_compare): Rename to ...
8206 (DFS::scc_entry_compare): ... this one.
8207 (hash_scc): Rename to ...
8208 (DFS::hash_scc): ... this one; pass output_block instead
8209 of streamer_cache; work harder to get unique and stable SCC
8210 hashes.
8211 (DFS_write_tree): Rename to ...
8212 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8213 (lto_output_tree): Update.
8214
8215 2014-07-25 Andi Kleen <ak@linux.intel.com>
8216
8217 * lto-streamer-out.c (hash_tree): Convert to inchash.
8218
8219 2014-07-25 Andi Kleen <ak@linux.intel.com>
8220
8221 * tree.c (build_type_attribute_qual_variant): Use inchash.
8222 (type_hash_list): Dito.
8223 (attribute_hash_list): Dito
8224 (iterative_hstate_expr): Dito.
8225 (iterative_hash_expr): Dito.
8226 (build_range_type_1): Dito.
8227 (build_array_type_1): Dito.
8228 (build_function_type): Dito.
8229 (build_method_type_directly): Dito.
8230 (build_offset_type): Dito.
8231 (build_complex_type): Dito.
8232 (make_vector_type): Dito.
8233 * tree.h (iterative_hash_expr): Add compat wrapper.
8234 (iterative_hstate_expr): Add.
8235
8236 2014-07-25 Andi Kleen <ak@linux.intel.com>
8237
8238 * Makefile.in (OBJS): Add inchash.o.
8239 (PLUGIN_HEADERS): Add inchash.h.
8240 * ipa-devirt.c: Include inchash.h.
8241 * lto-streamer-out.c: Dito.
8242 * tree-ssa-dom.c: Dito.
8243 * tree-ssa-pre.c: Dito.
8244 * tree-ssa-sccvn.c: Dito.
8245 * tree-ssa-tail-merge.c: Dito.
8246 * asan.c: Dito.
8247 * tree.c (iterative_hash_hashval_t): Move to ...
8248 (iterative_hash_host_wide_int): Move to ...
8249 * inchash.c: Here. New file.
8250 * tree.h (iterative_hash_hashval_t): Move to ...
8251 (iterative_hash_host_wide_int): Move to ...
8252 * inchash.h: Here. New file.
8253
8254 2014-07-25 Richard Biener <rguenther@suse.de>
8255
8256 PR middle-end/61762
8257 PR middle-end/61894
8258 * fold-const.c (native_encode_int): Add and handle offset
8259 parameter to do partial encodings of expr.
8260 (native_encode_fixed): Likewise.
8261 (native_encode_real): Likewise.
8262 (native_encode_complex): Likewise.
8263 (native_encode_vector): Likewise.
8264 (native_encode_string): Likewise.
8265 (native_encode_expr): Likewise.
8266 * fold-const.c (native_encode_expr): Add offset parameter
8267 defaulting to -1.
8268 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8269 (fold_ctor_reference): Handle all reads from tcc_constant
8270 ctors.
8271
8272 2014-07-25 Richard Biener <rguenther@suse.de>
8273
8274 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8275 as possibly unused.
8276
8277 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8278
8279 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8280
8281 2014-07-24 Kyle McMartin <kyle@redhat.com>
8282
8283 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8284
8285 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8286
8287 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8288 Add prototype.
8289 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8290 function.
8291 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8292 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8293 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8294
8295 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8296
8297 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8298 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8299 aggregate types. Instead, *all* aggregate types, except for single-
8300 element or homogeneous float/vector aggregates, are quadword-aligned
8301 if required by their type alignment. Issue -Wpsabi note when a type
8302 is now treated differently than before.
8303
8304 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8305
8306 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8307 does not fit fully into floating-point registers, and there is still
8308 space in the register parameter area, use GPRs to pass those parts
8309 of the argument. Issue -Wpsabi note if any parameter is now treated
8310 differently than before.
8311 (rs6000_arg_partial_bytes): Update.
8312
8313 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8314
8315 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8316
8317 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8318
8319 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8320 * toplev.c (initialize_rtl): Don't use it. Move previously
8321 "language-dependent" calls to...
8322 (backend_init): ...here.
8323 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8324 Assert that RTL initialization hasn't happend yet.
8325
8326 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8327
8328 PR rtl-optimization/61629
8329 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8330 they have already been initialized.
8331
8332 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8333
8334 PR middle-end/61268
8335 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8336 DECL_INCOMING_RTL and entry_parm.
8337 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8338 * calls.c (load_register_parameters): Likewise argument values.
8339 (emit_library_call_value_1, store_one_arg): Likewise argument
8340 save areas.
8341 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8342 stack slot.
8343 * explow.c (validize_mem): Modify the argument in-place.
8344
8345 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8346
8347 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8348 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8349
8350 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8351
8352 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8353 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8354
8355 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8356
8357 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8358 (aarch64_save_callee_saves): New parameter "skip_wb".
8359 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8360
8361 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8362
8363 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8364 "wb_candidate2".
8365 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8366
8367 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8368
8369 * graphite-isl-ast-to-gimple.c:
8370 (graphite_create_new_loop): Add calling of isl_id_free to properly
8371 decrement reference counts.
8372
8373 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8374
8375 2014-07-24 Martin Liska <mliska@suse.cz>
8376 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8377 function used.
8378 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8379 (rs6000_code_end): Likewise.
8380
8381 2014-07-24 Martin Liska <mliska@suse.cz>
8382
8383 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8384 symtab_node funtion used.
8385 (rs6000_xcoff_declare_object_name): Likewise.
8386
8387 2014-07-24 Martin Liska <mliska@suse.cz>
8388
8389 * cgraphunit.c (compile): Correct function used.
8390
8391 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8392
8393 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8394 as non-indexable.
8395
8396 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8397
8398 PR lto/61802
8399 * varasm.c (bss_initializer_p): Handle offlined ctors.
8400 (align_variable, get_variable_align): Likewise.
8401 (make_decl_one_only): Likewise.
8402 (default_binds_local_p_1): Likewise.
8403 (decl_binds_to_current_def_p): Likewise.
8404 (get_variable_section): Get constructor if it is offlined.
8405 (assemble_variable_contents): Sanity check that the caller
8406 streamed in the ctor in LTO.
8407
8408 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8409
8410 * graphite-isl-ast-to-gimple.c:
8411 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8412 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8413 isl_ast_op_pdiv_r to the different case.
8414
8415 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8416
8417 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8418
8419 PR middle-end/61876
8420 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8421 when flag_errno_math is on.
8422
8423 2014-07-24 Martin Liska <mliska@suse.cz>
8424
8425 * cgraph.h (varpool_node):
8426 (availability get_availability (void)):
8427 created from cgraph_variable_initializer_availability
8428 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8429 created from: cgraph_variable_initializer_availability
8430 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8431 (void finalize_named_section_flags (void)):
8432 created from varpool_finalize_named_section_flags
8433 (bool assemble_decl (void)): created from varpool_assemble_decl
8434 (void analyze (void)): created from varpool_analyze_node
8435 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8436 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8437 (void remove_initializer (void)): created from varpool_remove_initializer
8438 (tree get_constructor (void)): created from varpool_get_constructor
8439 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8440 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8441 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8442 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8443 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8444 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8445 (static bool output_variables (void)): created from varpool_output_variables
8446 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8447 created from varpool_extra_name_alias
8448 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8449 (static void dump_varpool (FILE *f)): created from dump_varpool
8450 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8451 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8452 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8453 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8454 (void assemble_aliases (void)): created from assemble_aliases
8455
8456 2014-07-24 Martin Liska <mliska@suse.cz>
8457
8458 * cgraph.h (symtab_node):
8459 (void register_symbol (void)): created from symtab_register_node
8460 (void remove (void)): created from symtab_remove_node
8461 (void dump (FILE *f)): created from dump_symtab_node
8462 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8463 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8464 (struct ipa_ref *add_reference (symtab_node *referred_node,
8465 enum ipa_ref_use use_type)): created from add_reference
8466 (struct ipa_ref *add_reference (symtab_node *referred_node,
8467 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8468 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8469 gimple stmt)): created from maybe_add_reference
8470 (bool semantically_equivalent_p (symtab_node *target)): created from
8471 symtab_semantically_equivalent_p
8472 (void remove_from_same_comdat_group (void)): created from
8473 remove_from_same_comdat_group
8474 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8475 symtab_add_to_same_comdat_group
8476 (void dissolve_same_comdat_group_list (void)): created from
8477 symtab_dissolve_same_comdat_group_list
8478 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8479 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8480 created from symtab_alias_ultimate_target
8481 (inline symtab_node *next_defined_symbol (void)): created from
8482 symtab_next_defined_symbol
8483 (bool resolve_alias (symtab_node *target)): created from
8484 symtab_resolve_alias
8485 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8486 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8487 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8488 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8489 (void set_section (const char *section)): created from set_section_1
8490 (enum availability get_availability (void)): created from symtab_node_availability
8491 (void make_decl_local (void)): created from symtab_make_decl_local
8492 (bool real_symbol_p (void)): created from symtab_read_node
8493 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8494 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8495 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8496 symtab_in_same_comdat_p;
8497 (bool address_taken_from_non_vtable_p (void)): created from
8498 address_taken_from_non_vtable_p
8499 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8500 (static void dump_table (FILE *)): created from dump_symtab
8501 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8502 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8503 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8504 symtab_used_from_object_file_p
8505 (void dump_base (FILE *)): created from dump_symtab_base
8506 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8507 (void unregister (void)): created from symtab_unregister_node
8508 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8509 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8510 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8511 symtab_nonoverwritable_alias_1
8512 * cgraph.h (cgraph_node):
8513 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8514 created from cgraph_remove_node_and_inline_clones
8515 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8516 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8517 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8518 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8519 created from cgraph_function_node
8520 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8521 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8522 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8523 created from cgraph_create_clone
8524 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8525 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8526 created from cgraph_create_virtual_clone
8527 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8528 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8529 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8530 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8531 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8532 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8533 created from cgraph_function_version_info
8534 (struct cgraph_function_version_info *insert_new_function_version (void)):
8535 created from insert_new_cgraph_node_version
8536 (struct cgraph_function_version_info *function_version (void)): created from
8537 get_cgraph_node_version
8538 (void analyze (void)): created from analyze_function
8539 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8540 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8541 tree real_alias) cgraph_add_thunk
8542 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8543 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8544 created from cgraph_function_or_thunk_node
8545 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8546 created from expand_thunk
8547 (void reset (void)): created from cgraph_reset_node
8548 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8549 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8550 (void remove (void)): created from cgraph_remove_node
8551 (void dump (FILE *f)): created from dump_cgraph_node
8552 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8553 (bool get_body (void)): created from cgraph_get_body
8554 (void release_body (void)): created from cgraph_release_function_body
8555 (void unnest (void)): created from cgraph_unnest_node
8556 (void make_local (void)): created from cgraph_make_node_local
8557 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8558 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8559 gcov_type count, int freq)): created from cgraph_create_edge
8560 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8561 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8562 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8563 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8564 created from cgraph_create_edge_including_clones
8565 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8566 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8567 (void remove_callers (void)): created from cgraph_node_remove_callers
8568 (void remove_callees (void)): created from cgraph_node_remove_callees
8569 (enum availability get_availability (void)): created from cgraph_function_body_availability
8570 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8571 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8572 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8573 (void call_duplication_hooks (cgraph_node *node2)): created from
8574 cgraph_call_node_duplication_hooks
8575 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8576 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8577 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8578 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8579 (void call_function_insertion_hooks (void)):
8580 created from cgraph_call_function_insertion_hooks
8581 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8582 (bool local_p (void)): created from cgraph_local_node
8583 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8584 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8585 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8586 (inline bool only_called_directly_or_aliased_p (void)):
8587 created from cgraph_only_called_directly_or_aliased_p
8588 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8589 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8590 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8591 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8592 (bool can_remove_if_no_direct_calls_p (void)):
8593 created from cgraph_can_remove_if_no_direct_calls_p
8594 (inline bool has_gimple_body_p (void)):
8595 created from cgraph_function_with_gimple_body_p
8596 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8597 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8598 (static inline void debug_cgraph (void)): created from debug_cgraph
8599 (static void record_function_versions (tree decl1, tree decl2)):
8600 created from record_function_versions
8601 (static void delete_function_version (tree decl)):
8602 created from delete_function_version
8603 (static void add_new_function (tree fndecl, bool lowered)):
8604 created from cgraph_add_new_function
8605 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8606 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8607 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8608 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8609 (static cgraph_node *get_for_asmname (tree asmname)):
8610 created from cgraph_node_for_asm
8611 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8612 created from cgraph_same_body_alias
8613 (static bool used_from_object_file_p_worker (cgraph_node *node,
8614 void *): new function
8615 (static bool non_local_p (cgraph_node *node, void *)):
8616 created from cgraph_non_local_node_p_1
8617 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8618 created from verify_cgraph
8619 (static bool make_local (cgraph_node *node, void *)):
8620 created from cgraph_make_node_local
8621 (static cgraph_node *create_alias (tree alias, tree target)):
8622 created from cgraph_create_function_alias
8623 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8624 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8625 created from cgraph_create_edge_1
8626 * cgraph.h (varpool_node):
8627 (void remove (void)): created from varpool_remove_node
8628 (void dump (FILE *f)): created from dump_varpool_node
8629
8630 2014-07-24 Richard Biener <rguenther@suse.de>
8631
8632 PR ipa/61823
8633 * tree-ssa-structalias.c (create_variable_info_for_1):
8634 Use varpool_get_constructor.
8635 (create_variable_info_for): Likewise.
8636
8637 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8638
8639 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8640 subtract outgoing area size when restoring stack_pointer_rtx.
8641
8642 2014-07-24 Nick Clifton <nickc@redhat.com>
8643
8644 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8645 that operations are taking place in parallel.
8646 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8647
8648 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8649
8650 * omp-low.c (extract_omp_for_data): Add missing break statement.
8651
8652 2014-07-24 Richard Biener <rguenther@suse.de>
8653
8654 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8655 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8656 and adjust MOVE_RATIO query accordingly.
8657 (estimate_num_insns): Adjust callers.
8658 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8659 * ipa-cp.c (gather_context_independent_values,
8660 estimate_local_effects): Likewise.
8661 * ipa-split.c (consider_split): Likewise.
8662
8663 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8664
8665 * config/i386/driver-i386.c: Remove names of unused arguments and
8666 unnecessary unused attributes.
8667 * config/i386/host-mingw32.c: Likewise.
8668 * config/i386/i386.c: Likewise.
8669 * config/i386/winnt-stubs.c: Likewise.
8670 * config/i386/winnt.c: Likewise.
8671
8672 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8673
8674 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8675 (aarch64_gen_loadwb_pair): New helper function.
8676 (aarch64_expand_epilogue): Simplify code using new helper functions.
8677 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8678
8679 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8680
8681 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8682 (aarch64_gen_storewb_pair): New helper function.
8683 (aarch64_expand_prologue): Simplify code using new helper functions.
8684 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8685
8686 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8687
8688 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8689 Rename to aarch64_save_callee_saves, remove restore code.
8690 (aarch64_restore_callee_saves): New function.
8691
8692 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8693
8694 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8695 (aarch64_save_callee_saves): New function to handle reg save
8696 for both core and vectore regs.
8697
8698 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8699
8700 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8701 (aarch64_gen_store_pair): New helper function.
8702 (aarch64_save_or_restore_callee_save_registers)
8703 (aarch64_save_or_restore_fprs): Use new helper functions.
8704
8705 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8706
8707 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8708 (aarch64_save_or_restore_callee_save_registers)
8709 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8710
8711 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8712
8713 * config/aarch64/aarch64.c
8714 (aarch64_save_or_restore_callee_save_registers)
8715 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8716
8717 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8718
8719 * config/aarch64/aarch64.c
8720 (aarch64_save_or_restore_callee_save_registers)
8721 (aarch64_save_or_restore_fprs): Remove 'increment'.
8722
8723 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8724
8725 * config/aarch64/aarch64.c
8726 (aarch64_save_or_restore_callee_save_registers)
8727 (aarch64_save_or_restore_fprs): Use register offset in
8728 cfun->machine->frame.reg_offset.
8729
8730 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8731
8732 * config/aarch64/aarch64.c
8733 (aarch64_save_or_restore_callee_save_registers)
8734 (aarch64_save_or_restore_fprs): Remove base_rtx.
8735
8736 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8737
8738 * config/aarch64/aarch64.c
8739 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8740 to 'start_offset'. Remove local variable 'start_offset'.
8741
8742 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8743
8744 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8745 type to HOST_WIDE_INT.
8746
8747 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8748
8749 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8750 (aarch64_save_or_restore_fprs)
8751 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8752
8753 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8754
8755 * config/arm/t-rtems-eabi: Add
8756 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8757 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8758 mbig-endian/mthumb/march=armv7-r, and
8759 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8760 multilibs.
8761
8762 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8763 Chris Johns <chrisj@rtems.org>
8764 Joel Sherrill <joel.sherrill@oarcorp.com>
8765
8766 * config.gcc: Add nios2-*-rtems*.
8767 * config/nios2/rtems.h: New file.
8768 * gcc/config/nios2/t-rtems: New file.
8769
8770 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8771
8772 PR target/61396
8773 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8774 constant numbers, not general constants.
8775 (rs6000_expand_vector_init): Ditto.
8776
8777 2014-07-23 Nathan Sidwell <nathan@acm.org>
8778
8779 * gcov-tool.c (gcov_list): Declare here.
8780 (set_gcov_list): Remove.
8781 (gcov_output_files): Set gcov_list directly.
8782
8783 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8784
8785 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8786
8787 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8788
8789 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8790 callee-saved registers are available for padding purpose
8791 and r3 is not mandatory, then prefer use those callee-saved
8792 instead of r3.
8793
8794 2014-07-23 Richard Biener <rguenther@suse.de>
8795
8796 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8797 * combine.c: Include statistics.h and params.h.
8798 (combine_instructions): Guard three and four insn combines
8799 with max-combine-insns value. Record statistics for combines
8800 performed.
8801 * doc/invoke.texi (max-combine-insns): Document new param.
8802
8803 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8804
8805 * graphite-isl-ast-to-gimple.c:
8806 (translate_isl_ast_node_block): New function.
8807 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8808
8809 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8810 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8811
8812 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8813
8814 * graphite-isl-ast-to-gimple.c:
8815 (get_max_schedule_dimensions): New function.
8816 (extend_schedule): Likewise.
8817 (generate_isl_schedule): Add calling of extend_schedule and
8818 get_max_schedule_dimensions.
8819
8820 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8821
8822 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8823 (case UNSPEC): Handle UNSPEC_RBIT.
8824
8825 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8826
8827 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8828 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8829
8830 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8831
8832 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8833
8834 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8835
8836 * graphite-isl-ast-to-gimple.c:
8837 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8838 (ivs_params_clear):
8839 (build_iv_mapping): New function.
8840 (translate_isl_ast_node_user): Likewise.
8841 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8842
8843 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8844 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8845 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8846
8847 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8848
8849 PR target/55701
8850 * config/arm/arm.md (setmem): New pattern.
8851 * config/arm/arm-protos.h (struct tune_params): New fields.
8852 (arm_gen_setmem): New prototype.
8853 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8854 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8855 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8856 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8857 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8858 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8859 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8860 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8861 (arm_const_inline_cost): New function.
8862 (arm_block_set_max_insns): New function.
8863 (arm_block_set_non_vect_profit_p): New function.
8864 (arm_block_set_vect_profit_p): New function.
8865 (arm_block_set_unaligned_vect): New function.
8866 (arm_block_set_aligned_vect): New function.
8867 (arm_block_set_unaligned_non_vect): New function.
8868 (arm_block_set_aligned_non_vect): New function.
8869 (arm_block_set_vect, arm_gen_setmem): New functions.
8870
8871 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8872
8873 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8874
8875 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8876
8877 PR target/61855
8878 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8879 out of #ifdef __OPTIMIZE__.
8880
8881 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8882
8883 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8884 different trapping status if -fnon-call-exceptions is enabled.
8885
8886 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8887
8888 * expr.c (store_field): Handle VOIDmode for calls that return values
8889 in multiple locations.
8890
8891 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8892
8893 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8894 (altivec_vsldoi_<mode>): Likewise.
8895
8896 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8897
8898 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8899 to the number of characters in the line.
8900
8901 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8902
8903 * graphite-isl-ast-to-gimple.c: Add using of
8904 build_nonstandard_integer_type instead of int128_integer_type_node.
8905
8906 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8907
8908 * toplev.c (output_stack_usage): Adjust the location of the warning.
8909
8910 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8911
8912 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8913 (*membar_storeload): Disable for LEON3.
8914
8915 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8916
8917 PR rtl-optimization/61461
8918 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8919
8920 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8921
8922 PR target/61794
8923 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8924 Fix instruction constraint.
8925 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8926
8927 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8928
8929 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8930
8931 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8932
8933 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8934 GNU coding standards.
8935 (nds32_register_move_cost): Likewise.
8936 (nds32_memory_move_cost): Likewise.
8937 (nds32_address_cost): Likewise.
8938
8939 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8940
8941 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8942
8943 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8944
8945 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8946 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8947 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
8948 (HAVE_sync_compare_and_swapqi): Define.
8949 (HAVE_sync_compare_and_swaphi): Likewise.
8950 (HAVE_sync_compare_and_swapsi): Likewise.
8951
8952 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
8953
8954 * config/mips/p5600.md: Add missing cpu tests.
8955
8956 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8957
8958 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
8959 (vmla_f64): Likewise.
8960 (vfms_f64): Likewise.
8961 (vmls_f64): Likewise.
8962
8963 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8964
8965 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
8966 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
8967
8968 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8969
8970 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
8971 (vmlal_high_lane_s32): Likewise.
8972 (vmlal_high_lane_u16): Likewise.
8973 (vmlal_high_lane_u32): Likewise.
8974 (vmlsl_high_lane_s16): Likewise.
8975 (vmlsl_high_lane_s32): Likewise.
8976 (vmlsl_high_lane_u16): Likewise.
8977 (vmlsl_high_lane_u32): Likewise.
8978
8979 2014-07-17 Terry Guo <terry.guo@arm.com>
8980
8981 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
8982 (alus_reg): Renamed to alus_sreg.
8983 * config/arm/arm-fixed.md: Change type of non-dsp instructions
8984 from alu_reg to alu_sreg. Change type of dsp instructions from
8985 alu_reg to alu_dsp_reg.
8986 * config/arm/thumb1.md: Likewise.
8987 * config/arm/thumb2.md: Likewise.
8988 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
8989 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
8990 with alu_sreg and alus_sreg.
8991 * config/arm/arm1026ejs.md (alu_op): Likewise.
8992 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
8993 * config/arm/arm926ejs.md (9_alu_op): Likewise.
8994 * config/arm/fa526.md (526_alu_op): Likewise.
8995 * config/arm/fa606te.md (606te_alu_op): Likewise.
8996 * config/arm/fa626te.md (626te_alu_op): Likewise.
8997 * config/arm/fa726te.md (726te_alu_op): Likewise.
8998 * config/arm/fmp626.md (mp626_alu_op): Likewise.
8999 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9000 alu_sreg, alu_dsp_reg and alus_sreg.
9001 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9002 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9003 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9004 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9005 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9006 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9007 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9008 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9009 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9010 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9011 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9012 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9013 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9014 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9015 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9016 alus_reg to alus_sreg.
9017
9018 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9019
9020 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9021 infinity format.
9022
9023 2014-07-17 Richard Biener <rguenther@suse.de>
9024
9025 PR rtl-optimization/61801
9026 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9027 don't set reg_pending_barrier if it appears in a debug-insn.
9028
9029 2014-07-16 DJ Delorie <dj@redhat.com>
9030
9031 * config/rx/rx.c (rx_option_override): Fix alignment values.
9032 (rx_align_for_label): Likewise.
9033
9034 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9035
9036 PR target/61737.
9037 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9038 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9039 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9040 functions.
9041 (cris_print_index, cris_print_operand, cris_constant_index_p)
9042 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9043 (cris_address_cost): Ditto last CONSTANT_P.
9044 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9045 callers changed. Yield cris_offsettable_symbol for non-PIC
9046 constant symbolic expressions including labels. Yield cris_unspec
9047 for all unspecs.
9048 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9049 target to pic_offset_table_rtx for calls that will likely go
9050 through PLT, const0_rtx when they can't. All callers changed.
9051 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9052 symbolic expressions to be PICified. Remove second, redundant,
9053 assert on can_create_pseudo_p returning non-zero. Use
9054 replace_equiv_address_nv, not replace_equiv_address, for final
9055 operand update.
9056 * config/cris/cris.md ("movsi"): Move variable t to pattern
9057 toplevel. Adjust assert for new cris_symbol_type member. Use
9058 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9059 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9060 for lapc stricter.
9061 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9062 ("call", "call_value"): Use second incoming operand as a marker
9063 for pic-offset-table-register being used.
9064 ("*expanded_call_non_v32", "*expanded_call_v32")
9065 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9066 second incoming operand to CALL, match cris_call_type_marker.
9067 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9068 ("*expanded_call_side"): Ditto. Fix typo in comment.
9069 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9070 CONSTANT_P.
9071 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9072 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9073 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9074 users changed. Add members cris_offsettable_symbol and cris_unspec.
9075 (cris_symbol_type): Rename from cris_pic_symbol_type.
9076 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9077 just CONSTANT_P.
9078 * config/cris/cris-protos.h (cris_symbol_type_of,
9079 cris_expand_pic_call_address): Adjust prototypes.
9080 (cris_legitimate_constant_p): New prototype.
9081
9082 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9083 an existing tmake_file. Don't add t-slibgcc and t-linux.
9084
9085 2014-07-17 Jason Merrill <jason@redhat.com>
9086
9087 PR c++/61623
9088 * symtab.c (symtab_remove_from_same_comdat_group): Also
9089 set_comdat_group to NULL_TREE.
9090 (verify_symtab): Fix diagnostic.
9091
9092 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9093
9094 PR target/61662
9095 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9096
9097 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9098
9099 Support location tracking for built-in macro tokens
9100 * input.h (is_location_from_builtin_token): New function declaration.
9101 * input.c (is_location_from_builtin_token): New function definition.
9102 * toplev.c (general_init): Tell libcpp what the pre-defined
9103 spelling location for built-in tokens is.
9104
9105 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9106
9107 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9108 on the FUNCTION_DECL.
9109
9110 2014-07-16 Richard Biener <rguenther@suse.de>
9111
9112 PR other/61782
9113 * doc/extend.texi (always_inline): Clarify.
9114
9115 2014-07-15 Eric Christopher <echristo@gmail.com>
9116
9117 * doc/invoke.texi (Link Options): Document -z option.
9118
9119 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9120
9121 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9122 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9123
9124 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9125
9126 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9127
9128 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9129
9130 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9131 varpool_assemble_decl.
9132 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9133 true.
9134
9135 2014-07-15 Michael Matz <matz@suse.de>
9136
9137 PR rtl-optimization/61772
9138 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9139
9140 2014-07-15 Richard Biener <rguenther@suse.de>
9141
9142 * opts.c (default_options_table): Disable bit-ccp at -Og.
9143
9144 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9145
9146 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9147
9148 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9149
9150 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9151 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9152 call langhook for unknown declaration.
9153 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9154 * tree.h (DECL_ARGUMENTS): Update.
9155 * print-tree.c (print_node): Update.
9156 * tree-core.h (tree_decl_non_common): Remove arguments.
9157 (tree_function_decl): Add arguments.
9158
9159 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9160
9161 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9162
9163 2014-07-14 Richard Biener <rguenther@suse.de>
9164
9165 PR tree-optimization/61779
9166 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9167 simplifying a condition.
9168
9169 2014-07-14 Richard Biener <rguenther@suse.de>
9170
9171 * builtins.c (c_strlen): Make only_value == 2 really only
9172 affect warning generation.
9173
9174 2014-07-14 Richard Biener <rguenther@suse.de>
9175
9176 PR tree-optimization/61757
9177 PR tree-optimization/61783
9178 PR tree-optimization/61787
9179 * tree-ssa-dom.c (record_equality): Revert canonicalization
9180 change and add comment.
9181 (propagate_rhs_into_lhs): Revert previous fix, removing
9182 loop depth restriction again.
9183
9184 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9185
9186 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9187 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9188 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9189 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9190 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9191 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9192 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9193
9194 2014-07-14 Richard Biener <rguenther@suse.de>
9195
9196 * cgraph.h (decl_in_symtab_p): Make inline.
9197
9198 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9199
9200 PR middle-end/61294
9201 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9202
9203 PR target/61656
9204 * config/i386/i386.c (classify_argument): Don't merge classes above
9205 number of words.
9206
9207 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9208
9209 * cgraph.h (symtab_node): Add nonzero_address.
9210 (decl_in_symtab_p): Break out from ...
9211 (symtab_get_node): ... here.
9212 * fold-const.c: Include cgraph.h
9213 (tree_single_nonzero_warnv_p): Use symtab to determine
9214 if symbol is non-zero.
9215 * symtab.c (symtab_node::nonzero_address): New method.
9216
9217 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9218
9219 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9220 forgotten in previous commit.
9221
9222 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9223
9224 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9225 on builtin types.
9226 * ipa-devirt.c: Include stor-layout.h and intl.h
9227 (odr_subtypes_equivalent_p): New function.
9228 (warn_odr): New function.
9229 (warn_type_mismatch): New function.
9230 (odr_types_equivalent_p): New function.
9231 (add_type_duplicate): Use it.
9232 * common.opt (Wodr): New flag.
9233 * doc/invoke.texi (Wodr): Document new warning.
9234
9235 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9236
9237 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9238 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9239 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9240 (varpool_get_constructor): Push CTORS_IN timevar.
9241 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9242
9243 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9244
9245 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9246 Remove VOID_FTYPE_PUSHORT.
9247 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9248 Change code to USHORT_FTYPE_VOID.
9249 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9250 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9251 (ix86_atomic_assign_expand_fenv): Update for
9252 __builtin_ia32_fnstsw changes.
9253 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9254 (fnstsw): Change operand 0 to nonimmediate operand.
9255
9256 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9257
9258 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9259 (varpool_get_constructor): New function.
9260 (varpool_ctor_useable_for_folding_p): Break out from ...
9261 (ctor_for_folding): ... here; use varpool_get_constructor.
9262 (varpool_assemble_decl): Likewise.
9263 * lto-streamer.h (struct output_block): Turn cgraph_node
9264 to symbol filed.
9265 (lto_input_variable_constructor): Declare.
9266 * ipa-visibility.c (function_and_variable_visibility): Use
9267 varpool_get_constructor.
9268 * cgraph.h (varpool_get_constructor): Declare.
9269 (varpool_ctor_useable_for_folding_p): New function.
9270 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9271 parameter; return error_mark_node for non-trivial constructors.
9272 (lto_write_tree_1, DFS_write_tree): Update use of
9273 get_symbol_initial_value.
9274 (output_function): Update initialization of symbol.
9275 (output_constructor): New function.
9276 (copy_function): Rename to ..
9277 (copy_function_or_variable): ... this one; handle vars too.
9278 (lto_output): Output variable sections.
9279 * lto-streamer-in.c (input_constructor): New function.
9280 (lto_read_body): Rename from ...
9281 (lto_read_body_or_constructor): ... this one; handle vars too.
9282 (lto_input_variable_constructor): New function.
9283 * ipa-prop.c (ipa_prop_write_jump_functions,
9284 ipa_prop_write_all_agg_replacement): Update.
9285 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9286 (output_cgraph_opt_summary): Set symbol to NULL.
9287
9288 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9289
9290 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9291 non-polymorphic types.
9292 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9293 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9294 of types is not polymorphic.
9295
9296 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9297
9298 * lra-constraints.c (remove_inheritance_pseudos): Process
9299 destination pseudo too.
9300
9301 2014-07-11 Rong Xu <xur@google.com>
9302
9303 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9304 commit r212448.
9305
9306 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9307
9308 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9309 * config/avr/avr-devices.c (AVR_MCU): Same.
9310 (avr_mcu_types): add text start value to end of device list.
9311 * config/avr/avr-mcus.def: Add text section start for all devices.
9312 (ata5782): Add new avr5 device.
9313 (ata5831): Same.
9314 * config/avr/avr-tables.opt: Regenerate.
9315 * config/avr/avr.h: Add declaration for text section start handler.
9316 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9317 SPEC functions.
9318 (LINK_SPEC): Include text section start handler to linker spec.
9319 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9320 pass -Ttext option to linker if the text section start for the device
9321 is not zero.
9322 * config/avr/t-multilib: Regenerate.
9323 * doc/avr-mmcu.texi: Regenerate.
9324
9325 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9326
9327 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9328 * config/rs6000/aix52.h (LINK_SPEC): Same.
9329 * config/rs6000/aix53.h (LINK_SPEC): Same.
9330 * config/rs6000/aix61.h (LINK_SPEC): Same.
9331 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9332
9333 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9334
9335 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9336 (graphite_verify): New function.
9337 (ivs_params_clear): New function.
9338 (gcc_expression_from_isl_ast_expr_id): New function.
9339 (gcc_expression_from_isl_expr_int): New function.
9340 (binary_op_to_tree): New function.
9341 (ternary_op_to_tree): New function.
9342 (unary_op_to_tree): New function.
9343 (nary_op_to_tree): New function.
9344 (gcc_expression_from_isl_expr_op): New function.
9345 (gcc_expression_from_isl_expression): New function.
9346 (graphite_create_new_loop): New function.
9347 (translate_isl_ast_for_loop): New function.
9348 (get_upper_bound): New function.
9349 (graphite_create_new_loop_guard): New function.
9350 (translate_isl_ast_node_for): New function.
9351 (translate_isl_ast): New function.
9352 (add_parameters_to_ivs_params): New function.
9353 (scop_to_isl_ast): New parameter ip.
9354 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9355
9356 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9357
9358 * config/xtensa/predicates.md (call expander): Update for
9359 DECL_SECTION_NAME being string.
9360
9361 2014-07-11 Richard Biener <rguenther@suse.de>
9362
9363 PR middle-end/61473
9364 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9365 can be implemented with a single load followed by a single store.
9366 (c_strlen): Only warn when only_value is not 2.
9367
9368 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9369
9370 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9371
9372 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9373
9374 PR target/61561
9375 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9376 (*movhi_bytes): Likewise.
9377 (*arm_movqi_insn): Likewise.
9378
9379 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9380
9381 PR target/56858
9382 * config/alpha/alpha.c: Include tree-pass.h, context.h
9383 and pass_manager.h.
9384 (pass_data_handle_trap_shadows): New pass.
9385 (pass_handle_trap_shadows::gate): New pass gate function.
9386 (make_pass_handle_trap_shadows): New function.
9387 (rest_of_handle_trap_shadows): Ditto.
9388
9389 (alpha_align_insns_1): Rename from alpha_align_insns.
9390 (pass_data_align_insns): New pass.
9391 (pass_align_insns::gate): New pass gate function.
9392 (make_pass_aling_insns): New function.
9393 (rest_of_align_insns): Ditto.
9394 (alpha_align_insns): Ditto.
9395
9396 (alpha_option_override): Declare handle_trap_shadows info
9397 and align_insns_info. Register handle_trap_shadows and align_insns
9398 passes here.
9399 (alpha_reorg): Do not call alpha_trap_shadows and
9400 alpha_align_insn from here.
9401
9402 (alpha_pad_function_end): Do not skip BARRIERs.
9403
9404 2014-07-10 Rong Xu <xur@google.com>
9405
9406 Add gcov-tool: an offline gcda profile processing tool support.
9407 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9408 (gcov_is_error): Ditto.
9409 (gcov_read_string): Ditto.
9410 (gcov_read_sync): Ditto.
9411 * gcov-io.h: Move counter defines to gcov-counter.def.
9412 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9413 * coverage.c: Ditto.
9414 * gcov-tool.c: Offline gcda profile processing tool.
9415 (unlink_gcda_file): Remove one gcda file.
9416 (unlink_profile_dir): Remove gcda files from the profile path.
9417 (gcov_output_files): Output gcda files to an output dir.
9418 (profile_merge): Merge two profiles in directory.
9419 (print_merge_usage_message): Print merge usage.
9420 (merge_usage): Print merge usage and exit.
9421 (do_merge): Driver for profile merge sub-command.
9422 (profile_rewrite): Rewrite profile.
9423 (print_rewrite_usage_message): Print rewrite usage.
9424 (rewrite_usage): Print rewrite usage and exit.
9425 (do_rewrite): Driver for profile rewrite sub-command.
9426 (print_usage): Print gcov-info usage and exit.
9427 (print_version): Print gcov-info version.
9428 (process_args): Process arguments.
9429 (main): Main routine for gcov-tool.
9430 * Makefile.in: Build and install gcov-tool.
9431 * gcov-counter.def: New file split from gcov-io.h.
9432 * doc/gcc.texi: Include gcov-tool.texi.
9433 * doc/gcov-tool.texi: Document for gcov-tool.
9434
9435 2014-07-10 Richard Biener <rguenther@suse.de>
9436
9437 PR tree-optimization/61757
9438 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9439 (propagate_rhs_into_lhs): Revert part of last change.
9440
9441 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9442
9443 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9444 FUNCTION_DECLs.
9445
9446 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9447
9448 PR middle-end/53590
9449 * function.c (allocate_struct_function): Revert r188667 change.
9450
9451 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9452
9453 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9454
9455 * doc/install.texi: Remove links to defunct package providers for
9456 Solaris.
9457
9458 2014-07-09 Tom de Vries <tom@codesourcery.com>
9459
9460 * final.c (get_call_fndecl): Declare.
9461 (self_recursive_call_p): New function.
9462 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9463
9464 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9465
9466 * ipa-devirt.c (record_node): Walk through aliases.
9467
9468 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9469
9470 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9471
9472 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9473
9474 Revert:
9475 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9476
9477 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9478
9479 * ipa-visibility.c (function_and_variable_visibility): Remove
9480 temporary hack disabling local aliases on AIX.
9481
9482 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9483
9484 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9485 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9486
9487 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9488
9489 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9490 * rs6000/rs6000.c: Inline output of .set instruction.
9491 (declare_alias_data): New struct.
9492 (rs6000_declare_alias): New function.
9493 (rs6000_xcoff_declare_function_name): Use it.
9494 (rs6000_xcoff_declare_object_name): New function.
9495 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9496 (ASM_OUTPUT_DEF): Turn to empty definition.
9497
9498 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9499
9500 PR bootstrap/61679
9501 * hash-table.h: use hash_table::value_type instead of
9502 Descriptor::value_type in the return types of several methods.
9503
9504 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9505
9506 * tree-pass.h (pass_data): Remove has_execute member.
9507 * passes.c (execute_one_pass): Don't check pass->has_execute.
9508 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9509 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9510 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9511 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9512 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9513 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9514 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9515 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9516 gimple-low.c, gimple-ssa-isolate-paths.c,
9517 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9518 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9519 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9520 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9521 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9522 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9523 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9524 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9525 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9526 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9527 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9528 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9529 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9530 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9531 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9532 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9533 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9534 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9535 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9536 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9537 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9538 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9539 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9540 web.c: Remove initializer for pass_data::has_execute.
9541
9542 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9543
9544 * graphite-htab.h: Use hash_map instead of hash_table.
9545 * graphite-clast-to-gimple.c: Adjust.
9546 * passes.c: Use hash_map instead of hash_table.
9547 * sese.c: Likewise.
9548 * sese.h: Remove now unused code.
9549
9550 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9551
9552 PR target/61599
9553 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9554 than zero.
9555
9556 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9557
9558 PR rtl-optimization/61673
9559 * combine.c (simplify_comparison): Test just mode's sign bit
9560 in tmode rather than the sign bit and any bits above it.
9561
9562 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9563
9564 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9565 Add __isl_give to the declaration.
9566 (generate_isl_schedule): Likewise.
9567 (scop_to_isl_ast): Likewise.
9568
9569 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9570
9571 * config/arm/arm.c (cortexa5_extra_costs): New table.
9572 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9573
9574 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9575
9576 PR tree-optimization/61725
9577 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9578 range, use range_includes_zerop_p instead of integer_zerop on
9579 vr0->min, only use log2 of max if min is not negative.
9580
9581 2014-07-08 Richard Biener <rguenther@suse.de>
9582
9583 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9584 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9585 restriction on loop depth difference.
9586 (record_equality): Likewise.
9587 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9588 (loop_depth_of_name): Remove.
9589 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9590 restriction on loop depth difference.
9591 (init_copy_prop): Likewise.
9592
9593 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9594
9595 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9596 parameter.
9597 (walk_aliased_vdefs): Likewise.
9598 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9599 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9600 (detect_type_change_from_memory_writes): Check if entry was reached.
9601
9602 2014-07-08 Richard Biener <rguenther@suse.de>
9603
9604 PR tree-optimization/61681
9605 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9606 NONLOCAL inside ESCAPED.
9607
9608 2014-07-08 Richard Biener <rguenther@suse.de>
9609
9610 PR tree-optimization/61680
9611 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9612 Handle properly all read-write dependences with group accesses.
9613
9614 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9615
9616 PR tree-optimization/61576
9617 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9618 block containing reduction statement is predecessor of phi basi block.
9619
9620 2014-07-08 Marek Polacek <polacek@redhat.com>
9621
9622 PR c/60226
9623 * fold-const.c (round_up_loc): Change the parameter type.
9624 Remove assert.
9625 * fold-const.h (round_up_loc): Adjust declaration.
9626 * stor-layout.c (finalize_record_size): Check for too large types.
9627
9628 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9629
9630 * symtab.c: Include calls.h.
9631 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9632
9633 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9634
9635 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9636 little-endian code generation.
9637 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9638 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9639 (spe_evmergehilo): Rename to...
9640 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9641 (spe_evmergelo): Rename to...
9642 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9643 (spe_evmergelohi): Rename to...
9644 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9645 (spe_evmergehi, spe_evmergehilo): New expanders.
9646 (spe_evmergelo, spe_evmergelohi): Likewise.
9647 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9648 (*frob_tf_ti): Likewise.
9649 (*frob_<mode>_di_2): Likewise.
9650 (*frob_tf_di_8_2): Likewise.
9651 (*frob_di_<mode>): Likewise.
9652 (*frob_ti_tf): Likewise.
9653 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9654 (*frob_ti_<mode>_8_2): Likewise.
9655 (*frob_ti_tf_2): Likewise.
9656 (mov_si<mode>_e500_subreg0): Rename to...
9657 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9658 endianness only.
9659 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9660 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9661 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9662 the big endianness only.
9663 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9664 (*mov_si<mode>_e500_subreg0_2): Rename to...
9665 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9666 big big endianness only.
9667 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9668 (*mov_si<mode>_e500_subreg4): Rename to...
9669 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9670 endianness only.
9671 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9672 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9673 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9674 the big endianness only.
9675 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9676 pattern.
9677 (*mov_si<mode>_e500_subreg4_2): Rename to...
9678 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9679 endianness only.
9680 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9681 (*mov_sitf_e500_subreg8): Rename to...
9682 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9683 endianness only.
9684 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9685 (*mov_sitf_e500_subreg8_2): Rename to...
9686 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9687 endianness only.
9688 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9689 (*mov_sitf_e500_subreg12): Rename to...
9690 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9691 endianness only.
9692 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9693 (*mov_sitf_e500_subreg12_2): Rename to...
9694 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9695 endianness only.
9696 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9697
9698 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9699
9700 * asan.c (instrument_strlen_call): Do not instrument first byte
9701 in strlen if already instrumented.
9702
9703 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9704
9705 * config/arm/arm.opt (mwords-little-endian): Delete.
9706 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9707 of TARGET_LITTLE_WORDS.
9708 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9709 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9710 warning.
9711 * doc/invoke.texi: Remove references to -mwords-little-endian.
9712
9713 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9714
9715 * expmed.c (struct init_expmed_rtl): Change all fields but
9716 pow2 and cint from struct rtx_def to rtx.
9717 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9718 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9719 at the end again.
9720
9721 2014-07-06 Marek Polacek <polacek@redhat.com>
9722
9723 PR c/6940
9724 * doc/invoke.texi: Document -Wsizeof-array-argument.
9725
9726 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9727
9728 * wide-int.h (wide_int_storage): Change declaration from struct
9729 to class.
9730
9731 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9732
9733 * cgraph.c (cgraph_create_indirect_edge): Update call of
9734 get_polymorphic_call_info.
9735 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9736 (possible_polymorphic_call_targets): Add parameter call.
9737 (decl_maybe_in_construction_p): New predicate.
9738 (get_polymorphic_call_info): Add parameter call;
9739 use decl_maybe_in_construction_p.
9740 * gimple-fold.c (fold_gimple_assign): Update use of
9741 possible_polymorphic_call_targets.
9742 (gimple_fold_call): Likewise.
9743 * ipa-prop.c: Inlcude calls.h
9744 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9745 (param_type_may_change_p): New predicate.
9746 (detect_type_change_from_memory_writes): Break out from ...
9747 (detect_type_change): ... this one; use param_type_may_change_p.
9748 (detect_type_change_ssa): Use param_type_may_change_p.
9749 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9750
9751 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9752
9753 PR target/49423
9754 * config/arm/arm-protos.h (arm_legitimate_address_p,
9755 arm_is_constant_pool_ref): Add prototypes.
9756 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9757 (arm_is_constant_pool_ref) New function.
9758 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9759 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9760 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9761 operand. Remove pool_range and neg_pool_range attributes.
9762 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9763 pool_range and neg_pool_range attributes.
9764 * config/arm/constraints.md (Uh): New constraint.
9765 (Uq): Don't allow constant pool references.
9766
9767 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9768
9769 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9770 (move_lo_quad_internal_be_<mode>): Likewise.
9771 (move_lo_quad_<mode>): Convert to define_expand.
9772 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9773 (aarch64_simd_move_hi_quad_be_<mode>): New.
9774 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9775 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9776 (aarch64_combinez_be<mode>): New.
9777 (aarch64_combine<mode>): Convert to define_expand.
9778 (aarch64_combine_internal<mode>): New.
9779 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9780
9781 2014-07-04 Tom de Vries <tom@codesourcery.com>
9782
9783 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9784 combination of earlyclobber and read/write modifiers.
9785
9786 2014-07-04 Tom de Vries <tom@codesourcery.com>
9787
9788 * config/aarch64/aarch64-simd.md
9789 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9790
9791 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9792
9793 PR target/61714
9794 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9795
9796 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9797
9798 PR middle-end/61654
9799 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9800
9801 PR tree-optimization/61684
9802 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9803 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9804
9805 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9806 Kito Cheng <kito@0xlab.org>
9807 Monk Chiang <sh.chiang04@gmail.com>
9808
9809 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9810 (nds32_symbol_load_store_p): Move to ...
9811 (nds32_fp_as_gp_check_available): Move to ...
9812 * config/nds32/nds32-fp-as-gp.c: ... here.
9813 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9814 extern declaration.
9815
9816 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9817 Kito Cheng <kito@0xlab.org>
9818 Monk Chiang <sh.chiang04@gmail.com>
9819
9820 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9821 (nds32_expand_store_multiple): Move to ...
9822 (nds32_expand_movmemqi): Move to ...
9823 * config/nds32/nds32-memory-manipulation.c: ... here.
9824
9825 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9826 Kito Cheng <kito@0xlab.org>
9827 Monk Chiang <sh.chiang04@gmail.com>
9828
9829 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9830 (nds32_output_casesi_pc_relative): Move to ...
9831 (nds32_output_casesi): Move to ...
9832 (nds32_mem_format): Move to ...
9833 (nds32_output_16bit_store): Move to ...
9834 (nds32_output_16bit_load): Move to ...
9835 (nds32_output_32bit_store): Move to ...
9836 (nds32_output_32bit_load): Move to ...
9837 (nds32_output_32bit_load_s): Move to ...
9838 (nds32_output_stack_push): Move to ...
9839 (nds32_output_stack_pop): Move to ...
9840 * config/nds32/nds32-md-auxiliary.c: ... here.
9841
9842 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9843 Ling-Hua Tseng <uranus@tinlans.org>
9844
9845 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9846 the purpose of this file.
9847
9848 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9849 Kito Cheng <kito@0xlab.org>
9850 Monk Chiang <sh.chiang04@gmail.com>
9851
9852 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9853 (nds32_address_cost): Move implementation to ...
9854 * config/nds32/nds32-cost.c: ... here.
9855 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9856 (nds32_address_cost_impl): Declare.
9857
9858 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9859 Kito Cheng <kito@0xlab.org>
9860 Monk Chiang <sh.chiang04@gmail.com>
9861
9862 * config/nds32/nds32.c
9863 (nds32_consecutive_registers_load_store_p): Move to ...
9864 (nds32_valid_multiple_load_store): Move to ...
9865 (nds32_valid_stack_push_pop): Move to ...
9866 (nds32_can_use_bclr_p): Move to ...
9867 (nds32_can_use_bset_p): Move to ...
9868 (nds32_can_use_btgl_p): Move to ...
9869 (nds32_can_use_bitci_p): Move to ...
9870 * config/nds32/nds32-predicates.c: ... here.
9871
9872 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9873 Kito Cheng <kito@0xlab.org>
9874 Monk Chiang <sh.chiang04@gmail.com>
9875
9876 * config/nds32/nds32.c
9877 (nds32_expand_builtin_null_ftype_reg): Move to ...
9878 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9879 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9880 (nds32_init_builtins): Move implementation to ...
9881 (nds32_expand_builtin): Move implementation to ...
9882 * config/nds32/nds32-intrinsic.c: ... here.
9883 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9884 (nds32_expand_builtin_impl): Declare.
9885
9886 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9887 Kito Cheng <kito@0xlab.org>
9888 Monk Chiang <sh.chiang04@gmail.com>
9889
9890 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9891 (nds32_emit_section_tail_template): Move to ...
9892 (nds32_emit_isr_jmptbl_section): Move to ...
9893 (nds32_emit_isr_vector_section): Move to ...
9894 (nds32_emit_isr_reset_conten): Move to ...
9895 (nds32_check_isr_attrs_conflict): Move to ...
9896 (nds32_construct_isr_vectors_information): Move to ...
9897 (nds32_asm_file_start): Move implementation to ...
9898 (nds32_asm_file_end): Move implementation to ...
9899 * config/nds32/nds32-isr.c: ... here.
9900 * config/nds32/nds32-protos.h
9901 (nds32_check_isr_attrs_conflict): Declare.
9902 (nds32_construct_isr_vectors_information): Declare.
9903 (nds32_asm_file_start_for_isr): Declare.
9904 (nds32_asm_file_end_for_isr): Declare.
9905
9906 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9907 Kito Cheng <kito@0xlab.org>
9908 Monk Chiang <sh.chiang04@gmail.com>
9909
9910 * config.gcc (nds32*): Add new modules to extra_objs.
9911 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9912 (nds32be-*-*): Likewise.
9913 * config/nds32/nds32-cost.c: New file.
9914 * config/nds32/nds32-fp-as-gp.c: New file.
9915 * config/nds32/nds32-intrinsic.c: New file.
9916 * config/nds32/nds32-isr.c: New file.
9917 * config/nds32/nds32-md-auxiliary.c: New file.
9918 * config/nds32/nds32-memory-manipulation.c: New file.
9919 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9920 * config/nds32/nds32-predicates.c: New file.
9921 * config/nds32/t-nds32: New file.
9922
9923 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9924
9925 PR tree-optimization/61682
9926 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9927 using cases and when one of the operands is equal to 1.
9928
9929 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9930
9931 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9932 ashr<mode>3): Correct mode of operands[2].
9933 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9934 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9935 Correct mode of operands[2]. Fix split condition.
9936
9937 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9938
9939 * arm.md (arch): Add armv6_or_vfpv3.
9940 (arch_enabled): Add test for the above.
9941 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9942 on VFP9.
9943 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9944
9945 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9946
9947 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
9948 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
9949 HWI 1 and negate the unsigned value.
9950 * expmed.c (expand_sdiv_pow2): For modes wider than word always
9951 use AND instead of shift.
9952 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
9953
9954 2014-07-03 Marek Polacek <polacek@redhat.com>
9955
9956 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
9957 (-fsanitize=float-divide-by-zero): Move to the table with
9958 -fsanitize=undefined suboptions.
9959 (-fsanitize=float-cast-overflow): Likewise.
9960
9961 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
9962
9963 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
9964 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
9965 endianness.
9966
9967 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9968
9969 * loop-invariant.c (struct invariant): Add a new member: eqno;
9970 (find_identical_invariants): Update eqno;
9971 (create_new_invariant): Init eqno;
9972 (get_inv_cost): Compute comp_cost with eqno;
9973
9974 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
9975
9976 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
9977 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
9978 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
9979 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
9980 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
9981
9982 2014-07-02 Christian Bruel <christian.bruel@st.com>
9983
9984 PR target/29349
9985 PR target/53513
9986 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
9987 (make_preds_opaque): Delete.
9988 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
9989 (commit_mode_sets): New function.
9990 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
9991 Process all modes at once.
9992 * basic-block.h (pre_edge_lcm_avs): Declare.
9993 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
9994 Call clear_aux_for_edges. Fix comments.
9995 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
9996 (pre_edge_rev_lcm): Idem.
9997 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
9998 parameter.
9999 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10000 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10001 Idem.
10002 * config/i386/i386.c (x96_emit_mode_set): Idem.
10003 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10004 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10005 (fpscr_toggle) Disallow from delay slot.
10006 * target.def (emit_mode_set): Add prev_mode parameter.
10007 * doc/tm.texi: Regenerate.
10008
10009 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10010
10011 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10012 variable i.
10013
10014 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10015
10016 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10017 vtable_pointer_value_to_vtable): Constify.
10018 (contains_polymorphic_type_p): Declare.
10019 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10020 vtable_pointer_value_to_vtable): Constify.
10021 (contains_polymorphic_type_p): New predicate.
10022 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10023 polymorphic types.
10024 (ipa_set_ancestor_jf): Likewise.
10025 (detect_type_change): Return false in easy cases.
10026 (compute_complex_assign_jump_func): Require type to contain
10027 polymorphic type.
10028 (compute_known_type_jump_func): Likewise.
10029
10030 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10031
10032 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10033 Remove.
10034 (type_in_anonymous_namespace_p): Constify argument.
10035 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10036 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10037 (main_odr_variant): New function.
10038 (hash_type_name): Make static; update assert; do not ICE on
10039 non-records.
10040 (types_same_for_odr): Bring here from tree.c; simplify and remove
10041 old structural comparing code that doesn't work for templates.
10042 (odr_hasher::equal): Update assert.
10043 (add_type_duplicate): Return true when bases should be computed;
10044 replace incomplete loader by complete; do not output duplicated
10045 warnings; do not ICE on non-records; set odr_violated flag.
10046 (get_odr_type): Be ready to replace incomplete type by complete
10047 one; work on ODR variants instead of main variants; reorder item
10048 in array so bases have still smaller indexes.
10049 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10050 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10051
10052 2014-07-01 Cary Coutant <ccoutant@google.com>
10053
10054 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10055 lookup.
10056 (resolve_addr_in_expr): When replacing the rtx in a location list
10057 entry, get a new address table entry.
10058 (dwarf2out_finish): Call index_location_lists even if there are no
10059 addr_index_table entries yet.
10060
10061 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10062
10063 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10064 change for not being obvious.
10065
10066 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10067
10068 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10069 unused argument.
10070
10071 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10072
10073 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10074 (vcagt_f64): Likewise.
10075 (vcale_f64): Likewise.
10076 (vcaled_f64): Likewise.
10077 (vcales_f32): Likewise.
10078 (vcalt_f64): Likewise.
10079 (vcaltd_f64): Likewise.
10080 (vcalts_f32): Likewise.
10081
10082 2014-07-01 Marek Polacek <polacek@redhat.com>
10083
10084 * doc/invoke.texi: Document -Wint-conversion.
10085
10086 2014-07-01 Marek Polacek <polacek@redhat.com>
10087
10088 PR c/58286
10089 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10090
10091 2014-07-01 Martin Liska <mliska@suse.cz>
10092
10093 IPA REF alias refactoring
10094 * cgraph.h (iterate_direct_aliases): New function.
10095 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10096 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10097 FOR_EACH_ALIAS added.
10098 (cgraph_for_node_and_aliases): Likewise.
10099 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10100 * ipa-inline.c (reset_edge_caches): Likewise.
10101 (update_caller_keys): Likewise.
10102 * trans-mem.c (ipa_tm_execute): Likewise.
10103 *varpool.c (varpool_analyze_node): Likewise.
10104 (varpool_for_node_and_aliases): Likewise.
10105 * ipa-ref.h (first_alias): New function.
10106 (last_alias): Likewise.
10107 (has_aliases_p): Likewise.
10108 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10109 is sensitive to IPA_REF_ALIASes.
10110 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10111 are put at the beginning of the list.
10112 (symtab_node::iterate_direct_aliases): New function.
10113
10114 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10115
10116 Revert:
10117 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10118 type is complete.
10119 (write_ts_type_common_tree_pointers): Do not stream fields not set
10120 for incomplete types; do not stream duplicated fields for variants;
10121 sanity check that variant and type match.
10122 (write_ts_type_non_common_tree_pointers): Likewise.
10123 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10124 TYPE_SIZE whether type is complete.
10125 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10126 write_ts_type_common_tree_pointers
10127 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10128
10129 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10130
10131 * var-tracking.c (add_stores): Return instead of asserting if old
10132 and new values for conditional store are the same.
10133
10134 2014-06-30 Richard Henderson <rth@redhat.com>
10135
10136 PR rtl-opt/61608
10137 PR target/39284
10138 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10139 the cfg if there were any changes.
10140 * passes.def: Revert move of peephole2 after reorder_blocks;
10141 move duplicate_computed_gotos before peephole2.
10142
10143 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10144
10145 * except.c (emit_note_eh_region_end): New helper function.
10146 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10147 emit EH_REGION_END note.
10148 * jump.c (cleanup_barriers): Do not split a call and its
10149 corresponding CALL_ARG_LOCATION note.
10150
10151 2014-06-30 Jeff Law <law@redhat.com>
10152
10153 PR tree-optimization/61607
10154 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10155 deeper into the SSA_NAME_VALUE chain.
10156
10157 2014-06-30 Marek Polacek <polacek@redhat.com>
10158
10159 * convert.c (convert_to_integer): Don't instrument conversions if the
10160 function has no_sanitize_undefined attribute.
10161 * ubsan.c: Don't run the ubsan pass if the function has
10162 no_sanitize_undefined attribute.
10163
10164 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10165
10166 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10167 -fsanitize=undefined suboptions.
10168
10169 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10170
10171 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10172 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10173 against bigendian and adjust indices.
10174
10175 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10176
10177 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10178
10179 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10180
10181 PR target/61633
10182 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10183 Add alternative; make early clobber. Adjust both split patterns
10184 to use operand 0 as the working register.
10185
10186 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10187
10188 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10189 as ira_object_id_map might be NULL, or 1.
10190
10191 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10192
10193 * loop-invariant.c (get_inv_cost): Handle register class.
10194 (gain_for_invariant): Check the register pressure of the inv
10195 and its overlapped register class, other than all.
10196
10197 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10198
10199 * doc/invoke.texi (Optimize Options): Fix descriptions of
10200 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10201
10202 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10203
10204 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10205 documentation.
10206
10207 2014-06-29 Tobias Grosser <tobias@grosser.es>
10208
10209 PR bootstrap/61650
10210 * graphite-isl-ast-to-gimple.c: Add missing guards.
10211
10212 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10213
10214 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10215 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10216 * flag-types.h: Add new enum fgraphite_generator.
10217 * graphite-isl-ast-to-gimple.c: New.
10218 * graphite-isl-ast-to-gimple.h: New.
10219 * graphite.c (graphite_transform_loops): Add choice of Graphite
10220 code generator, which depends on flag_graphite_code_gen.
10221
10222 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10223
10224 * graphite-dependences.c (subtract_commutative_associative_deps):
10225 Add NULL checking of the following variables: must_raw_no_source,
10226 may_raw_no_source, must_war_no_source, may_war_no_source,
10227 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10228 must_war, may_war, must_waw, may_waw.
10229
10230 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10231
10232 * graphite-clast-to-gimple.c: gloog is renamed to
10233 graphite_regenerate_ast_cloog. gloog_error is renamed to
10234 graphite_regenerate_error.
10235 * graphite-clast-to-gimple.h: The definition of the struct
10236 bb_pbb_def is moved to graphite-htab.h.
10237 Add inclusion of the hash-table.h.
10238 * graphite-htab.h: The declaration of the function gloog is moved
10239 to graphite-clast-to-gimple.h and renamed to
10240 graphite_regenerate_ast_cloog.
10241 * graphite.c (graphite_transform_loops): gloog is renamed
10242 to graphite_regenerate_ast_cloog.
10243
10244 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10245
10246 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10247 type is complete.
10248 (write_ts_type_common_tree_pointers): Do not stream fields not set
10249 for incomplete types; do not stream duplicated fields for variants;
10250 sanity check that variant and type match.
10251 (write_ts_type_non_common_tree_pointers): Likewise.
10252 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10253 TYPE_SIZE whether type is complete.
10254 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10255 write_ts_type_common_tree_pointers
10256 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10257
10258 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10259
10260 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10261
10262 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10263
10264 * tree-inline.c (remap_type_1): Do not duplicate fields
10265 that are shared in between type and its main variant.
10266
10267 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10268
10269 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10270 of the type.
10271 (ipa_set_ancestor_jf) Likewise.
10272 (check_stmt_for_type_change): Check that we work on main variant.
10273 (detect_type_change): Look into main variant.
10274 (compute_known_type_jump_func): Check that main variant has BINFO.
10275
10276 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10277
10278 * ipa-devirt.c (set_type_binfo): New function.
10279 (add_type_duplicate): Use it.
10280 (get_odr_type): Sanity check that binfos points to main variants.
10281 (get_class_context): Be sure the context's outer_type is main variant.
10282 (contains_type_p): Walk main variant.
10283 (get_polymorphic_call_info_for_decl): Set outer_type to be
10284 main variant.
10285 (get_polymorphic_call_info): Likewise.
10286 (possible_polymorphic_call_targets): Sanity check that we operate
10287 on main variant.
10288
10289 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10290
10291 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10292
10293 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10294
10295 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10296 accidental change due to wide-int branch merge.
10297
10298 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10299
10300 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10301 compressed debug support.
10302 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10303 * configure: Regenerate.
10304 * config.in: Regenerate.
10305 * common.opt (compressed_debug_sections): New enum.
10306 (gz, gz=): New options.
10307 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10308 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10309 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10310 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10311 LINK_COMPRESS_DEBUG_SPEC.
10312 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10313 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10314 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10315 (Debugging Options): Document -gz[=type].
10316
10317 2014-06-27 Martin Jambor <mjambor@suse.cz>
10318
10319 PR ipa/61160
10320 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10321 args_to_skip, use those from node instead. Copy args_to_skip and
10322 combined_args_to_skip from node to the new thunk.
10323 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10324 (cgraph_create_virtual_clone): Moved computation of
10325 combined_args_to_skip...
10326 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10327
10328 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10329
10330 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10331 redundant diagnostic machinary.
10332
10333 2014-06-27 Richard Biener <rguenther@suse.de>
10334
10335 * tree-ssa-math-opts.c (bswap_replace): Fix
10336 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10337
10338 2014-06-27 Martin Liska <mliska@suse.cz>
10339
10340 * gimple.h (gimple_location_safe): New function introduced.
10341 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10342 of gimple_location_safe replaces gimple_location.
10343 (gimple_fold_call): Likewise.
10344 * ipa-devirt.c (ipa_devirt): Likewise.
10345 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10346 * ipa.c (walk_polymorphic_call_targets): Likewise.
10347 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10348
10349 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10350
10351 PR tree-optimization/57233
10352 PR tree-optimization/61299
10353 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10354 functions.
10355 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10356 would be lowered to scalar shifts, check if corresponding
10357 shifts and vector BIT_IOR_EXPR are supported and don't lower
10358 or lower just to narrower vector type in that case.
10359 * expmed.c (expand_shift_1): Fix up handling of vector
10360 shifts and rotates.
10361
10362 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10363
10364 PR target/61586
10365 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10366
10367 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10368
10369 * doc/invoke.texi (-fsemantic-interposition): Document.
10370 * common.opt (fsemantic-interposition): New flag.
10371 * varasm.c (decl_replaceable_p): Use it.
10372
10373 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10374
10375 PR target/61542
10376 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10377 extraction other than index 3.
10378
10379 2014-06-26 Teresa Johnson <tejohnson@google.com>
10380
10381 * doc/invoke.texi: Fix typo.
10382 * dumpfile.c: Add support for documented -fdump-* options
10383 optimized/missed/note/optall.
10384
10385 2014-06-26 Martin Jambor <mjambor@suse.cz>
10386
10387 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10388 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10389 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10390 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10391 * opts.c (default_options_optimization): Set
10392 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10393 * doc/invoke.texi (allow-load-data-races)
10394 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10395 (allow-store-data-races): Document the new default.
10396
10397 2014-06-26 Martin Jambor <mjambor@suse.cz>
10398
10399 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10400 renamed to ipa_impossible_devirt_target. Fix typo.
10401 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10402 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10403 ipa_impossible_devirt_target.
10404
10405 2014-06-26 Richard Biener <rguenther@suse.de>
10406
10407 PR tree-optimization/61607
10408 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10409 explaining why we restrict copies on loop depth.
10410 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10411 on loop depth.
10412 (record_equivalences_from_phis): Instead add it here.
10413
10414 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10415
10416 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10417 (LTO_WRAPPER_OBJS): New variable.
10418 (lto-wrapper$(exeext)): Use it.
10419 * collect2.c: Include "collect-utils.h".
10420 (verbose, debug): Remove variables.
10421 (at_file_supplied): No longer static.
10422 (tool_name): New variable.
10423 (do_wait, fork_execute, maybe_unlink): Don't declare.
10424 (tool_cleanup): No longer static.
10425 (notice): Remove function.
10426 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10427 fork_execute calls.
10428 (collect_wait, do_wait, collect_execute): Remove functions.
10429 (maybe_unlink): No longer static.
10430 * collect2.h (verbose, debug): Don't declare.
10431 (at_file_supplied): Declare.
10432 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10433 changed.
10434 (collect_execute): Replace with implementation from collect2, plus a
10435 new arg use_atfile. All callers changed.
10436 (collect_wait): Replace with implementation from collect2.
10437 (maybe_unlink_file): Remove function.
10438 (fork_execute): Replace with implementation from collect2, plus a
10439 new arg use_atfile. All callers changed.
10440 (do_wait): Add call to utils_cleanup to the error path.
10441 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10442 (tool_cleanup): Adjust declarations.
10443 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10444 * tlink.c: Include "collect-utils.h".
10445 (tlink_execute): New arg use_atfile. All callers changed.
10446 (tlink_init, tlink_execute): Remove declarations.
10447
10448 * collect-utils.c (save_temps): New variable.
10449 (do_wait): Use it instead of debug. Use fatal_error.
10450 * collect-utils.h (save_temps): Declare.
10451 * collect2.c (verbose): Rename from vflag. All uses changed.
10452 (tool_cleanup): New function, copied from collect_atexit.
10453 (collect_atexit, handler): Just call it.
10454 * collect2.h (verbose): Declaration renamed from vflag.
10455 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10456 debug.
10457
10458 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10459 (lto-wrapper$(exeext)): Link with collect-utils.o.
10460 * collect-utils.c: New file.
10461 * collect-utils.h: New file.
10462 * lto-wrapper.c: Include "collect-utils.h".
10463 (args_name): Delete variable.
10464 (tool_name): New variable.
10465 (tool_cleanup): New function.
10466 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10467 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10468 (fork_execute): Remove functions.
10469
10470 2014-06-26 Nick Clifton <nickc@redhat.com>
10471
10472 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10473
10474 * doc/extend.texi (Function Attributes): Fix typo in description
10475 of RX vector attribute.
10476
10477 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10478
10479 * config.gcc (supported_defaults): Error when passing either
10480 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10481
10482 2014-06-26 Richard Biener <rguenther@suse.de>
10483
10484 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10485 propagating volatile pointers.
10486
10487 2014-06-26 Richard Biener <rguenther@suse.de>
10488
10489 PR tree-optimization/61607
10490 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10491 loop if we redirected its latch edge.
10492 (thread_block_1): Do not cancel loops prematurely.
10493
10494 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10495
10496 * toplev.c (backend_init_target): Move init_emit_regs and
10497 init_regs to...
10498 (backend_init) ... here; skip ira_init_once and backend_init_target.
10499 (target_reinit) ... and here; clear
10500 this_target_rtl->lang_dependent_initialized.
10501 (lang_dependent_init_target): Clear
10502 this_target_rtl->lang_dependent_initialized;
10503 break out rtl initialization to ...
10504 (initialize_rtl): ... here; call also backend_init_target
10505 and ira_init_once.
10506 * toplev.h (initialize_rtl): New function.
10507 * function.c: Include toplev.h
10508 (init_function_start): Call initialize_rtl.
10509 * rtl.h (target_rtl): Add target_specific_initialized,
10510 lang_dependent_initialized.
10511
10512 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10513 Jakub Jelinek <jakub@redhat.com>
10514
10515 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10516
10517 2014-06-25 Tom de Vries <tom@codesourcery.com>
10518
10519 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10520
10521 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10522
10523 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10524 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10525 Issue a strict overflow warning if appropriate.
10526
10527 2014-06-25 Martin Liska <mliska@suse.cz>
10528
10529 IPA REF refactoring
10530 * Makefile.in: Removed header file (ipa-ref-inline.h).
10531 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10532 called.
10533 (cgraph_speculative_call_info): Likewise.
10534 (cgraph_for_node_thunks_and_aliases): Likewise.
10535 (cgraph_for_node_and_aliases): Likewise.
10536 (verify_cgraph_node): Likewise.
10537 * cgraph.h: Batch of IPA REF functions become member functions of
10538 symtab_node: add_reference, maybe_add_reference, clone_references,
10539 clone_referring, clone_reference, find_reference,
10540 remove_stmt_references, remove_all_references,
10541 remove_all_referring, dump_references, dump_referring,
10542 has_alias_p, iterate_reference, iterate_referring.
10543 * cgraphbuild.c (record_reference): New IPA REF function used.
10544 (record_type_list): Likewise.
10545 (record_eh_tables): Likewise.
10546 (mark_address): Likewise.
10547 (mark_load): Likewise.
10548 (mark_store): Likewise.
10549 (pass_build_cgraph_edges): Likewise.
10550 (rebuild_cgraph_edge): Likewise.
10551 (cgraph_rebuild_references): Likewise.
10552 (pass_remove_cgraph_callee_edges): Likewise.
10553 * cgraphclones.c (cgraph_clone_node): Likewise.
10554 (cgraph_create_virtual_clone): Likewise.
10555 (cgraph_materialize_clone): Likewise.
10556 (cgraph_materialize_all_clones): Likewise.
10557 * cgraphunit.c (cgraph_reset_node): Likewise.
10558 (cgraph_reset_node): Likewise.
10559 (analyze_function): Likewise.
10560 (assemble_thunks_and_aliases): Likewise.
10561 (expand_function): Likewise.
10562 * ipa-comdats.c (propagate_comdat_group): Likewise.
10563 (enqueue_references): Likewise.
10564 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10565 (create_specialized_node): Likewise.
10566 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10567 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10568 * ipa-inline.c (reset_edge_caches): Likewise.
10569 (update_caller_keys): Likewise.
10570 (execute): Likewise.
10571 * ipa-prop.c (remove_described_reference): Likewise.
10572 (propagate_controlled_uses): Likewise.
10573 (ipa_edge_duplication_hook): Likewise.
10574 (ipa_modify_call_arguments): Likewise.
10575 * ipa-pure-const.c (propagate_pure_const): Likewise.
10576 * ipa-ref-inline.h: Header file removed, functions moved
10577 to symtab_node class.
10578 * ipa-ref.c (remove_reference): New class member function.
10579 (cannot_lead_to_return): New class member function.
10580 (referring_ref_list): Likewise.
10581 (referred_ref_list): Likewise.
10582 Rest of functions moved to symtab_node class.
10583 * ipa-ref.h: New member functions remove_reference,
10584 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10585 to ipa_ref class.
10586 ipa_ref_list class has new member functions: first_reference,
10587 first_referring, clear, nreferences.
10588 * ipa-reference.c (analyze_function): New IPA REF function used.
10589 (write_node_summary_p): Likewise.
10590 (ipa_reference_write_optimization_summary): Likewise.
10591 * ipa-split.c (split_function): Likewise.
10592 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10593 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10594 (function_and_variable_visibility): Likewise.
10595 * ipa.c (has_addr_references_p): Likewise.
10596 (process_references): Argument type changed.
10597 (symtab_remove_unreachable_nodes): New IPA REF function used.
10598 (process_references): Likewise.
10599 (set_writeonly_bit): Likewise.
10600 * lto-cgraph.c: Implementation of new symtab_node member functions
10601 that uses new IPA REF functions.
10602 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10603 function used.
10604 * lto-streamer-out.c (output_symbol_p): Likewise.
10605 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10606 changed.
10607 * symtab.c: Implementation of new IPA REF API.
10608 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10609 (ipa_tm_create_version): Likewise.
10610 (ipa_tm_execute): Likewise.
10611 * tree-emutls.c (gen_emutls_addr): Likewise.
10612 * tree-inline.c (copy_bb): Likewise.
10613 (delete_unreachable_blocks_update_callgraph): Likewise.
10614 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10615 (varpool_for_node_and_aliases): Likewise.
10616
10617 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10618
10619 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10620
10621 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10622
10623 PR bootstrap/61598
10624 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10625 tree_node * instead of tree_node *.
10626 (fold): Adjust.
10627 (print_fold_checksum): Likewise.
10628 (fold_check_failed): Likewise.
10629 (debug_fold_checksum): Likewise.
10630 (fold_build1_stat_loc): Likewise.
10631 (fold_build2_stat_loc): Likewise.
10632 (fold_build3_stat_loc): Likewise.
10633 (fold_build_call_array_loc): Likewise.
10634
10635 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10636
10637 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10638 implementation with call to...
10639 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10640 function.
10641 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10642 Declare.
10643
10644 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10645
10646 PR tree-optimization/57742
10647 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10648 after replacing the statement.
10649
10650 2014-06-25 Nick Clifton <nickc@redhat.com>
10651
10652 * config/v850/v850.c (GHS_default_section_names): Change to const
10653 char * type.
10654 (GHS_current_section_names): Likewise.
10655 (v850_insert_attributes): Do not build strings, just assign the
10656 names directly. Change the type of 'chosen_section' to const
10657 char*.
10658 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10659 directly to the array entry.
10660 * config/v850/v850.h (GHS_default_section_names): Change to const
10661 char * type.
10662 (GHS_current_section_names): Likewise.
10663
10664 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10665
10666 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10667 (LANG_HOOKS_DECLS): Add it.
10668 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10669 has correct type.
10670 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10671 * langhooks.h (struct lang_hooks_for_decls): Add
10672 omp_clause_linear_ctor hook.
10673 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10674 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10675 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10676 combined simd loop use omp_clause_linear_ctor hook.
10677
10678 2014-06-24 Cong Hou <congh@google.com>
10679
10680 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10681 pattern recognition.
10682 (type_conversion_p): PROMOTION is true if it's a type promotion
10683 conversion, and false otherwise. Return true if the given expression
10684 is a type conversion one.
10685 * tree-vectorizer.h: Adjust the number of patterns.
10686 * tree.def: Add SAD_EXPR.
10687 * optabs.def: Add sad_optab.
10688 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10689 * expr.c (expand_expr_real_2): Likewise.
10690 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10691 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10692 * optabs.c (optab_for_tree_code): Likewise.
10693 * tree-cfg.c (estimate_operator_cost): Likewise.
10694 * tree-ssa-operands.c (get_expr_operands): Likewise.
10695 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10696 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10697 * doc/generic.texi: Add document for SAD_EXPR.
10698 * doc/md.texi: Add document for ssad and usad.
10699
10700 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10701
10702 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10703 qualification in cast.
10704
10705 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10706
10707 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10708 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10709 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10710 (tree_function_decl): ... here.
10711 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10712 streaming of vindex to ...
10713 (write_ts_function_decl_tree_pointers): ... here.
10714 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10715 Do not stream DECL_VINDEX.
10716 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10717
10718 2014-06-24 Catherine Moore <clm@codesourcery.com>
10719 Sandra Loosemore <sandra@codesourcery.com>
10720
10721 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10722 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10723 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10724
10725 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10726
10727 * doc/invoke.texi (Warning Options): Remove duplicated
10728 -Wmaybe-uninitialized.
10729
10730 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10731
10732 PR tree-optimization/57742
10733 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10734 (handle_builtin_malloc, handle_builtin_memset): New functions.
10735 (strlen_optimize_stmt): Call them.
10736 * passes.def: Move strlen after loop+dom but before vrp.
10737
10738 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10739
10740 PR target/61570
10741 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10742 model family 6 CPU with has_longmode never use a CPU without
10743 64-bit support.
10744
10745 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10746
10747 PR target/61570
10748 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10749 the last change.
10750
10751 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10752
10753 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10754 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10755 pointer_map.
10756 * hash-map.h: New file.
10757 * ipa-comdats.c: Use hash_map instead of pointer_map.
10758 * ipa.c: Likewise.
10759 * lto-section-out.c: Adjust.
10760 * lto-streamer.h: Replace pointer_map with hash_map.
10761 * symtab.c (verify_symtab): Likewise.
10762 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10763 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10764 * tree-streamer.h: Likewise.
10765 * tree-streamer.c: Adjust.
10766 * pointer-set.h: Remove pointer_map.
10767
10768 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10769
10770 * hash-table.h: Add a template arg to choose between storing values
10771 and storing pointers to values, and then provide partial
10772 specializations for both.
10773 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10774 should store, not the type values should point to.
10775 * tree-into-ssa.c (var_info_hasher): Likewise.
10776 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10777 * tree-complex.c: Adjust.
10778 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10779 table instead of int_tree_map *.
10780 * tree-parloops.c: Adjust.
10781 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10782 type is being stored.
10783 * tree-vectorizer.c: Adjust.
10784
10785 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10786
10787 * hash-table.h: Remove a layer of indirection from hash_table so that
10788 it contains the hash table's data instead of a pointer to the data.
10789 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10790 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10791 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10792 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10793 fold-const.c, gcse.c, ggc-common.c,
10794 gimple-ssa-strength-reduction.c, gimplify.c,
10795 graphite-clast-to-gimple.c, graphite-dependences.c,
10796 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10797 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10798 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10799 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10800 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10801 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10802 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10803 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10804 tree-ssa-live.c, tree-ssa-loop-im.c,
10805 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10806 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10807 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10808 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10809 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10810 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10811 vtable-verify.c, vtable-verify.h: Adjust.
10812
10813 2014-06-24 Richard Biener <rguenther@suse.de>
10814
10815 PR tree-optimization/61572
10816 * tree-ssa-sink.c (statement_sink_location): Do not sink
10817 loads from hard registers.
10818
10819 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10820
10821 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10822 not mentioned in clauses use private clause if the iterator is
10823 declared in #pragma omp for simd, and when adding lastprivate
10824 instead, add it to the outer #pragma omp for too. Diagnose
10825 if the variable is private in outer context. For simd collapse > 1
10826 loops, replace all iterators with temporaries.
10827 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10828 same even in collapse > 1 loops.
10829
10830 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10831 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10832 non-NULL.
10833 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10834 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10835 non-NULL.
10836 (gimplify_adjust_omp_clauses): Likewise.
10837 * omp-low.c (lower_rec_simd_input_clauses,
10838 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10839 safelen the same as safelen(1).
10840 * tree-nested.c (convert_nonlocal_omp_clauses,
10841 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10842 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10843 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10844 Fixup handling of GIMPLE_OMP_TARGET.
10845 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10846 GIMPLE_OMP_TARGET.
10847
10848 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10849
10850 PR tree-optimization/61554
10851 * tree-ssa-propagate.c: Include "bitmap.h".
10852 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10853 properly update constructor/destructor.
10854 (substitute_and_fold_dom_walker::before_dom_children):
10855 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10856 need_eh_cleaup instead.
10857 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10858 need_eh_cleanup.
10859
10860 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10861
10862 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10863 * tree-pass.h (make_pass_ipa_single_use): New pass.
10864 * cgraph.h (used_by_single_function): New flag.
10865 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10866 Stream it.
10867 * passes.def (pass_ipa_single_use): Scedule.
10868 * ipa.c (BOTTOM): New macro.
10869 (meet): New function
10870 (propagate_single_user): New function.
10871 (ipa_single_use): New function.
10872 (pass_data_ipa_single_use): New pass.
10873 (pass_ipa_single_use): New pass.
10874 (pass_ipa_single_use::gate): New gate.
10875 (make_pass_ipa_single_use): New function.
10876
10877 2014-06-23 Kai Tietz <ktietz@redhat.com>
10878
10879 PR target/39284
10880 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10881 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10882
10883 2014-06-23 Richard Biener <rguenther@suse.de>
10884
10885 * tree-ssa-loop.c (gate_loop): New function.
10886 (pass_tree_loop::gate): Call it.
10887 (pass_data_tree_no_loop, pass_tree_no_loop,
10888 make_pass_tree_no_loop): New.
10889 * tree-vectorizer.c: Include tree-scalar-evolution.c
10890 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10891 required.
10892 (pass_slp_vectorize::clone): New method.
10893 * timevar.def (TV_TREE_NOLOOP): New.
10894 * tree-pass.h (make_pass_tree_no_loop): Declare.
10895 * passes.def (pass_tree_no_loop): New pass group with
10896 SLP vectorizer.
10897
10898 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10899
10900 PR target/61570
10901 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10902 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10903
10904 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10905
10906 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10907 "yes" where needed.
10908
10909 2014-06-23 Alan Modra <amodra@gmail.com>
10910
10911 PR bootstrap/61583
10912 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10913 to zero on debug statements.
10914
10915 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10916
10917 PR target/60825
10918 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10919 Ignore third operand if present by marking qualifier_internal.
10920
10921 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10922
10923 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10924 vector extension.
10925 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10926 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10927 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10928 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10929 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10930 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10931 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10932 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10933 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10934 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10935 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10936 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10937 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10938 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10939 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10940 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10941 logic in GCC vector extensions
10942
10943 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10944 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10945 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10946 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10947 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
10948 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
10949 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
10950 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
10951 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
10952 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
10953
10954 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
10955
10956 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
10957 extensions.
10958
10959 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
10960 (vget_low_s64): Use __GET_LOW macro.
10961 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
10962 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
10963 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
10964 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
10965 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
10966
10967 (vcombine_s64): Use GCC vector extensions; remove cast.
10968 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
10969 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
10970 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
10971 Fix type signature; remove cast.
10972
10973 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10974
10975 PR target/60825
10976 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
10977 V1DFmode.
10978 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
10979 add V1DFmode
10980 (BUILTIN_VD1): New.
10981 (BUILTIN_VD_RE): Remove.
10982 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
10983 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
10984 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
10985 variant but not df.
10986 (vreinterpretv1df*, vreinterpret*v1df): New.
10987 (vreinterpretdf*, vreinterpret*df): Remove.
10988 * config/aarch64/aarch64-simd.md (aarch64_create,
10989 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
10990 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
10991 (VD1): New.
10992 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
10993 (vcreate_f64): Remove cast, use v1df builtin.
10994 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
10995 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
10996 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
10997 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
10998 vmov_n_f64, vst1_f64): Use gcc vector extensions.
10999 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11000 add range check using __builtin_aarch64_im_lane_boundsi.
11001 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11002 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11003 type signature, use gcc vector extensions.
11004 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11005 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11006 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11007 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11008 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11009 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11010 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11011 vreinterpret_u64_f64): Use v1df builtin not df.
11012
11013 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11014
11015 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11016 vector registers.
11017
11018 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11019
11020 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11021 priority directly.
11022
11023 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11024
11025 * loop-invariant.c (pre_check_invariant_p): New function.
11026 (find_invariant_insn): Call pre_check_invariant_p.
11027
11028 2014-06-22 Richard Henderson <rth@redhat.com>
11029
11030 PR target/61565
11031 * compare-elim.c (struct comparison): Add eh_note.
11032 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11033 a redundant comparison in a different EH region. Purge EH edges if
11034 necessary.
11035
11036 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11037
11038 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11039 (var_shift): Use it.
11040 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11041 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11042 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11043 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11044 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11045 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11046 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11047 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11048 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11049 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11050 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11051 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11052 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11053 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11054 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11055 *rotldi3_internal15be): Use the new attribute. Merge register and
11056 integer alternatives.
11057
11058 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11059
11060 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11061 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11062 split, *ashrdi3_internal3 and split): Delete, merge into...
11063 (ashr<mode>3): New expander.
11064 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11065 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11066
11067 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11068
11069 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11070 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11071 *rotldi3_internal3 and split): Delete, merge into...
11072 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11073 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11074 Use "rotlw" extended mnemonic.
11075
11076 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11077
11078 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11079 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11080 and split, *ashldi3_internal3 and split): Delete, merge into...
11081 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11082 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11083
11084 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11085
11086 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11087 (lshrsi3, two anonymous define_insns and define_splits,
11088 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11089 *lshrdi3_internal3 and split): Delete, merge into...
11090 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11091 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11092
11093 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11094
11095 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11096 Remove "O" alternative.
11097
11098 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11099
11100 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11101 (mips_move_from_gpr_cost): Likewise.
11102 (mips_register_move_cost): Update accordingly.
11103 (mips_secondary_reload_class): Remove name of in_p.
11104
11105 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11106
11107 PR target/61503
11108 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11109 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11110
11111 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11112
11113 * config/nios2/nios2.c: Include "builtins.h".
11114
11115 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11116
11117 * cgraph.h (tls_model_names): New variable.
11118 * print-tree.c (print_node): Simplify.
11119 * varpool.c (tls_model_names): New variable.
11120 (dump_varpool_node): Output tls model.
11121
11122 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11123
11124 * ipa-visibility.c (function_and_variable_visibility): Disable
11125 temporarily local aliases for some targets.
11126
11127 2014-06-20 Marek Polacek <polacek@redhat.com>
11128
11129 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11130 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11131 into SANITIZE_UNDEFINED.
11132 * doc/invoke.texi: Describe -fsanitize=bounds.
11133 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11134 functions created in the FEs.
11135 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11136 (expand_UBSAN_BOUNDS): New function.
11137 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11138 * internal-fn.h: Don't define internal functions here.
11139 * opts.c (common_handle_option): Add -fsanitize=bounds.
11140 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11141 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11142 * tree-core.h: Define internal functions here.
11143 (struct tree_base): Add ifn field.
11144 * tree-pretty-print.c: Include "internal-fn.h".
11145 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11146 * tree.c (get_callee_fndecl): Likewise.
11147 (build_call_expr_internal_loc): New function.
11148 * tree.def (CALL_EXPR): Update description.
11149 * tree.h (CALL_EXPR_IFN): Define.
11150 (build_call_expr_internal_loc): Declare.
11151 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11152 types.
11153 (ubsan_type_descriptor): Change bool parameter to enum
11154 ubsan_print_style. Adjust the code. Add handling of
11155 UBSAN_PRINT_ARRAY.
11156 (ubsan_expand_bounds_ifn): New function.
11157 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11158 (ubsan_build_overflow_builtin): Likewise.
11159 (instrument_bool_enum_load): Likewise.
11160 (ubsan_instrument_float_cast): Likewise.
11161 * ubsan.h (enum ubsan_print_style): New enum.
11162 (ubsan_expand_bounds_ifn): Declare.
11163 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11164
11165 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11166
11167 * config/rs6000/rs6000.md: Append `DONE' to preparation
11168 statements of `bswap' pattern splitters.
11169
11170 2014-06-20 Tom de Vries <tom@codesourcery.com>
11171
11172 * target.def (call_fusage_contains_non_callee_clobbers): Update
11173 definition.
11174 * doc/tm.texi: Regenerate.
11175
11176 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11177 Max Ostapenko <m.ostapenko@partner.samsung.com>
11178
11179 PR sanitizer/61547
11180 * asan.c (instrument_strlen_call): Fixed instrumentation of
11181 trailing byte.
11182
11183 2014-06-20 Martin Jambor <mjambor@suse.cz>
11184
11185 PR ipa/61540
11186 * ipa-prop.c (impossible_devirt_target): New function.
11187 (try_make_edge_direct_virtual_call): Use it, also instead of
11188 asserting.
11189
11190 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11191 Max Ostapenko <m.ostapenko@partner.samsung.com>
11192
11193 PR sanitizer/61530
11194 * asan.c (build_check_stmt): Add condition.
11195
11196 2014-06-20 Martin Jambor <mjambor@suse.cz>
11197
11198 PR ipa/61211
11199 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11200 expanded clones.
11201
11202 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11203
11204 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11205 Update comments.
11206 (VCONQ): Make comment more helpful.
11207 (VCON): Delete.
11208 * config/aarch64/aarch64-simd.md
11209 (aarch64_sqdmulh_lane<mode>):
11210 Use VCOND for operands 2. Update lane checking and flipping logic.
11211 (aarch64_sqrdmulh_lane<mode>): Likewise.
11212 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11213 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11214 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11215 attribute of operand 3 to VCOND.
11216 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11217 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11218 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11219 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11220 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11221 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11222 define_insn.
11223 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11224 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11225 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11226 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11227 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11228 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11229 operand to VCOND. Update lane flipping and bounds checking logic.
11230 (aarch64_sqdmlal2_lane<mode>): Likewise.
11231 (aarch64_sqdmlsl_lane<mode>): Likewise.
11232 (aarch64_sqdmull_lane<mode>): Likewise.
11233 (aarch64_sqdmull2_lane<mode>): Likewise.
11234 (aarch64_sqdmlal_laneq<mode>):
11235 Replace VCON usage with VCONQ.
11236 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11237 (aarch64_sqdmlal2_laneq<mode>): Emit
11238 aarch64_sqdmlal2_laneq<mode>_internal insn.
11239 Replace VCON with VCONQ.
11240 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11241 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11242 (aarch64_sqdmull_laneq<mode>): Emit
11243 aarch64_sqdmull_laneq<mode>_internal insn.
11244 Replace VCON with VCONQ.
11245 (aarch64_sqdmull2_laneq<mode>): Emit
11246 aarch64_sqdmull2_laneq<mode>_internal insn.
11247 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11248 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11249 of 3rd argument to int16x4_t.
11250 (vqdmlalh_lane_s16): Likewise.
11251 (vqdmlslh_lane_s16): Likewise.
11252 (vqdmull_high_lane_s16): Likewise.
11253 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11254 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11255 (vqdmlsl_lane_s16): Likewise.
11256 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11257 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11258 (vqdmlals_lane_s32): Likewise.
11259 (vqdmlsls_lane_s32): Likewise.
11260 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11261 (vqdmulls_lane_s32): Likewise.
11262 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11263 (vqdmlsl_lane_s32): Likewise.
11264 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11265 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11266 (vqrdmulhh_lane_s16): Likewise.
11267 (vqdmlsl_high_lane_s16): Likewise.
11268 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11269 (vqdmlsl_high_lane_s32): Likewise.
11270 (vqrdmulhs_lane_s32): Likewise.
11271
11272 2014-06-20 Tom de Vries <tom@codesourcery.com>
11273
11274 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11275 get_call_reg_set_usage.
11276
11277 2014-06-20 Tom de Vries <tom@codesourcery.com>
11278
11279 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11280 it contains all call_used_regs.
11281
11282 2014-06-20 Tom de Vries <tom@codesourcery.com>
11283
11284 * final.c (collect_fn_hard_reg_usage): Add and use variable
11285 function_used_regs.
11286
11287 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11288
11289 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11290 (set_init_priority, get_init_priority, set_fini_priority,
11291 get_fini_priority): New methods.
11292 * tree.c (init_priority_for_decl): Remove.
11293 (init_ttree): Do not initialize init priority.
11294 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11295 (decl_priority_info): Remove.
11296 (decl_init_priority_insert): Rewrite.
11297 (decl_fini_priority_insert): Rewrite.
11298 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11299 tree_priority_map_marked_p): Remove.
11300 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11301 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11302 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11303 not output priorities.
11304 (pack_ts_function_decl_value_fields): Likewise.
11305 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11306 not input priorities.
11307 (unpack_ts_function_decl_value_fields): Likewise.
11308 * symtab.c (symbol_priority_map): Declare.
11309 (init_priority_hash): Declare.
11310 (symtab_unregister_node): Unregister from priority hash, too.
11311 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11312 New methods.
11313 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11314 (symbol_priority_info): New function.
11315 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11316 New methods.
11317 * tree-core.h (tree_priority_map): Remove.
11318
11319 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11320
11321 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11322 0xff to uint64_t before shifting it up.
11323
11324 2014-06-20 Julian Brown <julian@codesourcery.com>
11325 Chung-Lin Tang <cltang@codesourcery.com>
11326
11327 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11328 TARGET_THUMB1_ONLY. Add comments.
11329
11330 2014-06-19 Tom de Vries <tom@codesourcery.com>
11331
11332 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11333 return type to void.
11334 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11335
11336 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11337
11338 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11339 as "move", from depends_on.
11340
11341 2014-06-19 Terry Guo <terry.guo@arm.com>
11342
11343 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11344 stage.
11345
11346 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11347
11348 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11349 Remove cr5.
11350 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11351
11352 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11353
11354 PR target/61550
11355 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11356 addresses here if reload in progress or completed.
11357
11358 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11359
11360 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11361 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11362 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11363 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11364 (mips_register_priority): New function that implements the target
11365 hook TARGET_REGISTER_PRIORITY.
11366 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11367 (mips_lra_p): Likewise for TARGET_LRA_P.
11368 (TARGET_REGISTER_PRIORITY): Define macro.
11369 (TARGET_SPILL_CLASS): Likewise.
11370 (TARGET_LRA_P): Likewise.
11371 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11372 classes.
11373 (REG_CLASS_NAMES): Likewise.
11374 (REG_CLASS_CONTENTS): Likewise.
11375 (BASE_REG_CLASS): Use M16_SP_REGS.
11376 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11377 New set attribute to enable alternatives depending on the register
11378 allocator used.
11379 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11380 (*lea64): Disable pattern for MIPS16.
11381 * config/mips/mips.opt (mlra): New option.
11382
11383 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11384
11385 * lra-constraints.c (base_to_reg): New function.
11386 (process_address): Use new function.
11387
11388 2014-06-18 Tom de Vries <tom@codesourcery.com>
11389
11390 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11391 * config/aarch64/aarch64.c
11392 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11393 (aarch64_emit_call_insn): New function.
11394 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11395 of emit_call_insn.
11396 * config/aarch64/aarch64.md (define_expand "call_internal")
11397 (define_expand "call_value_internal", define_expand "sibcall_internal")
11398 (define_expand "sibcall_value_internal"): New.
11399 (define_expand "call", define_expand "call_value")
11400 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11401 expand variant and aarch64_emit_call_insn.
11402
11403 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11404 Tom de Vries <tom@codesourcery.com>
11405
11406 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11407 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11408 Redefine to true.
11409 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11410 clobbers to CALL_INSN_FUNCTION_USAGE.
11411 (define_expand "sibcall_internal")
11412 (define_expand "sibcall_value_internal"): New.
11413 (define_expand "call", define_expand "call_value"): Add argument to
11414 arm_emit_call_insn.
11415 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11416 (define_expand "sibcall_value"): Use sibcall_value_internal and
11417 arm_emit_call_insn.
11418
11419 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11420
11421 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11422
11423 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11424
11425 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11426 __udivmoddi4.
11427
11428 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11429
11430 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11431 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11432 annotations. Fix DWARF information.
11433
11434 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11435
11436 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11437 __udivmoddi4, and fixups for negative operands.
11438
11439 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11440
11441 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11442
11443 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11444
11445 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11446 to __udivmoddi4.
11447
11448 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11449
11450 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11451 manipulation.
11452
11453 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11454
11455 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11456 describing register usage on function entry and exit.
11457
11458 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11459
11460 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11461 (__aeabi_ldivmod): Fix whitespace.
11462
11463 2014-06-18 Andreas Schwab <schwab@suse.de>
11464
11465 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11466 Remove blank line after @item.
11467
11468 2014-06-18 Richard Henderson <rth@redhat.com>
11469
11470 PR target/61545
11471 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11472
11473 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11474
11475 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11476 POST_MODIFY for neon loads and stores.
11477 (arm_print_operand): Output post-index register for neon loads and
11478 stores.
11479
11480 2014-06-18 Richard Biener <rguenther@suse.de>
11481
11482 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11483
11484 2014-06-18 Richard Biener <rguenther@suse.de>
11485
11486 * tree-pass.h (make_pass_dce_loop): Remove.
11487 * passes.def: Replace pass_dce_loop with pass_dce.
11488 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11489 changed free niter estimates and reset the scev cache.
11490 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11491 make_pass_dce_loop): Remove.
11492 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11493 (fini_copy_prop): Return whether something changed. Always
11494 let substitute_and_fold perform DCE and free niter estimates
11495 and reset the scev cache if so.
11496 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11497 (pass_data_copy_prop): Do not unconditionally schedule
11498 cleanup-cfg or update-ssa.
11499
11500 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11501
11502 PR tree-optimization/61518
11503 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11504 reduction var is used in reduction stmt or phi-function only.
11505
11506 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11507
11508 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11509
11510 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11511
11512 PR tree-optimization/61517
11513 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11514 whose rhs's first tree is the source expression instead of the
11515 expression itself.
11516 (find_bswap_or_nop): Likewise.
11517 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11518 gimple stmt whose rhs's first tree is the source. In the memory source
11519 case, move the stmt to be replaced close to one of the original load to
11520 avoid the problem of a store between the load and the stmt's original
11521 location.
11522 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11523 signature.
11524
11525 2014-06-18 Andreas Schwab <schwab@suse.de>
11526
11527 PR rtl-optimization/54555
11528 * postreload.c (move2add_use_add2_insn): Substitute
11529 STRICT_LOW_PART only if it is cheaper.
11530
11531 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11532
11533 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11534 Do not use unspec as call operand. Use memory_operand instead of
11535 memory_nox32_operand and add "m" operand constraint. Disable
11536 pattern for TARGET_X32.
11537 (*sibcall_pop_memory): Ditto.
11538 (*sibcall_value_memory): Ditto.
11539 (*sibcall_value_pop_memory): Ditto.
11540 (sibcall peepholes): Merge SImode and DImode patterns using
11541 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11542 Disable pattern for TARGET_X32. Check if eliminated register is
11543 really dead after call insn. Generate call RTX without unspec operand.
11544 (sibcall_value peepholes): Ditto.
11545 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11546 instead of memory_nox32_operand. Check if eliminated register is
11547 really dead after call insn. Generate call RTX without unspec operand.
11548 (sibcall_value_pop peepholes): Ditto.
11549 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11550
11551 2014-06-18 Terry Guo <terry.guo@arm.com>
11552
11553 PR target/61544
11554 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11555 reach the head.
11556
11557 2014-06-18 Olivier Hainque <hainque@adacore.com>
11558
11559 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11560 memorization of the end of block source location.
11561 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11562 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11563 end source location info we have on the block entry/exit code we
11564 generate.
11565
11566 2014-06-18 Richard Biener <rguenther@suse.de>
11567
11568 * common.opt (fssa-phiopt): New option.
11569 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11570 but not with -Og.
11571 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11572 * doc/invoke.texi (-fssa-phiopt): Document.
11573
11574 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11575
11576 * genattrtab.c (n_bypassed): New variable.
11577 (process_bypasses): Initialise n_bypassed.
11578 Count number of bypassed reservations.
11579 (make_automaton_attrs): Allocate space for bypassed reservations
11580 rather than number of bypasses.
11581
11582 2014-06-18 Richard Biener <rguenther@suse.de>
11583
11584 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11585 we propagated anything.
11586 (substitute_and_fold_dom_walker::before_dom_children): Something
11587 changed if we propagated into PHI arguments.
11588 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11589 we removed a stmt.
11590
11591 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11592
11593 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11594 vector case.
11595 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11596 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11597 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11598 Introduces alternative way of loads group permutaions.
11599 (vect_transform_grouped_load): Try alternative way of permutations.
11600
11601 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11602
11603 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11604 changed in ORT_TARGET region, don't jump to do_outer.
11605 (struct gimplify_adjust_omp_clauses_data): New type.
11606 (gimplify_adjust_omp_clauses_1): Adjust for data being
11607 a struct gimplify_adjust_omp_clauses_data pointer instead
11608 of tree *. Pass pre_p as a new argument to
11609 lang_hooks.decls.omp_finish_clause hook.
11610 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11611 splay_tree_foreach to pass both list_p and pre_p.
11612 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11613 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11614 gimplify_adjust_omp_clauses callers.
11615 * langhooks.c (lhd_omp_finish_clause): New function.
11616 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11617 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11618 * langhooks.h (struct lang_hooks_for_decls): Add a new
11619 gimple_seq * argument to omp_finish_clause hook.
11620 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11621 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11622 (scan_omp_parallel, lower_omp_for): When adding
11623 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11624 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11625 * tree-nested.c (convert_nonlocal_omp_clauses,
11626 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11627 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11628
11629 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11630
11631 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11632 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11633
11634 2014-06-17 Xinliang David Li <davidxl@google.com>
11635
11636 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11637 * passes.c (pass_init_dump_file): Do not set initialize
11638 flag to false unconditionally.
11639
11640 2014-06-17 Richard Biener <rguenther@suse.de>
11641
11642 * genopinit.c (main): Use vec<>::qsort method.
11643 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11644 Likewise.
11645 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11646
11647 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11648
11649 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11650 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11651 (mips_move_to_gpr_cost): Remove ST_REGS case.
11652 (mips_move_from_gpr_cost): Likewise.
11653 (mips_register_move_cost): Likewise.
11654 (mips_secondary_reload_class): Likewise.
11655
11656 2014-06-17 Richard Biener <rguenther@suse.de>
11657
11658 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11659 (pass_all_optimizations): Move 3rd copy-prop pass from after
11660 fre to before ifcombine/phiopt.
11661
11662 2014-06-17 Richard Biener <rguenther@suse.de>
11663
11664 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11665 and allow all blocks to be forwarders.
11666
11667 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11668
11669 PR target/61483
11670 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11671 variable 'size'; calculate 'size' right in the front; use
11672 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11673 pcum->aapcs_stack_words.
11674
11675 2014-06-17 Nick Clifton <nickc@redhat.com>
11676
11677 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11678 (umulhi3, mulsidi3, umulsidi3): Likewise.
11679
11680 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11681
11682 PR middle-end/61508
11683 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11684 check for section name.
11685
11686 2014-06-17 Richard Biener <rguenther@suse.de>
11687
11688 * tree-ssa-propagate.c: Include domwalk.h.
11689 (substitute_and_fold): Outline main worker into a domwalker ...
11690 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11691 Schedule stmts we can fully propagate for removal. Remove
11692 poor-mans DCE.
11693 (substitute_and_fold): Apply a dominator walk to perform
11694 substitution. Process stmts scheduled for removal here.
11695
11696 2014-06-17 Richard Biener <rguenther@suse.de>
11697
11698 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11699 of PHI node moving.
11700
11701 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11702
11703 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11704 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11705 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11706 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11707 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11708 TARGET_HARD_FLOAT.
11709 (get_fpscr) : Likewise.
11710
11711 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11712
11713 PR rtl-optimization/61325
11714 * lra-constraints.c (valid_address_p): Add forward declaration.
11715 (simplify_operand_subreg): Check address validity before and after
11716 alter_reg of memory subreg.
11717
11718 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11719
11720 * config/i386/i386.c (decide_alg): Correctly handle
11721 maximum size of stringop algorithm.
11722
11723 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11724
11725 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11726
11727 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11728
11729 PR rtl-optimization/61522
11730 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11731
11732 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11733
11734 Revert:
11735 * symtab.c (symtab_node::reset_section): New method.
11736 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11737 for localization.
11738 * cgraph.h (reset_section): Declare.
11739 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11740 do not consider comdat locals.
11741 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11742 for new symbol.
11743 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11744 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11745 reset sections of symbols dragged out of the comdats.
11746 (function_and_variable_visibility): Reset sections of
11747 localized symbols.
11748
11749 2014-06-16 Richard Biener <rguenther@suse.de>
11750
11751 PR tree-optimization/61482
11752 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11753 [-INF(OVF), +INF(OVF)] range.
11754
11755 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11756
11757 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11758 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11759 handling 32-bit multiplication.
11760
11761 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11762
11763 PR middle-end/61430
11764 * lra-lives.c (process_bb_lives): Skip creating copy during
11765 insn scan when src/dest has constrained to same regno.
11766
11767 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11768
11769 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11770 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11771
11772 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11773
11774 * asan.c (check_func): New function.
11775 (maybe_create_ssa_name): Likewise.
11776 (build_check_stmt_with_calls): Likewise.
11777 (use_calls_p): Likewise.
11778 (report_error_func): Change interface.
11779 (build_check_stmt): Allow non-integer lengths; add support
11780 for new parameter.
11781 (asan_instrument): Likewise.
11782 (instrument_mem_region_access): Moved code to build_check_stmt.
11783 (instrument_derefs): Likewise.
11784 (instrument_strlen_call): Likewise.
11785 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11786 * doc/invoke.texi: Describe new parameter.
11787 * params.def: Define new parameter.
11788 * params.h: Likewise.
11789 * sanitizer.def: Describe new builtins.
11790
11791 2014-06-16 Richard Biener <rguenther@suse.de>
11792
11793 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11794 Make all defs available at the end.
11795 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11796
11797 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11798
11799 PR plugins/45078
11800 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11801
11802 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11803
11804 PR bootstrap/61516
11805 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11806 initialization. Replace remaining use of uid.
11807
11808 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11809
11810 * c-family/c-common.c (handle_tls_model_attribute): Use
11811 set_decl_tls_model.
11812 * c-family/c-common.c (handle_tls_model_attribute): Use
11813 set_decl_tls_model.
11814 * cgraph.h (struct varpool_node): Add tls_model.
11815 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11816 * tree.h (DECL_TLS_MODEL): Update.
11817 (DECL_THREAD_LOCAL_P): Check that variable is static.
11818 (decl_tls_model): Declare.
11819 (set_decl_tls_model): Declare.
11820 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11821 set symbol prorperties.
11822 (get_emutls_init_templ_addr): Cleanup.
11823 (new_emutls_decl): Update.
11824 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11825 (lto_input_varpool_node): Likewise.
11826 * lto-streamer-out.c (hash_tree): Likewise.
11827 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11828 not stream DECL_TLS_MODEL.
11829 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11830 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11831
11832 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11833
11834 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11835
11836 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11837
11838 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11839 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11840 lists.
11841 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11842 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11843 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11844 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11845 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11846 (df_get_artificial_defs, df_get_artificial_uses)
11847 (df_single_def, df_single_use): Update accordingly.
11848 (df_refs_chain_dump): Take the first element in a linked list as
11849 parameter, rather than a pointer to an array of pointers.
11850 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11851 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11852 (df_chain_create_bb_process_use): Likewise.
11853 (df_md_bb_local_compute_process_def): Likewise.
11854 * fwprop.c (process_defs, process_uses): Likewise.
11855 (register_active_defs, update_uses): Likewise.
11856 (forward_propagate_asm): Update for new df_ref linking.
11857 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11858 (df_null_ref_rec, df_null_mw_rec): Likewise.
11859 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11860 explicitly.
11861 (df_scan_free_bb_info): Remove check for null artificial_defs.
11862 (df_install_ref_incremental): Adjust for new df_ref linking.
11863 Use a single-element insertion rather than a full sort.
11864 (df_ref_chain_delete_du_chain): Take the first element
11865 in a linked list as parameter, rather than a pointer to an array of
11866 pointers.
11867 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11868 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11869 (df_insn_info_delete): Remove check for null defs and call to
11870 df_scan_free_mws_vec.
11871 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11872 null rather than df_null_*_rec.
11873 (df_insn_rescan_debug_internal): Likewise, and update null
11874 checks in the same way. Remove check for null defs.
11875 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11876 Move a single element rather doing a full sort.
11877 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11878 linking.
11879 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11880 Initialize df_ref and df_mw_hardreg lists to null rather than
11881 df_null_*_rec.
11882 (df_ref_compare): Take df_refs as parameter, transferring the
11883 old interface to...
11884 (df_ref_ptr_compare): ...this new function.
11885 (df_sort_and_compress_refs): Update accordingly.
11886 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11887 old interface to...
11888 (df_mw_ptr_compare): ...this new function.
11889 (df_sort_and_compress_mws): Update accordingly.
11890 (df_install_refs, df_install_mws): Return a linked list rather than
11891 an array of pointers.
11892 (df_refs_add_to_chains): Assert that old lists are empty rather
11893 than freeing them.
11894 (df_insn_refs_verify): Don't handle null defs speciailly.
11895 * web.c (union_match_dups): Update for new df_ref linking.
11896
11897 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11898
11899 * df.h (df_ref_create, df_ref_remove): Delete.
11900 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11901 (df_ref_remove): Likewise.
11902
11903 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11904
11905 * df.h (df_single_def, df_single_use): New functions.
11906 * ira.c (find_moveable_pseudos): Use them.
11907
11908 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11909
11910 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11911 * df-problems.c (df_note_bb_compute): Use it.
11912 * regstat.c (regstat_bb_compute_ri): Likewise.
11913
11914 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11915
11916 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11917 * cse.c (cse_extended_basic_block): Use them.
11918 * dce.c (mark_artificial_use): Likewise.
11919 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11920 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11921 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11922 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11923 (df_simulate_initialize_backwards): Likewise.
11924 (df_simulate_finalize_backwards): Likewise.
11925 (df_simulate_initialize_forwards): Likewise.
11926 (df_md_simulate_artificial_defs_at_top): Likewise.
11927 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11928 * regrename.c (init_rename_info): Likewise.
11929 * regstat.c (regstat_bb_compute_ri): Likewise.
11930 (regstat_bb_compute_calls_crossed): Likewise.
11931
11932 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11933
11934 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11935 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11936 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11937 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11938 * combine.c (create_log_links): Likewise.
11939 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11940 (try_eliminate_compare): Likewise.
11941 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11942 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11943 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11944 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11945 (word_dce_process_block, dce_process_block): Likewise.
11946 * ddg.c (def_has_ccmode_p): Likewise.
11947 * df-core.c (df_bb_regno_first_def_find): Likewise.
11948 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
11949 * df-problems.c (df_rd_simulate_one_insn): Likewise.
11950 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11951 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
11952 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
11953 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
11954 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
11955 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
11956 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
11957 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
11958 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11959 * fwprop.c (local_ref_killed_between_p): Likewise.
11960 (all_uses_available_at, free_load_extend): Likewise.
11961 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
11962 * hw-doloop.c (scan_loop): Likewise.
11963 * ifcvt.c (dead_or_predicable): Likewise.
11964 * init-regs.c (initialize_uninitialized_regs): Likewise.
11965 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
11966 (process_bb_node_lives): Likewise.
11967 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
11968 (find_moveable_pseudos): Likewise.
11969 * loop-invariant.c (check_dependencies, record_uses): Likewise.
11970 * recog.c (peep2_find_free_register): Likewise.
11971 * ree.c (get_defs): Likewise.
11972 * regstat.c (regstat_bb_compute_ri): Likewise.
11973 (regstat_bb_compute_calls_crossed): Likewise.
11974 * sched-deps.c (find_inc, find_mem): Likewise.
11975 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
11976 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
11977 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11978 (prepare_shrink_wrap): Likewise.
11979 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
11980 * web.c (union_defs, pass_web::execute): Likewise.
11981 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
11982 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
11983
11984 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
11985
11986 * lra-assign.c (assign_by_spills): Add code to assign vector regs
11987 to inheritance pseudos.
11988 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
11989
11990 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
11991
11992 PR target/61415
11993 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
11994 (BU_MISC_2): Rename to ...
11995 (BU_LDBL128_2): ... this.
11996 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
11997 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
11998 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
11999 RS6000_BTM_LDBL128.
12000 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12001 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12002 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12003 (unpacktf_1): Likewise.
12004 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12005 (__builtin_longdouble_dw1): Likewise.
12006 * doc/sourcebuild.texi (longdouble128): Document.
12007
12008 2014-06-13 Jeff Law <law@redhat.com>
12009
12010 PR rtl-optimization/61094
12011 PR rtl-optimization/61446
12012 * ree.c (combine_reaching_defs): Get the mode for the copy from
12013 the extension insn rather than the defining insn.
12014
12015 2014-06-13 Dehao Chen <dehao@google.com>
12016
12017 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12018
12019 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12020
12021 * doc/install.texi (--enable-linker-plugin-configure-flags)
12022 (--enable-linker-plugin-flags): Document new flags.
12023
12024 2014-06-13 Martin Jambor <mjambor@suse.cz>
12025
12026 PR ipa/61186
12027 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12028 cache_token if returning early.
12029
12030 2014-06-13 Nick Clifton <nickc@redhat.com>
12031
12032 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12033 requested alignment is active.
12034 (LABEL_ALIGN): Likewise.
12035 (LOOP_ALIGN): Likewise.
12036
12037 2014-06-13 Richard Biener <rguenther@suse.de>
12038
12039 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12040 Rewrite to propagate the VN result into all uses where
12041 possible and to remove stmts becoming dead because of that.
12042 (eliminate): Generalize stmt removal handling, remove in
12043 reverse dominator order to support proper debug stmt
12044 generation. Update stmts before removing stmts.
12045 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12046
12047 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12048
12049 PR tree-optimization/61375
12050 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12051 symbolic number cannot be represented in an uint64_t.
12052 (find_bswap_or_nop_1): Likewise.
12053
12054 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12055
12056 * symtab.c (symtab_node::reset_section): New method.
12057 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12058 for localization.
12059 * cgraph.h (reset_section): Declare.
12060 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12061 do not consider comdat locals.
12062 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12063 for new symbol.
12064 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12065 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12066 reset sections of symbols dragged out of the comdats.
12067 (function_and_variable_visibility): Reset sections of
12068 localized symbols.
12069
12070 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12071
12072 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12073 to use symtab and decl_binds_to_current_def_p
12074 * tree-vectorizer.c (increase_alignment): Increase alignment
12075 of alias target, too.
12076
12077 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12078
12079 PR middle-end/61486
12080 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12081 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12082 if outer combined construct is distribute.
12083 (gimplify_omp_for): For OMP_DISTRIBUTE set
12084 gimplify_omp_ctxp->distribute.
12085 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12086 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12087 mapping into decl map.
12088
12089 2014-06-12 Jason Merrill <jason@redhat.com>
12090
12091 * common.opt (fabi-version): Change default to 0.
12092
12093 2014-06-12 Jason Merrill <jason@redhat.com>
12094
12095 * toplev.c (process_options): Reject -fabi-version=1.
12096
12097 2014-06-12 Jeff Law <law@redhat.com>
12098
12099 PR tree-optimization/61009
12100 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12101 value when we stop processing a block due to problematic PHIs.
12102
12103 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12104
12105 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12106 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12107 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12108 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12109 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12110 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12111 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12112 are not in the spec.
12113
12114 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12115
12116 PR target/59843
12117 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12118 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12119 Support V1DFmode.
12120
12121 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12122
12123 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12124
12125 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12126
12127 PR target/61443
12128 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12129 loading from address spaces.
12130
12131 2014-06-12 Martin Liska <mliska@suse.cz>
12132
12133 PR ipa/61462
12134 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12135 statement is reachable.
12136
12137 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12138
12139 * symtab.c (section_hash): New hash.
12140 (symtab_unregister_node): Clear section before freeing.
12141 (hash_section_hash_entry): New haser.
12142 (eq_sections): New function.
12143 (symtab_node::set_section_for_node): New method.
12144 (set_section_1): Update.
12145 (symtab_node::set_section): Take string instead of tree as parameter.
12146 (symtab_resolve_alias): Update.
12147 * cgraph.h (section_hash_entry_d): New structure.
12148 (section_hash_entry): New typedef.
12149 (cgraph_node): Change comdat_group_ to x_comdat_group,
12150 change section_ to x_section and turn into section_hash_entry;
12151 update accestors; put set_section_for_node offline.
12152 * tree.c (decl_section_name): Turn into string.
12153 (set_decl_section_name): Change parameter to be string.
12154 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12155 * sdbout.c (sdbout_one_type): Update.
12156 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12157 * varasm.c (IN_NAMED_SECTION, get_named_section,
12158 resolve_unique_section, hot_function_section, get_named_text_section,
12159 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12160 make_decl_rtl, default_unique_section): Update.
12161 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12162 (c6x_elf_unique_section): Update.
12163 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12164 * config/pa/pa.c (pa_function_section): Update.
12165 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12166 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12167 * config/arc/arc.c (arc_in_small_data_p): Update.
12168 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12169 * config/mcore/mcore.c (mcore_unique_section): Update.
12170 * config/mips/mips.c (mips16_build_function_stub): Update.
12171 (mips16_build_call_stub): Update.
12172 (mips_function_rodata_section): Update.
12173 (mips_in_small_data_p): Update.
12174 * config/score/score.c (score_in_small_data_p): Update.
12175 * config/rx/rx.c (rx_in_small_data): Update.
12176 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12177 (rs6000_xcoff_asm_named_section): Update.
12178 (rs6000_xcoff_unique_section): Update.
12179 * config/frv/frv.c (frv_string_begins_with): Update.
12180 (frv_in_small_data_p): Update.
12181 * config/v850/v850.c (v850_encode_data_area): Update.
12182 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12183 (bfin_handle_l1_data_attribute): Update.
12184 (bfin_handle_l2_attribute): Update.
12185 * config/mep/mep.c (mep_unique_section): Update.
12186 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12187 Update.
12188 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12189 (h8300_handle_tiny_data_attribute): Update.
12190 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12191 (m32r_in_small_data_p): Update.
12192 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12193 * config/i386/i386.c (ix86_in_large_data_p): Update.
12194 * config/i386/winnt.c (i386_pe_unique_section): Update.
12195 * config/darwin.c (darwin_function_section): Update.
12196 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12197 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12198 (new_emutls_decl): Update.
12199 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12200 input_varpool_node): Update.
12201 (ead_string_cst): Turn to ...
12202 (read_string): ... this one.
12203 * dwarf2out.c (secname_for_decl): Update.
12204 * asan.c (asan_protect_global): Update.
12205
12206 2014-06-11 DJ Delorie <dj@redhat.com>
12207
12208 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12209 cache lines.
12210 * config/rx/rx.c (rx_option_override): Likewise.
12211 (rx_align_for_label): Likewise.
12212
12213 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12214
12215 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12216
12217 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12218 prototype.
12219
12220 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12221
12222 * common.md: New file.
12223 * doc/md.texi: Update description of generic, machine-independent
12224 constraints.
12225 * config/s390/constraints.md (e): Delete.
12226 * Makefile.in (md_file): Include common.md.
12227 * config/m32c/t-m32c (md_file): Likewise.
12228 * genpreds.c (general_mem): New array.
12229 (generic_constraint_letters): Remove constraints now defined by
12230 common.md.
12231 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12232 Allow the first character to be '<' or '>' as well.
12233 * genoutput.c (general_mem): New array.
12234 (indep_constraints): Remove constraints now defined by common.md.
12235 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12236 Remove special handling of 'm'.
12237 * ira-costs.c (record_reg_classes): Remove special handling of
12238 constraints now defined by common.md.
12239 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12240 * ira-lives.c (single_reg_class): Likewise.
12241 (ira_implicitly_set_insn_hard_regs): Likewise.
12242 * lra-constraints.c (reg_class_from_constraints): Likewise.
12243 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12244 * postreload.c (reload_cse_simplify_operands): Likewise.
12245 * reload.c (push_secondary_reload, scratch_reload_class)
12246 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12247 * reload1.c (maybe_fix_stack_asms): Likewise.
12248 * targhooks.c (default_secondary_reload): Likewise.
12249 * stmt.c (parse_output_constraint): Likewise.
12250 * recog.c (preprocess_constraints): Likewise.
12251 (constrain_operands, peep2_find_free_register): Likewise.
12252 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12253 must be handled specially.
12254
12255 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12256
12257 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12258 * genpreds.c (have_const_dbl_constraints): Delete.
12259 (add_constraint): Don't set it.
12260 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12261 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12262 constraints using the lookup_constraint logic.
12263 * ira-lives.c (single_reg_class): Likewise.
12264 * ira.c (ira_setup_alts): Likewise.
12265 * lra-constraints.c (process_alt_operands): Likewise.
12266 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12267 * reload.c (find_reloads): Likewise.
12268
12269 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12270
12271 * genpreds.c (const_int_start, const_int_end): New variables.
12272 (choose_enum_order): Output CONST_INT constraints before memory
12273 constraints.
12274 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12275 Add CT_CONST_INT.
12276 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12277 * ira.c (ira_setup_alts): Likewise.
12278 * lra-constraints.c (process_alt_operands): Likewise.
12279 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12280 * reload.c (find_reloads): Likewise.
12281
12282 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12283
12284 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12285 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12286 * recog.c (preprocess_constraints): Update accordingly.
12287
12288 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12289
12290 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12291 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12292 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12293 * genpreds.c (print_type_tree): New function.
12294 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12295 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12296 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12297 Write out enum constraint_type and get_constraint_type.
12298 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12299 constraint_num rather than a constraint string.
12300 (satisfies_address_constraint_p): Likewise.
12301 (reg_class_from_constraints): Avoid old constraint macros.
12302 (process_alt_operands, process_address_1): Likewise.
12303 (curr_insn_transform): Likewise.
12304 * ira-costs.c (record_reg_classes): Likewise.
12305 (record_operand_costs): Likewise.
12306 * ira-lives.c (single_reg_class): Likewise.
12307 (ira_implicitly_set_insn_hard_regs): Likewise.
12308 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12309 * postreload.c (reload_cse_simplify_operands): Likewise.
12310 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12311 (constrain_operands, peep2_find_free_register): Likewise.
12312 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12313 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12314 * reload1.c (maybe_fix_stack_asms): Likewise.
12315 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12316 * targhooks.c (default_secondary_reload): Likewise.
12317 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12318 to EXTRA_CONSTRAINT_STR.
12319 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12320
12321 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12322
12323 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12324 (write_constraint_satisfied_p_array): ...this new function.
12325 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12326 an array.
12327 (write_insn_preds_c): Update accordingly.
12328
12329 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12330
12331 * genpreds.c (write_lookup_constraint): Rename to...
12332 (write_lookup_constraint_1): ...this.
12333 (write_lookup_constraint_array): New function.
12334 (write_tm_preds_h): Define lookup_constraint as an inline function
12335 that uses write_lookup_constraint_array where possible.
12336 (write_insn_preds_c): Update for the changes above.
12337
12338 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12339
12340 * doc/md.texi (regclass_for_constraint): Rename to...
12341 (reg_class_for_constraint): ...this.
12342 * genpreds.c (num_constraints, enum_order, register_start)
12343 (register_end, satisfied_start, memory_start, memory_end)
12344 (address_start, address_end): New variables.
12345 (add_constraint): Count the number of constraints.
12346 (choose_enum_order): New function.
12347 (write_enum_constraint_num): Iterate over enum_order.
12348 (write_regclass_for_constraint): Rename to...
12349 (write_reg_class_for_constraint_1): ...this and update output
12350 accordingly.
12351 (write_constraint_satisfied_p): Rename to...
12352 (write_constraint_satisfied_p_1): ...this and update output
12353 accordingly. Do nothing if all extra constraints are register
12354 constraints.
12355 (write_insn_extra_memory_constraint): Delete.
12356 (write_insn_extra_address_constraint): Delete.
12357 (write_range_function): New function.
12358 (write_tm_preds_h): Define constraint_satisfied_p and
12359 reg_class_for_constraint as inline functions that do a range check
12360 before calling the out-of-line function. Use write_range_function
12361 to implement insn_extra_{register,memory,address}_constraint,
12362 the first of which is new.
12363 (write_insn_preds_c): Update after above changes to write_* functions.
12364 (main): Call choose_enum_order.
12365
12366 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12367
12368 PR tree-optimization/61306
12369 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12370 expression instead of its size.
12371 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12372 false to prevent optimization when the result is unpredictable due to
12373 arithmetic right shift of signed type with highest byte is set.
12374 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12375 (init_symbolic_number): Likewise.
12376 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12377 when the result is unpredictable due to sign extension.
12378
12379 2014-06-11 Terry Guo <terry.guo@arm.com>
12380
12381 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12382 (*thumb1_addsi3): Ditto.
12383 (*thumb_subdi3): Ditto.
12384 (thumb1_subsi3_insn): Ditto.
12385 (*thumb_mulsi3): Ditto.
12386 (*thumb_mulsi3_v6): Ditto.
12387 (*thumb1_andsi3_insn): Ditto.
12388 (thumb1_bicsi3): Ditto.
12389 (*thumb1_iorsi3_insn): Ditto.
12390 (*thumb1_xorsi3_insn): Ditto.
12391 (*thumb1_ashlsi3): Ditto.
12392 (*thumb1_ashrsi3): Ditto.
12393 (*thumb1_lshrsi3): Ditto.
12394 (*thumb1_rotrsi3): Ditto.
12395 (*thumb1_negdi2): Ditto.
12396 (*thumb1_negsi2): Ditto.
12397 (*thumb1_abssi2): Ditto.
12398 (*thumb1_neg_abssi2): Ditto.
12399 (*thumb1_one_cmplsi2): Ditto.
12400 (*thumb1_zero_extendhisi2): Ditto.
12401 (*thumb1_zero_extendqisi2): Ditto.
12402 (*thumb1_zero_extendqisi2_v6): Ditto.
12403 (thumb1_extendhisi2): Ditto.
12404 (thumb1_extendqisi2): Ditto.
12405 (*thumb1_movdi_insn): Ditto.
12406 (*thumb1_movsi_insn): Ditto.
12407 (*thumb1_movhi_insn): Ditto.
12408 (thumb_movhi_clobber): Ditto.
12409 (*thumb1_movqi_insn): Ditto.
12410 (*thumb1_movhf): Ditto.
12411 (*thumb1_movsf_insn): Ditto.
12412 (*thumb_movdf_insn): Ditto.
12413 (movmem12b): Ditto.
12414 (movmem8b): Ditto.
12415 (cbranchqi4): Ditto.
12416 (cbranchsi4_insn): Ditto.
12417 (cbranchsi4_scratch): Ditto.
12418 (*negated_cbranchsi4): Ditto.
12419 (*tbit_cbranch): Ditto.
12420 (*tlobits_cbranch): Ditto.
12421 (*tstsi3_cbranch): Ditto.
12422 (*cbranchne_decr1): Ditto.
12423 (*addsi3_cbranch): Ditto.
12424 (*addsi3_cbranch_scratch): Ditto.
12425 (*thumb_cmpdi_zero): Ditto.
12426 (cstoresi_eq0_thumb1): Ditto.
12427 (cstoresi_ne0_thumb1): Ditto.
12428 (*cstoresi_eq0_thumb1_insn): Ditto.
12429 (*cstoresi_ne0_thumb1_insn): Ditto.
12430 (cstoresi_nltu_thumb1): Ditto.
12431 (cstoresi_ltu_thumb1): Ditto.
12432 (thumb1_addsi3_addgeu): Ditto.
12433 (*thumb_jump): Ditto.
12434 (*call_reg_thumb1_v5): Ditto.
12435 (*call_reg_thumb1): Ditto.
12436 (*call_value_reg_thumb1_v5): Ditto.
12437 (*call_value_reg_thumb1): Ditto.
12438 (*call_insn): Ditto.
12439 (*call_value_insn): Ditto.
12440 (thumb1_casesi_internal_pic): Ditto.
12441 (thumb1_casesi_dispatch): Ditto.
12442 (*thumb1_indirect_jump): Ditto.
12443 (prologue_thumb1_interwork): Ditto.
12444 (*epilogue_insns): Ditto.
12445 (consttable_1): Ditto.
12446 (consttable_2): Ditto.
12447 (tablejump): Ditto.
12448 (*thumb1_tablejump): Ditto.
12449 (thumb_eh_return): Ditto.
12450 (define_peephole2): Two of them are thumb1 only and got moved into
12451 new file thumb1.md.
12452 (define_split): Six of them are thumb1 only and got moved into new
12453 file thumb1.md.
12454 * config/arm/thumb1.md: New file comprised of above thumb1 only
12455 patterns.
12456
12457 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12458
12459 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12460 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12461 dependencies.
12462 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12463 (aarch64_crc_builtin_datum): New struct.
12464 (aarch64_crc_builtin_data): New.
12465 (aarch64_init_crc32_builtins): New function.
12466 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12467 (aarch64_crc32_expand_builtin): New.
12468 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12469 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12470 __ARM_FEATURE_CRC32 when appropriate.
12471 (TARGET_CRC32): Define.
12472 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12473 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12474 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12475 (aarch64_<crc_variant>): New pattern.
12476 * config/aarch64/arm_acle.h: New file.
12477 * config/aarch64/iterators.md (CRC): New int iterator.
12478 (crc_variant, crc_mode): New int attributes.
12479 * doc/aarch64-acle-intrinsics.texi: New file.
12480 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12481 Include aarch64-acle-intrinsics.texi.
12482
12483 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12484
12485 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12486 check for stores group of length 3.
12487 (vect_permute_store_chain): New permutations for stores group of
12488 length 3.
12489 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12490 of vec_perm_shuffle for the new permutations.
12491
12492 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12493
12494 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12495 table rewriting temporarily on targets not supporting ONE_ONLY.
12496
12497 2014-06-11 Richard Biener <rguenther@suse.de>
12498
12499 PR middle-end/61437
12500 Revert
12501 2014-06-04 Richard Biener <rguenther@suse.de>
12502
12503 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12504 TREE_PUBLIC and DECL_EXTERNAL decls.
12505
12506 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12507
12508 * varasm.c (set_implicit_section): New function.
12509 (resolve_unique_section): Use it to set implicit section
12510 for aliases, too.
12511 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12512 (default_function_section): Likewise.
12513 (decl_binds_to_current_def_p): Constify argument.
12514 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12515 * asan.c (asan_protect_global): Use
12516 symtab_get_node (decl)->implicit_section.
12517 * symtab.c (dump_symtab_base): Dump implicit sections.
12518 (verify_symtab_base): Verify sanity of sectoins and comdats.
12519 (symtab_resolve_alias): Alias share the section of its target.
12520 (set_section_1): New function.
12521 (symtab_node::set_section): Move here, recurse to aliases.
12522 (verify_symtab): Check for duplicated symtab lists.
12523 * tree-core.h (implicit_section_name_p): Remove.
12524 * tree-vect-data-refs.c: Include varasm.h.
12525 (vect_can_force_dr_alignment_p): Fix conditional on when
12526 decl bints to current definition; use
12527 symtab_get_node (decl)->implicit_section.
12528 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12529 * cgraph.h (struct symtab_node): Add implicit_section.
12530 (set_section): Rename to ...
12531 (set_section_for_node): ... this one.
12532 (set_section): Declare.
12533 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12534 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12535 input_overwrite_node, input_varpool_node): Stream implicit_section.
12536 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12537 removal; it will fail in LTO.
12538
12539 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12540
12541 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12542 Change second alternative type to f_mcr.
12543 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12544 and 12th alternatives' types to f_mcr and f_mrc.
12545 (*movdi_aarch64): Same for 12th and 13th alternatives.
12546 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12547 (aarch64_movtilow_tilow): Change type to fmov.
12548
12549 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12550
12551 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12552 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12553
12554 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12555
12556 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12557 New expander.
12558 (aarch64_sqrdmulh_lane<mode>): Likewise.
12559 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12560 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12561 (aarch64_sqdmulh_laneq<mode>): New expander.
12562 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12563 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12564 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12565 (aarch64_sqdmulh_lane<mode>): New expander.
12566 (aarch64_sqrdmulh_lane<mode>): Likewise.
12567 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12568 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12569 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12570 (aarch64_sqdmlal_laneq<mode>): Likewise.
12571 (aarch64_sqdmlsl_lane<mode>): Likewise.
12572 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12573 (aarch64_sqdmlal2_lane<mode>): Likewise.
12574 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12575 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12576 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12577 (aarch64_sqdmull_lane<mode>): Likewise.
12578 (aarch64_sqdmull_laneq<mode>): Likewise.
12579 (aarch64_sqdmull2_lane<mode>): Likewise.
12580 (aarch64_sqdmull2_laneq<mode>): Likewise.
12581
12582 2014-06-10 Richard Biener <rguenther@suse.de>
12583
12584 PR tree-optimization/61438
12585 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12586 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12587 insertion of IVs if running PRE.
12588 (eliminate): Adjust.
12589 (pass_pre::execute): Likewise.
12590 (pass_fre::execute): Likewise.
12591
12592 2014-06-10 Richard Biener <rguenther@suse.de>
12593
12594 PR middle-end/61456
12595 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12596 Do not use the main variant for the type comparison.
12597 (ncr_compar): Likewise.
12598 (nonoverlapping_component_refs_p): Likewise.
12599
12600 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12601
12602 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12603 REG_CFA_RESTORE mode.
12604
12605 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12606
12607 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12608 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12609 expand_vec_perm_pblendv.
12610
12611 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12612
12613 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12614 available.
12615 Simplify description of __crc32d and __crc32cd intrinsics.
12616 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12617 availability.
12618
12619 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12620
12621 PR lto/61334
12622 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12623 * config.in: Regenerate.
12624 * configure: Likewise.
12625
12626 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12627
12628 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12629 and public vars.
12630 (intersect_static_var_sets): Remove.
12631 (propagate): Do not prune local statics.
12632
12633 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12634
12635 PR fortran/60928
12636 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12637 Set lastprivate_firstprivate even if omp_private_outer_ref
12638 langhook returns true.
12639 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12640 langhook, call unshare_expr on new_var and call
12641 build_outer_var_ref to get the last argument.
12642
12643 2014-06-10 Marek Polacek <polacek@redhat.com>
12644
12645 PR c/60988
12646 * doc/extend.texi: Add cindex for transparent_union.
12647
12648 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12649
12650 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12651 init_symbolic_number ().
12652
12653 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12654
12655 PR middle-end/61141
12656 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12657 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12658 (verify_rtl_sharing): Likewise.
12659
12660 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12661
12662 PR c++/54442
12663 * tree.c (build_qualified_type): Use a canonical type for
12664 TYPE_CANONICAL.
12665
12666 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12667
12668 * config/arm/arm-modes.def: Remove XFmode.
12669
12670 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12671
12672 PR target/61062
12673 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12674 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12675 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12676 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12677 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12678 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12679 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12680 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12681 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12682
12683 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12684
12685 * tree-core.h (tree_decl_with_vis): Remove section_name.
12686
12687 2014-06-09 Kito Cheng <kito@0xlab.org>
12688
12689 * ira.c (ira): Don't call init_caller_save if LRA enabled
12690 since LRA use its own infrastructure to handle that.
12691
12692 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12693
12694 * symtab.c (dump_symtab_base): Update dumping.
12695 (symtab_make_decl_local): Clear only DECL_COMDAT.
12696 * tree-vect-data-refs.c (Check that variable is static before
12697 tampering with sections.
12698 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12699 (cgraph_create_virtual_clone): Likewise.
12700 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12701 (decl_section_name, set_decl_section_name): New accessors.
12702 (find_decls_types_r): Do not walk section name
12703 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12704 (decl_comdat_group, decl_comdat_group_id): Constify.
12705 (decl_section_name, set_decl_section_name): Update.
12706 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12707 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12708 (cgraph_make_node_local_1): Clear section and comdat group.
12709 * cgraph.h (set_comdat_group): Sanity check.
12710 (get_section, set_section): New.
12711 * ipa-comdats.c (ipa_comdats): Use get_section.
12712 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12713 * lto-streamer-out.c: Do not follow section names.
12714 * c-family/c-common.c (handle_section_attribute): Update.
12715 * lto-cgraph.c (lto_output_node): Output section.
12716 (lto_output_varpool_node): Likewise.
12717 (read_comdat_group): Rename to ...
12718 (read_identifier): ... this one.
12719 (read_string_cst): New function.
12720 (input_node, input_varpool_node): Input section names.
12721 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12722 (new_emutls_decl): Update.
12723 (secname_for_decl): Check section names only of static vars.
12724 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12725 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12726 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12727 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12728 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12729 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12730 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12731 * config/v850/v850.c (v850_insert_attributes): Likewise.
12732 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12733 Likewise.
12734 (h8300_handle_tiny_data_attribute): Likewise.
12735 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12736 (bfin_handle_l2_attribute): Likewise.
12737
12738 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12739
12740 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12741 remove static initializer.
12742
12743 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12744
12745 * varasm.c (use_blocks_for_decl_p): Check symbol table
12746 instead of alias attribute.
12747 (place_block_symbol): Recurse on aliases.
12748
12749 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12750
12751 * ipa-visibility.c: Include varasm.h
12752 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12753
12754 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12755
12756 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12757 outputting aliases.
12758
12759 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12760
12761 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12762 from test_insn into GGC space escape via SET_SRC.
12763
12764 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12765
12766 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12767 call statement, if any.
12768 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12769 statements, if any. Tidy up.
12770
12771 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12772
12773 PR target/61431
12774 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12775 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12776 handles swapping the two 64-bit double words on little endian
12777 systems. Include V1TImode and optionally TImode in VSX_LE so that
12778 these types are properly swapped. Change all of the insns and
12779 splits that do the 64-bit swaps to use VSX_LE.
12780 (vsx_le_perm_load_<mode>): Likewise.
12781 (vsx_le_perm_store_<mode>): Likewise.
12782 (splitters for little endian memory operations): Likewise.
12783 (vsx_xxpermdi2_le_<mode>): Likewise.
12784 (vsx_lxvd2x2_le_<mode>): Likewise.
12785 (vsx_stxvd2x2_le_<mode>): Likewise.
12786
12787 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12788
12789 PR target/61423
12790 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12791 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12792 and corresponding splitters. Zero extend general register
12793 or memory input operand to XMM temporary. Enable for
12794 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12795 (floatunssi<mode>2): Update expander predicate.
12796
12797 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12798
12799 PR rtl-optimization/61325
12800 * lra-constraints.c (process_address_1): Check scale equal to one
12801 to prevent transformation: base + scale * index => base + new_reg.
12802
12803 2014-06-06 Richard Biener <rguenther@suse.de>
12804
12805 PR tree-optimization/59299
12806 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12807 a def operand.
12808 (nearest_common_dominator_of_uses): Likewise.
12809 (statement_sink_location): Adjust. Support sinking loads.
12810
12811 2014-06-06 Martin Jambor <mjambor@suse.cz>
12812
12813 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12814 (build_agg_jump_func_from_list): Likewise.
12815 (determine_known_aggregate_parts): Renamed to
12816 determine_locally_known_aggregate_parts. Moved some functionality
12817 to the two functions above, removed bound checks.
12818
12819 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12820
12821 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12822 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12823 (aarch64_progress_pointer): Likewise.
12824 (aarch64_copy_one_part_and_move_pointers): Likewise.
12825 (aarch64_expand_movmen): Likewise.
12826 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12827 * config/aarch64/aarch64.md (movmem<mode>): New.
12828
12829 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12830
12831 * targhooks.c (default_add_stmt_cost): Call target specific
12832 hook instead of default one.
12833
12834 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12835
12836 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12837 endianness instead of host endianness.
12838 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12839 comments.
12840
12841 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12842
12843 PR debug/53927
12844 * function.c (instantiate_decls): Process the saved static chain.
12845 (expand_function_start): If not optimizing, save the static chain
12846 onto the stack.
12847 * tree-nested.c (convert_all_function_calls): Always create the static
12848 chain for nested functions if not optimizing.
12849
12850 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12851
12852 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12853
12854 2014-06-06 Richard Biener <rguenther@suse.de>
12855
12856 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12857 (construct_init_block): Likewise.
12858 (construct_exit_block): Likewise.
12859 (pass_expand::execute): Likewise.
12860 * graphite.c (graphite_transforms): Replace check for current_loops
12861 with a check for > 1 loops.
12862 (pass_graphite_transforms::execute): Adjust.
12863 * ipa-split.c (split_function): Remove check for current_loops.
12864 * omp-low.c (expand_parallel_call): Likewise.
12865 (expand_omp_for_init_counts): Likewise.
12866 (extract_omp_for_update_vars): Likewise.
12867 (expand_omp_for_generic): Likewise.
12868 (expand_omp_sections): Likewise.
12869 (expand_omp_target): Likewise.
12870 * tracer.c (tail_duplicate): Likewise.
12871 (pass_tracer::execute): Likewise.
12872 * trans-mem.c (expand_transaction): Likewise.
12873 * tree-complex.c (expand_complex_div_wide): Likewise.
12874 * tree-eh.c (lower_resx): Likewise.
12875 (cleanup_empty_eh_merge_phis): Likewise.
12876 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12877 current_loops with a check for > 1 loops.
12878 (pass_predcom::execute): Adjust.
12879 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12880 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12881 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12882 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12883 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12884 * tree-switch-conversion.c (process_switch): Likewise.
12885 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12886 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12887 (execute_vrp): Likewise.
12888 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12889
12890 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12891
12892 * rtl.h (insn_location): Declare.
12893 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12894 with UNKNOWN_LOCATION.
12895 * emit-rtl.c (insn_location): New function.
12896 * final.c (notice_source_line): Check that the instruction has a
12897 location before retrieving it and use insn_location.
12898 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12899 * print-rtl.c (print_rtx): Likewise.
12900
12901 2014-06-06 Richard Biener <rguenther@suse.de>
12902
12903 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12904
12905 2014-06-06 Christian Bruel <christian.bruel@st.com>
12906
12907 PR tree-optimization/43934
12908 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12909 cost.
12910
12911 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12912
12913 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12914 return NO_REGS for extra address and memory constraints. Handle
12915 operands that match (or are equivalent to something that matches)
12916 extra constant constraints. Ignore other non-register operands.
12917
12918 2014-06-06 Alan Modra <amodra@gmail.com>
12919
12920 PR target/61300
12921 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12922 * doc/tm.texi: Regenerate.
12923 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12924 Use throughout in place of REG_PARM_STACK_SPACE.
12925 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12926 "incoming" param. Pass to rs6000_function_parms_need_stack.
12927 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12928 prototype_p when incoming. Use function decl when incoming
12929 to handle K&R style functions.
12930 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12931 (INCOMING_REG_PARM_STACK_SPACE): Define.
12932
12933 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12934
12935 PR target/52472
12936 * cfgexpand.c (expand_debug_expr): Use address space of nested
12937 TREE_TYPE for ADDR_EXPR and MEM_REF.
12938
12939 2014-06-05 Jeff Law <law@redhat.com>
12940
12941 PR tree-optimization/61289
12942 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12943 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12944 looking for those which match LHS. All callers changed.
12945 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12946 parameters and code which manipulated them. All callers changed.
12947 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
12948 and DST_MAP parameters. Simplify invalidation code by just calling
12949 invalidate_equivalences. All callers changed.
12950 (thread_across_edge): Simplify now that we don't need to maintain
12951 the map of equivalences to invalidate.
12952
12953 2014-06-05 Kai Tietz <ktietz@redhat.com>
12954 Richard Henderson <rth@redhat.com>
12955
12956 PR target/46219
12957 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
12958 checking for !TARGET_X32.
12959 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
12960 (sibcall_intern): New define_insn, plus required peepholes.
12961 (sibcall_pop_intern): Likewise.
12962 (sibcall_value_intern): Likewise.
12963 (sibcall_value_pop_intern): Likewise.
12964
12965 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
12966
12967 * tree-inline.c (tree_function_versioning): Check DF info existence
12968 before accessing it.
12969
12970 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12971
12972 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
12973 frame_size.
12974 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
12975 aarch64_frame hard_fp_offset and frame_size.
12976 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
12977 frame_size; remove original_frame_size.
12978 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
12979 (aarch64_initial_elimination_offset): Remove frame_size and
12980 offset. Use aarch64_frame frame_size.
12981
12982 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12983 Jiong Wang <jiong.wang@arm.com>
12984 Renlin <renlin.li@arm.com>
12985
12986 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
12987 initialization of R30 offset. Update offset. Iterate core
12988 regisers upto X30. Remove X29, X30 specific code.
12989
12990 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12991 Jiong Wang <jiong.wang@arm.com>
12992
12993 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
12994 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
12995 (aarch64_register_saved_on_entry): Adjust test.
12996
12997 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
12998
12999 * config/aarch64/aarch64.h (machine_function): Move
13000 saved_varargs_size from here...
13001 (aarch64_frame): ... to here.
13002
13003 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13004 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13005 (aarch64_initial_elimination_offset)
13006 (aarch64_setup_incoming_varargs): Adjust location of
13007 saved_varargs_size.
13008
13009 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13010
13011 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13012 layout comment.
13013
13014 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13015 Prachi Godbole <Prachi.Godbole@imgtec.com>
13016
13017 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13018 mips32r5 entry to use PROCESSOR_P5600.
13019 * config/mips/mips-tables.opt: Regenerate.
13020 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13021 * config/mips/mips.c (mips_fmadd_bypass): New function.
13022 (mips_rtx_cost_data): Add costs for p5600.
13023 (mips_issue_rate): Add support for p5600.
13024 (mips_multipass_dfa_lookahead): Likewise.
13025 * config/mips/mips.h (TUNE_P5600): New define.
13026 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13027 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13028 * config/mips/mips.md: Include p5600.md.
13029 (processor): Add p5600.
13030 * config/mips/p5600.md: New file.
13031
13032 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13033
13034 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13035 * config/i386/predicates.md (palignr_operand): New.
13036 Indicates if permutation is suitable for palignr instruction.
13037
13038 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13039
13040 PR tree-optimization/61319
13041 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13042 stmt belongs to loop.
13043
13044 2014-06-05 Richard Biener <rguenther@suse.de>
13045
13046 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13047 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13048 (lookup_tmp_var): Adjust.
13049 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13050
13051 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13052
13053 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13054
13055 2014-06-05 Marek Polacek <polacek@redhat.com>
13056
13057 PR c/49706
13058 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13059
13060 2014-06-04 Tom de Vries <tom@codesourcery.com>
13061
13062 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13063 CONST_INT.
13064
13065 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13066
13067 PR tree-optimization/61385
13068 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13069
13070 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13071
13072 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13073 changed to use fatal_error.
13074 (main): Ensure lto_wrapper_cleanup is run atexit.
13075
13076 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13077
13078 * lra-constraints.c (valid_address_p): Move earlier in file.
13079 (address_eliminator): New structure.
13080 (satisfies_memory_constraint_p): New function.
13081 (satisfies_address_constraint_p): Likewise.
13082 (process_alt_operands, process_address, curr_insn_transform): Use them.
13083
13084 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13085
13086 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13087 const pointer.
13088 (target_lra_int, default_target_lra_int, this_target_lra_int)
13089 (op_alt_data): Delete.
13090 * lra.h (lra_init): Delete.
13091 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13092 (init_insn_code_data_once): Remove op_alt_data handling.
13093 (finish_insn_code_data_once): Likewise.
13094 (init_op_alt_data): Delete.
13095 (get_static_insn_data): Initialize operand_alternative to null.
13096 (free_insn_recog_data): Cast operand_alternative before freeing it.
13097 (setup_operand_alternative): Take the operand_alternative as
13098 parameter and assume it isn't already cached in the static
13099 insn data.
13100 (lra_set_insn_recog_data): Update accordingly.
13101 (lra_init): Delete.
13102 * ira.c (ira_init): Don't call lra_init.
13103 * target-globals.h (this_target_lra_int): Declare.
13104 (target_globals): Remove lra_int.
13105 (restore_target_globals): Update accordingly.
13106 * target-globals.c: Don't include lra-int.h.
13107 (default_target_globals, save_target_globals): Remove lra_int.
13108
13109 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13110
13111 * recog.h (operand_alternative): Convert reg_class, reject,
13112 matched and matches into bitfields.
13113 (preprocess_constraints): New overload.
13114 (preprocess_insn_constraints): New function.
13115 (preprocess_constraints): Take the insn as parameter.
13116 (recog_op_alt): Change into a pointer.
13117 (target_recog): Add x_op_alt.
13118 * recog.c (asm_op_alt): New variable.
13119 (recog_op_alt): Change into a pointer.
13120 (preprocess_constraints): New overload, replacing the old function
13121 definition with one that doesn't use global state.
13122 (preprocess_insn_constraints): New function.
13123 (preprocess_constraints): Use them. Take the insn as parameter.
13124 Use asm_op_alt for asms.
13125 (recog_init): Free existing x_op_alt entries.
13126 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13127 pointer const.
13128 (make_early_clobber_and_input_conflicts): Likewise.
13129 (process_bb_node_lives): Pass the insn to process_constraints.
13130 * reg-stack.c (check_asm_stack_operands): Likewise.
13131 (subst_asm_stack_regs): Likewise.
13132 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13133 * regrename.c (build_def_use): Likewise.
13134 * sched-deps.c (sched_analyze_insn): Likewise.
13135 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13136 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13137 (note_invalid_constants): Likewise.
13138 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13139 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13140 const.
13141
13142 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13143
13144 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13145 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13146 alternatives.
13147 (make_early_clobber_and_input_conflicts): Likewise.
13148 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13149
13150 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13151
13152 * recog.h (alternative_class): New function.
13153 (which_op_alt): Return a const recog_op_alt.
13154 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13155 (subst_asm_stack_regs): Likewise.
13156 * config/arm/arm.c (note_invalid_constants): Likewise.
13157 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13158 the operand_alternative; use alternative class instead.
13159 * sel-sched.c (get_reg_class): Likewise.
13160 * regrename.c (build_def_use): Likewise.
13161 (hide_operands, restore_operands, record_out_operands): Update type
13162 accordingly.
13163
13164 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13165
13166 * recog.h (recog_op_alt): Convert to a flat array.
13167 (which_op_alt): New function.
13168 * recog.c (recog_op_alt): Convert to a flat array.
13169 (preprocess_constraints): Update accordingly, grouping all
13170 operands of the same alternative together, rather than the
13171 other way around.
13172 * ira-lives.c (check_and_make_def_conflict): Likewise.
13173 (make_early_clobber_and_input_conflicts): Likewise.
13174 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13175 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13176 (subst_asm_stack_regs): Likewise.
13177 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13178 * regrename.c (hide_operands, record_out_operands): Likewise.
13179 (build_def_use): Likewise.
13180 * sel-sched.c (get_reg_class): Likewise.
13181 * config/arm/arm.c (note_invalid_constants): Likewise.
13182
13183 2014-06-04 Jason Merrill <jason@redhat.com>
13184
13185 PR c++/51253
13186 PR c++/61382
13187 * gimplify.c (gimplify_arg): Non-static.
13188 * gimplify.h: Declare it.
13189
13190 2014-06-04 Richard Biener <rguenther@suse.de>
13191
13192 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13193 TREE_PUBLIC and DECL_EXTERNAL decls.
13194
13195 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13196
13197 * regcprop.c (copyprop_hardreg_forward_1): Account for
13198 HARD_REGNO_CALL_PART_CLOBBERED.
13199
13200 2014-06-04 Richard Biener <rguenther@suse.de>
13201
13202 * configure.ac: Check whether the underlying type of int64_t
13203 is long or long long.
13204 * configure: Regenerate.
13205 * config.in: Likewise.
13206 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13207 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13208
13209 2014-06-04 Richard Biener <rguenther@suse.de>
13210
13211 PR tree-optimization/60098
13212 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13213 we hit a kill.
13214 (dse_optimize_stmt): Simplify, now that we found a kill
13215 earlier.
13216
13217 2014-06-04 Richard Biener <rguenther@suse.de>
13218
13219 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13220 of accesses with non-invariant address.
13221
13222 2014-06-04 Martin Liska <mliska@suse.cz>
13223
13224 * cgraph.h (cgraph_make_wrapper): New function introduced.
13225 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13226 * ipa-inline.h (inline_analyze_function): The function is global.
13227 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13228
13229 2014-06-04 Martin Liska <mliska@suse.cz>
13230
13231 * tree.h (private_lookup_attribute_starting): New function.
13232 (lookup_attribute_starting): Likewise.
13233 * tree.c (private_lookup_attribute_starting): Likewise.
13234
13235 2014-06-04 Martin Liska <mliska@suse.cz>
13236
13237 * cgraph.h (expand_thunk): New argument added.
13238 (address_taken_from_non_vtable_p): New global function.
13239 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13240 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13241 * cgraphunit.c (analyze_function): Likewise.
13242 (assemble_thunks_and_aliases): Argument added to call.
13243 (expand_thunk): New argument forces to produce GIMPLE thunk.
13244
13245 2014-06-04 Martin Liska <mliska@suse.cz>
13246
13247 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13248 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13249 * profile.c (branch_prob): Likewise.
13250
13251 2014-06-04 Martin Jambor <mjambor@suse.cz>
13252
13253 PR ipa/61340
13254 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13255 handler for switch on an ipa_ref_use enum.
13256 * ipa-reference.c (analyze_function): Likewise.
13257
13258 2014-06-04 Kai Tietz <ktietz@redhat.com>
13259
13260 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13261 from old call-instruction.
13262
13263 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13264
13265 * config/aarch64/aarch64.c (aarch64_classify_address)
13266 (aarch64_legitimize_reload_address): Support full addressing modes
13267 for vector modes.
13268 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13269 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13270
13271 2014-06-03 Andrew Pinski <apinski@cavium.com>
13272
13273 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13274 for OP0.
13275
13276 2014-06-03 Andrew Pinski <apinski@cavium.com>
13277
13278 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13279 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13280
13281 2014-06-03 Kai Tietz <ktietz@redhat.com>
13282
13283 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13284 for 64-bit ms-abi.
13285
13286 2014-06-03 Dehao Chen <dehao@google.com>
13287
13288 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13289 the same loop.
13290
13291 2014-06-03 Marek Polacek <polacek@redhat.com>
13292
13293 PR c/60439
13294 * doc/invoke.texi: Document -Wswitch-bool.
13295 * function.c (stack_protect_epilogue): Cast controlling expression of
13296 the switch to int.
13297 * gengtype.c (walk_type): Generate switch expression with its
13298 controlling expression cast to int.
13299
13300 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13301
13302 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13303 and attiny841.
13304 * config/avr/avr-tables.opt: Regenerate.
13305 * config/avr/t-multilib: Regenerate.
13306 * doc/avr-mmcu.texi: Regenerate.
13307
13308 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13309 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13310
13311 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13312 (ata6617c, ata664251): Add new avr35 devices.
13313 (ata6612c): Add new avr4 device.
13314 (ata6613c, ata6614q): Add new avr5 devices.
13315 * config/avr/avr-tables.opt: Regenerate.
13316 * config/avr/t-multilib: Regenerate.
13317 * doc/avr-mmcu.texi: Regenerate.
13318
13319 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13320
13321 * gcc/config/aarch64/aarch64-builtins.c
13322 (aarch64_types_binop_ssu_qualifiers): New static data.
13323 (TYPES_BINOP_SSU): Define.
13324 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13325 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13326 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13327 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13328 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13329 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13330 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13331 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13332 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13333 suffix to builtin function name, remove cast.
13334 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13335 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13336 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13337
13338 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13339
13340 * gcc/config/aarch64/aarch64-builtins.c
13341 (aarch64_types_binop_uus_qualifiers,
13342 aarch64_types_shift_to_unsigned_qualifiers,
13343 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13344 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13345 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13346 sqshlu_n, uqshl_n): Update qualifiers.
13347 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13348 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13349 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13350 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13351 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13352 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13353 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13354 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13355 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13356 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13357 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13358 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13359 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13360 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13361 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13362 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13363 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13364 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13365 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13366 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13367 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13368 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13369 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13370 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13371 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13372 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13373 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13374
13375 2014-06-03 Teresa Johnson <tejohnson@google.com>
13376
13377 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13378
13379 2014-06-02 Jason Merrill <jason@redhat.com>
13380
13381 PR c++/61020
13382 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13383
13384 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13385
13386 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13387 location == 0.
13388
13389 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13390
13391 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13392 New pattern.
13393 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13394 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13395 * config/aarch64/iterators.md (REVERSE): New iterator.
13396 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13397 (rev_op): New int_attribute.
13398 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13399 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13400 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13401 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13402 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13403 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13404 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13405 Replace temporary __asm__ with __builtin_shuffle.
13406
13407 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13408
13409 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13410 mips64r5.
13411 * config/mips/mips-tables.opt: Regenerate.
13412 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13413 to use mips_isa_rev rather than ISA_MIPS32R2.
13414 * config/mips/mips.h (ISA_MIPS32R3): New define.
13415 (ISA_MIPS32R5): New define.
13416 (ISA_MIPS64R3): New define.
13417 (ISA_MIPS64R5): New define.
13418 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13419 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13420 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13421 and mips64r5.
13422 (MIPS_ISA_SYNCI_SPEC): Likewise.
13423 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13424 (LINK_SPEC): Added mips32r3 and mips32r5.
13425 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13426 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13427 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13428 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13429 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13430 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13431 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13432
13433 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13434
13435 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13436 options.
13437 * config/mips/mips.opt (mxpa): New option.
13438 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13439 assembler.
13440
13441 2014-06-03 Martin Jambor <mjambor@suse.cz>
13442
13443 PR ipa/61160
13444 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13445 thunks.
13446
13447 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13448
13449 PR tree-optimization/61328
13450 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13451 initialization from find_bswap_or_nop_1.
13452 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13453 in source_expr2 before using the size value the function sets. Also
13454 make use of init_symbolic_number () in both the old place and
13455 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13456 doing recursion in the GIMPLE_BINARY_RHS case.
13457
13458 2014-06-03 Richard Biener <rguenther@suse.de>
13459
13460 PR tree-optimization/61383
13461 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13462 stmts can't trap.
13463
13464 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13465
13466 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13467 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13468 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13469 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13470 in this file.
13471 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13472 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13473 * system.h: ...here and make it unconditional.
13474 * target.def (conditional_register_usage): Mention
13475 define_register_constraint instead of old-style constraint macros.
13476 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13477 * doc/tm.texi: Regenerate.
13478 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13479 protected by !USE_MD_CONSTRAINTS.
13480 * config/frv/frv.md: Remove quote from old version of documentation.
13481 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13482 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13483 CONST_DOUBLE_OK_FOR_LETTER.
13484 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13485
13486 2014-06-02 Andrew Pinski <apinski@cavium.com>
13487
13488 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13489 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13490 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13491 file whose name depends on -mabi= and -mbig-endian.
13492 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13493 Handle LP64 better and handle ilp32 too.
13494 (MULTILIB_OPTIONS): Delete.
13495 (MULTILIB_DIRNAMES): Delete.
13496
13497 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13498
13499 * expr.h: Remove prototypes of functions defined in builtins.c.
13500 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13501 Remove prototypes of functions defined in builtins.c.
13502 * builtins.h: Update prototype list to include all exported functions.
13503 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13504 no_c99_libc_has_function): Move to targhooks.c
13505 (build_string_literal, build_call_expr_loc_array,
13506 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13507 to tree.c.
13508 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13509 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13510 no_c99_libc_has_function): Relocate from builtins.c.
13511 * tree.c: Include builtins.h.
13512 (build_call_expr_loc_array, build_call_expr_loc_vec,
13513 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13514 from builtins.c.
13515 * fold-const.h (fold_fma): Move prototype to builtins.h.
13516 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13517 * asan.c: Include builtins.h.
13518 * cfgexpand.c: Likewise.
13519 * convert.c: Likewise.
13520 * emit-rtl.c: Likewise.
13521 * except.c: Likewise.
13522 * expr.c: Likewise.
13523 * fold-const.c: Likewise.
13524 * gimple-fold.c: Likewise.
13525 * gimple-ssa-strength-reduction.c: Likewise.
13526 * gimplify.c: Likewise.
13527 * ipa-inline.c: Likewise.
13528 * ipa-prop.c: Likewise.
13529 * lto-streamer-out.c: Likewise.
13530 * stmt.c: Likewise.
13531 * tree-inline.c: Likewise.
13532 * tree-object-size.c: Likewise.
13533 * tree-sra.c: Likewise.
13534 * tree-ssa-ccp.c: Likewise.
13535 * tree-ssa-forwprop.c: Likewise.
13536 * tree-ssa-loop-ivcanon.c: Likewise.
13537 * tree-ssa-loop-ivopts.c: Likewise.
13538 * tree-ssa-math-opts.c: Likewise.
13539 * tree-ssa-reassoc.c: Likewise.
13540 * tree-ssa-threadedge.c: Likewise.
13541 * tree-streamer-in.c: Likewise.
13542 * tree-vect-data-refs.c: Likewise.
13543 * tree-vect-patterns.c: Likewise.
13544 * tree-vect-stmts.c: Likewise.
13545 * config/aarch64/aarch64.c: Likewise.
13546 * config/alpha/alpha.c: Likewise.
13547 * config/arc/arc.c: Likewise.
13548 * config/arm/arm.c: Likewise.
13549 * config/avr/avr.c: Likewise.
13550 * config/bfin/bfin.c: Likewise.
13551 * config/c6x/c6x.c: Likewise.
13552 * config/cr16/cr16.c: Likewise.
13553 * config/cris/cris.c: Likewise.
13554 * config/epiphany/epiphany.c: Likewise.
13555 * config/fr30/fr30.c: Likewise.
13556 * config/frv/frv.c: Likewise.
13557 * config/h8300/h8300.c: Likewise.
13558 * config/i386/i386.c: Likewise.
13559 * config/i386/winnt.c: Likewise.
13560 * config/ia64/ia64.c: Likewise.
13561 * config/iq2000/iq2000.c: Likewise.
13562 * config/lm32/lm32.c: Likewise.
13563 * config/m32c/m32c.c: Likewise.
13564 * config/m32r/m32r.c: Likewise.
13565 * config/m68k/m68k.c: Likewise.
13566 * config/mcore/mcore.c: Likewise.
13567 * config/mep/mep.c: Likewise.
13568 * config/microblaze/microblaze.c: Likewise.
13569 * config/mips/mips.c: Likewise.
13570 * config/mmix/mmix.c: Likewise.
13571 * config/mn10300/mn10300.c: Likewise.
13572 * config/moxie/moxie.c: Likewise.
13573 * config/msp430/msp430.c: Likewise.
13574 * config/nds32/nds32.c: Likewise.
13575 * config/pa/pa.c: Likewise.
13576 * config/pdp11/pdp11.c: Likewise.
13577 * config/picochip/picochip.c: Likewise.
13578 * config/rl78/rl78.c: Likewise.
13579 * config/rs6000/rs6000.c: Likewise.
13580 * config/rx/rx.c: Likewise.
13581 * config/s390/s390.c: Likewise.
13582 * config/score/score.c: Likewise.
13583 * config/sh/sh.c: Likewise.
13584 * config/sparc/sparc.c: Likewise.
13585 * config/spu/spu.c: Likewise.
13586 * config/stormy16/stormy16.c: Likewise.
13587 * config/tilegx/tilegx.c: Likewise.
13588 * config/tilepro/tilepro.c: Likewise.
13589 * config/v850/v850.c: Likewise.
13590 * config/vax/vax.c: Likewise.
13591 * config/xtensa/xtensa.c: Likewise.
13592
13593 2014-06-02 Jeff Law <law@redhat.com>
13594
13595 PR rtl-optimization/61094
13596 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13597 was marked as do_no_reextend. If a copy is needed to eliminate
13598 an extension, then mark it as do_not_reextend.
13599
13600 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13601
13602 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13603
13604 2014-06-02 Richard Henderson <rth@redhat.com>
13605
13606 PR target/61336
13607 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13608 addresses inside asms. Use output_operand_lossage instead of
13609 gcc_unreachable.
13610
13611 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13612
13613 PR target/61239
13614 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13615 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13616
13617 2014-06-02 Tom de Vries <tom@codesourcery.com>
13618
13619 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13620 case that x has VOIDmode.
13621
13622 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13623
13624 * varasm.c (copy_constant): Delete function.
13625 (build_constant_desc): Don't call it.
13626
13627 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13628
13629 PR target/61154
13630 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13631 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13632 with immediate_operand.
13633
13634 2014-06-02 Andreas Schwab <schwab@suse.de>
13635
13636 * config/ia64/ia64.c
13637 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13638 pending_data_specs first.
13639
13640 2014-06-02 Richard Biener <rguenther@suse.de>
13641
13642 PR tree-optimization/61378
13643 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13644 valueized_anything.
13645
13646 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13647
13648 * config/i386/constraints.md (Bw): Rename from 'w'.
13649 (Bz): Rename from 'z'.
13650 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13651
13652 2014-06-01 Kai Tietz <ktietz@redhat.com>
13653
13654 PR target/61377
13655 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13656 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13657 instead of m constraint.
13658
13659 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13660
13661 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13662 a separate alternative where the scratch operand 2 is marked as
13663 early clobber.
13664
13665 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13666
13667 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13668 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13669 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13670 and __builtins_arm_get_fpscr.
13671 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13672 __builtins_arm_get_fpscr.
13673 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13674 __builtins_arm_ldfpscr.
13675 (arm_atomic_assign_expand_fenv): New function.
13676 * config/arm/vfp.md (set_fpscr): New pattern.
13677 (get_fpscr) : Likewise.
13678 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13679 VUNSPEC_SET_FPSCR.
13680 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13681 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13682
13683 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13684
13685 * asan.c (report_error_func): Add SLOW_P argument, use
13686 BUILT_IN_ASAN_*_N if set.
13687 (build_check_stmt): Likewise.
13688 (instrument_derefs): If T has insufficient alignment,
13689 force same handling as for odd sizes.
13690
13691 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13692 BUILT_IN_ASAN_REPORT_STORE_N): New.
13693 * asan.c (struct asan_mem_ref): Change access_size type to
13694 HOST_WIDE_INT.
13695 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13696 update_mem_ref_hash_table): Likewise.
13697 (asan_mem_ref_hasher::hash): Hash in a HWI.
13698 (report_error_func): Change size_in_bytes argument to HWI.
13699 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13700 two.
13701 (build_shadow_mem_access): New function.
13702 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13703 Handle size_in_bytes not power of two or larger than 16.
13704 (instrument_derefs): Don't give up if size_in_bytes is not
13705 power of two or is larger than 16.
13706
13707 2014-05-30 Kai Tietz <ktietz@redhat.com>
13708
13709 PR target/60104
13710 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13711 for sibling-tail-calls.
13712 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13713 to its use.
13714 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13715 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13716
13717 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13718
13719 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13720 * config/avr/avr-tables.opt: Regenerate.
13721 * config/avr/t-multilib: Regenerate.
13722 * doc/avr-mmcu.texi: Regenerate.
13723
13724 2014-05-30 Ian Lance Taylor <iant@google.com>
13725
13726 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13727 target("sse").
13728
13729 2014-05-30 Tom de Vries <tom@codesourcery.com>
13730
13731 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13732 Redefine as true.
13733
13734 2014-05-30 Tom de Vries <tom@codesourcery.com>
13735
13736 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13737 * lra.c (initialize_lra_reg_info_element): Add init of
13738 actual_call_used_reg_set field.
13739 (lra): Call lra_create_live_ranges before lra_inheritance for
13740 -fuse-caller-save.
13741 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13742 -fuse-caller-save.
13743 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13744 instead of call_used_reg_set for -fuse-caller-save.
13745 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13746
13747 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13748
13749 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13750 to mov_imm.
13751 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13752
13753 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13754
13755 * ira.c (ira_get_dup_out_num): Check for output operands at
13756 the start of the loop. Handle cases where an included alternative
13757 follows an excluded one.
13758
13759 2014-05-29 Mike Stump <mikestump@comcast.net>
13760
13761 PR debug/61352
13762 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13763 post ld passes when lto is used.
13764
13765 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13766
13767 PR rtl-optimization/61325
13768 * lra-constraints.c (process_address): Rename to process_address_1.
13769 (process_address): New function.
13770
13771 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13772
13773 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13774 TYPES_BINOPV): New static data.
13775 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13776 New builtin.
13777 * config/aarch64/aarch64-simd.md (aarch64_ext,
13778 aarch64_im_lane_boundsi): New patterns.
13779 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13780 patterns for EXT.
13781 (aarch64_evpc_ext): New function.
13782
13783 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13784
13785 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13786 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13787 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13788 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13789 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13790
13791 2014-05-29 Tom de Vries <tom@codesourcery.com>
13792
13793 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13794
13795 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13796 Richard Sandiford <rdsandiford@googlemail.com>
13797
13798 * arm/iterators.md (shiftable_ops): New code iterator.
13799 (t2_binop0, arith_shift_insn): New code attributes.
13800 * arm/predicates.md (shift_nomul_operator): New predicate.
13801 * arm/arm.md (insn_enabled): Delete.
13802 (enabled): Remove insn_enabled test.
13803 (*arith_shiftsi): Delete. Replace with ...
13804 (*<arith_shift_insn>_multsi): ... new pattern.
13805 (*<arith_shift_insn>_shiftsi): ... new pattern.
13806 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13807
13808 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13809 Tom de Vries <tom@codesourcery.com>
13810
13811 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13812 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13813 clobber.
13814 (mips_split_call): Use POST_CALL_TMP_REG.
13815 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13816
13817 2014-05-29 Tom de Vries <tom@codesourcery.com>
13818
13819 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13820 with #ifdef STACK_REGS.
13821
13822 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13823
13824 * varasm.c (get_variable_section): Walk aliases.
13825 (place_block_symbol): Walk aliases.
13826
13827 2014-05-28 Tom de Vries <tom@codesourcery.com>
13828
13829 Revert:
13830 2014-05-28 Tom de Vries <tom@codesourcery.com>
13831
13832 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13833 * lra.c (initialize_lra_reg_info_element): Add init of
13834 actual_call_used_reg_set field.
13835 (lra): Call lra_create_live_ranges before lra_inheritance for
13836 -fuse-caller-save.
13837 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13838 -fuse-caller-save.
13839 * lra-constraints.c (need_for_call_save_p): Use
13840 actual_call_used_reg_set instead of call_used_reg_set for
13841 -fuse-caller-save.
13842 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13843
13844 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13845
13846 * doc/md.texi: Document that the % constraint character must
13847 be at the beginning of the string.
13848 * genoutput.c (validate_insn_alternatives): Check that '=',
13849 '+' and '%' only appear at the beginning of a constraint.
13850 * ira.c (commutative_constraint_p): Delete.
13851 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13852 at the start of the string.
13853 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13854 duplicate '='s.
13855 * config/arm/neon.md (bicdi3_neon): Likewise.
13856 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13857 (slt_si, sltu_si): Likewise.
13858 * config/vax/vax.md (sbcdi3): Likewise.
13859 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13860 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13861 (mul64): Move '%' to beginning of constraint.
13862 * config/arm/arm.md (*xordi3_insn): Likewise.
13863 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13864 (xorsi3): Likewise.
13865
13866 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13867
13868 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13869
13870 2014-05-28 Jason Merrill <jason@redhat.com>
13871
13872 PR c++/47202
13873 * cgraph.h (symtab_node::get_comdat_group_id): New.
13874 * cgraphunit.c (analyze_functions): Call it.
13875 * symtab.c (dump_symtab_node): Likewise.
13876 * tree.c (decl_comdat_group_id): New.
13877 * tree.h: Declare it.
13878 * lto-streamer-out.c (write_symbol): Use it.
13879 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13880
13881 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13882
13883 PR bootstrap/PR61146
13884 * wide-int.cc: Do not include longlong.h when compiling with clang.
13885
13886 2014-05-28 Richard Biener <rguenther@suse.de>
13887
13888 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13889 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13890 (vrp_visit_assignment_or_call): Print less vertical space.
13891 (vrp_visit_stmt): Likewise.
13892 (vrp_visit_phi_node): Likewise. For a PHI argument with
13893 VR_VARYING range consider recording it as copy.
13894
13895 2014-05-28 Richard Biener <rguenther@suse.de>
13896
13897 Revert
13898 2014-05-28 Richard Biener <rguenther@suse.de>
13899
13900 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13901
13902 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13903
13904 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13905 sufficiently aligned and an offset is used at the same time.
13906 (expand_expr_real_1): Likewise.
13907
13908 2014-05-28 Richard Biener <rguenther@suse.de>
13909
13910 PR middle-end/61045
13911 * fold-const.c (fold_comparison): When folding
13912 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13913 the sign of the remaining constant operand stays the same.
13914
13915 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13916
13917 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13918 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13919 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13920 to the assembler.
13921 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13922 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13923 (m32bit-doubles) Likewise.
13924 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13925 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13926 option for RL78.
13927
13928 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13929
13930 * configure.ac ($gcc_cv_ld_clearcap): New test.
13931 * configure: Regenerate.
13932 * config.in: Regenerate.
13933 * config/sol2.opt (mclear-hwcap): New option.
13934 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13935 * config/sol2-clearcap.map: Moved here from
13936 testsuite/gcc.target/i386/clearcap.map.
13937 * config/sol2-clearcapv2.map: Move here from
13938 gcc.target/i386/clearcapv2.map.
13939 * config/t-sol2 (install): Depend on install-clearcap-map.
13940 (install-clearcap-map): New target.
13941 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13942 -mclear-hwcap.
13943
13944 2014-05-28 Richard Biener <rguenther@suse.de>
13945
13946 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13947 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
13948 ... here and remove the rest.
13949 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13950
13951 2014-05-28 Richard Biener <rguenther@suse.de>
13952
13953 PR tree-optimization/61335
13954 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
13955 new range fails, drop to varying.
13956
13957 2014-05-28 Olivier Hainque <hainque@adacore.com>
13958
13959 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
13960 (CPP_SPEC): Add entry for -mcpu=8548.
13961 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
13962 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
13963
13964 2014-05-28 Tom de Vries <tom@codesourcery.com>
13965
13966 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13967 * lra.c (initialize_lra_reg_info_element): Add init of
13968 actual_call_used_reg_set field.
13969 (lra): Call lra_create_live_ranges before lra_inheritance for
13970 -fuse-caller-save.
13971 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13972 -fuse-caller-save.
13973 * lra-constraints.c (need_for_call_save_p): Use
13974 actual_call_used_reg_set instead of call_used_reg_set for
13975 -fuse-caller-save.
13976 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13977
13978 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13979 Tom de Vries <tom@codesourcery.com>
13980
13981 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
13982 to gccoptlist.
13983 (@item -fuse-caller-save): New item.
13984
13985 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13986 Tom de Vries <tom@codesourcery.com>
13987
13988 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
13989 OPT_fuse_caller_save.
13990
13991 2014-05-28 Radovan Obradovic <robradovic@mips.com>
13992 Tom de Vries <tom@codesourcery.com>
13993
13994 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
13995 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
13996 get_call_reg_set_usage.
13997 * resource.c (mark_set_resources, mark_target_live_regs): Use
13998 get_call_reg_set_usage.
13999 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14000 field.
14001 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14002 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14003 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14004 * ira-build.c (ira_create_allocno): Init
14005 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14006 (create_cap_allocno, propagate_allocno_info)
14007 (propagate_some_info_from_allocno)
14008 (copy_info_to_removed_store_destinations): Handle
14009 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14010 * ira-costs.c (ira_tune_allocno_costs): Use
14011 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14012
14013 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14014 Tom de Vries <tom@codesourcery.com>
14015
14016 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14017 and function_used_regs_valid fields.
14018 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14019 find_all_hard_reg_sets.
14020 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14021 (get_call_reg_set_usage): New function.
14022 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14023 * regs.h (get_call_reg_set_usage): Declare.
14024
14025 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14026
14027 PR libgcc/61152
14028 * config/dbx.h (License): Add Runtime Library Exception.
14029 * config/newlib-stdint.h (License): Same.
14030 * config/rtems.h (License): Same
14031 * config/initfini-array.h (License): Same
14032 * config/v850/v850.h (License): Same.
14033 * config/v850/v850-opts.h (License): Same
14034 * config/v850/rtems.h (License): Same.
14035
14036 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14037
14038 PR target/61044
14039 * doc/extend.texi (Local Labels): Note that label differences are
14040 not supported for AVR.
14041
14042 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14043 Olivier Hainque <hainque@adacore.com>
14044
14045 * rtl.h (set_for_reg_notes): Declare.
14046 * emit-rtl.c (set_for_reg_notes): New function.
14047 (set_unique_reg_note): Use it.
14048 * optabs.c (add_equal_note): Likewise
14049
14050 2014-05-27 Andrew Pinski <apinski@cavium.com>
14051
14052 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14053 Use <w> for the register in assembly template.
14054 (stack_protect_test): Use the mode of operands[0] for the result.
14055 (stack_protect_test_<mode>): Use <w> for the register
14056 in assembly template.
14057
14058 2014-05-27 DJ Delorie <dj@redhat.com>
14059
14060 * config/rx/rx.c (add_vector_labels): New.
14061 (rx_output_function_prologue): Call it.
14062 (rx_handle_func_attribute): Don't require empty arguments.
14063 (rx_handle_vector_attribute): New.
14064 (rx_attribute_table): Add "vector" attribute.
14065 * doc/extend.texi (interrupt, vector): Document new/changed
14066 RX-specific attributes.
14067
14068 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14069
14070 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14071
14072 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14073 predicate to detect a negative quotient.
14074
14075 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14076
14077 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14078 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14079 Add X - Y CMP 0 to X CMP Y transformation.
14080 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14081
14082 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14083
14084 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14085 before printing.
14086
14087 2014-05-27 Steve Ellcey <sellcey@mips.com>
14088
14089 * config/mips/mips.c: Add include of cgraph.h.
14090
14091 2014-05-27 Richard Biener <rguenther@suse.de>
14092
14093 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14094
14095 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14096
14097 PR libgcc/61152
14098 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14099 * config/arm/arm-cores.def (License): Same.
14100 * config/arm/arm-opts.h (License): Same.
14101 * config/arm/aout.h (License): Same.
14102 * config/arm/bpabi.h (License): Same.
14103 * config/arm/elf.h (License): Same.
14104 * config/arm/linux-elf.h (License): Same.
14105 * config/arm/linux-gas.h (License): Same.
14106 * config/arm/netbsd-elf.h (License): Same.
14107 * config/arm/uclinux-eabi.h (License): Same.
14108 * config/arm/uclinux-elf.h (License): Same.
14109 * config/arm/vxworks.h (License): Same.
14110
14111 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14112
14113 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14114 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14115 (arm_init_neon_builtins): Handle NEON_BSWAP.
14116 Define required type nodes.
14117 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14118 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14119 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14120 * config/arm/iterators.md (VDQHSD): New mode iterator.
14121
14122 2014-05-27 Richard Biener <rguenther@suse.de>
14123
14124 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14125 Try using literal operands when comparing value-ranges failed.
14126
14127 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14128
14129 * ira.c (commutative_operand): Adjust for change to recog_data.
14130 [Missing from previous commit.]
14131
14132 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14133
14134 * system.h (TEST_BIT): New macro.
14135 * recog.h (alternative_mask): New type.
14136 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14137 (recog_data_d): Replace alternative_enabled_p array with
14138 enabled_alternatives.
14139 (target_recog): New structure.
14140 (default_target_recog, this_target_recog): Declare.
14141 (get_enabled_alternatives, recog_init): Likewise.
14142 * recog.c (default_target_recog, this_target_recog): New variables.
14143 (get_enabled_alternatives): New function.
14144 (extract_insn): Use it.
14145 (recog_init): New function.
14146 (preprocess_constraints, constrain_operands): Adjust for change to
14147 recog_data.
14148 * postreload.c (reload_cse_simplify_operands): Likewise.
14149 * reload.c (find_reloads): Likewise.
14150 * ira-costs.c (record_reg_classes): Likewise.
14151 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14152 all alternatives after a disabled one would be skipped.
14153 (ira_implicitly_set_insn_hard_regs): Likewise.
14154 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14155 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14156 with enabled_alternatives.
14157 * lra.c (free_insn_recog_data): Update accordingly.
14158 (lra_update_insn_recog_data): Likewise.
14159 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14160 * lra-constraints.c (process_alt_operands): Likewise. Handle
14161 only_alternative as part of the enabled mask.
14162 * target-globals.h (this_target_recog): Declare.
14163 (target_globals): Add a recog field.
14164 (restore_target_globals): Restore this_target_recog.
14165 * target-globals.c: Include recog.h.
14166 (default_target_globals): Initialize recog field.
14167 (save_target_globals): Likewise.
14168 * reginfo.c (reinit_regs): Call recog_init.
14169 * toplev.c (backend_init_target): Likewise.
14170
14171 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14172
14173 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14174 rather than any named insn's code.
14175
14176 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14177
14178 PR libgcc/61152
14179 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14180 * config/arm/arm-cores.def (License): Same.
14181
14182 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14183
14184 * tree.h (decl_comdat_group): Declare.
14185 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14186 * tree.c (decl_comdat_group): Here.
14187
14188 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14189
14190 PR rtl-optimization/61222
14191 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14192 the shift, truncate the PLUS operand to the result mode.
14193
14194 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14195
14196 PR target/61271
14197 * config/i386/i386.c (ix86_rtx_costs)
14198 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14199 Fix condition.
14200
14201 2014-05-26 Martin Jambor <mjambor@suse.cz>
14202
14203 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14204 subreg uses.
14205
14206 2014-05-26 Richard Biener <rguenther@suse.de>
14207
14208 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14209 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14210 Provide specializations.
14211 (wi::int_traits <HOST_WIDE_INT>,
14212 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14213
14214 2014-05-26 Alan Modra <amodra@gmail.com>
14215
14216 PR target/61098
14217 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14218 params and return a bool. Remove dead code. Update comment.
14219 Assert we have a const_int source. Remove bogus code from
14220 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14221 handling of constants > 2G and reg_equal note, from..
14222 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14223 return value. Update comment. If we can, use a new pseudo
14224 for intermediate calculations.
14225 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14226 prototype.
14227 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14228 call to rs6000_emit_set_const in splitter.
14229 (movdi_internal64+2, +3): Likewise.
14230
14231 2014-05-26 Richard Biener <rguenther@suse.de>
14232
14233 * system.h: Define __STDC_FORMAT_MACROS before
14234 including inttypes.h.
14235 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14236 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14237 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14238 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14239 HOST_WIDEST_INT_C): Remove.
14240 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14241 if C99 inttypes.h is not available.
14242 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14243 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14244 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14245 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14246 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14247 (struct output_info): Likewise.
14248 (print_statistics): Adjust.
14249 (dump_bitmap_statistics): Likewise.
14250 * bt-load.c (migrate_btr_defs): Print with PRId64.
14251 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14252 (MAX_SAFE_MULTIPLIER): Adjust.
14253 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14254 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14255 dump_cgraph_node): Likewise.
14256 * final.c (dump_basic_block_info): Likewise.
14257 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14258 * gcov.c (format_gcov): Likewise.
14259 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14260 for calculation.
14261 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14262 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14263 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14264 Use PRId64 for dumping.
14265 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14266 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14267 (add_allocno_hard_regs): Adjust.
14268 * loop-doloop.c (doloop_modify): Print using PRId64.
14269 * loop-iv.c (inverse): Compute in uint64_t.
14270 (determine_max_iter, iv_number_of_iterations): Likewise.
14271 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14272 Print using PRId64.
14273 * lto-streamer-out.c (write_symbol): Use uint64_t.
14274 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14275 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14276 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14277 * modulo-sched.c (const_iteration_count): Use int64_t.
14278 (sms_schedule): Dump using PRId64.
14279 * predict.c (dump_prediction): Likewise.
14280 * pretty-print.h (pp_widest_integer): Remove.
14281 * profile.c (get_working_sets, is_edge_inconsistent,
14282 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14283 * tree-pretty-print.c (pp_double_int): Remove case handling
14284 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14285 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14286 and adjust users.
14287 (pass_optimize_bswap::execute): Remove restriction on hosts.
14288 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14289 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14290 * tree.c (widest_int_cst_value): Remove.
14291 * tree.h (widest_int_cst_value): Likewise.
14292 * value-prof.c (dump_histogram_value): Print using PRId64.
14293 * gengtype.c (main): Also inject int64_t.
14294 * ggc-page.c (struct max_alignment): Use int64_t.
14295 * alloc-pool.c (struct allocation_object_def): Likewise.
14296 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14297 for computation.
14298 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14299 * doc/tm.texi: Regenerated.
14300 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14301 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14302 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14303 mmix_output_register_setting): Use [u]int64_t in prototypes.
14304 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14305 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14306 mmix_output_octa, mmix_output_shifted_value): Adjust.
14307 (mmix_intval): Adjust. Remove unreachable case.
14308 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14309
14310 2014-05-26 Richard Biener <rguenther@suse.de>
14311
14312 * configure.ac: Drop __int64 type check. Insist that we
14313 found uint64_t and int64_t.
14314 * hwint.h (HOST_BITS_PER___INT64): Remove.
14315 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14316 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14317 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14318 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14319 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14320 for dst_q_src_df_rms_cdt.
14321 * configure: Regenerate.
14322 * config.in: Likewise.
14323
14324 2014-05-26 Michael Tautschnig <mt@debian.org>
14325
14326 PR target/61249
14327 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14328 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14329
14330 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14331
14332 PR rtl-optimization/61278
14333 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14334
14335 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14336
14337 PR rtl-optimization/61220
14338 Part of PR rtl-optimization/61225
14339 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14340 insn; skip split_edge for a block with only one successor.
14341
14342 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14343
14344 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14345 for variables.
14346
14347 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14348
14349 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14350 (update_vtable_references): New function.
14351 (function_and_variable_visibility): Rewrite also vtable initializers.
14352 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14353
14354 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14355
14356 * ggc.h (ggc_grow): New function.
14357 * ggc-none.c (ggc_grow): New function.
14358 * ggc-page.c (ggc_grow): Likewise.
14359
14360 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14361
14362 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14363 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14364 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14365 varpool_externally_visible_p, can_replace_by_local_alias,
14366 update_visibility_by_resolution_info, function_and_variable_visibility,
14367 pass_data_ipa_function_and_variable_visibility,
14368 make_pass_ipa_function_and_variable_visibility,
14369 whole_program_function_and_variable_visibility,
14370 pass_data_ipa_whole_program_visibility,
14371 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14372 * cgraph.h (cgraph_local_node_p): Declare.
14373 * ipa-visibility.c: New file.
14374 * Makefile.in (OBJS): Add ipa-visiblity.o
14375
14376 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14377
14378 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14379 that var decl is available.
14380
14381 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14382
14383 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14384 symtab_node pointer.
14385 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14386 (find_decls_types_r): Do not walk COMDAT_GROUP.
14387 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14388 * varasm.c (make_decl_one_only): Use set_comdat_group;
14389 create node if needed.
14390 * ipa-inline-transform.c (save_inline_function_body): Update
14391 way we decl->symtab mapping.
14392 * symtab.c (symtab_hash, hash_node, eq_node
14393 symtab_insert_node_to_hashtable): Remove.
14394 (symtab_register_node): Update.
14395 (symtab_unregister_node): Update.
14396 (symtab_get_node): Reimplement as inline function.
14397 (symtab_add_to_same_comdat_group): Update.
14398 (symtab_dissolve_same_comdat_group_list): Update.
14399 (dump_symtab_base): Update.
14400 (verify_symtab_base): Update.
14401 (symtab_make_decl_local): Update.
14402 (fixup_same_cpp_alias_visibility): Update.
14403 (symtab_nonoverwritable_alias): Update.
14404 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14405 * ipa.c (update_visibility_by_resolution_info): UPdate.
14406 * bb-reorder.c: Include cgraph.h
14407 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14408 with comdat groups.
14409 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14410 * cgraph.c (cgraph_get_create_node): Update.
14411 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14412 and comdat_group_.
14413 (symtab_get_node): Make inline.
14414 (symtab_insert_node_to_hashtable): Remove.
14415 (symtab_can_be_discarded): Update.
14416 (decl_comdat_group): New function.
14417 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14418 Update.
14419 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14420 comdat group name.
14421 (read_comdat_group): New function.
14422 (input_node, input_varpool_node): Use it.
14423 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14424 comdat groups.
14425 * mips.c (mips_start_unique_function): Likewise.
14426 (ix86_code_end): Likewise.
14427 (rs6000_code_end): Likweise.
14428 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14429
14430 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14431
14432 * gengtype-state.c (fatal_reading_state): Bring offline.
14433 * optabs.c (widening_optab_handler): Bring offline.
14434 * optabs.h (widening_optab_handler): Likewise.
14435 * final.c (get_attr_length_1): Likewise.
14436
14437 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14438
14439 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14440
14441 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14442
14443 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14444 (ppc440-compare): Include shift with dot.
14445 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14446 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14447 without dot.
14448 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14449 without dot.
14450 (e6500_sfx2): Include it.
14451 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14452 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14453 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14454 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14455 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14456 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14457 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14458 *lshiftrt_internal1le, *lshiftrt_internal1be,
14459 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14460 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14461 *rotldi3_internal10le, *rotldi3_internal10be,
14462 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14463 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14464 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14465 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14466 define_insns): Use type "shift" in the appropriate alternatives.
14467
14468 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14469
14470 * config/rs6000/rs6000.md (type): Add "logical". Delete
14471 "fast_compare".
14472 (dot): Adjust comment.
14473 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14474 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14475 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14476 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14477 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14478 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14479 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14480 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14481
14482 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14483 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14484 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14485 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14486 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14487 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14488 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14489 * config/rs6000/8540.md (ppc8540_su): Adjust.
14490 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14491 cell-cmp-microcoded): Adjust.
14492 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14493 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14494 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14495 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14496 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14497 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14498 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14499 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14500 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14501 Adjust.
14502 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14503 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14504 Adjust. Adjust comment.
14505 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14506 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14507
14508 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14509
14510 * config/rs6000/rs6000.md (type): Add "add".
14511 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14512 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14513 define_insns): Use it.
14514 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14515
14516 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14517 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14518 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14519 * config/rs6000/601.md (ppc601-integer): Adjust.
14520 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14521 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14522 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14523 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14524 * config/rs6000/8540.md (ppc8540_su): Adjust.
14525 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14526 cell-cmp-microcoded): Adjust.
14527 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14528 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14529 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14530 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14531 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14532 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14533 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14534 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14535 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14536 Adjust.
14537 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14538 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14539 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14540 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14541
14542 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14543
14544 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14545 "delayed_compare", "var_delayed_compare".
14546 (var_shift): New attribute.
14547 (cell_micro): Adjust.
14548 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14549 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14550 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14551 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14552 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14553 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14554 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14555 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14556 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14557 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14558 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14559 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14560 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14561 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14562 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14563 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14564 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14565 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14566 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14567 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14568 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14569 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14570 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14571 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14572 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14573
14574 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14575 * config/rs6000/440.md (ppc440-integer): Adjust.
14576 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14577 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14578 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14579 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14580 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14581 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14582 * config/rs6000/8540.md (ppc8540_su): Adjust.
14583 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14584 cell-cmp-microcoded): Adjust.
14585 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14586 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14587 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14588 e500mc64_delayed): Adjust.
14589 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14590 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14591 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14592 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14593 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14594 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14595 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14596 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14597 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14598 Adjust comment.
14599 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14600 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14601
14602 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14603
14604 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14605 (bits): New mode_attr.
14606 (idiv_ldiv): Delete mode_attr.
14607 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14608 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14609 rs6000_adjust_priority, is_nonpipeline_insn,
14610 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14611
14612 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14613 * config/rs6000/440.md (ppc440-idiv): Adjust.
14614 * config/rs6000/476.md (ppc476-idiv): Adjust.
14615 * config/rs6000/601.md (ppc601-idiv): Adjust.
14616 * config/rs6000/603.md (ppc603-idiv): Adjust.
14617 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14618 ppc620-ldiv): Adjust.
14619 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14620 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14621 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14622 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14623 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14624 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14625 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14626 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14627 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14628 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14629 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14630 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14631 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14632 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14633 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14634 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14635 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14636 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14637
14638 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14639
14640 * config/rs6000/rs6000.md (type): Delete "insert_word",
14641 "insert_dword". Add "insert".
14642 (size): Update comment.
14643 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14644 insn_must_be_first_in_group): Adjust.
14645 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14646 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14647 *insvsi_internal6, insvdi_internal): Adjust.
14648
14649 * config/rs6000/40x.md (ppc403-integer): Adjust.
14650 * config/rs6000/440.md (ppc440-integer): Adjust.
14651 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14652 * config/rs6000/601.md (ppc601-integer): Adjust.
14653 * config/rs6000/603.md (ppc603-integer): Adjust.
14654 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14655 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14656 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14657 * config/rs6000/8540.md (ppc8540_su): Adjust.
14658 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14659 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14660 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14661 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14662 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14663 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14664 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14665 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14666 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14667 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14668 * config/rs6000/power7.md (power7-integer): Adjust.
14669 * config/rs6000/power8.md (power8-1cyc): Adjust.
14670 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14671 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14672
14673 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14674
14675 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14676 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14677 (size): New attribute.
14678 (dot): New attribute.
14679 (cell_micro): Adjust.
14680 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14681 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14682 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14683 umuldi3_highpart): Adjust.
14684 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14685 rs6000_adjust_priority, is_nonpipeline_insn,
14686 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14687
14688 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14689 ppc405-imul3): Adjust.
14690 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14691 * config/rs6000/476.md (ppc476-imul): Adjust.
14692 * config/rs6000/601.md (ppc601-imul): Adjust.
14693 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14694 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14695 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14696 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14697 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14698 Adjust.
14699 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14700 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14701 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14702 cell-imul): Adjust.
14703 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14704 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14705 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14706 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14707 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14708 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14709 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14710 power4-lmul, power4-imul, power4-imul3): Adjust.
14711 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14712 power5-lmul, power5-imul, power5-imul3): Adjust.
14713 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14714 power6-lmul, power6-imul, power6-imul3): Adjust.
14715 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14716 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14717
14718 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14719 rs64a-lmul): Adjust.
14720 * config/rs6000/titan.md (titan_imul): Adjust.
14721
14722 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14723
14724 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14725 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14726 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14727 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14728 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14729 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14730 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14731 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14732 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14733 * config/rs6000/titan.md: Delete nonsensical comment.
14734 (titan_imul): Add type imul3.
14735 (titan_mulhw): Remove type imul3; add type halfmul.
14736
14737 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14738
14739 * config/rs6000/rs6000.md (type): Reorder, reformat.
14740
14741 2014-05-23 Martin Jambor <mjambor@suse.cz>
14742
14743 PR tree-optimization/53787
14744 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14745 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14746 analysis_done, update all uses.
14747 * ipa-prop.c: Include domwalk.h
14748 (param_analysis_info): Removed.
14749 (param_aa_status): New type.
14750 (ipa_bb_info): Likewise.
14751 (func_body_info): Likewise.
14752 (ipa_get_bb_info): New function.
14753 (aa_overwalked): Likewise.
14754 (find_dominating_aa_status): Likewise.
14755 (parm_bb_aa_status_for_bb): Likewise.
14756 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14757 (load_from_unmodified_param): Accept func_body_info as a parameter
14758 instead of parms_ainfo.
14759 (parm_ref_data_preserved_p): Changed to use new param AA info.
14760 (parm_ref_data_pass_through_p): Likewise.
14761 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14762 (compute_complex_assign_jump_func): Changed to use new param AA info.
14763 (compute_complex_ancestor_jump_func): Likewise.
14764 (ipa_compute_jump_functions_for_edge): Likewise.
14765 (ipa_compute_jump_functions): Removed.
14766 (ipa_compute_jump_functions_for_bb): New function.
14767 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14768 declarations down.
14769 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14770 and info, moved variable declarations down.
14771 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14772 node and info.
14773 (ipa_analyze_stmt_uses): Likewise.
14774 (ipa_analyze_params_uses): Removed.
14775 (ipa_analyze_params_uses_in_bb): New function.
14776 (ipa_analyze_controlled_uses): Likewise.
14777 (free_ipa_bb_info): Likewise.
14778 (analysis_dom_walker): New class.
14779 (ipa_analyze_node): Handle node-specific forbidden analysis,
14780 initialize and free func_body_info, use dominator walker.
14781 (ipcp_modif_dom_walker): New class.
14782 (ipcp_transform_function): Create and free func_body_info, use
14783 ipcp_modif_dom_walker, moved a lot of functionality there.
14784
14785 2014-05-23 Marek Polacek <polacek@redhat.com>
14786 Jakub Jelinek <jakub@redhat.com>
14787
14788 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14789 * gcc.c (sanitize_spec_function): Likewise.
14790 * convert.c (convert_to_integer): Include "ubsan.h". Add
14791 floating-point to integer instrumentation.
14792 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14793 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14794 SANITIZE_NONDEFAULT.
14795 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14796 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14797 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14798 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14799 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14800 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14801 float/double/long double.
14802 (ubsan_instrument_float_cast): New function.
14803 * ubsan.h (ubsan_instrument_float_cast): Declare.
14804
14805 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14806
14807 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14808 predicate.
14809 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14810 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14811 Adjust for tailcalling through registers.
14812 * config/aarch64/aarch64.h (enum reg_class): New caller save
14813 register class.
14814 (REG_CLASS_NAMES): Likewise.
14815 (REG_CLASS_CONTENTS): Likewise.
14816 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14817 Allow tailcalling without decls.
14818
14819 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14820
14821 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14822 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14823
14824 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14825 gsi, and variables v_* to v*.
14826
14827 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14828
14829 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14830
14831 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14832
14833 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14834 * omp-low.c: Update accordingly.
14835
14836 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14837 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14838 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14839 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14840 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14841 GF_OMP_TARGET_KIND_UPDATE.
14842
14843 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14844 Explicitly enumerate the expected region types.
14845
14846 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14847
14848 PR other/56955
14849 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14850 documentation; the old documentation didn't clearly state the
14851 constraints on the contents of the pointed-to storage.
14852
14853 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14854
14855 Fix bootstrap error on ia64
14856 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14857 Return default value.
14858
14859 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14860
14861 PR tree-optimization/54733
14862 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14863 (CMPNOP): Define.
14864 (find_bswap_or_nop_load): New.
14865 (find_bswap_1): Renamed to ...
14866 (find_bswap_or_nop_1): This. Also add support for memory source.
14867 (find_bswap): Renamed to ...
14868 (find_bswap_or_nop): This. Also add support for memory source and
14869 detection of bitwise operations equivalent to load in target
14870 endianness.
14871 (execute_optimize_bswap): Likewise. Also move its leading comment back
14872 in place and split statement transformation into ...
14873 (bswap_replace): This.
14874
14875 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14876
14877 PR rtl-optimization/61215
14878 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14879 simplify_gen_subreg until final substitution.
14880
14881 2014-05-23 Alan Modra <amodra@gmail.com>
14882
14883 PR target/61231
14884 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14885 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14886 Use "Y" constraint rather than "m".
14887
14888 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14889
14890 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14891 define.
14892 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14893 New function declaration.
14894 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14895 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14896 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14897 (aarch64_init_builtins) : Initialize builtins
14898 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14899 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14900 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14901 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14902 and __builtins_aarch64_set_fpsr.
14903 (aarch64_atomic_assign_expand_fenv): New function.
14904 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14905 (get_fpcr) : Likewise.
14906 (set_fpsr) : Likewise.
14907 (get_fpsr) : Likewise.
14908 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14909 and UNSPECV_SET_FPSR.
14910 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14911 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14912 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14913
14914 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14915
14916 PR rtl-optimization/60969
14917 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14918 constraints. Set up mem cost for NO_REGS case.
14919
14920 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14921
14922 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14923
14924 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14925
14926 * config/darwin.c: Include "lto-section-names.h".
14927 (LTO_SEGMENT_NAME): Don't define.
14928 * config/i386/winnt.c: Include "lto-section-names.h".
14929 * lto-streamer.c: Include "lto-section-names.h".
14930 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14931 * lto-wrapper.c: Include "lto-section-names.h".
14932 (LTO_SECTION_NAME_PREFIX): Don't define.
14933 * lto-section-names.h: New file.
14934 * cgraphunit.c: Include "lto-section-names.h".
14935
14936 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14937
14938 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14939
14940 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14941
14942 PR target/61208
14943 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14944
14945 2014-05-22 Nick Clifton <nickc@redhat.com>
14946
14947 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
14948
14949 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
14950
14951 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
14952 -> (T)A transformation to integer types.
14953
14954 2014-05-22 Teresa Johnson <tejohnson@google.com>
14955
14956 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
14957 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
14958 (gcov_rewrite): Use gcov_nonruntime_assert.
14959 (gcov_open): Ditto.
14960 (gcov_write_words): Ditto.
14961 (gcov_write_length): Ditto.
14962 (gcov_read_words): Use gcov_nonruntime_assert, and remove
14963 gcc_assert from IN_LIBGCOV code.
14964 (gcov_read_summary): Use gcov_error to flag profile corruption.
14965 (gcov_sync): Use gcov_nonruntime_assert.
14966 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
14967 (gcov_histo_index): Use gcov_nonruntime_assert.
14968 (static void gcov_histogram_merge): Ditto.
14969 (compute_working_sets): Ditto.
14970 * gcov-io.h (gcov_nonruntime_assert): Define.
14971 (gcov_error): Define for !IN_LIBGCOV
14972
14973 2014-05-22 Richard Biener <rguenther@suse.de>
14974
14975 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14976 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
14977 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
14978 and deallocation site.
14979 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14980 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
14981 passing through the incoming points-to set.
14982 (handle_lhs_call): Use flags argument instead of recomputing it.
14983 (find_func_aliases_for_call): Call handle_lhs_call with proper
14984 call return flags.
14985
14986 2014-05-22 Jakub Jelinek <jakub@redhat.com>
14987
14988 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
14989 all padding bits in REAL_VALUE_TYPE are cleared.
14990
14991 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14992
14993 Cleanup and improve multipass_dfa_lookahead_guard
14994 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
14995 (core2i7_first_cycle_multipass_begin,)
14996 (core2i7_first_cycle_multipass_issue,)
14997 (core2i7_first_cycle_multipass_backtrack): Update signature.
14998 * config/ia64/ia64.c
14999 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15000 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15001 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15002 hook definition.
15003 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15004 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15005 values.
15006 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15007 return values.
15008 * doc/tm.texi: Regenerate.
15009 * doc/tm.texi.in
15010 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15011 * haifa-sched.c (ready_try): Make signed to allow negative values.
15012 (rebug_ready_list_1): Update.
15013 (choose_ready): Simplify.
15014 (sched_extend_ready_list): Update.
15015
15016 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15017
15018 Remove IA64 speculation tweaking flags
15019 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15020 speculation tuning flags.
15021 (msched-prefer-non-data-spec-insns,)
15022 (msched-prefer-non-control-spec-insns): Obsolete options.
15023 * haifa-sched.c (choose_ready): Remove handling of
15024 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15025 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15026 and PREFER_NON_DATA_SPEC.
15027 * sel-sched.c (process_spec_exprs): Remove handling of
15028 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15029
15030 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15031
15032 Improve scheduling debug output
15033 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15034 (advance_one_cycle): Update.
15035 (schedule_insn, queue_to_ready): Add debug printouts.
15036 (debug_ready_list_1): New static function.
15037 (debug_ready_list): Update.
15038 (max_issue): Add debug printouts.
15039 (dump_insn_stream): New static function.
15040 (schedule_block): Use it. Also better indent printouts.
15041
15042 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15043
15044 Fix sched_insn debug counter
15045 * haifa-sched.c (schedule_insn): Update.
15046 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15047 (save_backtrack_point, restore_backtrack_point): Update.
15048 (first_nonscheduled_insn): New static function.
15049 (queue_to_ready, choose_ready): Use it.
15050 (schedule_block): Init nonscheduled_insns_begin.
15051 (sched_emit_insn): Update.
15052
15053
15054 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15055
15056 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15057 to GENERAL_REGS.
15058 (aarch64_secondary_reload) : LikeWise.
15059 (aarch64_class_max_nregs) : Remove CORE_REGS.
15060 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15061 (REG_CLASS_NAMES) : Likewise.
15062 (REG_CLASS_CONTENTS) : LikeWise.
15063 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15064
15065 2014-05-21 Guozhi Wei <carrot@google.com>
15066
15067 PR target/61202
15068 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15069 constraint.
15070 (vqdmulhq_n_s16): Likewise.
15071
15072 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15073
15074 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15075
15076 2014-05-21 Marek Polacek <polacek@redhat.com>
15077
15078 PR sanitizer/61272
15079 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15080
15081 2014-05-21 Martin Jambor <mjambor@suse.cz>
15082
15083 * doc/invoke.texi (Optimize Options): Document parameters
15084 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15085 ipa-cp-array-index-hint-bonus.
15086
15087 2014-05-21 Mark Wielaard <mjw@redhat.com>
15088
15089 PR debug/16063
15090 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15091 version >= 3 or not strict DWARF.
15092 * langhooks.h (struct lang_hooks_for_types): Add
15093 enum_underlying_base_type.
15094 * langhooks.c (lhd_enum_underlying_base_type): New function.
15095 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15096 enum_underlying_base_type.
15097 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15098 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15099 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15100
15101 2014-05-21 Richard Biener <rguenther@suse.de>
15102
15103 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15104
15105 2014-05-21 John Marino <gnugcc@marino.st>
15106
15107 * config.gcc (*-*-dragonfly*): New target.
15108 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15109 * configure: Regenerate.
15110 * config/dragonfly-stdint.h: New.
15111 * config/dragonfly.h: New.
15112 * config/dragonfly.opt: New.
15113 * config/i386/dragonfly.h: New.
15114 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15115
15116 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15117
15118 * tree.def (VOID_CST): New.
15119 * tree-core.h (TI_VOID): New.
15120 * tree.h (void_node): New.
15121 * tree.c (tree_node_structure_for_code, tree_code_size)
15122 (iterative_hash_expr): Handle VOID_CST.
15123 (build_common_tree_nodes): Initialize void_node.
15124
15125 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15126
15127 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15128 functions.
15129 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15130
15131 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15132 more places.
15133
15134 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15135 flag_reorder_blocks_and_partition.
15136 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15137
15138 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15139
15140 PR target/54236
15141 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15142 constraints.
15143 (*addc_r_t): Add new insn_and_split.
15144
15145 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15146
15147 PR middle-end/61252
15148 * omp-low.c (handle_simd_reference): New function.
15149 (lower_rec_input_clauses): Use it. Defer adding reference
15150 initialization even for reduction without placeholder if in simd,
15151 handle it properly later on.
15152
15153 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15154
15155 PR tree-optimization/60899
15156 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15157 assume all static symbols will have definition wile parsing and
15158 check the do have definition later in compilation; check that
15159 variable referring symbol will be output before concluding that
15160 reference is safe; be conservative for referring local statics;
15161 be more precise about when comdat is output in other partition.
15162
15163 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15164
15165 PR bootstrap/60984
15166 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15167 parameter.
15168 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15169 (ipa_inline): Loop inline_to_all_callers until no more aliases
15170 are removed.
15171
15172 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15173
15174 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15175 set writeonly flag only for vars actually written to.
15176
15177 2014-05-20 Dehao Chen <dehao@google.com>
15178
15179 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15180 and callee count to get clone count.
15181 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15182 count in copy_body.
15183
15184 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15185
15186 PR rtl-optimization/61243
15187 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15188
15189 2014-05-20 Xinliang David Li <davidxl@google.com>
15190
15191 * cgraphunit.c (walk_polymorphic_call_targets): Add
15192 dbgcnt and fopt-info support.
15193 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15194 * ipa-devirt.c (ipa_devirt): Ditto.
15195 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15196 * ipa.c (walk_polymorphic_call_targets): Ditto.
15197 * gimple-fold.c (fold_gimple_assign): Ditto.
15198 (gimple_fold_call): Ditto.
15199 * dbgcnt.def: New counter.
15200
15201 2014-05-20 DJ Delorie <dj@redhat.com>
15202
15203 * config/msp430/msp430.md (split): Don't allow subregs when
15204 splitting SImode adds.
15205 (andneghi): Fix subtraction logic.
15206 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15207
15208 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15209
15210 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15211 symbols.
15212 * except.c (switch_to_exception_section, resolve_unique_section,
15213 get_named_text_section, default_function_rodata_section,
15214 align_variable, get_block_for_decl, default_section_type_flags):
15215 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15216 * symtab.c (symtab_add_to_same_comdat_group,
15217 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15218 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15219 Likewise.
15220 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15221 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15222 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15223 (c6x_function_in_section_p): Likewise.
15224 * config/darwin.c (machopic_select_section): Likewise.
15225 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15226 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15227 * config/mep/mep.c (mep_select_section): LIkewise.
15228 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15229
15230 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15231
15232 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15233 EH region of calls to pure functions that can throw an exception.
15234 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15235 (copy_reference_ops_from_call): Also copy the EH region of the call if
15236 it can throw an exception.
15237
15238 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15239
15240 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15241 nested VEC_SELECTs that are inverses of each other.
15242
15243 2014-05-20 Richard Biener <rguenther@suse.de>
15244
15245 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15246 (extract_and_process_scc_for_name): not here.
15247 (cond_dom_walker::before_dom_children): Only process
15248 stmts that end the BB in interesting ways.
15249 (run_scc_vn): Mark param uses as visited.
15250
15251 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15252
15253 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15254 arm_restrict_it.
15255
15256 2014-05-20 Nick Clifton <nickc@redhat.com>
15257
15258 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15259 (msp430_gimplify_va_arg_expr): New function.
15260 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15261
15262 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15263 operand 0 in order to prevent confusion about the number of
15264 registers involved.
15265
15266 2014-05-20 Richard Biener <rguenther@suse.de>
15267
15268 PR tree-optimization/61221
15269 * tree-ssa-pre.c (el_to_update): Remove.
15270 (eliminate_dom_walker::before_dom_children): Handle released
15271 VDEFs by value-numbering them to the associated VUSE. Update
15272 stmt immediately for substituted call address.
15273 (eliminate): Remove delayed stmt updating code.
15274 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15275 possibly late re-numbered vuses.
15276 (vn_reference_lookup_2): Adjust.
15277 (vn_reference_lookup_pieces): Likewise.
15278 (vn_reference_lookup): Likewise.
15279
15280 2014-05-20 Richard Biener <rguenther@suse.de>
15281
15282 * config.gcc: Remove need_64bit_hwint.
15283 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15284 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15285 it to be true.
15286 * config.in: Regenerate.
15287 * configure: Likewise.
15288
15289 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15290
15291 * doc/extend.texi: Create Label Attributes section,
15292 move all label attributes into it and reference it.
15293
15294 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15295
15296 * arm.c (thumb1_reorg): When scanning backwards skip anything
15297 that's not a proper insn.
15298
15299 2014-05-19 Richard Biener <rguenther@suse.de>
15300
15301 PR tree-optimization/61221
15302 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15303 Do nothing for unreachable blocks.
15304 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15305 Improve unreachability detection.
15306
15307 2014-05-19 Richard Biener <rguenther@suse.de>
15308
15309 PR tree-optimization/61209
15310 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15311
15312 2014-05-19 Nick Clifton <nickc@redhat.com>
15313
15314 * except.c (init_eh): Fix computation of builtin setjmp buffer
15315 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15316
15317 2014-05-19 Richard Biener <rguenther@suse.de>
15318
15319 PR tree-optimization/61184
15320 * tree-vrp.c (is_negative_overflow_infinity): Use
15321 TREE_OVERFLOW_P and do that check first.
15322 (is_positive_overflow_infinity): Likewise.
15323 (is_overflow_infinity): Likewise.
15324 (vrp_operand_equal_p): Properly treat operands with
15325 differing overflow as not equal.
15326
15327 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15328
15329 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15330 shift simplification where it was intended.
15331
15332 2014-05-19 Christian Bruel <christian.bruel@st.com>
15333
15334 PR target/61195
15335 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15336
15337 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15338
15339 PR target/61084
15340 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15341 than wide_int.
15342
15343 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15344
15345 * reg-notes.def (CROSSING_JUMP): Likewise.
15346 * rtl.h (rtx_def): Update comment for jump flag.
15347 (CROSSING_JUMP_P): Define.
15348 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15349 of a REG_CROSSING_JUMP note.
15350 * cfghooks.c (tidy_fallthru_edges): Likewise.
15351 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15352 * emit-rtl.c (try_split): Likewise.
15353 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15354 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15355 * jump.c (redirect_jump_2): Likewise.
15356 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15357 (relax_delay_slots): Likewise.
15358 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15359 (bbit_di): Likewise.
15360 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15361 * config/sh/sh.md (jump_compact): Likewise.
15362 * bb-reorder.c (rotate_loop): Likewise.
15363 (pass_duplicate_computed_gotos::execute): Likewise.
15364 (add_reg_crossing_jump_notes): Rename to...
15365 (update_crossing_jump_flags): ...this.
15366 (pass_partition_blocks::execute): Update accordingly.
15367
15368 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15369
15370 * tree.h: Remove extraneous template <>.
15371
15372 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15373
15374 * ipa.c (symtab_remove_unreachable_nodes): Remove
15375 symbol from comdat group if its body was eliminated.
15376 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15377 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15378 (symtab_unregister_node): ... this one.
15379 (verify_symtab_base): More strict checking of comdats.
15380 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15381
15382 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15383
15384 * tree-pass.h (make_pass_ipa_comdats): New pass.
15385 * timevar.def (TV_IPA_COMDATS): New timevar.
15386 * passes.def (pass_ipa_comdats): Add.
15387 * Makefile.in (OBJS): Add ipa-comdats.o
15388 * ipa-comdats.c: New file.
15389
15390 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15391
15392 * ipa.c (update_visibility_by_resolution_info): New function.
15393 (function_and_variable_visibility): Use it.
15394
15395 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15396
15397 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15398 New functions.
15399 (FOR_EACH_DEFINED_SYMBOL): New macro.
15400 (varpool_first_static_initializer, varpool_next_static_initializer,
15401 varpool_first_defined_variable, varpool_next_defined_variable):
15402 Fix comments.
15403 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15404
15405 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15406
15407 * ggc-page.c (ggc_handle_finalizers): Add comment.
15408
15409 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15410
15411 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15412 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15413 (ggc_internal_cleared_alloc): Likewise.
15414 * ggc-page.c (finalizer): New class.
15415 (vec_finalizer): Likewise.
15416 (globals::finalizers): New member.
15417 (globals::vec_finalizers): Likewise.
15418 (ggc_internal_alloc): Record the finalizer if any for the block being
15419 allocated.
15420 (ggc_handle_finalizers): New function.
15421 (ggc_collect): Call ggc_handle_finalizers.
15422 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15423 finalizer.
15424 (ggc_internal_cleared_alloc): Likewise.
15425 (finalize): New function.
15426 (need_finalization_p): Likewise.
15427 (ggc_alloc): Install the type's destructor as the finalizer if it
15428 might do something.
15429 (ggc_cleared_alloc): Likewise.
15430 (ggc_vec_alloc): Likewise.
15431 (ggc_cleared_vec_alloc): Likewise.
15432
15433 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15434
15435 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15436
15437 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15438
15439 * alias.c (record_alias_subset): Adjust.
15440 * bitmap.c (bitmap_element_allocate): Likewise.
15441 (bitmap_gc_alloc_stat): Likewise.
15442 * cfg.c (init_flow): Likewise.
15443 (alloc_block): Likewise.
15444 (unchecked_make_edge): Likewise.
15445 * cfgloop.c (alloc_loop): Likewise.
15446 (flow_loops_find): Likewise.
15447 (rescan_loop_exit): Likewise.
15448 * cfgrtl.c (init_rtl_bb_info): Likewise.
15449 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15450 (cgraph_allocate_node): Likewise.
15451 (cgraph_create_edge_1): Likewise.
15452 (cgraph_allocate_init_indirect_info): Likewise.
15453 * cgraphclones.c (cgraph_clone_edge): Likewise.
15454 * cgraphunit.c (add_asm_node): Likewise.
15455 (init_lowered_empty_function): Likewise.
15456 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15457 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15458 (alpha_use_linkage): Likewise.
15459 * config/arc/arc.c (arc_init_machine_status): Likewise.
15460 * config/arm/arm.c (arm_init_machine_status): Likewise.
15461 * config/avr/avr.c (avr_init_machine_status): Likewise.
15462 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15463 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15464 * config/cris/cris.c (cris_init_machine_status): Likewise.
15465 * config/darwin.c (machopic_indirection_name): Likewise.
15466 (darwin_build_constant_cfstring): Likewise.
15467 (darwin_enter_string_into_cfstring_table): Likewise.
15468 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15469 * config/frv/frv.c (frv_init_machine_status): Likewise.
15470 * config/i386/i386.c (get_dllimport_decl): Likewise.
15471 (ix86_init_machine_status): Likewise.
15472 (assign_386_stack_local): Likewise.
15473 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15474 (i386_pe_maybe_record_exported_symbol): Likewise.
15475 (i386_pe_record_stub): Likewise.
15476 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15477 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15478 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15479 (m32c_note_pragma_address): Likewise.
15480 * config/mep/mep.c (mep_init_machine_status): Likewise.
15481 (mep_note_pragma_flag): Likewise.
15482 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15483 (mips16_local_alias): Likewise.
15484 (mips_init_machine_status): Likewise.
15485 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15486 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15487 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15488 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15489 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15490 * config/pa/pa.c (pa_init_machine_status): Likewise.
15491 (pa_get_deferred_plabel): Likewise.
15492 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15493 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15494 (rs6000_init_machine_status): Likewise.
15495 (output_toc): Likewise.
15496 * config/s390/s390.c (s390_init_machine_status): Likewise.
15497 * config/score/score.c (score_output_external): Likewise.
15498 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15499 * config/spu/spu.c (spu_init_machine_status): Likewise.
15500 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15501 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15502 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15503 * coverage.c (coverage_end_function): Likewise.
15504 * dbxout.c (dbxout_init): Likewise.
15505 * doc/gty.texi: Don't mention variable_size attribute.
15506 * dwarf2cfi.c (new_cfi): Adjust.
15507 (new_cfi_row): Likewise.
15508 (copy_cfi_row): Likewise.
15509 (create_cie_data): Likewise.
15510 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15511 (new_loc_descr): Likewise.
15512 (find_AT_string_in_table): Likewise.
15513 (add_addr_table_entry): Likewise.
15514 (new_die): Likewise.
15515 (add_var_loc_to_decl): Likewise.
15516 (clone_die): Likewise.
15517 (clone_as_declaration): Likewise.
15518 (break_out_comdat_types): Likewise.
15519 (new_loc_list): Likewise.
15520 (add_loc_descr_to_each): Likewise.
15521 (add_location_or_const_value_attribute): Likewise.
15522 (add_linkage_name): Likewise.
15523 (lookup_filename): Likewise.
15524 (dwarf2out_var_location): Likewise.
15525 (new_line_info_table): Likewise.
15526 (dwarf2out_init): Likewise.
15527 (mem_loc_descriptor): Likewise.
15528 (loc_descriptor): Likewise.
15529 (add_const_value_attribute): Likewise.
15530 (tree_add_const_value_attribute): Likewise.
15531 (comp_dir_string): Likewise.
15532 (dwarf2out_vms_debug_main_pointer): Likewise.
15533 (string_cst_pool_decl): Likewise.
15534 * emit-rtl.c (set_mem_attrs): Likewise.
15535 (get_reg_attrs): Likewise.
15536 (start_sequence): Likewise.
15537 (init_emit): Likewise.
15538 (init_emit_regs): Likewise.
15539 * except.c (init_eh_for_function): Likewise.
15540 (gen_eh_region): Likewise.
15541 (gen_eh_region_catch): Likewise.
15542 (gen_eh_landing_pad): Likewise.
15543 (add_call_site): Likewise.
15544 * function.c (add_frame_space): Likewise.
15545 (insert_temp_slot_address): Likewise.
15546 (assign_stack_temp_for_type): Likewise.
15547 (get_hard_reg_initial_val): Likewise.
15548 (allocate_struct_function): Likewise.
15549 (prepare_function_start): Likewise.
15550 (types_used_by_var_decl_insert): Likewise.
15551 * gengtype.c (variable_size_p): Remove function.
15552 (enum alloc_quantity): Remove enum.
15553 (write_typed_alloc_def): Remove function.
15554 (write_typed_struct_alloc_def): Likewise.
15555 (write_typed_typedef_alloc_def): Likewise.
15556 (write_typed_alloc_defns): Likewise.
15557 (main): Adjust.
15558 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15559 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15560 * ggc.h (ggc_alloc): new function.
15561 (ggc_cleared_alloc): Likewise.
15562 (ggc_vec_alloc): Template on type of vector element, and remove
15563 element size argument.
15564 (ggc_cleared_vec_alloc): Likewise.
15565 * gimple.c (gimple_build_omp_for): Adjust.
15566 (gimple_copy): Likewise.
15567 * ipa-cp.c (get_replacement_map): Likewise.
15568 (find_aggregate_values_for_callers_subset): Likewise.
15569 (known_aggs_to_agg_replacement_list): Likewise.
15570 * ipa-devirt.c (get_odr_type): Likewise.
15571 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15572 (read_agg_replacement_chain): Likewise.
15573 * loop-iv.c (get_simple_loop_desc): Likewise.
15574 * lto-cgraph.c (input_node_opt_summary): Likewise.
15575 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15576 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15577 (input_eh_region): Likewise.
15578 (input_eh_lp): Likewise.
15579 (input_cfg): Likewise.
15580 * optabs.c (set_optab_libfunc): Likewise.
15581 (init_tree_optimization_optabs): Likewise.
15582 (set_conv_libfunc): Likewise.
15583 * passes.c (do_per_function_toporder): Likewise.
15584 * rtl.h: Don't use variable_size gty attribute.
15585 * sese.c (if_region_set_false_region): Adjust.
15586 * stringpool.c (gt_pch_save_stringpool): Likewise.
15587 * target-globals.c (save_target_globals): Likewise.
15588 * toplev.c (general_init): Likewise.
15589 * trans-mem.c (record_tm_replacement): Likewise.
15590 (split_bb_make_tm_edge): Likewise.
15591 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15592 * tree-data-ref.h (lambda_vector_new): Likewise.
15593 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15594 * tree-iterator.c (tsi_link_before): Likewise.
15595 (tsi_link_after): Likewise.
15596 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15597 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15598 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15599 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15600 * tree-ssa.c (init_tree_ssa): Adjust.
15601 * tree-ssanames.c (set_range_info): Likewise.
15602 (get_ptr_info): Likewise.
15603 (duplicate_ssa_name_ptr_info): Likewise.
15604 (duplicate_ssa_name_range_info): Likewise.
15605 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15606 (unpack_ts_fixed_cst_value_fields): Likewise.
15607 * tree.c (build_fixed): Likewise.
15608 (build_real): Likewise.
15609 (build_string): Likewise.
15610 (decl_priority_info): Likewise.
15611 (decl_debug_expr_insert): Likewise.
15612 (decl_value_expr_insert): Likewise.
15613 (decl_debug_args_insert): Likewise.
15614 (type_hash_add): Likewise.
15615 (build_omp_clause): Likewise.
15616 * ubsan.c (decl_for_type_insert): Likewise.
15617 * varasm.c (get_unnamed_section): Likewise.
15618 (get_noswitch_section): Likewise.
15619 (get_section): Likewise.
15620 (get_block_for_section): Likewise.
15621 (create_block_symbol): Likewise.
15622 (build_constant_desc): Likewise.
15623 (create_constant_pool): Likewise.
15624 (force_const_mem): Likewise.
15625 (record_tm_clone_pair): Likewise.
15626 * varpool.c (varpool_create_empty_node): Likewise.
15627
15628 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15629
15630 * dwarf2out.c (tree_add_const_value_attribute): Call
15631 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15632 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15633 instead of ggc_internal_<x>alloc_stat.
15634 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15635 (ggc_realloc): Likewise.
15636 * ggc-none.c (ggc_internal_alloc): Likewise.
15637 (ggc_internal_cleared_alloc): Likewise.
15638 * ggc-page.c: Likewise.
15639 * ggc.h (ggc_internal_alloc_stat): Likewise.
15640 (ggc_internal_alloc): Remove macro.
15641 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15642 (ggc_internal_cleared_alloc): Remove macro.
15643 (GGC_RESIZEVEC): Adjust.
15644 (ggc_resizevar): Remove macro.
15645 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15646 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15647 (ggc_internal_vec_cleared_alloc): Remove macro.
15648 (ggc_alloc_atomic_stat): Drop _stat suffix.
15649 (ggc_alloc_atomic): Remove macro.
15650 (ggc_alloc_cleared_atomic): Remove macro.
15651 (ggc_alloc_string_stat): Drop _stat suffix.
15652 (ggc_alloc_string): Remove macro.
15653 (ggc_alloc_rtx_def_stat): Adjust.
15654 (ggc_alloc_tree_node_stat): Likewise.
15655 (ggc_alloc_cleared_tree_node_stat): Likewise.
15656 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15657 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15658 * gimple.c (gimple_build_omp_for): Likewise.
15659 (gimple_copy): Likewise.
15660 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15661 * toplev.c (realloc_for_line_map): Adjust.
15662 * tree-data-ref.h (lambda_vector_new): Likewise.
15663 * tree-phinodes.c (allocate_phi_node): Likewise.
15664 * tree.c (grow_tree_vec_stat): Likewise.
15665 * vec.h (va_gc::reserve): Adjust.
15666
15667 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15668
15669 * config/microblaze/microblaze.c (break_handler): New Declaration.
15670 (microblaze_break_function_p,microblaze_is_break_handler): New.
15671 (compute_frame_size): Use microblaze_break_function_p.
15672 Add the test of break_handler.
15673 (microblaze_function_prologue) : Add the test of variable
15674 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15675 (microblaze_function_epilogue) : Add the test of break_handler.
15676 (microblaze_globalize_label) : Add the test of break_handler.
15677 Check the name by BREAK_HANDLER_NAME.
15678
15679 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15680
15681 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15682 microblaze_is_break_handler test.
15683 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15684 Use SYMBOL_REF_DECL.
15685
15686 * config/microblaze/microblaze-protos.h
15687 (microblaze_break_function_p,microblaze_is_break_handler):
15688 New Declaration.
15689
15690 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15691 new MicroBlaze break_handler functions.
15692
15693 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15694
15695 * doc/extend.texi (Size of an asm): Move node text according
15696 to its @menu entry position.
15697
15698 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15699
15700 PR tree-optimization/61140
15701 PR tree-optimization/61150
15702 PR tree-optimization/61197
15703 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15704
15705 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15706
15707 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15708
15709 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15710
15711 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15712 __SIZEOF_INT128__ is defined.
15713
15714 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15715
15716 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15717 (rs6000_delegitimize_address): Use it.
15718
15719 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15720
15721 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15722 inplace argument. Store the new address in the original MEM when true.
15723 * emit-rtl.c (change_address_1): Likewise.
15724 (adjust_address_1, adjust_automodify_address_1, offset_address):
15725 Update accordingly.
15726 * rtl.h (plus_constant): Add an inplace argument.
15727 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15728 when true. Avoid generating (plus X (const_int 0)).
15729 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15730 in-place. Pass true to plus_constant.
15731 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15732
15733 2014-05-16 Dehao Chen <dehao@google.com>
15734
15735 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15736
15737 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15738
15739 PR target/54089
15740 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15741 patterns.
15742 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15743
15744 2014-05-16 Dehao Chen <dehao@google.com>
15745
15746 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15747 optimize_function_for_size_p.
15748 * regs.h (REG_FREQ_FROM_BB): Likewise.
15749
15750 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15751
15752 PR target/51244
15753 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15754 negt_reg_operand cases.
15755 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15756 predicate.
15757 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15758
15759 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15760
15761 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15762 target variants.
15763
15764 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15765
15766 Revert:
15767 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15768
15769 * tree-cfg.c (dump_function_to_file): Dump the return type of
15770 functions, in a line to itself before the function body, mimicking
15771 the layout of a C function.
15772
15773 2014-05-16 Dehao Chen <dehao@google.com>
15774
15775 * cfghooks.c (make_forwarder_block): Use direct computation to
15776 get fall-through edge's count and frequency.
15777
15778 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15779
15780 * config/arc/arc.c (arc_init): Fix typo in error message.
15781 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15782 (split_stack_prologue_scratch_regno): Likewise.
15783 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15784 word from error message.
15785
15786 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15787
15788 * ira-costs.c: Fix typo in comment.
15789
15790 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15791
15792 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15793
15794 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15795
15796 * varpool.c (dump_varpool_node): Dump write-only flag.
15797 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15798 write-only flag.
15799 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15800 write-only variables.
15801 * ipa.c (process_references): New function.
15802 (set_readonly_bit): New function.
15803 (set_writeonly_bit): New function.
15804 (clear_addressable_bit): New function.
15805 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15806 fix handling of aliases.
15807 * cgraph.h (struct varpool_node): Add writeonly flag.
15808
15809 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15810
15811 PR rtl-optimization/60969
15812 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15813 Calculate costs for this case.
15814
15815 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15816
15817 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15818 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15819
15820 2014-05-16 Richard Biener <rguenther@suse.de>
15821
15822 PR tree-optimization/61194
15823 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15824 bool patterns ending in a COND_EXPR.
15825
15826 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15827
15828 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15829
15830 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15831
15832 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15833 where we were unable to cost an RTX.
15834
15835 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15836
15837 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15838 HIGH, LO_SUM.
15839
15840 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15841 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15842
15843 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15844
15845 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15846 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15847
15848 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15849 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15850
15851 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15852 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15853
15854 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15855 operators.
15856
15857 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15858 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15859
15860 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15861 DIV/MOD.
15862
15863 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15864 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15865
15866 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15867 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15868
15869 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15870 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15871
15872 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15873 rotates and shifts.
15874
15875 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15876 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15877
15878 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15879 ZERO_EXTEND and SIGN_EXTEND better.
15880
15881 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15882 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15883
15884 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15885 logical operations.
15886
15887 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15888 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15889
15890 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15891 costs when costing loads and stores to memory.
15892
15893 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15894 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15895
15896 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15897 for SET RTX.
15898
15899 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15900
15901 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15902
15903 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15904 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15905
15906 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15907 to...
15908 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15909 well formed.
15910 (aarch64_rtx_mult_cost): New.
15911 (aarch64_rtx_costs): Use it, refactor as appropriate.
15912
15913 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15914 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15915
15916 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15917 emit instructions, return number of instructions which would
15918 be emitted.
15919 (aarch64_add_constant): Update call to aarch64_build_constant.
15920 (aarch64_output_mi_thunk): Likewise.
15921 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15922 a CONST_DOUBLE.
15923
15924 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15925
15926 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15927 (TARGET_RTX_COSTS): Call it.
15928
15929 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15930
15931 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15932 (cortexa57_vector_cost): Likewise.
15933 (cortexa57_tunings): Use them.
15934
15935 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15936
15937 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15938 (cpu_addrcost_table): Use it.
15939 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15940 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15941 move it.
15942
15943 2014-05-16 Richard Biener <rguenther@suse.de>
15944
15945 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15946 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15947 (visit_phi): Ignore edges marked as not executable.
15948 (class cond_dom_walker): New.
15949 (cond_dom_walker::before_dom_children): Value-number
15950 control statements and mark successor edges as not
15951 executable if possible.
15952 (run_scc_vn): First walk all control statements in
15953 dominator order, marking edges as not executable.
15954 * tree-inline.c (copy_edges_for_bb): Be not confused
15955 about random edge flags.
15956
15957 2014-05-16 Richard Biener <rguenther@suse.de>
15958
15959 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
15960
15961 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
15962
15963 PR target/61193
15964 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
15965 (__TM_simple_begin): Use it.
15966 (__TM_begin): Likewise.
15967
15968 2014-05-15 Martin Jambor <mjambor@suse.cz>
15969
15970 PR ipa/61085
15971 * ipa-prop.c (update_indirect_edges_after_inlining): Check
15972 type_preserved flag when the indirect edge is polymorphic.
15973
15974 2014-05-15 Martin Jambor <mjambor@suse.cz>
15975
15976 PR tree-optimization/61090
15977 * tree-sra.c (sra_modify_expr): Pass the current gsi to
15978 build_ref_for_model.
15979
15980 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15981
15982 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
15983 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
15984
15985 2014-05-15 Jakub Jelinek <jakub@redhat.com>
15986
15987 PR tree-optimization/61158
15988 * fold-const.c (fold_binary_loc): If X is zero-extended and
15989 shiftc >= prec, make sure zerobits is all ones instead of
15990 invoking undefined behavior.
15991
15992 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15993
15994 * regcprop.h: New file.
15995 * regcprop.c (skip_debug_insn_p): New decl.
15996 (replace_oldest_value_reg): Check skip_debug_insn_p.
15997 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
15998 * shrink-wrap.c: Include regcprop.h.
15999 (prepare_shrink_wrap): Call
16000 copyprop_hardreg_forward_bb_without_debug_insn.
16001
16002 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16003
16004 * shrink-wrap.h: Update comment.
16005 * shrink-wrap.c: Update comment.
16006 (next_block_for_reg): Rename to live_edge_for_reg.
16007 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16008 (move_insn_for_shrink_wrap): Split live_edge.
16009 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16010
16011 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16012
16013 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16014 Delete.
16015 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16016 * config/sparc/sparc.md (fptype_ut699): New attribute.
16017 (in_branch_delay): Return false if -mfix-ut699 is specified and
16018 fptype_ut699 is set to single.
16019 (truncdfsf2): Add fptype_ut699 attribute.
16020 (fix_truncdfsi2): Likewise.
16021 (floatsisf2): Change fptype attribute.
16022 (fix_truncsfsi2): Likewise.
16023 (negtf2_notv9): Delete.
16024 (negtf2_v9): Likewise.
16025 (negtf2_hq): New instruction.
16026 (negtf2): New instruction and splitter.
16027 (negdf2_notv9): Rewrite.
16028 (abstf2_notv9): Delete.
16029 (abstf2_hq_v9): Likewise.
16030 (abstf2_v9): Likewise.
16031 (abstf2_hq): New instruction.
16032 (abstf2): New instruction and splitter.
16033 (absdf2_notv9): Rewrite.
16034
16035 2014-05-14 Cary Coutant <ccoutant@google.com>
16036
16037 PR debug/61013
16038 * opts.c (common_handle_option): Don't special-case "-g".
16039 (set_debug_level): Default to at least level 2 with "-g".
16040
16041 2014-05-14 DJ Delorie <dj@redhat.com>
16042
16043 * config/msp430/msp430.c (msp430_builtin): Add
16044 MSP430_BUILTIN_DELAY_CYCLES.
16045 (msp430_init_builtins): Register void __delay_cycles(long long).
16046 (msp430_builtin_decl): Add it.
16047 (cg_magic_constant): New.
16048 (msp430_expand_delay_cycles): New.
16049 (msp430_expand_builtin): Call it.
16050 (msp430_print_operand_raw): Change integer printing from "int" to
16051 HOST_WIDE_INT.
16052 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16053 (delay_cycles_start): New.
16054 (delay_cycles_end): New.
16055 (delay_cycles_32): New.
16056 (delay_cycles_32x): New.
16057 (delay_cycles_16): New.
16058 (delay_cycles_16x): New.
16059 (delay_cycles_2): New.
16060 (delay_cycles_1): New.
16061 * doc/extend.texi: Document __delay_cycles().
16062
16063 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16064
16065 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16066 length attribute computation.
16067
16068 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16069
16070 PR debug/61188
16071 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16072
16073 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16074
16075 PR target/61084
16076 * config/sparc/sparc.md: Fix types of low and high in DI constant
16077 splitter. Use gen_int_mode in some other splitters.
16078
16079 2014-05-14 Martin Jambor <mjambor@suse.cz>
16080
16081 PR ipa/60897
16082 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16083
16084 2014-05-14 James Norris <jnorris@codesourcery.com>
16085
16086 * omp-low.c (expand_parallel_call): Remove shadow variable.
16087 (expand_omp_taskreg): Likewise.
16088
16089 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16090
16091 * common/config/i386/i386-common.c
16092 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16093 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16094 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16095 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16096 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16097 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16098 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16099 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16100 xsavecintrin.h, xsavesintrin.h.
16101 (x86_64-*-*): Ditto.
16102 * config/i386/clflushoptintrin.h: New.
16103 * config/i386/xsavecintrin.h: Ditto.
16104 * config/i386/xsavesintrin.h: Ditto.
16105 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16106 (bit_XSAVES): Ditto.
16107 (bit_XSAVES): Ditto.
16108 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16109 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16110 -mno-clflushopt.
16111 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16112 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16113 OPTION_MASK_ISA_XSAVES.
16114 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16115 -mxsavec, -mxsaves.
16116 (PTA_CLFLUSHOPT) Define.
16117 (PTA_XSAVEC): Ditto.
16118 (PTA_XSAVES): Ditto.
16119 (ix86_option_override_internal): Handle new options.
16120 (ix86_valid_target_attribute_inner_p): Ditto.
16121 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16122 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16123 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16124 (bdesc_special_args): Add __builtin_ia32_xsaves,
16125 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16126 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16127 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16128 (ix86_expand_builtin): Handle new builtins.
16129 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16130 (TARGET_CLFLUSHOPT_P): Ditto.
16131 (TARGET_XSAVEC): Ditto.
16132 (TARGET_XSAVEC_P): Ditto.
16133 (TARGET_XSAVES): Ditto.
16134 (TARGET_XSAVES_P): Ditto.
16135 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16136 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16137 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16138 (ANY_XRSTOR): New.
16139 (ANY_XRSTOR64): Ditto.
16140 (xrstor): Ditto.
16141 (xrstor): Change into <xrstor>.
16142 (xrstor_rex64): Change into <xrstor>_rex64.
16143 (xrstor64): Change into <xrstor>64
16144 (clflushopt): New.
16145 * config/i386/i386.opt (mclflushopt): New.
16146 (mxsavec): Ditto.
16147 (mxsaves): Ditto.
16148 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16149 xsavecintrin.h.
16150 * doc/invoke.texi: Document new options.
16151
16152 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16153
16154 PR rtl-optimization/60866
16155 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16156 Default it to -1. Pass it down to init_simplejump_data.
16157 (init_simplejump_data): New parameter old_seqno. Pass it down
16158 to get_seqno_for_a_jump.
16159 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16160 initializing new jump seqno as a last resort. Add comment.
16161 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16162 jump and pass it down to sel_init_new_insn.
16163 (sel_redirect_edge_and_branch_force): Likewise.
16164
16165 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16166
16167 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16168 shifted values to avoid build warning.
16169
16170 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16171
16172 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16173 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16174 (cfg_layout_merge_blocks): Likewise.
16175 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16176
16177 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16178
16179 PR rtl-optimization/60901
16180 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16181 bb predecessor belongs to the same scheduling region. Adjust comment.
16182
16183 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16184
16185 * doc/sourcebuild.texi: (dfp_hw): Document.
16186 (p8vector_hw): Likewise.
16187 (powerpc_eabi_ok): Likewise.
16188 (powerpc_elfv2): Likewise.
16189 (powerpc_htm_ok): Likewise.
16190 (ppc_recip_hw): Likewise.
16191 (vsx_hw): Likewise.
16192
16193 2014-05-13 Cary Coutant <ccoutant@google.com>
16194
16195 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16196
16197 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16198
16199 * gengtype-parse.c (require3): Eliminate in favor of...
16200 (require4): New.
16201 (require_template_declaration): Update to support optional single *
16202 on a type.
16203
16204 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16205 (create_user_defined_type): Handle a single level of explicit
16206 pointerness within template arguments.
16207 (struct write_types_data): Add field "kind".
16208 (filter_type_name): Handle "*" character.
16209 (write_user_func_for_structure_ptr): Require a write_types_data
16210 rather than just a prefix string, so that we can look up the kind
16211 of the wtd and use it as an index into wrote_user_func_for_ptr,
16212 ensuring that such functions are written at most once. Support
16213 subclasses by invoking the marking function of the ultimate base class.
16214 (write_user_func_for_structure_body): Require a write_types_data
16215 rather than just a prefix string, so that we can pass this to
16216 write_user_func_for_structure_ptr.
16217 (write_func_for_structure): Likewise.
16218 (ggc_wtd): Add initializer of new "kind" field.
16219 (pch_wtd): Likewise.
16220
16221 * gengtype.h (enum write_types_kinds): New.
16222 (struct type): Add field wrote_user_func_for_ptr to the "s"
16223 union member.
16224
16225 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16226
16227 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16228 instead of const_binop.
16229 (fold_binary_loc): Likewise.
16230
16231 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16232
16233 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16234 calculation to match get_ref_base_and_extent.
16235
16236 2014-05-13 Catherine Moore <clm@codesourcery.com>
16237 Sandra Loosemore <sandra@codesourcery.com>
16238
16239 * configure.ac: Fix assembly for explicit JALR relocation check.
16240 * configure: Regenerate.
16241
16242 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16243
16244 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16245 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16246 Remove associated type declarations and initialisations.
16247 (arm_expand_neon_builtin): Likewise.
16248 (neon_emit_pair_result_insn): Delete.
16249 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16250 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16251 (neon_vzip<mode>): Likewise.
16252 (neon_vuzp<mode>): Likewise.
16253
16254 2014-05-13 Richard Biener <rguenther@suse.de>
16255
16256 PR ipa/60973
16257 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16258 it needs revisiting whether the call still may be tail-called.
16259
16260 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16261
16262 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16263 * rtl.h (block_symbol): Reduce number of fields to 2.
16264 (rtx_def): Add u2.symbol_ref_flags.
16265 (SYMBOL_REF_FLAGS): Use it.
16266 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16267 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16268 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16269 Lower index of SYMBOL_REF_DATA.
16270 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16271 Print SYMBOL_REF_FLAGS at the same time.
16272 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16273
16274 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16275
16276 * rtl.def (VAR_LOCATION): Remove "i" field.
16277 * rtl.h (rtx_def): Add u2.var_location_status.
16278 (PAT_VAR_LOCATION_STATUS): Use it.
16279 (gen_rtx_VAR_LOCATION): Declare.
16280 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16281 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16282 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16283
16284 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16285
16286 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16287 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16288
16289 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16290
16291 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16292 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16293 * rtl.h (rtx_def): Add insn_uid to u2 field.
16294 (RTX_FLAG_CHECK8): Delete in favor of...
16295 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16296 (INSN_DELETED_P): Update accordingly.
16297 (INSN_UID): Use u2.insn_uid.
16298 (INSN_CHAIN_CODE_P): Define.
16299 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16300 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16301 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16302 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16303 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16304 indices accordingly.
16305 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16306 Update indices for insn-chain rtxes.
16307 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16308 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16309 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16310 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16311 * combine.c (try_combine): Likewise.
16312 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16313
16314 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16315
16316 * rtl.def (REG): Remove middle field.
16317 * rtl.h (rtx_def): Add orignal_regno to u2.
16318 (ORIGINAL_REGNO): Use it instead of field 1.
16319 (REG_ATTRS): Lower field index accordingly.
16320 * gengtype.c (adjust_field_rtx_def): Remove handling of
16321 ORIGINAL_REGNO. Move REG_ATTRS index down.
16322 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16323 code that prints the REGNO.
16324
16325 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16326
16327 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16328 GENERATOR_FILE.
16329
16330 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16331
16332 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16333
16334 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16335
16336 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16337 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16338
16339 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16340
16341 * config/aarch64/aarch64-protos.h
16342 (aarch64_hard_regno_caller_save_mode): New prototype.
16343 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16344 New function.
16345 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16346
16347 2014-05-13 Christian Bruel <christian.bruel@st.com>
16348
16349 * target.def (mode_switching): New hook vector.
16350 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16351 (mode_exit, modepriority_to_mode): Likewise.
16352 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16353 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16354 * target.h: Include tm.h and hard-reg-set.h.
16355 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16356 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16357 * doc/tm.texi Regenerate.
16358 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16359 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16360 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16361 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16362 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16363 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16364 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16365 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16366 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16367 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16368 (ix86_emit_mode_set): Hookify.
16369 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16370 Delete.
16371 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16372 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16373 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16374 (epiphany_mode_priority_to_mode): Remove declaration.
16375 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16376 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16377 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16378 Likewise.
16379 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16380 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16381 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16382
16383 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16384
16385 PR target/61060
16386 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16387 is const0_rtx, return immediately. Don't test count == 0 when
16388 it is always true.
16389
16390 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16391
16392 * Makefile.in: add shrink-wrap.o.
16393 * config/i386/i386.c: include "shrink-wrap.h"
16394 * function.c: Likewise.
16395 (requires_stack_frame_p, next_block_for_reg,
16396 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16397 dup_block_and_redirect): Move to shrink-wrap.c
16398 (thread_prologue_and_epilogue_insns): Extract three code segments
16399 as functions in shrink-wrap.c
16400 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16401 shrink-wrap.h
16402 * shrink-wrap.c: New file.
16403 * shrink-wrap.h: New file.
16404
16405 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16406
16407 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16408 reference to Solaris.
16409
16410 2014-05-12 Mike Stump <mikestump@comcast.net>
16411
16412 PR other/31778
16413 * genattrtab.c (filename): Add.
16414 (convert_set_attr_alternative): Improve error message.
16415 (check_defs): Restore read_md_filename for error messages.
16416 (gen_insn): Save filename.
16417
16418 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16419
16420 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16421 -fno-local-ivars and -fivar-visibility.
16422 * c-family/c.opt: Make -Wshadow also implicitly enable
16423 -Wshadow-ivar.
16424
16425 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16426
16427 * doc/tm.texi: Remove reference to deleted macro.
16428 * doc/tm.texi.in: Likewise.
16429
16430 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16431
16432 PR target/60991
16433 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16434 to restore Y.
16435
16436 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16437
16438 PR libgcc/61152
16439 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16440 * config/arm/aout.h (License): Same.
16441 * config/arm/bpabi.h (License): Same.
16442 * config/arm/elf.h (License): Same.
16443 * config/arm/linux-elf.h (License): Same.
16444 * config/arm/linux-gas.h (License): Same.
16445 * config/arm/netbsd-elf.h (License): Same.
16446 * config/arm/uclinux-eabi.h (License): Same.
16447 * config/arm/uclinux-elf.h (License): Same.
16448 * config/arm/vxworks.h (License): Same.
16449
16450 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16451
16452 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16453 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16454 number of operands to 3.
16455 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16456 * tree-nested.c (convert_nonlocal_omp_clauses,
16457 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16458 * gimplify.c (gimplify_scan_omp_clauses): Handle
16459 OMP_CLAUSE_LINEAR_STMT.
16460 * omp-low.c (lower_rec_input_clauses): Fix typo.
16461 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16462 cast between Fortran boolean_type_node and C _Bool if
16463 needed.
16464
16465 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16466
16467 PR tree-optimization/61136
16468 * wide-int.h (multiple_of_p): Define a version that doesn't return
16469 the quotient.
16470 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16471 integer_zerop/const_binop pair.
16472 (multiple_of_p): Likewise, converting both operands to widest_int
16473 precision.
16474
16475 2014-05-09 Teresa Johnson <tejohnson@google.com>
16476
16477 * cgraphunit.c (analyze_functions): Use correct dump file.
16478
16479 2014-05-09 Florian Weimer <fweimer@redhat.com>
16480
16481 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16482 expand_used_vars.
16483 (stack_protect_return_slot_p): New function.
16484 (expand_used_vars): Call stack_protect_decl_p and
16485 stack_protect_return_slot_p for -fstack-protector-strong.
16486
16487 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16488 Andrew Haley <aph@redhat.com>
16489 Richard Sandiford <rdsandiford@googlemail.com>
16490
16491 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16492 pages.
16493
16494 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16495
16496 PR middle-end/61111
16497 * fold-const.c (fold_binary_loc): Changed width of mask.
16498
16499 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16500
16501 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16502 unsigned int initializers for regno_in, regno_out.
16503
16504 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16505
16506 PR target/61055
16507 * config/avr/avr.md (cc): Add new attribute set_vzn.
16508 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16509 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16510 with INC, DEC or NEG.
16511 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16512 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16513 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16514
16515 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16516
16517 Revert:
16518 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16519
16520 * wide-int.cc (UTItype): Define.
16521 (UDWtype): Define for appropriate W_TYPE_SIZE.
16522
16523 2014-05-09 Richard Biener <rguenther@suse.de>
16524
16525 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16526 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16527 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16528 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16529 ssa_propagate): Adjust.
16530
16531 2014-05-08 Jeff Law <law@redhat.com>
16532
16533 PR tree-optimization/61009
16534 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16535 tri-state rather than a boolean. When a block is too big to
16536 thread through, inform caller via negative return value.
16537 (thread_across_edge): If a block was too big for normal threading,
16538 then it's too big for a joiner too, so remove temporary equivalences
16539 and return immediately.
16540
16541 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16542 Matthias Klose <doko@ubuntu.com>
16543
16544 PR driver/61106
16545 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16546
16547 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16548
16549 PR target/59952
16550 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16551
16552 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16553
16554 PR target/61092
16555 * config/alpha/alpha.c: Include gimple-iterator.h.
16556 (alpha_gimple_fold_builtin): New function. Move
16557 ALPHA_BUILTIN_UMULH folding from ...
16558 (alpha_fold_builtin): ... here.
16559 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16560
16561 2014-05-08 Wei Mi <wmi@google.com>
16562
16563 PR target/58066
16564 * config/i386/i386.c (ix86_compute_frame_layout): Update
16565 preferred_stack_boundary for call, expanded from tls descriptor.
16566 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16567 to depend on SP register.
16568 (*tls_local_dynamic_base_32_gnu): Ditto.
16569 (*tls_local_dynamic_32_once): Ditto.
16570 (tls_global_dynamic_64_<mode>): Set
16571 ix86_tls_descriptor_calls_expanded_in_cfun.
16572 (tls_local_dynamic_base_64_<mode>): Ditto.
16573 (tls_global_dynamic_32): Set
16574 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16575 to depend on SP register.
16576 (tls_local_dynamic_base_32): Ditto.
16577
16578 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16579
16580 * config/arm/arm_neon.h: Update comment.
16581 * config/arm/neon-docgen.ml: Delete.
16582 * config/arm/neon-gen.ml: Delete.
16583 * doc/arm-neon-intrinsics.texi: Update comment.
16584
16585 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16586
16587 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16588 and v4sf versions.
16589 (vand, vorr, veor, vorn, vbic): Remove.
16590 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16591 iterator.
16592 (neon_vsub_unspec): Likewise.
16593 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16594
16595 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16596
16597 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16598 (vadd_s16): Likewise.
16599 (vadd_s32): Likewise.
16600 (vadd_f32): Likewise.
16601 (vadd_u8): Likewise.
16602 (vadd_u16): Likewise.
16603 (vadd_u32): Likewise.
16604 (vadd_s64): Likewise.
16605 (vadd_u64): Likewise.
16606 (vaddq_s8): Likewise.
16607 (vaddq_s16): Likewise.
16608 (vaddq_s32): Likewise.
16609 (vaddq_s64): Likewise.
16610 (vaddq_f32): Likewise.
16611 (vaddq_u8): Likewise.
16612 (vaddq_u16): Likewise.
16613 (vaddq_u32): Likewise.
16614 (vaddq_u64): Likewise.
16615 (vmul_s8): Likewise.
16616 (vmul_s16): Likewise.
16617 (vmul_s32): Likewise.
16618 (vmul_f32): Likewise.
16619 (vmul_u8): Likewise.
16620 (vmul_u16): Likewise.
16621 (vmul_u32): Likewise.
16622 (vmul_p8): Likewise.
16623 (vmulq_s8): Likewise.
16624 (vmulq_s16): Likewise.
16625 (vmulq_s32): Likewise.
16626 (vmulq_f32): Likewise.
16627 (vmulq_u8): Likewise.
16628 (vmulq_u16): Likewise.
16629 (vmulq_u32): Likewise.
16630 (vsub_s8): Likewise.
16631 (vsub_s16): Likewise.
16632 (vsub_s32): Likewise.
16633 (vsub_f32): Likewise.
16634 (vsub_u8): Likewise.
16635 (vsub_u16): Likewise.
16636 (vsub_u32): Likewise.
16637 (vsub_s64): Likewise.
16638 (vsub_u64): Likewise.
16639 (vsubq_s8): Likewise.
16640 (vsubq_s16): Likewise.
16641 (vsubq_s32): Likewise.
16642 (vsubq_s64): Likewise.
16643 (vsubq_f32): Likewise.
16644 (vsubq_u8): Likewise.
16645 (vsubq_u16): Likewise.
16646 (vsubq_u32): Likewise.
16647 (vsubq_u64): Likewise.
16648 (vand_s8): Likewise.
16649 (vand_s16): Likewise.
16650 (vand_s32): Likewise.
16651 (vand_u8): Likewise.
16652 (vand_u16): Likewise.
16653 (vand_u32): Likewise.
16654 (vand_s64): Likewise.
16655 (vand_u64): Likewise.
16656 (vandq_s8): Likewise.
16657 (vandq_s16): Likewise.
16658 (vandq_s32): Likewise.
16659 (vandq_s64): Likewise.
16660 (vandq_u8): Likewise.
16661 (vandq_u16): Likewise.
16662 (vandq_u32): Likewise.
16663 (vandq_u64): Likewise.
16664 (vorr_s8): Likewise.
16665 (vorr_s16): Likewise.
16666 (vorr_s32): Likewise.
16667 (vorr_u8): Likewise.
16668 (vorr_u16): Likewise.
16669 (vorr_u32): Likewise.
16670 (vorr_s64): Likewise.
16671 (vorr_u64): Likewise.
16672 (vorrq_s8): Likewise.
16673 (vorrq_s16): Likewise.
16674 (vorrq_s32): Likewise.
16675 (vorrq_s64): Likewise.
16676 (vorrq_u8): Likewise.
16677 (vorrq_u16): Likewise.
16678 (vorrq_u32): Likewise.
16679 (vorrq_u64): Likewise.
16680 (veor_s8): Likewise.
16681 (veor_s16): Likewise.
16682 (veor_s32): Likewise.
16683 (veor_u8): Likewise.
16684 (veor_u16): Likewise.
16685 (veor_u32): Likewise.
16686 (veor_s64): Likewise.
16687 (veor_u64): Likewise.
16688 (veorq_s8): Likewise.
16689 (veorq_s16): Likewise.
16690 (veorq_s32): Likewise.
16691 (veorq_s64): Likewise.
16692 (veorq_u8): Likewise.
16693 (veorq_u16): Likewise.
16694 (veorq_u32): Likewise.
16695 (veorq_u64): Likewise.
16696 (vbic_s8): Likewise.
16697 (vbic_s16): Likewise.
16698 (vbic_s32): Likewise.
16699 (vbic_u8): Likewise.
16700 (vbic_u16): Likewise.
16701 (vbic_u32): Likewise.
16702 (vbic_s64): Likewise.
16703 (vbic_u64): Likewise.
16704 (vbicq_s8): Likewise.
16705 (vbicq_s16): Likewise.
16706 (vbicq_s32): Likewise.
16707 (vbicq_s64): Likewise.
16708 (vbicq_u8): Likewise.
16709 (vbicq_u16): Likewise.
16710 (vbicq_u32): Likewise.
16711 (vbicq_u64): Likewise.
16712 (vorn_s8): Likewise.
16713 (vorn_s16): Likewise.
16714 (vorn_s32): Likewise.
16715 (vorn_u8): Likewise.
16716 (vorn_u16): Likewise.
16717 (vorn_u32): Likewise.
16718 (vorn_s64): Likewise.
16719 (vorn_u64): Likewise.
16720 (vornq_s8): Likewise.
16721 (vornq_s16): Likewise.
16722 (vornq_s32): Likewise.
16723 (vornq_s64): Likewise.
16724 (vornq_u8): Likewise.
16725 (vornq_u16): Likewise.
16726 (vornq_u32): Likewise.
16727 (vornq_u64): Likewise.
16728
16729 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16730
16731 * wide-int.cc (UTItype): Define.
16732 (UDWtype): Define for appropriate W_TYPE_SIZE.
16733
16734 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16735
16736 PR tree-optimization/59100
16737 * tree-ssa-phiopt.c: Include tree-inline.h.
16738 (neutral_element_p, absorbing_element_p): New functions.
16739 (value_replacement): Handle conditional binary operations with a
16740 neutral or absorbing element.
16741
16742 2014-05-08 Richard Biener <rguenther@suse.de>
16743
16744 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16745 folding the expression.
16746 (valueize_expr): Remove.
16747 (visit_reference_op_load): Do not valueize the result of
16748 vn_get_expr_for.
16749 (simplify_binary_expression): Likewise.
16750 (simplify_unary_expression): Likewise.
16751
16752 2014-05-08 Richard Biener <rguenther@suse.de>
16753
16754 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16755 looking at TYPE_ARG_TYPES.
16756
16757 2014-05-08 Richard Biener <rguenther@suse.de>
16758
16759 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16760 pointer propagation special-case.
16761
16762 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16763
16764 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16765 core part of address expressions.
16766
16767 2014-05-08 Alan Modra <amodra@gmail.com>
16768
16769 PR target/60737
16770 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16771 loads and stores when -mno-strict-align at any alignment.
16772 (expand_block_clear): Similarly. Also correct calculation of
16773 instruction count.
16774
16775 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16776
16777 PR middle-end/39246
16778 * tree-complex.c (expand_complex_move): Keep line info when expanding
16779 complex move.
16780 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16781 of complex expression. Use new argument to display correct location
16782 for values coming from phi statement.
16783 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16784 (warn_uninitialized_phi): Pass location of phi argument to
16785 warn_uninit.
16786 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16787 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16788
16789 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16790
16791 * config/rs6000/predicates.md (indexed_address_mem): New.
16792 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16793 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16794 fpstore_ux, fpstore_u.
16795 (sign_extend, indexed, update): New.
16796 (cell_micro): Adjust.
16797 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16798 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16799 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16800 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16801 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16802 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16803 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16804 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16805 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16806 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16807 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16808 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16809 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16810 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16811 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16812
16813 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16814 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16815 *vsx_extract_<mode>_store): Adjust.
16816 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16817 is_cracked_insn, insn_must_be_first_in_group,
16818 insn_must_be_last_in_group): Adjust.
16819
16820 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16821 Adjust.
16822 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16823 ppc440-fpstore): Adjust.
16824 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16825 ppc476-fpstore): Adjust.
16826 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16827 ppc601-fpstore): Adjust.
16828 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16829 Adjust.
16830 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16831 Adjust.
16832 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16833 ppc7450-fpstore): Adjust.
16834 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16835 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16836 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16837 Adjust.
16838 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16839 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16840 cell-fpstore, cell-fpstore-update): Adjust.
16841 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16842 ppce300c3_store, ppce300c3_fpstore): Adjust.
16843 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16844 e500mc_fpstore): Adjust.
16845 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16846 e500mc64_store, e500mc64_fpstore): Adjust.
16847 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16848 e5500_fpstore): Adjust.
16849 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16850 e6500_fpstore): Adjust.
16851 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16852 Adjust.
16853 * config/rs6000/power4.md (power4-load, power4-load-ext,
16854 power4-load-ext-update, power4-load-ext-update-indexed,
16855 power4-load-update-indexed, power4-load-update, power4-fpload,
16856 power4-fpload-update, power4-store, power4-store-update,
16857 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16858 Adjust.
16859 * config/rs6000/power5.md (power5-load, power5-load-ext,
16860 power5-load-ext-update, power5-load-ext-update-indexed,
16861 power5-load-update-indexed, power5-load-update, power5-fpload,
16862 power5-fpload-update, power5-store, power5-store-update,
16863 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16864 Adjust.
16865 * config/rs6000/power6.md (power6-load, power6-load-ext,
16866 power6-load-update, power6-load-update-indexed,
16867 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16868 power6-fpload-update, power6-store, power6-store-update,
16869 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16870 Adjust.
16871 * config/rs6000/power7.md (power7-load, power7-load-ext,
16872 power7-load-update, power7-load-update-indexed,
16873 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16874 power7-fpload-update, power7-store, power7-store-update,
16875 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16876 Adjust.
16877 * config/rs6000/power8.md (power8-load, power8-load-update,
16878 power8-load-ext, power8-load-ext-update, power8-fpload,
16879 power8-fpload-update, power8-store, power8-store-update-indexed,
16880 power8-fpstore, power8-fpstore-update): Adjust.
16881 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16882 Adjust.
16883 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16884 titan_lsu_store, titan_lsu_fpstore): Adjust.
16885 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16886
16887 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16888
16889 PR target/60884
16890 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16891 unrolled byte insns. Emit address increments after move insns.
16892
16893 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16894
16895 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16896 const_gimple, rather than a gimple.
16897 (gimple_call_builtin_p): Likewise, for the three variants.
16898
16899 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16900 (gimple_call_builtin_p): Likewise, for the three variants.
16901
16902 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16903
16904 PR tree-optimization/61095
16905 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16906
16907 2014-05-07 Richard Biener <rguenther@suse.de>
16908
16909 PR tree-optimization/61034
16910 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16911 (maybe_skip_until): Use translate to take into account
16912 lattices when trying to do disambiguations.
16913 (get_continuation_for_phi_1): Likewise.
16914 (get_continuation_for_phi): Adjust for added translate arguments.
16915 (walk_non_aliased_vuses): Likewise.
16916 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16917 (walk_non_aliased_vuses): Likewise.
16918 (call_may_clobber_ref_p_1): Declare.
16919 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16920 calls. Stop early if we are only supposed to disambiguate.
16921 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16922
16923 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16924
16925 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16926 Emit an error when the function has arguments.
16927
16928 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16929
16930 * cfgloop.h (unswitch_loops): Remove.
16931 * doc/passes.texi: Remove references to loop-unswitch.c
16932 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16933
16934 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16935
16936 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16937 check for loads group of length 3.
16938 (vect_permute_load_chain): New permutations for loads group of
16939 length 3.
16940 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16941 of vec_perm_shuffle for the new permutations.
16942
16943 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16944
16945 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16946 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16947 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
16948 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
16949 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
16950 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
16951 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
16952 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
16953
16954 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16955
16956 * loop-unswitch.c: Delete.
16957
16958 2014-05-07 Richard Biener <rguenther@suse.de>
16959
16960 * config.gcc: Always set need_64bit_hwint to yes.
16961
16962 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
16963
16964 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
16965 of using optimize_size.
16966
16967 2014-05-06 Mike Stump <mikestump@comcast.net>
16968
16969 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
16970
16971 2014-05-06 Joseph Myers <joseph@codesourcery.com>
16972
16973 * config/i386/sse.md (*mov<mode>_internal)
16974 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
16975 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
16976 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
16977 (*<code><mode>3, *andnot<mode>3<mask_name>)
16978 (<mask_codefor><code><mode>3<mask_name>): Only consider
16979 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
16980
16981 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
16982
16983 Revert:
16984 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
16985
16986 * lra-constraints.c (valid_address_p): Move earlier in file.
16987 Add a constraint argument to the address_info version.
16988 (satisfies_memory_constraint_p): New function.
16989 (satisfies_address_constraint_p): Likewise.
16990 (process_alt_operands, curr_insn_transform): Use them.
16991 (process_address): Pass the constraint to valid_address_p when
16992 checking address operands.
16993
16994 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
16995
16996 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
16997 to their respective blocks. Fix inadvertent use of "node".
16998
16999 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17000
17001 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17002 out from...
17003 (init_emit_once): ...here.
17004 * rtl.h (init_derived_machine_modes): Declare.
17005 * toplev.c (do_compile): Call it even if no_backend.
17006
17007 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17008 Mike Stump <mikestump@comcast.net>
17009 Richard Sandiford <rdsandiford@googlemail.com>
17010 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17011
17012 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17013 (rtx_equal_for_memref_p): Update comment.
17014 (adjust_offset_for_component_ref): Use wide-int interfaces.
17015 * builtins.c (get_object_alignment_2): Likewise.
17016 (c_readstr): Likewise.
17017 (target_char_cast): Add comment.
17018 (determine_block_size): Use wide-int interfaces.
17019 (expand_builtin_signbit): Likewise.
17020 (fold_builtin_int_roundingfn): Likewise.
17021 (fold_builtin_bitop): Likewise.
17022 (fold_builtin_bswap): Likewise.
17023 (fold_builtin_logarithm): Use signop.
17024 (fold_builtin_pow): Likewise.
17025 (fold_builtin_memory_op): Use wide-int interfaces.
17026 (fold_builtin_object_size): Likewise.
17027 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17028 nb_iterations_estimate.
17029 (record_niter_bound): Use wide-int interfaces.
17030 (get_estimated_loop_iterations_int): Likewise.
17031 (get_estimated_loop_iterations): Likewise.
17032 (get_max_loop_iterations): Likewise.
17033 * cfgloop.h: Include wide-int.h.
17034 (struct nb_iter_bound): Change bound to widest_int.
17035 (struct loop): Change nb_iterations_upper_bound and
17036 nb_iterations_estimate to widest_int.
17037 (record_niter_bound): Switch to use widest_int.
17038 (get_estimated_loop_iterations): Likewise.
17039 (get_max_loop_iterations): Likewise.
17040 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17041 update for wide-int.
17042 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17043 * combine.c (try_combine): Likewise.
17044 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17045 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17046 interfaces.
17047 (aarch64_float_const_representable_p): Likewise.
17048 * config/arc/arc.c: Include wide-int.h.
17049 (arc_can_use_doloop_p): Use wide-int interfaces.
17050 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17051 (vfp3_const_double_index): Likewise.
17052 * config/avr/avr.c (avr_out_round): Likewise.
17053 (avr_fold_builtin): Likewise.
17054 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17055 (bfin_can_use_doloop_p): Likewise.
17056 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17057 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17058 * config/i386/i386.c: Include wide-int.h.
17059 (ix86_data_alignment): Use wide-int interfaces.
17060 (ix86_local_alignment): Likewise.
17061 (ix86_emit_swsqrtsf): Update real_from_integer.
17062 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17063 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17064 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17065 (zero_constant): Likewise.
17066 (input_operand): Likewise.
17067 (splat_input_operand): Likewise.
17068 (non_logical_cint_operand): Change const_double to const_wide_int.
17069 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17070 (easy_altivec_constant): Remove comment.
17071 (paired_expand_vector_init): Use CONSTANT_P.
17072 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17073 (rs6000_emit_move): Update checks.
17074 (rs6000_aggregate_candidate): Use wide-int interfaces.
17075 (rs6000_expand_ternop_builtin): Likewise.
17076 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17077 (rs6000_assemble_integer): Likewise.
17078 (rs6000_hash_constant): Likewise.
17079 (output_toc): Likewise.
17080 (rs6000_rtx_costs): Likewise.
17081 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17082 * config/rs6000/rs6000-c.c: Include wide-int.h.
17083 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17084 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17085 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17086 Handle CONST_WIDE_INT.
17087 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17088 Use tree_fits_uhwi_p.
17089 * config/sparc/sparc.c: Include wide-int.h.
17090 (sparc_fold_builtin): Use wide-int interfaces.
17091 * config/vax/vax.c: Include wide-int.h.
17092 (vax_float_literal): Use real_from_integer.
17093 * coretypes.h (struct hwivec_def): New.
17094 (hwivec): New.
17095 (const_hwivec): New.
17096 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17097 (equiv_constant): Handle CONST_WIDE_INT.
17098 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17099 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17100 * dbxout.c (stabstr_U): Use wide-int interfaces.
17101 (dbxout_type): Update to use cst_fits_shwi_p.
17102 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17103 (TARGET_SUPPORTS_WIDE_INT): Add default.
17104 * dfp.c: Include wide-int.h.
17105 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17106 decimal_real_to_integer.
17107 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17108 decimal_real_to_integer.
17109 * doc/generic.texi (Constant expressions): Update for wide_int.
17110 * doc/rtl.texi (const_double): Likewise.
17111 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17112 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17113 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17114 (REAL_VALUE_FROM_INT): Remove.
17115 (TARGET_SUPPORTS_WIDE_INT): New.
17116 * doc/tm.texi: Regenerate.
17117 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17118 * double-int.h: Include wide-int.h.
17119 (struct wi::int_traits): New.
17120 * dwarf2out.c (get_full_len): New.
17121 (dw_val_equal_p): Add case dw_val_class_wide_int.
17122 (size_of_loc_descr): Likewise.
17123 (output_loc_operands): Likewise.
17124 (insert_double): Remove.
17125 (insert_wide_int): New.
17126 (add_AT_wide): New.
17127 (print_die): Add case dw_val_class_wide_int.
17128 (attr_checksum): Likewise.
17129 (attr_checksum_ordered): Likewise.
17130 (same_dw_val_p): Likewise.
17131 (size_of_die): Likewise.
17132 (value_format): Likewise.
17133 (output_die): Likewise.
17134 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17135 Use wide-int.
17136 (clz_loc_descriptor): Use wide-int interfaces.
17137 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17138 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17139 (round_up_to_align): Use wide-int interfaces.
17140 (field_byte_offset): Likewise.
17141 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17142 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17143 CONST_DOUBLE handling. Use wide-int interfaces.
17144 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17145 (gen_enumeration_type_die): Use add_AT_wide.
17146 (hash_loc_operands): Add case dw_val_class_wide_int.
17147 (compare_loc_operands): Likewise.
17148 * dwarf2out.h: Include wide-int.h.
17149 (wide_int_ptr): New.
17150 (enum dw_val_class): Add dw_val_class_wide_int.
17151 (struct dw_val_struct): Add val_wide.
17152 * emit-rtl.c (const_wide_int_htab): New.
17153 (const_wide_int_htab_hash): New.
17154 (const_wide_int_htab_eq): New.
17155 (lookup_const_wide_int): New.
17156 (const_double_htab_hash): Use wide-int interfaces.
17157 (const_double_htab_eq): Likewise.
17158 (rtx_to_double_int): Conditionally compile for wide-int.
17159 (immed_double_int_const): Rename to immed_wide_int_const and
17160 update for wide-int.
17161 (immed_double_const): Conditionally compile for wide-int.
17162 (init_emit_once): Use wide-int interfaces.
17163 * explow.c (plus_constant): Likewise.
17164 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17165 (lshift_value): Use wide-int interfaces.
17166 (expand_mult): Likewise.
17167 (choose_multiplier): Likewise.
17168 (expand_smod_pow2): Likewise.
17169 (make_tree): Likewise.
17170 * expr.c (convert_modes): Consolidate handling of constants.
17171 Use wide-int interfaces.
17172 (emit_group_load_1): Add note.
17173 (store_expr): Update comment.
17174 (get_inner_reference): Use wide-int interfaces.
17175 (expand_constructor): Update comment.
17176 (expand_expr_real_2): Use wide-int interfaces.
17177 (expand_expr_real_1): Likewise.
17178 (reduce_to_bit_field_precision): Likewise.
17179 (const_vector_from_tree): Likewise.
17180 * final.c: Include wide-int-print.h.
17181 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17182 * fixed-value.c: Include wide-int.h.
17183 (fixed_from_string): Use wide-int interfaces.
17184 (fixed_to_decimal): Likewise.
17185 (fixed_convert_from_real): Likewise.
17186 (real_convert_from_fixed): Likewise.
17187 * fold-const.h (mem_ref_offset): Return an offset_int.
17188 (div_if_zero_remainder): Remove code parameter.
17189 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17190 Use wide-int interfaces.
17191 (may_negate_without_overflow_p): Use wide-int interfaces.
17192 (negate_expr_p): Likewise.
17193 (fold_negate_expr): Likewise.
17194 (int_const_binop_1): Likewise.
17195 (const_binop): Likewise.
17196 (fold_convert_const_int_from_int): Likewise.
17197 (fold_convert_const_int_from_real): Likewise.
17198 (fold_convert_const_int_from_fixed): Likewise.
17199 (fold_convert_const_fixed_from_int): Likewise.
17200 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17201 (sign_bit_p): Use wide-int interfaces.
17202 (make_range_step): Likewise.
17203 (build_range_check): Likewise. Pass an integer of the correct type
17204 instead of using integer_one_node.
17205 (range_predecessor): Pass an integer of the correct type instead
17206 of using integer_one_node.
17207 (range_successor): Likewise.
17208 (merge_ranges): Likewise.
17209 (unextend): Use wide-int interfaces.
17210 (extract_muldiv_1): Likewise.
17211 (fold_div_compare): Likewise.
17212 (fold_single_bit_test): Likewise.
17213 (fold_sign_changed_comparison): Likewise.
17214 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17215 (fold_plusminus_mult_expr): Use wide-int interfaces.
17216 (native_encode_int): Likewise.
17217 (native_interpret_int): Likewise.
17218 (fold_unary_loc): Likewise.
17219 (pointer_may_wrap_p): Likewise.
17220 (size_low_cst): Likewise.
17221 (mask_with_tz): Likewise.
17222 (fold_binary_loc): Likewise.
17223 (fold_ternary_loc): Likewise.
17224 (multiple_of_p): Likewise.
17225 (tree_call_nonnegative_warnv_p): Update calls to
17226 tree_int_cst_min_precision and real_from_integer.
17227 (fold_negate_const): Use wide-int interfaces.
17228 (fold_abs_const): Likewise.
17229 (fold_relational_const): Use tree_int_cst_lt.
17230 (round_up_loc): Use wide-int interfaces.
17231 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17232 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17233 * gengtype.c: Remove include of double-int.h.
17234 (do_typedef): Use wide-int interfaces.
17235 (open_base_files): Add wide-int.h.
17236 (main): Add offset_int and widest_int typedefs.
17237 * gengtype-lex.l: Handle "^".
17238 (CXX_KEYWORD): Add "static".
17239 * gengtype-parse.c (require3): New.
17240 (require_template_declaration): Handle constant template arguments
17241 and nested templates.
17242 * gengtype-state.c: Don't include "double-int.h".
17243 * genpreds.c (write_one_predicate_function): Update comment.
17244 (write_tm_constrs_h): Add check for hval and lval use in
17245 CONST_WIDE_INT.
17246 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17247 (add_to_sequence): Likewise.
17248 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17249 and const_double_operand.
17250 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17251 interfaces.
17252 * gimple-fold.c (get_base_constructor): Likewise.
17253 (fold_array_ctor_reference): Likewise.
17254 (fold_nonarray_ctor_reference): Likewise.
17255 (fold_const_aggregate_ref_1): Likewise.
17256 (gimple_val_nonnegative_real_p): Likewise.
17257 (gimple_fold_indirect_ref): Likewise.
17258 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17259 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17260 (struct slsr_cand_d): Change index to be widest_int.
17261 (struct incr_info_d): Change incr to be widest_int.
17262 (alloc_cand_and_find_basis): Use wide-int interfaces.
17263 (slsr_process_phi): Likewise.
17264 (backtrace_base_for_ref): Likewise. Return a widest_int.
17265 (restructure_reference): Take a widest_int instead of a double_int.
17266 (slsr_process_ref): Use wide-int interfaces.
17267 (create_mul_ssa_cand): Likewise.
17268 (create_mul_imm_cand): Likewise.
17269 (create_add_ssa_cand): Likewise.
17270 (create_add_imm_cand): Take a widest_int instead of a double_int.
17271 (slsr_process_add): Use wide-int interfaces.
17272 (slsr_process_cast): Likewise.
17273 (slsr_process_copy): Likewise.
17274 (dump_candidate): Likewise.
17275 (dump_incr_vec): Likewise.
17276 (replace_ref): Likewise.
17277 (cand_increment): Likewise. Return a widest_int.
17278 (cand_abs_increment): Likewise.
17279 (replace_mult_candidate): Take a widest_int instead of a double_int.
17280 (replace_unconditional_candidate): Use wide-int interfaces.
17281 (incr_vec_index): Take a widest_int instead of a double_int.
17282 (create_add_on_incoming_edge): Likewise.
17283 (create_phi_basis): Use wide-int interfaces.
17284 (replace_conditional_candidate): Likewise.
17285 (record_increment): Take a widest_int instead of a double_int.
17286 (record_phi_increments): Use wide-int interfaces.
17287 (phi_incr_cost): Take a widest_int instead of a double_int.
17288 (lowest_cost_path): Likewise.
17289 (total_savings): Likewise.
17290 (analyze_increments): Use wide-int interfaces.
17291 (ncd_with_phi): Take a widest_int instead of a double_int.
17292 (ncd_of_cand_and_phis): Likewise.
17293 (nearest_common_dominator_for_cands): Likewise.
17294 (insert_initializers): Use wide-int interfaces.
17295 (all_phi_incrs_profitable): Likewise.
17296 (replace_one_candidate): Likewise.
17297 (replace_profitable_candidates): Likewise.
17298 * godump.c: Include wide-int-print.h.
17299 (go_output_typedef): Use wide-int interfaces.
17300 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17301 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17302 (build_loop_iteration_domains): Likewise.
17303 * hooks.h: Include wide-int.h rather than double-int.h.
17304 (hook_bool_dint_dint_uint_bool_true): Delete.
17305 (hook_bool_wint_wint_uint_bool_true): Declare.
17306 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17307 (hook_bool_wint_wint_uint_bool_true): New.
17308 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17309 interfaces.
17310 (ubsan_expand_si_overflow_mul_check): Likewise.
17311 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17312 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17313 (get_ancestor_addr_info): Likewise.
17314 (ipa_modify_call_arguments): Likewise.
17315 * loop-doloop.c (doloop_modify): Likewise.
17316 (doloop_optimize): Likewise.
17317 * loop-iv.c (iv_number_of_iterations): Likewise.
17318 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17319 (unroll_loop_constant_iterations): Likewise.
17320 (decide_unroll_runtime_iterations): Likewise.
17321 (unroll_loop_runtime_iterations): Likewise.
17322 (decide_peel_simple): Likewise.
17323 (decide_unroll_stupid): Likewise.
17324 * lto-streamer-in.c (streamer_read_wi): Add.
17325 (input_cfg): Use wide-int interfaces.
17326 (lto_input_tree_1): Likewise.
17327 * lto-streamer-out.c (streamer_write_wi): Add.
17328 (hash_tree): Use wide-int interfaces.
17329 (output_cfg): Likewise.
17330 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17331 (GTFILES): Add wide-int.h and signop.h.
17332 (TAGS): Look for .cc files too.
17333 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17334 * optabs.c (expand_subword_shift): Likewise.
17335 (expand_doubleword_shift): Likewise.
17336 (expand_absneg_bit): Likewise.
17337 (expand_copysign_absneg): Likewise.
17338 (expand_copysign_bit): Likewise.
17339 * postreload.c (reload_cse_simplify_set): Likewise.
17340 * predict.c (predict_iv_comparison): Likewise.
17341 * pretty-print.h: Include wide-int-print.h.
17342 (pp_wide_int) New.
17343 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17344 * print-tree.c: Include wide-int-print.h.
17345 (print_node_brief): Use wide-int interfaces.
17346 (print_node): Likewise.
17347 * read-rtl.c (validate_const_wide_int): New.
17348 (read_rtx_code): Add CONST_WIDE_INT case.
17349 * real.c: Include wide-int.h.
17350 (real_to_integer2): Delete.
17351 (real_to_integer): New function, returning a wide_int.
17352 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17353 (ten_to_ptwo): Update call to real_from_integer.
17354 (real_digit): Likewise.
17355 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17356 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17357 (REAL_VALUE_TO_INT): Delete.
17358 (real_to_integer): Declare a wide-int form.
17359 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17360 * recog.c (const_int_operand): Improve comment.
17361 (const_scalar_int_operand): New.
17362 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17363 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17364 (split_double): Likewise.
17365 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17366 (rtx_size): Likewise.
17367 (rtx_alloc_stat_v): New.
17368 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17369 (cwi_output_hex): New.
17370 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17371 (cwi_check_failed_bounds): New.
17372 * rtl.def (CONST_WIDE_INT): New.
17373 * rtl.h: Include <utility> and wide-int.h.
17374 (struct hwivec_def): New.
17375 (CWI_GET_NUM_ELEM): New.
17376 (CWI_PUT_NUM_ELEM): New.
17377 (struct rtx_def): Add num_elem and hwiv.
17378 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17379 (CASE_CONST_UNIQUE): Likewise.
17380 (CASE_CONST_ANY): Likewise.
17381 (CONST_SCALAR_INT_P): Likewise.
17382 (CONST_WIDE_INT_P): New.
17383 (CWI_ELT): New.
17384 (HWIVEC_CHECK): New.
17385 (cwi_check_failed_bounds): New.
17386 (CWI_ELT): New.
17387 (HWIVEC_CHECK): New.
17388 (CONST_WIDE_INT_VEC) New.
17389 (CONST_WIDE_INT_NUNITS) New.
17390 (CONST_WIDE_INT_ELT) New.
17391 (rtx_mode_t): New type.
17392 (wi::int_traits <rtx_mode_t>): New.
17393 (wi::shwi): New.
17394 (wi::min_value): New.
17395 (wi::max_value): New.
17396 (rtx_alloc_v) New.
17397 (const_wide_int_alloc): New.
17398 (immed_wide_int_const): New.
17399 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17400 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17401 * signop.h: New file.
17402 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17403 (simplify_const_unary_operation): Use wide-int interfaces.
17404 (simplify_binary_operation_1): Likewise.
17405 (simplify_const_binary_operation): Likewise.
17406 (simplify_const_relational_operation): Likewise.
17407 (simplify_immed_subreg): Likewise.
17408 * stmt.c (expand_case): Likewise.
17409 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17410 signop rather than a bool.
17411 * stor-layout.c (layout_type): Use wide-int interfaces.
17412 (initialize_sizetypes): Update calls to
17413 set_min_and_max_values_for_integral_type.
17414 (set_min_and_max_values_for_integral_type): Take a signop rather
17415 than a bool. Use wide-int interfaces.
17416 (fixup_signed_type): Update accordingly. Remove
17417 HOST_BITS_PER_DOUBLE_INT limit.
17418 (fixup_unsigned_type): Likewise.
17419 * system.h (STATIC_CONSTANT_P): New.
17420 (STATIC_ASSERT): New.
17421 * target.def (can_use_doloop_p): Take widest_ints rather than
17422 double_ints.
17423 * target.h: Include wide-int.h rather than double-int.h.
17424 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17425 than double_ints.
17426 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17427 rather than INT_CST_LT_UNSIGNED.
17428 (can_use_doloop_if_innermost): Take widest_ints rather than
17429 double_ints.
17430 * tree-affine.c: Include wide-int-print.h.
17431 (double_int_ext_for_comb): Delete.
17432 (wide_int_ext_for_comb): New.
17433 (aff_combination_zero): Use wide-int interfaces.
17434 (aff_combination_const): Take a widest_int instead of a double_int.
17435 (aff_combination_elt): Use wide-int interfaces.
17436 (aff_combination_scale): Take a widest_int instead of a double_int.
17437 (aff_combination_add_elt): Likewise.
17438 (aff_combination_add_cst): Likewise.
17439 (aff_combination_add): Use wide-int interfaces.
17440 (aff_combination_convert): Likewise.
17441 (tree_to_aff_combination): Likewise.
17442 (add_elt_to_tree): Take a widest_int instead of a double_int.
17443 (aff_combination_to_tree): Use wide-int interfaces.
17444 (aff_combination_remove_elt): Likewise.
17445 (aff_combination_add_product): Take a widest_int instead of
17446 a double_int.
17447 (aff_combination_mult): Use wide-int interfaces.
17448 (aff_combination_expand): Likewise.
17449 (double_int_constant_multiple_p): Delete.
17450 (wide_int_constant_multiple_p): New.
17451 (aff_combination_constant_multiple_p): Take a widest_int pointer
17452 instead of a double_int pointer.
17453 (print_aff): Use wide-int interfaces.
17454 (get_inner_reference_aff): Take a widest_int pointer
17455 instead of a double_int pointer.
17456 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17457 * tree-affine.h: Include wide-int.h.
17458 (struct aff_comb_elt): Change type of coef to widest_int.
17459 (struct affine_tree_combination): Change type of offset to widest_int.
17460 (double_int_ext_for_comb): Delete.
17461 (wide_int_ext_for_comb): New.
17462 (aff_combination_const): Use widest_int instead of double_int.
17463 (aff_combination_scale): Likewise.
17464 (aff_combination_add_elt): Likewise.
17465 (aff_combination_constant_multiple_p): Likewise.
17466 (get_inner_reference_aff): Likewise.
17467 (aff_comb_cannot_overlap_p): Likewise.
17468 (aff_combination_zero_p): Use wide-int interfaces.
17469 * tree.c: Include tree.h.
17470 (init_ttree): Use make_int_cst.
17471 (tree_code_size): Removed code for INTEGER_CST case.
17472 (tree_size): Add INTEGER_CST case.
17473 (make_node_stat): Update comment.
17474 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17475 (build_int_cst_type): Use wide-int interfaces.
17476 (double_int_to_tree): Likewise.
17477 (double_int_fits_to_tree_p): Delete.
17478 (force_fit_type_double): Delete.
17479 (force_fit_type): New.
17480 (int_cst_hash_hash): Use wide-int interfaces.
17481 (int_cst_hash_eq): Likewise.
17482 (build_int_cst_wide): Delete.
17483 (wide_int_to_tree): New.
17484 (cache_integer_cst): Use wide-int interfaces.
17485 (build_low_bits_mask): Likewise.
17486 (cst_and_fits_in_hwi): Likewise.
17487 (real_value_from_int_cst): Likewise.
17488 (make_int_cst_stat): New.
17489 (integer_zerop): Use wide_int interfaces.
17490 (integer_onep): Likewise.
17491 (integer_all_onesp): Likewise.
17492 (integer_pow2p): Likewise.
17493 (integer_nonzerop): Likewise.
17494 (tree_log2): Likewise.
17495 (tree_floor_log2): Likewise.
17496 (tree_ctz): Likewise.
17497 (int_size_in_bytes): Likewise.
17498 (mem_ref_offset): Return an offset_int rather than a double_int.
17499 (build_type_attribute_qual_variant): Use wide_int interfaces.
17500 (type_hash_eq): Likewise
17501 (tree_int_cst_equal): Likewise.
17502 (tree_int_cst_lt): Delete.
17503 (tree_int_cst_compare): Likewise.
17504 (tree_fits_shwi_p): Use wide_int interfaces.
17505 (tree_fits_uhwi_p): Likewise.
17506 (tree_int_cst_sign_bit): Likewise.
17507 (tree_int_cst_sgn): Likewise.
17508 (tree_int_cst_min_precision): Take a signop rather than a bool.
17509 (simple_cst_equal): Use wide_int interfaces.
17510 (compare_tree_int): Likewise.
17511 (iterative_hash_expr): Likewise.
17512 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17513 INT_CST_LT.
17514 (get_type_static_bounds): Use wide_int interfaces.
17515 (tree_int_cst_elt_check_failed): New.
17516 (build_common_tree_nodes): Reordered to set prec before filling in
17517 value.
17518 (int_cst_value): Check cst_and_fits_in_hwi.
17519 (widest_int_cst_value): Use wide_int interfaces.
17520 (upper_bound_in_type): Likewise.
17521 (lower_bound_in_type): Likewise.
17522 (num_ending_zeros): Likewise.
17523 (drop_tree_overflow): Likewise.
17524 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17525 (gen_conditions_for_pow_cst_base): Likewise.
17526 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17527 (group_case_labels_stmt): Use wide-int interfaces.
17528 (verify_gimple_assign_binary): Likewise.
17529 (print_loop): Likewise.
17530 * tree-chrec.c (tree_fold_binomial): Likewise.
17531 * tree-core.h (struct tree_base): Add int_length.
17532 (struct tree_int_cst): Change rep of value.
17533 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17534 (dr_may_alias_p): Likewise.
17535 (max_stmt_executions_tree): Likewise.
17536 * tree.def (INTEGER_CST): Update comment.
17537 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17538 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17539 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17540 (dequeue_and_dump): Use wide-int interfaces.
17541 * tree.h: Include wide-int.h.
17542 (NULL_TREE): Moved to earlier loc in file.
17543 (TREE_INT_CST_ELT_CHECK): New.
17544 (tree_int_cst_elt_check_failed): New.
17545 (TYPE_SIGN): New.
17546 (TREE_INT_CST): Delete.
17547 (TREE_INT_CST_LOW): Use wide-int interfaces.
17548 (TREE_INT_CST_HIGH): Delete.
17549 (TREE_INT_CST_NUNITS): New.
17550 (TREE_INT_CST_EXT_NUNITS): Likewise.
17551 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17552 (TREE_INT_CST_ELT): Likewise.
17553 (INT_CST_LT): Delete.
17554 (tree_int_cst_elt_check): New (two forms).
17555 (type_code_size): Update comment.
17556 (make_int_cst_stat, make_int_cst): New.
17557 (tree_to_double_int): Delete.
17558 (double_int_fits_to_tree_p): Delete.
17559 (force_fit_type_double): Delete.
17560 (build_int_cstu): Replace with out-of-line function.
17561 (build_int_cst_wide): Delete.
17562 (tree_int_cst_lt): Define inline.
17563 (tree_int_cst_le): New.
17564 (tree_int_cst_compare): Define inline.
17565 (tree_int_cst_min_precision): Take a signop rather than a bool.
17566 (wi::int_traits <const_tree>): New.
17567 (wi::int_traits <tree>): New.
17568 (wi::extended_tree): New.
17569 (wi::int_traits <wi::extended_tree>): New.
17570 (wi::to_widest): New.
17571 (wi::to_offset): New.
17572 (wi::fits_to_tree_p): New.
17573 (wi::min_value): New.
17574 (wi::max_value): New.
17575 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17576 (copy_tree_body_r): Likewise.
17577 * tree-object-size.c (compute_object_offset): Likewise.
17578 (addr_object_size): Likewise.
17579 * tree-predcom.c: Include wide-int-print.h.
17580 (struct dref_d): Change type of offset to widest_int.
17581 (dump_dref): Call wide-int printer.
17582 (aff_combination_dr_offset): Use wide-int interfaces.
17583 (determine_offset): Take a widest_int pointer rather than a
17584 double_int pointer.
17585 (split_data_refs_to_components): Use wide-int interfaces.
17586 (suitable_component_p): Likewise.
17587 (order_drefs): Likewise.
17588 (add_ref_to_chain): Likewise.
17589 (valid_initializer_p): Likewise.
17590 (determine_roots_comp): Likewise.
17591 * tree-pretty-print.c: Include wide-int-print.h.
17592 (dump_generic_node): Use wide-int interfaces.
17593 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17594 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17595 (move_fixed_address_to_symbol): Likewise.
17596 (move_hint_to_base): Likewise.
17597 (move_pointer_to_base): Likewise.
17598 (move_variant_to_index): Likewise.
17599 (most_expensive_mult_to_index): Likewise.
17600 (addr_to_parts): Likewise.
17601 (copy_ref_info): Likewise.
17602 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17603 (indirect_refs_may_alias_p): Likewise.
17604 (stmt_kills_ref_p_1): Likewise.
17605 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17606 * tree-ssa-ccp.c: Update comment at top of file. Include
17607 wide-int-print.h.
17608 (struct prop_value_d): Change type of mask to widest_int.
17609 (extend_mask): New function.
17610 (dump_lattice_value): Use wide-int interfaces.
17611 (get_default_value): Likewise.
17612 (set_constant_value): Likewise.
17613 (set_value_varying): Likewise.
17614 (valid_lattice_transition): Likewise.
17615 (set_lattice_value): Likewise.
17616 (value_to_double_int): Delete.
17617 (value_to_wide_int): New.
17618 (get_value_from_alignment): Use wide-int interfaces.
17619 (get_value_for_expr): Likewise.
17620 (do_dbg_cnt): Likewise.
17621 (ccp_finalize): Likewise.
17622 (ccp_lattice_meet): Likewise.
17623 (bit_value_unop_1): Use widest_ints rather than double_ints.
17624 (bit_value_binop_1): Likewise.
17625 (bit_value_unop): Use wide-int interfaces.
17626 (bit_value_binop): Likewise.
17627 (bit_value_assume_aligned): Likewise.
17628 (evaluate_stmt): Likewise.
17629 (ccp_fold_stmt): Likewise.
17630 (visit_cond_stmt): Likewise.
17631 (ccp_visit_stmt): Likewise.
17632 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17633 (constant_pointer_difference): Likewise.
17634 (associate_pointerplus): Likewise.
17635 (combine_conversions): Likewise.
17636 * tree-ssa-loop.h: Include wide-int.h.
17637 (struct tree_niter_desc): Change type of max to widest_int.
17638 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17639 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17640 (remove_redundant_iv_tests): Likewise.
17641 (canonicalize_loop_induction_variables): Likewise.
17642 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17643 (constant_multiple_of): Take a widest_int pointer instead of
17644 a double_int pointer.
17645 (get_computation_aff): Use wide-int interfaces.
17646 (ptr_difference_cost): Likewise.
17647 (difference_cost): Likewise.
17648 (get_loop_invariant_expr_id): Likewise.
17649 (get_computation_cost_at): Likewise.
17650 (iv_elimination_compare_lt): Likewise.
17651 (may_eliminate_iv): Likewise.
17652 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17653 instead of double_int.
17654 (max_loop_iterations): Likewise.
17655 (max_stmt_executions): Likewise.
17656 (estimated_stmt_executions): Likewise.
17657 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17658 (split_to_var_and_offset): Use wide-int interfaces.
17659 (determine_value_range): Likewise.
17660 (bound_difference_of_offsetted_base): Likewise.
17661 (bounds_add): Take a widest_int instead of a double_int.
17662 (number_of_iterations_ne_max): Use wide-int interfaces.
17663 (number_of_iterations_ne): Likewise.
17664 (number_of_iterations_lt_to_ne): Likewise.
17665 (assert_loop_rolls_lt): Likewise.
17666 (number_of_iterations_lt): Likewise.
17667 (number_of_iterations_le): Likewise.
17668 (number_of_iterations_cond): Likewise.
17669 (number_of_iterations_exit): Likewise.
17670 (finite_loop_p): Likewise.
17671 (derive_constant_upper_bound_assign): Likewise.
17672 (derive_constant_upper_bound): Return a widest_int.
17673 (derive_constant_upper_bound_ops): Likewise.
17674 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17675 (record_estimate): Take a widest_int rather than a double_int.
17676 (record_nonwrapping_iv): Use wide-int interfaces.
17677 (double_int_cmp): Delete.
17678 (wide_int_cmp): New.
17679 (bound_index): Take a widest_int rather than a double_int.
17680 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17681 (maybe_lower_iteration_bound): Likewise.
17682 (estimate_numbers_of_iterations_loop): Likewise.
17683 (estimated_loop_iterations): Take a widest_int pointer than than
17684 a double_int pointer.
17685 (estimated_loop_iterations_int): Use wide-int interfaces.
17686 (max_loop_iterations): Take a widest_int pointer than than
17687 a double_int pointer.
17688 (max_loop_iterations_int): Use wide-int interfaces.
17689 (max_stmt_executions): Take a widest_int pointer than than
17690 a double_int pointer.
17691 (estimated_stmt_executions): Likewise.
17692 (n_of_executions_at_most): Use wide-int interfaces.
17693 (scev_probably_wraps_p): Likewise.
17694 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17695 to real_to_integer.
17696 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17697 interfaces.
17698 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17699 double_ints. Adjust for trailing_wide_ints <3> representation.
17700 (set_nonzero_bits): Likewise.
17701 (get_range_info): Return wide_ints rather than double_ints.
17702 Adjust for trailing_wide_ints <3> representation.
17703 (get_nonzero_bits): Likewise.
17704 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17705 representation.
17706 * tree-ssanames.h (struct range_info_def): Replace min, max and
17707 nonzero_bits with a trailing_wide_ints <3>.
17708 (set_range_info): Use wide_int_refs rather than double_ints.
17709 (set_nonzero_bits): Likewise.
17710 (get_range_info): Return wide_ints rather than double_ints.
17711 (get_nonzero_bits): Likewise.
17712 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17713 * tree-ssa-pre.c (phi_translate_1): Likewise.
17714 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17715 (acceptable_pow_call): Likewise.
17716 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17717 interfaces.
17718 (vn_reference_fold_indirect): Likewise.
17719 (vn_reference_maybe_forwprop_address): Likewise.
17720 (valueize_refs_1): Likewise.
17721 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17722 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17723 tree_int_cst_lt and tree_int_cst_le.
17724 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17725 interfaces.
17726 (streamer_alloc_tree): Likewise.
17727 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17728 (streamer_write_tree_header): Likewise.
17729 (streamer_write_integer_cst): Likewise.
17730 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17731 (build_constructors): Likewise.
17732 (array_value_type): Likewise.
17733 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17734 (vect_check_gather): Likewise.
17735 * tree-vect-generic.c (build_replicated_const): Likewise.
17736 (expand_vector_divmod): Likewise.
17737 * tree-vect-loop.c (vect_transform_loop): Likewise.
17738 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17739 (vect_do_peeling_for_alignment): Likewise.
17740 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17741 * tree-vrp.c: Include wide-int.h.
17742 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17743 (extract_range_from_assert): Use wide-int interfaces.
17744 (vrp_int_const_binop): Likewise.
17745 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17746 double_int pointers.
17747 (ranges_from_anti_range): Use wide-int interfaces.
17748 (quad_int_cmp): Delete.
17749 (quad_int_pair_sort): Likewise.
17750 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17751 (extract_range_from_unary_expr_1): Likewise.
17752 (adjust_range_with_scev): Likewise.
17753 (masked_increment): Take and return wide_ints rather than double_ints.
17754 (register_edge_assert_for_2): Use wide-int interfaces.
17755 (check_array_ref): Likewise.
17756 (search_for_addr_array): Likewise.
17757 (maybe_set_nonzero_bits): Likewise.
17758 (union_ranges): Pass an integer of the correct type instead of
17759 using integer_one_node.
17760 (intersect_ranges): Likewise.
17761 (simplify_truth_ops_using_ranges): Likewise.
17762 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17763 (range_fits_type_p): Likewise.
17764 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17765 a bool.
17766 (simplify_conversion_using_ranges): Use wide-int interfaces.
17767 (simplify_float_conversion_using_ranges): Likewise.
17768 (vrp_finalize): Likewise.
17769 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17770 (gimple_stringops_transform): Likewise.
17771 * varasm.c (decode_addr_const): Likewise.
17772 (const_hash_1): Likewise.
17773 (const_rtx_hash_1): Likewise
17774 (output_constant): Likewise.
17775 (array_size_for_constructor): Likewise.
17776 (output_constructor_regular_field): Likewise.
17777 (output_constructor_bitfield): Likewise.
17778 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17779 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17780 GENERATOR_FILEs.
17781 * gencheck.c: Define BITS_PER_UNIT.
17782 * wide-int.cc: New.
17783 * wide-int.h: New.
17784 * wide-int-print.cc: New.
17785 * wide-int-print.h: New.
17786
17787 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17788
17789 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17790
17791 2014-05-06 Richard Biener <rguenther@suse.de>
17792
17793 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17794 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17795 (TODO_verify_all): Adjust.
17796 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17797 TODO_verify_stmts and TODO_verify_rtl_sharing.
17798 * bb-reorder.c: Likewise.
17799 * cfgexpand.c: Likewise.
17800 * cprop.c: Likewise.
17801 * cse.c: Likewise.
17802 * function.c: Likewise.
17803 * fwprop.c: Likewise.
17804 * gcse.c: Likewise.
17805 * gimple-ssa-isolate-paths.c: Likewise.
17806 * gimple-ssa-strength-reduction.c: Likewise.
17807 * ipa-split.c: Likewise.
17808 * loop-init.c: Likewise.
17809 * loop-unroll.c: Likewise.
17810 * lower-subreg.c: Likewise.
17811 * modulo-sched.c: Likewise.
17812 * postreload-gcse.c: Likewise.
17813 * predict.c: Likewise.
17814 * recog.c: Likewise.
17815 * sched-rgn.c: Likewise.
17816 * store-motion.c: Likewise.
17817 * tracer.c: Likewise.
17818 * trans-mem.c: Likewise.
17819 * tree-call-cdce.c: Likewise.
17820 * tree-cfg.c: Likewise.
17821 * tree-cfgcleanup.c: Likewise.
17822 * tree-complex.c: Likewise.
17823 * tree-eh.c: Likewise.
17824 * tree-emutls.c: Likewise.
17825 * tree-if-conv.c: Likewise.
17826 * tree-into-ssa.c: Likewise.
17827 * tree-loop-distribution.c: Likewise.
17828 * tree-object-size.c: Likewise.
17829 * tree-parloops.c: Likewise.
17830 * tree-pass.h: Likewise.
17831 * tree-sra.c: Likewise.
17832 * tree-ssa-ccp.c: Likewise.
17833 * tree-ssa-copy.c: Likewise.
17834 * tree-ssa-copyrename.c: Likewise.
17835 * tree-ssa-dce.c: Likewise.
17836 * tree-ssa-dom.c: Likewise.
17837 * tree-ssa-dse.c: Likewise.
17838 * tree-ssa-forwprop.c: Likewise.
17839 * tree-ssa-ifcombine.c: Likewise.
17840 * tree-ssa-loop-ch.c: Likewise.
17841 * tree-ssa-loop-ivcanon.c: Likewise.
17842 * tree-ssa-loop.c: Likewise.
17843 * tree-ssa-math-opts.c: Likewise.
17844 * tree-ssa-phiopt.c: Likewise.
17845 * tree-ssa-phiprop.c: Likewise.
17846 * tree-ssa-pre.c: Likewise.
17847 * tree-ssa-reassoc.c: Likewise.
17848 * tree-ssa-sink.c: Likewise.
17849 * tree-ssa-strlen.c: Likewise.
17850 * tree-ssa-tail-merge.c: Likewise.
17851 * tree-ssa-uncprop.c: Likewise.
17852 * tree-switch-conversion.c: Likewise.
17853 * tree-tailcall.c: Likewise.
17854 * tree-vect-generic.c: Likewise.
17855 * tree-vectorizer.c: Likewise.
17856 * tree-vrp.c: Likewise.
17857 * tsan.c: Likewise.
17858 * var-tracking.c: Likewise.
17859 * bt-load.c: Likewise.
17860 * cfgcleanup.c: Likewise.
17861 * combine-stack-adj.c: Likewise.
17862 * combine.c: Likewise.
17863 * compare-elim.c: Likewise.
17864 * config/epiphany/resolve-sw-modes.c: Likewise.
17865 * config/i386/i386.c: Likewise.
17866 * config/mips/mips.c: Likewise.
17867 * config/s390/s390.c: Likewise.
17868 * config/sh/sh_treg_combine.cc: Likewise.
17869 * config/sparc/sparc.c: Likewise.
17870 * dce.c: Likewise.
17871 * dse.c: Likewise.
17872 * final.c: Likewise.
17873 * ifcvt.c: Likewise.
17874 * mode-switching.c: Likewise.
17875 * passes.c: Likewise.
17876 * postreload.c: Likewise.
17877 * ree.c: Likewise.
17878 * reg-stack.c: Likewise.
17879 * regcprop.c: Likewise.
17880 * regrename.c: Likewise.
17881 * web.c: Likewise.
17882
17883 2014-05-06 Richard Biener <rguenther@suse.de>
17884
17885 PR middle-end/61070
17886 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17887 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17888
17889 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17890
17891 PR ipa/60965
17892 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17893
17894 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17895 Tom de Vries <tom@codesourcery.com>
17896
17897 * target.def (call_fusage_contains_non_callee_clobbers): New
17898 DEFHOOKPOD.
17899 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17900 Hooks to @menu.
17901 (@node Miscellaneous Register Hooks): New node.
17902 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17903 * doc/tm.texi: Regenerate.
17904
17905 2014-05-05 Marek Polacek <polacek@redhat.com>
17906
17907 PR driver/61065
17908 * opts.c (common_handle_option): Call error_at instead of warning_at.
17909
17910 2014-05-05 Richard Biener <rguenther@suse.de>
17911
17912 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17913 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17914 under the TODO_verify_il umbrella.
17915
17916 2014-05-05 Richard Biener <rguenther@suse.de>
17917
17918 * passes.c (execute_function_todo): Move TODO_verify_flow under
17919 the TODO_verify_ul umbrella.
17920
17921 2014-05-05 Richard Biener <rguenther@suse.de>
17922
17923 PR middle-end/61010
17924 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17925 X & CST away from a CST that is the mask of a mode.
17926
17927 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17928
17929 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17930 int argument to enum machine_mode.
17931 (picochip_class_max_nregs): Ditto.
17932 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17933 (picochip_class_max_nregs): Ditto.
17934
17935 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17936
17937 * target.def: Add new target hook.
17938 * doc/tm.texi: Regenerate.
17939 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17940 * targhooks.c (default_keep_leaf_when_profiled): New function.
17941
17942 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17943 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17944
17945 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17946
17947 PR tree-optimization/60363
17948 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
17949 (copy_phi_args): New parameters. Call get_value_locus_in_path.
17950 (update_destination_phis): New parameter.
17951 (create_edge_and_update_destination_phis): Ditto.
17952 (ssa_fix_duplicate_block_edges): Pass new arguments.
17953 (thread_single_edge): Ditto.
17954
17955 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
17956
17957 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
17958 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
17959 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
17960 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
17961 Use RS6000_BTM_HARD_FLOAT.
17962 (BU_MISC_2): Likewise.
17963 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
17964 RS6000_BTM_HARD_FLOAT.
17965 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
17966 is explicitly used.
17967 (rs6000_invalid_builtin): Add hard floating builtin support.
17968 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
17969 hard float builtins.
17970 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
17971
17972 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
17973
17974 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
17975 Add missing function* argument.
17976
17977 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17978
17979 * lra-constraints.c (valid_address_p): Move earlier in file.
17980 Add a constraint argument to the address_info version.
17981 (satisfies_memory_constraint_p): New function.
17982 (satisfies_address_constraint_p): Likewise.
17983 (process_alt_operands, curr_insn_transform): Use them.
17984 (process_address): Pass the constraint to valid_address_p when
17985 checking address operands.
17986
17987 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17988
17989 * config/mips/mips.c (mips_isa_rev): New variable.
17990 (mips_set_architecture): Set it.
17991 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
17992 from mips_isa_rev.
17993 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
17994 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
17995 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
17996 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
17997 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
17998 conditions in terms of mips_isa_rev.
17999 (mips_isa_rev): Declare.
18000
18001 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18002
18003 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18004 (prob_unlikely, prob_likely): Make variables const.
18005
18006 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18007
18008 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18009
18010 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18011
18012 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18013
18014 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18015
18016 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18017 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18018 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18019 functions.
18020 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18021 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18022 sh_pass_in_reg_p.
18023 Replace usage of ROUND_REG with sh_round_reg.
18024 Use CEIL instead of ROUND_ADVANCE.
18025
18026 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18027
18028 PR target/61026
18029 * config/sh/sh.c: Include stdlib headers before everything else.
18030
18031 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18032
18033 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18034 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18035 (gimplify_adjust_omp_clauses): Simd region is never
18036 directly nested in combined parallel. Instead, for linear
18037 with copyin/copyout, if in combined for simd loop, make decl
18038 firstprivate/lastprivate on OMP_FOR.
18039 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18040 expand_omp_for_static_chunk): When setting endvar, also set
18041 fd->loop.v to the same value.
18042
18043 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18044
18045 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18046
18047 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18048
18049 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18050 expression.
18051
18052 2014-05-02 Marek Polacek <polacek@redhat.com>
18053
18054 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18055
18056 2014-05-02 Kito Cheng <kito@0xlab.org>
18057
18058 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18059 to a C expression marco.
18060 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18061 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18062 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18063 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18064 HONOR_REG_ALLOC_ORDER.
18065 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18066
18067 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18068
18069 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18070
18071 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18072
18073 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18074
18075 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18076
18077 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18078 (convert_scalar_cond_reduction): Likewise.
18079 (predicate_scalar_phi): Add recognition and transformation
18080 of simple conditioanl reduction to be vectorizable.
18081
18082 2014-05-01 Marek Polacek <polacek@redhat.com>
18083
18084 PR c/43245
18085 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18086
18087 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18088
18089 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18090 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18091 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18092 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18093 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18094 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18095 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18096 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18097
18098 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18099
18100 * config/arc/arc.opt (mlra): Move comment above option name
18101 to avoid mis-parsing as language options.
18102
18103 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18104
18105 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18106 * config/sol2.h: ... here.
18107 * config/sol2-10.h: Remove.
18108
18109 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18110 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18111 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18112 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18113 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18114 * config/sol2.h: ... here.
18115 (SECTION_NAME_FORMAT): Don't redefine.
18116 (STARTFILE_ARCH32_SPEC): Rename to ...
18117 (STARTFILE_ARCH_SPEC): ... this.
18118 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18119 * config/sparc/sol2.h: ... here.
18120 (SECTION_NAME_FORMAT): Don't undef.
18121 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18122 (SUBTARGET_EXTRA_SPECS): Remove.
18123 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18124
18125 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18126 (MD_STARTFILE_PREFIX): Remove.
18127 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18128 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18129 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18130 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18131 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18132 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18133 * config/i386/sol2.h: ... here.
18134 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18135 * config/i386/sol2-bi.h: Remove.
18136 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18137 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18138
18139 * config/i386/t-sol2-64: Rename to ...
18140 * config/i386/t-sol2: ... this.
18141 * config/sparc/t-sol2-64: Rename to ...
18142 * config/sparc/t-sol2: ... this.
18143
18144 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18145 sol2_tm_file_head, sol2_tm_file_tail.
18146 Include ${cpu_type}/sol2.h before sol2.h.
18147 Remove sol2-10.h.
18148 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18149 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18150 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18151 Reflect i386/t-sol2-64 renaming.
18152 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18153 Reflect sparc/t-sol2-64 renaming.
18154
18155 2014-04-30 Richard Biener <rguenther@suse.de>
18156
18157 * passes.c (execute_function_todo): Move TODO_verify_stmts
18158 and TODO_verify_ssa under the TODO_verify_il umbrella.
18159 * tree-ssa.h (verify_ssa): Adjust prototype.
18160 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18161 we should verify SSA operands.
18162 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18163 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18164 whether we should verify whether not throwing stmts have EH info.
18165 * graphite-scop-detection.c (create_sese_edges): Adjust.
18166 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18167 * tree-eh.c (lower_try_finally_switch): Do not add the
18168 default case label twice.
18169
18170 2014-04-30 Marek Polacek <polacek@redhat.com>
18171
18172 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18173 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18174 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18175 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18176
18177 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18178
18179 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18180 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18181 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18182 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18183 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18184 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18185 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18186 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18187
18188 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18189
18190 * tree-cfg.c (dump_function_to_file): Dump the return type of
18191 functions, in a line to itself before the function body, mimicking
18192 the layout of a C function.
18193
18194 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18195
18196 PR tree-optimization/60971
18197 * tree-tailcall.c (process_assignment): Reject conversions which
18198 reduce precision.
18199
18200 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18201
18202 * calls.c (initialize_argument_information): Always treat
18203 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18204 (expand_call): Likewise.
18205 (emit_library_call_calue_1): Likewise.
18206 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18207 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18208 code accordingly.
18209
18210 2014-04-29 Nick Clifton <nickc@redhat.com>
18211
18212 * config/msp430/msp430.md (umulsidi): Fix typo.
18213 (mulhisi3): Enable even inside interrupt handlers.
18214 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18215 bigger return address pushed in large mode.
18216
18217 2014-04-29 Nick Clifton <nickc@redhat.com>
18218
18219 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18220 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18221 available modes.
18222 * config/m32r/m32r.c (init_reg_tables): Likewise.
18223 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18224 enum to hold the modes.
18225
18226 2014-04-29 Richard Biener <rguenther@suse.de>
18227
18228 * dominance.c (free_dominance_info): Add overload with
18229 function parameter.
18230 (dom_info_state): Likewise.
18231 (dom_info_available_p): Likewise.
18232 * basic-block.h (free_dominance_info, dom_info_state,
18233 dom_info_available_p): Declare overloads.
18234 * passes.c (execute_function_todo): Verify that verifiers
18235 don't change dominator info state. Drop dominator info
18236 for IPA pass invocations.
18237 * cgraph.c (release_function_body): Restore asserts that
18238 dominator information is released.
18239
18240 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18241
18242 * doc/invoke.texi: Fix typo.
18243 * tree-vrp.c: Fix typos.
18244 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18245
18246 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18247
18248 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18249
18250 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18251
18252 * config/aarch64/aarch64-builtins.c
18253 (aarch64_types_storestruct_lane_qualifiers): New.
18254 (TYPES_STORESTRUCT_LANE): Likewise.
18255 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18256 (st3_lane): Likewise.
18257 (st4_lane): Likewise.
18258 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18259 (vec_store_lanesci_lane<mode>): Likewise.
18260 (vec_store_lanesxi_lane<mode>): Likewise.
18261 (aarch64_st2_lane<VQ:mode>): Likewise.
18262 (aarch64_st3_lane<VQ:mode>): Likewise.
18263 (aarch64_st4_lane<VQ:mode>): Likewise.
18264 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18265 * config/aarch64/arm_neon.h
18266 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18267 use new macro arguments.
18268 (__ST3_LANE_FUNC): Likewise.
18269 (__ST4_LANE_FUNC): Likewise.
18270 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18271 (V_THREE_ELEM): Likewise.
18272 (V_FOUR_ELEM): Likewise.
18273
18274 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18275
18276 * doc/gimple.texi: Replace the description of the now-defunct
18277 union gimple_statement_d with a diagram showing the
18278 gimple_statement_base class hierarchy and its relationships to
18279 the GSS_ and GIMPLE_ enums.
18280
18281 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18282
18283 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18284 * config/aarch64/aarch64.c
18285 (aarch64_cannot_change_mode_class): Weaken conditions.
18286 (aarch64_modes_tieable_p): New.
18287 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18288
18289 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18290
18291 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18292 (loadsync_<mode>): Change mode.
18293 (load_quadpti, store_quadpti): New.
18294 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18295 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18296
18297 2014-04-28 Martin Jambor <mjambor@suse.cz>
18298
18299 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18300 same alias type as the original statement.
18301 (subreplacement_assignment_data): New type.
18302 (handle_unscalarized_data_in_subtree): New type of parameter,
18303 generate new memory accesses with same alias type as the original
18304 statement.
18305 (load_assign_lhs_subreplacements): Likewise.
18306 (sra_modify_constructor_assign): Generate new memory accesses with
18307 same alias type as the original statement.
18308
18309 2014-04-28 Richard Biener <rguenther@suse.de>
18310
18311 * tree-pass.h (TODO_verify_il): Define.
18312 (TODO_verify_all): Complete properly.
18313 * passes.c (execute_function_todo): Move existing loop-closed
18314 SSA verification under TODO_verify_il.
18315 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18316 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18317 Fix tree sharing issue.
18318
18319 2014-04-28 Richard Biener <rguenther@suse.de>
18320
18321 PR middle-end/60092
18322 * builtins.def (DEF_C11_BUILTIN): Add.
18323 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18324 * coretypes.h (enum function_class): Add function_c11_misc.
18325 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18326 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18327 (call_may_clobber_ref_p_1): Likewise.
18328 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18329 (mark_all_reaching_defs_necessary_1): Likewise.
18330 (propagate_necessity): Likewise.
18331 (eliminate_unnecessary_stmts): Likewise.
18332 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18333
18334 2014-04-28 Richard Biener <rguenther@suse.de>
18335
18336 * tree-vrp.c (vrp_var_may_overflow): Remove.
18337 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18338 with overflow immediately bump to one before that value and
18339 let iteration figure out overflow status.
18340
18341 2014-04-28 Richard Biener <rguenther@suse.de>
18342
18343 * configure.ac: Do valgrind header checks unconditionally.
18344 Add --enable-valgrind-annotations.
18345 * system.h: Guard valgrind header inclusion with
18346 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18347 * alloc-pool.c (pool_alloc, pool_free): Use
18348 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18349 to guard possibly dead code.
18350 * config.in: Regenerated.
18351 * configure: Likewise.
18352
18353 2014-04-28 Jeff Law <law@redhat.com>
18354
18355 PR tree-optimization/60902
18356 * tree-ssa-threadedge.c
18357 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18358 over real defs when invalidating outputs from statements that do not
18359 produce useful outputs for threading.
18360
18361 2014-04-28 Richard Biener <rguenther@suse.de>
18362
18363 PR tree-optimization/60979
18364 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18365 SCOPs that end in a block with a successor with abnormal
18366 predecessors.
18367
18368 2014-04-28 Richard Biener <rguenther@suse.de>
18369
18370 * tree-pass.h (execute_pass_list): Adjust prototype.
18371 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18372 (do_per_function): Change callback signature, push all actual
18373 work to the callbals.
18374 (do_per_function_toporder): Likewise.
18375 (execute_function_dump): Adjust.
18376 (execute_function_todo): Likewise.
18377 (clear_last_verified): Likewise.
18378 (verify_curr_properties): Likewise.
18379 (update_properties_after_pass): Likewise.
18380 (execute_pass_list_1): Split out from ...
18381 (execute_pass_list): ... here. Adjust.
18382 (execute_ipa_pass_list): Likewise.
18383 * cgraphunit.c (cgraph_add_new_function): Adjust.
18384 (analyze_function): Likewise.
18385 (expand_function): Likewise.
18386 * cgraph.c (release_function_body): Free dominance info
18387 here instead of asserting it was magically freed elsewhere.
18388
18389 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18390
18391 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18392 * configure: Regenerate.
18393 * config/sparc/sparc.opt (muser-mode): New option.
18394 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18395 for LEON3.
18396 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18397 * doc/invoke.texi (SPARC options): Document -muser-mode.
18398
18399 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18400
18401 * cselib.c (find_slot_memmode): Delete.
18402 (cselib_hasher): Change compare_type to a struct.
18403 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18404 constants.
18405 (preserve_constants_and_equivs): Adjust for new compare_type.
18406 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18407 (wrap_constant): Delete.
18408 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18409
18410 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18411
18412 * doc/install.texi (Building with profile feedback): Remove
18413 outdated sentence.
18414
18415 2014-04-26 Tom de Vries <tom@codesourcery.com>
18416
18417 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18418 array accesses.
18419
18420 2014-04-25 Cary Coutant <ccoutant@google.com>
18421
18422 PR debug/60929
18423 * dwarf2out.c (should_move_die_to_comdat): A type definition
18424 can contain a subprogram definition, but don't move it to a
18425 comdat unit.
18426 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18427 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18428 from original DIE.
18429 (clone_tree_hash): Rename to...
18430 (clone_tree_partial): ...this; change callers. Copy
18431 DW_TAG_subprogram DIEs as declarations.
18432 (copy_decls_walk): Don't copy children of a declaration into a
18433 type unit.
18434
18435 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18436
18437 PR target/60969
18438 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18439 alternative 12.
18440
18441 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18442
18443 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18444 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18445 reg for long_call.
18446 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18447 restriction.
18448
18449 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18450
18451 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18452
18453 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18454
18455 PR tree-optimization/60930
18456 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18457 creating a multiply candidate by folding two constant
18458 multiplicands when the result overflows.
18459
18460 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18461
18462 PR tree-optimization/60960
18463 * tree-vect-generic.c (expand_vector_operation): Only call
18464 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18465
18466 2014-04-25 Tom de Vries <tom@codesourcery.com>
18467
18468 * expr.c (clobber_reg_mode): New function.
18469 * expr.h (clobber_reg): New function.
18470
18471 2014-04-25 Tom de Vries <tom@codesourcery.com>
18472
18473 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18474 clobbers.
18475
18476 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18477 Tom de Vries <tom@codesourcery.com>
18478
18479 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18480 handle.
18481 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18482 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18483 new argument to find_all_hard_reg_sets call.
18484
18485 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18486
18487 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18488 Use HOST_WIDE_INT_C for mask literal.
18489 (aarch_rev16_shleft_mask_imm_p): Likewise.
18490
18491 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18492
18493 PR target/60941
18494 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18495
18496 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18497
18498 PR preprocessor/56540
18499 * config/i386/i386-c.c (ix86_target_macros): Define
18500 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18501
18502 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18503
18504 * configure.ac (tga_func): Remove.
18505 (LIB_TLS_SPEC): Remove.
18506 * configure: Regenerate.
18507 * config.in: Regenerate.
18508 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18509
18510 2014-04-25 Richard Biener <rguenther@suse.de>
18511
18512 PR ipa/60912
18513 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18514 call stmt use/clobber sets during stmt walk instead of
18515 walking the possibly incomplete set of caller edges.
18516
18517 2014-04-25 Richard Biener <rguenther@suse.de>
18518
18519 PR ipa/60911
18520 * passes.c (apply_ipa_transforms): Inline into only caller ...
18521 (execute_one_pass): ... here. Properly bring in function
18522 bodies for nodes we want to apply IPA transforms to.
18523
18524 2014-04-24 Cong Hou <congh@google.com>
18525
18526 PR tree-optimization/60896
18527 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18528 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18529 (vect_mark_pattern_stmts): Set the def type of all statements in
18530 PATTERN_DEF_SEQ as vect_internal_def.
18531
18532 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18533
18534 * doc/extend.texi (PowerPC Built-in Functions): Document new
18535 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18536 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18537
18538 * config/rs6000/predicates.md (const_0_to_3_operand): New
18539 predicate to match 0..3 integer constants.
18540
18541 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18542 to support adding miscellaneous builtin functions.
18543 (BU_DFP_MISC_2): Likewise.
18544 (BU_P7_MISC_1): Likewise.
18545 (BU_P7_MISC_2): Likewise.
18546 (BU_P8V_MISC_3): Likewise.
18547 (BU_MISC_1): Likewise.
18548 (BU_MISC_2): Likewise.
18549 (DIVWE): Add extended divide builtin functions.
18550 (DIVWEO): Likewise.
18551 (DIVWEU): Likewise.
18552 (DIVWEUO): Likewise.
18553 (DIVDE): Likewise.
18554 (DIVDEO): Likewise.
18555 (DIVDEU): Likewise.
18556 (DIVDEUO): Likewise.
18557 (DXEX): Add decimal floating-point builtin functions.
18558 (DXEXQ): Likewise.
18559 (DDEDPD): Likewise.
18560 (DDEDPDQ): Likewise.
18561 (DENBCD): Likewise.
18562 (DENBCDQ): Likewise.
18563 (DIEX): Likewise.
18564 (DIEXQ): Likewise.
18565 (DSCLI): Likewise.
18566 (DSCLIQ): Likewise.
18567 (DSCRI): Likewise.
18568 (DSCRIQ): Likewise.
18569 (CDTBCD): Add new BCD builtin functions.
18570 (CBCDTD): Likewise.
18571 (ADDG6S): Likewise.
18572 (BCDADD): Likewise.
18573 (BCDADD_LT): Likewise.
18574 (BCDADD_EQ): Likewise.
18575 (BCDADD_GT): Likewise.
18576 (BCDADD_OV): Likewise.
18577 (BCDSUB): Likewise.
18578 (BCDSUB_LT): Likewise.
18579 (BCDSUB_EQ): Likewise.
18580 (BCDSUB_GT): Likewise.
18581 (BCDSUB_OV): Likewise.
18582 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18583 (UNPACK_TD): Likewise.
18584 (PACK_TF): Likewise.
18585 (UNPACK_TF): Likewise.
18586 (UNPACK_TF_0): Likewise.
18587 (UNPACK_TF_1): Likewise.
18588 (PACK_V1TI): Likewise.
18589 (UNPACK_V1TI): Likewise.
18590
18591 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18592 support for decimal floating point builtin functions.
18593 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18594 functions that take constant arguments.
18595 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18596 (rs6000_init_builtins): Setup long double, _Decimal64, and
18597 _Decimal128 types for new builtin functions.
18598 (builtin_function_type): Set the unsigned flags appropriately for
18599 the new builtin functions.
18600 (rs6000_opt_masks): Add support for decimal floating point builtin
18601 functions.
18602
18603 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18604 floating point builtin functions.
18605 (RS6000_BTM_COMMON): Likewise.
18606 (RS6000_BTI_long_double): Likewise.
18607 (RS6000_BTI_dfloat64): Likewise.
18608 (RS6000_BTI_dfloat128): Likewise.
18609 (long_double_type_internal_node): Likewise.
18610 (dfloat64_type_internal_node): Likewise.
18611 (dfloat128_type_internal_node): Likewise.
18612
18613 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18614 2.07 bcd arithmetic instructions.
18615 (UNSPEC_BCDSUB): Likewise.
18616 (UNSPEC_BCD_OVERFLOW): Likewise.
18617 (UNSPEC_BCD_ADD_SUB): Likewise.
18618 (bcd_add_sub): Likewise.
18619 (BCD_TEST): Likewise.
18620 (bcd<bcd_add_sub>): Likewise.
18621 (bcd<bcd_add_sub>_test): Likewise.
18622 (bcd<bcd_add_sub>_test2): Likewise.
18623 (bcd<bcd_add_sub>_<code>): Likewise.
18624 (peephole2 for combined bcd ops): Likewise.
18625
18626 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18627 decimal floating point builtin functions.
18628 (UNSPEC_DENBCD): Likewise.
18629 (UNSPEC_DXEX): Likewise.
18630 (UNSPEC_DIEX): Likewise.
18631 (UNSPEC_DSCLI): Likewise.
18632 (UNSPEC_DSCRI): Likewise.
18633 (D64_D128): Likewise.
18634 (dfp_suffix): Likewise.
18635 (dfp_ddedpd_<mode>): Likewise.
18636 (dfp_denbcd_<mode>): Likewise.
18637 (dfp_dxex_<mode>): Likewise.
18638 (dfp_diex_<mode>): Likewise.
18639 (dfp_dscli_<mode>): Likewise.
18640 (dfp_dscri_<mode>): Likewise.
18641
18642 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18643 builtin functions.
18644 (UNSPEC_CDTBCD): Likewise.
18645 (UNSPEC_CBCDTD): Likewise.
18646 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18647 (UNSPEC_DIVEO): Likewise.
18648 (UNSPEC_DIVEU): Likewise.
18649 (UNSPEC_DIVEUO): Likewise.
18650 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18651 pack/unpack 128-bit types.
18652 (UNSPEC_PACK_128BIT): Likewise.
18653 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18654 (udiv<mode>3): Use idiv_ldiv mode attribute.
18655 (div<mode>3): Likewise.
18656 (addg6s): Add new BCD builtin functions.
18657 (cdtbcd): Likewise.
18658 (cbcdtd): Likewise.
18659 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18660 (div_extend): Likewise.
18661 (div<div_extend>_<mode>"): Likewise.
18662 (FP128_64): Add support for new builtin functions to pack/unpack
18663 128-bit types.
18664 (unpack<mode>): Likewise.
18665 (unpacktf_0): Likewise.
18666 (unpacktf_1): Likewise.
18667 (unpack<mode>_dm): Likewise.
18668 (unpack<mode>_nodm): Likewise.
18669 (pack<mode>): Likewise.
18670 (unpackv1ti): Likewise.
18671 (packv1ti): Likewise.
18672
18673 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18674
18675 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18676 is disabled.
18677
18678 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18679
18680 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18681 * gimplify.c (omp_is_private): Change last argument's type to int.
18682 Only diagnose lastprivate if the simd argument is 1, only diagnose
18683 linear if the simd argument is 2.
18684 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18685 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18686 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18687 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18688 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18689 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18690 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18691 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18692 * tree-nested.c (convert_nonlocal_omp_clauses,
18693 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18694
18695 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18696
18697 PR target/60822
18698 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18699 operand 1.
18700
18701 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18702
18703 * flag-types.h (enum ivar_visibility): Add.
18704
18705 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18706
18707 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18708 function * argument.
18709
18710 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18711
18712 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18713
18714 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18715 Tom de Vries <tom@codesourcery.com>
18716
18717 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18718 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18719 reg-note.
18720 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18721 * emit-rtl.c (try_split): Same.
18722
18723 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18724 Tom de Vries <tom@codesourcery.com>
18725
18726 * common.opt (fuse-caller-save): New option.
18727
18728 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18729
18730 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18731 elements for big-endian.
18732
18733 2014-04-24 Richard Biener <rguenther@suse.de>
18734
18735 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18736 during TER and instead use the sepops interface for expanding
18737 non-GIMPLE_SINGLE_RHS.
18738
18739 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18740
18741 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18742 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18743
18744 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18745
18746 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18747 assembler 64-bit option.
18748 * configure: Regenerate.
18749
18750 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18751
18752 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18753 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18754 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18755 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18756 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18757
18758 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18759
18760 * config/aarch64/aarch64-builtins.c
18761 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18762 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18763 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18764 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18765 builtins.
18766 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18767 (Vrevsuff): New mode attribute.
18768
18769 2014-04-24 Terry Guo <terry.guo@arm.com>
18770
18771 * config/arm/arm.h (machine_function): Define variable
18772 after_arm_reorg here.
18773 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18774 (arm_split_constant): Update the way to access variable
18775 after_arm_reorg.
18776 (arm_reorg): Ditto.
18777 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18778
18779 2014-04-23 Tom de Vries <tom@codesourcery.com>
18780
18781 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18782
18783 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18784
18785 * is-a.h: Update comments to reflect the following changes to the
18786 "pointerness" of the API, making the template parameter match the
18787 return type, allowing use of is-a.h with typedefs of pointers.
18788 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18789 that the return type matches the parameter to the is_a_helper.
18790 (as_a): Likewise.
18791 (dyn_cast): Likewise.
18792
18793 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18794 pointer from the is-a.h API.
18795
18796 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18797 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18798 is-a.h API.
18799 (is_a_helper <varpool_node>::test): Likewise, convert to...
18800 (is_a_helper <varpool_node *>::test): ...this.
18801
18802 (varpool_first_variable): Update for removal of implicit pointer
18803 from the is-a.h API.
18804 (varpool_next_variable): Likewise.
18805 (varpool_first_static_initializer): Likewise.
18806 (varpool_next_static_initializer): Likewise.
18807 (varpool_first_defined_variable): Likewise.
18808 (varpool_next_defined_variable): Likewise.
18809 (cgraph_first_defined_function): Likewise.
18810 (cgraph_next_defined_function): Likewise.
18811 (cgraph_first_function): Likewise.
18812 (cgraph_next_function): Likewise.
18813 (cgraph_first_function_with_gimple_body): Likewise.
18814 (cgraph_next_function_with_gimple_body): Likewise.
18815 (cgraph_alias_target): Likewise.
18816 (varpool_alias_target): Likewise.
18817 (cgraph_function_or_thunk_node): Likewise.
18818 (varpool_variable_node): Likewise.
18819 (symtab_real_symbol_p): Likewise.
18820 * cgraphunit.c (referred_to_p): Likewise.
18821 (analyze_functions): Likewise.
18822 (handle_alias_pairs): Likewise.
18823 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18824 * gimple-ssa.h (gimple_vuse_op): Likewise.
18825 (gimple_vdef_op): Likewise.
18826 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18827 * gimple.c (gimple_build_asm_1): Likewise.
18828 (gimple_build_try): Likewise.
18829 (gimple_build_resx): Likewise.
18830 (gimple_build_eh_dispatch): Likewise.
18831 (gimple_build_omp_for): Likewise.
18832 (gimple_omp_for_set_clauses): Likewise.
18833
18834 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18835 (is_a_helper <gimple_statement_asm *>::test): ...this.
18836 (is_a_helper <gimple_statement_bind>::test): Convert to...
18837 (is_a_helper <gimple_statement_bind *>::test): ...this.
18838 (is_a_helper <gimple_statement_call>::test): Convert to...
18839 (is_a_helper <gimple_statement_call *>::test): ...this.
18840 (is_a_helper <gimple_statement_catch>::test): Convert to...
18841 (is_a_helper <gimple_statement_catch *>::test): ...this.
18842 (is_a_helper <gimple_statement_resx>::test): Convert to...
18843 (is_a_helper <gimple_statement_resx *>::test): ...this.
18844 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18845 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18846 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18847 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18848 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18849 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18850 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18851 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18852 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18853 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18854 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18855 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18856 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18857 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18858 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18859 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18860 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18861 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18862 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18863 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18864 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18865 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18866 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18867 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18868 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18869 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18870 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18871 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18872 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18873 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18874 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18875 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18876 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18877 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18878 (is_a_helper <gimple_statement_phi>::test): Convert to...
18879 (is_a_helper <gimple_statement_phi *>::test): ...this.
18880 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18881 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18882 (is_a_helper <gimple_statement_try>::test): Convert to...
18883 (is_a_helper <gimple_statement_try *>::test): ...this.
18884 (is_a_helper <gimple_statement_wce>::test): Convert to...
18885 (is_a_helper <gimple_statement_wce *>::test): ...this.
18886 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18887 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18888 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18889 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18890 (is_a_helper <const gimple_statement_call>::test): Convert to...
18891 (is_a_helper <const gimple_statement_call *>::test): ...this.
18892 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18893 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18894 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18895 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18896 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18897 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18898 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18899 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18900 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18901 Convert to...
18902 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18903 ...this.
18904 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18905 Convert to...
18906 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18907 ...this.
18908 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18909 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18910 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18911 to...
18912 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18913 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18914 to...
18915 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18916 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18917 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18918 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18919 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18920 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18921 to...
18922 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18923 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18924 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18925 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18926 to...
18927 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18928 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18929 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18930 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18931 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18932 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18933 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18934 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18935 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18936 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18937 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18938 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18939 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18940 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18941 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18942 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18943 to...
18944 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18945 ...this.
18946 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18947 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
18948
18949 (gimple_use_ops): Update for removal of implicit pointer from the
18950 is-a.h API.
18951 (gimple_set_use_ops): Likewise.
18952 (gimple_vuse): Likewise.
18953 (gimple_vdef): Likewise.
18954 (gimple_vuse_ptr): Likewise.
18955 (gimple_vdef_ptr): Likewise.
18956 (gimple_set_vuse): Likewise.
18957 (gimple_set_vdef): Likewise.
18958 (gimple_omp_return_set_lhs): Likewise.
18959 (gimple_omp_return_lhs): Likewise.
18960 (gimple_omp_return_lhs_ptr): Likewise.
18961 (gimple_call_fntype): Likewise.
18962 (gimple_call_set_fntype): Likewise.
18963 (gimple_call_set_internal_fn): Likewise.
18964 (gimple_call_use_set): Likewise.
18965 (gimple_call_clobber_set): Likewise.
18966 (gimple_bind_vars): Likewise.
18967 (gimple_bind_set_vars): Likewise.
18968 (gimple_bind_body_ptr): Likewise.
18969 (gimple_bind_set_body): Likewise.
18970 (gimple_bind_add_stmt): Likewise.
18971 (gimple_bind_block): Likewise.
18972 (gimple_bind_set_block): Likewise.
18973 (gimple_asm_ninputs): Likewise.
18974 (gimple_asm_noutputs): Likewise.
18975 (gimple_asm_nclobbers): Likewise.
18976 (gimple_asm_nlabels): Likewise.
18977 (gimple_asm_input_op): Likewise.
18978 (gimple_asm_input_op_ptr): Likewise.
18979 (gimple_asm_output_op): Likewise.
18980 (gimple_asm_output_op_ptr): Likewise.
18981 (gimple_asm_set_output_op): Likewise.
18982 (gimple_asm_clobber_op): Likewise.
18983 (gimple_asm_set_clobber_op): Likewise.
18984 (gimple_asm_label_op): Likewise.
18985 (gimple_asm_set_label_op): Likewise.
18986 (gimple_asm_string): Likewise.
18987 (gimple_catch_types): Likewise.
18988 (gimple_catch_types_ptr): Likewise.
18989 (gimple_catch_handler_ptr): Likewise.
18990 (gimple_catch_set_types): Likewise.
18991 (gimple_catch_set_handler): Likewise.
18992 (gimple_eh_filter_types): Likewise.
18993 (gimple_eh_filter_types_ptr): Likewise.
18994 (gimple_eh_filter_failure_ptr): Likewise.
18995 (gimple_eh_filter_set_types): Likewise.
18996 (gimple_eh_filter_set_failure): Likewise.
18997 (gimple_eh_must_not_throw_fndecl): Likewise.
18998 (gimple_eh_must_not_throw_set_fndecl): Likewise.
18999 (gimple_eh_else_n_body_ptr): Likewise.
19000 (gimple_eh_else_e_body_ptr): Likewise.
19001 (gimple_eh_else_set_n_body): Likewise.
19002 (gimple_eh_else_set_e_body): Likewise.
19003 (gimple_try_eval_ptr): Likewise.
19004 (gimple_try_cleanup_ptr): Likewise.
19005 (gimple_try_set_eval): Likewise.
19006 (gimple_try_set_cleanup): Likewise.
19007 (gimple_wce_cleanup_ptr): Likewise.
19008 (gimple_wce_set_cleanup): Likewise.
19009 (gimple_phi_capacity): Likewise.
19010 (gimple_phi_num_args): Likewise.
19011 (gimple_phi_result): Likewise.
19012 (gimple_phi_result_ptr): Likewise.
19013 (gimple_phi_set_result): Likewise.
19014 (gimple_phi_arg): Likewise.
19015 (gimple_phi_set_arg): Likewise.
19016 (gimple_resx_region): Likewise.
19017 (gimple_resx_set_region): Likewise.
19018 (gimple_eh_dispatch_region): Likewise.
19019 (gimple_eh_dispatch_set_region): Likewise.
19020 (gimple_omp_critical_name): Likewise.
19021 (gimple_omp_critical_name_ptr): Likewise.
19022 (gimple_omp_critical_set_name): Likewise.
19023 (gimple_omp_for_clauses): Likewise.
19024 (gimple_omp_for_clauses_ptr): Likewise.
19025 (gimple_omp_for_set_clauses): Likewise.
19026 (gimple_omp_for_collapse): Likewise.
19027 (gimple_omp_for_index): Likewise.
19028 (gimple_omp_for_index_ptr): Likewise.
19029 (gimple_omp_for_set_index): Likewise.
19030 (gimple_omp_for_initial): Likewise.
19031 (gimple_omp_for_initial_ptr): Likewise.
19032 (gimple_omp_for_set_initial): Likewise.
19033 (gimple_omp_for_final): Likewise.
19034 (gimple_omp_for_final_ptr): Likewise.
19035 (gimple_omp_for_set_final): Likewise.
19036 (gimple_omp_for_incr): Likewise.
19037 (gimple_omp_for_incr_ptr): Likewise.
19038 (gimple_omp_for_set_incr): Likewise.
19039 (gimple_omp_for_pre_body_ptr): Likewise.
19040 (gimple_omp_for_set_pre_body): Likewise.
19041 (gimple_omp_parallel_clauses): Likewise.
19042 (gimple_omp_parallel_clauses_ptr): Likewise.
19043 (gimple_omp_parallel_set_clauses): Likewise.
19044 (gimple_omp_parallel_child_fn): Likewise.
19045 (gimple_omp_parallel_child_fn_ptr): Likewise.
19046 (gimple_omp_parallel_set_child_fn): Likewise.
19047 (gimple_omp_parallel_data_arg): Likewise.
19048 (gimple_omp_parallel_data_arg_ptr): Likewise.
19049 (gimple_omp_parallel_set_data_arg): Likewise.
19050 (gimple_omp_task_clauses): Likewise.
19051 (gimple_omp_task_clauses_ptr): Likewise.
19052 (gimple_omp_task_set_clauses): Likewise.
19053 (gimple_omp_task_child_fn): Likewise.
19054 (gimple_omp_task_child_fn_ptr): Likewise.
19055 (gimple_omp_task_set_child_fn): Likewise.
19056 (gimple_omp_task_data_arg): Likewise.
19057 (gimple_omp_task_data_arg_ptr): Likewise.
19058 (gimple_omp_task_set_data_arg): Likewise.
19059 (gimple_omp_taskreg_clauses): Likewise.
19060 (gimple_omp_taskreg_clauses_ptr): Likewise.
19061 (gimple_omp_taskreg_set_clauses): Likewise.
19062 (gimple_omp_taskreg_child_fn): Likewise.
19063 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19064 (gimple_omp_taskreg_set_child_fn): Likewise.
19065 (gimple_omp_taskreg_data_arg): Likewise.
19066 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19067 (gimple_omp_taskreg_set_data_arg): Likewise.
19068 (gimple_omp_task_copy_fn): Likewise.
19069 (gimple_omp_task_copy_fn_ptr): Likewise.
19070 (gimple_omp_task_set_copy_fn): Likewise.
19071 (gimple_omp_task_arg_size): Likewise.
19072 (gimple_omp_task_arg_size_ptr): Likewise.
19073 (gimple_omp_task_set_arg_size): Likewise.
19074 (gimple_omp_task_arg_align): Likewise.
19075 (gimple_omp_task_arg_align_ptr): Likewise.
19076 (gimple_omp_task_set_arg_align): Likewise.
19077 (gimple_omp_single_clauses): Likewise.
19078 (gimple_omp_single_clauses_ptr): Likewise.
19079 (gimple_omp_single_set_clauses): Likewise.
19080 (gimple_omp_target_clauses): Likewise.
19081 (gimple_omp_target_clauses_ptr): Likewise.
19082 (gimple_omp_target_set_clauses): Likewise.
19083 (gimple_omp_target_child_fn): Likewise.
19084 (gimple_omp_target_child_fn_ptr): Likewise.
19085 (gimple_omp_target_set_child_fn): Likewise.
19086 (gimple_omp_target_data_arg): Likewise.
19087 (gimple_omp_target_data_arg_ptr): Likewise.
19088 (gimple_omp_target_set_data_arg): Likewise.
19089 (gimple_omp_teams_clauses): Likewise.
19090 (gimple_omp_teams_clauses_ptr): Likewise.
19091 (gimple_omp_teams_set_clauses): Likewise.
19092 (gimple_omp_sections_clauses): Likewise.
19093 (gimple_omp_sections_clauses_ptr): Likewise.
19094 (gimple_omp_sections_set_clauses): Likewise.
19095 (gimple_omp_sections_control): Likewise.
19096 (gimple_omp_sections_control_ptr): Likewise.
19097 (gimple_omp_sections_set_control): Likewise.
19098 (gimple_omp_for_set_cond): Likewise.
19099 (gimple_omp_for_cond): Likewise.
19100 (gimple_omp_atomic_store_set_val): Likewise.
19101 (gimple_omp_atomic_store_val): Likewise.
19102 (gimple_omp_atomic_store_val_ptr): Likewise.
19103 (gimple_omp_atomic_load_set_lhs): Likewise.
19104 (gimple_omp_atomic_load_lhs): Likewise.
19105 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19106 (gimple_omp_atomic_load_set_rhs): Likewise.
19107 (gimple_omp_atomic_load_rhs): Likewise.
19108 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19109 (gimple_omp_continue_control_def): Likewise.
19110 (gimple_omp_continue_control_def_ptr): Likewise.
19111 (gimple_omp_continue_set_control_def): Likewise.
19112 (gimple_omp_continue_control_use): Likewise.
19113 (gimple_omp_continue_control_use_ptr): Likewise.
19114 (gimple_omp_continue_set_control_use): Likewise.
19115 (gimple_transaction_body_ptr): Likewise.
19116 (gimple_transaction_label): Likewise.
19117 (gimple_transaction_label_ptr): Likewise.
19118 (gimple_transaction_set_body): Likewise.
19119 (gimple_transaction_set_label): Likewise.
19120
19121 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19122 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19123 * ipa-ref.c (ipa_record_reference): Likewise.
19124 * ipa-reference.c (analyze_function): Likewise.
19125 (ipa_reference_write_optimization_summary): Likewise.
19126 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19127 (address_taken_from_non_vtable_p): Likewise.
19128 (comdat_can_be_unshared_p_1): Likewise.
19129 * lto-cgraph.c (lto_output_ref): Likewise.
19130 (add_references): Likewise.
19131 (compute_ltrans_boundary): Likewise.
19132 (output_symtab): Likewise.
19133 (input_ref): Likewise.
19134 (input_cgraph_1): Likewise.
19135 (output_cgraph_opt_summary): Likewise.
19136 * lto-streamer-out.c (lto_output): Likewise.
19137 (output_symbol_p): Likewise.
19138 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19139 (lsei_start_function_in_partition): Likewise.
19140 (lsei_next_variable_in_partition): Likewise.
19141 (lsei_start_variable_in_partition): Likewise.
19142 * symtab.c (insert_to_assembler_name_hash): Likewise.
19143 (unlink_from_assembler_name_hash): Likewise.
19144 (symtab_unregister_node): Likewise.
19145 (symtab_remove_node): Likewise.
19146 (dump_symtab_node): Likewise.
19147 (verify_symtab_base): Likewise.
19148 (verify_symtab_node): Likewise.
19149 (symtab_make_decl_local): Likewise.
19150 (symtab_alias_ultimate_target): Likewise.
19151 (symtab_resolve_alias): Likewise.
19152 (symtab_get_symbol_partitioning_class): Likewise.
19153 * tree-phinodes.c (allocate_phi_node): Likewise.
19154 (reserve_phi_args_for_new_edge): Likewise.
19155 (remove_phi_args): Likewise.
19156 * varpool.c (varpool_node_for_asm): Likewise.
19157 (varpool_remove_unreferenced_decls): Likewise.
19158
19159 2014-04-23 Jeff Law <law@redhat.com>
19160
19161 PR tree-optimization/60902
19162 * tree-ssa-threadedge.c
19163 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19164 invalidate outputs from statements that do not produce useful
19165 outputs for threading.
19166
19167 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19168
19169 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19170 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19171 machine descriptions for Stack Smashing Protector.
19172
19173 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19174
19175 * aarch64.md (<optab>_rol<mode>3): New pattern.
19176 (<optab>_rolsi3_uxtw): Likewise.
19177 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19178
19179 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19180
19181 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19182 (arm_cortex_a12_tune): Likewise.
19183
19184 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19185
19186 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19187
19188 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19189
19190 * config/arm/arm.md (arm_rev16si2): New pattern.
19191 (arm_rev16si2_alt): Likewise.
19192 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19193
19194 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19195
19196 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19197 (rev16<mode>2_alt): Likewise.
19198 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19199 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19200 (aarch_rev16_shleft_mask_imm_p): Likewise.
19201 (aarch_rev16_p_1): Likewise.
19202 (aarch_rev16_p): Likewise.
19203 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19204 (aarch_rev16_shright_mask_imm_p): Likewise.
19205 (aarch_rev16_shleft_mask_imm_p): Likewise.
19206
19207 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19208
19209 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19210 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19211 rev cost.
19212 (cortex_a53_extra_costs): Likewise.
19213 (cortex_a57_extra_costs): Likewise.
19214 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19215 (cortexa7_extra_costs): Likewise.
19216 (cortexa8_extra_costs): Likewise.
19217 (cortexa12_extra_costs): Likewise.
19218 (cortexa15_extra_costs): Likewise.
19219 (v7m_extra_costs): Likewise.
19220 (arm_new_rtx_costs): Handle BSWAP.
19221
19222 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19223
19224 * config/arm/arm.c (cortexa8_extra_costs): New table.
19225 (arm_cortex_a8_tune): New tuning struct.
19226 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19227
19228 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19229
19230 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19231
19232 2014-04-23 Richard Biener <rguenther@suse.de>
19233
19234 * Makefile.in (OBJS): Remove loop-unswitch.o.
19235 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19236 * passes.def (pass_rtl_unswitch): Likewise.
19237 * loop-init.c (gate_rtl_unswitch): Likewise.
19238 (rtl_unswitch): Likewise.
19239 (pass_data_rtl_unswitch): Likewise.
19240 (pass_rtl_unswitch): Likewise.
19241 (make_pass_rtl_unswitch): Likewise.
19242 * rtl.h (reversed_condition): Likewise.
19243 (compare_and_jump_seq): Likewise.
19244 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19245 and make static.
19246 * loop-unroll.c (compare_and_jump_seq): Likewise.
19247
19248 2014-04-23 Richard Biener <rguenther@suse.de>
19249
19250 PR tree-optimization/60903
19251 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19252 commented code block.
19253 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19254 loop flags to newly created BBs and edges.
19255
19256 2014-04-23 Nick Clifton <nickc@redhat.com>
19257
19258 * config/msp430/msp430.c (msp430_handle_option): Move function
19259 to msp430-common.c
19260 (msp430_option_override): Simplify mcu and mcpu option handling.
19261 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19262 support for -mhwmult command line option.
19263 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19264 -mhwmult command line option.
19265 (msp430_hwmult_enabled): Delete.
19266 (msp43o_output_labelref): Add support for -mhwmult command line option.
19267 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19268 (umulsidi3): Likewise.
19269 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19270 (mcpu, mlarge, msmall): Likewise.
19271 (mhwmult): New option.
19272 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19273 prototype.
19274 (msp430_is_f5_mcu): Remove prototype.
19275 (msp430_use_f5_series_hwmult): Add prototype.
19276 * config/msp430/msp430-opts.h: New file.
19277 * common/config/msp430: New directory.
19278 * common/config/msp430/msp430-common.c: New file.
19279 * config.gcc (msp430): Remove target_has_targetm_common.
19280 * doc/invoke.texi: Document -mhwmult command line option.
19281
19282 2014-04-23 Nick Clifton <nickc@redhat.com>
19283
19284 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19285 default-manifest.o if it can be found in the search path.
19286 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19287
19288 2014-04-23 Terry Guo <terry.guo@arm.com>
19289
19290 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19291
19292 2014-04-23 Richard Biener <rguenther@suse.de>
19293
19294 PR middle-end/60895
19295 * tree-inline.c (declare_return_variable): Use mark_addressable.
19296
19297 2014-04-23 Richard Biener <rguenther@suse.de>
19298
19299 PR middle-end/60891
19300 * loop-init.c (loop_optimizer_init): Make sure to apply
19301 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19302
19303 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19304
19305 PR sanitizer/60275
19306 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19307 New options.
19308 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19309 if flag_sanitize_undefined_trap_on_error.
19310 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19311 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19312 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19313 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19314 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19315 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19316 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19317 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19318 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19319 * ubsan.c (ubsan_instrument_unreachable): Return
19320 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19321 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19322 if flag_sanitize_undefined_trap_on_error and
19323 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19324 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19325 instrument_bool_enum_load): Emit __builtin_trap () if
19326 flag_sanitize_undefined_trap_on_error and
19327 __builtin_handle_*_abort () if !flag_sanitize_recover.
19328 * doc/invoke.texi (-fsanitize-recover,
19329 -fsanitize-undefined-trap-on-error): Document.
19330
19331 2014-04-22 Christian Bruel <christian.bruel@st.com>
19332
19333 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19334 Force immediates to SImode.
19335
19336 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19337
19338 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19339 (lroundsfsi2): New.
19340 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19341 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19342 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19343 (nios2_fpu_insn): Add entry for round.
19344 (N2FPU_NO_ERRNO_P): Define.
19345 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19346 flag_errno_math.
19347 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19348
19349 2014-04-22 Richard Henderson <rth@redhat.com>
19350
19351 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19352 (add<GPI>3_compare0): Remove leading * from name.
19353 (add<GPI>3_carryin): Likewise.
19354 (sub<GPI>3_compare0): Likewise.
19355 (sub<GPI>3_carryin): Likewise.
19356 (<su_optab>mulditi3): New expander.
19357 (multi3): New expander.
19358 (madd<GPI>): Remove leading * from name.
19359
19360 2014-04-22 Martin Jambor <mjambor@suse.cz>
19361
19362 * cgraphclones.c (cgraph_function_versioning): Copy
19363 ipa_transforms_to_apply instead of asserting it is empty.
19364
19365 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19366
19367 PR target/60868
19368 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19369 on count_exp to get mode.
19370
19371 2014-04-22 Andrew Pinski <apinski@cavium.com>
19372
19373 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19374 Handle TLS for ILP32.
19375 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19376 (tlsie_small_<mode>): this and handle PTR.
19377 (tlsie_small_sidi): New pattern.
19378 (tlsle_small): Change to an expand to handle ILP32.
19379 (tlsle_small_<mode>): New pattern.
19380 (tlsdesc_small): Rename to ...
19381 (tlsdesc_small_<mode>): this and handle PTR.
19382
19383 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19384
19385 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19386
19387 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19388
19389 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19390 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19391 (aarch64_types_signed_poly_qualifiers): Likewise.
19392 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19393 (aarch64_types_poly_signed_qualifiers): Likewise.
19394 (TYPES_REINTERP_SS): Type macro added.
19395 (TYPES_REINTERP_SU): Likewise.
19396 (TYPES_REINTERP_SP): Likewise.
19397 (TYPES_REINTERP_US): Likewise.
19398 (TYPES_REINTERP_PS): Likewise.
19399 (aarch64_fold_builtin): New expression folding added.
19400 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19401 Declarations removed.
19402 (REINTERP_SS): Declarations added.
19403 (REINTERP_US): Likewise.
19404 (REINTERP_PS): Likewise.
19405 (REINTERP_SU): Likewise.
19406 (REINTERP_SP): Likewise.
19407 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19408 (vreinterpretq_p8_f64): Likewise.
19409 (vreinterpret_p16_f64): Likewise.
19410 (vreinterpretq_p16_f64): Likewise.
19411 (vreinterpret_f32_f64): Likewise.
19412 (vreinterpretq_f32_f64): Likewise.
19413 (vreinterpret_f64_f32): Likewise.
19414 (vreinterpret_f64_p8): Likewise.
19415 (vreinterpret_f64_p16): Likewise.
19416 (vreinterpret_f64_s8): Likewise.
19417 (vreinterpret_f64_s16): Likewise.
19418 (vreinterpret_f64_s32): Likewise.
19419 (vreinterpret_f64_s64): Likewise.
19420 (vreinterpret_f64_u8): Likewise.
19421 (vreinterpret_f64_u16): Likewise.
19422 (vreinterpret_f64_u32): Likewise.
19423 (vreinterpret_f64_u64): Likewise.
19424 (vreinterpretq_f64_f32): Likewise.
19425 (vreinterpretq_f64_p8): Likewise.
19426 (vreinterpretq_f64_p16): Likewise.
19427 (vreinterpretq_f64_s8): Likewise.
19428 (vreinterpretq_f64_s16): Likewise.
19429 (vreinterpretq_f64_s32): Likewise.
19430 (vreinterpretq_f64_s64): Likewise.
19431 (vreinterpretq_f64_u8): Likewise.
19432 (vreinterpretq_f64_u16): Likewise.
19433 (vreinterpretq_f64_u32): Likewise.
19434 (vreinterpretq_f64_u64): Likewise.
19435 (vreinterpret_s64_f64): Likewise.
19436 (vreinterpretq_s64_f64): Likewise.
19437 (vreinterpret_u64_f64): Likewise.
19438 (vreinterpretq_u64_f64): Likewise.
19439 (vreinterpret_s8_f64): Likewise.
19440 (vreinterpretq_s8_f64): Likewise.
19441 (vreinterpret_s16_f64): Likewise.
19442 (vreinterpretq_s16_f64): Likewise.
19443 (vreinterpret_s32_f64): Likewise.
19444 (vreinterpretq_s32_f64): Likewise.
19445 (vreinterpret_u8_f64): Likewise.
19446 (vreinterpretq_u8_f64): Likewise.
19447 (vreinterpret_u16_f64): Likewise.
19448 (vreinterpretq_u16_f64): Likewise.
19449 (vreinterpret_u32_f64): Likewise.
19450 (vreinterpretq_u32_f64): Likewise.
19451
19452 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19453
19454 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19455 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19456 (vreinterpret_p8_s8): Likewise.
19457 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19458 (vreinterpret_p8_s16): Likewise.
19459 (vreinterpret_p8_s32): Likewise.
19460 (vreinterpret_p8_s64): Likewise.
19461 (vreinterpret_p8_f32): Likewise.
19462 (vreinterpret_p8_u8): Likewise.
19463 (vreinterpret_p8_u16): Likewise.
19464 (vreinterpret_p8_u32): Likewise.
19465 (vreinterpret_p8_u64): Likewise.
19466 (vreinterpret_p8_p16): Likewise.
19467 (vreinterpretq_p8_s8): Likewise.
19468 (vreinterpretq_p8_s16): Likewise.
19469 (vreinterpretq_p8_s32): Likewise.
19470 (vreinterpretq_p8_s64): Likewise.
19471 (vreinterpretq_p8_f32): Likewise.
19472 (vreinterpretq_p8_u8): Likewise.
19473 (vreinterpretq_p8_u16): Likewise.
19474 (vreinterpretq_p8_u32): Likewise.
19475 (vreinterpretq_p8_u64): Likewise.
19476 (vreinterpretq_p8_p16): Likewise.
19477 (vreinterpret_p16_s8): Likewise.
19478 (vreinterpret_p16_s16): Likewise.
19479 (vreinterpret_p16_s32): Likewise.
19480 (vreinterpret_p16_s64): Likewise.
19481 (vreinterpret_p16_f32): Likewise.
19482 (vreinterpret_p16_u8): Likewise.
19483 (vreinterpret_p16_u16): Likewise.
19484 (vreinterpret_p16_u32): Likewise.
19485 (vreinterpret_p16_u64): Likewise.
19486 (vreinterpret_p16_p8): Likewise.
19487 (vreinterpretq_p16_s8): Likewise.
19488 (vreinterpretq_p16_s16): Likewise.
19489 (vreinterpretq_p16_s32): Likewise.
19490 (vreinterpretq_p16_s64): Likewise.
19491 (vreinterpretq_p16_f32): Likewise.
19492 (vreinterpretq_p16_u8): Likewise.
19493 (vreinterpretq_p16_u16): Likewise.
19494 (vreinterpretq_p16_u32): Likewise.
19495 (vreinterpretq_p16_u64): Likewise.
19496 (vreinterpretq_p16_p8): Likewise.
19497 (vreinterpret_f32_s8): Likewise.
19498 (vreinterpret_f32_s16): Likewise.
19499 (vreinterpret_f32_s32): Likewise.
19500 (vreinterpret_f32_s64): Likewise.
19501 (vreinterpret_f32_u8): Likewise.
19502 (vreinterpret_f32_u16): Likewise.
19503 (vreinterpret_f32_u32): Likewise.
19504 (vreinterpret_f32_u64): Likewise.
19505 (vreinterpret_f32_p8): Likewise.
19506 (vreinterpret_f32_p16): Likewise.
19507 (vreinterpretq_f32_s8): Likewise.
19508 (vreinterpretq_f32_s16): Likewise.
19509 (vreinterpretq_f32_s32): Likewise.
19510 (vreinterpretq_f32_s64): Likewise.
19511 (vreinterpretq_f32_u8): Likewise.
19512 (vreinterpretq_f32_u16): Likewise.
19513 (vreinterpretq_f32_u32): Likewise.
19514 (vreinterpretq_f32_u64): Likewise.
19515 (vreinterpretq_f32_p8): Likewise.
19516 (vreinterpretq_f32_p16): Likewise.
19517 (vreinterpret_s64_s8): Likewise.
19518 (vreinterpret_s64_s16): Likewise.
19519 (vreinterpret_s64_s32): Likewise.
19520 (vreinterpret_s64_f32): Likewise.
19521 (vreinterpret_s64_u8): Likewise.
19522 (vreinterpret_s64_u16): Likewise.
19523 (vreinterpret_s64_u32): Likewise.
19524 (vreinterpret_s64_u64): Likewise.
19525 (vreinterpret_s64_p8): Likewise.
19526 (vreinterpret_s64_p16): Likewise.
19527 (vreinterpretq_s64_s8): Likewise.
19528 (vreinterpretq_s64_s16): Likewise.
19529 (vreinterpretq_s64_s32): Likewise.
19530 (vreinterpretq_s64_f32): Likewise.
19531 (vreinterpretq_s64_u8): Likewise.
19532 (vreinterpretq_s64_u16): Likewise.
19533 (vreinterpretq_s64_u32): Likewise.
19534 (vreinterpretq_s64_u64): Likewise.
19535 (vreinterpretq_s64_p8): Likewise.
19536 (vreinterpretq_s64_p16): Likewise.
19537 (vreinterpret_u64_s8): Likewise.
19538 (vreinterpret_u64_s16): Likewise.
19539 (vreinterpret_u64_s32): Likewise.
19540 (vreinterpret_u64_s64): Likewise.
19541 (vreinterpret_u64_f32): Likewise.
19542 (vreinterpret_u64_u8): Likewise.
19543 (vreinterpret_u64_u16): Likewise.
19544 (vreinterpret_u64_u32): Likewise.
19545 (vreinterpret_u64_p8): Likewise.
19546 (vreinterpret_u64_p16): Likewise.
19547 (vreinterpretq_u64_s8): Likewise.
19548 (vreinterpretq_u64_s16): Likewise.
19549 (vreinterpretq_u64_s32): Likewise.
19550 (vreinterpretq_u64_s64): Likewise.
19551 (vreinterpretq_u64_f32): Likewise.
19552 (vreinterpretq_u64_u8): Likewise.
19553 (vreinterpretq_u64_u16): Likewise.
19554 (vreinterpretq_u64_u32): Likewise.
19555 (vreinterpretq_u64_p8): Likewise.
19556 (vreinterpretq_u64_p16): Likewise.
19557 (vreinterpret_s8_s16): Likewise.
19558 (vreinterpret_s8_s32): Likewise.
19559 (vreinterpret_s8_s64): Likewise.
19560 (vreinterpret_s8_f32): Likewise.
19561 (vreinterpret_s8_u8): Likewise.
19562 (vreinterpret_s8_u16): Likewise.
19563 (vreinterpret_s8_u32): Likewise.
19564 (vreinterpret_s8_u64): Likewise.
19565 (vreinterpret_s8_p8): Likewise.
19566 (vreinterpret_s8_p16): Likewise.
19567 (vreinterpretq_s8_s16): Likewise.
19568 (vreinterpretq_s8_s32): Likewise.
19569 (vreinterpretq_s8_s64): Likewise.
19570 (vreinterpretq_s8_f32): Likewise.
19571 (vreinterpretq_s8_u8): Likewise.
19572 (vreinterpretq_s8_u16): Likewise.
19573 (vreinterpretq_s8_u32): Likewise.
19574 (vreinterpretq_s8_u64): Likewise.
19575 (vreinterpretq_s8_p8): Likewise.
19576 (vreinterpretq_s8_p16): Likewise.
19577 (vreinterpret_s16_s8): Likewise.
19578 (vreinterpret_s16_s32): Likewise.
19579 (vreinterpret_s16_s64): Likewise.
19580 (vreinterpret_s16_f32): Likewise.
19581 (vreinterpret_s16_u8): Likewise.
19582 (vreinterpret_s16_u16): Likewise.
19583 (vreinterpret_s16_u32): Likewise.
19584 (vreinterpret_s16_u64): Likewise.
19585 (vreinterpret_s16_p8): Likewise.
19586 (vreinterpret_s16_p16): Likewise.
19587 (vreinterpretq_s16_s8): Likewise.
19588 (vreinterpretq_s16_s32): Likewise.
19589 (vreinterpretq_s16_s64): Likewise.
19590 (vreinterpretq_s16_f32): Likewise.
19591 (vreinterpretq_s16_u8): Likewise.
19592 (vreinterpretq_s16_u16): Likewise.
19593 (vreinterpretq_s16_u32): Likewise.
19594 (vreinterpretq_s16_u64): Likewise.
19595 (vreinterpretq_s16_p8): Likewise.
19596 (vreinterpretq_s16_p16): Likewise.
19597 (vreinterpret_s32_s8): Likewise.
19598 (vreinterpret_s32_s16): Likewise.
19599 (vreinterpret_s32_s64): Likewise.
19600 (vreinterpret_s32_f32): Likewise.
19601 (vreinterpret_s32_u8): Likewise.
19602 (vreinterpret_s32_u16): Likewise.
19603 (vreinterpret_s32_u32): Likewise.
19604 (vreinterpret_s32_u64): Likewise.
19605 (vreinterpret_s32_p8): Likewise.
19606 (vreinterpret_s32_p16): Likewise.
19607 (vreinterpretq_s32_s8): Likewise.
19608 (vreinterpretq_s32_s16): Likewise.
19609 (vreinterpretq_s32_s64): Likewise.
19610 (vreinterpretq_s32_f32): Likewise.
19611 (vreinterpretq_s32_u8): Likewise.
19612 (vreinterpretq_s32_u16): Likewise.
19613 (vreinterpretq_s32_u32): Likewise.
19614 (vreinterpretq_s32_u64): Likewise.
19615 (vreinterpretq_s32_p8): Likewise.
19616 (vreinterpretq_s32_p16): Likewise.
19617 (vreinterpret_u8_s8): Likewise.
19618 (vreinterpret_u8_s16): Likewise.
19619 (vreinterpret_u8_s32): Likewise.
19620 (vreinterpret_u8_s64): Likewise.
19621 (vreinterpret_u8_f32): Likewise.
19622 (vreinterpret_u8_u16): Likewise.
19623 (vreinterpret_u8_u32): Likewise.
19624 (vreinterpret_u8_u64): Likewise.
19625 (vreinterpret_u8_p8): Likewise.
19626 (vreinterpret_u8_p16): Likewise.
19627 (vreinterpretq_u8_s8): Likewise.
19628 (vreinterpretq_u8_s16): Likewise.
19629 (vreinterpretq_u8_s32): Likewise.
19630 (vreinterpretq_u8_s64): Likewise.
19631 (vreinterpretq_u8_f32): Likewise.
19632 (vreinterpretq_u8_u16): Likewise.
19633 (vreinterpretq_u8_u32): Likewise.
19634 (vreinterpretq_u8_u64): Likewise.
19635 (vreinterpretq_u8_p8): Likewise.
19636 (vreinterpretq_u8_p16): Likewise.
19637 (vreinterpret_u16_s8): Likewise.
19638 (vreinterpret_u16_s16): Likewise.
19639 (vreinterpret_u16_s32): Likewise.
19640 (vreinterpret_u16_s64): Likewise.
19641 (vreinterpret_u16_f32): Likewise.
19642 (vreinterpret_u16_u8): Likewise.
19643 (vreinterpret_u16_u32): Likewise.
19644 (vreinterpret_u16_u64): Likewise.
19645 (vreinterpret_u16_p8): Likewise.
19646 (vreinterpret_u16_p16): Likewise.
19647 (vreinterpretq_u16_s8): Likewise.
19648 (vreinterpretq_u16_s16): Likewise.
19649 (vreinterpretq_u16_s32): Likewise.
19650 (vreinterpretq_u16_s64): Likewise.
19651 (vreinterpretq_u16_f32): Likewise.
19652 (vreinterpretq_u16_u8): Likewise.
19653 (vreinterpretq_u16_u32): Likewise.
19654 (vreinterpretq_u16_u64): Likewise.
19655 (vreinterpretq_u16_p8): Likewise.
19656 (vreinterpretq_u16_p16): Likewise.
19657 (vreinterpret_u32_s8): Likewise.
19658 (vreinterpret_u32_s16): Likewise.
19659 (vreinterpret_u32_s32): Likewise.
19660 (vreinterpret_u32_s64): Likewise.
19661 (vreinterpret_u32_f32): Likewise.
19662 (vreinterpret_u32_u8): Likewise.
19663 (vreinterpret_u32_u16): Likewise.
19664 (vreinterpret_u32_u64): Likewise.
19665 (vreinterpret_u32_p8): Likewise.
19666 (vreinterpret_u32_p16): Likewise.
19667 (vreinterpretq_u32_s8): Likewise.
19668 (vreinterpretq_u32_s16): Likewise.
19669 (vreinterpretq_u32_s32): Likewise.
19670 (vreinterpretq_u32_s64): Likewise.
19671 (vreinterpretq_u32_f32): Likewise.
19672 (vreinterpretq_u32_u8): Likewise.
19673 (vreinterpretq_u32_u16): Likewise.
19674 (vreinterpretq_u32_u64): Likewise.
19675 (vreinterpretq_u32_p8): Likewise.
19676 (vreinterpretq_u32_p16): Likewise.
19677
19678 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19679
19680 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19681 Pattern extended.
19682 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19683 (sqabs): Likewise.
19684 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19685 (vqnegd_s64): Likewise.
19686 (vqabs_s64): Likewise.
19687 (vqabsd_s64): Likewise.
19688
19689 2014-04-22 Richard Henderson <rth@redhat.com>
19690
19691 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19692 computation to the top of the loop.
19693
19694 2014-04-22 Renlin <renlin.li@arm.com>
19695 Jiong Wang <jiong.wang@arm.com>
19696
19697 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19698 * config/aarch64/aarch64.c (aarch64_layout_frame)
19699 (aarch64_initial_elimination_offset): Likewise.
19700
19701 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19702
19703 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19704 Fix indentation.
19705
19706 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19707
19708 * machmode.h (bitwise_mode_for_mode): Declare.
19709 * stor-layout.h (bitwise_type_for_mode): Likewise.
19710 * stor-layout.c (bitwise_mode_for_mode): New function.
19711 (bitwise_type_for_mode): Likewise.
19712 * builtins.c (fold_builtin_memory_op): Use it instead of
19713 int_mode_for_mode and build_nonstandard_integer_type.
19714
19715 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19716
19717 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19718 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19719 (*-*-solaris2*): Simplify.
19720 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19721 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19722 *-*-solaris2.9* handling.
19723
19724 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19725 as bug.
19726 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19727 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19728 handling, simplify.
19729 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19730 * configure: Regenerate.
19731
19732 * config/i386/sol2-9.h: Remove.
19733
19734 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19735 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19736 Remove Solaris 9 references.
19737
19738 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19739
19740 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19741 (floatuns<GPI:mode><GPF:mode>2): Remove.
19742 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19743 and floatuns conversions.
19744 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19745 and floatuns conversions.
19746 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19747 (w1,w2): New mode attributes for inequal width conversions.
19748
19749 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19750
19751 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19752 the output asm format.
19753
19754 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19755
19756 * config/aarch64/aarch64-simd.md
19757 (aarch64_cm<optab>di): Always split.
19758 (*aarch64_cm<optab>di): New.
19759 (aarch64_cmtstdi): Always split.
19760 (*aarch64_cmtstdi): New.
19761
19762 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19763
19764 PR tree-optimization/60823
19765 * omp-low.c (ipa_simd_modify_function_body): Go through
19766 all SSA_NAMEs and for those refering to vector arguments
19767 which are going to be replaced adjust SSA_NAME_VAR and,
19768 if it is a default definition, change it into a non-default
19769 definition assigned at the beginning of function from new_decl.
19770 (ipa_simd_modify_stmt_ops): Rewritten.
19771 * tree-dfa.c (set_ssa_default_def): When removing default def,
19772 check for NULL loc instead of NULL *loc.
19773
19774 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19775
19776 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19777 restrictions on core registers for DImode values in Thumb2.
19778
19779 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19780
19781 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19782 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19783
19784 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19785
19786 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19787 (*iordi_notzesidi_di): Likewise.
19788 (*iordi_notsesidi_di): Likewise.
19789
19790 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19791
19792 * config/arm/arm-protos.h (tune_params): New struct members.
19793 * config/arm/arm.c: Initialise tune_params per processor.
19794 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19795 for speed, based on new tune_params.
19796
19797 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19798
19799 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19800 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19801 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19802 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19803 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19804 (vrnda_f64): Likewise.
19805 (vrndi_f64): Likewise.
19806 (vrndm_f64): Likewise.
19807 (vrndn_f64): Likewise.
19808 (vrndp_f64): Likewise.
19809 (vrndx_f64): Likewise.
19810
19811 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19812
19813 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19814 GET_MODE_SIZE argument is enum machine_mode.
19815
19816 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19817
19818 PR target/60910
19819 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19820 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19821
19822 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19823
19824 PR middle-end/60281
19825 * asan.c (asan_emit_stack_protection): Force the base to align to
19826 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19827 appropriate bits if STRICT_ALIGNMENT.
19828 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19829 when asan is on.
19830 (expand_used_vars): Leave a space in the stack frame for alignment
19831 if STRICT_ALIGNMENT.
19832
19833 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19834
19835 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19836 than a gimple.
19837 (gimple_store_p): Likewise.
19838 (gimple_assign_load_p): Likewise.
19839 (gimple_assign_cast_p): Likewise.
19840 (gimple_clobber_p): Likewise.
19841
19842 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19843 rather than a gimple.
19844 (gimple_assign_cast_p): Likewise.
19845
19846 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19847
19848 PR target/60735
19849 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19850 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19851
19852 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19853 more debug information for E500 if -mdebug=reg.
19854
19855 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19856
19857 PR target/60909
19858 * config/i386/i386.c (ix86_expand_builtin)
19859 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19860 register for target RTX.
19861 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19862
19863 2014-04-18 Cong Hou <congh@google.com>
19864
19865 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19866 the widen-mult pattern by handling two operands with different sizes,
19867 and operands whose size is smaller than half of the result type.
19868
19869 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19870
19871 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19872 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19873 (do_estimate_edge_time): Compute it.
19874 * ipa-inline.c (want_inline_small_function_p): Bypass
19875 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19876
19877 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19878
19879 * ipa-inline.c (spec_rem): New static variable.
19880 (dump_overall_stats): New function.
19881 (dump_inline_stats): New function.
19882
19883 2014-04-18 Richard Henderson <rth@redhat.com>
19884
19885 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19886 to GET_MODE_SIZE, not a reg_class_t.
19887
19888 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19889
19890 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19891 (vsx_xxmrglw_<mode>): Likewise.
19892
19893 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19894
19895 PR target/60876
19896 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19897 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19898 (rs6000_init_hard_regno_mode_ok): Likewise.
19899
19900 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19901
19902 * ipa-inline.c (inline_small_functions): Account only non-cold
19903 functions.
19904 * doc/invoke.texi (inline-unit-growth): Update documentation.
19905
19906 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19907
19908 * config/rs6000/rs6000.md (addti3, subti3): New.
19909
19910 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19911
19912 PR target/60863
19913 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19914 comment. Check optimize_insn_for_size_p instead of
19915 optimize_insn_for_speed_p.
19916
19917 2014-04-17 Martin Jambor <mjambor@suse.cz>
19918
19919 * gimple-iterator.c (gsi_start_edge): New function.
19920 * gimple-iterator.h (gsi_start_edge): Declare.
19921 * tree-sra.c (single_non_eh_succ): New function.
19922 (disqualify_ops_if_throwing_stmt): Renamed to
19923 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19924 having one non-EH successor BB.
19925 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19926 generate loads into replacements.
19927 (sra_modify_assign): Likewise and and also use the simple path for
19928 such statements.
19929 (sra_modify_function_body): Commit statements on edges.
19930
19931 2014-04-17 Richard Biener <rguenther@suse.de>
19932
19933 PR middle-end/60849
19934 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19935 comparison results and add clarifying comment.
19936
19937 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19938
19939 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19940 (blank_mode): Initialize it.
19941 (emit_mode_size_inline, emit_mode_nunits_inline,
19942 emit_mode_inner_inline): New functions.
19943 (emit_insn_modes_h): Call them and surround their output with
19944 #if GCC_VERSION >= 4001 ... #endif.
19945 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19946 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19947 mode_* arrays if the argument is __builtin_constant_p.
19948 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
19949 is enum machine_mode.
19950
19951 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19952
19953 * passes.c (opt_pass::execute): Adjust.
19954 (pass_manager::execute_pass_mode_switching): Likewise.
19955 (early_local_passes::execute): Likewise.
19956 (execute_one_pass): Pass cfun to the pass's execute method.
19957 * tree-pass.h (opt_pass::execute): Add function * argument.
19958 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19959 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19960 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19961 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19962 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19963 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
19964 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
19965 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
19966 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
19967 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
19968 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
19969 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
19970 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
19971 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
19972 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
19973 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
19974 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
19975 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
19976 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19977 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19978 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19979 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19980 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19981 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19982 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19983 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19984 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19985 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19986 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
19987 Adjust.
19988
19989 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
19990
19991 * passes.c (opt_pass::gate): Take function * argument.
19992 (gate_all_early_local_passes): Merge into
19993 (early_local_passes::gate): this.
19994 (gate_all_early_optimizations): Merge into
19995 (all_early_optimizations::gate): this.
19996 (gate_all_optimizations): Mege into
19997 (all_optimizations::gate): this.
19998 (gate_all_optimizations_g): Merge into
19999 (all_optimizations_g::gate): this.
20000 (gate_rest_of_compilation): Mege into
20001 (rest_of_compilation::gate): this.
20002 (gate_postreload): Merge into
20003 (postreload::gate): this.
20004 (dump_one_pass): Pass cfun to the pass's gate method.
20005 (execute_ipa_summary_passes): Likewise.
20006 (execute_one_pass): Likewise.
20007 (ipa_write_summaries_2): Likewise.
20008 (ipa_write_optimization_summaries_1): Likewise.
20009 (ipa_read_summaries_1): Likewise.
20010 (ipa_read_optimization_summaries_1): Likewise.
20011 (execute_ipa_stmt_fixups): Likewise.
20012 * tree-pass.h (opt_pass::gate): Add function * argument.
20013 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20014 combine-stack-adj.c, combine.c, compare-elim.c,
20015 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20016 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20017 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20018 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20019 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20020 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20021 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20022 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20023 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20024 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20025 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20026 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20027 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20028 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20029 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20030 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20031 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20032 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20033 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20034 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20035 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20036 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20037 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20038 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20039 var-tracking.c, vtable-verify.c, web.c: Adjust.
20040
20041 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20042
20043 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20044 * configure: Regenerate.
20045
20046 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20047
20048 * passes.c (dump_one_pass): don't check pass->has_gate.
20049 (execute_ipa_summary_passes): Likewise.
20050 (execute_one_pass): Likewise.
20051 (ipa_write_summaries_2): Likewise.
20052 (ipa_write_optimization_summaries_1): Likewise.
20053 (ipa_read_optimization_summaries_1): Likewise.
20054 (execute_ipa_stmt_fixups): Likewise.
20055 * tree-pass.h (pass_data::has_gate): Remove.
20056 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20057 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20058 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20059 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20060 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20061 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20062 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20063 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20064 gimple-low.c, gimple-ssa-isolate-paths.c,
20065 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20066 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20067 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20068 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20069 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20070 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20071 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20072 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20073 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20074 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20075 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20076 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20077 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20078 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20079 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20080 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20081 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20082 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20083 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20084 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20085 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20086 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20087 Adjust.
20088
20089 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20090
20091 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20092 declaration.
20093 * passes.c (pass_manager::register_dump_files_1): Merge into
20094 (pass_manager::register_dump_files): this, and remove its handling of
20095 properties since the pass always has the properties anyway.
20096 (pass_manager::pass_manager): Adjust.
20097
20098 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20099
20100 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20101 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20102 dealing with properties.
20103 (pass_manager::register_dump_files): Adjust.
20104
20105 2014-03-20 Mark Wielaard <mjw@redhat.com>
20106
20107 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20108 then represent the bound as normal constant value.
20109
20110 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20111
20112 PR target/60847
20113 Forward port from 4.8 branch
20114 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20115
20116 * config/i386/bmiintrin.h (_blsi_u32): New.
20117 (_blsi_u64): Ditto.
20118 (_blsr_u32): Ditto.
20119 (_blsr_u64): Ditto.
20120 (_blsmsk_u32): Ditto.
20121 (_blsmsk_u64): Ditto.
20122 (_tzcnt_u32): Ditto.
20123 (_tzcnt_u64): Ditto.
20124
20125 2014-04-17 Kito Cheng <kito@0xlab.org>
20126
20127 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20128
20129 2014-04-17 Richard Biener <rguenther@suse.de>
20130
20131 PR middle-end/60849
20132 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20133 boolean results for comparisons.
20134
20135 2014-04-17 Richard Biener <rguenther@suse.de>
20136
20137 PR tree-optimization/60836
20138 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20139 initial PHI args to be gimple values.
20140
20141 2014-04-17 Richard Biener <rguenther@suse.de>
20142
20143 PR tree-optimization/60841
20144 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20145 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20146 of stmts to SLP build.
20147 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20148 (vect_analyze_slp): Likewise.
20149 (vect_analyze_slp_instance): Likewise.
20150 (vect_build_slp_tree): Limit overall SLP tree growth.
20151 * tree-vectorizer.h (vect_analyze_data_refs,
20152 vect_analyze_slp): Adjust prototypes.
20153
20154 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20155
20156 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20157 Silvermont.
20158
20159 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20160
20161 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20162 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20163 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20164 for TARGET_SLOW_PSHUFB
20165
20166 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20167
20168 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20169 * config/i386/i386.c (intel_cost): Ditto.
20170
20171 2014-04-17 Joey Ye <joey.ye@arm.com>
20172
20173 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20174
20175 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20176
20177 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20178 with -fuse-profile.
20179
20180 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20181
20182 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20183 (type_all_derivations_known_p): New predicate.
20184 (type_all_ctors_visible_p): New predicate.
20185 (type_possibly_instantiated_p): New predicate.
20186 (get_odr_type): Compute all_derivations_known.
20187 (dump_odr_type): Dump the flag.
20188 (maybe_record_type): Cleanup.
20189 (record_target_from_binfo): Add bases_to_consider array;
20190 record bases for types w/o instances and skip CXX destructor.
20191 (possible_polymorphic_call_targets_1): Add bases_to_consider
20192 and consider_construction parameters; check if type may have instance.
20193 (get_polymorphic_call_info): Set maybe_in_construction to true
20194 when we know nothing.
20195 (record_targets_from_bases): Skip CXX destructors; they are
20196 never called for types in construction.
20197 (possible_polymorphic_call_targets): Do not record target when
20198 type may not have instance.
20199
20200 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20201
20202 PR ipa/60854
20203 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20204 external aliases alive, too.
20205
20206 2014-04-16 Andrew Pinski <apinski@cavium.com>
20207
20208 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20209 definition.
20210
20211 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20212
20213 * final.c (compute_alignments): Do not apply loop alignment to a block
20214 falling through to the exit.
20215
20216 2014-04-16 Catherine Moore <clm@codesourcery.com>
20217
20218 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20219 Adjust constraints for microMIPS store patterns.
20220
20221 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20222
20223 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20224
20225 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20226
20227 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20228 (append_use): Run at -O0.
20229 (append_vdef): Likewise.
20230 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20231 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20232
20233 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20234
20235 PR tree-optimization/60844
20236 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20237 (propagate_op_to_single_use, remove_visited_stmt_chain,
20238 linearize_expr, repropagate_negates, reassociate_bb): Use it
20239 instead of gsi_remove.
20240
20241 2014-04-16 Martin Jambor <mjambor@suse.cz>
20242
20243 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20244 ipa_transforms_to_apply.
20245 (cgraph_function_versioning): Assert that old_node has empty
20246 ipa_transforms_to_apply.
20247 * trans-mem.c (ipa_tm_create_version): Likewise.
20248 * tree-inline.c (tree_function_versioning): Do not duplicate
20249 ipa_transforms_to_apply.
20250
20251 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20252
20253 PR target/60817
20254 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20255 x86_64-*-* cases.
20256 Pass necessary as flags on 64-bit Solaris/x86.
20257 Use lowercase relocs for x86_64-*-*.
20258 * configure: Regenerate.
20259
20260 2014-04-15 Jan Hubicka <jh@suse.cz>
20261
20262 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20263 (maybe_record_node, likely_target_p): Use it.
20264
20265 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20266
20267 PR target/60839
20268 Revert following patch
20269
20270 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20271
20272 PR target/60735
20273 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20274 software floating point or no floating point registers, do not
20275 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20276 in GPRs that occurs after we tested for GPRs that would never be
20277 true.
20278
20279 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20280 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20281 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20282 specifically allow DDmode, since that does not use the SPE SIMD
20283 instructions.
20284
20285 2014-03-21 Mark Wielaard <mjw@redhat.com>
20286
20287 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20288 as unsigned or int depending on type and value used.
20289
20290 2014-04-15 Richard Biener <rguenther@suse.de>
20291
20292 PR rtl-optimization/56965
20293 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20294 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20295 ... here.
20296 * alias.c (true_dependence_1): Do not call
20297 nonoverlapping_component_refs_p.
20298 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20299 nonoverlapping_component_refs_p.
20300 (indirect_refs_may_alias_p): Likewise.
20301
20302 2014-04-15 Teresa Johnson <tejohnson@google.com>
20303
20304 * cfg.c (dump_bb_info): Fix flags check.
20305 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20306
20307 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20308
20309 PR rtl-optimization/60663
20310 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20311 avoid 0 cost.
20312
20313 2014-04-15 Richard Biener <rguenther@suse.de>
20314
20315 * lto-streamer.h (LTO_major_version): Bump to 4.
20316
20317 2014-04-15 Richard Biener <rguenther@suse.de>
20318
20319 * common.opt (lto_partition_model): New enum.
20320 (flto-partition=): Merge separate options with a single with argument,
20321 add -flto-partition=one support.
20322 * flag-types.h (enum lto_partition_model): Declare.
20323 * opts.c (finish_options): Remove duplicate -flto-partition=
20324 option check.
20325 * lto-wrapper.c (run_gcc): Adjust.
20326
20327 2014-04-15 Richard Biener <rguenther@suse.de>
20328
20329 * alias.c (ncr_compar): New function.
20330 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20331
20332 2014-04-15 Richard Biener <rguenther@suse.de>
20333
20334 * alias.c (record_component_aliases): Do not walk BINFOs.
20335
20336 2014-04-15 Richard Biener <rguenther@suse.de>
20337
20338 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20339 Add struct function argument and adjust.
20340 (find_func_aliases_for_call): Likewise.
20341 (find_func_aliases): Likewise.
20342 (find_func_clobbers): Likewise.
20343 (intra_create_variable_infos): Likewise.
20344 (compute_points_to_sets): Likewise.
20345 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20346
20347 2014-04-15 Richard Biener <rguenther@suse.de>
20348
20349 * tree.c (iterative_hash_expr): Use enum tree_code_class
20350 to store TREE_CODE_CLASS.
20351 (tree_block): Likewise.
20352 (tree_set_block): Likewise.
20353 * tree.h (fold_build_pointer_plus_loc): Use
20354 convert_to_ptrofftype_loc.
20355
20356 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20357
20358 PR plugins/59335
20359 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20360 added in 4.9.
20361
20362 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20363
20364 * cfgloop.h (struct loop): Move force_vectorize down.
20365 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20366 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20367 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20368 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20369 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20370 * tree-core.h (enum annot_expr_kind): Add new kind values.
20371 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20372 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20373 kinds.
20374 * tree.def (ANNOTATE_EXPR): Tweak comment.
20375
20376 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20377
20378 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20379 cxa_pure_virtual).
20380
20381 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20382
20383 * tree.h (TYPE_IDENTIFIER): Declare.
20384 * tree.c (subrange_type_for_debug_p): Use it.
20385 * godump.c (go_format_type): Likewise.
20386 * dwarf2out.c (is_cxx_auto, modified_type_die,
20387 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20388 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20389
20390 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20391
20392 PR lto/60820
20393 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20394
20395 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20396
20397 * config/i386/i386.c (examine_argument): Return bool. Return true if
20398 parameter should be passed in memory.
20399 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20400 (construct_container): Update calls to examine_argument.
20401 (function_arg_advance_64): Ditto.
20402 (return_in_memory_32): Merge with ix86_return_in_memory.
20403 (return_in_memory_64): Ditto.
20404 (return_in_memory_ms_64): Ditto.
20405
20406 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20407
20408 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20409 * coverage.c (coverage_compute_profile_id): Handle externally visible
20410 symbols.
20411
20412 2014-04-14 Martin Jambor <mjambor@suse.cz>
20413
20414 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20415 DECL_DISREGARD_INLINE_LIMITS functions.
20416
20417 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20418
20419 PR target/60827
20420 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20421
20422 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20423
20424 PR target/60827
20425 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20426 optimize_insn_for_speed_p instead of
20427 optimize_function_for_speed_p.
20428
20429 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20430
20431 * doc/invoke.texi (free): Document AArch64.
20432
20433 2014-04-14 Richard Biener <rguenther@suse.de>
20434
20435 PR tree-optimization/60042
20436 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20437 (insert_into_preds_of_block): Do not prevent PHI insertion
20438 for REFERENCE exprs here ...
20439 (eliminate_dom_walker::before_dom_children): ... but prevent
20440 their use here under similar conditions when applied to the
20441 IL after PRE optimizations.
20442
20443 2014-04-14 Richard Biener <rguenther@suse.de>
20444
20445 * passes.def: Move early points-to after early SRA.
20446
20447 2014-04-14 Richard Biener <rguenther@suse.de>
20448
20449 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20450 check for which sign-changes we allow when forwarding
20451 a converted value into a switch.
20452
20453 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20454
20455 * stor-layout.c (place_field): Finalize non-constant offset for the
20456 field, if any.
20457
20458 2014-04-14 Richard Biener <rguenther@suse.de>
20459
20460 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20461 as argument.
20462 (expand_switch_using_bit_tests_p): Likewise.
20463 (process_switch): Compute and pass on speed_p based on the
20464 switch stmt.
20465 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20466 optimize_bb_for_speed_p.
20467
20468 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20469
20470 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20471 * function.h (struct function): Rename has_force_vect_loops into
20472 has_force_vectorize_loops.
20473 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20474 (input_struct_function_base): Likewise.
20475 * lto-streamer-out.c (output_cfg): Likewise.
20476 (output_struct_function_base): Likewise.
20477 * omp-low.c (expand_omp_simd): Likewise.
20478 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20479 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20480 (version_loop_for_if_conversion): Likewise.
20481 (tree_if_conversion): Likewise.
20482 (main_tree_if_conversion): Likewise.
20483 (gate_tree_if_conversion): Likewise.
20484 * tree-inline.c (copy_loops): Likewise.
20485 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20486 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20487 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20488 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20489 * tree-vectorizer.c (vectorize_loops): Likewise.
20490 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20491
20492 2014-04-14 Richard Biener <rguenther@suse.de>
20493
20494 PR lto/60720
20495 * lto-streamer-out.c (wrap_refs): New function.
20496 (lto_output): Wrap symbol references in global initializes in
20497 type-preserving MEM_REFs.
20498
20499 2014-04-14 Christian Bruel <christian.bruel@st.com>
20500
20501 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20502
20503 2014-04-14 Christian Bruel <christian.bruel@st.com>
20504
20505 * config/sh/sh.md (setmemqi): New expand pattern.
20506 * config/sh/sh.h (CLEAR_RATIO): Define.
20507 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20508 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20509
20510 2014-04-14 Richard Biener <rguenther@suse.de>
20511
20512 PR middle-end/55022
20513 * fold-const.c (negate_expr_p): Don't negate directional rounding
20514 division.
20515 (fold_negate_expr): Likewise.
20516
20517 2014-04-14 Richard Biener <rguenther@suse.de>
20518
20519 PR tree-optimization/59817
20520 PR tree-optimization/60453
20521 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20522 recursion to catch all CHRECs in the scalar evolution and restrict
20523 the predicate for the remains appropriately.
20524
20525 2014-04-12 Catherine Moore <clm@codesourcery.com>
20526
20527 * config/mips/constraints.md: Add new register constraint "kb".
20528 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20529 (*movhi_internal): Likewise.
20530 (*movqi_internal): Likewise.
20531 * config/mips/mips.h (M16_STORE_REGS): New register class.
20532 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20533 (REG_CLASS_CONTENTS): Likewise.
20534 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20535
20536 2014-04-11 Tobias Burnus <burnus@net-b.de>
20537
20538 PR c/60194
20539 * doc/invoke.texi (-Wformat-signedness): Document it.
20540 (Wformat=2): Mention that this enables -Wformat-signedness.
20541
20542 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20543
20544 * common/config/epiphany/epiphany-common.c
20545 (epiphany_option_optimization_table): Enable section anchors by
20546 default at -O1 or higher.
20547 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20548 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20549 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20550 carries no extra cost.
20551 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20552 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20553 * config/epiphany/predicates.md (memclob_operand): New predicate.
20554 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20555 Use memclob_operand predicate and X constraint for operand 3.
20556
20557 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20558
20559 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20560 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20561 its operands.
20562
20563 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20564
20565 PR rtl-optimization/60651
20566 * mode-switching.c (optimize_mode_switching): Make sure to emit
20567 sets of a lower numbered entity before sets of a higher numbered
20568 entity to a mode of the same or lower priority.
20569 When creating a seginfo for a basic block that starts with a code
20570 label, move the insertion point past the code label.
20571 (new_seginfo): Document and enforce requirement that
20572 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20573 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20574 * doc/tm.texi: Regenerate.
20575
20576 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20577
20578 PR target/60811
20579 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20580
20581 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20582
20583 * BASE-VER: Set to 4.10.0.
20584
20585 2014-04-11 Tobias Burnus <burnus@net-b.de>
20586
20587 PR other/59055
20588 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20589 * doc/gcc.texi (Service): Update description in the @menu
20590 * doc/invoke.texi (Option Summary): Remove misplaced and
20591 duplicated @menu.
20592
20593 2014-04-11 Steve Ellcey <sellcey@mips.com>
20594 Jakub Jelinek <jakub@redhat.com>
20595
20596 PR middle-end/60556
20597 * expr.c (convert_move): Use emit_store_flag_force instead of
20598 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20599 argument to it.
20600
20601 2014-04-11 Richard Biener <rguenther@suse.de>
20602
20603 PR middle-end/60797
20604 * varasm.c (assemble_alias): Avoid endless error reporting
20605 recursion by setting TREE_ASM_WRITTEN.
20606
20607 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20608
20609 * config/s390/s390.md: Add a splitter for NOT rtx.
20610
20611 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20612
20613 PR rtl-optimization/60663
20614 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20615
20616 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20617 Jakub Jelinek <jakub@redhat.com>
20618
20619 PR lto/60567
20620 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20621 flag from decl_node to node.
20622
20623 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20624
20625 PR debug/60655
20626 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20627 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20628 ameliorating the cases where it can be.
20629
20630 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20631
20632 Revert
20633 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20634
20635 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20636 (loadsync_<mode>): Change mode.
20637 (load_quadpti, store_quadpti): New.
20638 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20639 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20640 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20641
20642 2014-04-09 Cong Hou <congh@google.com>
20643
20644 PR testsuite/60773
20645 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20646 documentation.
20647
20648 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20649
20650 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20651 instead of vnor to exploit possible fusion opportunity in the
20652 future.
20653 (altivec_expand_vec_perm_const_le): Likewise.
20654
20655 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20656
20657 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20658 (loadsync_<mode>): Change mode.
20659 (load_quadpti, store_quadpti): New.
20660 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20661 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20662
20663 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20664
20665 PR target/60763
20666 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20667 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20668 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20669
20670 2014-04-08 Richard Biener <rguenther@suse.de>
20671
20672 PR middle-end/60706
20673 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20674 a 64bit widest int print double-int similar to on HWI64 hosts.
20675
20676 2014-04-08 Richard Biener <rguenther@suse.de>
20677
20678 PR tree-optimization/60785
20679 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20680 default defs properly.
20681
20682 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20683
20684 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20685 (Weffc++): Likewise.
20686
20687 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20688
20689 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20690 set completep to false rather than true.
20691
20692 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20693
20694 PR target/60504
20695 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20696 ARM_TARGET2_DWARF_FORMAT.
20697
20698 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20699
20700 PR target/60609
20701 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20702 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20703 ADDR_DIFF_VEC.
20704
20705 2014-04-07 Richard Biener <rguenther@suse.de>
20706
20707 PR tree-optimization/60766
20708 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20709 (may_eliminate_iv): Convert cand_value_at result to desired type.
20710
20711 2014-04-07 Jason Merrill <jason@redhat.com>
20712
20713 PR c++/60731
20714 * common.opt (-fno-gnu-unique): Add.
20715 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20716
20717 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20718
20719 * haifa-sched.c: Fix outdated function reference and minor
20720 grammar errors in introductory comment.
20721
20722 2014-04-07 Richard Biener <rguenther@suse.de>
20723
20724 PR middle-end/60750
20725 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20726 for noreturn calls.
20727 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20728
20729 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20730
20731 PR debug/55794
20732 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20733 size accounting for thunks.
20734 (pa_asm_output_mi_thunk): Use final_start_function() and
20735 final_end_function() to output function start and end directives.
20736
20737 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20738
20739 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20740 device specific ISA/ feature information. Remove short_sp and
20741 errata_skip ds. Add avr_device_specific_features enum to have device
20742 specific info.
20743 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20744 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20745 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20746 updated device specific info.
20747 * config/avr/avr-mcus.def: Merge device specific details to
20748 dev_attribute field.
20749 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20750 errata_skip.
20751 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20752 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20753 assembler if RMW isa supported by current device.
20754 * config/avr/genmultilib.awk: Update as device info structure changed.
20755 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20756
20757 2014-04-04 Cong Hou <congh@google.com>
20758
20759 PR tree-optimization/60656
20760 * tree-vect-stmts.c (supportable_widening_operation):
20761 Fix a bug that elements in a vector with vect_used_by_reduction
20762 property are incorrectly reordered when the operation on it is not
20763 consistant with the one in reduction operation.
20764
20765 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20766
20767 PR rtl-optimization/60155
20768 * gcse.c (record_set_data): New function.
20769 (single_set_gcse): New function.
20770 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20771 (hoist_code): Likewise.
20772 (get_pressure_class_and_nregs): Likewise.
20773
20774 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20775
20776 * explow.c (probe_stack_range): Emit a final optimization blockage.
20777
20778 2014-04-04 Anthony Green <green@moxielogic.com>
20779
20780 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20781 typos.
20782
20783 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20784
20785 PR ipa/59626
20786 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20787 flags are set only during streaming.
20788 * ipa.c (process_references, walk_polymorphic_call_targets,
20789 symtab_remove_unreachable_nodes): Drop bodies of always inline
20790 after early inlining.
20791 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20792
20793 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20794 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20795
20796 PR debug/60655
20797 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20798 containing a NOT.
20799
20800 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20801
20802 PR bootstrap/60743
20803 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20804 duration.
20805 (cortex_a53_fdivd): Likewise.
20806
20807 2014-04-04 Martin Jambor <mjambor@suse.cz>
20808
20809 PR ipa/60640
20810 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20811 Adjust all callers.
20812 * cgraph.c (clone_of_p): Also return true if thunks match.
20813 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20814 cgraph_function_or_thunk_node and an obsolete comment.
20815 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20816 file.
20817 (build_function_decl_skip_args): Likewise.
20818 (set_new_clone_decl_and_node_flags): New function.
20819 (duplicate_thunk_for_node): Likewise.
20820 (redirect_edge_duplicating_thunks): Likewise.
20821 (cgraph_clone_node): New parameter args_to_skip, pass it to
20822 redirect_edge_duplicating_thunks which is called instead of
20823 cgraph_redirect_edge_callee.
20824 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20825 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20826
20827 2014-04-04 Jeff Law <law@redhat.com>
20828
20829 PR target/60657
20830 * config/arm/predicates.md (const_int_I_operand): New predicate.
20831 (const_int_M_operand): Similarly.
20832 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20833 const_int_operand.
20834 (insv_t2, extv_reg, extzv_t2): Likewise.
20835 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20836 (pop_multiple_with_writeback_and_return): Likewise.
20837 (vfp_pop_multiple_with_writeback): Likewise
20838
20839 2014-04-04 Richard Biener <rguenther@suse.de>
20840
20841 PR ipa/60746
20842 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20843 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20844 non-GIMPLE_LABELs.
20845 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20846 * gimplify.c (gimple_add_tmp_var_fn): New function.
20847 * gimple-expr.h (create_tmp_reg_fn): Declare.
20848 * gimple-expr.c (create_tmp_reg_fn): New function.
20849 * gimple-low.c (record_vars_into): Don't change cfun.
20850 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20851 code generation without cfun.
20852
20853 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20854
20855 PR bootstrap/60719
20856 * Makefile.in (install-driver): Fix shell scripting.
20857
20858 2014-04-03 Cong Hou <congh@google.com>
20859
20860 PR tree-optimization/60505
20861 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20862 threshold of number of iterations below which no vectorization
20863 will be done.
20864 * tree-vect-loop.c (new_loop_vec_info):
20865 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20866 * tree-vect-loop.c (vect_analyze_loop_operations):
20867 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20868 * tree-vect-loop.c (vect_transform_loop):
20869 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20870 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20871 of iterations of the loop and see if we should build the epilogue.
20872
20873 2014-04-03 Richard Biener <rguenther@suse.de>
20874
20875 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20876 (streamer_tree_cache_create): Adjust.
20877 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20878 to allow optional nodes array.
20879 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20880 (streamer_tree_cache_append): Likewise.
20881 (streamer_tree_cache_create): Create nodes array optionally
20882 as specified by parameter.
20883 * lto-streamer-out.c (create_output_block): Avoid maintaining
20884 the node array in the writer cache.
20885 (DFS_write_tree): Remove assertion.
20886 (produce_asm_for_decls): Free the out decl state hash table early.
20887 * lto-streamer-in.c (lto_data_in_create): Adjust for
20888 streamer_tree_cache_create prototype change.
20889
20890 2014-04-03 Richard Biener <rguenther@suse.de>
20891
20892 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20893 set TREE_CHAIN to NULL_TREE.
20894
20895 2014-04-03 Richard Biener <rguenther@suse.de>
20896
20897 PR tree-optimization/60740
20898 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20899 over all GIMPLE_COND operands.
20900
20901 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20902
20903 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20904 (Weffc++): Remove Scott's numbering, merge lists and reference
20905 Wnon-virtual-dtor.
20906
20907 2014-04-03 Nick Clifton <nickc@redhat.com>
20908
20909 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20910 properly.
20911
20912 2014-04-03 Martin Jambor <mjambor@suse.cz>
20913
20914 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20915 mention gcc_unreachable before failing.
20916 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20917 removed symbols.
20918
20919 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20920
20921 PR ipa/60659
20922 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20923 inconsistent code and instead mark the context inconsistent.
20924 (possible_polymorphic_call_targets): For inconsistent contexts
20925 return empty complete list.
20926
20927 2014-04-02 Anthony Green <green@moxielogic.com>
20928
20929 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20930 (extendqisi2, extendhisi2): Define.
20931 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20932 (WCHAR_TYPE): Change to unsigned int.
20933
20934 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20935
20936 PR tree-optimization/60733
20937 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20938 insertion point for PHI candidates to be the end of the feeding
20939 block for the PHI argument.
20940
20941 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20942
20943 PR rtl-optimization/60650
20944 * lra-constraints.c (process_alt_operands): Decrease reject for
20945 earlyclobber matching.
20946
20947 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20948
20949 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
20950
20951 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20952
20953 * config/spu/spu.c (pad_bb): Do not crash when the last
20954 insn is CODE_FOR_blockage.
20955
20956 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20957
20958 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
20959 lies outside the target mode.
20960
20961 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20962
20963 PR target/60735
20964 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20965 software floating point or no floating point registers, do not
20966 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20967 in GPRs that occurs after we tested for GPRs that would never be
20968 true.
20969
20970 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20971 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20972 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20973 specifically allow DDmode, since that does not use the SPE SIMD
20974 instructions.
20975
20976 2014-04-02 Richard Biener <rguenther@suse.de>
20977
20978 PR middle-end/60729
20979 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
20980 MODE_INTs. Properly use negv_optab.
20981 (expand_abs): Likewise.
20982
20983 2014-04-02 Richard Biener <rguenther@suse.de>
20984
20985 PR bootstrap/60719
20986 * Makefile.in (install-driver): Guard extra installs with special
20987 names properly.
20988
20989 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
20990
20991 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
20992 Document vec_vgbbd.
20993
20994 2014-04-01 Richard Henderson <rth@redhat.com>
20995
20996 PR target/60704
20997 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
20998 alternative enabled before register allocation.
20999
21000 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21001
21002 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21003 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21004 typo.
21005 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21006 (nios2_got_address): Update nios2_large_got_address call site.
21007 (nios2_delegitimize_address): New function.
21008 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21009 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21010 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21011
21012 2014-04-01 Martin Husemann <martin@duskware.de>
21013
21014 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21015 for -mabi=32.
21016
21017 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21018
21019 PR rtl-optimization/60604
21020 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21021 check from register_operand.
21022 (register_operand): Redefine in terms of general_operand.
21023 (nonmemory_operand): Use register_operand for the non-constant cases.
21024
21025 2014-04-01 Richard Biener <rguenther@suse.de>
21026
21027 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21028
21029 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21030
21031 * doc/invoke.texi (mapp-regs): Clarify.
21032
21033 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21034
21035 * config/i386/avx512fintrin.h (__v32hi): Define type.
21036 (__v64qi): Likewise.
21037 (_mm512_set1_epi8): Define.
21038 (_mm512_set1_epi16): Define.
21039 (_mm512_set4_epi32): Define.
21040 (_mm512_set4_epi64): Define.
21041 (_mm512_set4_pd): Define.
21042 (_mm512_set4_ps): Define.
21043 (_mm512_setr4_epi64): Define.
21044 (_mm512_setr4_epi32): Define.
21045 (_mm512_setr4_pd): Define.
21046 (_mm512_setr4_ps): Define.
21047 (_mm512_setzero_epi32): Define.
21048
21049 2014-03-31 Martin Jambor <mjambor@suse.cz>
21050
21051 PR middle-end/60647
21052 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21053 callsite_arguments_match_p. Updated all callers. Also check types of
21054 corresponding formal parameters and actual arguments.
21055 (not_all_callers_have_enough_arguments_p) Renamed to
21056 some_callers_have_mismatched_arguments_p.
21057
21058 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21059
21060 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21061
21062 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21063
21064 PR target/60034
21065 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21066 section anchor.
21067
21068 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21069
21070 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21071 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21072 Split out
21073 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21074 Use FMAMODE_NOVF512 mode iterator.
21075 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21076 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21077 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21078 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21079 Split out
21080 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21081 Use VF_128_256 mode iterator.
21082 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21083 Ditto.
21084
21085 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21086
21087 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21088 static chain if needed.
21089
21090 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21091
21092 PR target/60697
21093 * lra-constraints.c (index_part_to_reg): New.
21094 (process_address): Use it.
21095
21096 2014-03-27 Jeff Law <law@redhat.com>
21097 Jakub Jelinek <jakub@redhat.com>
21098
21099 PR target/60648
21100 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21101 gen_rtx_{PLUS,MULT} to build up the address expression.
21102
21103 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21104 creating non-canonical RTL.
21105
21106 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21107
21108 PR ipa/60243
21109 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21110 functions; reorganize to make cheap checks first.
21111 (inline_small_functions): Do not estimate growth when dumping;
21112 it is expensive.
21113 * ipa-inline.h (inline_summary): Add min_size.
21114 (growth_likely_positive): New function.
21115 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21116 (set_cond_stmt_execution_predicate): Cleanup.
21117 (estimate_edge_size_and_time): Compute min_size.
21118 (estimate_calls_size_and_time): Likewise.
21119 (estimate_node_size_and_time): Likewise.
21120 (inline_update_overall_summary): Update min_size.
21121 (do_estimate_edge_time): Likewise.
21122 (do_estimate_edge_size): Update.
21123 (do_estimate_edge_hints): Update.
21124 (growth_likely_positive): New function.
21125
21126 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21127
21128 PR target/60693
21129 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21130 also if addr has VOIDmode.
21131
21132 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21133
21134 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21135 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21136 Declare extern.
21137 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21138 instructions as well as AdvancedSIMD loads.
21139
21140 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21141
21142 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21143 Use crypto_aese type.
21144 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21145 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21146 crypto_aese, crypto_aesmc. Move to types.md.
21147 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21148 crypto_aesmc.
21149 * config/arm/iterators.md (crypto_type): Likewise.
21150
21151 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21152
21153 * cgraph.c: Include expr.h and tree-dfa.h.
21154 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21155 remove LHS.
21156
21157 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21158
21159 PR target/60675
21160 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21161 regs from checking multi-reg pseudos.
21162
21163 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21164
21165 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21166
21167 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21168
21169 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21170 if it would clobber the stack pointer, even temporarily.
21171
21172 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21173
21174 * mode-switching.c: Make small adjustments to the top comment.
21175
21176 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21177
21178 * config/rs6000/constraints.md (wD constraint): New constraint to
21179 match the constant integer to get the top DImode/DFmode out of a
21180 vector in a VSX register.
21181
21182 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21183 match the constant integer to get the top DImode/DFmode out of a
21184 vector in a VSX register.
21185
21186 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21187 for ISA 2.07.
21188
21189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21190 vbpermq builtins.
21191
21192 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21193 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21194
21195 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21196 Optimize vec_extract of 64-bit values, where the value being
21197 extracted is in the top word, where we can use scalar
21198 instructions. Add direct move and store support. Combine the big
21199 endian/little endian vector select load support into a single insn.
21200 (vsx_extract_<mode>_internal1): Likewise.
21201 (vsx_extract_<mode>_internal2): Likewise.
21202 (vsx_extract_<mode>_load): Likewise.
21203 (vsx_extract_<mode>_store): Likewise.
21204 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21205 combined into vsx_extract_<mode>_load.
21206 (vsx_extract_<mode>_one_le): Likewise.
21207
21208 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21209 define the top 64-bit vector element.
21210
21211 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21212 constraint.
21213
21214 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21215 Document vec_vbpermq builtin.
21216
21217 PR target/60672
21218 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21219 enable use of xxsldwi and xxpermdi builtin functions.
21220 (vec_xxpermdi): Likewise.
21221
21222 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21223 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21224
21225 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21226
21227 PR rtl-optimization/60650
21228 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21229 first_p. Use it.
21230 (find_spills_for): New.
21231 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21232 Spill all pseudos on the second iteration.
21233
21234 2014-03-27 Marek Polacek <polacek@redhat.com>
21235
21236 PR c/50347
21237 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21238 types.
21239
21240 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21241
21242 * config/s390/s390.c (s390_can_use_return_insn): Check for
21243 call-saved FPRs on 31 bit.
21244
21245 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21246
21247 PR middle-end/60682
21248 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21249 if they need regimplification, just drop them instead of
21250 calling gimple_regimplify_operands on them.
21251
21252 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21253
21254 PR target/60580
21255 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21256 (aarch64_frame_pointer_required): Adjust logic.
21257 (aarch64_can_eliminate): Adjust logic.
21258 (aarch64_override_options_after_change): Adjust logic.
21259
21260 2014-03-27 Dehao Chen <dehao@google.com>
21261
21262 * ipa-inline.c (early_inliner): Update node's inline info.
21263
21264 2014-03-26 Dehao Chen <dehao@google.com>
21265
21266 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21267 compiler inserted conditional jumps for NAN float check.
21268
21269 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21270
21271 * ubsan.h (ubsan_create_data): Change second argument's type
21272 to const location_t *.
21273 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21274 _("<unknown>").
21275 (ubsan_create_data): Change second argument to const location_t *PLOC.
21276 Create Loc field whenever PLOC is non-NULL.
21277 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21278 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21279 callers.
21280
21281 PR other/59545
21282 * real.c (real_to_integer2): Change type of low to UHWI.
21283
21284 2014-03-26 Tobias Burnus <burnus@net-b.de>
21285
21286 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21287 (CILK_SELF_SPECS): New define.
21288 (driver_self_specs): Use it.
21289
21290 2014-03-26 Richard Biener <rguenther@suse.de>
21291
21292 * tree-pretty-print.c (percent_K_format): Implement special
21293 case for LTO and its stripped down BLOCK tree.
21294
21295 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21296
21297 PR sanitizer/60636
21298 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21299
21300 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21301 one range is range_int_cst_p, but not both, at least optimize
21302 addition/subtraction of 0 and multiplication by 0 or 1.
21303 * gimple-fold.c (gimple_fold_call): Fold
21304 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21305 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21306 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21307
21308 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21309
21310 PR rtl-optimization/60452
21311 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21312 <case REG>: Return 1 for invalid offsets from the frame pointer.
21313
21314 2014-03-26 Marek Polacek <polacek@redhat.com>
21315
21316 PR c/37428
21317 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21318 a structure/union.
21319
21320 2014-03-26 Marek Polacek <polacek@redhat.com>
21321
21322 PR c/39525
21323 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21324 field members.
21325
21326 2014-03-26 Marek Polacek <polacek@redhat.com>
21327
21328 PR other/59545
21329 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21330 multiplication in unsigned type.
21331
21332 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21333
21334 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21335
21336 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21337
21338 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21339
21340 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21341
21342 PR ipa/60315
21343 * cif-code.def (UNREACHABLE) New code.
21344 * ipa-inline.c (inline_small_functions): Skip edges to
21345 __builtlin_unreachable.
21346 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21347 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21348 predicate to __bulitin_unreachable.
21349 (set_cond_stmt_execution_predicate): Fix issue when
21350 invert_tree_comparison returns ERROR_MARK.
21351 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21352 propagate to inline clones.
21353 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21354 to unreachable.
21355 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21356 * cgraphclones.c (cgraph_clone_node): If call destination is already
21357 ureachable, do not redirect it back.
21358 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21359 unreachable.
21360
21361 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21362
21363 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21364 Do not modify inline clones.
21365
21366 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21367
21368 * config/i386/i386.md (general_sext_operand): New mode attr.
21369 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21370 don't generate (sign_extend (const_int)).
21371 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21372 operands[2]. Use We constraint instead of <i> and
21373 <general_sext_operand> predicate instead of <general_operand>.
21374 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21375 * config/i386/constraints.md (We): New constraint.
21376 * config/i386/predicates.md (x86_64_sext_operand,
21377 sext_operand): New predicates.
21378
21379 2014-03-25 Martin Jambor <mjambor@suse.cz>
21380
21381 PR ipa/60600
21382 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21383 inconsistent devirtualizations to __builtin_unreachable.
21384
21385 2014-03-25 Marek Polacek <polacek@redhat.com>
21386
21387 PR c/35449
21388 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21389
21390 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21391
21392 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21393 order of elements for big-endian.
21394
21395 2014-03-25 Richard Biener <rguenther@suse.de>
21396
21397 PR middle-end/60635
21398 * gimplify-me.c (gimple_regimplify_operands): Update the
21399 re-gimplifed stmt.
21400
21401 2014-03-25 Martin Jambor <mjambor@suse.cz>
21402
21403 PR ipa/59176
21404 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21405 (lto_output_varpool_node): Likewise.
21406 (input_overwrite_node): Likewise.
21407 (input_varpool_node): Likewise.
21408
21409 2014-03-25 Richard Biener <rguenther@suse.de>
21410
21411 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21412 (run_gcc): Likewise.
21413
21414 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21415
21416 * combine.c (simplify_compare_const): Add MODE argument.
21417 Handle mode_width 0 as very large mode_width.
21418 (try_combine, simplify_comparison): Adjust callers.
21419
21420 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21421 type to avoid signed integer overflow.
21422 * explow.c (plus_constant): Likewise.
21423
21424 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21425
21426 * doc/generic.texi: Correct typos.
21427
21428 2014-03-24 Tobias Burnus <burnus@net-b.de>
21429
21430 * doc/invoke.texi (-flto): Expand section about
21431 using static libraries with LTO.
21432
21433 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21434
21435 PR rtl-optimization/60501
21436 * optabs.def (addptr3_optab): New optab.
21437 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21438 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21439 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21440
21441 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21442
21443 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21444
21445 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21446
21447 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21448 _mm512_set1_pd.
21449
21450 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21451 (_mm256_undefined_ps): Define.
21452 (_mm256_undefined_pd): Define.
21453 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21454 (_mm_undefined_pd): Define.
21455 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21456 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21457 (_mm512_undefined_ps): Define.
21458 (_mm512_undefined_pd): Define.
21459 Use _mm*_undefined_*.
21460 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21461
21462 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21463
21464 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21465 (lshr_simd): DI mode added.
21466 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21467 (aarch64_ushr_simddi): Likewise.
21468 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21469 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21470 (vshrd_n_u64): Likewise.
21471
21472 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21473
21474 * Makefile.in (s-macro_list): Depend on cc1.
21475
21476 2014-03-23 Teresa Johnson <tejohnson@google.com>
21477
21478 * ipa-utils.c (ipa_print_order): Use specified dump file.
21479
21480 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21481
21482 PR rtl-optimization/60601
21483 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21484
21485 * gcc.c (eval_spec_function): Initialize save_growing_value.
21486
21487 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21488
21489 PR sanitizer/60613
21490 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21491 code == MINUS_EXPR, never swap op0 with op1.
21492
21493 * toplev.c (init_local_tick): Avoid signed integer multiplication
21494 overflow.
21495 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21496 shift by first operand's bitsize.
21497
21498 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21499
21500 PR target/60610
21501 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21502 redefine to 1 or 0.
21503 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21504 TARGET_ISA_64BIT_P(x).
21505
21506 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21507
21508 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21509 pattern for vector nor instead of subtract from splat(-1).
21510 (altivec_expand_vec_perm_const_le): Likewise.
21511
21512 2014-03-21 Richard Henderson <rth@twiddle.net>
21513
21514 PR target/60598
21515 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21516 related insns after epilogue_completed.
21517
21518 2014-03-21 Martin Jambor <mjambor@suse.cz>
21519
21520 PR ipa/59176
21521 * cgraph.h (symtab_node): New flag body_removed.
21522 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21523 when removing bodies.
21524 * symtab.c (dump_symtab_base): Dump body_removed flag.
21525 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21526 had their bodies removed.
21527
21528 2014-03-21 Martin Jambor <mjambor@suse.cz>
21529
21530 PR ipa/60419
21531 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21532 in the border.
21533
21534 2014-03-21 Richard Biener <rguenther@suse.de>
21535
21536 PR tree-optimization/60577
21537 * tree-core.h (struct tree_base): Document nothrow_flag use
21538 in DECL_NONALIASED.
21539 * tree.h (DECL_NONALIASED): New.
21540 (may_be_aliased): Adjust.
21541 * coverage.c (build_var): Set DECL_NONALIASED.
21542
21543 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21544
21545 * expr.c (expand_expr_real_1): Remove outdated comment.
21546
21547 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21548
21549 PR middle-end/60597
21550 * ira.c (adjust_cleared_regs): Call copy_rtx on
21551 *reg_equiv[REGNO (loc)].src_p before passing it to
21552 simplify_replace_fn_rtx.
21553
21554 PR target/60568
21555 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21556 into CONST, put pic register as first operand of PLUS. Use
21557 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21558
21559 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21560
21561 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21562
21563 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21564
21565 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21566 around for store forwarding issue in the FPU on the UT699.
21567 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21568 loads and operations if -mfix-ut699 is specified.
21569 (divtf3_hq): Tweak attribute.
21570 (sqrttf2_hq): Likewise.
21571
21572 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21573
21574 * calls.c (store_one_arg): Remove incorrect const qualification on the
21575 type of the temporary.
21576 * cfgexpand.c (expand_return): Likewise.
21577 * expr.c (expand_constructor): Likewise.
21578 (expand_expr_real_1): Likewise.
21579
21580 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21581
21582 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21583 of parts.
21584
21585 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21586
21587 PR target/60039
21588 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21589
21590 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21591
21592 * config/arm/aarch-common-protos.h
21593 (alu_cost_table): Fix spelling of "extend".
21594 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21595
21596 2014-03-19 Richard Biener <rguenther@suse.de>
21597
21598 PR middle-end/60553
21599 * tree-core.h (tree_type_common): Re-order pointer members
21600 to reduce recursion depth during GC walks.
21601
21602 2014-03-19 Marek Polacek <polacek@redhat.com>
21603
21604 PR sanitizer/60569
21605 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21606 before accessing it.
21607
21608 2014-03-19 Richard Biener <rguenther@suse.de>
21609
21610 PR lto/59543
21611 * lto-streamer-in.c (input_function): In WPA stage do not drop
21612 debug stmts.
21613
21614 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21615
21616 PR tree-optimization/60559
21617 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21618 with build_zero_cst assignment.
21619
21620 2014-03-18 Kai Tietz <ktietz@redhat.com>
21621
21622 PR rtl-optimization/56356
21623 * sdbout.c (sdbout_parms): Verify that parms'
21624 incoming argument is valid.
21625 (sdbout_reg_parms): Likewise.
21626
21627 2014-03-18 Richard Henderson <rth@redhat.com>
21628
21629 PR target/60562
21630 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21631 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21632 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21633
21634 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21635
21636 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21637 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21638 Italicize plugin event names in description. Explain that
21639 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21640 Remind that no GCC functions should be called after PLUGIN_FINISH.
21641 Explain what pragmas with expansion are.
21642
21643 2014-03-18 Martin Liska <mliska@suse.cz>
21644
21645 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21646 gimple call statement is update.
21647 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21648 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21649
21650 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21651
21652 PR sanitizer/60557
21653 * ubsan.c (ubsan_instrument_unreachable): Call
21654 initialize_sanitizer_builtins.
21655 (ubsan_pass): Likewise.
21656
21657 PR sanitizer/60535
21658 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21659 varpool_finalize_decl instead of rest_of_decl_compilation.
21660
21661 2014-03-18 Richard Biener <rguenther@suse.de>
21662
21663 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21664 by using bitmap_and_compl instead of bitmap_and_compl_into.
21665 (df_rd_transfer_function): Likewise.
21666
21667 2014-03-18 Richard Biener <rguenther@suse.de>
21668
21669 * doc/lto.texi (fresolution): Fix typo.
21670
21671 2014-03-18 Richard Biener <rguenther@suse.de>
21672
21673 * doc/invoke.texi (flto): Update for changes in 4.9.
21674
21675 2014-03-18 Richard Biener <rguenther@suse.de>
21676
21677 * doc/loop.texi: Remove section on the removed lambda framework.
21678 Update loop docs with recent changes in preserving loop structure.
21679
21680 2014-03-18 Richard Biener <rguenther@suse.de>
21681
21682 * doc/lto.texi (-fresolution): Document.
21683
21684 2014-03-18 Richard Biener <rguenther@suse.de>
21685
21686 * doc/contrib.texi: Adjust my name.
21687
21688 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21689
21690 PR ipa/58721
21691 * internal-fn.c: Include diagnostic-core.h.
21692 (expand_BUILTIN_EXPECT): New function.
21693 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21694 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21695 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21696 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21697 IFN_BUILTIN_EXPECT.
21698 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21699 Revert 3 argument __builtin_expect code.
21700 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21701 * gimple-fold.c (gimple_fold_call): Likewise.
21702 * tree.h (fold_builtin_expect): New prototype.
21703 * builtins.c (build_builtin_expect_predicate): Add predictor
21704 argument, if non-NULL, create 3 argument __builtin_expect.
21705 (fold_builtin_expect): No longer static. Add ARG2 argument,
21706 pass it through to build_builtin_expect_predicate.
21707 (fold_builtin_2): Adjust caller.
21708 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21709 * internal-fn.def (BUILTIN_EXPECT): New.
21710
21711 2014-03-18 Tobias Burnus <burnus@net-b.de>
21712
21713 PR ipa/58721
21714 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21715 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21716 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21717
21718 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21719
21720 PR ipa/58721
21721 * predict.c (combine_predictions_for_bb): Fix up formatting.
21722 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21723 fill what it points to if non-NULL.
21724 (tree_predict_by_opcode): Adjust caller, use the predictor.
21725 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21726
21727 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21728
21729 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21730 proper constant for the store mode.
21731
21732 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21733
21734 * symtab.c (change_decl_assembler_name): Fix transparent alias
21735 chain construction.
21736
21737 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21738
21739 * config/aarch64/aarch64.c: Correct the comments about the
21740 aarch64 stack layout.
21741
21742 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21743
21744 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21745 check for GF_OMP_FOR_KIND_FOR.
21746
21747 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21748
21749 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21750 ymm and zmm register names.
21751
21752 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21753
21754 PR target/60516
21755 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21756 note creation for the 2010-08-31 changes.
21757
21758 2014-03-17 Marek Polacek <polacek@redhat.com>
21759
21760 PR middle-end/60534
21761 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21762 as -fno-tree-loop-vectorize.
21763 (expand_omp_simd): Likewise.
21764
21765 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21766
21767 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21768 (eligible_for_call_delay): New prototype.
21769 * config/sparc/sparc.c (tls_call_delay): Rename into...
21770 (eligible_for_call_delay): ...this. Return false if the instruction
21771 cannot be put in the delay slot of a branch.
21772 (eligible_for_restore_insn): Simplify.
21773 (eligible_for_return_delay): Return false if the instruction cannot be
21774 put in the delay slot of a branch and simplify.
21775 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21776 put in the delay slot of a branch.
21777 * config/sparc/sparc.md (fix_ut699): New attribute.
21778 (tls_call_delay): Delete.
21779 (in_call_delay): Reimplement.
21780 (eligible_for_sibcall_delay): Rename into...
21781 (in_sibcall_delay): ...this.
21782 (eligible_for_return_delay): Rename into...
21783 (in_return_delay): ...this.
21784 (in_branch_delay): Reimplement.
21785 (in_uncond_branch_delay): Delete.
21786 (in_annul_branch_delay): Delete.
21787
21788 2014-03-14 Richard Henderson <rth@redhat.com>
21789
21790 PR target/60525
21791 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21792 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21793 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21794 (floathi splitters): Remove.
21795 (float<SWI48x>xf2): New pattern.
21796 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21797 code that tried to handle DImode for 32-bit, but which was excluded
21798 by the pattern's condition. Drop allocation of stack temporary.
21799 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21800 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21801 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21802 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21803 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21804 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21805 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21806 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21807 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21808 (*float<SWI48x><X87MODEF>2_i387): Remove.
21809 (all float _with_temp splitters): Remove.
21810 (*float<SWI48x><MODEF>2_i387): New pattern.
21811 (*float<SWI48><MODEF>2_sse): New pattern.
21812 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21813 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21814
21815 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21816 Marek Polacek <polacek@redhat.com>
21817
21818 PR middle-end/60484
21819 * common.opt (dump_base_name_prefixed): New Variable.
21820 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21821 if x_dump_base_name_prefixed is already set, set it at the end.
21822
21823 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21824
21825 PR rtl-optimization/60508
21826 * lra-constraints.c (get_reload_reg): Add new parameter
21827 in_subreg_p.
21828 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21829 Pass the new parameter values.
21830
21831 2014-03-14 Richard Biener <rguenther@suse.de>
21832
21833 * common.opt: Revert unintented changes from r205065.
21834 * opts.c: Likewise.
21835
21836 2014-03-14 Richard Biener <rguenther@suse.de>
21837
21838 PR middle-end/60518
21839 * cfghooks.c (split_block): Properly adjust all loops the
21840 block was a latch of.
21841
21842 2014-03-14 Martin Jambor <mjambor@suse.cz>
21843
21844 PR lto/60461
21845 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21846 and simplify it.
21847
21848 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21849
21850 PR target/59396
21851 * config/avr/avr.c (avr_set_current_function): Pass function name
21852 through default_strip_name_encoding before sanity checking instead
21853 of skipping the first char of the assembler name.
21854
21855 2014-03-13 Richard Henderson <rth@redhat.com>
21856
21857 PR debug/60438
21858 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21859 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21860 * config/i386/i386-protos.h: Likewise.
21861 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21862 in the expander instead of a splitter.
21863 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21864 any possibility of requiring a memory.
21865 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21866 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21867 (fp branch splitters): Update for ix86_split_fp_branch.
21868 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21869 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21870 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21871 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21872 (*fop_<MODEF>_3_i387): Likewise.
21873 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21874 (splitters for the fop_* register patterns): Remove.
21875 (fscalexf4_i387): Rename from *fscalexf4_i387.
21876 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21877
21878 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21879
21880 PR tree-optimization/59779
21881 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21882 type for bitsize and maxsize instead of HOST_WIDE_INT.
21883
21884 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21885
21886 PR rtl-optimization/57320
21887 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21888 the CFG after thread_prologue_and_epilogue_insns.
21889
21890 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21891
21892 PR rtl-optimization/57189
21893 * lra-constraints.c (process_alt_operands): Disfavor spilling
21894 vector pseudos.
21895
21896 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21897
21898 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21899
21900 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21901
21902 PR tree-optimization/59025
21903 PR middle-end/60418
21904 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21905 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21906
21907 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21908
21909 PR target/60486
21910 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21911 calls of avr_out_plus_1.
21912
21913 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21914
21915 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21916 BB's single pred and update the father loop's latch info later.
21917
21918 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21919
21920 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21921 (VEC_M): Likewise.
21922 (VEC_N): Likewise.
21923 (VEC_R): Likewise.
21924 (VEC_base): Likewise.
21925 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21926 registers, we need to swap double words in little endian mode.
21927
21928 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21929 to be a container mode for 128-bit integer operations added in ISA
21930 2.07. Unlike TImode and PTImode, the preferred register set is
21931 the Altivec/VMX registers for the 128-bit operations.
21932
21933 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21934 declarations.
21935 (rs6000_split_128bit_ok_p): Likewise.
21936
21937 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21938 macros for creating ISA 2.07 normal and overloaded builtin
21939 functions with 3 arguments.
21940 (BU_P8V_OVERLOAD_3): Likewise.
21941 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21942 for use as overloaded functions.
21943 (VPERM_1TI_UNS): Likewise.
21944 (VSEL_1TI): Likewise.
21945 (VSEL_1TI_UNS): Likewise.
21946 (ST_INTERNAL_1ti): Likewise.
21947 (LD_INTERNAL_1ti): Likewise.
21948 (XXSEL_1TI): Likewise.
21949 (XXSEL_1TI_UNS): Likewise.
21950 (VPERM_1TI): Likewise.
21951 (VPERM_1TI_UNS): Likewise.
21952 (XXPERMDI_1TI): Likewise.
21953 (SET_1TI): Likewise.
21954 (LXVD2X_V1TI): Likewise.
21955 (STXVD2X_V1TI): Likewise.
21956 (VEC_INIT_V1TI): Likewise.
21957 (VEC_SET_V1TI): Likewise.
21958 (VEC_EXT_V1TI): Likewise.
21959 (EQV_V1TI): Likewise.
21960 (NAND_V1TI): Likewise.
21961 (ORC_V1TI): Likewise.
21962 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
21963 added in ISA 2.07. Add both normal 'altivec' builtins, and the
21964 overloaded builtin.
21965 (VADDUQM): Likewise.
21966 (VSUBCUQ): Likewise.
21967 (VADDEUQM): Likewise.
21968 (VADDECUQ): Likewise.
21969 (VSUBEUQM): Likewise.
21970 (VSUBECUQ): Likewise.
21971
21972 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
21973 __int128_t and __uint128_t types.
21974 (__uint128_type): Likewise.
21975 (altivec_categorize_keyword): Add support for vector __int128_t,
21976 vector __uint128_t, vector __int128, and vector unsigned __int128
21977 as a container type for TImode operations that need to be done in
21978 VSX/Altivec registers.
21979 (rs6000_macro_to_expand): Likewise.
21980 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
21981 to support 128-bit integer instructions vaddcuq, vadduqm,
21982 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
21983 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
21984
21985 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
21986 for V1TImode, and set up preferences to use VSX/Altivec registers.
21987 Setup VSX reload handlers.
21988 (rs6000_debug_reg_global): Likewise.
21989 (rs6000_init_hard_regno_mode_ok): Likewise.
21990 (rs6000_preferred_simd_mode): Likewise.
21991 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
21992 (easy_altivec_constant): Likewise.
21993 (output_vec_const_move): Likewise.
21994 (rs6000_expand_vector_set): Convert V1TImode set and extract to
21995 simple move.
21996 (rs6000_expand_vector_extract): Likewise.
21997 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
21998 addressing.
21999 (rs6000_const_vec): Add support for V1TImode.
22000 (rs6000_emit_le_vsx_load): Swap double words when loading or
22001 storing TImode/V1TImode.
22002 (rs6000_emit_le_vsx_store): Likewise.
22003 (rs6000_emit_le_vsx_move): Likewise.
22004 (rs6000_emit_move): Add support for V1TImode.
22005 (altivec_expand_ld_builtin): Likewise.
22006 (altivec_expand_st_builtin): Likewise.
22007 (altivec_expand_vec_init_builtin): Likewise.
22008 (altivec_expand_builtin): Likewise.
22009 (rs6000_init_builtins): Add support for V1TImode type. Add
22010 support for ISA 2.07 128-bit integer builtins. Define type names
22011 for the VSX/Altivec vector types.
22012 (altivec_init_builtins): Add support for overloaded vector
22013 functions with V1TImode type.
22014 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22015 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22016 external function.
22017 (rs6000_split_128bit_ok_p): Likewise.
22018 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22019 __int128_t and vector __uint128_t.
22020
22021 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22022 and mode attributes.
22023 (VSX_M): Likewise.
22024 (VSX_M2): Likewise.
22025 (VSm): Likewise.
22026 (VSs): Likewise.
22027 (VSr): Likewise.
22028 (VSv): Likewise.
22029 (VS_scalar): Likewise.
22030 (VS_double): Likewise.
22031 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22032
22033 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22034 we support the ISA 2.07 128-bit integer arithmetic instructions.
22035 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22036 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22037 and TImode types for use with the builtin functions.
22038 (V1TI_type_node): Likewise.
22039 (unsigned_V1TI_type_node): Likewise.
22040 (intTI_type_internal_node): Likewise.
22041 (uintTI_type_internal_node): Likewise.
22042
22043 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22044 128-bit builtin functions.
22045 (UNSPEC_VADDEUQM): Likewise.
22046 (UNSPEC_VADDECUQ): Likewise.
22047 (UNSPEC_VSUBCUQ): Likewise.
22048 (UNSPEC_VSUBEUQM): Likewise.
22049 (UNSPEC_VSUBECUQ): Likewise.
22050 (VM): Add V1TImode to vector mode iterators.
22051 (VM2): Likewise.
22052 (VI_unit): Likewise.
22053 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22054 (altivec_vaddcuq): Likewise.
22055 (altivec_vsubuqm): Likewise.
22056 (altivec_vsubcuq): Likewise.
22057 (altivec_vaddeuqm): Likewise.
22058 (altivec_vaddecuq): Likewise.
22059 (altivec_vsubeuqm): Likewise.
22060 (altivec_vsubecuq): Likewise.
22061
22062 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22063 mode iterators.
22064 (BOOL_128): Likewise.
22065 (BOOL_REGS_OUTPUT): Likewise.
22066 (BOOL_REGS_OP1): Likewise.
22067 (BOOL_REGS_OP2): Likewise.
22068 (BOOL_REGS_UNARY): Likewise.
22069 (BOOL_REGS_AND_CR0): Likewise.
22070
22071 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22072 128-bit integer builtin support.
22073 (vec_vadduqm): Likewise.
22074 (vec_vaddecuq): Likewise.
22075 (vec_vaddeuqm): Likewise.
22076 (vec_vsubecuq): Likewise.
22077 (vec_vsubeuqm): Likewise.
22078 (vec_vsubcuq): Likewise.
22079 (vec_vsubuqm): Likewise.
22080
22081 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22082 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22083 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22084 128-bit integer add/subtract to ISA 2.07.
22085
22086 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22087
22088 * config/arc/arc.c (arc_predicate_delay_insns):
22089 Fix third argument passed to conditionalize_nonjump.
22090
22091 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22092
22093 * config/aarch64/aarch64-builtins.c
22094 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22095 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22096 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22097 instead of __builtin_lfloor.
22098 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22099
22100 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22101
22102 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22103 (tree_ssa_ifcombine_bb_1): New function.
22104 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22105 is an empty forwarder block to then_bb or vice versa and then_bb
22106 and else_bb are effectively swapped.
22107
22108 2014-03-12 Christian Bruel <christian.bruel@st.com>
22109
22110 PR target/60264
22111 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22112 REG_CFA_DEF_CFA note.
22113 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22114 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22115
22116 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22117
22118 PR tree-optimization/60454
22119 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22120
22121 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22122
22123 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22124 Do not define target_cpu_default2 to generic.
22125 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22126 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22127 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22128
22129 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22130 Marc Glisse <marc.glisse@inria.fr>
22131
22132 PR tree-optimization/60502
22133 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22134 instead of build_low_bits_mask.
22135
22136 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22137
22138 PR middle-end/60482
22139 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22140 if there are multiple uses, but op doesn't live on E edge.
22141 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22142 clobber stmts before __builtin_unreachable.
22143
22144 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22145
22146 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22147 hard_frame_pointer_rtx.
22148 * cse.c (cse_insn): Remove volatile check.
22149 * cselib.c (cselib_process_insn): Likewise.
22150 * dse.c (scan_insn): Likewise.
22151
22152 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22153
22154 * config/arc/arc.c (conditionalize_nonjump): New function,
22155 broken out of ...
22156 (arc_ifcvt): ... this.
22157 (arc_predicate_delay_insns): Use it.
22158
22159 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22160
22161 * config/arc/predicates.md (extend_operand): During/after reload,
22162 allow const_int_operand.
22163 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22164 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22165 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22166 to "i".
22167 (umulsi3_highpart_i): Likewise.
22168
22169 2014-03-11 Richard Biener <rguenther@suse.de>
22170
22171 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22172 Add asserts to guard possible wrong-code bugs.
22173
22174 2014-03-11 Richard Biener <rguenther@suse.de>
22175
22176 PR tree-optimization/60429
22177 PR tree-optimization/60485
22178 * tree-ssa-structalias.c (set_union_with_increment): Properly
22179 take into account all fields that overlap the shifted vars.
22180 (do_sd_constraint): Likewise.
22181 (do_ds_constraint): Likewise.
22182 (get_constraint_for_ptr_offset): Likewise.
22183
22184 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22185
22186 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22187 (nios2_compute_frame_layout):
22188 Add calculation of cfun->machine->fp_save_offset.
22189 (nios2_expand_prologue): Correct setting of frame pointer register
22190 in prologue.
22191 (nios2_expand_epilogue): Update recovery of stack pointer from
22192 frame pointer accordingly.
22193 (nios2_initial_elimination_offset): Update calculation of offset
22194 for eliminating to HARD_FRAME_POINTER_REGNUM.
22195
22196 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22197
22198 PR ipa/60457
22199 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22200 cgraph_get_create_node on VAR_DECLs.
22201
22202 2014-03-10 Richard Biener <rguenther@suse.de>
22203
22204 PR middle-end/60474
22205 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22206
22207 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22208
22209 * config/vms/vms.opt (vms_float_format): New variable.
22210
22211 2014-03-08 Tobias Burnus <burnus@net-b.de>
22212
22213 * doc/invoke.texi (-fcilkplus): Update implementation status.
22214
22215 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22216 Richard Biener <rguenther@suse.de>
22217
22218 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22219 consistently accross all TUs.
22220 (run_gcc): Enable -fshort-double automatically at link at link-time
22221 and disallow override.
22222
22223 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22224
22225 PR target/58271
22226 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22227 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22228 if they can't be used.
22229
22230 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22231
22232 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22233 for Solaris 11/x86 ld.
22234 * configure: Regenerate.
22235
22236 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22237
22238 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22239 (LIB_TLS_SPEC): Save as ld_tls_libs.
22240 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22241 (HAVE_AS_IX86_TLSLDM): New test.
22242 * configure, config.in: Regenerate.
22243 * config/i386/i386.c (legitimize_tls_address): Fall back to
22244 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22245 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22246 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22247 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22248
22249 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22250
22251 * common.opt (fira-loop-pressure): Mark as optimization.
22252
22253 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22254
22255 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22256 an OpenMP mappable type.
22257
22258 2014-03-06 Matthias Klose <doko@ubuntu.com>
22259
22260 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22261 MULTILIB_OSDIRNAMES is not defined.
22262
22263 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22264 Meador Inge <meadori@codesourcery.com>
22265
22266 PR target/58595
22267 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22268 (arm_legitimize_address): Call legitimize_tls_address for any
22269 arm_tls_referenced_p expression, handle constant addend. Call it
22270 before testing for !TARGET_ARM.
22271 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22272
22273 2014-03-06 Richard Biener <rguenther@suse.de>
22274
22275 PR middle-end/60445
22276 PR lto/60424
22277 PR lto/60427
22278 Revert
22279 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22280
22281 * tree-streamer.c (record_common_node): Assert we don't record
22282 nodes with type double.
22283 (preload_common_node): Skip type double, complex double and double
22284 pointer since it is now frontend dependent due to fshort-double option.
22285
22286 2014-03-06 Richard Biener <rguenther@suse.de>
22287
22288 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22289 or -fno-lto is specified and the linker has full plugin support.
22290 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22291 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22292 * lto-wrapper.c (merge_and_complain): Merge compile-time
22293 optimization levels.
22294 (run_gcc): And pass it through to the link options.
22295
22296 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22297
22298 PR debug/60381
22299 Revert:
22300 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22301 PR debug/59992
22302 * cselib.c (remove_useless_values): Skip to avoid quadratic
22303 behavior if the condition moved from...
22304 (cselib_process_insn): ... here holds.
22305
22306 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22307
22308 PR plugins/59335
22309 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22310 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22311
22312 PR plugins/59335
22313 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22314 (TM_H): Add x86-tune.def.
22315
22316 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22317
22318 * config/aarch64/aarch64.c (generic_tunings):
22319 Use cortexa57_extra_costs.
22320
22321 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22322
22323 PR lto/60404
22324 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22325 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22326 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22327 cost for in_lto_p.
22328
22329 2014-03-04 Heiher <r@hev.cc>
22330
22331 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22332 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22333
22334 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22335
22336 * config/i386/predicates.md (const2356_operand): Change to ...
22337 (const2367_operand): ... this.
22338 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22339 const2367_operand.
22340 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22341 (*avx512pf_scatterpf<mode>sf): Ditto.
22342 (avx512pf_scatterpf<mode>df): Ditto.
22343 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22344 (*avx512pf_scatterpf<mode>df): Ditto.
22345 * config/i386/i386.c (ix86_expand_builtin): Update
22346 incorrect hint operand error message.
22347
22348 2014-03-04 Richard Biener <rguenther@suse.de>
22349
22350 * lto-section-in.c (lto_get_section_data): Fix const cast.
22351
22352 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22353
22354 * tree-streamer.c (record_common_node): Assert we don't record
22355 nodes with type double.
22356 (preload_common_node): Skip type double, complex double and double
22357 pointer since it is now frontend dependent due to fshort-double option.
22358
22359 2014-03-04 Richard Biener <rguenther@suse.de>
22360
22361 PR lto/60405
22362 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22363 (lto_input_toplevel_asms): Likewise.
22364 * lto-section-in.c (lto_get_section_data): Instead do it here
22365 for every section.
22366
22367 2014-03-04 Richard Biener <rguenther@suse.de>
22368
22369 PR tree-optimization/60382
22370 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22371 dead PHIs a reduction.
22372
22373 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22374
22375 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22376 hint value.
22377 (_mm_prefetch): Move out of GCC target("sse") pragma.
22378 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22379 GCC target("prfchw") pragma.
22380 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22381 for locality <= 2.
22382 * config/i386/i386.c (ix86_option_override_internal): Enable
22383 -mprfchw with -mprefetchwt1.
22384
22385 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22386
22387 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22388 Mark as varying.
22389
22390 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22391
22392 * opts.h (CL_PCH_IGNORE): Define.
22393 * targhooks.c (option_affects_pch_p):
22394 Return false for options that have CL_PCH_IGNORE set.
22395 * opt-functions.awk: Process PchIgnore.
22396 * doc/options.texi: Document PchIgnore.
22397
22398 * config/arc/arc.opt (misize): Add PchIgnore property.
22399
22400 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22401
22402 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22403 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22404 constraint on constants to permit them being loaded into
22405 GENERAL_REGS or BASE_REGS.
22406
22407 2014-03-03 Nick Clifton <nickc@redhat.com>
22408
22409 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22410 anti-cacnonical alternatives.
22411 (negandhi3_real): New pattern.
22412 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22413
22414 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22415
22416 * config/avr/avr-mcus.def: Remove atxmega16x1.
22417 * config/avr/avr-tables.opt: Regenerate.
22418 * config/avr/t-multilib: Regenerate.
22419 * doc/avr-mmcu.texi: Regenerate.
22420
22421 2014-03-03 Tobias Grosser <tobias@grosser.es>
22422 Mircea Namolaru <mircea.namolaru@inria.fr>
22423
22424 PR tree-optimization/58028
22425 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22426 scalar dimensions.
22427
22428 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22429
22430 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22431 not handled by recognizers.
22432
22433 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22434
22435 PR middle-end/60175
22436 * function.c (expand_function_end): Don't emit
22437 clobber_return_register sequence if clobber_after is a BARRIER.
22438 * cfgexpand.c (construct_exit_block): Append instructions before
22439 return_label to prev_bb.
22440
22441 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22442
22443 * config/rs6000/constraints.md: Document reserved use of "wc".
22444
22445 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22446
22447 PR ipa/60150
22448 * ipa.c (function_and_variable_visibility): When dissolving comdat
22449 group, also set all symbols to local.
22450
22451 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22452
22453 PR ipa/60306
22454
22455 Revert:
22456 2013-12-14 Jan Hubicka <jh@suse.cz>
22457 PR middle-end/58477
22458 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22459
22460 2014-03-02 Jon Beniston <jon@beniston.com>
22461
22462 PR bootstrap/48230
22463 PR bootstrap/50927
22464 PR bootstrap/52466
22465 PR target/46898
22466 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22467 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22468 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22469 (simple_return, *simple_return): New patterns
22470 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22471 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22472
22473 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22474
22475 * dwarf2out.c (gen_subprogram_die): Tidy.
22476
22477 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22478
22479 PR target/60071
22480 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22481 (*mov_t_msb_neg_negc): ... this new insn.
22482
22483 2014-02-28 Jason Merrill <jason@redhat.com>
22484
22485 PR c++/58678
22486 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22487 function.
22488
22489 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22490
22491 PR c++/60314
22492 * dwarf2out.c (decltype_auto_die): New static.
22493 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22494 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22495 (is_cxx_auto): Likewise.
22496
22497 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22498
22499 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22500 we are not using general regs only.
22501
22502 2014-02-28 Richard Biener <rguenther@suse.de>
22503
22504 PR target/60280
22505 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22506 previous fix and only allow to remove trivial pre-headers
22507 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22508 (remove_forwarder_block): Properly update the latch of a loop.
22509
22510 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22511
22512 PR debug/59992
22513 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22514 (cselib_preserved_hash_table): New.
22515 (preserve_constants_and_equivs): Move preserved vals to it.
22516 (cselib_find_slot): Look it up first.
22517 (cselib_init): Initialize it.
22518 (cselib_finish): Release it.
22519 (dump_cselib_table): Dump it.
22520
22521 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22522
22523 PR debug/59992
22524 * cselib.c (remove_useless_values): Skip to avoid quadratic
22525 behavior if the condition moved from...
22526 (cselib_process_insn): ... here holds.
22527
22528 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22529
22530 PR debug/57232
22531 * var-tracking.c (vt_initialize): Apply the same condition to
22532 preserve the CFA base value.
22533
22534 2014-02-28 Joey Ye <joey.ye@arm.com>
22535
22536 PR target/PR60169
22537 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22538 if reload in progress or completed.
22539
22540 2014-02-28 Tobias Burnus <burnus@net-b.de>
22541
22542 PR middle-end/60147
22543 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22544 NAMELIST_DECL.
22545
22546 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22547
22548 * doc/tm.texi.in (Condition Code Status): Update documention for
22549 relative locations of cc0-setter and cc0-user.
22550
22551 2014-02-27 Jeff Law <law@redhat.com>
22552
22553 PR rtl-optimization/52714
22554 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22555 into two independent simple sets, if I3 is a jump, ensure the
22556 pattern we place into I3 is a (set (pc) ...).
22557
22558 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22559 Jeff Law <law@redhat.com>
22560
22561 PR rtl-optimization/49847
22562 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22563 are in different blocks.
22564 * doc/tm.texi (Condition Code Status): Update documention for
22565 relative locations of cc0-setter and cc0-user.
22566
22567 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22568
22569 PR target/59222
22570 * lra.c (lra_emit_add): Check SUBREG too.
22571
22572 2014-02-27 Andreas Schwab <schwab@suse.de>
22573
22574 * config/m68k/m68k.c (m68k_option_override): Disable
22575 -flive-range-shrinkage for classic m68k.
22576 (m68k_override_options_after_change): Likewise.
22577
22578 2014-02-27 Marek Polacek <polacek@redhat.com>
22579
22580 PR middle-end/59223
22581 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22582 -Wmaybe-uninitialized.
22583
22584 2014-02-27 Alan Modra <amodra@gmail.com>
22585
22586 PR target/57936
22587 * reload1.c (emit_input_reload_insns): When reload_override_in,
22588 set old to rl->in_reg when rl->in_reg is a subreg.
22589
22590 2014-02-26 Richard Biener <rguenther@suse.de>
22591
22592 PR bootstrap/60343
22593 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22594
22595 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22596
22597 * common/config/i386/predicates.md (const1256_operand): Remove.
22598 (const2356_operand): New.
22599 (const_1_to_2_operand): Remove.
22600 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22601 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22602 (*avx512pf_gatherpf<mode>sf): Ditto.
22603 (avx512pf_gatherpf<mode>df): Ditto.
22604 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22605 (*avx512pf_gatherpf<mode>df): Ditto.
22606 (avx512pf_scatterpf<mode>sf): Ditto.
22607 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22608 (*avx512pf_scatterpf<mode>sf): Ditto.
22609 (avx512pf_scatterpf<mode>df): Ditto.
22610 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22611 (*avx512pf_scatterpf<mode>df): Ditto.
22612 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22613
22614 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22615
22616 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22617 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22618 (_mm512_mask_testn_epi64_mask): Move to ...
22619 * config/i386/avx512cdintrin.h: Here.
22620 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22621 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22622 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22623 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22624 TARGET_AVX512F from TARGET_AVX512CD.
22625
22626 2014-02-26 Richard Biener <rguenther@suse.de>
22627
22628 PR ipa/60327
22629 * ipa.c (walk_polymorphic_call_targets): Properly guard
22630 call to inline_update_overall_summary.
22631
22632 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22633
22634 PR target/60280
22635 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22636 and latches only if requested. Fix latch if it is removed.
22637 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22638 LOOPS_HAVE_PREHEADERS.
22639
22640 2014-02-25 Andrew Pinski <apinski@cavium.com>
22641
22642 * builtins.c (expand_builtin_thread_pointer): Create a new target
22643 when the target is NULL.
22644
22645 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22646
22647 PR rtl-optimization/60317
22648 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22649 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22650 * lra-assigns.c: Include params.h.
22651 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22652 other reload pseudos considerations.
22653
22654 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22655
22656 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22657 to use canonical form for nor<mode>3.
22658
22659 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22660
22661 PR target/55426
22662 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22663 conversions.
22664
22665 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22666
22667 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22668 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22669 (ix86_handle_option): Handle OPT_mprefetchwt1.
22670 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22671 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22672 PREFETCHWT1 CPUID.
22673 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22674 OPTION_MASK_ISA_PREFETCHWT1.
22675 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22676 (PTA_PREFETCHWT1): New.
22677 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22678 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22679 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22680 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22681 (*prefetch_avx512pf_<mode>_: Change into ...
22682 (*prefetch_prefetchwt1_<mode>: This.
22683 * config/i386/i386.opt (mprefetchwt1): New.
22684 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22685 (_mm_prefetch): Handle intent to write.
22686 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22687
22688 2014-02-25 Richard Biener <rguenther@suse.de>
22689
22690 PR middle-end/60291
22691 * emit-rtl.c (mem_attrs_htab): Remove.
22692 (mem_attrs_htab_hash): Likewise.
22693 (mem_attrs_htab_eq): Likewise.
22694 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22695 (init_emit_once): Do not allocate mem_attrs_htab.
22696
22697 2014-02-25 Richard Biener <rguenther@suse.de>
22698
22699 PR lto/60319
22700 * lto-opts.c (lto_write_options): Output non-explicit conservative
22701 -fwrapv, -fno-trapv and -fno-strict-overflow.
22702 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22703 (run_gcc): And pass them through.
22704
22705 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22706
22707 * sel-sched.c (calculate_new_fences): New parameter ptime.
22708 Calculate it as a maximum over all fence cycles.
22709 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22710 Print the final schedule timing when sched_verbose.
22711
22712 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22713
22714 PR rtl-optimization/60292
22715 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22716 bit fot the fence instruction.
22717
22718 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22719
22720 * calls.h: Fix typo in comment.
22721
22722 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22723
22724 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22725 adjusting offsetable addresses.
22726
22727 2014-02-24 Guozhi Wei <carrot@google.com>
22728
22729 * sparseset.h (sparseset_pop): Fix the wrong index.
22730
22731 2014-02-24 Walter Lee <walt@tilera.com>
22732
22733 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22734 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22735 triplet.
22736 * common/config/tilegx/tilegx-common.c
22737 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22738 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22739 (LINK_SPEC): Ditto.
22740 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22741 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22742 (tilegx_gimplify_va_arg_expr): Handle big endian.
22743 (tilegx_expand_unaligned_load): Ditto.
22744 (tilegx_expand_unaligned_store): Ditto.
22745 (TARGET_RETURN_IN_MSB): New.
22746 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22747 (TARGET_ENDIAN_DEFAULT): New.
22748 (TARGET_BIG_ENDIAN): Handle big endian.
22749 (BYTES_BIG_ENDIAN): Ditto.
22750 (WORDS_BIG_ENDIAN): Ditto.
22751 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22752 (ENDIAN_SPEC): New.
22753 (EXTRA_SPECS): New.
22754 * config/tilegx/tilegx.md (extv): Handle big endian.
22755 (extzv): Ditto.
22756 (insn_st<n>): Ditto.
22757 (insn_st<n>_add<bitsuffix>): Ditto.
22758 (insn_stnt<n>): Ditto.
22759 (insn_stnt<n>_add<bitsuffix>):Ditto.
22760 (vec_interleave_highv8qi): Handle big endian.
22761 (vec_interleave_highv8qi_be): New.
22762 (vec_interleave_highv8qi_le): New.
22763 (insn_v1int_h): Handle big endian.
22764 (vec_interleave_lowv8qi): Handle big endian.
22765 (vec_interleave_lowv8qi_be): New.
22766 (vec_interleave_lowv8qi_le): New.
22767 (insn_v1int_l): Handle big endian.
22768 (vec_interleave_highv4hi): Handle big endian.
22769 (vec_interleave_highv4hi_be): New.
22770 (vec_interleave_highv4hi_le): New.
22771 (insn_v2int_h): Handle big endian.
22772 (vec_interleave_lowv4hi): Handle big endian.
22773 (vec_interleave_lowv4hi_be): New.
22774 (vec_interleave_lowv4hi_le): New.
22775 (insn_v2int_l): Handle big endian.
22776 (vec_interleave_highv2si): Handle big endian.
22777 (vec_interleave_highv2si_be): New.
22778 (vec_interleave_highv2si_le): New.
22779 (insn_v4int_h): Handle big endian.
22780 (vec_interleave_lowv2si): Handle big endian.
22781 (vec_interleave_lowv2si_be): New.
22782 (vec_interleave_lowv2si_le): New.
22783 (insn_v4int_l): Handle big endian.
22784 * config/tilegx/tilegx.opt (mbig-endian): New option.
22785 (mlittle-endian): New option.
22786 * doc/install.texi: Document tilegxbe-linux.
22787 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22788
22789 2014-02-24 Martin Jambor <mjambor@suse.cz>
22790
22791 PR ipa/60266
22792 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22793 there are no parameter descriptors.
22794
22795 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22796
22797 PR rtl-optimization/60268
22798 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22799 initialization to ...
22800 (sched_rgn_init): ... here.
22801 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22802
22803 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22804
22805 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22806 names.
22807
22808 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22809
22810 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22811 definition.
22812
22813 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22814
22815 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22816 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22817
22818 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22819
22820 * config/microblaze/predicates.md: Add cmp_op predicate.
22821 * config/microblaze/microblaze.md: Add branch_compare instruction
22822 which uses cmp_op predicate and emits cmp insn before branch.
22823 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22824 to microblaze_expand_conditional_branch and consolidate logic.
22825 (microblaze_expand_conditional_branch): emit branch_compare
22826 insn instead of handling cmp op separate from branch insn.
22827
22828 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22829
22830 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22831 to permit subregs.
22832
22833 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22834
22835 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22836 define_insn with define_expand and new define_insn
22837 *altivec_lve<VI_char>x_internal.
22838 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22839 and new define_insn *altivec_stve<VI_char>x_internal.
22840 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22841 prototype.
22842 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22843 lve*x built-ins.
22844 (altivec_expand_stvex_be): New function.
22845
22846 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22847
22848 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22849 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22850 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22851 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22852
22853 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22854
22855 PR target/60298
22856 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22857 instead of emit_move_insn.
22858
22859 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22860
22861 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22862 vspltw with vsldoi.
22863 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22864 gen_altivec_vsumsws.
22865
22866 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22867
22868 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22869 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22870 (altivec_lvxl_<mode>): New define_expand incorporating
22871 -maltivec=be semantics where needed.
22872 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22873 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22874 semantics where needed.
22875 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22876 (altivec_stvx_<mode>): New define_expand incorporating
22877 -maltivec=be semantics where needed.
22878 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22879 VM2 iterator instead of V4SI.
22880 (altivec_stvxl_<mode>): New define_expand incorporating
22881 -maltivec=be semantics where needed.
22882 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22883 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22884 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22885 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22886 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22887 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22888 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22889 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22890 ALTIVEC_BUILTIN_STVXL.
22891 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22892 (altivec_expand_stvx_be): Likewise.
22893 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22894 (altivec_expand_lvx_be): Likewise.
22895 (altivec_expand_stvx_be): Likewise.
22896 (altivec_expand_builtin): Add cases for
22897 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22898 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22899 (altivec_init_builtins): Add definitions for
22900 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22901 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22902
22903 2014-02-21 Catherine Moore <clm@codesourcery.com>
22904
22905 * doc/invoke.texi (mvirt, mno-virt): Document.
22906 * config/mips/mips.opt (mvirt): New option.
22907 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22908
22909 2014-02-21 Richard Biener <rguenther@suse.de>
22910
22911 PR tree-optimization/60276
22912 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22913 (STMT_VINFO_MIN_NEG_DIST): New macro.
22914 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22915 STMT_VINFO_MIN_NEG_DIST.
22916 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22917 made for negative dependence distances still hold.
22918
22919 2014-02-21 Richard Biener <rguenther@suse.de>
22920
22921 PR middle-end/60291
22922 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22923 DECL_INITIAL for globals not in the current function context.
22924
22925 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22926
22927 PR tree-optimization/56490
22928 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22929 * tree-ssa-uninit.c: Include params.h.
22930 (compute_control_dep_chain): Add num_calls argument, return false
22931 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22932 num_calls to recursive call.
22933 (find_predicates): Change dep_chain into normal array,
22934 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22935 variable and adjust compute_control_dep_chain caller.
22936 (find_def_preds): Likewise.
22937
22938 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22939
22940 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22941 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22942
22943 2014-02-21 Nick Clifton <nickc@redhat.com>
22944
22945 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22946 (pushhi1): Likewise.
22947 (popqi1): Add mode to pre_dec.
22948 (pophi1): Likewise.
22949
22950 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22951
22952 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
22953 mode for mask of V8SFmode permutation.
22954
22955 2014-02-20 Richard Henderson <rth@redhat.com>
22956
22957 PR c++/60272
22958 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
22959 a new pseudo for OLDVAL.
22960
22961 2014-02-20 Jakub Jelinek <jakub@redhat.com>
22962
22963 PR target/57896
22964 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
22965 gen_reg_rtx if d->testing_p.
22966 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
22967 if d->testing_p and we will certainly return true.
22968 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
22969 if d->testing_p.
22970
22971 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
22972
22973 * emit-rtl.c (gen_reg_rtx): Assert that
22974 crtl->emit.regno_pointer_align_length is non-zero.
22975
22976 2014-02-20 Richard Henderson <rth@redhat.com>
22977
22978 PR c++/60272
22979 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
22980 on failure the store back into EXPECT.
22981
22982 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
22983 Sandra Loosemore <sandra@codesourcery.com>
22984
22985 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
22986 * config/nios2/nios2.c (nios2_function_profiler): Add
22987 -fPIC (flag_pic == 2) support.
22988 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
22989 (nios2_large_offset_p): New function.
22990 (nios2_unspec_reloc_p): Move up position, update to use
22991 nios2_large_offset_p.
22992 (nios2_unspec_address): Remove function.
22993 (nios2_unspec_offset): New function.
22994 (nios2_large_got_address): New function.
22995 (nios2_got_address): Add large offset support.
22996 (nios2_legitimize_tls_address): Update usage of removed and new
22997 functions.
22998 (nios2_symbol_binds_local_p): New function.
22999 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23000 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23001 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23002 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23003 processing for (const (unspec ...)).
23004 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23005
23006 2014-02-20 Richard Biener <rguenther@suse.de>
23007
23008 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23009 doing the substitution.
23010 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23011
23012 2014-02-20 Martin Jambor <mjambor@suse.cz>
23013
23014 PR ipa/55260
23015 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23016 info when checking whether lattices are bottom.
23017
23018 2014-02-20 Richard Biener <rguenther@suse.de>
23019
23020 PR middle-end/60221
23021 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23022 regions at -O0.
23023
23024 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23025
23026 PR ipa/58555
23027 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23028 parameter specifying the scaling.
23029 (inline_call): Update.
23030 (want_inline_recursively): Guard division by zero.
23031 (recursive_inlining): Update.
23032 * ipa-inline.h (clone_inlined_nodes): Update.
23033
23034 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23035
23036 PR target/60204
23037 * config/i386/i386.c (classify_argument): Pass structures of size
23038 64 bytes or less in register.
23039
23040 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23041 Kirill Yukhin <kirill.yukhin@intel.com>
23042
23043 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23044 (_mm_rcp28_round_ss): Ditto.
23045 (_mm_rsqrt28_round_sd): Ditto.
23046 (_mm_rsqrt28_round_ss): Ditto.
23047 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23048 (_mm_rcp14_round_ss): Ditto.
23049 (_mm_rsqrt14_round_sd): Ditto.
23050 (_mm_rsqrt14_round_ss): Ditto.
23051 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23052 the first input operand, get rid of match_dup.
23053 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23054 attribute to sse.
23055 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23056 Ditto.
23057 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23058 operand as the first input operand, set type attribute.
23059 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23060 Set type attribute.
23061 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23062 operand as the first input operand, set type attribute.
23063
23064 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23065
23066 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23067 bit of zero.
23068
23069 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23070
23071 PR target/60207
23072 * config/i386/i386.c (construct_container): Remove TFmode check
23073 for X86_64_INTEGER_CLASS.
23074
23075 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23076
23077 PR target/59794
23078 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23079 only when -Wpsabi is enabled.
23080
23081 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23082
23083 PR target/59799
23084 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23085 passing arrays in registers are the same as for structs, so remove the
23086 special case for them.
23087
23088 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23089
23090 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23091 destination type, extract only the valid bits if the source type is not
23092 integral and has a different mode.
23093
23094 2014-02-19 Richard Biener <rguenther@suse.de>
23095
23096 PR ipa/60243
23097 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23098 for all calls.
23099
23100 2014-02-19 Richard Biener <rguenther@suse.de>
23101
23102 PR ipa/60243
23103 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23104 (ipa_modify_call_arguments): Emit an argument load explicitely and
23105 preserve virtual SSA form there and for the replacement call.
23106 Do not update SSA form nor free dominance info.
23107
23108 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23109
23110 * ipa.c (function_and_variable_visibility): Also clear WEAK
23111 flag when disolving COMDAT_GROUP.
23112
23113 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23114
23115 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23116 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23117 not devirtualizing.
23118 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23119 do more sanity checks.
23120 (detect_type_change): Return true when giving up early.
23121 (compute_complex_assign_jump_func): Fix type parameter of
23122 ipa_set_ancestor_jf.
23123 (compute_complex_ancestor_jump_func): Likewise.
23124 (update_jump_functions_after_inlining): Fix updating of
23125 ancestor function.
23126 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23127
23128 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23129
23130 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23131 inline clones when edge disappears.
23132
23133 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23134
23135 PR target/60203
23136 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23137 Split 64-bit moves into 2 patterns. Do not allow the use of
23138 direct move for TDmode in little endian, since the decimal value
23139 has little endian bytes within a word, but the 64-bit pieces are
23140 ordered in a big endian fashion, and normal subreg's of TDmode are
23141 not allowed.
23142 (mov<mode>_64bit_dm): Likewise.
23143 (movtd_64bit_nodm): Likewise.
23144
23145 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23146
23147 PR tree-optimization/60174
23148 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23149 statement of an SSA_NAME that occurs in an abnormal PHI node.
23150
23151 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23152
23153 PR sanitizer/60142
23154 * final.c (SEEN_BB): Remove.
23155 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23156 (final_scan_insn): Don't force_source_line on second
23157 NOTE_INSN_BASIC_BLOCK.
23158
23159 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23160
23161 PR target/60205
23162 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23163 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23164 (type_natural_mode): Warn ABI change when %zmm register is not
23165 available for AVX512F vector value passing.
23166
23167 2014-02-18 Kai Tietz <ktietz@redhat.com>
23168
23169 PR target/60193
23170 * config/i386/i386.c (ix86_expand_prologue): Use value in
23171 rax register as displacement when restoring %r10 or %rax.
23172 Fix wrong offset when restoring both registers.
23173
23174 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23175
23176 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23177 assertion with conditional return.
23178
23179 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23180 Uros Bizjak <ubizjak@gmail.com>
23181
23182 PR driver/60233
23183 * config/i386/driver-i386.c (host_detect_local_cpu): If
23184 YMM state is not saved by the OS, also clear has_f16c. Move
23185 CPUID 0x80000001 handling before YMM state saving checking.
23186
23187 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23188
23189 PR rtl-optimization/58960
23190 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23191 factored out from ...
23192 (sched_init): ... here.
23193 (free_global_sched_pressure_data): New, factored out from ...
23194 (sched_finish): ... here.
23195 * sched-int.h (free_global_sched_pressure_data): Declare.
23196 * sched-rgn.c (nr_regions_initial): New static global.
23197 (haifa_find_rgns): Initialize it.
23198 (schedule_region): Disable sched-pressure for the newly
23199 generated regions.
23200
23201 2014-02-17 Richard Biener <rguenther@suse.de>
23202
23203 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23204 release SSA defs of pattern stmts.
23205
23206 2014-02-17 Richard Biener <rguenther@suse.de>
23207
23208 * tree-inline.c (expand_call_inline): Release the virtual
23209 operand defined by the call we are about to inline.
23210
23211 2014-02-17 Richard Biener <rguenther@suse.de>
23212
23213 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23214
23215 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23216 Ilya Tocar <ilya.tocar@intel.com>
23217
23218 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23219 arguments order in builtin.
23220 (_mm512_permutexvar_epi64): Ditto.
23221 (_mm512_mask_permutexvar_epi64): Ditto
23222 (_mm512_maskz_permutexvar_epi32): Ditto
23223 (_mm512_permutexvar_epi32): Ditto
23224 (_mm512_mask_permutexvar_epi32): Ditto
23225
23226 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23227
23228 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23229 (p8_vmrgow): Likewise.
23230
23231 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23232
23233 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23234 endian targets.
23235
23236 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23237
23238 PR target/60203
23239 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23240 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23241 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23242 using direct move instructions on ISA 2.07. Also adjust
23243 instruction length for 64-bit.
23244 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23245 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23246
23247 2014-02-15 Alan Modra <amodra@gmail.com>
23248
23249 PR target/58675
23250 PR target/57935
23251 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23252 find_replacement on parts of insn rtl that might be reloaded.
23253
23254 2014-02-15 Richard Biener <rguenther@suse.de>
23255
23256 PR tree-optimization/60183
23257 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23258 (tree_ssa_phiprop): Calculate and free post-dominators.
23259
23260 2014-02-14 Jeff Law <law@redhat.com>
23261
23262 PR rtl-optimization/60131
23263 * ree.c (get_extended_src_reg): New function.
23264 (combine_reaching_defs): Use it rather than assuming location of REG.
23265 (find_and_remove_re): Verify first operand of extension is
23266 a REG before adding the insns to the copy list.
23267
23268 2014-02-14 Roland McGrath <mcgrathr@google.com>
23269
23270 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23271 * configure: Regenerated.
23272 * config.in: Regenerated.
23273 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23274 instead of ASM_SHORT.
23275
23276 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23277 Richard Earnshaw <rearnsha@arm.com>
23278
23279 PR rtl-optimization/59535
23280 * lra-constraints.c (process_alt_operands): Encourage alternative
23281 when unassigned pseudo class is superset of the alternative class.
23282 (inherit_reload_reg): Don't inherit when optimizing for code size.
23283 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23284 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23285 modes not less than 4 for Thumb1.
23286
23287 2014-02-14 Kyle McMartin <kyle@redhat.com>
23288
23289 PR pch/60010
23290 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23291
23292 2014-02-14 Richard Biener <rguenther@suse.de>
23293
23294 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23295 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23296 Do not strip INDIRECT_REFs.
23297
23298 2014-02-14 Richard Biener <rguenther@suse.de>
23299
23300 PR lto/60179
23301 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23302 DECL_FUNCTION_SPECIFIC_TARGET.
23303 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23304 * tree-streamer-out.c (pack_ts_target_option): Remove.
23305 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23306 (write_ts_function_decl_tree_pointers): Do not stream
23307 DECL_FUNCTION_SPECIFIC_TARGET.
23308 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23309 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23310 (lto_input_ts_function_decl_tree_pointers): Do not stream
23311 DECL_FUNCTION_SPECIFIC_TARGET.
23312
23313 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23314
23315 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23316 (get_initial_def_for_induction, vectorizable_induction): Ignore
23317 debug stmts when looking for exit_phi.
23318 (vectorizable_live_operation): Fix up condition.
23319
23320 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23321
23322 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23323 nreverse() because it changes the content of original tree list.
23324
23325 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23326
23327 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23328 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23329
23330 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23331
23332 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23333 GNU coding standards.
23334
23335 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23336
23337 PR debug/60152
23338 * dwarf2out.c (gen_subprogram_die): Don't call
23339 add_calling_convention_attribute if subr_die is old_die.
23340
23341 2014-02-13 Sharad Singhai <singhai@google.com>
23342
23343 * doc/optinfo.texi: Fix order of nodes.
23344
23345 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23346
23347 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23348 operands[2], not operands[3].
23349
23350 2014-02-13 Richard Biener <rguenther@suse.de>
23351
23352 PR bootstrap/59878
23353 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23354 mention the possibility of an in-tree build.
23355 (CLooG): Update recommended version to 0.18.1, mention the
23356 possibility of an in-tree build and clarify that the ISL
23357 bundled with CLooG does not work.
23358
23359 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23360
23361 PR target/43546
23362 * expr.c (compress_float_constant): If x is a hard register,
23363 extend into a pseudo and then move to x.
23364
23365 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23366
23367 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23368 caused by bad second argument to warning_at() with -mhotpatch and
23369 nested functions (e.g. with gfortran).
23370
23371 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23372
23373 * opts.c (option_name): Remove "enabled by default" rider.
23374
23375 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23376
23377 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23378
23379 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23380 Uros Bizjak <ubizjak@gmail.com>
23381
23382 PR target/60151
23383 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23384 * configure: Regenerated.
23385
23386 2014-02-12 Richard Biener <rguenther@suse.de>
23387
23388 * vec.c (vec_prefix::calculate_allocation): Move as
23389 inline variant to vec.h.
23390 (vec_prefix::calculate_allocation_1): New out-of-line version.
23391 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23392 (vec_prefix::m_has_auto_buf): Rename to ...
23393 (vec_prefix::m_using_auto_storage): ... this.
23394 (vec_prefix::calculate_allocation): Inline the easy cases
23395 and dispatch to calculate_allocation_1 which doesn't need the
23396 prefix address.
23397 (va_heap::reserve): Use gcc_checking_assert.
23398 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23399 m_using_auto_storage.
23400 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23401 member and adjust.
23402 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23403 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23404 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23405
23406 2014-02-12 Richard Biener <rguenther@suse.de>
23407
23408 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23409 when we found a dependence.
23410
23411 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23412
23413 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23414 common code...
23415 (maybe_fold_stmt): ... into this new function.
23416 * omp-low.c (lower_omp): Update comment.
23417
23418 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23419 last use.
23420
23421 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23422 dereference.
23423
23424 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23425
23426 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23427 identifiers in comments.
23428 (cortexa53_extra_costs): Likewise.
23429 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23430 (cortexa7_extra_costs): Likewise.
23431 (cortexa12_extra_costs): Likewise.
23432 (cortexa15_extra_costs): Likewise.
23433 (v7m_extra_costs): Likewise.
23434
23435 2014-02-12 Richard Biener <rguenther@suse.de>
23436
23437 PR middle-end/60092
23438 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23439 of posix_memalign being successful.
23440 (lower_stmt): Restrict lowering of posix_memalign to when
23441 -ftree-bit-ccp is enabled.
23442
23443 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23444
23445 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23446 arg_loc.
23447 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23448
23449 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23450
23451 PR rtl-optimization/60116
23452 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23453 other_insn once the combination has been validated.
23454
23455 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23456
23457 PR lto/59468
23458 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23459 and wrapper.
23460 * ipa-devirt.c: Include demangle.h
23461 (odr_violation_reported): New static variable.
23462 (add_type_duplicate): Update odr_violations.
23463 (maybe_record_node): Add completep parameter; update it.
23464 (record_target_from_binfo): Add COMPLETEP parameter;
23465 update it as needed.
23466 (possible_polymorphic_call_targets_1): Likewise.
23467 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23468 rename FINAL to COMPLETE.
23469 (record_targets_from_bases): Sanity check we found the binfo;
23470 fix COMPLETEP updating.
23471 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23472 parameter, fix computing of COMPLETEP.
23473 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23474 at LTO time do demangling.
23475 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23476 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23477 parameter.
23478 (gimple_get_virt_method_for_binfo): Likewise.
23479 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23480 gimple_get_virt_method_for_vtable): Update prototypes.
23481
23482 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23483
23484 PR target/49008
23485 * genautomata.c (add_presence_absence): Fix typo with
23486 {final_}presence_list.
23487
23488 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23489
23490 PR target/60137
23491 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23492 for VSX/Altivec vectors that land in GPR registers.
23493
23494 2014-02-11 Richard Henderson <rth@redhat.com>
23495 Jakub Jelinek <jakub@redhat.com>
23496
23497 PR debug/59776
23498 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23499 around drhs if type conversion to lacc->type is not useless.
23500
23501 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23502
23503 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23504 tuning struct.
23505 (cortex-a57.cortex-a53): Likewise.
23506 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23507
23508 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23509
23510 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23511 arm_restrict_it.
23512
23513 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23514
23515 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23516 add_options_for_arm_vfp3.
23517
23518 2014-02-11 Jeff Law <law@redhat.com>
23519
23520 PR middle-end/54041
23521 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23522 object with an undesirable mode.
23523
23524 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23525
23526 PR libgomp/60107
23527 * config/i386/sol2-9.h: New file.
23528 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23529 *-*-solaris2.9*): Use it.
23530
23531 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23532
23533 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23534 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23535
23536 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23537
23538 * config/microblaze/microblaze.c: Extend mcpu version format
23539
23540 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23541
23542 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23543
23544 2014-02-10 Richard Henderson <rth@redhat.com>
23545
23546 PR target/59927
23547 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23548 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23549 ms-abi vs -mno-accumulate-outgoing-args.
23550 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23551 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23552 respect to ms-abi.
23553
23554 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23555
23556 PR middle-end/60080
23557 * cfgexpand.c (expand_asm_operands): Attach source location to
23558 ASM_INPUT rtx objects.
23559 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23560
23561 2014-02-10 Nick Clifton <nickc@redhat.com>
23562
23563 * config/mn10300/mn10300.c (popcount): New function.
23564 (mn10300_expand_prologue): Include saved registers in stack usage
23565 count.
23566
23567 2014-02-10 Jeff Law <law@redhat.com>
23568
23569 PR middle-end/52306
23570 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23571 when changing the SET_DEST of a prior insn to avoid an input reload.
23572
23573 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23574
23575 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23576 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23577 -mcall-openbsd, or -mcall-linux.
23578 (CC1_ENDIAN_BIG_SPEC): Remove.
23579 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23580 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23581 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23582 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23583 and %cc1_endian_default.
23584 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23585
23586 2014-02-10 Richard Biener <rguenther@suse.de>
23587
23588 PR tree-optimization/60115
23589 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23590 MEM_REF handling. Properly verify that the accesses are not
23591 out of the objects bound.
23592
23593 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23594
23595 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23596 coretex to cortex.
23597
23598 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23599
23600 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23601 proper constants and fix formatting.
23602 (possible_polymorphic_call_targets): Fix formatting.
23603
23604 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23605 Ilya Tocar <ilya.tocar@intel.com>
23606
23607 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23608 (_mm512_loadu_epi32): Renamed into...
23609 (_mm512_loadu_si512): This.
23610 (_mm512_storeu_epi32): Renamed into...
23611 (_mm512_storeu_si512): This.
23612 (_mm512_maskz_ceil_ps): Removed.
23613 (_mm512_maskz_ceil_pd): Ditto.
23614 (_mm512_maskz_floor_ps): Ditto.
23615 (_mm512_maskz_floor_pd): Ditto.
23616 (_mm512_floor_round_ps): Ditto.
23617 (_mm512_floor_round_pd): Ditto.
23618 (_mm512_ceil_round_ps): Ditto.
23619 (_mm512_ceil_round_pd): Ditto.
23620 (_mm512_mask_floor_round_ps): Ditto.
23621 (_mm512_mask_floor_round_pd): Ditto.
23622 (_mm512_mask_ceil_round_ps): Ditto.
23623 (_mm512_mask_ceil_round_pd): Ditto.
23624 (_mm512_maskz_floor_round_ps): Ditto.
23625 (_mm512_maskz_floor_round_pd): Ditto.
23626 (_mm512_maskz_ceil_round_ps): Ditto.
23627 (_mm512_maskz_ceil_round_pd): Ditto.
23628 (_mm512_expand_pd): Ditto.
23629 (_mm512_expand_ps): Ditto.
23630 * config/i386/i386.c (ix86_builtins): Remove
23631 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23632 (bdesc_args): Ditto.
23633 * config/i386/predicates.md (const1256_operand): New.
23634 (const_1_to_2_operand): Ditto.
23635 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23636 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23637 (*avx512pf_gatherpf<mode>sf): Ditto.
23638 (avx512pf_gatherpf<mode>df): Ditto.
23639 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23640 (*avx512pf_gatherpf<mode>df): Ditto.
23641 (avx512pf_scatterpf<mode>sf): Ditto.
23642 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23643 (*avx512pf_scatterpf<mode>sf): Ditto.
23644 (avx512pf_scatterpf<mode>df): Ditto.
23645 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23646 (*avx512pf_scatterpf<mode>df): Ditto.
23647 (avx512f_expand<mode>): Removed.
23648 (<shift_insn><mode>3<mask_name>): Change predicate type.
23649
23650 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23651
23652 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23653 not at the end of datarefs vector use ordered_remove to avoid
23654 reordering datarefs vector.
23655
23656 PR c/59984
23657 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23658 mark local addressable non-static vars as GOVD_PRIVATE
23659 instead of GOVD_LOCAL.
23660 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23661 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23662 than copying them.
23663
23664 PR middle-end/60092
23665 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23666 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23667 assume_aligned or alloc_align attributes.
23668 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23669 arguments. Handle also assume_aligned and alloc_align attributes.
23670 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23671 calls to functions with assume_aligned or alloc_align attributes.
23672 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23673
23674 2014-02-08 Terry Guo <terry.guo@arm.com>
23675
23676 * doc/invoke.texi: Document ARM -march=armv7e-m.
23677
23678 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23679
23680 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23681 flag on __cilkrts_rethrow builtin.
23682
23683 PR ipa/60026
23684 * ipa-cp.c (determine_versionability): Fail at -O0
23685 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23686 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23687
23688 Revert:
23689 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23690
23691 PR ipa/60026
23692 * tree-inline.c (copy_forbidden): Fail for
23693 __attribute__((optimize (0))) functions.
23694
23695 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23696
23697 * varpool.c: Include pointer-set.h.
23698 (varpool_remove_unreferenced_decls): Variables in other partitions
23699 will not be output; be however careful to not lose information
23700 about partitioning.
23701
23702 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23703
23704 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23705 lookup in the vtable constructor.
23706
23707 2014-02-07 Jeff Law <law@redhat.com>
23708
23709 PR target/40977
23710 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23711 define_insn_and_split.
23712
23713 * ipa-inline.c (inline_small_functions): Fix typos.
23714
23715 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23716
23717 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23718 (s390_can_use_return_insn): Declare.
23719 * config/s390/s390.h (EPILOGUE_USES): Define.
23720 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23721 instructions.
23722 (s390_chunkify_start): Handle return JUMP_LABELs.
23723 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23724 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23725 (s390_can_use_return_insn): New functions.
23726 (s390_fix_long_loop_prediction): Handle conditional returns.
23727 (TARGET_SET_UP_BY_PROLOGUE): Define.
23728 * config/s390/s390.md (ANY_RETURN): New code iterator.
23729 (*creturn, *csimple_return, return, simple_return): New patterns.
23730
23731 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23732
23733 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23734 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23735 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23736 REG_CFA_RESTORE list when deciding not to restore a register.
23737
23738 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23739
23740 * config/s390/s390.c: Include tree-pass.h and context.h.
23741 (s390_early_mach): New function, split out from...
23742 (s390_emit_prologue): ...here.
23743 (pass_data_s390_early_mach): New pass structure.
23744 (pass_s390_early_mach): New class.
23745 (s390_option_override): Create and register early_mach pass.
23746 Move to end of file.
23747
23748 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23749
23750 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23751 to match for the exit block.
23752
23753 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23754
23755 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23756 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23757 Reject misaligned operands.
23758
23759 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23760
23761 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23762
23763 2014-02-07 Richard Biener <rguenther@suse.de>
23764
23765 PR middle-end/60092
23766 * gimple-low.c (lower_builtin_posix_memalign): New function.
23767 (lower_stmt): Call it to lower posix_memalign in a way
23768 to make alignment info accessible.
23769
23770 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23771
23772 PR c++/60082
23773 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23774 __builtin_setjmp_receiver.
23775
23776 2014-02-07 Richard Biener <rguenther@suse.de>
23777
23778 PR middle-end/60092
23779 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23780 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23781 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23782 Handle BUILT_IN_POSIX_MEMALIGN.
23783 (find_func_clobbers): Likewise.
23784 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23785 (call_may_clobber_ref_p_1): Likewise.
23786
23787 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23788
23789 PR ipa/59918
23790 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23791 sanity check.
23792
23793 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23794
23795 PR ipa/59469
23796 * lto-cgraph.c (lto_output_node): Use
23797 symtab_get_symbol_partitioning_class.
23798 (lto_output_varpool_node): likewise.
23799 (symtab_get_symbol_partitioning_class): Move here from
23800 lto/lto-partition.c
23801 * cgraph.h (symbol_partitioning_class): Likewise.
23802 (symtab_get_symbol_partitioning_class): Declare.
23803
23804 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23805
23806 * ggc.h (ggc_internal_cleared_alloc): New macro.
23807 * vec.h (vec_safe_copy): Handle memory stats.
23808 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23809 * target-globals.c (save_target_globals): Likewise.
23810
23811 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23812
23813 PR target/60077
23814 * expr.c (emit_move_resolve_push): Export; be bit more selective
23815 on when to clear alias set.
23816 * expr.h (emit_move_resolve_push): Declare.
23817 * function.h (struct function): Add tail_call_marked.
23818 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23819 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23820 * config/i386/i386.md (TImode move expander): De not call
23821 ix86_expand_push.
23822 (FP push expanders): Preserve memory attributes.
23823 * config/i386/sse.md (push<mode>1): Remove.
23824 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23825 (ix86_expand_push): Remove.
23826 * config/i386/mmx.md (push<mode>1): Remove.
23827
23828 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23829
23830 PR rtl-optimization/60030
23831 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23832 lopart with paradoxical subreg before shifting it up by hprec.
23833
23834 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23835
23836 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23837 Remove extra newline at end of file.
23838 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23839 (arm_issue_rate): Handle cortexa57.
23840 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23841 (cortex-a57.cortex-a53): Likewise.
23842
23843 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23844
23845 PR target/59575
23846 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23847 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23848 bitmask.
23849 (arm_expand_prologue): Adjust all callers.
23850 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23851 info, registers also at the lowest numbered registers side. Use
23852 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23853 XEXP.
23854
23855 PR debug/59992
23856 * var-tracking.c (adjust_mems): Before adding a SET to
23857 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23858
23859 2014-02-06 Alan Modra <amodra@gmail.com>
23860
23861 PR target/60032
23862 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23863 change SDmode to DDmode when lra_in_progress.
23864
23865 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23866
23867 PR middle-end/59150
23868 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23869 free_data_ref on the dr first, and before goto again also set dr
23870 to the next dr. For simd_lane_access, free old datarefs[i] before
23871 overwriting it. For get_vectype_for_scalar_type failure, don't
23872 free_data_ref if simd_lane_access.
23873
23874 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23875
23876 PR target/60062
23877 * tree.h (opts_for_fn): New inline function.
23878 (opt_for_fn): Define.
23879 * config/i386/i386.c (ix86_function_regparm): Use
23880 opt_for_fn (decl, optimize) instead of optimize.
23881
23882 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23883
23884 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23885 for SYMBOL_REF in large memory model.
23886
23887 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23888
23889 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23890 and crypto support.
23891 (cortex-a57): Likewise.
23892 (cortex-a57.cortex-a53): Likewise.
23893
23894 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23895 Kugan Vivekanandarajah <kuganv@linaro.org>
23896
23897 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23898 unaligned_access.
23899 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23900
23901 2014-02-06 Richard Biener <rguenther@suse.de>
23902
23903 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23904 set_loop_copy and initialize_original_copy_tables.
23905
23906 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23907
23908 * config/aarch64/aarch64-simd.md
23909 (aarch64_ashr_simddi): Change QI to SI.
23910
23911 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23912 Jakub Jelinek <jakub@redhat.com>
23913
23914 PR middle-end/60013
23915 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23916 of the dataflow.
23917
23918 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23919
23920 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23921 CODE_FOR_altivec_vpku[hw]um to
23922 CODE_FOR_altivec_vpku[hw]um_direct.
23923 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23924 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23925 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23926 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23927
23928 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23929
23930 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23931 generation for -maltivec=be.
23932 (altivec_vsumsws): Simplify redundant test.
23933
23934 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23935
23936 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23937 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23938 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23939 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23940 gen_altivec_vpkuwum.
23941 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23942 BYTES_BIG_ENDIAN.
23943 (altivec_vpks<VI_char>ss): Likewise.
23944 (altivec_vpks<VI_char>us): Likewise.
23945 (altivec_vpku<VI_char>us): Likewise.
23946 (altivec_vpku<VI_char>um): Likewise.
23947 (altivec_vpku<VI_char>um_direct): New (copy of
23948 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
23949 internal use).
23950 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
23951 target is little endian and -maltivec=be is not specified.
23952 (*altivec_vupkhs<VU_char>_direct): New (copy of
23953 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
23954 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
23955 target is little endian and -maltivec=be is not specified.
23956 (*altivec_vupkls<VU_char>_direct): New (copy of
23957 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
23958 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
23959 little endian and -maltivec=be is not specified.
23960 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
23961 little endian and -maltivec=be is not specified.
23962
23963 2014-02-05 Richard Henderson <rth@redhat.com>
23964
23965 PR debug/52727
23966 * combine-stack-adj.c: Revert r206943.
23967 * sched-int.h (struct deps_desc): Add last_args_size.
23968 * sched-deps.c (init_deps): Initialize it.
23969 (sched_analyze_insn): Add OUTPUT dependencies between insns that
23970 contain REG_ARGS_SIZE notes.
23971
23972 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23973
23974 * lto-cgraph.c (asm_nodes_output): Make global.
23975 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
23976 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
23977 (driver_handle_option): Handle OPT_fwpa.
23978
23979 2014-02-05 Jakub Jelinek <jakub@redhat.com>
23980
23981 PR ipa/59947
23982 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
23983 a comment typo and formatting issue. If odr_hash hasn't been
23984 created, return vNULL and set *completep to false.
23985
23986 PR middle-end/57499
23987 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
23988 bb with no successors.
23989
23990 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
23991
23992 PR target/59718
23993 * doc/invoke.texi (-march): Clarify documentation for ARM.
23994 (-mtune): Likewise.
23995 (-mcpu): Likewise.
23996
23997 2014-02-05 Richard Biener <rguenther@suse.de>
23998
23999 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24000 when not vectorizing because of too many alias checks.
24001 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24002 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24003
24004 2014-02-05 Nick Clifton <nickc@redhat.com>
24005
24006 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24007 accept extended registers in any mode when compiling for the MN10300.
24008
24009 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24010
24011 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24012 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24013 sanitization attributes.
24014 (can_inline_edge_p): Likewise.
24015 (sanitize_attrs_match_for_inline_p): New function.
24016
24017 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24018
24019 * ipa-prop.c (detect_type_change): Shor circuit testing of
24020 type changes on THIS pointer.
24021
24022 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24023
24024 PR target/59777
24025 * config/pa/pa.c (legitimize_tls_address): Return original address
24026 if not passed a SYMBOL_REF rtx.
24027 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24028 addresses.
24029 (pa_emit_move_sequence): Simplify TLS source operands.
24030 (pa_legitimate_constant_p): Reject all TLS constants.
24031 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24032 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24033
24034 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24035
24036 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24037 groups when we know they are controlled by LTO.
24038 * varasm.c (default_binds_local_p_1): If object is in other partition,
24039 it will be resolved locally.
24040
24041 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24042
24043 * config/host-linux.c (linux_gt_pch_use_address): Don't
24044 use SSIZE_MAX because it is not always defined.
24045
24046 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24047
24048 PR bootstrap/59913
24049 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24050 threshold for pseudo splitting.
24051 (update_ebb_live_info): Process call argument hard registers and
24052 hard registers from insn definition too.
24053 (max_small_class_regs_num): New constant.
24054 (inherit_in_ebb): Update live hard regs through EBBs. Update
24055 reloads_num only for small register classes. Don't split for
24056 outputs of jumps.
24057
24058 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24059
24060 PR ipa/60058
24061 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24062 is non-null.
24063
24064 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24065
24066 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24067 visibility is safe.
24068
24069 2014-02-04 Marek Polacek <polacek@redhat.com>
24070
24071 * gdbinit.in (pel): Define.
24072
24073 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24074
24075 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24076 behavior.
24077
24078 2014-02-04 Richard Biener <rguenther@suse.de>
24079
24080 PR lto/59723
24081 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24082 in function context local.
24083 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24084 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24085 similar to LTO_imported_decl_ref.
24086
24087 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24088
24089 PR tree-optimization/60002
24090 * cgraphclones.c (build_function_decl_skip_args): Clear
24091 DECL_LANG_SPECIFIC.
24092
24093 PR tree-optimization/60023
24094 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24095 false to gsi_replace.
24096 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24097 has been in some EH region and vec_stmt could throw, add
24098 vec_stmt into the same EH region.
24099 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24100 has no lhs, ignore it.
24101 * internal-fn.c (expand_MASK_LOAD): Likewise.
24102
24103 PR ipa/60026
24104 * tree-inline.c (copy_forbidden): Fail for
24105 __attribute__((optimize (0))) functions.
24106
24107 PR other/58712
24108 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24109 is set, copy one less argument.
24110 (expand_simd_clones): Don't subtract clone_info->inbranch
24111 from simd_clone_struct_alloc argument.
24112
24113 PR rtl-optimization/57915
24114 * recog.c (simplify_while_replacing): If all unary/binary/relational
24115 operation arguments are constant, attempt to simplify those.
24116
24117 PR middle-end/59261
24118 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24119 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24120
24121 2014-02-04 Richard Biener <rguenther@suse.de>
24122
24123 PR tree-optimization/60012
24124 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24125 TBAA disambiguation to all DDRs.
24126
24127 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24128
24129 PR target/59788
24130 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24131 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24132
24133 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24134
24135 PR ipa/59882
24136 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24137
24138 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24139
24140 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24141 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24142
24143 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24144
24145 PR ipa/59831
24146 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24147 to figure out targets of polymorphic calls with known decl.
24148 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24149 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24150 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24151 (get_polymorphic_call_info): ... here.
24152 (get_polymorphic_call_info_from_invariant): New function.
24153
24154 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24155
24156 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24157 lookup via vtable pointer; check for type consistency
24158 and turn inconsitent facts into UNREACHABLE.
24159 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24160 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24161 type inconsistent querries; return UNREACHABLE instead.
24162
24163 2014-02-03 Richard Henderson <rth@twiddle.net>
24164
24165 PR tree-opt/59924
24166 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24167 already processed this node.
24168 (normalize_one_pred_1): Pass along mark_set.
24169 (normalize_one_pred): Create and destroy a pointer_set_t.
24170 (normalize_one_pred_chain): Likewise.
24171
24172 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24173
24174 PR gcov-profile/58602
24175 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24176
24177 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24178
24179 PR ipa/59831
24180 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24181 -fno-devirtualize; try to devirtualize by the knowledge of
24182 virtual table pointer given by aggregate propagation.
24183 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24184 (ipa_print_node_jump_functions): Dump also offset that
24185 is relevant for polymorphic calls.
24186 (determine_known_aggregate_parts): Add arg_type parameter; use it
24187 instead of determining the type from pointer type.
24188 (ipa_compute_jump_functions_for_edge): Update call of
24189 determine_known_aggregate_parts.
24190 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24191 (gimple_get_virt_method_for_binfo): ... here; simplify using
24192 vtable_pointer_value_to_vtable.
24193 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24194 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24195 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24196 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24197 POINTER_PLUS_EXPR.
24198 (vtable_pointer_value_to_binfo): ... here.
24199 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24200
24201 2014-02-03 Teresa Johnson <tejohnson@google.com>
24202
24203 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24204 redef of outer loop index variable.
24205
24206 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24207
24208 PR c++/53017
24209 PR c++/59211
24210 * doc/extend.texi (Function Attributes): Typo.
24211
24212 2014-02-03 Cong Hou <congh@google.com>
24213
24214 PR tree-optimization/60000
24215 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24216 if the vectorized statement is a store. A store statement can only
24217 appear at the end of pattern statements.
24218
24219 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24220
24221 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24222 (ix86_option_override_internal): Default long double to 64-bit for
24223 32-bit Bionic and to 128-bit for 64-bit Bionic.
24224
24225 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24226 TARGET_LONG_DOUBLE_128 is true.
24227 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24228
24229 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24230 (mlong-double-64): Negate -mlong-double-128.
24231 (mlong-double-128): New option.
24232
24233 * config/i386/i386-c.c (ix86_target_macros): Define
24234 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24235
24236 * doc/invoke.texi: Document -mlong-double-128.
24237
24238 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24239
24240 PR rtl-optimization/60024
24241 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24242
24243 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24244
24245 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24246
24247 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24248
24249 PR rtl-optimization/57662
24250 * sel-sched.c (code_motion_path_driver): Do not mark already not
24251 existing blocks in the visiting bitmap.
24252
24253 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24254
24255 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24256 on the insn being emitted.
24257
24258 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24259 Will Deacon <will.deacon@arm.com>
24260
24261 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24262
24263 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24264
24265 * config/arm/arm-tables.opt: Regenerate.
24266
24267 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24268
24269 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24270 for vector types other than V16QImode.
24271 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24272 define_expand, and call altivec_expand_vec_perm_le when producing
24273 code with little endian element order.
24274 (*altivec_vperm_<mode>_internal): New insn having previous
24275 behavior of altivec_vperm_<mode>.
24276 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24277 altivec_expand_vec_perm_le when producing code with little endian
24278 element order.
24279 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24280 behavior of altivec_vperm_<mode>_uns.
24281
24282 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24283
24284 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24285 (altivec_vsumsws): Add handling for -maltivec=be with a little
24286 endian target.
24287 (altivec_vsumsws_direct): New.
24288 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24289 gen_altivec_vsumsws.
24290
24291 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24292
24293 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24294 vtable_pointer_value_to_binfo): New functions.
24295 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24296 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24297
24298 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24299
24300 * config/nios2/nios2.md (load_got_register): Initialize GOT
24301 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24302 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24303
24304 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24305
24306 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24307 preserverd by passthrough, do not propagate the type.
24308
24309 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24310
24311 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24312 (mips_atomic_assign_expand_fenv): New function.
24313 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24314
24315 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24316
24317 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24318 (__builtin_mips_set_fcsr): Likewise.
24319 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24320 MIPS_USI_FTYPE_VOID.
24321 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24322 (mips16_expand_set_fcsr): Likewise.
24323 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24324 (mips16_set_fcsr_stub): Likewise.
24325 (mips16_get_fcsr_one_only_stub): New class.
24326 (mips16_set_fcsr_one_only_stub): Likewise.
24327 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24328 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24329 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24330 (hard_float): New availability predicate.
24331 (mips_builtins): Add get_fcsr and set_fcsr.
24332 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24333 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24334 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24335 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24336 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24337 patterns.
24338
24339 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24340
24341 * config/mips/mips.c (mips_one_only_stub): New class.
24342 (mips_need_mips16_rdhwr_p): Replace with...
24343 (mips16_rdhwr_stub): ...this new variable.
24344 (mips16_stub_call_address): New function.
24345 (mips16_rdhwr_one_only_stub): New class.
24346 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24347 (mips_output_mips16_rdhwr): Delete.
24348 (mips_finish_stub): New function.
24349 (mips_code_end): Use it to handle rdhwr stubs.
24350
24351 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24352
24353 PR target/60017
24354 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24355 when calculating size of integer atomic types.
24356
24357 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24358
24359 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24360
24361 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24362
24363 PR tree-optimization/60003
24364 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24365 * profile.c (branch_prob): Use gimple_call_builtin_p
24366 to check for BUILT_IN_SETJMP_RECEIVER.
24367 * tree-inline.c (copy_bb): Call notice_special_calls.
24368
24369 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24370
24371 PR bootstrap/59985
24372 * lra-constraints.c (process_alt_operands): Update reload_sum only
24373 on the first pass.
24374
24375 2014-01-31 Richard Henderson <rth@redhat.com>
24376
24377 PR middle-end/60004
24378 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24379 until after else_eh is processed.
24380
24381 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24382
24383 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24384 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24385 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24386 in smmintrin.h, remove them.
24387 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24388 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24389 * config/i386/i386.md (ROUND_SAE): Fix value.
24390 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24391 (const48_operand): New.
24392 * config/i386/subst.md (round), (round_expand): Use
24393 const_4_or_8_to_11_operand.
24394 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24395
24396 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24397
24398 * config/i386/constraints.md (Yk): Swap meaning with k.
24399 * config/i386/i386.md (movhi_internal): Change Yk to k.
24400 (movqi_internal): Ditto.
24401 (*k<logic><mode>): Ditto.
24402 (*andhi_1): Ditto.
24403 (*andqi_1): Ditto.
24404 (kandn<mode>): Ditto.
24405 (*<code>hi_1): Ditto.
24406 (*<code>qi_1): Ditto.
24407 (kxnor<mode>): Ditto.
24408 (kortestzhi): Ditto.
24409 (kortestchi): Ditto.
24410 (kunpckhi): Ditto.
24411 (*one_cmplhi2_1): Ditto.
24412 (*one_cmplqi2_1): Ditto.
24413 * config/i386/sse.md (): Change k to Yk.
24414 (avx512f_load<mode>_mask): Ditto.
24415 (avx512f_blendm<mode>): Ditto.
24416 (avx512f_store<mode>_mask): Ditto.
24417 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24418 (avx512f_storedqu<mode>_mask): Ditto.
24419 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24420 Ditto.
24421 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24422 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24423 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24424 (avx512f_maskcmp<mode>3): Ditto.
24425 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24426 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24427 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24428 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24429 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24430 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24431 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24432 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24433 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24434 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24435 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24436 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24437 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24438 (vec_extract_lo_<mode>_maskm): Ditto.
24439 (vec_extract_hi_<mode>_maskm): Ditto.
24440 (avx512f_vternlog<mode>_mask): Ditto.
24441 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24442 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24443 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24444 (avx512f_<code>v8div16qi2_mask): Ditto.
24445 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24446 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24447 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24448 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24449 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24450 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24451 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24452 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24453 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24454 (avx512cd_maskb_vec_dupv8di): Ditto.
24455 (avx512cd_maskw_vec_dupv16si): Ditto.
24456 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24457 (avx512f_vpermi2var<mode>3_mask): Ditto.
24458 (avx512f_vpermi2var<mode>3_mask): Ditto.
24459 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24460 (*avx512f_gathersi<mode>): Ditto.
24461 (*avx512f_gathersi<mode>_2): Ditto.
24462 (*avx512f_gatherdi<mode>): Ditto.
24463 (*avx512f_gatherdi<mode>_2): Ditto.
24464 (*avx512f_scattersi<mode>): Ditto.
24465 (*avx512f_scatterdi<mode>): Ditto.
24466 (avx512f_compress<mode>_mask): Ditto.
24467 (avx512f_compressstore<mode>_mask): Ditto.
24468 (avx512f_expand<mode>_mask): Ditto.
24469 * config/i386/subst.md (mask): Change k to Yk.
24470 (mask_scalar_merge): Ditto.
24471 (sd): Ditto.
24472
24473 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24474
24475 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24476
24477 2014-01-31 Richard Biener <rguenther@suse.de>
24478
24479 PR middle-end/59990
24480 * builtins.c (fold_builtin_memory_op): Make sure to not
24481 use a floating-point mode or a boolean or enumeral type for
24482 the copy operation.
24483
24484 2014-01-30 DJ Delorie <dj@redhat.com>
24485
24486 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24487 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24488 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24489 whenever main() has an epilogue.
24490
24491 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24492
24493 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24494 unused variable "field".
24495 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24496 (vsx_mergeh_<mode>): Likewise.
24497 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24498 (altivec_vmrghh): Likewise.
24499 (altivec_vmrghw): Likewise.
24500 (altivec_vmrglb): Likewise.
24501 (altivec_vmrglh): Likewise.
24502 (altivec_vmrglw): Likewise.
24503 (altivec_vspltb): Add missing uses.
24504 (altivec_vsplth): Likewise.
24505 (altivec_vspltw): Likewise.
24506 (altivec_vspltsf): Likewise.
24507
24508 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24509
24510 PR target/59923
24511 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24512 frame related instructions.
24513
24514 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24515
24516 PR rtl-optimization/59959
24517 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24518 any reload of register whose subreg is invalid.
24519
24520 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24521
24522 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24523 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24524 Add missing return type - void.
24525
24526 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24527
24528 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24529 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24530 remove element index adjustment for endian (now handled in vsx.md
24531 and altivec.md).
24532 (altivec_expand_vec_perm_const): Use
24533 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24534 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24535 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24536 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24537 define_expand and a new define_insn *altivec_vspltb_internal;
24538 adjust for -maltivec=be on a little endian target.
24539 (altivec_vspltb_direct): New.
24540 (altivec_vsplth): Divide into a define_expand and a new
24541 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24542 little endian target.
24543 (altivec_vsplth_direct): New.
24544 (altivec_vspltw): Divide into a define_expand and a new
24545 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24546 little endian target.
24547 (altivec_vspltw_direct): New.
24548 (altivec_vspltsf): Divide into a define_expand and a new
24549 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24550 a little endian target.
24551
24552 2014-01-30 Richard Biener <rguenther@suse.de>
24553
24554 PR tree-optimization/59993
24555 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24556 can propagate form the earlier stmt and avoid the transform
24557 when the intermediate result is needed.
24558
24559 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24560
24561 * README.Portability: Fix typo.
24562
24563 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24564
24565 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24566 comparison_operator with ordered_comparison_operator.
24567
24568 2014-01-30 Nick Clifton <nickc@redhat.com>
24569
24570 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24571 Rename to mn10300_store_multiple_regs.
24572 * config/mn10300/mn10300.c: Likewise.
24573 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24574 store_multiple_regs.
24575 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24576 Call mn10300_store_multiple_regs.
24577
24578 2014-01-30 Nick Clifton <nickc@redhat.com>
24579 DJ Delorie <dj@redhat.com>
24580
24581 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24582 %fp 2 to keep registers after it properly word-aligned.
24583 (rl78_alloc_physical_registers_umul): Handle the case where both
24584 input operands are the same.
24585
24586 2014-01-30 Richard Biener <rguenther@suse.de>
24587
24588 PR tree-optimization/59903
24589 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24590 check properly.
24591
24592 2014-01-30 Jason Merrill <jason@redhat.com>
24593
24594 PR c++/59633
24595 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24596
24597 PR c++/59645
24598 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24599
24600 2014-01-30 Richard Biener <rguenther@suse.de>
24601
24602 PR tree-optimization/59951
24603 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24604
24605 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24606
24607 PR target/59784
24608 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24609 SFmode to DFmode case.
24610
24611 2014-01-29 DJ Delorie <dj@redhat.com>
24612
24613 * config/msp430/msp430.opt (-minrt): New.
24614 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24615 if -minrt given.
24616 (ENDFILE_SPEC): Likewise.
24617
24618 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24619
24620 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24621 (estimate_function_body_sizes): Use it.
24622
24623 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24624
24625 PR c++/58561
24626 * dwarf2out.c (is_cxx_auto): New.
24627 (is_base_type): Use it.
24628 (gen_type_die_with_usage): Likewise.
24629
24630 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24631
24632 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24633 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24634 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24635 -maltivec=be with LE targets.
24636 (vsx_mergeh_<mode>): Likewise.
24637 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24638 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24639 (altivec_vmrghb): Replace with define_expand and new
24640 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24641 (altivec_vmrghb_direct): New define_insn.
24642 (altivec_vmrghh): Replace with define_expand and new
24643 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24644 (altivec_vmrghh_direct): New define_insn.
24645 (altivec_vmrghw): Replace with define_expand and new
24646 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24647 (altivec_vmrghw_direct): New define_insn.
24648 (*altivec_vmrghsf): Adjust for endianness.
24649 (altivec_vmrglb): Replace with define_expand and new
24650 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24651 (altivec_vmrglb_direct): New define_insn.
24652 (altivec_vmrglh): Replace with define_expand and new
24653 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24654 (altivec_vmrglh_direct): New define_insn.
24655 (altivec_vmrglw): Replace with define_expand and new
24656 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24657 (altivec_vmrglw_direct): New define_insn.
24658 (*altivec_vmrglsf): Adjust for endianness.
24659 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24660 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24661 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24662 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24663 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24664 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24665 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24666 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24667
24668 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24669
24670 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24671 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24672 whitespace.
24673
24674 2014-01-29 Richard Biener <rguenther@suse.de>
24675
24676 PR tree-optimization/58742
24677 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24678 associate_pointerplus_align.
24679 (associate_pointerplus_diff): New function.
24680 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24681 and associate_pointerplus_diff.
24682
24683 2014-01-29 Richard Biener <rguenther@suse.de>
24684
24685 * lto-streamer.h (LTO_major_version): Bump to 3.
24686 (LTO_minor_version): Reset to 0.
24687
24688 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24689
24690 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24691 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24692 (arm_file_start): Generate correct asm header for armv7ve.
24693 * config/arm/bpabi.h: Add multilib support for armv7ve.
24694 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24695 and cortex-a15 to armv7ve.
24696 * config/arm/t-aprofile: Add multilib support for armv7ve.
24697 * doc/invoke.texi: Document -march=armv7ve.
24698
24699 2014-01-29 Richard Biener <rguenther@suse.de>
24700
24701 PR tree-optimization/58742
24702 * tree-ssa-forwprop.c (associate_plusminus): Return true
24703 if we changed sth, defer EH cleanup to ...
24704 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24705 (simplify_mult): New function.
24706
24707 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24708
24709 PR middle-end/59917
24710 PR tree-optimization/59920
24711 * tree.c (build_common_builtin_nodes): Remove
24712 __builtin_setjmp_dispatcher initialization.
24713 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24714 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24715 instead of gsi_after_labels + manually skipping debug stmts.
24716 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24717 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24718 * tree-inline.c (copy_edges_for_bb): Remove
24719 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24720 argument. Ignore computed_goto_p stmts. Don't call
24721 make_abnormal_goto_edges. If a call might need abnormal edges
24722 for non-local gotos, see if it already has an edge to
24723 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24724 with true argument, don't do anything then, otherwise add
24725 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24726 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24727 caller.
24728 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24729 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24730 (lower_stmt): Don't set data->calls_builtin_setjmp.
24731 (lower_builtin_setjmp): Adjust comment.
24732 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24733 * tree-cfg.c (found_computed_goto): Remove.
24734 (factor_computed_gotos): Remove.
24735 (make_goto_expr_edges): Return bool, true for computed gotos.
24736 Don't call make_abnormal_goto_edges.
24737 (build_gimple_cfg): Don't set found_computed_goto, don't call
24738 factor_computed_gotos.
24739 (computed_goto_p): No longer static.
24740 (make_blocks): Don't set found_computed_goto.
24741 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24742 (make_edges): If make_goto_expr_edges returns true, push bb
24743 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24744 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24745 vector. Record mapping between bbs and OpenMP regions if there
24746 are any, adjust make_gimple_omp_edges caller. Call
24747 handle_abnormal_edges.
24748 (make_abnormal_goto_edges): Remove.
24749 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24750 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24751 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24752 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24753 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24754 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24755 filling *region also set *region_idx to (*region)->entry->index.
24756
24757 PR other/58712
24758 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24759 For REGs set ORIGINAL_REGNO.
24760
24761 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24762
24763 * doc/md.texi: Mention that a target shouldn't implement
24764 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24765 than hi/lo pair.
24766
24767 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24768
24769 PR tree-optimization/59594
24770 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24771 a copy of the datarefs vector rather than the vector itself.
24772
24773 2014-01-28 Jason Merrill <jason@redhat.com>
24774
24775 PR c++/53756
24776 * dwarf2out.c (auto_die): New static.
24777 (gen_type_die_with_usage): Handle C++1y 'auto'.
24778 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24779 on definition.
24780
24781 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24782
24783 PR target/59672
24784 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24785 (SPEC_X32): Likewise.
24786 (SPEC_64): Likewise.
24787 * config/i386/i386.c (ix86_option_override_internal): Turn off
24788 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24789 for TARGET_16BIT.
24790 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24791 * config/i386/i386.h (TARGET_16BIT): New macro.
24792 (TARGET_16BIT_P): Likewise.
24793 * config/i386/i386.opt: Add m16.
24794 * doc/invoke.texi: Document -m16.
24795
24796 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24797
24798 PR preprocessor/59935
24799 * input.c (location_get_source_line): Bail out on when line number
24800 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24801
24802 2014-01-28 Richard Biener <rguenther@suse.de>
24803
24804 PR tree-optimization/58742
24805 * tree-ssa-forwprop.c (associate_plusminus): Handle
24806 pointer subtraction of the form (T)(P + A) - (T)P.
24807
24808 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24809
24810 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24811 at const_int_cost.
24812
24813 2014-01-28 Richard Biener <rguenther@suse.de>
24814
24815 Revert
24816 2014-01-28 Richard Biener <rguenther@suse.de>
24817
24818 PR rtl-optimization/45364
24819 PR rtl-optimization/59890
24820 * var-tracking.c (local_get_addr_clear_given_value): Handle
24821 already cleared slot.
24822 (val_reset): Handle not allocated local_get_addr_cache.
24823 (vt_find_locations): Use post-order on the inverted CFG.
24824
24825 2014-01-28 Richard Biener <rguenther@suse.de>
24826
24827 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24828
24829 2014-01-28 Richard Biener <rguenther@suse.de>
24830
24831 PR rtl-optimization/45364
24832 PR rtl-optimization/59890
24833 * var-tracking.c (local_get_addr_clear_given_value): Handle
24834 already cleared slot.
24835 (val_reset): Handle not allocated local_get_addr_cache.
24836 (vt_find_locations): Use post-order on the inverted CFG.
24837
24838 2014-01-28 Alan Modra <amodra@gmail.com>
24839
24840 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24841 * configure.ac <recursive call for build != host>: Define
24842 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24843 and LD_FOR_BUILD too.
24844 * configure: Regenerate.
24845
24846 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24847
24848 * config/i386/i386.c (get_builtin_code_for_version): Separate
24849 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24850 Broadwell from Haswell.
24851
24852 2014-01-27 Steve Ellcey <sellcey@mips.com>
24853
24854 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24855 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24856 * config/mips/mips.c (mips_option_override): Change setting
24857 of TARGET_DSP.
24858 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24859 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24860 Change from Mask to Var.
24861
24862 2014-01-27 Jeff Law <law@redhat.com>
24863
24864 * ipa-inline.c (inline_small_functions): Fix typo.
24865
24866 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24867
24868 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24869 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24870 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24871 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24872 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24873 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24874 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24875 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24876 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24877 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24878 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24879 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24880 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24881 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24882 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24883 (_mm512_storeu_epi64): Ditto.
24884 (_mm512_cmpge_epi32_mask): Ditto.
24885 (_mm512_cmpge_epu32_mask): Ditto.
24886 (_mm512_cmpge_epi64_mask): Ditto.
24887 (_mm512_cmpge_epu64_mask): Ditto.
24888 (_mm512_cmple_epi32_mask): Ditto.
24889 (_mm512_cmple_epu32_mask): Ditto.
24890 (_mm512_cmple_epi64_mask): Ditto.
24891 (_mm512_cmple_epu64_mask): Ditto.
24892 (_mm512_cmplt_epi32_mask): Ditto.
24893 (_mm512_cmplt_epu32_mask): Ditto.
24894 (_mm512_cmplt_epi64_mask): Ditto.
24895 (_mm512_cmplt_epu64_mask): Ditto.
24896 (_mm512_cmpneq_epi32_mask): Ditto.
24897 (_mm512_cmpneq_epu32_mask): Ditto.
24898 (_mm512_cmpneq_epi64_mask): Ditto.
24899 (_mm512_cmpneq_epu64_mask): Ditto.
24900 (_mm512_expand_pd): Ditto.
24901 (_mm512_expand_ps): Ditto.
24902 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24903 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24904 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24905 * config/i386/i386.c (ix86_builtins): Add
24906 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24907 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24908 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24909 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24910 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24911 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24912 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24913 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24914 IX86_BUILTIN_PMOVUSQW512_MEM.
24915 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24916 __builtin_ia32_pmovsqd512mem_mask,
24917 __builtin_ia32_pmovqd512mem_mask,
24918 __builtin_ia32_pmovusqw512mem_mask,
24919 __builtin_ia32_pmovsqw512mem_mask,
24920 __builtin_ia32_pmovqw512mem_mask,
24921 __builtin_ia32_pmovusdw512mem_mask,
24922 __builtin_ia32_pmovsdw512mem_mask,
24923 __builtin_ia32_pmovdw512mem_mask,
24924 __builtin_ia32_pmovqb512mem_mask,
24925 __builtin_ia32_pmovusqb512mem_mask,
24926 __builtin_ia32_pmovsqb512mem_mask,
24927 __builtin_ia32_pmovusdb512mem_mask,
24928 __builtin_ia32_pmovsdb512mem_mask,
24929 __builtin_ia32_pmovdb512mem_mask.
24930 (bdesc_args): Add __builtin_ia32_expanddf512,
24931 __builtin_ia32_expandsf512.
24932 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24933 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24934 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24935 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24936 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24937 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24938 (avx512f_<code>v8div16qi2_mask_store): This.
24939 (avx512f_expand<mode>): New.
24940
24941 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24942
24943 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24944 New.
24945 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24946 (_mm512_prefetch_i32scatter_pd): Ditto.
24947 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
24948 (_mm512_prefetch_i64scatter_pd): Ditto.
24949 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
24950 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
24951 (_mm512_mask_prefetch_i64gather_ps): Ditto.
24952 (_mm512_prefetch_i32scatter_ps): Ditto.
24953 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
24954 (_mm512_prefetch_i64scatter_ps): Ditto.
24955 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
24956 * config/i386/i386-builtin-types.def: Define
24957 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
24958 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
24959 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
24960 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
24961 IX86_BUILTIN_SCATTERPFQPD.
24962 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
24963 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
24964 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
24965 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
24966 __builtin_ia32_scatterpfqps.
24967 (ix86_expand_builtin): Expand new built-ins.
24968 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
24969 fix memory access data type.
24970 (*avx512pf_gatherpf<mode>_mask): Ditto.
24971 (*avx512pf_gatherpf<mode>): Ditto.
24972 (avx512pf_scatterpf<mode>): Ditto.
24973 (*avx512pf_scatterpf<mode>_mask): Ditto.
24974 (*avx512pf_scatterpf<mode>): Ditto.
24975 (GATHER_SCATTER_SF_MEM_MODE): New.
24976 (avx512pf_gatherpf<mode>df): Ditto.
24977 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24978 (*avx512pf_scatterpf<mode>df): Ditto.
24979
24980 2014-01-27 Jakub Jelinek <jakub@redhat.com>
24981
24982 PR bootstrap/59934
24983 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
24984 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
24985 reached.
24986
24987 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24988
24989 * common/config/arm/arm-common.c
24990 (arm_rewrite_mcpu): Handle multiple names.
24991 * config/arm/arm.h
24992 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
24993
24994 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
24995
24996 * gimple-builder.h (create_gimple_tmp): Delete.
24997
24998 2014-01-27 Christian Bruel <christian.bruel@st.com>
24999
25000 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25001 words comparisons.
25002
25003 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25004
25005 * config/pa/pa.md (call): Generate indirect long calls to non-local
25006 functions when outputing 32-bit code.
25007 (call_value): Likewise except for special call to buggy powf function.
25008
25009 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25010 portable runtime and PIC indirect calls.
25011 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25012 and PIC call sequences. Use ldo instead of blr to set return register
25013 in PIC call sequence.
25014
25015 2014-01-25 Walter Lee <walt@tilera.com>
25016
25017 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25018 avoid clobbering a live register.
25019
25020 2014-01-25 Walter Lee <walt@tilera.com>
25021
25022 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25023 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25024 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25025 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25026
25027 2014-01-25 Walter Lee <walt@tilera.com>
25028
25029 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25030 arguments on even registers.
25031 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25032 STACK_BOUNDARY.
25033 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25034 (BIGGEST_ALIGNMENT): Ditto.
25035 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25036
25037 2014-01-25 Walter Lee <walt@tilera.com>
25038
25039 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25040 insns before bundling.
25041 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25042
25043 2014-01-25 Walter Lee <walt@tilera.com>
25044
25045 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25046 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25047 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25048
25049 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25050
25051 * config/mips/constraints.md (kl): Delete.
25052 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25053 define expands, using...
25054 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25055 instructions for MIPS16.
25056 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25057 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25058
25059 2014-01-25 Walter Lee <walt@tilera.com>
25060
25061 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25062 (clzdi2): Ditto.
25063 (ffsdi2): Ditto.
25064
25065 2014-01-25 Walter Lee <walt@tilera.com>
25066
25067 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25068 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25069
25070 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25071
25072 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25073 Handle XOR.
25074
25075 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25076
25077 * print-rtl.c (in_call_function_usage): New var.
25078 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25079 EXPR_LIST mode as mode and not as reg note name.
25080
25081 PR middle-end/59561
25082 * cfgloopmanip.c (copy_loop_info): If
25083 loop->warned_aggressive_loop_optimizations, make sure
25084 the flag is set in target loop too.
25085
25086 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25087
25088 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25089 flag_cilkplus.
25090 * builtins.def: Likewise.
25091 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25092 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25093 * ira.c (ira_setup_eliminable_regset): Likewise.
25094 * omp-low.c (gate_expand_omp): Likewise.
25095 (execute_lower_omp): Likewise.
25096 (diagnose_sb_0): Likewise.
25097 (gate_diagnose_omp_blocks): Likewise.
25098 (simd_clone_clauses_extract): Likewise.
25099 (gate): Likewise.
25100
25101 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25102
25103 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25104 correction for little endian...
25105 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25106 here.
25107
25108 2014-01-24 Jeff Law <law@redhat.com>
25109
25110 PR tree-optimization/59919
25111 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25112 for non-returning calls.
25113
25114 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25115
25116 * common/config/aarch64/aarch64-common.c
25117 (aarch64_rewrite_mcpu): Handle multiple names.
25118 * config/aarch64/aarch64.h
25119 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25120
25121 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25122
25123 * input.c (add_file_to_cache_tab): Handle the case where fopen
25124 returns NULL.
25125
25126 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25127
25128 PR target/59929
25129 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25130 from push operand if code of push isn't PRE_DEC.
25131
25132 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25133
25134 PR target/59909
25135 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25136 -mquad-memory-atomic. Update -mquad-memory documentation to say
25137 it is only used for non-atomic loads/stores.
25138
25139 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25140 -mquad-memory or -mquad-memory-atomic switches.
25141
25142 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25143 -mquad-memory-atomic to ISA 2.07 support.
25144
25145 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25146 to separate support of normal quad word memory operations (ldq, stq)
25147 from the atomic quad word memory operations.
25148
25149 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25150 support to separate non-atomic quad word operations from atomic
25151 quad word operations. Disable non-atomic quad word operations in
25152 little endian mode so that we don't have to swap words after the
25153 load and before the store.
25154 (quad_load_store_p): Add comment about atomic quad word support.
25155 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25156 options printed with -mdebug=reg.
25157
25158 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25159 -mquad-memory-atomic as the test for whether we have quad word
25160 atomic instructions.
25161 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25162 or -mp8-vector are used, allow byte/half-word atomic operations.
25163
25164 * config/rs6000/sync.md (load_lockedti): Insure that the address
25165 is a proper indexed or indirect address for the lqarx instruction.
25166 On little endian systems, swap the hi/lo registers after the lqarx
25167 instruction.
25168 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25169 insure the address is valid for the lqarx instruction.
25170 (store_conditionalti): Insure that the address is a proper indexed
25171 or indirect address for the stqcrx. instruction. On little endian
25172 systems, swap the hi/lo registers before doing the stqcrx.
25173 instruction.
25174 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25175 insure the address is valid for the stqcrx. instruction.
25176
25177 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25178 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25179 type of quad memory support is available.
25180
25181 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25182
25183 PR regression/59915
25184 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25185 there is a danger of looping.
25186
25187 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25188
25189 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25190 force flag_ira_loop_pressure if set via command line.
25191
25192 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25193
25194 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25195 (ashr_simd): New builtin handling DI mode.
25196 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25197 (aarch64_sshr_simddi): New match pattern.
25198 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25199 (vshrd_n_s64): Likewise.
25200 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25201
25202 2014-01-23 Nick Clifton <nickc@redhat.com>
25203
25204 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25205 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25206 favour of mcu specific scripts.
25207 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25208 430x multilibs.
25209
25210 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25211 Alex Velenko <Alex.Velenko@arm.com>
25212
25213 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25214 (vaddv_s16): Likewise.
25215 (vaddv_s32): Likewise.
25216 (vaddv_u8): Likewise.
25217 (vaddv_u16): Likewise.
25218 (vaddv_u32): Likewise.
25219 (vaddvq_s8): Likewise.
25220 (vaddvq_s16): Likewise.
25221 (vaddvq_s32): Likewise.
25222 (vaddvq_s64): Likewise.
25223 (vaddvq_u8): Likewise.
25224 (vaddvq_u16): Likewise.
25225 (vaddvq_u32): Likewise.
25226 (vaddvq_u64): Likewise.
25227 (vaddv_f32): Likewise.
25228 (vaddvq_f32): Likewise.
25229 (vaddvq_f64): Likewise.
25230 (vmaxv_f32): Likewise.
25231 (vmaxv_s8): Likewise.
25232 (vmaxv_s16): Likewise.
25233 (vmaxv_s32): Likewise.
25234 (vmaxv_u8): Likewise.
25235 (vmaxv_u16): Likewise.
25236 (vmaxv_u32): Likewise.
25237 (vmaxvq_f32): Likewise.
25238 (vmaxvq_f64): Likewise.
25239 (vmaxvq_s8): Likewise.
25240 (vmaxvq_s16): Likewise.
25241 (vmaxvq_s32): Likewise.
25242 (vmaxvq_u8): Likewise.
25243 (vmaxvq_u16): Likewise.
25244 (vmaxvq_u32): Likewise.
25245 (vmaxnmv_f32): Likewise.
25246 (vmaxnmvq_f32): Likewise.
25247 (vmaxnmvq_f64): Likewise.
25248 (vminv_f32): Likewise.
25249 (vminv_s8): Likewise.
25250 (vminv_s16): Likewise.
25251 (vminv_s32): Likewise.
25252 (vminv_u8): Likewise.
25253 (vminv_u16): Likewise.
25254 (vminv_u32): Likewise.
25255 (vminvq_f32): Likewise.
25256 (vminvq_f64): Likewise.
25257 (vminvq_s8): Likewise.
25258 (vminvq_s16): Likewise.
25259 (vminvq_s32): Likewise.
25260 (vminvq_u8): Likewise.
25261 (vminvq_u16): Likewise.
25262 (vminvq_u32): Likewise.
25263 (vminnmv_f32): Likewise.
25264 (vminnmvq_f32): Likewise.
25265 (vminnmvq_f64): Likewise.
25266
25267 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25268
25269 * config/aarch64/aarch64-simd.md
25270 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25271 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25272 (*aarch64_mul3_elt<mode>): Likewise.
25273 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25274 (*aarch64_mul3_elt_to_64v2df): Likewise.
25275 (*aarch64_mla_elt<mode>): Likewise.
25276 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25277 (*aarch64_mls_elt<mode>): Likewise.
25278 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25279 (*aarch64_fma4_elt<mode>): Likewise.
25280 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25281 (*aarch64_fma4_elt_to_64v2df): Likewise.
25282 (*aarch64_fnma4_elt<mode>): Likewise.
25283 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25284 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25285 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25286 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25287 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25288 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25289 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25290 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25291 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25292
25293 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25294
25295 * config/aarch64/aarch64-simd.md
25296 (aarch64_be_checked_get_lane<mode>): New define_expand.
25297 * config/aarch64/aarch64-simd-builtins.def
25298 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25299 New builtin definition.
25300 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25301 Use new safe be builtin.
25302
25303 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25304
25305 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25306 New define_insn.
25307 (aarch64_be_st1<mode>): Likewise.
25308 (aarch_ld1<VALL:mode>): Define_expand modified.
25309 (aarch_st1<VALL:mode>): Likewise.
25310 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25311 (UNSPEC_ST1): Likewise.
25312
25313 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25314
25315 * config/microblaze/microblaze.md: Add trap insn and attribute
25316
25317 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25318
25319 PR preprocessor/58580
25320 * input.h (location_get_source_line): Take an additional line_size
25321 parameter.
25322 (void diagnostics_file_cache_fini): Declare new function.
25323 * input.c (struct fcache): New type.
25324 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25325 New static constants.
25326 (diagnostic_file_cache_init, total_lines_num)
25327 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25328 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25329 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25330 (get_next_line, read_next_line, goto_next_line, read_line_num):
25331 New static function definitions.
25332 (diagnostic_file_cache_fini): New function.
25333 (location_get_source_line): Take an additional output line_len
25334 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25335 read_line_num.
25336 * diagnostic.c (diagnostic_finish): Call
25337 diagnostic_file_cache_fini.
25338 (adjust_line): Take an additional input parameter for the length
25339 of the line, rather than calculating it with strlen.
25340 (diagnostic_show_locus): Adjust the use of
25341 location_get_source_line and adjust_line with respect to their new
25342 signature. While displaying a line now, do not stop at the first
25343 null byte. Rather, display the zero byte as a space and keep
25344 going until we reach the size of the line.
25345 * Makefile.in: Add vec.o to OBJS-libcommon
25346
25347 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25348 Ilya Tocar <ilya.tocar@intel.com>
25349
25350 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25351 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25352 (__builtin_ia32_kmov16): Ditto.
25353 * config/i386/i386.md (UNSPEC_KMOV): New.
25354 (kmovw): Ditto.
25355
25356 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25357
25358 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25359 (_mm512_storeu_si512): Ditto.
25360
25361 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25362
25363 PR target/52125
25364 * rtl.h (get_referenced_operands): Declare.
25365 * recog.c (get_referenced_operands): New function.
25366 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25367 operands have been referenced when recording LO_SUM references.
25368
25369 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25370
25371 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25372
25373 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25374
25375 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25376 Enable for generic and recent AMD targets.
25377
25378 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25379
25380 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25381 ARG_SIZE note when adjustment was eliminated.
25382
25383 2014-01-22 Jeff Law <law@redhat.com>
25384
25385 PR tree-optimization/59597
25386 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25387 in file. Accept new argument REGISTERING and use it to modify
25388 dump output appropriately.
25389 (register_jump_thread): Corresponding changes.
25390 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25391 thread paths involving joiner blocks. Add code to dump cancelled
25392 jump threading paths.
25393
25394 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25395
25396 PR rtl-optimization/59477
25397 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25398 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25399
25400 2014-01-22 Tom Tromey <tromey@redhat.com>
25401
25402 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25403 PARAMS.
25404 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25405
25406 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25407
25408 PR rtl-optimization/59896
25409 * lra-constraints.c (process_alt_operands): Check unused note for
25410 matched operands of insn with no output reloads.
25411
25412 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25413
25414 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25415 (mips_move_from_gpr_cost): Likewise.
25416
25417 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25418
25419 PR rtl-optimization/59858
25420 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25421 ira_class_hard_regs_num.
25422 (process_alt_operands): Increase reject for dying matched operand.
25423
25424 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25425
25426 PR target/59003
25427 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25428 smaller than size, perform several stores or loads and stores
25429 at dst + count - size to store or copy all of size bytes, rather
25430 than just last modesize bytes.
25431
25432 2014-01-20 DJ Delorie <dj@redhat.com>
25433
25434 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25435 that CLOBBERs are REGs before propogating their values.
25436
25437 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25438
25439 PR middle-end/59789
25440 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25441 (cgraph_inline_failed_type): New function.
25442 * cgraph.h (DEFCIFCODE): Add type.
25443 (cgraph_inline_failed_type_t): New enum.
25444 (cgraph_inline_failed_type): New prototype.
25445 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25446 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25447 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25448 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25449 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25450 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25451 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25452 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25453 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25454 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25455 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25456 OPTIMIZATION_MISMATCH.
25457 * tree-inline.c (expand_call_inline): Emit errors during
25458 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25459
25460 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25461
25462 PR target/59685
25463 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25464 mode attribute in insn output.
25465
25466 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25467
25468 * output.h (output_constant): Delete.
25469 * varasm.c (output_constant): Make private.
25470
25471 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25472
25473 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25474
25475 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25476
25477 PR middle-end/59860
25478 * tree.h (fold_builtin_strcat): New prototype.
25479 * builtins.c (fold_builtin_strcat): No longer static. Add len
25480 argument, if non-NULL, don't call c_strlen. Optimize
25481 directly into __builtin_memcpy instead of __builtin_strcpy.
25482 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25483 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25484
25485 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25486
25487 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25488 for SImode_address_operand operands, having only a REG argument.
25489
25490 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25491
25492 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25493 loader name using mbig-endian.
25494 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25495
25496 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25497
25498 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25499 (-mtune): Likewise.
25500 (-mcpu): Likewise.
25501
25502 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25503
25504 * config/aarch64/aarch64-protos.h
25505 (aarch64_cannot_change_mode_class_ptr): Declare.
25506 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25507 aarch64_cannot_change_mode_class_ptr): New.
25508 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25509 backend hook aarch64_cannot_change_mode_class.
25510
25511 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25512
25513 * common/config/aarch64/aarch64-common.c
25514 (aarch64_handle_option): Don't handle any option order logic here.
25515 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25516 selected_cpu, warn on architecture version mismatch.
25517 (aarch64_override_options): Fix parsing order for option strings.
25518
25519 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25520 Iain Sandoe <iain@codesourcery.com>
25521
25522 PR bootstrap/59496
25523 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25524 warning. Amend comment to reflect current functionality.
25525
25526 2014-01-20 Richard Biener <rguenther@suse.de>
25527
25528 PR middle-end/59860
25529 * builtins.c (fold_builtin_strcat): Remove case better handled
25530 by tree-ssa-strlen.c.
25531
25532 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25533
25534 * config/aarch64/aarch64.opt
25535 (mcpu, march, mtune): Make case-insensitive.
25536
25537 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25538
25539 PR target/59880
25540 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25541 if operands[1] is a REG or ZERO_EXTEND of a REG.
25542
25543 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25544
25545 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25546
25547 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25548
25549 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25550 long non-pic millicode calls.
25551
25552 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25553
25554 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25555
25556 2014-01-19 Kito Cheng <kito@0xlab.org>
25557
25558 * builtins.c (expand_movstr): Check movstr expand done or fail.
25559
25560 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25561 H.J. Lu <hongjiu.lu@intel.com>
25562
25563 PR target/59379
25564 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25565 to DImode for zero-extended addresses.
25566
25567 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25568
25569 PR rtl-optimization/57763
25570 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25571 on the new indirect jump_insn and increment LABEL_NUSES (label).
25572
25573 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25574
25575 PR bootstrap/59580
25576 PR bootstrap/59583
25577 * config.gcc (x86_archs): New variable.
25578 (x86_64_archs): Likewise.
25579 (x86_cpus): Likewise.
25580 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25581 --with-arch/--with-cpu= options.
25582 Support --with-arch=/--with-cpu={nehalem,westmere,
25583 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25584
25585 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25586
25587 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25588 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25589
25590 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25591
25592 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25593
25594 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25595
25596 PR target/58944
25597 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25598 clear cpp_get_options (parse_in)->warn_unused_macros for
25599 ix86_target_macros_internal with cpp_define.
25600
25601 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25602
25603 * jump.c (delete_related_insns): Keep (use (insn))s.
25604 * reorg.c (redundant_insn): Check for barriers too.
25605
25606 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25607
25608 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25609
25610 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25611
25612 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25613 call to $$dyncall when TARGET_LONG_CALLS is true.
25614
25615 2014-01-17 Jeff Law <law@redhat.com>
25616
25617 * ree.c (combine_set_extension): Temporarily disable test for
25618 changing number of hard registers.
25619
25620 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25621
25622 PR middle-end/58125
25623 * ipa-inline-analysis.c (inline_free_summary):
25624 Do not free summary of aliases.
25625
25626 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25627
25628 PR middle-end/59706
25629 * gimplify.c (gimplify_expr): Use create_tmp_var
25630 instead of create_tmp_var_raw. If cond doesn't have
25631 integral type, don't add the IFN_ANNOTATE builtin at all.
25632
25633 2014-01-17 Martin Jambor <mjambor@suse.cz>
25634
25635 PR ipa/59736
25636 * ipa-cp.c (prev_edge_clone): New variable.
25637 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25638 Also resize prev_edge_clone vector.
25639 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25640 (ipcp_edge_removal_hook): New function.
25641 (ipcp_driver): Register ipcp_edge_removal_hook.
25642
25643 2014-01-17 Andrew Pinski <apinski@cavium.com>
25644 Steve Ellcey <sellcey@mips.com>
25645
25646 PR target/59462
25647 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25648 of operator mode.
25649
25650 2014-01-17 Jeff Law <law@redhat.com>
25651
25652 PR middle-end/57904
25653 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25654 so that pass_ccp runs first.
25655
25656 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25657
25658 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25659 (ix86_adjust_cost): Use !TARGET_XXX.
25660 (do_reorder_for_imul): Likewise.
25661 (swap_top_of_ready_list): Likewise.
25662 (ix86_sched_reorder): Likewise.
25663
25664 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25665
25666 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25667 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25668 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25669 (intel_memset): New. Duplicate slm_memset.
25670 (intel_cost): New. Duplicate slm_cost.
25671 (m_INTEL): New macro.
25672 (processor_target_table): Add "intel".
25673 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25674 with PROCESSOR_INTEL for "intel".
25675 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25676 PROCESSOR_SILVERMONT.
25677 (ix86_issue_rate): Likewise.
25678 (ix86_adjust_cost): Likewise.
25679 (ia32_multipass_dfa_lookahead): Likewise.
25680 (swap_top_of_ready_list): Likewise.
25681 (ix86_sched_reorder): Likewise.
25682 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25683 instead of TARGET_OPT_AGU.
25684 * config/i386/i386.h (TARGET_INTEL): New.
25685 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25686 (processor_type): Add PROCESSOR_INTEL.
25687 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25688 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25689
25690 2014-01-17 Marek Polacek <polacek@redhat.com>
25691
25692 PR c/58346
25693 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25694 size is zero.
25695
25696 2014-01-17 Richard Biener <rguenther@suse.de>
25697
25698 PR tree-optimization/46590
25699 * opts.c (default_options_table): Add entries for
25700 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25701 all enabled at -O1 but not for -Og.
25702 * common.opt (fbranch-count-reg): Remove Init(1).
25703 (fmove-loop-invariants): Likewise.
25704 (ftree-pta): Likewise.
25705
25706 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25707
25708 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25709 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25710 decls to at least the GCC 4.8 used alignments.
25711
25712 PR fortran/59440
25713 * tree-nested.c (convert_nonlocal_reference_stmt,
25714 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25715 of GIMPLE_BIND stmts, adjust associated decls.
25716
25717 2014-01-17 Richard Biener <rguenther@suse.de>
25718
25719 PR tree-optimization/46590
25720 * vec.h (vec<>::bseach): New member function implementing
25721 binary search according to C89 bsearch.
25722 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25723 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25724 bitmap pointer again. Make accesses_in_loop a flat array.
25725 (mem_ref_obstack): New global.
25726 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25727 (mark_ref_stored): Likewise.
25728 (ref_indep_loop_p_2): Likewise.
25729 (set_ref_stored_in_loop): New helper function.
25730 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25731 (memref_free): Adjust.
25732 (record_mem_ref_loc): Simplify.
25733 (gather_mem_refs_stmt): Adjust.
25734 (sort_locs_in_loop_postorder_cmp): New function.
25735 (analyze_memory_references): Sort accesses_in_loop after
25736 loop postorder number.
25737 (find_ref_loc_in_loop_cmp): New function.
25738 (for_all_locs_in_loop): Find relevant cluster of locs in
25739 accesses_in_loop and iterate without recursion.
25740 (execute_sm): Avoid uninit warning.
25741 (struct ref_always_accessed): Simplify.
25742 (ref_always_accessed::operator ()): Likewise.
25743 (ref_always_accessed_p): Likewise.
25744 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25745 loop postorder numbers here.
25746 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25747 numbers.
25748
25749 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25750
25751 PR c++/57945
25752 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25753 on decls for which assemble_alias has been called.
25754
25755 2014-01-17 Nick Clifton <nickc@redhat.com>
25756
25757 * config/msp430/msp430.opt: (mcpu): New option.
25758 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25759 (msp430_option_override): Parse target_cpu. If the MCU name
25760 matches a generic string, clear target_mcu.
25761 (msp430_attr): Allow numeric interrupt values up to 63.
25762 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25763 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25764 option.
25765 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25766 Add mcpu matches.
25767 * config/msp430/msp430.md (popm): Use %J rather than %I.
25768 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25769 (addhi_cy_i): Use immediate_operand for operand 2.
25770 * doc/invoke.texi: Document -mcpu option.
25771
25772 2014-01-17 Richard Biener <rguenther@suse.de>
25773
25774 PR rtl-optimization/38518
25775 * df.h (df_analyze_loop): Declare.
25776 * df-core.c: Include cfgloop.h.
25777 (df_analyze_1): Split out main part of df_analyze.
25778 (df_analyze): Adjust.
25779 (loop_inverted_post_order_compute): New function.
25780 (loop_post_order_compute): Likewise.
25781 (df_analyze_loop): New function avoiding whole-function
25782 postorder computes.
25783 * loop-invariant.c (find_defs): Use df_analyze_loop.
25784 (find_invariants): Adjust.
25785 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25786
25787 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25788
25789 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25790 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25791
25792 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25793
25794 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25795 traversal when removing references.
25796
25797 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25798
25799 PR ipa/59775
25800 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25801
25802 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25803
25804 PR middle-end/56791
25805 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25806 pushing a reload for an autoinc when we had previously reloaded an
25807 inner part of the address.
25808
25809 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25810
25811 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25812 field.
25813 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25814 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25815 when not giving up or versioning for alias only because of
25816 loop->safelen.
25817 (vect_analyze_data_ref_dependences): Set to true.
25818 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25819 is a GIMPLE_PHI.
25820 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25821 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25822 to the condition.
25823
25824 PR middle-end/58344
25825 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25826
25827 PR target/59839
25828 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25829 operand 0 predicate for gathers, use a new pseudo as subtarget.
25830
25831 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25832
25833 PR middle-end/59609
25834 * lra-constraints.c (process_alt_operands): Add printing debug info.
25835 Check absence of input/output reloads for matched operands too.
25836
25837 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25838
25839 PR rtl-optimization/59835
25840 * ira.c (ira_init_register_move_cost): Increase cost for
25841 impossible modes.
25842
25843 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25844
25845 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25846
25847 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25848
25849 PR target/59780
25850 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25851 non-register objects. Use gen_(high/low)part more consistently.
25852 Fix assertions.
25853
25854 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25855
25856 PR target/59844
25857 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25858 endian support, remove tests for WORDS_BIG_ENDIAN.
25859 (p8_mfvsrd_3_<mode>): Likewise.
25860 (reload_gpr_from_vsx<mode>): Likewise.
25861 (reload_gpr_from_vsxsf): Likewise.
25862 (p8_mfvsrd_4_disf): Likewise.
25863
25864 2014-01-16 Richard Biener <rguenther@suse.de>
25865
25866 PR rtl-optimization/46590
25867 * lcm.c (compute_antinout_edge): Use postorder iteration.
25868 (compute_laterin): Use inverted postorder iteration.
25869
25870 2014-01-16 Nick Clifton <nickc@redhat.com>
25871
25872 PR middle-end/28865
25873 * varasm.c (output_constant): Return the number of bytes actually
25874 emitted.
25875 (output_constructor_array_range): Update the field size with the
25876 number of bytes emitted by output_constant.
25877 (output_constructor_regular_field): Likewise. Also do not
25878 complain if the total number of bytes emitted is now greater
25879 than the expected fieldpos.
25880 * output.h (output_constant): Update prototype and descriptive comment.
25881
25882 2014-01-16 Marek Polacek <polacek@redhat.com>
25883
25884 PR middle-end/59827
25885 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25886 it is error_mark_node.
25887
25888 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25889
25890 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25891 VALID_AVX256_REG_OR_OI_MODE.
25892
25893 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25894
25895 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25896 current procedure should be profiled.
25897
25898 2014-01-15 Andrew Pinski <apinski@cavium.com>
25899
25900 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25901 of moving from/to the STACK_REG register class.
25902
25903 2014-01-15 Richard Henderson <rth@redhat.com>
25904
25905 PR debug/54694
25906 * reginfo.c (global_regs_decl): Globalize.
25907 * rtl.h (global_regs_decl): Declare.
25908 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25909 reserved via global_regs.
25910
25911 2014-01-15 Teresa Johnson <tejohnson@google.com>
25912
25913 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25914
25915 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25916
25917 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25918 and vmulosh rather than call gen_vec_widen_smult_*.
25919 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25920 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25921 (vec_widen_smult_even_v16qi): Likewise.
25922 (vec_widen_umult_even_v8hi): Likewise.
25923 (vec_widen_smult_even_v8hi): Likewise.
25924 (vec_widen_umult_odd_v16qi): Likewise.
25925 (vec_widen_smult_odd_v16qi): Likewise.
25926 (vec_widen_umult_odd_v8hi): Likewise.
25927 (vec_widen_smult_odd_v8hi): Likewise.
25928 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25929 vmuloub rather than call gen_vec_widen_umult_*.
25930 (vec_widen_umult_lo_v16qi): Likewise.
25931 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25932 vmulosb rather than call gen_vec_widen_smult_*.
25933 (vec_widen_smult_lo_v16qi): Likewise.
25934 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25935 rather than call gen_vec_widen_umult_*.
25936 (vec_widen_umult_lo_v8hi): Likewise.
25937 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25938 rather than call gen_vec_widen_smult_*.
25939 (vec_widen_smult_lo_v8hi): Likewise.
25940
25941 2014-01-15 Jeff Law <law@redhat.com>
25942
25943 PR tree-optimization/59747
25944 * ree.c (find_and_remove_re): Properly handle case where a second
25945 eliminated extension requires widening a copy created for elimination
25946 of a prior extension.
25947 (combine_set_extension): Ensure that the number of hard regs needed
25948 for a destination register does not change when we widen it.
25949
25950 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
25951
25952 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
25953 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
25954 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
25955 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
25956 (avr-*-rtems*): Likewise.
25957 (bfin*-rtems*): Likewise.
25958 (moxie-*-rtems*): Likewise.
25959 (h8300-*-rtems*): Likewise.
25960 (i[34567]86-*-rtems*): Likewise.
25961 (lm32-*-rtems*): Likewise.
25962 (m32r-*-rtems*): Likewise.
25963 (m68k-*-rtems*): Likewise.
25964 (microblaze*-*-rtems*): Likewise.
25965 (mips*-*-rtems*): Likewise.
25966 (powerpc-*-rtems*): Likewise.
25967 (sh-*-rtems*): Likewise.
25968 (sparc-*-rtems*): Likewise.
25969 (sparc64-*-rtems*): Likewise.
25970 (v850-*-rtems*): Likewise.
25971 (m32c-*-rtems*): Likewise.
25972
25973 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
25974
25975 PR rtl-optimization/59511
25976 * ira.c (ira_init_register_move_cost): Use memory costs for some
25977 cases of register move cost calculations.
25978 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
25979 instead of BB frequency.
25980 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
25981 * lra-assigns.c (find_hard_regno_for): Ditto.
25982
25983 2014-01-15 Richard Biener <rguenther@suse.de>
25984
25985 PR tree-optimization/59822
25986 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
25987 (vectorizable_load): Use it to hoist defs of uses of invariant
25988 loads out of the loop.
25989
25990 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
25991 Kugan Vivekanandarajah <kuganv@linaro.org>
25992
25993 PR target/59695
25994 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
25995 truncation.
25996
25997 2014-01-15 Richard Biener <rguenther@suse.de>
25998
25999 PR rtl-optimization/59802
26000 * lcm.c (compute_available): Use inverted postorder to seed
26001 the initial worklist.
26002
26003 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26004
26005 PR target/59803
26006 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26007 ADDR_REGS for invalid symrefs in non-PIC code.
26008
26009 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26010
26011 PR other/58712
26012 * builtins.c (determine_block_size): Initialize *probable_max_size
26013 even if len_rtx is CONST_INT.
26014
26015 2014-01-14 Andrew Pinski <apinski@cavium.com>
26016
26017 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26018 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26019 (cortexa53_tunings): Likewise.
26020 (aarch64_sched_issue_rate): New function.
26021 (TARGET_SCHED_ISSUE_RATE): Define.
26022
26023 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26024
26025 * ira-costs.c (find_costs_and_classes): Add missed
26026 ira_init_register_move_cost_if_necessary.
26027
26028 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26029
26030 PR target/59787
26031 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26032
26033 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26034
26035 PR target/59794
26036 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26037 to indicate if type is used for function return value. Warn ABI
26038 change if the vector mode isn't available for function return value.
26039 (ix86_function_arg_advance): Pass false to type_natural_mode.
26040 (ix86_function_arg): Likewise.
26041 (ix86_gimplify_va_arg): Likewise.
26042 (function_arg_32): Don't warn ABI change.
26043 (ix86_function_value): Pass true to type_natural_mode.
26044 (ix86_return_in_memory): Likewise.
26045 (ix86_struct_value_rtx): Removed.
26046 (TARGET_STRUCT_VALUE_RTX): Likewise.
26047
26048 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26049
26050 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26051 converting a conditional jump into a conditional return.
26052
26053 2014-01-14 Richard Biener <rguenther@suse.de>
26054
26055 PR tree-optimization/58921
26056 PR tree-optimization/59006
26057 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26058 hoisting invariant stmts.
26059 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26060 invariant loads on the preheader edge if possible.
26061
26062 2014-01-14 Joey Ye <joey.ye@arm.com>
26063
26064 * doc/plugin.texi (Building GCC plugins): Update to C++.
26065
26066 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26067
26068 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26069 (_mm_rcp28_round_ss): Ditto.
26070 (_mm_rsqrt28_round_sd): Ditto.
26071 (_mm_rsqrt28_round_ss): Ditto.
26072 (_mm_rcp28_sd): Ditto.
26073 (_mm_rcp28_ss): Ditto.
26074 (_mm_rsqrt28_sd): Ditto.
26075 (_mm_rsqrt28_ss): Ditto.
26076 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26077 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26078 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26079 (IX86_BUILTIN_RCP28SD): Ditto.
26080 (IX86_BUILTIN_RCP28SS): Ditto.
26081 (IX86_BUILTIN_RSQRT28SD): Ditto.
26082 (IX86_BUILTIN_RSQRT28SS): Ditto.
26083 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26084 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26085 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26086 (ix86_expand_special_args_builtin): Expand new FTYPE.
26087 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26088 (srcp14<mode>): Make insn unary.
26089 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26090 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26091 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26092 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26093 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26094 Fix rounding: make it SAE only.
26095 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26096 Ditto.
26097 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26098 Ditto.
26099 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26100 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26101 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26102 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26103 (round_saeonly_mask_scalar_operand4): Ditto.
26104 (round_saeonly_mask_scalar_op3): Ditto.
26105 (round_saeonly_mask_scalar_op4): Ditto.
26106
26107 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26108
26109 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26110 Implement -maltivec=be for vec_insert and vec_extract.
26111
26112 2014-01-10 DJ Delorie <dj@redhat.com>
26113
26114 * config/msp430/msp430.md (call_internal): Don't allow memory
26115 references with SP as the base register.
26116 (call_value_internal): Likewise.
26117 * config/msp430/constraints.md (Yc): New. For memory references
26118 that don't use SP as a base register.
26119
26120 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26121 "an integer without a # prefix"
26122 * config/msp430/msp430.md (epilogue_helper): Use it.
26123
26124 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26125
26126 PR target/59617
26127 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26128 AVX512F gather builtins.
26129 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26130 on gather decls with INTEGER_TYPE masktype.
26131 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26132 directly into the builtin rather than hoisting it before loop.
26133
26134 PR tree-optimization/59387
26135 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26136 (scev_const_prop): If folded_casts and type has undefined overflow,
26137 use force_gimple_operand instead of force_gimple_operand_gsi and
26138 for each added stmt if it is assign with
26139 arith_code_with_undefined_signed_overflow, call
26140 rewrite_to_defined_overflow.
26141 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26142 gimple-fold.h instead.
26143 (arith_code_with_undefined_signed_overflow,
26144 rewrite_to_defined_overflow): Moved to ...
26145 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26146 rewrite_to_defined_overflow): ... here. No longer static.
26147 Include gimplify-me.h.
26148 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26149 rewrite_to_defined_overflow): New prototypes.
26150
26151 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26152
26153 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26154
26155 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26156
26157 * builtins.c (get_object_alignment_2): Minor tweak.
26158 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26159
26160 2014-01-13 Christian Bruel <christian.bruel@st.com>
26161
26162 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26163 optimized non constant lengths.
26164
26165 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26166
26167 PR libgomp/59194
26168 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26169 load as __atomic_load_N if possible.
26170
26171 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26172
26173 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26174 target parameter.
26175 (rs6000_expand_builtin): Adjust call.
26176
26177 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26178
26179 PR target/58115
26180 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26181 * config/rs6000/rs6000.c: Include target-globals.h.
26182 (rs6000_set_current_function): Instead of doing target_reinit
26183 unconditionally, use save_target_globals_default_opts and
26184 restore_target_globals.
26185
26186 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26187 FPSCR.
26188 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26189 (rs6000_expand_builtin): Handle mffs and mtfsf.
26190 (rs6000_init_builtins): Define mffs and mtfsf.
26191 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26192 (rs6000_mffs): New pattern.
26193 (rs6000_mtfsf): New pattern.
26194
26195 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26196
26197 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26198 Start narrowing with START. Apply candidate-use pair
26199 and check overall cost in narrowing.
26200 (iv_ca_prune): Pass new argument.
26201
26202 2014-01-10 Jeff Law <law@redhat.com>
26203
26204 PR middle-end/59743
26205 * ree.c (combine_reaching_defs): Ensure the defining statement
26206 occurs before the extension when optimizing extensions with
26207 different source and destination hard registers.
26208
26209 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26210
26211 PR ipa/58585
26212 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26213 vtables into the type inheritance graph.
26214
26215 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26216
26217 PR rtl-optimization/59754
26218 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26219 modes in the REGNO != REGNO case.
26220
26221 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26222
26223 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26224
26225 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26226
26227 PR tree-optimization/59745
26228 * tree-predcom.c (tree_predictive_commoning_loop): Call
26229 free_affine_expand_cache if giving up because components is NULL.
26230
26231 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26232 GC in payload of target_globals struct instead of allocating them on
26233 the heap and the larger structs separately using GC.
26234 * target-globals.h (struct target_globals): Make regs, hard_regs,
26235 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26236 of GTY((skip)) and change type to void *.
26237 (reset_target_globals): Cast loads from those fields to corresponding
26238 types.
26239
26240 2014-01-10 Steve Ellcey <sellcey@mips.com>
26241
26242 PR plugins/59335
26243 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26244 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26245 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26246
26247 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26248
26249 PR target/59744
26250 * aarch64-modes.def (CC_Zmode): New flags mode.
26251 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26252 represents an equality.
26253 (aarch64_get_condition_code): Handle CC_Zmode.
26254 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26255
26256 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26257
26258 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26259 extraction in good case.
26260
26261 2014-01-10 Richard Biener <rguenther@suse.de>
26262
26263 PR tree-optimization/59374
26264 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26265 checking after SLP discovery. Mark stmts not participating
26266 in any SLP instance properly.
26267
26268 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26269
26270 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26271 when handling a SET rtx.
26272
26273 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26274
26275 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26276 (cortex-a57): Likewise.
26277 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26278
26279 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26280
26281 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26282 non-iwmmxt builtins.
26283
26284 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26285
26286 PR ipa/58252
26287 PR ipa/59226
26288 * ipa-devirt.c record_target_from_binfo): Take as argument
26289 stack of binfos and lookup matching one for virtual inheritance.
26290 (possible_polymorphic_call_targets_1): Update.
26291
26292 2014-01-10 Huacai Chen <chenhc@lemote.com>
26293
26294 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26295 kernel strings for Loongson-2E/2F/3A.
26296
26297 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26298
26299 PR middle-end/59670
26300 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26301 is_gimple_call before calling gimple_call_internal_p.
26302
26303 2014-01-09 Steve Ellcey <sellcey@mips.com>
26304
26305 * Makefile.in (TREE_FLOW_H): Remove.
26306 (TREE_SSA_H): Add file names from tree-flow.h.
26307 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26308 * tree.h: Remove tree-flow.h reference.
26309 * hash-table.h: Remove tree-flow.h reference.
26310 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26311 reference with tree-ssa-loop.h.
26312
26313 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26314
26315 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26316 default element-order behavior for -maltivec.
26317 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26318 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26319 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26320 when targeting big endian, at least for now.
26321 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26322
26323 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26324
26325 PR middle-end/47735
26326 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26327 var satisfies use_register_for_decl, just take into account type
26328 alignment, rather than decl alignment.
26329
26330 PR tree-optimization/59622
26331 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26332 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26333 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26334 Don't devirtualize for inplace at all. For targets.length () == 1,
26335 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26336
26337 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26338
26339 * config/i386/i386.md (cpu): Remove the unused btver1.
26340
26341 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26342
26343 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26344
26345 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26346
26347 PR target/58115
26348 * tree-core.h (struct target_globals): New forward declaration.
26349 (struct tree_target_option): Add globals field.
26350 * tree.h (TREE_TARGET_GLOBALS): Define.
26351 (prepare_target_option_nodes_for_pch): New prototype.
26352 * target-globals.h (struct target_globals): Define even if
26353 !SWITCHABLE_TARGET.
26354 * tree.c (prepare_target_option_node_for_pch,
26355 prepare_target_option_nodes_for_pch): New functions.
26356 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26357 * config/i386/i386.c: Include target-globals.h.
26358 (ix86_set_current_function): Instead of doing target_reinit
26359 unconditionally, use save_target_globals_default_opts and
26360 restore_target_globals.
26361
26362 2014-01-09 Richard Biener <rguenther@suse.de>
26363
26364 PR tree-optimization/59715
26365 * tree-cfg.h (split_critical_edges): Declare.
26366 * tree-cfg.c (split_critical_edges): Export.
26367 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26368
26369 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26370
26371 * cfgexpand.c (expand_stack_vars): Optionally disable
26372 asan stack protection.
26373 (expand_used_vars): Likewise.
26374 (partition_stack_vars): Likewise.
26375 * asan.c (asan_emit_stack_protection): Optionally disable
26376 after return stack usage.
26377 (instrument_derefs): Optionally disable memory access instrumentation.
26378 (instrument_builtin_call): Likewise.
26379 (instrument_strlen_call): Likewise.
26380 (asan_protect_global): Optionally disable global variables protection.
26381 * doc/invoke.texi: Added doc for new options.
26382 * params.def: Added new options.
26383 * params.h: Likewise.
26384
26385 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26386
26387 PR rtl-optimization/59724
26388 * ifcvt.c (cond_exec_process_if_block): Don't call
26389 flow_find_head_matching_sequence with 0 longest_match.
26390 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26391 non-active insns if !stop_after.
26392 (try_head_merge_bb): Revert 2014-01-07 changes.
26393
26394 2014-01-08 Jeff Law <law@redhat.com>
26395
26396 * ree.c (get_sub_rtx): New function, extracted from...
26397 (merge_def_and_ext): Here.
26398 (combine_reaching_defs): Use get_sub_rtx.
26399
26400 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26401
26402 * cgraph.h (varpool_variable_node): Do not choke on null node.
26403
26404 2014-01-08 Catherine Moore <clm@codesourcery.com>
26405
26406 * config/mips/mips.md (simple_return): Attempt to use JRC
26407 for microMIPS.
26408 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26409
26410 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26411
26412 PR rtl-optimization/59137
26413 * reorg.c (steal_delay_list_from_target): Call update_block for
26414 elided insns.
26415 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26416
26417 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26418
26419 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26420 two duplicate entries.
26421
26422 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26423
26424 Revert:
26425 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26426
26427 * config/mips/mips.c (mips_truncated_op_cost): New function.
26428 (mips_rtx_costs): Adjust test for BADDU.
26429 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26430
26431 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26432
26433 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26434 (*baddu_si): ...this new pattern.
26435
26436 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26437
26438 PR ipa/59722
26439 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26440
26441 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26442
26443 PR middle-end/57748
26444 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26445 inner_reference_p.
26446 (expand_expr, expand_normal): Adjust.
26447 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26448 inner_reference_p. Use inner_reference_p to expand inner references.
26449 (store_expr): Adjust.
26450 * cfgexpand.c (expand_call_stmt): Adjust.
26451
26452 2014-01-08 Rong Xu <xur@google.com>
26453
26454 * gcov-io.c (gcov_var): Move from gcov-io.h.
26455 (gcov_position): Ditto.
26456 (gcov_is_error): Ditto.
26457 (gcov_rewrite): Ditto.
26458 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26459 only part to libgcc/libgcov.h.
26460
26461 2014-01-08 Marek Polacek <polacek@redhat.com>
26462
26463 PR middle-end/59669
26464 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26465
26466 2014-01-08 Marek Polacek <polacek@redhat.com>
26467
26468 PR sanitizer/59667
26469 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26470
26471 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26472
26473 PR rtl-optimization/59649
26474 * stor-layout.c (get_mode_bounds): For BImode return
26475 0 and STORE_FLAG_VALUE.
26476
26477 2014-01-08 Richard Biener <rguenther@suse.de>
26478
26479 PR middle-end/59630
26480 * gimple.h (is_gimple_builtin_call): Remove.
26481 (gimple_builtin_call_types_compatible_p): New.
26482 (gimple_call_builtin_p): New overload.
26483 * gimple.c (is_gimple_builtin_call): Remove.
26484 (validate_call): Rename to ...
26485 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26486 check return types.
26487 (validate_type): New static function.
26488 (gimple_call_builtin_p): New overload and adjust.
26489 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26490 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26491 (gimple_fold_stmt_to_constant_1): Likewise.
26492 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26493
26494 2014-01-08 Richard Biener <rguenther@suse.de>
26495
26496 PR middle-end/59471
26497 * gimplify.c (gimplify_expr): Gimplify register-register type
26498 VIEW_CONVERT_EXPRs to separate stmts.
26499
26500 2014-01-07 Jeff Law <law@redhat.com>
26501
26502 PR middle-end/53623
26503 * ree.c (combine_set_extension): Handle case where source
26504 and destination registers in an extension insn are different.
26505 (combine_reaching_defs): Allow source and destination registers
26506 in extension to be different under limited circumstances.
26507 (add_removable_extension): Remove restriction that the
26508 source and destination registers in the extension are the same.
26509 (find_and_remove_re): Emit a copy from the extension's
26510 destination to its source after the defining insn if
26511 the source and destination registers are different.
26512
26513 PR middle-end/59285
26514 * ifcvt.c (merge_if_block): If we are merging a block with more than
26515 one successor with a block with no successors, remove any BARRIER
26516 after the second block.
26517
26518 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26519
26520 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26521
26522 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26523
26524 PR target/59652
26525 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26526 for 14-bit register offsets when INT14_OK_STRICT is false.
26527
26528 2014-01-07 Roland Stigge <stigge@antcom.de>
26529 Michael Meissner <meissner@linux.vnet.ibm.com>
26530
26531 PR 57386/target
26532 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26533 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26534
26535 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26536
26537 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26538 -mcpu.
26539
26540 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26541
26542 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26543 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26544 rtx is const0_rtx or not.
26545
26546 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26547
26548 PR target/58115
26549 * target-globals.c (save_target_globals): Remove this_fn_optab
26550 handling.
26551 * toplev.c: Include optabs.h.
26552 (target_reinit): Temporarily restore the global options if another
26553 set of options are in force.
26554
26555 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26556
26557 PR rtl-optimization/58668
26558 * cfgcleanup.c (flow_find_cross_jump): Don't count
26559 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26560 to determine what is counted.
26561 (flow_find_head_matching_sequence): Use active_insn_p to determine
26562 what is counted.
26563 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26564 counting change.
26565 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26566 determine what is counted.
26567
26568 PR tree-optimization/59643
26569 * tree-predcom.c (split_data_refs_to_components): If one dr is
26570 read and one write, determine_offset fails and the write isn't
26571 in the bad component, just put the read into the bad component.
26572
26573 2014-01-07 Mike Stump <mikestump@comcast.net>
26574 Jakub Jelinek <jakub@redhat.com>
26575
26576 PR pch/59436
26577 * tree-core.h (struct tree_optimization_option): Change optabs
26578 type from unsigned char * to void *.
26579 * optabs.c (init_tree_optimization_optabs): Adjust
26580 TREE_OPTIMIZATION_OPTABS initialization.
26581
26582 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26583
26584 PR target/59644
26585 * config/i386/i386.h (struct machine_function): Add
26586 no_drap_save_restore field.
26587 * config/i386/i386.c (ix86_save_reg): Use
26588 !cfun->machine->no_drap_save_restore instead of
26589 crtl->stack_realign_needed.
26590 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26591 this function clears frame_pointer_needed. Set
26592 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26593 and DRAP reg is needed.
26594
26595 2014-01-06 Marek Polacek <polacek@redhat.com>
26596
26597 PR c/57773
26598 * doc/implement-c.texi: Mention that other integer types are
26599 permitted as bit-field types in strictly conforming mode.
26600
26601 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26602
26603 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26604 is newly allocated.
26605
26606 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26607
26608 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26609
26610 2014-01-06 Martin Jambor <mjambor@suse.cz>
26611
26612 PR ipa/59008
26613 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26614 to int.
26615 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26616
26617 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26618
26619 PR debug/59350
26620 PR debug/59510
26621 * var-tracking.c (add_stores): Preserve the value of the source even if
26622 we don't record the store.
26623
26624 2014-01-06 Terry Guo <terry.guo@arm.com>
26625
26626 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26627
26628 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26629
26630 PR bootstrap/59541
26631 * config/darwin.c (darwin_function_section): Adjust return values to
26632 correspond to optimisation changes made in r206070.
26633
26634 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26635
26636 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26637 from prefetch_block tune setting.
26638 (nocona_cost): Correct size of prefetch block to 64.
26639
26640 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26641
26642 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26643 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26644 used to save the static chain register in the computation of the offset
26645 from which the FP registers need to be restored.
26646
26647 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26648
26649 PR tree-optimization/59519
26650 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26651 ICE if get_current_def (current_new_name) is already non-NULL, as long
26652 as it is a phi result of some other phi in *new_exit_bb that has
26653 the same argument.
26654
26655 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26656 or vmovdqu* for misaligned_operand.
26657 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26658 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26659 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26660 aligned_mem for AVX512F masked aligned load and store builtins and for
26661 non-temporal moves.
26662
26663 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26664
26665 PR tree-optimization/59651
26666 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26667 Address range for negative step should be added by TYPE_SIZE_UNIT.
26668
26669 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26670
26671 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26672 overlapping registers also for registers other than the stack pointer.
26673
26674 2014-01-03 Marek Polacek <polacek@redhat.com>
26675
26676 PR other/59661
26677 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26678 __builtin_FILE.
26679
26680 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26681
26682 PR target/59625
26683 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26684 asm goto as jump.
26685
26686 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26687 (push splitter): Use <P:MODE_SIZE> instead of
26688 GET_MODE_SIZE (<P:MODE>mode).
26689 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26690 (mov -1, reg peephole2): Likewise.
26691 * config/i386/sse.md (*mov<mode>_internal,
26692 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26693 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26694 *<code><mode>3, *andnot<mode>3<mask_name>,
26695 <mask_codefor><code><mode>3<mask_name>): Likewise.
26696 * config/i386/subst.md (mask_mode512bit_condition,
26697 sd_mask_mode512bit_condition): Likewise.
26698
26699 2014-01-02 Xinliang David Li <davidxl@google.com>
26700
26701 PR tree-optimization/59303
26702 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26703 (dump_predicates): Better output format.
26704 (pred_equal_p): New function.
26705 (is_neq_relop_p): Ditto.
26706 (is_neq_zero_form_p): Ditto.
26707 (pred_expr_equal_p): Ditto.
26708 (pred_neg_p): Ditto.
26709 (simplify_pred): Ditto.
26710 (simplify_preds_2): Ditto.
26711 (simplify_preds_3): Ditto.
26712 (simplify_preds_4): Ditto.
26713 (simplify_preds): Ditto.
26714 (push_pred): Ditto.
26715 (push_to_worklist): Ditto.
26716 (get_pred_info_from_cmp): Ditto.
26717 (is_degenerated_phi): Ditto.
26718 (normalize_one_pred_1): Ditto.
26719 (normalize_one_pred): Ditto.
26720 (normalize_one_pred_chain): Ditto.
26721 (normalize_preds): Ditto.
26722 (normalize_cond_1): Remove function.
26723 (normalize_cond): Ditto.
26724 (is_gcond_subset_of): Ditto.
26725 (is_subset_of_any): Ditto.
26726 (is_or_set_subset_of): Ditto.
26727 (is_and_set_subset_of): Ditto.
26728 (is_norm_cond_subset_of): Ditto.
26729 (pred_chain_length_cmp): Ditto.
26730 (convert_control_dep_chain_into_preds): Type change.
26731 (find_predicates): Ditto.
26732 (find_def_preds): Ditto.
26733 (destroy_predicates_vecs): Ditto.
26734 (find_matching_predicates_in_rest_chains): Ditto.
26735 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26736 (is_pred_expr_subset): Ditto.
26737 (is_pred_chain_subset_of): Ditto.
26738 (is_included_in): Ditto.
26739 (is_superset_of): Ditto.
26740
26741 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26742
26743 Update copyright years.
26744
26745 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26746
26747 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26748 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26749 config/arc/arc.md, config/arc/arc.opt,
26750 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26751 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26752 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26753 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26754 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26755 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26756 vtable-verify.c, vtable-verify.h: Use the standard form for the
26757 copyright notice.
26758
26759 2014-01-02 Tobias Burnus <burnus@net-b.de>
26760
26761 * gcc.c (process_command): Update copyright notice dates.
26762 * gcov-dump.c: Ditto.
26763 * gcov.c: Ditto.
26764 * doc/cpp.texi: Bump @copying's copyright year.
26765 * doc/cppinternals.texi: Ditto.
26766 * doc/gcc.texi: Ditto.
26767 * doc/gccint.texi: Ditto.
26768 * doc/gcov.texi: Ditto.
26769 * doc/install.texi: Ditto.
26770 * doc/invoke.texi: Ditto.
26771
26772 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26773
26774 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26775
26776 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26777
26778 * config/i386/sse.md (*mov<mode>_internal): Guard
26779 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26780
26781 PR rtl-optimization/59647
26782 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26783 new_rtx into UNSIGNED_FLOAT rtxes.
26784 \f
26785 Copyright (C) 2014 Free Software Foundation, Inc.
26786
26787 Copying and distribution of this file, with or without modification,
26788 are permitted in any medium without royalty provided the copyright
26789 notice and this notice are preserved.