1 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4 * config/sh/sh.md (ashlsi3): Handle negative shift count for
6 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
10 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
12 2014-08-27 David Malcolm <dmalcolm@redhat.com>
14 * rtl.h (JUMP_LABEL_AS_INSN): New.
16 2014-08-27 David Malcolm <dmalcolm@redhat.com>
18 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
20 (alloc_EXPR_LIST): Strengthen return type from rtx to
22 (remove_free_EXPR_LIST_node): Likewise for param.
23 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
24 from rtx to rtx_expr_list *.
25 * sched-int.h (struct deps_desc): Strengthen fields
26 "pending_read_mems" and "pending_write_mems" from rtx to
29 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
30 rtx to rtx_expr_list *.
31 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
32 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
34 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
35 from rtx to rtx_expr_list *.
36 * loop-iv.c (simplify_using_initial_values): Strengthen local
37 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
38 "pnote_next" from rtx * to rtx_expr_list **.
39 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
40 param "exprp" from rtx * to rtx_expr_list **.
41 (add_insn_mem_dependence): Strengthen local "mem_list" from
42 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
44 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
45 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
46 param "old_mems_p" from rtx * to rtx_expr_list **.
47 * var-tracking.c (struct adjust_mem_data): Strengthen field
48 "side_effects" from rtx to rtx_expr_list *.
49 (adjust_insn): Replace NULL_RTX with NULL when assigning to
51 (prepare_call_arguments): Likewise.
53 2014-08-27 David Malcolm <dmalcolm@redhat.com>
55 * function.h (struct rtl_data): Strengthen field
56 "x_stack_slot_list" from rtx to rtx_expr_list *.
58 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
59 when assigning to stack_slot_list.
61 2014-08-27 David Malcolm <dmalcolm@redhat.com>
63 * function.h (struct rtl_data): Strengthen field
64 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
65 * rtl.h (remove_node_from_expr_list): Strengthen second param from
66 rtx * to rtx_expr_list **.
68 * cfgbuild.c (make_edges): In loop over
69 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
70 rtx_expr_list *, and use methods of the latter class to clarify
72 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
73 rtx_expr_list *, and use methods of the latter class to clarify
75 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
76 * reload1.c (set_initial_label_offsets): Likewise for local "x".
77 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
78 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
79 to rtx_expr_list *. Use methods of the latter class to clarify
82 2014-08-27 David Malcolm <dmalcolm@redhat.com>
84 * function.h (struct expr_status): Strengthen field
85 "x_forced_labels" from rtx to rtx_expr_list *.
87 * cfgbuild.c (make_edges): Split local "x" into two locals,
88 strengthening one from rtx to rtx_expr_list *, and using methods
90 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
91 loop over forced_labels, introduce strengthen it from rtx to
92 rtx_expr_list *, using methods to clarify the code.
93 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
94 to rtx_expr_list *, using methods of said class to clarify the
96 * reload1.c (set_initial_label_offsets): Split local "x" into two
97 per-loop variables, strengthening the first from rtx to
98 rtx_expr_list * and using methods.
100 2014-08-27 David Malcolm <dmalcolm@redhat.com>
102 * coretypes.h (class rtx_expr_list): Add forward declaration.
103 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
104 * gengenrtl.c (special_rtx): Add EXPR_LIST.
105 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
106 invariant: GET_CODE (X) == EXPR_LIST.
107 (is_a_helper <rtx_expr_list *>::test): New.
108 (rtx_expr_list::next): New.
109 (rtx_expr_list::element): New.
110 (gen_rtx_EXPR_LIST): New.
112 2014-08-27 David Malcolm <dmalcolm@redhat.com>
114 * varasm.c (mark_constants): Convert a GET_CODE check into a
115 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
116 Use methods of rtx_sequence to clarify the code.
118 2014-08-27 David Malcolm <dmalcolm@redhat.com>
120 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
121 local "seq" via a checked cast, and use methods of rtx_sequence
122 to simplify the code.
124 2014-08-27 David Malcolm <dmalcolm@redhat.com>
126 * resource.c (mark_referenced_resources): Strengthen local
127 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
128 using methods of rtx_sequence to clarify the code.
129 (find_dead_or_set_registers): Within the switch statement, convert
130 a GET_CODE check to a dyn_cast, introducing local "seq". Within
131 the JUMP_P handling, introduce another local "seq", adding a
132 checked cast to rtx_sequence *. In both cases, use methods of
133 rtx_sequence to clarify the code.
134 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
135 via a checked cast, and use methods of rtx_sequence to simplify
138 2014-08-27 David Malcolm <dmalcolm@redhat.com>
140 * reorg.c (redundant_insn): In two places in the function, replace
141 a check of GET_CODE with a dyn_cast, introducing local "seq", and
142 usings methods of rtx_sequence to clarify the code.
144 2014-08-27 David Malcolm <dmalcolm@redhat.com>
146 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
147 local "seq" with a checked cast, and use methods of rtx_sequence
150 2014-08-27 David Malcolm <dmalcolm@redhat.com>
152 * function.c (contains): Introduce local "seq" for PATTERN (insn),
153 with a checked cast, in the region for where we know it's a
154 SEQUENCE. Use methods of rtx_sequence.
156 2014-08-27 David Malcolm <dmalcolm@redhat.com>
158 * final.c (get_attr_length_1): Replace GET_CODE check with a
159 dyn_cast, introducing local "seq" and the use of methods of
161 (shorten_branches): Likewise, introducing local "body_seq".
162 Strengthen local "inner_insn" from rtx to rtx_insn *.
163 (reemit_insn_block_notes): Replace GET_CODE check with a
164 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
165 Use methods of rtx_sequence.
166 (final_scan_insn): Likewise, introducing local "seq" for when
167 "body" is known to be a SEQUENCE, using its methods.
169 2014-08-27 David Malcolm <dmalcolm@redhat.com>
171 * except.c (can_throw_external): Strengthen local "seq" from rtx
172 to rtx_sequence *. Use methods of rtx_sequence.
173 (insn_nothrow_p): Likewise.
175 2014-08-27 David Malcolm <dmalcolm@redhat.com>
177 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
178 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
179 Use methods of rtx_sequence.
180 (scan_trace): Likewise for local "pat".
182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
184 * coretypes.h (class rtx_sequence): Add forward declaration.
185 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
186 invariant: GET_CODE (X) == SEQUENCE.
187 (is_a_helper <rtx_sequence *>::test): New.
188 (is_a_helper <const rtx_sequence *>::test): New.
189 (rtx_sequence::len): New.
190 (rtx_sequence::element): New.
191 (rtx_sequence::insn): New.
193 2014-08-27 David Malcolm <dmalcolm@redhat.com>
195 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
197 (alloc_INSN_LIST): Strengthen return type from rtx to
199 (copy_INSN_LIST): Likewise for return type and param.
200 (concat_INSN_LIST): Likewise for both params and return type.
201 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
202 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
203 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
204 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
206 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
207 "implicit_sets", "control_uses", "clobbers" from rtx to
209 (struct deps_desc): Likewise for fields "pending_read_insns",
210 "pending_write_insns", "pending_jump_insns",
211 "last_pending_memory_flush", "last_function_call",
212 "last_function_call_may_noreturn", "sched_before_next_call",
213 "sched_before_next_jump".
214 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
215 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
217 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
218 from rtx to rtx_insn_list *.
219 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
222 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
224 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
226 (queue_insn): Likewise for local "link".
227 (struct haifa_saved_data): Strengthen field "insn_queue" from
228 rtx * to rtx_insn_list **.
229 (save_backtrack_point): Update allocation of save->insn_queue to
230 reflect the strengthening of elements from rtx to rtx_insn_list *.
231 (queue_to_ready): Strengthen local "link" from rtx to
232 rtx_insn_list *; use methods "next" and "insn" when traversing the
234 (early_queue_to_ready): Likewise for locals "link", "next_link",
236 (schedule_block): Update allocation of insn_queue to reflect the
237 strengthening of elements from rtx to rtx_insn_list *. Strengthen
238 local "link" from rtx to rtx_insn_list *, and use methods when
240 (add_to_speculative_block): Strengthen locals "twins" and
241 "next_node" from rtx to rtx_insn_list *, and use methods when
242 working with them. Strengthen local "twin" from rtx to
243 rtx_insn *, eliminating a checked cast.
244 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
245 from rtx to rtx_insn_list *, and use methods when working with
248 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
249 from rtx to rtx_insn_list *, adding a checked cast.
250 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
252 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
253 "newlink" from rtx to rtx_insn_list *. Strengthen local
254 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
255 from rtx to rtx_insn *.
256 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
257 from rtx to rtx_insn_list *. Use methods of the latter class.
258 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
259 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
260 (remove_free_INSN_LIST_node): Strengthen return type and local
261 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
262 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
263 rtx_insn_list *, using "insn" method.
265 * sched-deps.c (add_dependence_list): Strengthen param "list"
266 from rtx to rtx_insn_list *, and use methods when working with it.
267 (add_dependence_list_and_free): Strengthen param "listp" from
268 rtx * to rtx_insn_list **.
269 (remove_from_dependence_list): Strenghten param "listp" from rtx *
270 to rtx_insn_list **, and use methods when working with *listp.
271 (remove_from_both_dependence_lists): Strengthen param "listp" from
272 rtx * to rtx_insn_list **
273 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
274 to rtx_insn_list **. Eliminate local "link", in favor of two new
275 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
277 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
278 by introducing local "cond_deps".
279 (remove_from_deps): Strengthen param "insn" from rtx to
282 * sched-rgn.c (concat_insn_mem_list): Strengthen param
283 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
284 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
285 Use methods of rtx_insn_list.
287 * store-motion.c (struct st_expr): Strengthen fields
288 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
289 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
291 (find_moveable_store): Split out "tmp" into multiple more-tightly
292 scoped locals. Use methods of rtx_insn_list *.
293 (compute_store_table): Strengthen local "tmp" from rtx to
294 rtx_insn *. Use methods of rtx_insn_list *.
296 2014-08-27 David Malcolm <dmalcolm@redhat.com>
298 * coretypes.h (class rtx_insn_list): Add forward declaration.
299 * rtl.h (class rtx_insn_list): New subclass of rtx_def
300 (is_a_helper <rtx_insn_list *>::test): New.
301 (rtx_insn_list::next): New.
302 (rtx_insn_list::insn): New.
303 (gen_rtx_INSN_LIST): Add prototype.
304 * emit-rtl.c (gen_rtx_INSN_LIST): New.
305 * gengenrtl.c (special_rtx): Add INSN_LIST.
307 2014-08-27 David Malcolm <dmalcolm@redhat.com>
309 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
310 "prev" from rtx to rtx_insn *.
312 2014-08-27 David Malcolm <dmalcolm@redhat.com>
314 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
315 functions. Require merely an rtx for now, not an rtx_insn *.
316 (BLOCK_FOR_INSN): Likewise.
317 (INSN_LOCATION): Likewise.
318 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
320 2014-08-27 David Malcolm <dmalcolm@redhat.com>
322 * rtl.h (PATTERN): Convert this macro into a pair of inline
323 functions, for now, requiring const_rtx and rtx.
325 2014-08-27 David Malcolm <dmalcolm@redhat.com>
327 * target.def (unwind_emit): Strengthen param "insn" from rtx to
329 (final_postscan_insn): Likewise.
330 (adjust_cost): Likewise.
331 (adjust_priority): Likewise.
332 (variable_issue): Likewise.
333 (macro_fusion_pair_p): Likewise.
334 (dfa_post_cycle_insn): Likewise.
335 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
336 (first_cycle_multipass_issue): Likewise.
337 (dfa_new_cycle): Likewise.
338 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
339 (speculate_insn): Likewise for param "insn".
340 (gen_spec_check): Likewise for params "insn" and "label".
341 (get_insn_spec_ds): Likewise for param "insn".
342 (get_insn_checked_ds): Likewise.
343 (dispatch_do): Likewise.
344 (dispatch): Likewise.
345 (cannot_copy_insn_p): Likewise.
346 (invalid_within_doloop): Likewise.
347 (legitimate_combined_insn): Likewise.
351 * doc/tm.texi: Automatically updated to reflect changes to
354 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
356 (schedule_block): Likewise.
357 (sched_init): Likewise.
358 (sched_speculate_insn): Strengthen param "insn" from rtx to
360 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
362 * hooks.c (hook_bool_rtx_true): Rename to...
363 hook_bool_rtx_insn_true): ...this, and strengthen first param from
365 (hook_constcharptr_const_rtx_null): Rename to...
366 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
367 first param from const_rtx to const rtx_insn *.
368 (hook_bool_rtx_int_false): Rename to...
369 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
370 param from rtx to rtx_insn *.
371 (hook_void_rtx_int): Rename to...
372 (hook_void_rtx_insn_int): ...this, and strengthen first param from
375 * hooks.h (hook_bool_rtx_true): Rename to...
376 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
378 (hook_bool_rtx_int_false): Rename to...
379 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
380 param from rtx to rtx_insn *.
381 (hook_void_rtx_int): Rename to...
382 (hook_void_rtx_insn_int): ...this, and strengthen first param from
384 (hook_constcharptr_const_rtx_null): Rename to...
385 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
386 first param from const_rtx to const rtx_insn *.
388 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
389 and local "prev" from rtx to rtx_insn *.
391 * sched-int.h (sched_speculate_insn): Strengthen first param from
394 * sel-sched.c (create_speculation_check): Likewise for local "label".
395 * targhooks.c (default_invalid_within_doloop): Strengthen param
396 "insn" from const_rtx to const rtx_insn *.
397 * targhooks.h (default_invalid_within_doloop): Strengthen param
398 from const_rtx to const rtx_insn *.
400 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
401 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
403 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
405 (arc_invalid_within_doloop): Likewise, with const.
407 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
408 (arm_cannot_copy_insn_p): Likewise for param "insn".
409 (arm_unwind_emit): Likewise.
411 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
414 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
415 (c6x_variable_issue): Likewise. Removed now-redundant checked
417 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
419 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
420 Likewise for param "insn".
421 (epiphany_mode_after): Likewise.
422 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
423 params "insn", "dep_insn".
424 (epiphany_mode_needed): Likewise for param "insn".
425 (epiphany_mode_after): Likewise.
427 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
428 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
429 (ix86_avx_u128_mode_needed): Likewise.
430 (ix86_i387_mode_needed): Likewise.
431 (ix86_mode_needed): Likewise.
432 (ix86_avx_u128_mode_after): Likewise.
433 (ix86_mode_after): Likewise.
434 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
435 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
436 (ix86_adjust_priority): Likewise for param "insn".
437 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
438 (do_dispatch): Likewise.
439 (has_dispatch): Likewise.
440 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
442 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
443 reflect renaming of default hook implementation from
444 hook_constcharptr_const_rtx_null to
445 hook_constcharptr_const_rtx_insn_null.
446 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
448 (ia64_variable_issue): Likewise for param "insn".
449 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
450 (ia64_dfa_new_cycle): Likewise.
451 (ia64_get_insn_spec_ds): Likewise.
452 (ia64_get_insn_checked_ds): Likewise.
453 (ia64_speculate_insn): Likewise.
454 (ia64_gen_spec_check): Likewise for params "insn", "label".
455 (ia64_asm_unwind_emit): Likewise for param "insn".
457 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
459 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
461 (m68k_sched_variable_issue): Likewise for param "insn".
463 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
466 * config/microblaze/microblaze.c (microblaze_adjust_cost):
467 Likewise for params "insn", "dep".
469 * config/mips/mips.c (mips_adjust_cost): Likewise.
470 (mips_variable_issue): Likewise for param "insn".
471 (mips_final_postscan_insn): Likewise.
473 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
474 for params "insn", "dep".
476 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
478 (pa_adjust_priority): Likewise for param "insn".
480 * config/picochip/picochip.c (picochip_sched_adjust_cost):
481 Likewise for params "insn", "dep_insn".
483 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
485 (rs6000_variable_issue): Likewise.
486 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
487 (rs6000_debug_adjust_cost): Likewise.
488 (rs6000_adjust_priority): Likewise for param "insn".
489 (rs6000_use_sched_lookahead_guard): Likewise.
490 (get_next_active_insn): Likewise for return type and both params.
491 (redefine_groups): Likewise for params "prev_head_insn", "tail"
492 and locals "insn", "next_insn".
493 (pad_groups): Likewise.
495 * config/s390/s390.c (s390_adjust_priority): Likewise for param
497 (s390_cannot_copy_insn_p): Likewise.
498 (s390_sched_variable_issue): Likewise for third param, eliminating
500 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
501 default hook implementation from hook_constcharptr_const_rtx_null
502 to hook_constcharptr_const_rtx_insn_null.
504 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
505 from rtx to rtx_insn *.
506 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
507 (sh_variable_issue): Likewise for param "insn".
508 (sh_dfa_new_cycle): Likewise.
509 (sh_mode_needed): Likewise.
510 (sh_mode_after): Likewise.
512 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
513 params "insn", "dep_insn".
514 (hypersparc_adjust_cost): Likewise.
515 (sparc_adjust_cost): Likewise.
517 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
518 param, eliminated checked cast.
519 (spu_sched_adjust_cost): Likewise for first and third params.
521 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
522 params "insn" and "dep_insn" from rtx to rtx_insn *.
524 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
526 2014-08-27 David Malcolm <dmalcolm@redhat.com>
528 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
529 (set_is_load_p): ...this, updating to work on a SET pattern rather
531 (is_store_insn): Rename to...
532 (set_is_store_p): ...this, updating to work on a SET pattern
534 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
535 top of function to where it is needed. Rewrite the bogus
536 condition that checks for "insn" and "dep" being PARALLEL to
537 instead use single_set, introducing locals "insn_set" and
538 "dep_set". Given that we only ever returned "cost" for a non-pair
539 of SETs, bail out early if we don't have a pair of SET.
540 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
541 use the new locals "insn_set" and "dep_set", and update calls to
542 is_load_insn and is_store_insn to be calls to set_is_load_p and
545 2014-08-27 Guozhi Wei <carrot@google.com>
548 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
549 amount before using it.
551 2014-08-27 Richard Biener <rguenther@suse.de>
553 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
554 get_maxval_strlen inside a more useful API.
555 (gimple_fold_builtin_with_strlen): Remove and fold into ...
556 (gimple_fold_builtin): ... caller.
557 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
558 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
559 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
560 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
561 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
562 gimple_fold_builtin_sprintf): Adjust to compute maxval
565 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
568 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
570 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
571 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
572 Anna Tikhonova <anna.tikhonova@intel.com>
573 Ilya Tocar <ilya.tocar@intel.com>
574 Andrey Turetskiy <andrey.turetskiy@intel.com>
575 Ilya Verbin <ilya.verbin@intel.com>
576 Kirill Yukhin <kirill.yukhin@intel.com>
577 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
580 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
581 Use `concat_tg_mode' attribute to determine asm register size.
583 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
584 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
585 Anna Tikhonova <anna.tikhonova@intel.com>
586 Ilya Tocar <ilya.tocar@intel.com>
587 Andrey Turetskiy <andrey.turetskiy@intel.com>
588 Ilya Verbin <ilya.verbin@intel.com>
589 Kirill Yukhin <kirill.yukhin@intel.com>
590 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
593 (define_mode_iterator VI48_AVX512VL): New.
594 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
595 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
596 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
597 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
598 with VI1): Change mode iterator.
599 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
600 with VI_ULOADSTORE_BW_AVX512VL): New.
601 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
602 with VI_ULOADSTORE_F_AVX512VL): Ditto.
603 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
604 with VI1): Change mode iterator.
605 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
606 with VI_ULOADSTORE_BW_AVX512VL): New.
607 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
608 with VI_ULOADSTORE_F_AVX512VL): Ditto.
609 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
610 with VI1): Change mode iterator.
611 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
612 with VI_ULOADSTORE_BW_AVX512VL): New.
613 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
614 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
615 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
616 (define_insn "<avx512>_storedqu<mode>_mask" with
618 (define_insn "<avx512>_storedqu<mode>_mask" with
619 VI12_AVX512VL): Ditto.
621 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
623 Anna Tikhonova <anna.tikhonova@intel.com>
624 Ilya Tocar <ilya.tocar@intel.com>
625 Andrey Turetskiy <andrey.turetskiy@intel.com>
626 Ilya Verbin <ilya.verbin@intel.com>
627 Kirill Yukhin <kirill.yukhin@intel.com>
628 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
631 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
632 (define_mode_iterator VI48_AVX512BW): New.
633 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
634 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
635 with VI48_AVX2_48_AVX512F): New.
636 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
637 with VI2_AVX512VL): Ditto.
639 2014-08-27 Richard Biener <rguenther@suse.de>
642 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
643 (fold_builtin_3): Do not fold strcat_chk here.
644 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
646 (gimple_fold_builtin): Fold strcat_chk here.
648 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
650 * dwarf2out.h (dwarf2out_decl): Remove prototype.
651 * dwarf2out.c (dwarf2out_decl): Make static.
653 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
655 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
657 2014-08-26 David Malcolm <dmalcolm@redhat.com>
659 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
660 from rtx to rtx_insn *.
661 (cselib_lookup_from_insn): Likewise for final param.
662 (cselib_subst_to_values_from_insn): Likewise.
663 (cselib_add_permanent_equiv): Likewise.
665 * cselib.c (cselib_current_insn): Likewise for this variable.
666 (cselib_subst_to_values_from_insn): Likewise for param "insn".
667 (cselib_lookup_from_insn): Likewise.
668 (cselib_add_permanent_equiv): Likewise for param "insn" and local
669 "save_cselib_current_insn".
670 (cselib_process_insn): Replace use of NULL_RTX with NULL.
672 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
673 from rtx to rtx_insn *.
675 2014-08-26 David Malcolm <dmalcolm@redhat.com>
677 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
680 2014-08-26 David Malcolm <dmalcolm@redhat.com>
682 * df.h (df_dump_insn_problem_function): Strengthen first param of
683 this callback from const_rtx to const rtx_insn *.
684 (struct df_insn_info): Strengthen field "insn" from rtx to
686 (DF_REF_INSN): Eliminate this function, reinstating the older
688 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
689 (df_reg_defined): Likewise.
690 (df_find_use): Likewise.
691 (df_reg_used): Likewise.
692 (df_dump_insn_top): Strengthen param 1 from const_rtx to
694 (df_dump_insn_bottom): Likewise.
695 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
696 (df_insn_debug_regno): Likewise.
697 (debug_df_insn): Likewise.
698 (df_rd_simulate_one_insn): Likewise for param 2.
699 (df_word_lr_simulate_defs): Likewise for param 1.
700 (df_word_lr_simulate_uses): Likewise.
701 (df_md_simulate_one_insn): Likewise for param 2.
702 (df_simulate_find_noclobber_defs): Likewise for param 1.
703 (df_simulate_find_defs): Likewise.
704 (df_simulate_defs): Likewise.
705 (df_simulate_uses): Likewise.
706 (df_simulate_one_insn_backwards): Likewise for param 2.
707 (df_simulate_one_insn_forwards): Likewise.
708 (df_uses_create): Likewise for param 2.
709 (df_insn_create_insn_record): Likewise for param 1.
710 (df_insn_delete): Likewise.
711 (df_insn_rescan): Likewise.
712 (df_insn_rescan_debug_internal): Likewise.
713 (df_insn_change_bb): Likewise.
714 (df_notes_rescan): Likewise.
715 * rtl.h (remove_death): Likewise for param 2.
716 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
718 * sched-int.h (reemit_notes): Strengthen param from rtx to
720 * valtrack.h (propagate_for_debug): Likewise for param 1.
722 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
723 local "tmp_rtx" from const_rtx to const rtx_insn *.
724 * combine.c (remove_death): Strengthen param "insn" from rtx to
726 (move_deaths): Likewise for local "where_dead".
727 * cse.c (delete_trivially_dead_insns): Introduce local
728 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
729 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
731 (df_reg_defined): Likewise.
732 (df_find_use): Likewise.
733 (df_reg_used): Likewise.
734 (df_dump_insn_problem_data): Strengthen param "insn" from
735 const_rtx to const rtx_insn *.
736 (df_dump_insn_top): Likewise.
737 (df_dump_insn_bottom): Likewise.
738 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
739 (df_insn_debug_regno): Likewise.
740 (debug_df_insn): Likewise.
741 (DF_REF_INSN): Delete.
742 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
743 from rtx to rtx_insn *.
744 (df_chain_insn_top_dump): Strengthen param "insn" from
745 const_rtx to const rtx_insn *.
746 (df_chain_insn_bottom_dump): Likewise.
747 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
749 (df_word_lr_simulate_uses): Likewise.
750 (df_print_note): Likewise.
751 (df_remove_dead_and_unused_notes): Likewise.
752 (df_set_unused_notes_for_mw): Likewise.
753 (df_set_dead_notes_for_mw): Likewise.
754 (df_create_unused_note): Likewise.
755 (df_simulate_find_defs): Likewise.
756 (df_simulate_find_uses): Likewise.
757 (df_simulate_find_noclobber_defs): Likewise.
758 (df_simulate_defs): Likewise.
759 (df_simulate_uses): Likewise.
760 (df_simulate_one_insn_backwards): Likewise.
761 (df_simulate_one_insn_forwards): Likewise.
762 (df_md_simulate_one_insn): Likewise.
763 * df-scan.c (df_uses_create): Likewise.
764 (df_insn_create_insn_record): Likewise.
765 (df_insn_delete): Likewise.
766 (df_insn_rescan): Likewise.
767 (df_insn_rescan_debug_internal): Likewise.
768 (df_insn_change_bb): Likewise.
769 (df_notes_rescan): Likewise.
770 (df_refs_add_to_chains): Likewise.
771 (df_insn_refs_verify): Likewise.
772 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
773 when invoking df_insn_delete.
774 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
775 (set_unique_reg_note): Add checked cast.
776 * final.c (cleanup_subreg_operands): Likewise.
777 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
778 "insn" from rtx to rtx_insn *.
779 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
780 "last" from rtx to rtx_insn *.
781 * ira-emit.c (change_regs_in_insn): New function.
782 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
783 Invoke change_regs_in_insn rather than change_regs.
784 * ira.c (update_equiv_regs): Strengthen locals "insn",
785 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
786 for_each_rtx_in_insn rather than for_each_rtx.
787 * recog.c (confirm_change_group): Add checked casts.
788 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
790 (peep2_fill_buffer): Add checked cast.
791 * rtlanal.c (remove_note): Likewise.
792 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
793 locals "next" "end" from rtx to rtx_insn *.
795 2014-08-26 David Malcolm <dmalcolm@redhat.com>
797 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
799 (struct reg_use_data): Likewise for field "insn".
800 (insn_cost): Likewise for param.
801 (real_insn_for_shadow): Likewise for return type and param.
802 (increase_insn_priority): Likewise for param 1.
803 (debug_dependencies): Likewise for both params.
805 * haifa-sched.c (insn_delay): Likewise for param "insn".
806 (real_insn_for_shadow): Likewise for return type and param "insn".
807 (update_insn_after_change): Likewise for param "insn".
808 (recompute_todo_spec): Likewise for param "next" and locals "pro",
810 (insn_cost): Likewise for param "insn".
811 (increase_insn_priority): Likewise.
812 (calculate_reg_deaths): Likewise.
813 (setup_insn_reg_pressure_info): Likewise.
814 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
815 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
816 (model_recompute): Likewise.
817 (must_restore_pattern_p): Likewise for param "next".
818 (model_excess_cost): Likewise for param "insn".
819 (queue_remove): Likewise.
820 (adjust_priority): Likewise for param "prev".
821 (update_register_pressure): Likewise for param "insn".
822 (setup_insn_max_reg_pressure): Likewise for local "insn".
823 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
824 (model_add_to_schedule): Likewise.
825 (model_reset_queue_indices): Likewise for local "insn".
826 (unschedule_insns_until): Strengthen local "recompute_vec" from
827 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
828 "con" from rtx to rtx_insn *.
829 (restore_last_backtrack_point): Likewise for both locals "x". Add
831 (estimate_insn_tick): Likewise for param "insn".
832 (commit_schedule): Likewise for params "prev_head", "tail" and
834 (verify_shadows): Likewise for locals "i1", "i2".
835 (dump_insn_stream): Likewise for params "head", "tail" and locals
837 (schedule_block): Likewise for locals "insn", "x". Add a checked
839 (fix_inter_tick): Likewise for params "head", "tail".
840 (create_check_block_twin): Likewise for local "jump".
841 (haifa_change_pattern): Likewise for param "insn".
842 (haifa_speculate_insn): Likewise.
843 (dump_new_block_header): Likewise for params "head", "tail".
844 (fix_jump_move): Likewise for param "jump".
845 (move_block_after_check): Likewise.
846 (sched_init_insn_luid): Likewise for param "insn".
847 (sched_init_luids): Likewise for local "insn".
848 (insn_luid): Likewise for param "insn".
849 (init_h_i_d): Likewise.
850 (haifa_init_h_i_d): Likewise for local "insn".
851 (haifa_init_insn): Likewise for param "insn".
852 * sched-deps.c (add_dependence): Likewise for local "real_pro",
854 (create_insn_reg_use): Likewise for param "insn".
855 (setup_insn_reg_uses): Likewise. Add a checked cast.
856 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
857 "tail" from rtx to rtx_insn *.
858 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
861 2014-08-26 David Malcolm <dmalcolm@redhat.com>
863 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
864 from rtx to rtx_insn *.
865 (model_add_to_schedule): Likewise for locals "start", "end",
868 2014-08-26 David Malcolm <dmalcolm@redhat.com>
870 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
872 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
873 "to" and locals "insn", "next", "copy". Remove now-redundant
876 2014-08-26 David Malcolm <dmalcolm@redhat.com>
878 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
879 rtx_insn * and param 4 from rtx * to rtx_insn **.
880 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
881 param 2 from rtx * to rtx_insn **.
883 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
884 rtx_insn * and final param from rtx * to rtx_insn **.
886 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
887 from rtx to rtx_insn *.
888 (try_head_merge_bb): Likewise for both locals named "move_upto".
889 * df-problems.c (can_move_insns_across): Likewise for params
890 "from", "to", "across_from", "across_to" and locals "insn",
891 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
893 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
894 from rtx to rtx_insn *.
895 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
896 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
897 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
899 (noce_try_abs): Likewise.
900 (noce_get_condition): Likewise for param "jump". Strengthen param
901 "earliest" from rtx * to rtx_insn **.
902 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
904 (find_cond_trap): Likewise.
905 (dead_or_predicable): Likewise for local "earliest".
906 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
908 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
909 and local "prev". Strengthen param "earliest" from rtx * to
911 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
912 Strengthen param "earliest" from rtx * to rtx_insn **.
914 2014-08-26 David Malcolm <dmalcolm@redhat.com>
916 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
917 "to" and local "insn" from rtx to rtx_insn *.
919 2014-08-26 David Malcolm <dmalcolm@redhat.com>
921 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
922 from rtx to rtx_insn *.
923 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
924 (code_motion_path_driver): Likewise for local "last_insn".
925 (simplify_changed_insns): Likewise for local "insn".
927 2014-08-26 David Malcolm <dmalcolm@redhat.com>
929 * rtl.h (push_to_sequence): Strengthen param from rtx to
931 (push_to_sequence2): Likewise for both params.
932 (delete_insns_since): Likewise for param.
933 (reorder_insns_nobb): Likewise for all three params.
934 (set_new_first_and_last_insn): Likewise for both params.
936 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
937 rtx_insn *. Remove now-redundant cast.
938 (set_last_insn): Likewise.
940 * builtins.c (expand_builtin_return): Strengthen local
941 "call_fusage" from rtx to rtx_insn *.
942 * cfgrtl.c (create_basic_block_structure): Likewise for local
944 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
945 "first", "last" and local "insn".
946 (delete_insns_since): Likewise for param "from".
947 (reorder_insns_nobb): Likewise for params "from", "to", "after"
949 (push_to_sequence): Likewise for param "first" and local "last".
950 (push_to_sequence2): Likewise for params "first" and "last".
951 * lra.c (emit_add3_insn): Likewise for local "last".
952 (lra_emit_add): Likewise.
953 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
955 (process_address_1): Likewise for locals "insn", last".
956 * modulo-sched.c (ps_first_note): Likewise for return type.
957 * optabs.c (expand_binop_directly): Likewise for param "last".
959 2014-08-26 David Malcolm <dmalcolm@redhat.com>
961 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
963 * emit-rtl.c (get_last_insn_anywhere): Likewise.
965 2014-08-26 David Malcolm <dmalcolm@redhat.com>
967 * function.h (struct sequence_stack): Strengthen fields "first"
968 and "last" from rtx to rtx_insn *.
969 (struct emit_status): Likewise for fields "x_first_insn" and
972 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
973 (set_first_insn): Add checked cast.
974 (get_last_insn): Remove now-redundant checked cast.
975 (set_last_insn): Add checked cast.
977 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
978 "saved_first" and "saved_last" from rtx to rtx_insn *.
980 2014-08-26 David Malcolm <dmalcolm@redhat.com>
982 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
983 (unlink_insn_chain): Strengthen both params from rtx to
986 * cfgrtl.c (cfg_layout_function_header): Likewise for this
988 (unlink_insn_chain): Likewise for params "first" and "last".
989 Remove now-redundant checked cast.
990 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
991 (fixup_reorder_chain): Strengthen local "insn" from rtx to
993 * emit-rtl.c (link_insn_into_chain): Likewise for all three
995 (add_insn): Likewise for param "insn" and local "prev".
996 (add_insn_after_nobb): Likewise for both params and local "next".
997 (add_insn_before_nobb): Likewise for both params and local "prev".
998 (add_insn_after): Rename param "after" to "uncast_after",
999 introducing local "after" with another checked cast.
1000 (add_insn_before): Rename params "insn" and "before", giving them
1001 "uncast_" prefixes, adding the old names back using checked casts.
1002 (emit_note_after): Likewise for param "after".
1003 (emit_note_before): Likewise for param "before".
1004 (emit_label): Add a checked cast.
1006 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1008 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1009 "insn" from rtx to rtx_insn *.
1011 * cselib.c (cselib_record_sets_hook): Likewise.
1013 * var-tracking.c (add_with_sets): Likewise, renaming back from
1014 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1017 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1019 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1020 and "header_" from rtx to rtx_insn *.
1021 (struct basic_block_d): Likewise for field "head_" within "x"
1022 field of union basic_block_il_dependent.
1023 (BB_HEAD): Drop function...
1024 (SET_BB_HEAD): ...and this function in favor of...
1025 (BB_HEAD): ...reinstate macro.
1026 (BB_END): Drop function...
1027 (SET_BB_END): ...and this function in favor of...
1028 (BB_END): ...reinstate macro.
1029 (BB_HEADER): Drop function...
1030 (SET_BB_HEADER): ...and this function in favor of...
1031 (BB_HEADER): ...reinstate macro.
1033 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1034 (fix_crossing_unconditional_branches): Likewise.
1035 * caller-save.c (save_call_clobbered_regs): Likewise.
1036 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1037 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1038 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1039 (merge_blocks_move_successor_nojumps): Likewise.
1040 (outgoing_edges_match): Update use of for_each_rtx to
1041 for_each_rtx_in_insn.
1042 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1043 (expand_gimple_cond): Likewise.
1044 (expand_gimple_tailcall): Likewise.
1045 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1047 (construct_exit_block): Drop use of SET_BB_END.
1048 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1050 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1051 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1052 SET_BB_HEAD and SET_BB_END.
1053 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1055 (rtl_delete_block): Drop use of SET_BB_HEAD.
1056 (rtl_split_block): Drop use of SET_BB_END.
1057 (emit_nop_for_unique_locus_between): Likewise.
1058 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1059 (block_label): Drop use of SET_BB_HEAD.
1060 (fixup_abnormal_edges): Drop use of SET_BB_END.
1061 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1062 (relink_block_chain): Likewise.
1063 (fixup_reorder_chain): Drop use of SET_BB_END.
1064 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1065 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1066 rtx_insn **. Drop use of SET_BB_HEADER.
1067 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1069 (BB_HEAD): Delete this function.
1070 (SET_BB_HEAD): Likewise.
1072 (SET_BB_END): Likewise.
1073 (BB_HEADER): Likewise.
1074 (SET_BB_HEADER): Likewise.
1075 * emit-rtl.c (add_insn_after): Rename param "insn" to
1076 "uncast_insn", adding a new local "insn" and a checked cast to
1077 rtx_insn *. Drop use of SET_BB_END.
1078 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1079 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1080 (reorder_insns): Drop use of SET_BB_END.
1081 (emit_insn_after_1): Strengthen param "first" and locals "last",
1082 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1083 (emit_pattern_after_noloc): Add checked cast.
1084 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1085 (restore_other_notes): Likewise.
1086 (move_insn): Likewise.
1087 (sched_extend_bb): Likewise.
1088 (fix_jump_move): Likewise.
1089 * ifcvt.c (noce_process_if_block): Likewise.
1090 (dead_or_predicable): Likewise.
1091 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1092 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1093 * sel-sched-ir.c (sel_move_insn): Likewise.
1094 * sel-sched.c (move_nop_to_previous_block): Likewise.
1096 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1098 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1100 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1102 * basic-block.h (create_basic_block_structure): Strengthen params
1103 1 "head" and 2 "end" from rtx to rtx_insn *.
1104 * cfgrtl.c (create_basic_block_structure): Likewise.
1105 (rtl_create_basic_block): Update casts from void * to rtx to
1106 rtx_insn *, so that we can pass them as rtx_insn * to
1107 create_basic_block_structure.
1108 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1110 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1112 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1114 (check_for_inc_dec): Strengthen param "insn" from rtx to
1117 * cselib.h (cselib_process_insn): Likewise.
1119 * cselib.c (cselib_record_sets): Likewise.
1120 (cselib_process_insn): Likewise.
1122 * dse.c (struct insn_info): Likewise for field "insn".
1123 (check_for_inc_dec_1): Likewise for local "insn".
1124 (check_for_inc_dec): Likewise for param "insn".
1125 (scan_insn): Likewise.
1126 (dse_step1): Likewise for local "insn".
1128 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1129 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1133 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1134 from rtx to rtx_insn *.
1135 (DEP_PRO): Delete this function and...
1136 (SET_DEP_PRO): ...this function in favor of...
1137 (DEP_PRO): ...reinstate this macro.
1138 (DEP_CON): Delete this function and...
1139 (SET_DEP_CON): ...this function in favor of...
1140 (DEP_CON): ...reinstate this old macro.
1141 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1142 (init_dep): Likewise.
1143 (set_priorities): Likewise for both params.
1144 (sd_copy_back_deps): Likewise for params 1 and 2.
1146 * haifa-sched.c (priority): Likewise for param "insn" and local
1148 (set_priorities): Likewise for params "head" and "tail" and local
1150 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1152 (add_to_speculative_block): Add a checked cast.
1153 (create_check_block_twin): Drop use of SET_DEP_CON.
1154 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1157 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1158 Drop use of SET_DEP_PRO
1159 (init_dep): Strengthen params "pro" and "con" from rtx to
1161 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1165 (SET_DEP_PRO): Delete.
1166 (SET_DEP_CON): Delete.
1168 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1170 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1171 from rtx to rtx_insn *.
1172 (VINSN_INSN_RTX): Eliminate rvalue function and...
1173 (SET_VINSN_INSN): ...lvalue function in favor of...
1174 (VINSN_INSN_RTX): reinstate this old macro.
1176 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1177 in favor of VINSN_INSN_RTX.
1178 (VINSN_INSN_RTX): Delete this function.
1179 (SET_VINSN_INSN_RTX): Likewise.
1181 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1183 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1184 (BND_TO): Delete this function and...
1185 (SET_BND_TO): ...this functions in favor of...
1186 (BND_TO): ...reinstating this macro.
1187 (struct _fence): Strengthen field "executing_insns" from
1188 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1189 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1190 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1191 and param "insn" from rtx to insn_t.
1192 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1195 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1197 (rtx_vec_t): Likewise.
1198 (struct sched_deps_info_def): Strengthen param of "start_insn"
1199 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1200 "note_mem_dep" callback and first param of "note_dep" callback.
1202 * haifa-sched.c (add_to_speculative_block): Strengthen param
1203 "insn" from rtx to rtx_insn *.
1204 (clear_priorities): Likewise.
1205 (calc_priorities): Likewise for local "insn".
1207 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1208 Remove redundant checked cast.
1209 (haifa_note_mem_dep): Likewise for param "pending_insn".
1210 (haifa_note_dep): Likewise for param "elem".
1211 (note_mem_dep): Likewise for param "e".
1212 (sched_analyze_1): Add checked casts.
1213 (sched_analyze_2): Likewise.
1215 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1216 from rtx to rtx_insn *.
1217 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1218 from vec<rtx> * to vec<rtx_insn *> *.
1220 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1222 (flist_add): Strengthen param "executing_insns" from
1223 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1224 (advance_deps_context): Remove now-redundant checked cast.
1225 (init_fences): Replace uses of NULL_RTX with NULL.
1226 (merge_fences): Strengthen params "last_scheduled_insn" and
1227 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1228 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1229 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1230 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1231 an instruction, rather than doing double-duty as a pattern.
1232 (return_nop_to_pool): Update for change of insn_t.
1233 (deps_init_id): Remove now-redundant checked cast.
1234 (struct sched_scan_info_def): Strengthen param of "init_insn"
1235 callback from rtx to insn_t.
1236 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1237 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1239 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1240 "end" from rtx to rtx_insn *.
1241 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1242 (rtx insn_rtx, bool force_unique_p)
1243 (BND_TO): Delete function.
1244 (SET_BND_TO): Delete function.
1246 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1248 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1249 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1251 (undo_transformations): Likewise for param "insn".
1252 (update_liveness_on_insn): Likewise.
1253 (compute_live_below_insn): Likewise for param "insn" and local
1255 (update_data_sets): Likewise for param "insn".
1256 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1257 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1258 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1260 (move_cond_jump): Likewise for param "insn".
1261 (move_cond_jump): Drop use of SET_BND_TO.
1262 (compute_av_set_on_boundaries): Likewise.
1263 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1264 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1265 from rtx to rtx_insn *.
1266 (maybe_emit_renaming_copy): Likewise for param "insn".
1267 (maybe_emit_speculative_check): Likewise.
1268 (handle_emitting_transformations): Likewise.
1269 (remove_insn_from_stream): Likewise.
1270 (code_motion_process_successors): Strengthen local "succ" from rtx
1273 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1275 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1276 ilist_t, not _xlist_t;
1277 (ILIST_INSN): Define in terms of new union field "insn".
1278 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1280 (struct _list_node): Add new field "insn" to the union, of type
1282 (ilist_add): Replace macro with an inline function, requiring an
1284 (ilist_remove): Define this macro directly in terms of
1285 _list_remove, rather than indirectly via _xlist_remove.
1286 (ilist_clear): Likewise, in terms of _list_clear rather than
1288 (ilist_is_in_p): Replace macro with an inline function, requiring
1290 (_list_iter_cond_insn): New function.
1291 (ilist_iter_remove): Define this macro directly in terms of
1292 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1293 (ilist_iterator): Define directly in terms of _list_iterator
1294 rather than indirectly through _xlist_iterator.
1295 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1296 than in terms of _FOR_EACH_X.
1297 (FOR_EACH_INSN_1): Likewise.
1299 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1303 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1304 DECL_HARD_REGISTER and return for invalid register specifications.
1305 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1306 DECL_HARD_REGISTER, call expand_one_error_var.
1307 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1308 CC_REGNUM with non-MODE_CC modes.
1309 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1311 2014-08-26 Marek Polacek <polacek@redhat.com>
1314 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1316 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1318 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1319 qi cost; add di cost.
1320 (cortexa57_addrcost_table): Likewise.
1322 2014-08-26 Marek Polacek <polacek@redhat.com>
1325 * expr.c (is_aligning_offset): Remove logical not.
1327 2014-08-26 Marek Polacek <polacek@redhat.com>
1330 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1331 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1333 2014-08-26 Richard Biener <rguenther@suse.de>
1335 PR tree-optimization/62175
1336 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1337 expand possibly trapping operations.
1339 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1341 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1342 "insn" from rtx to rtx_insn *.
1343 (permute_load): Likewise for param "insn".
1344 (permute_store): Likewise.
1345 (handle_special_swappables): Likewise for local "insn".
1346 (replace_swap_with_copy): Likewise for locals "insn" and
1348 (rs6000_analyze_swaps): Likewise for local "insn".
1350 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1352 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1355 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1357 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1358 "note_list" from rtx to rtx_insn *.
1359 (BB_NOTE_LIST): Replace this function and...
1360 (SET_BB_NOTE_LIST): ...this function with...
1361 (BB_NOTE_LIST): ...the former macro implementation.
1363 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1364 local "from_start" from rtx to rtx_insn *. Strengthen param
1365 "to_endp" from rtx * to rtx_insn **.
1367 * haifa-sched.c (concat_note_lists): Likewise.
1368 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1370 (sel_restore_notes): Likewise.
1371 (move_bb_info): Likewise.
1372 (BB_NOTE_LIST): Delete this function.
1373 (SET_BB_NOTE_LIST): Delete this function.
1374 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1375 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1377 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1379 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1380 from rtx * to rtx_insn **.
1381 (reorder2): Likewise.
1382 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1383 from rtx to rtx_insn *.
1385 * doc/tm.texi: Update mechanically for above change to target.def.
1387 * sched-int.h (note_list): Strengthen this variable from rtx to
1389 (remove_notes): Likewise for both params.
1390 (restore_other_notes): Likewise for return type and first param.
1391 (struct ready_list): Strengthen field "vec" from rtx * to
1393 (struct dep_replacement): Strenghten field "insn" from rtx to
1395 (struct deps_desc): Likewise for fields "last_debug_insn",
1397 (struct haifa_sched_info): Likewise for callback field
1398 "can_schedule_ready_p"'s param, for first param of "new_ready"
1399 callback field, for both params of "rank" callback field, for
1400 first field of "print_insn" callback field (with a const), for
1401 both params of "contributes_to_priority" callback, for param
1402 of "insn_finishes_block_p" callback, for fields "prev_head",
1403 "next_tail", "head", "tail", for first param of "add_remove_insn"
1404 callback, for first param of "begin_schedule_ready" callback, for
1405 both params of "begin_move_insn" callback, and for second param
1406 of "advance_target_bb" callback.
1407 (add_dependence): Likewise for params 1 and 2.
1408 (sched_analyze): Likewise for params 2 and 3.
1409 (deps_analyze_insn): Likewise for param 2.
1410 (ready_element): Likewise for return type.
1411 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1412 (try_ready): Strenghten param from rtx to rtx_insn *.
1413 (sched_emit_insn): Likewise for return type.
1414 (record_delay_slot_pair): Likewise for params 1 and 2.
1415 (add_delay_dependencies): Likewise for param.
1416 (contributes_to_priority): Likewise for both params.
1417 (find_modifiable_mems): Likewise.
1419 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1420 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1421 "first_older_only_insn" from rtx to rtx_insn *.
1422 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1425 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1426 "last_scheduled_iter0" from rtx to rtx_insn *.
1427 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1428 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1429 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1430 "insn" from rtx to rtx_insn *.
1431 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1433 (c6x_sched_reorder2): Strengthen param "ready" and locals
1434 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1435 "insn" from rtx to rtx_insn *.
1436 (c6x_variable_issue): Add a checked cast when assigning from insn
1437 to ss.last_scheduled_iter0.
1438 (split_delayed_branch): Strengthen param "insn" and local "i1"
1439 from rtx to rtx_insn *.
1440 (split_delayed_nonbranch): Likewise.
1441 (undo_split_delayed_nonbranch): Likewise for local "insn".
1442 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1443 "entry_after", "end_packet", "head_insn", "tail_insn",
1444 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1445 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1446 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1447 but add a checked cast on loop->start_label. Consolidate calls to
1448 avoid assigning result of gen_spkernel to "insn", now an
1451 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1452 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1454 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1455 rtx_insn **. Strengthen locals "top", "next" from rtx to
1457 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1458 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1459 (add_parameter_dependencies): Strengthen params "call", "head" and
1460 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1461 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1462 (add_dependee_for_func_arg): Likewise for param "arg" and local
1464 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1465 "tail" and locals "insn", "first_arg".
1467 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1468 for params "head", "tail" and locals "insn", "next", "next_tail".
1469 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1470 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1471 "insn", "lowest", "highest" from rtx to rtx_insn *.
1472 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1474 (ia64_sched_reorder2): Likewise.
1476 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1477 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1478 from rtx * to rtx_insn **.
1479 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1481 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1483 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1484 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1487 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1488 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1490 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1491 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1492 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1494 (vr4130_reorder): Likewise.
1495 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1497 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1499 (mips_sched_reorder): Likewise.
1500 (mips_sched_reorder2): Likewise.
1502 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1504 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1505 Strengthen local "tmp" from rtx to rtx_insn *.
1506 (rs6000_sched_reorder2): Likewise.
1508 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1509 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1510 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1511 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1513 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1514 "tmp2" from rtx to rtx_insn *.
1515 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1516 Strengthen local "insn" from rtx to rtx_insn *.
1517 (ready_reorder): Strengthen param "ready" from rtx * to
1518 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1519 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1520 (sh_reorder2): Likewise.
1522 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1523 local "insn" from rtx to rtx_insn *.
1525 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1527 (scheduled_insns): Strengthen this variable from vec<rtx> to
1529 (set_modulo_params): Likewise for locals "i1", "i2".
1530 (record_delay_slot_pair): Likewise for params "i1", "i2".
1531 (add_delay_dependencies): Likewise for param "insn".
1532 (cond_clobbered_p): Likewise.
1533 (recompute_todo_spec): Likewise for local "prev".
1534 (last_scheduled_insn): Likewise for this variable.
1535 (nonscheduled_insns_begin): Likewise.
1536 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1538 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1540 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1541 Strengthen local "insn" from rtx to rtx_insn *.
1542 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1543 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1544 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1545 (ready_remove_first): Likewise for return type and local "t".
1546 (ready_element): Likewise for return type.
1547 (ready_remove): Likewise for return type and local "t".
1548 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1549 (check_clobbered_conditions): Strengthen local "x" from rtx to
1550 rtx_insn *, adding a checked cast.
1551 (schedule_insn): Likewise for param "insn".
1552 (remove_notes): Likewise for params "head", "tail" and locals
1553 "next_tail", "insn", "next".
1554 (struct haifa_saved_data): Likewise for fields
1555 "last_scheduled_insn", "nonscheduled_insns_begin".
1556 (save_backtrack_point): Update for change to field "vec" of
1558 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1560 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1561 from rtx to rtx_insn *
1562 (resolve_dependencies): Strengthen param "insn" from rtx to
1564 (restore_other_notes): Likewise for return type, for param "head"
1565 and local "note_head".
1566 (undo_all_replacements): Likewise for local "insn".
1567 (first_nonscheduled_insn): Likewise for return type and local "insn".
1568 (queue_to_ready): Likewise for local "insn", adding checked casts.
1569 (early_queue_to_ready): Likewise for local "insn".
1570 (debug_ready_list_1): Strengthen local "p" from rtx * to
1572 (move_insn): Strengthen param "insn" and local "note" from rtx to
1574 (insn_finishes_cycle_p): Likewise for param "insn".
1575 (max_issue): Likewise for local "insn".
1576 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1578 (commit_schedule): Strengthen param "prev_head" and local "insn"
1579 from rtx to rtx_insn *
1580 (prune_ready_list): Likewise for local "insn".
1581 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1582 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1583 (set_priorities): Likewise for local "prev_head".
1584 (try_ready): Likewise for param "next".
1585 (fix_tick_ready): Likewise.
1586 (change_queue_index): Likewise.
1587 (sched_extend_ready_list): Update for change to field "vec" of
1589 (generate_recovery_code): Strengthen param "insn" from rtx to
1591 (begin_speculative_block): Likewise.
1592 (create_check_block_twin): Likewise for param "insn" and locals
1593 "label", "check", "twin". Introduce local "check_pat" to avoid
1594 "check" being used as a plain rtx before being used as an insn.
1595 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1596 extracting elements from ready_list.
1597 (sched_remove_insn): Strengthen param "insn" from rtx to
1599 (sched_emit_insn): Likewise for return type.
1600 (ready_remove_first_dispatch): Likewise for return type and local
1603 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1605 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1608 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1609 from rtx to rtx_insn *.
1610 (add_dependence_list): Likewise for param "insn". Add a checked
1612 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1613 to rtx_insn *. Strengthen param "list_p" from rtx * to
1615 (chain_to_prev_insn): Strengthen param "insn" and locals
1616 "prec_nonnote", "i" from rtx to rtx_insn *.
1617 (flush_pending_lists): Likewise for param "insn".
1618 (cur_insn): Likewise for this variable.
1619 (haifa_start_insn): Add a checked cast.
1620 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1621 (sched_analyze_reg): Likewise for param "insn".
1622 (sched_analyze_1): Likewise.
1623 (sched_analyze_2): Likewise. Add checked casts.
1624 (sched_analyze_insn): Likewise. Also for local "prev".
1625 (deps_analyze_insn): Likewise for param "insn".
1626 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1627 (add_dependence_1): Likewise for params "insn", "elem".
1628 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1629 (parse_add_or_inc): Likewise for param "insn".
1630 (find_inc): Likewise for local "inc_cand".
1631 (find_modifiable_mems): Likewise for params "head", "tail" and
1632 locals "insn", "next_tail".
1634 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1635 (begin_schedule_ready): Likewise for param "insn".
1636 (begin_move_insn): Likewise for params "insn" and "last".
1637 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1639 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1640 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1641 (ebb_add_remove_insn): Likewise for param "insn".
1642 (advance_target_bb): Likewise.
1644 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1646 (check_live): Likewise for param "insn".
1647 (init_ready_list): Likewise for local "insn".
1648 (can_schedule_ready_p): Likewise for param "insn".
1649 (begin_schedule_ready): Likewise.
1650 (new_ready): Likewise for param "next".
1651 (rgn_print_insn): Likewise for param "insn".
1652 (rgn_rank): Likewise for params "insn1", "insn2".
1653 (contributes_to_priority): Likewise for params "next", "insn".
1654 (rgn_insn_finishes_block_p): Likewise for param "insn".
1655 (add_branch_dependences): Likewise for params "head", "tail" and
1656 locals "insn", "last".
1657 (rgn_add_remove_insn): Likewise for param "insn".
1658 (advance_target_bb): Likewise.
1660 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1661 const_rtx to const rtx_insn *.
1663 * sel-sched-dump.h (sel_print_insn): Likewise.
1665 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1666 (deps_init_id): Likewise.
1668 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1669 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1672 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1674 * output.h (final_start_function): Strengthen param 1 from rtx to
1677 * final.c (final_start_function): Likewise, renaming back from
1678 "uncast_first" to "first", and dropping the checked cast from rtx
1681 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1683 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1684 * final.c (final): Likewise. Rename param back from
1685 "uncast_first" to "first" and eliminate the checked cast from rtx
1688 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1690 * output.h (shorten_branches): Strengthen param from rtx to
1693 * final.c (shorten_branches): Likewise, renaming param back from
1694 "uncast_first" to "first", and dropping the checked cast from rtx
1697 * genattr.c (gen_attr): Likewise when writing out the prototype of
1700 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1702 * sched-int.h (struct haifa_sched_info): Strengthen fields
1703 "prev_head" and "next_tail" from rtx to rtx_insn *.
1705 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1707 * rtl.h (rtx_jump_table_data::get_labels): New method.
1708 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1709 with use of the new rtx_jump_table_data::get_labels method.
1710 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1711 to rtx_jump_table_data *. Simplify by using get_labels method.
1712 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1713 a dyn_cast, introducing local "table", using it to replace
1714 label-lookup logic with a get_labels method call.
1715 (patch_jump_insn): Simplify using get_labels method.
1716 * dwarf2cfi.c (create_trace_edges): Likewise.
1717 * rtlanal.c (label_is_jump_target_p): Likewise.
1719 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1721 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1724 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1725 (unshare_all_rtl_again): Likewise, also for local "p".
1727 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1729 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1731 * cfgrtl.c (delete_insn_and_edges): Likewise.
1733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1735 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1736 from rtx to rtx_insn *.
1738 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1740 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1742 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1743 locals "returnjump", "epilogue_end", "insn", "next".
1745 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1746 "returnjump" from rtx * to rtx_insn **.
1747 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1749 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1751 * basic-block.h (struct edge_def). Strengthen "r" within
1752 union edge_def_insns from rtx to rtx_insn *.
1754 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1755 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1757 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1758 from rtx to rtx_insn *.
1759 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1761 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1762 (reg_used_on_edge): Likewise.
1763 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1764 (gt_pch_nx): New overload for rtx_insn *&.
1765 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1766 from rtx to rtx_insn *.
1768 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1770 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1771 from rtx to rtx_insn *.
1772 (BB_FOOTER): Replace function with access macro.
1773 (SET_BB_FOOTER): Delete.
1775 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1777 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1778 (emit_barrier_after_bb): Likewise.
1779 (record_effective_endpoints): Likewise.
1780 (relink_block_chain): Likewise.
1781 (fixup_fallthru_exit_predecessor): Likewise.
1782 (cfg_layout_duplicate_bb): Likewise.
1783 (cfg_layout_split_block): Likewise.
1784 (cfg_layout_delete_block): Likewise.
1785 (cfg_layout_merge_blocks): Likewise.
1786 (BB_FOOTER): Delete function.
1787 (SET_BB_FOOTER): Delete function.
1788 * combine.c (update_cfg_for_uncondjump): Replace uses of
1789 SET_BB_FOOTER with BB_FOOTER.
1791 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1793 * except.h (struct eh_landing_pad_d): Strengthen field
1794 "landing_pad" from rtx to rtx_code_label *.
1796 * except.c (sjlj_emit_dispatch_table): Likewise for param
1798 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1800 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1802 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1803 first param from rtx to rtx_insn *.
1804 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1805 field "set_frame_ptr_insn".
1806 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1807 "csend" from rtx to rtx_code_label *.
1808 (xtensa_expand_atomic): Likewise for local "csloop".
1809 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1811 (xtensa_call_tls_desc): Likewise for return type and locals
1812 "call_insn", "insns".
1813 (xtensa_legitimize_tls_address): Likewise for local "insns".
1814 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1818 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1819 first param from rtx to rtx_insn *.
1820 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1823 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1825 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1826 Strengthen param 1 from rtx to rtx_insn *.
1827 (tilepro_output_cbranch): Likewise.
1828 (tilepro_adjust_insn_length): Likewise.
1829 (tilepro_final_prescan_insn): Likewise for sole param.
1831 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1832 Likewise for local "last".
1833 (cbranch_predicted_p): Likewise for param "insn".
1834 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1835 (tilepro_output_cbranch_with_opcode): Likewise.
1836 (tilepro_output_cbranch): Likewise.
1837 (frame_emit_load): Likewise for return type and locals "seq",
1839 (emit_sp_adjust): Likewise for return type and local "insn".
1840 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1842 (tilepro_adjust_insn_length): Likewise for param "insn".
1843 (next_insn_to_bundle): Likewise for return type and params
1845 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1846 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1848 (match_addli_pcrel): Likewise for param "insn".
1849 (replace_addli_pcrel): Likewise.
1850 (match_auli_pcrel): Likewise.
1851 (replace_auli_pcrel): Likewise.
1852 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1854 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1855 "queue", "next_queue", "prev".
1856 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1857 (tilepro_final_prescan_insn): Likewise for param "insn".
1859 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1861 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1862 Strengthen param 1 from rtx to rtx_insn *.
1863 (tilegx_output_cbranch): Likewise.
1864 (tilegx_adjust_insn_length): Likewise.
1865 (tilegx_final_prescan_insn): Likewise for sole param.
1867 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1869 (cbranch_predicted_p): Likewise for param "insn".
1870 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1871 (tilegx_output_cbranch_with_opcode): Likewise.
1872 (tilegx_output_cbranch): Likewise.
1873 (frame_emit_load): Likewise for return type.
1874 (set_frame_related_p): Likewise for locals "seq", "insn".
1875 (emit_sp_adjust): Likewise for return type, and for local "insn".
1876 Introduce local "pat" for use in place of "insn" where the latter
1877 isn't an instruction.
1878 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1879 from rtx to rtx_insn *.
1880 (tilegx_adjust_insn_length): Likewise for param "insn".
1881 (next_insn_to_bundle): Likewise for return type and params "r" and
1883 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
1885 (replace_insns): Likewise for params "old_insn", "new_insns".
1886 (replace_mov_pcrel_step1): Likewise for param "insn" and local
1888 (replace_mov_pcrel_step2): Likewise.
1889 (replace_mov_pcrel_step3): Likewise.
1890 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
1892 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1893 "queue", "next_queue", "prev".
1894 (tilegx_output_mi_thunk): Likewise for local "insn".
1895 (tilegx_final_prescan_insn): Likewise for param "insn".
1897 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1899 * config/spu/spu.c (frame_emit_store): Strengthen return type from
1901 (frame_emit_load): Likewise.
1902 (frame_emit_add_imm): Likewise, also for local "insn".
1903 (spu_expand_prologue): Likewise for local "insn".
1904 (struct spu_bb_info): Likewise for field "prop_jump".
1905 (emit_nop_for_insn): Likewise for param "insn" and local
1907 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
1909 (spu_emit_branch_hint): Likewise for params "before", "branch" and
1910 locals "hint", "insn".
1911 (get_branch_target): Likewise for param "branch".
1912 (insn_clobbers_hbr): Likewise for param "insn".
1913 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
1914 locals "insn", "before_4", "before_16".
1915 (insert_hbrp): Likewise for local "insn".
1916 (spu_machine_dependent_reorg): Likewise for locals "branch",
1917 "insn", "next", "bbend".
1918 (uses_ls_unit): Likewise for param "insn".
1919 (get_pipe): Likewise.
1920 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
1921 introducing a checked cast.
1922 (spu_sched_adjust_cost): Likewise for params "insn" and
1924 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
1925 (spu_sms_res_mii): Likewise.
1927 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1929 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
1930 from rtx to rtx_insn *.
1931 (output_cbranch): Likewise for param 6.
1932 (output_return): Likewise for param 1.
1933 (output_sibcall): Likewise.
1934 (output_v8plus_shift): Likewise.
1935 (output_v8plus_mult): Likewise.
1936 (output_v9branch): Likewise for param 7.
1937 (output_cbcond): Likewise for param 3.
1939 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
1941 (sparc_legitimize_pic_address): Likewise.
1942 (sparc_emit_call_insn): Likewise.
1943 (emit_save_or_restore_regs): Likewise.
1944 (emit_window_save): Likewise for return type and local "insn".
1945 (sparc_expand_prologue): Likewise for local "insn".
1946 (sparc_flat_expand_prologue): Likewise.
1947 (output_return): Likewise for param "insn".
1948 (output_sibcall): Likewise for param "insn" and local "delay".
1949 (output_ubranch): Likewise for param "insn".
1950 (output_cbranch): Likewise.
1951 (output_cbcond): Likewise.
1952 (output_v9branch): Likewise.
1953 (output_v8plus_shift): Likewise.
1954 (sparc_output_mi_thunk): Likewise for local "insn".
1955 (get_some_local_dynamic_name): Likewise.
1956 (output_v8plus_mult): Likewise for param "insn".
1958 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1960 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
1961 from rtx to rtx_insn *.
1962 (output_branchy_insn): Likewise for param 3.
1963 (output_far_jump): Likewise for param 1.
1964 (final_prescan_insn): Likewise.
1965 (sh_insn_length_adjustment): Likewise for sole param.
1967 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
1968 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
1970 (sh_emit_compare_and_set): Likewise for local "lab".
1971 (output_far_jump): Strengthen param "insn" and local "prev" from
1973 (output_branchy_insn): Likewise for param "insn" and local
1975 (output_ieee_ccmpeq): Likewise for param "insn".
1976 (struct label_ref_list_d): Strengthen field "label" from rtx to
1978 (pool_node): Likewise.
1979 (pool_window_label): Likewise for this global.
1980 (add_constant): Likewise for return type and locals "lab", "new_rtx".
1981 (dump_table): Strengthen params "start", "barrier" and local
1982 "scan" from rtx to rtx_insn *.
1983 (broken_move): Likewise for param "insn".
1984 (untangle_mova): Likewise for params "first_mova" and "new_mova".
1985 Strengthen param "first_mova" from rtx * to rtx_insn **.
1986 (mova_p): Likewise for param "insn".
1987 (fixup_mova): Likewise for param "mova".
1988 (find_barrier): Likewise for return type, params "mova" and
1989 "from", and locals "barrier_before_mova", "found_barrier",
1990 "good_barrier", "orig", "last_symoff", "next". Strengthen local
1991 "label" from rtx to rtx_code_label *.
1992 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
1994 (sh_reorg): Likewise for locals "link", "scan", "barrier".
1995 (split_branches): Likewise for param "first" and local "insn".
1996 (final_prescan_insn): Likewise for param "insn".
1997 (sequence_insn_p): Likewise for locals "prev", "next".
1998 (sh_insn_length_adjustment): Likewise for param "insn".
1999 (sh_can_redirect_branch): Likewise for local "insn".
2000 (find_r0_life_regions): Likewise for locals "end", "insn".
2001 (sh_output_mi_thunk): Likewise for local "insns".
2003 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2005 * config/score/score.c (score_output_mi_thunk): Strengthen local
2006 "insn" from rtx to rtx_insn *.
2007 (score_prologue): Likewise.
2009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2011 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2012 1 from rtx to rtx_insn *.
2013 (s390_emit_jump): Likewise for return type.
2014 (s390_emit_call): Likewise.
2015 (s390_load_got): Likewise.
2017 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2019 (s390_match_ccmode): Likewise for param "insn".
2020 (s390_emit_jump): Likewise for return type.
2021 (s390_split_branches): Likewise for local "label".
2022 (struct constant): Strengthen field "label" from rtx to
2024 (struct constant_pool): Likewise for field "label". Strengthen
2025 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2027 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2029 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2030 (s390_end_pool): Likewise.
2031 (s390_dump_pool): Likewise for local "insn".
2032 (s390_mainpool_start): Likewise.
2033 (s390_chunkify_start): Likewise.
2034 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2035 with insns. Strengthen locals "label", "jump", "barrier", "next",
2036 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2037 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2039 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2040 "jump", "label", "next_insn".
2041 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2042 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2044 (s390_load_got): Likewise for return type and local "insns".
2045 (s390_save_gprs_to_fprs): Likewise for local "insn".
2046 (s390_restore_gprs_from_fprs): Likewise.
2047 (pass_s390_early_mach::execute): Likewise.
2048 (s390_emit_prologue): Likewise for local "insns".
2049 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2051 (s390_emit_call): Strengthen return type and local "insn" from
2053 (s390_emit_tpf_eh_return): Likewise for local "insn".
2054 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2055 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2056 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2058 (s390_non_addr_reg_read_p): Likewise for param "insn".
2059 (find_cond_jump): Likewise for return type and param "insn".
2060 (s390_swap_cmp): Likewise for param "insn".
2061 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2062 "prev_insn", "next_insn".
2063 (s390_reorg): Likewise for locals "insn", "target".
2064 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2065 (s390_sched_variable_issue): For now, rename param "insn" to
2066 "uncast_insn", introducing a checked cast.
2067 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2069 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2070 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2072 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2074 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2075 param from rtx to rtx_insn *.
2076 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2078 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2080 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2081 4 from rtx to rtx_insn *.
2082 (rs6000_final_prescan_insn): Likewise for first param.
2083 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2085 (rs6000_get_some_local_dynamic_name): Likewise.
2086 (output_cbranch): Likewise for param "insn".
2087 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2088 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2089 (rs6000_emit_allocate_stack): Likewise for local "insn".
2090 (load_cr_save): Likewise.
2091 (restore_saved_cr): Likewise.
2092 (restore_saved_lr): Likewise.
2093 (emit_cfa_restores): Likewise.
2094 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2095 "deleted_debug_label".
2096 (rs6000_output_mi_thunk): Likewise for local "insn".
2097 (rs6000_final_prescan_insn): Likewise for param "insn".
2099 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2101 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2102 Strengthen param "insn" from rtx to rtx_insn *.
2103 * config/picochip/picochip.c (picochip_current_prescan_insn):
2104 Likewise for this variable.
2105 (picochip_final_prescan_insn): Likewise for param "insn".
2107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2109 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2110 from rtx to rtx_insn *.
2111 (pa_output_indirect_call): Likewise.
2112 (pa_adjust_insn_length): Likewise.
2113 (pa_attr_length_millicode_call): Likewise.
2114 (pa_attr_length_call): Likewise.
2115 (pa_attr_length_indirect_call): Likewise.
2117 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2119 (pa_attr_length_millicode_call): Likewise.
2120 (pa_attr_length_call): Likewise.
2121 (pa_output_call): Likewise.
2122 (pa_attr_length_indirect_call): Likewise.
2123 (pa_output_indirect_call): Likewise.
2125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2127 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2128 Strengthen first param from rtx to rtx_insn *.
2129 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2132 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2134 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2135 type from rtx to rtx_insn *.
2136 (mips_expand_call): Likewise.
2137 (mips_adjust_insn_length): Likewise for first param.
2138 (mips_output_conditional_branch): Likewise.
2139 (mips_output_order_conditional_branch): Likewise.
2140 (mips_final_prescan_insn): Likewise.
2142 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2143 rtx_insn * for the SEQUENCE case.
2144 (SEQ_END): Likewise.
2145 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2146 (mips_emit_call_insn): Likewise, also for local "insn".
2147 (mips16_gp_pseudo_reg): Likewise for local "scan".
2148 (mips16_build_call_stub): Likewise for return type and for local
2149 "insn". Introduce a new local "pattern" so that "insn" can indeed
2151 (mips_expand_call): Strengthen return type and local "insn" from
2153 (mips_block_move_loop): Strengthen local "label" from rtx to
2155 (mips_expand_synci_loop): Likewise for locals "label",
2157 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2159 (mips16e_collect_argument_saves): Likewise for locals "insn",
2161 (mips_find_gp_ref): Likewise for param of callback for "pred"
2162 param, and for local "insn".
2163 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2164 (mips_insn_has_flexible_gp_ref_p): Likewise.
2165 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2167 (mips_epilogue_set_cfa): Likewise for local "insn".
2168 (mips_expand_epilogue): Likewise.
2169 (mips_adjust_insn_length): Likewise for param "insn".
2170 (mips_output_conditional_branch): Likewise.
2171 (mips_output_order_conditional_branch): Likewise.
2172 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2173 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2174 "falu2_turn_enabled_insn".
2175 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2176 "done_label" from rtx to rtx_code_label *.
2177 (struct mips16_constant): Likewise for field "label".
2178 (mips16_add_constant): Likewise for return type.
2179 (mips16_emit_constants_1): Strengthen return type and param "insn"
2180 from rtx to rtx_insn *.
2181 (mips16_emit_constants): Likewise for param "insn".
2182 (mips16_insn_length): Likewise.
2183 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2184 to rtx_code_label *.
2185 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2186 from rtx to rtx_insn *.
2187 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2188 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2189 (r10k_simplify_address): Strengthen param "insn" and local
2190 "def_insn" from rtx to rtx_insn *.
2191 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2193 (r10k_needs_protection_p_1): Update target type of cast of data
2194 from to rtx to rtx_insn *.
2195 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2196 rtx * to rtx_insn **.
2197 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2199 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2200 (mips_call_expr_from_insn): Likewise for param "insn".
2201 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2202 (mips_find_pic_call_symbol): Likewise for param "insn".
2203 (mips_annotate_pic_calls): Likewise for local "insn".
2204 (mips_sim_insn): Likewise for this variable.
2205 (struct mips_sim): Likewise for field "insn" within elements of
2207 (mips_sim_wait_reg): Likewise for param "insn".
2208 (mips_sim_wait_regs): Likewise.
2209 (mips_sim_wait_units): Likewise.
2210 (mips_sim_wait_insn): Likewise.
2211 (mips_sim_issue_insn): Likewise.
2212 (mips_sim_finish_insn): Likewise.
2213 (mips_seq_time): Likewise for param "seq" and local "insn".
2214 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2215 locals "first", "second".
2216 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2217 "last", "last2", "next".
2218 (mips_avoid_hazard): Likewise for params "after", "insn".
2219 (mips_reorg_process_insns): Likewise for locals "insn",
2220 "last_insn", "subinsn", "next_insn".
2221 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2222 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2224 (mips_output_mi_thunk): Likewise for local "insn".
2225 (mips_final_prescan_insn): Likewise for param "insn".
2227 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2229 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2230 Strengthen return type and local "insns" from rtx to rtx_insn *.
2231 (microblaze_legitimize_tls_address): Likewise for local "insns".
2232 (microblaze_block_move_loop): Strengthen local "label" from rtx
2233 to rtx_code_label *.
2234 (microblaze_expand_prologue): Strengthen two locals named "insn"
2235 from rtx to rtx_insn *.
2236 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2237 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2238 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2239 to rtx_code_label *.
2241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2243 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2244 param from rtx to rtx_insn *.
2245 (mep_reuse_lo): Likewise for third param.
2246 (mep_use_post_modify_p): Likewise for first param.
2247 (mep_core_address_length): Likewise.
2248 (mep_cop_address_length): Likewise.
2249 (mep_final_prescan_insn): Likewise.
2250 (mep_store_data_bypass_p): Likewise for both params.
2251 (mep_mul_hilo_bypass_p): Likewise.
2252 (mep_ipipe_ldc_p): Likewise for param.
2254 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2255 (mep_rewrite_mult): Likewise.
2256 (mep_rewrite_mulsi3): Likewise.
2257 (mep_rewrite_maddsi3): Likewise.
2258 (mep_reuse_lo_p_1): Likewise.
2259 (mep_reuse_lo_p): Likewise.
2260 (mep_frame_expr): Likewise.
2261 (mep_make_parallel): Likewise for both params.
2262 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2264 (mep_use_post_modify_p): Likewise for param "insn".
2265 (mep_core_address_length): Likewise.
2266 (mep_cop_address_length): Likewise.
2267 (mep_reg_set_in_function): Likewise for local "insn".
2268 (mep_asm_without_operands_p): Likewise.
2269 (F): Likewise for return type and param "x".
2270 (add_constant): Likewise for local "insn".
2271 (maybe_dead_move): Likewise for return type and local "insn".
2272 (mep_expand_prologue): Likewise for local "insn".
2273 (mep_final_prescan_insn): Likewise for param "insn".
2274 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2275 "next", "follow", "x".
2276 (mep_insert_repeat_label_last): Likewise for return type, param
2277 "last_insn", and locals "next", "prev". Strengthen param "label"
2278 from rtx to rtx_code_label *.
2279 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2281 (struct mep_doloop_end): Likewise for fields "insn" and
2283 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2284 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2285 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2287 (mep_invert_branch): Likewise for params "insn" and "after".
2288 (mep_reorg_erepeat): Likewise for param "insns" and locals
2289 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2290 "l" from rtx to rtx_code_label *.
2291 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2292 from rtx to rtx_insn *.
2293 (mep_reorg_addcombine): Likewise for param "insns" and locals
2295 (add_sp_insn_p): Likewise for param "insn".
2296 (mep_reorg_noframe): Likewise for param "insns" and locals
2297 "start_frame_insn", "end_frame_insn", "next".
2298 (mep_reorg): Likewise for local "insns".
2299 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2301 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2302 (mep_mul_hilo_bypass_p): Likewise.
2303 (mep_ipipe_ldc_p): Likewise for param "insn".
2304 (mep_make_bundle): Likewise for return type, param "cop" and local
2305 "insn", splitting out the latter into a new local "seq" for when it
2306 is a SEQUENCE rather than an insn.
2307 (core_insn_p): Likewise for param "insn".
2308 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2309 "last", "first", "note", "prev", "core_insn".
2311 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2313 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2315 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2316 (m68k_final_prescan_insn): Likewise for first param.
2318 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2319 (m68k_set_frame_related): Likewise for param "insn".
2320 (output_btst): Likewise for param "insn".
2321 (m68k_final_prescan_insn): Likewise.
2322 (m68k_move_to_reg): Likewise for local "insn".
2323 (m68k_call_tls_get_addr): Likewise for local "insns".
2324 (m68k_call_m68k_read_tp): Likewise.
2325 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2326 (m68k_output_mi_thunk): Likewise for local "insn".
2328 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2330 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2331 first param from rtx to rtx_insn *.
2332 (iq2000_adjust_insn_length): Likewise.
2333 (iq2000_output_conditional_branch): Likewise.
2334 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2335 "insn" and local "nop_insn".
2336 (iq2000_annotate_frame_insn): Likewise for param "insn".
2337 (iq2000_expand_prologue): Likewise for both locals "insn".
2338 (iq2000_adjust_insn_length): Likewise for param "insn".
2339 (iq2000_output_conditional_branch): Likewise.
2341 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2343 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2344 "insns" from rtx to rtx_insn *.
2345 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2346 (struct spill_fill_data): Likewise for field "init_after" and for
2347 elements of array field "prev_insn".
2348 (spill_restore_mem): Likewise for locals "insn", "first".
2349 (do_spill): Likewise for local "insn".
2350 (do_restore): Likewise.
2351 (ia64_expand_prologue): Likewise.
2352 (ia64_expand_epilogue): Likewise.
2353 (emit_insn_group_barriers): Likewise for locals "insn",
2355 (emit_all_insn_group_barriers): Likewise for locals "insn",
2357 (dfa_stop_insn): Likewise for this global.
2358 (dfa_pre_cycle_insn): Likewise.
2359 (ia64_nop): Likewise.
2360 (final_emit_insn_group_barriers): Likewise for locals "insn",
2362 (emit_predicate_relation_info): Likewise for locals "head", "n",
2364 (ia64_reorg): Likewise for local "insn".
2365 (ia64_output_mi_thunk): Likewise.
2366 (expand_vec_perm_interleave_2): Likewise for local "seq".
2368 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2370 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2371 param 1 "insn" from rtx to rtx_insn *.
2372 (ix86_use_lea_for_mov): Likewise.
2373 (ix86_avoid_lea_for_addr): Likewise.
2374 (ix86_split_lea_for_addr): Likewise.
2375 (ix86_lea_for_add_ok): Likewise.
2376 (ix86_output_call_insn): Likewise.
2378 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2379 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2380 (ix86_output_function_epilogue): Likewise for locals "insn",
2381 "deleted_debug_label".
2382 (legitimize_tls_address): Likewise for local "insn".
2383 (get_some_local_dynamic_name): Likewise.
2384 (increase_distance): Likewise for params "prev", "next".
2385 (distance_non_agu_define_in_bb): Likewise for params "insn",
2386 "start" and locals "prev", "next".
2387 (distance_non_agu_define): Likewise for param "insn".
2388 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2389 locals "next", "prev".
2390 (distance_agu_use): Likewise for param "insn".
2391 (ix86_lea_outperforms): Likewise.
2392 (ix86_ok_to_clobber_flags): Likewise.
2393 (ix86_avoid_lea_for_add): Likewise.
2394 (ix86_use_lea_for_mov): Likewise.
2395 (ix86_avoid_lea_for_addr): Likewise.
2396 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2397 (ix86_split_lea_for_addr): Likewise for param "insn".
2398 (ix86_lea_for_add_ok): Likewise for param "insn".
2399 (ix86_expand_carry_flag_compare): Likewise for local
2401 (ix86_expand_int_movcc): Likewise.
2402 (ix86_output_call_insn): Likewise for param "insn".
2403 (ix86_output_call_insn): Likewise for local "i".
2404 (x86_output_mi_thunk): Introduce local "insn", using it in place
2405 of "tmp" when dealing with insns.
2406 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2408 (ix86_pad_returns): Likewise for locals "ret", "prev".
2409 (ix86_count_insn_bb): Likewise for local "insn".
2410 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2411 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2412 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2413 (expand_vec_perm_interleave2): Likewise for local "seq".
2414 (expand_vec_perm_vperm2f128_vblend): Likewise.
2415 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2416 call to for_each_rtx with for_each_rtx_in_insn.
2418 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2420 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2421 "label" from rtx to rtx_code_label *.
2422 (ix86_expand_prologue): Likewise.
2423 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2425 (ix86_split_idivmod): Likewise for locals "end_label" and
2427 (ix86_expand_branch): Likewise for local "label2".
2428 (ix86_expand_aligntest): Likewise for return type and local "label".
2429 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2431 (expand_movmem_epilogue): Likewise for the various locals named
2433 (expand_setmem_epilogue): Likewise.
2434 (expand_small_movmem_or_setmem): Likewise for local "label".
2435 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2436 Strengthen param "done_label" from rtx * to rtx_code_label **.
2437 Strengthen locals "loop_label" and "label" from rtx to
2439 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2440 Likewise for locals "loop_label", "label".
2441 (ix86_expand_set_or_movmem): Likewise for locals "label",
2442 "jump_around_label", "hot_label".
2443 (ix86_expand_strlensi_unroll_1): Likewise for locals
2444 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2446 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2447 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2448 "label2", "jump_label".
2449 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2451 (ix86_expand_lfloorceil): Likewise for local "label".
2452 (ix86_expand_rint): Likewise.
2453 (ix86_expand_floorceildf_32): Likewise.
2454 (ix86_expand_floorceil): Likewise.
2455 (ix86_expand_rounddf_32): Likewise.
2456 (ix86_expand_trunc): Likewise.
2457 (ix86_expand_truncdf_32): Likewise.
2458 (ix86_expand_round): Likewise.
2460 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2462 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2463 first param from rtx to rtx_insn *.
2464 (h8300_insn_length_from_table): Likewise.
2465 * config/h8300/h8300.c (F): Likewise for return type and param
2467 (Fpa): Add a checked cast to rtx_insn *.
2468 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2470 (final_prescan_insn): Likewise for param "insn".
2471 (h8300_binary_length): Likewise.
2472 (h8300_insn_length_from_table): Likewise.
2474 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2476 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2477 Strengthen first param "insn" from rtx to rtx_insn *.
2479 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2481 (frame_insn): Likewise for return type. Introduce local "insn"
2482 for use in place of local "x" for use as an rtx_insn *.
2483 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2484 (epiphany_expand_prologue): Likewise for local "insn".
2485 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2486 * config/epiphany/resolve-sw-modes.c
2487 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2490 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2492 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2493 param from rtx to rtx_insn *.
2494 (c6x_final_prescan_insn): Likewise for first param.
2496 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2497 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2498 (c6x_expand_compare): Strengthen local "insns" from rtx to
2500 (c6x_get_unit_specifier): Likewise for param "insn".
2501 (c6x_print_unit_specifier_field): Likewise.
2502 (c6x_final_prescan_insn): Likewise.
2503 (emit_add_sp_const): Likewise for local "insn".
2504 (c6x_expand_prologue): Likewise.
2506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2508 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2509 param 1 from rtx to rtx_insn *.
2510 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2511 the various locals named "insn".
2512 (expand_epilogue_reg_restore): Likewise.
2513 (frame_related_constant_load): Likewise.
2514 (add_to_reg): Likewise.
2515 (emit_link_insn): Likewise.
2516 (do_link): Likewise.
2517 (expand_interrupt_handler_prologue): Likewise.
2518 (branch_dest): Likewise for param "branch".
2519 (asm_conditional_branch): Likewise for param "insn".
2520 (gen_one_bundle): Likewise for elements of param "slot" and local
2522 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2523 elements of local "slot".
2524 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2525 "queue", "next_queue", "prev".
2526 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2527 (add_sched_insns_for_speculation): Likewise for local "insn".
2529 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2531 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2532 from rtx to rtx_insn *.
2533 (output_movhi): Likewise.
2534 (output_movsisf): Likewise.
2535 (avr_out_tstsi): Likewise.
2536 (avr_out_tsthi): Likewise.
2537 (avr_out_tstpsi): Likewise.
2538 (avr_out_compare): Likewise.
2539 (avr_out_compare64): Likewise.
2540 (avr_out_movpsi): Likewise.
2541 (ashlqi3_out): Likewise.
2542 (ashlhi3_out): Likewise.
2543 (ashlsi3_out): Likewise.
2544 (ashrqi3_out): Likewise.
2545 (ashrhi3_out): Likewise.
2546 (ashrsi3_out): Likewise.
2547 (lshrqi3_out): Likewise.
2548 (lshrhi3_out): Likewise.
2549 (lshrsi3_out): Likewise.
2550 (avr_out_ashlpsi3): Likewise.
2551 (avr_out_ashrpsi3): Likewise.
2552 (avr_out_lshrpsi3): Likewise.
2553 (avr_out_fract): Likewise.
2554 (avr_out_sbxx_branch): Likewise.
2555 (avr_out_round): Likewise.
2556 (avr_out_xload): Likewise.
2557 (avr_out_movmem): Likewise.
2558 (adjust_insn_length): Likewise.
2559 (avr_out_lpm): Likewise.
2560 (reg_unused_after): Likewise.
2561 (_reg_unused_after): Likewise.
2562 (avr_jump_mode): Likewise for second param.
2563 (jump_over_one_insn): Likewise for first param.
2564 (avr_final_prescan_insn): Likewise.
2565 (out_shift_with_cnt): Likewise for second param.
2567 * config/avr/avr.c (get_sequence_length): Likewise for param
2568 "insns" and local "insn".
2569 (emit_push_byte): Likewise for local "insn".
2570 (emit_push_sfr): Likewise.
2571 (avr_prologue_setup_frame): Likewise for locals "insn",
2572 "fp_plus_insns", "sp_plus_insns".
2573 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2575 (avr_jump_mode): Likewise for param "insn".
2576 (avr_final_prescan_insn): Likewise.
2577 (avr_find_unused_d_reg): Likewise.
2578 (avr_out_lpm_no_lpmx): Likewise.
2579 (avr_out_lpm): Likewise.
2580 (avr_out_xload): Likewise.
2581 (output_movqi): Likewise.
2582 (output_movhi): Likewise.
2583 (out_movqi_r_mr): Likewise.
2584 (out_movhi_r_mr): Likewise.
2585 (out_movsi_r_mr): Likewise.
2586 (out_movsi_mr_r): Likewise.
2587 (output_movsisf): Likewise.
2588 (avr_out_load_psi): Likewise.
2589 (avr_out_store_psi): Likewise.
2590 (avr_out_movpsi): Likewise.
2591 (out_movqi_mr_r): Likewise.
2592 (avr_out_movhi_mr_r_xmega): Likewise.
2593 (out_movhi_mr_r): Likewise.
2594 (compare_condition): Likewise for param "insn" and local "next".
2595 (compare_sign_p): Likewise for param "insn".
2596 (compare_diff_p): Likewise.
2597 (compare_eq_p): Likewise.
2598 (avr_out_compare): Likewise.
2599 (avr_out_compare64): Likewise.
2600 (avr_out_tsthi): Likewise.
2601 (avr_out_tstpsi): Likewise.
2602 (avr_out_tstsi): Likewise.
2603 (out_shift_with_cnt): Likewise.
2604 (ashlqi3_out): Likewise.
2605 (ashlhi3_out): Likewise.
2606 (avr_out_ashlpsi3): Likewise.
2607 (ashlsi3_out): Likewise.
2608 (ashrqi3_out): Likewise.
2609 (ashrhi3_out): Likewise.
2610 (avr_out_ashrpsi3): Likewise.
2611 (ashrsi3_out): Likewise.
2612 (lshrqi3_out): Likewise.
2613 (lshrhi3_out): Likewise.
2614 (avr_out_lshrpsi3): Likewise.
2615 (lshrsi3_out): Likewise.
2616 (avr_out_fract): Likewise.
2617 (avr_out_round): Likewise.
2618 (avr_adjust_insn_length): Likewise.
2619 (reg_unused_after): Likewise.
2620 (_reg_unused_after): Likewise.
2621 (avr_compare_pattern): Likewise.
2622 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2623 and locals "branch1", "branch2", "insn2", "jump".
2624 (avr_reorg): Likewise for local "insn".
2625 (avr_2word_insn_p): Likewise for param "insn".
2626 (jump_over_one_insn_p): Likewise.
2627 (avr_out_sbxx_branch): Likewise.
2628 (avr_out_movmem): Likewise.
2630 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2632 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2633 param from rtx to rtx_insn *.
2634 (thumb1_final_prescan_insn): Likewise.
2635 (thumb2_final_prescan_insn): Likewise.
2637 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2639 (struct minipool_node): Likewise for field "insn".
2640 (dump_minipool): Likewise for param "scan".
2641 (create_fix_barrier): Likewise for local "from". Strengthen local
2642 "label" from rtx to rtx_code_label *.
2643 (push_minipool_barrier): Strengthen param "insn" from rtx to
2645 (push_minipool_fix): Likewise.
2646 (note_invalid_constants): Likewise.
2647 (thumb2_reorg): Likewise for local "insn".
2648 (arm_reorg): Likewise.
2649 (thumb2_final_prescan_insn): Likewise for param
2650 "insn" and local "first_insn".
2651 (arm_final_prescan_insn): Likewise for param "insn" and locals
2652 "start_insn", "this_insn".
2653 (arm_debugger_arg_offset): Likewise for param "insn".
2654 (thumb1_emit_multi_reg_push): Likewise for return type and local
2656 (thumb1_final_prescan_insn): Likewise for param "insn".
2657 (thumb_far_jump_used_p): Likewise for local "insn".
2658 (thumb1_expand_prologue): Likewise.
2659 (arm_expand_epilogue_apcs_frame): Likewise.
2660 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2661 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2662 from rtx to rtx_code_label *.
2663 (arm_split_atomic_op): Likewise for local "label".
2664 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2666 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2668 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2669 first param from rtx to rtx_insn *.
2670 (arc_verify_short): Likewise.
2671 (arc_short_long): Likewise.
2672 (arc_need_delay): Likewise.
2674 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2676 (arc_ccfsm_advance): Likewise for param "insn" and locals
2677 "start_insn", "this_insn".
2678 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2679 (arc_ccfsm_post_advance): Likewise for param "insn".
2680 (arc_next_active_insn): Likewise for return type and param "insn".
2681 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2682 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2683 (output_short_suffix): Likewise for local "insn".
2684 (arc_final_prescan_insn): Likewise for param "insn". Remove
2685 now-redundant checked cast.
2686 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2687 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2688 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2689 for use where lc_set became an insn.
2690 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2692 (arc_get_insn_variants): Likewise for local "prev".
2693 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2695 (arc_predicate_delay_insns): Likewise for local "insn".
2696 (arc_pad_return): Likewise for local "prev". For now, add a
2697 checked cast when extracting the insn from "final_sequence".
2698 (arc_short_long): Likewise for param "insn".
2699 (arc_need_delay): Likewise for param "insn" and local "next".
2700 (arc_label_align): Likewise for locals "prev", "next".
2702 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2704 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2705 "insn" from rtx to rtx_insn *.
2706 (alpha_gp_save_rtx): Likewise for local "seq".
2707 (alpha_instantiate_decls): Likewise for local "top".
2708 (get_some_local_dynamic_name): Likewise for local "insn".
2709 (alpha_does_function_need_gp): Likewise.
2710 (set_frame_related_p): Likewise for return type and for locals
2712 (emit_frame_store_1): Likewise for local "insn".
2713 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2714 (alpha_end_function): Likewise for local "insn".
2715 (alpha_output_mi_thunk_osf): Likewise.
2716 (alphaev4_insn_pipe): Likewise for param "insn".
2717 (alphaev5_insn_pipe): Likewise.
2718 (alphaev4_next_group): Likewise for return type and param 1
2720 (alphaev5_next_group): Likewise.
2721 (alpha_align_insns_1): Likewise for return type and param 1 of
2722 callback param "next_group", and for locals "i", "next", "prev",
2723 "where", "where2", "insn".
2725 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2727 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2728 rather than modifying the stmt.
2730 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2732 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2733 cgraph_state conversion.
2735 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2737 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2738 Strengthen local "insns" from rtx to rtx_insn *.
2739 (aarch64_set_frame_expr): Likewise for local "insn".
2740 (aarch64_save_or_restore_fprs): Likewise.
2741 (aarch64_save_or_restore_callee_save_registers): Likewise.
2742 (aarch64_expand_prologue): Likewise.
2743 (aarch64_expand_epilogue): Likewise.
2744 (aarch64_output_mi_thunk): Likewise.
2745 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2746 "label2" from rtx to rtx_code_label *.
2747 (aarch64_split_atomic_op): Likewise for local "label".
2749 2014-08-25 Martin Liska <mliska@suse.cz>
2751 * cgraph.h (symtab_node):
2752 (bool needed_p (void)): created from decide_is_symbol_needed
2753 (bool referred_to_p (void)): created from referred_to_p
2754 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2755 * cgraph.h (cgraph_node):
2756 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2757 (void expand (void)): created from expand_function
2758 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2759 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2760 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2761 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2762 * cgraph.h (varpool_node):
2763 (static void add (tree decl): created from varpool_add_new_variable
2764 * cgraph.h (cgraph_edge):
2766 (void remove_caller (void)): created from cgraph_edge_remove_caller
2767 (void remove_callee (void)): created from cgraph_edge_remove_callee
2768 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2769 created from cgraph_set_call_stmt
2770 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2771 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2772 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2773 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2774 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2775 created from cgraph_speculative_call_info
2776 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2777 int freq_scale, bool update_original)): created from cgraph_clone_edge
2778 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2779 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2780 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2781 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2782 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2783 (static void rebuild_references (void)): created from cgraph_rebuild_references
2784 * cgraph.h (symbol_table):
2785 (create_reference): renamed from add_reference
2786 (maybe_create_reference): renamed from maybe_add_reference
2787 (void register_symbol (symtab_node *node)): new function
2788 (void clear_asm_symbols (void)): new function
2789 (void unregister (symtab_node *node)): new function
2790 (void release_symbol (cgraph_node *node, int uid)): new function
2791 (cgraph_node * allocate_cgraph_symbol (void)): new function
2792 (void initialize (void)): created from cgraph_init
2793 (symtab_node *first_symbol (void)):new function
2794 (asm_node *first_asm_symbol (void)):new function
2795 (symtab_node *first_defined_symbol (void)):new function
2796 (varpool_node *first_variable (void)):new function
2797 (varpool_node *next_variable (varpool_node *node)):new function
2798 (varpool_node *first_static_initializer (void)):new function
2799 (varpool_node *next_static_initializer (varpool_node *node)):new function
2800 (varpool_node *first_defined_variable (void)):new function
2801 (varpool_node *next_defined_variable (varpool_node *node)):new function
2802 (cgraph_node *first_defined_function (void)):new function
2803 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2804 (cgraph_node *first_function (void)):new function
2805 (cgraph_node *next_function (cgraph_node *node)):new function
2806 (cgraph_node *first_function_with_gimple_body (void)):new function
2807 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2808 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2809 created from symtab_remove_unreachable_nodes
2810 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2811 (void process_new_functions (void)): created from cgraph_process_new_functions
2812 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2813 (bool output_variables (void)): created from varpool_node::output_variables
2814 (void output_asm_statements (void)): created from output_asm_statements
2815 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2816 (void compile (void)): created from compile
2817 (void output_weakrefs (void)): created from output_weakrefs
2818 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2819 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2820 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2821 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2822 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2823 created from cgraph_next_function_with_gimple_body
2824 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2825 created from cgraph_remove_edge_removal_hook
2826 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2827 created from cgraph_add_node_removal_hook
2828 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2829 created from cgraph_remove_node_removal_hook
2830 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2831 created from varpool_add_node_removal_hook
2832 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2833 created from varpool_remove_node_removal_hook
2834 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2835 created from cgraph_add_function_insertion_hook
2836 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2837 created from cgraph_remove_function_insertion_hook
2838 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2839 created from varpool_add_variable_insertion_hook
2840 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2841 created from varpool_remove_variable_insertion_hook
2842 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2843 created from cgraph_add_edge_duplication_hook
2844 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2845 created from cgraph_remove_edge_duplication_hook
2846 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2847 created from cgraph_add_node_duplication_hook
2848 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2849 created from cgraph_remove_node_duplication_hook
2850 (void call_edge_removal_hooks (cgraph_edge *e)):
2851 created from cgraph_call_edge_removal_hooks
2852 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2853 created from call_function_insertion_hooks
2854 (void call_cgraph_removal_hooks (cgraph_node *node)):
2855 created from cgraph_call_node_removal_hooks
2856 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2857 created from cgraph_node::call_duplication_hooks
2858 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2859 created from cgraph_call_edge_duplication_hooks
2860 (void call_varpool_removal_hooks (varpool_node *node)):
2861 created from varpool_call_node_removal_hooks
2862 (void call_varpool_insertion_hooks (varpool_node *node)):
2863 created from varpool_call_variable_insertion_hooks
2864 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2865 created from insert_to_assembler_name_hash
2866 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2867 created from unlink_from_assembler_name_hash
2868 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2869 created from symtab_prevail_in_asm_name_hash
2870 (void symtab_initialize_asm_name_hash (void)):
2871 created from symtab_initialize_asm_name_hash
2872 (void change_decl_assembler_name (tree decl, tree name)):
2873 created from change_decl_assembler_name
2874 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2875 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2876 created from decl_assembler_name_hash
2877 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2878 created from decl_assembler_name_equal
2879 (static hashval_t hash_node_by_assembler_name (const void *p)):
2880 created from hash_node_by_assembler_name
2881 (static int eq_assembler_name (const void *p1, const void *p2)):
2882 created from eq_assembler_name
2884 2014-08-25 Marek Polacek <polacek@redhat.com>
2886 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
2888 2014-08-25 Petr Murzin <petr.murzin@intel.com>
2890 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
2891 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
2892 SWI1248_AVX512BW mode iterator.
2894 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
2897 * config/sh/predicates.md (general_extend_operand): Disable
2898 TRUNCATE before reload completes.
2900 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
2902 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
2904 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
2907 * config/sh/sh.opt (musermode): Allow negative form.
2908 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
2909 targets that don't support it.
2910 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
2911 Document -mno-usermode option.
2913 2014-08-24 Kito Cheng <kito@0xlab.org>
2915 * system.h (CALLER_SAVE_PROFITABLE): Poison.
2916 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
2917 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
2918 * doc/tm.texi: Regenerate.
2920 2014-08-24 Kito Cheng <kito@0xlab.org>
2922 * ira.c: Fix typo in comment.
2924 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2926 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
2927 Deprecate c++1y. Change language to reflect greater confidence in C++14.
2929 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
2932 * config/pa/pa.c (pa_output_function_epilogue): Don't set
2933 last_address when the current function is a thunk.
2934 (pa_asm_output_mi_thunk): When we don't have named sections or they
2935 are not being used, check that thunk can reach the stub table with a
2938 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2940 * web.c (union_match_dups): Strengthen param "insn" from rtx to
2942 (pass_web::execute): Likewise for local "insn".
2944 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2946 * var-tracking.c (struct micro_operation_def): Strengthen field
2947 "insn" from rtx to rtx_insn *.
2948 (struct emit_note_data_def): Likewise.
2949 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
2950 (vt_stack_adjustments): Likewise for local "insn".
2951 (adjust_insn): Likewise for param "insn".
2952 (val_store): Likewise.
2953 (val_resolve): Likewise.
2954 (struct count_use_info): Likewise for field "insn".
2955 (log_op_type): Likewise for param "insn".
2956 (reverse_op): Likewise.
2957 (prepare_call_arguments): Likewise.
2958 (add_with_sets): The initial param takes an insn, but we can't
2959 yet strengthen it from rtx to rtx_insn * since it's used as a
2960 cselib_record_sets_hook callback. For now rename initial param
2961 from "insn" to "uncast_insn", and introduce a local "insn" of
2962 the stronger rtx_insn * type, with a checked cast.
2963 (compute_bb_dataflow): Strengthen local "insn" from rtx to
2965 (emit_note_insn_var_location): Likewise.
2966 (emit_notes_for_changes): Likewise.
2967 (emit_notes_for_differences): Likewise.
2968 (next_non_note_insn_var_location): Likewise for return type and
2970 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
2971 (vt_initialize): Likewise for local "insn".
2972 (delete_debug_insns): Likewise for locals "insn" and "next".
2974 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2976 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
2978 (mark_constant_pool): Likewise for local "insn".
2980 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2982 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
2984 (dead_debug_promote_uses): Likewise.
2985 (dead_debug_insert_temp): Likewise.
2987 2014-08-23 David Malcolm <dmalcolm@redhat.com>
2989 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
2990 from const_rtx to const rtx_insn *.
2991 (store_killed_after): Likewise. Strengthen locals "last", "act"
2992 from rtx to rtx_insn *.
2993 (store_killed_before): Strengthen param "insn" from const_rtx to
2994 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
2995 (find_moveable_store): Strengthen param "insn" from rtx to
2997 (compute_store_table): Likewise for local "insn".
2998 (insert_insn_start_basic_block): Likewise for param "insn" and
2999 locals "prev", "before", "insn".
3000 (insert_store): For now, add a checked cast to rtx_insn * on the
3001 result of gen_move_insn.
3002 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3004 (replace_store_insn): Likewise. For now, add a checked cast to
3005 rtx_insn * on the result of gen_move_insn.
3007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3009 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3011 (expand_sjlj_dispatch_table): Likewise.
3013 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3015 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3016 "insn" from rtx to rtx_insn *.
3018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3020 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3021 "insn" from rtx to rtx_insn *.
3022 (dup_block_and_redirect): Likewise for param 3 "before".
3024 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3025 from rtx to rtx_insn *.
3026 (move_insn_for_shrink_wrap): Likewise.
3027 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3028 (dup_block_and_redirect): Likewise for param "before" and local
3030 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3032 (convert_to_simple_return): Likewise for local "start".
3034 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3035 Strengthen local "insn" from rtx to rtx_insn *, for use when
3036 invoking requires_stack_frame_p.
3038 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3040 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3042 (speculate_expr): Likewise for locals "orig_insn_rtx",
3044 (eq_transformed_insns): Likewise for locals "i1", "i2".
3045 (check_for_new_jump): Likewise for return type and local "end".
3046 (find_new_jump): Likewise for return type and local "jump".
3047 (sel_split_edge): Likewise for local "jump".
3048 (sel_create_recovery_block): Likewise.
3049 (sel_redirect_edge_and_branch_force): Likewise.
3050 (sel_redirect_edge_and_branch): Likewise.
3052 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3054 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3055 "new_insn" from rtx to rtx_insn *.
3056 (create_insn_rtx_with_rhs): Likewise for return type and for local
3058 (create_insn_rtx_with_lhs): Likewise.
3059 (create_speculation_check): Likewise for local "insn_rtx".
3060 (implicit_clobber_conflict_p): Likewise for local "insn".
3061 (get_expr_cost): Likewise.
3062 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3063 (move_cond_jump): Likewise for locals "next", "prev", "link",
3064 "head", "from", "to".
3066 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3068 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3069 "next" from rtx to rtx_insn *.
3070 (find_conditional_protection): Likewise for local "next".
3071 (is_conditionally_protected): Likewise for local "insn1".
3072 (is_pfree): Likewise for locals "insn1", "insn2".
3074 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3076 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3077 from rtx to rtx_insn *.
3079 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3080 locals "insn1", "insn2" from rtx to rtx_insn *.
3081 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3082 locals "insn", "prev", "last_jump", "next_tail".
3083 (schedule_ebb): Likewise for params "head", "tail".
3084 (schedule_ebbs): Likewise for locals "tail", "head".
3086 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3087 to rtx_insn on "last_insn" in one of the invocations of
3090 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3092 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3093 "elem", "insn" from rtx to rtx_insn *.
3094 (change_spec_dep_to_hard): Likewise.
3095 (get_back_and_forw_lists): Likewise for local "con".
3096 (sd_add_dep): Likewise for locals "elem", "insn".
3097 (sd_resolve_dep): Likewise for locals "pro", "con".
3098 (sd_unresolve_dep): Likewise.
3099 (sd_delete_dep): Likewise.
3100 (chain_to_prev_insn): Likewise for local "pro".
3101 (find_inc): Likewise for locals "pro", "con".
3103 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3105 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3107 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3109 (modified_between_p): Strengthen local "insn" from rtx to
3111 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3112 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3117 * resource.c (next_insn_no_annul): Strengthen local "next" from
3119 (mark_referenced_resources): Likewise for local "insn".
3121 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3123 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3125 (find_reloads): Likewise for param 1.
3126 (subst_reloads): Likewise for sole param.
3127 (find_equiv_reg): Likwise for param 2.
3128 (regno_clobbered_p): Likwise for param 2.
3129 (reload): Likewise for param 1.
3131 * caller-save.c (save_call_clobbered_regs): Strengthen local
3132 "insn" from rtx to rtx_insn *.
3133 (insert_one_insn): Likewise for local "insn".
3135 * reload.c (this_insn): Likewise for this global.
3136 (find_reloads): Likewise for param "insn".
3137 (find_reloads_toplev): Likewise.
3138 (find_reloads_address): Likewise.
3139 (subst_reg_equivs): Likewise.
3140 (update_auto_inc_notes): Likewise.
3141 (find_reloads_address_1): Likewise.
3142 (find_reloads_subreg_address): Likewise.
3143 (subst_reloads): Likewise.
3144 (find_equiv_reg): Likewise, also for local "p".
3145 (regno_clobbered_p): Likewise for param "insn".
3147 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3149 (spill_reg_store): Likewise for the elements of this array.
3150 (remove_init_insns): Likewise for local "equiv_insn".
3151 (will_delete_init_insn_p): Likewise for param "insn".
3152 (reload): Likewise for param ""first" and local "insn".
3153 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3155 (calculate_elim_costs_all_insns): Likewise.
3156 (delete_caller_save_insns): Likewise.
3157 (spill_failure): Likewise for param "insn".
3158 (delete_dead_insn): Likewise.
3159 (set_label_offsets): Likewise.
3160 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3162 (elimination_costs_in_insn): Likewise for param "insn".
3163 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3164 when referring to an insn.
3165 (set_initial_label_offsets): Likewise.
3166 (set_offsets_for_label): Strengthen param "insn" from rtx to
3168 (init_eliminable_invariants): Likewise for param "first" and local
3170 (fixup_eh_region_note): Likewise for param "insn".
3171 (reload_as_needed): Likewise for locals "prev", "insn",
3172 "old_next", "old_prev", "next".
3173 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3175 (reload_inheritance_insn): Strengthen elements of this array from
3177 (failed_reload): Likewise for param "insn".
3178 (choose_reload_regs): Likewise for local "insn". Replace use of
3179 NULL_RTX with NULL when referring to an insn.
3180 (input_reload_insns): Strengthen elements of this array from rtx
3182 (other_input_address_reload_insns): Likewise for this global.
3183 (other_input_reload_insns): Likewise for this global.
3184 (input_address_reload_insns): Likwise for the elements of this
3186 (inpaddr_address_reload_insns): Likwise for the elements of this
3188 (output_reload_insns): Likewise for the elements of this array.
3189 (output_address_reload_insns): Likewise for the elements of this
3191 (outaddr_address_reload_insns): Likewise for the elements of this
3193 (operand_reload_insns): Likewise for this global.
3194 (other_operand_reload_insns): Likewise for this global.
3195 (other_output_reload_insns): Likewise for the elements of this
3197 (new_spill_reg_store): Likewise for the elements of this
3199 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3200 Strengthen local "where" from rtx * to rtx_insn **.
3201 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3202 from rtx to rtx_insn *.
3203 (do_input_reload): Likewise for local "insn".
3204 (do_output_reload): Likewise for local "insn".
3205 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3206 (emit_insn_if_valid_for_reload): Likewise for return type and local
3207 "last". Add checked cast to rtx_insn when returning "insn" since
3208 this has been through emit_insn.
3209 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3210 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3211 returning "insn" since it's been through
3212 emit_insn_if_valid_for_reload at this point.
3213 (delete_output_reload): Strengthen param "insn" and locals
3214 "output_reload_insn", "i2" from rtx to rtx_insn *.
3215 (delete_address_reloads): Likewise for params "dead_insn",
3216 "current_insn" and locals "prev", "next".
3217 (delete_address_reloads_1): Likewise for params "dead_insn",
3218 "current_insn" and locals "prev", "i2".
3219 (inc_for_reload): Likewise for locals "last", "add_insn".
3220 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3223 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3224 param of this duplicate of the prototype from reload.h
3226 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3228 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3230 (regstat_bb_compute_calls_crossed): Likewise.
3232 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3234 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3236 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3238 (regrename_analyze): Strengthen local "insn" from rtx to
3240 (scan_rtx_reg): Likewise for param "insn".
3241 (scan_rtx_address): Likewise.
3242 (scan_rtx): Likewise.
3243 (restore_operands): Likewise.
3244 (record_out_operands): Likewise.
3245 (build_def_use): Likewise for local "insn". Replace use of
3246 NULL_RTX with NULL when dealing with an insn.
3248 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3250 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3251 * reginfo.c (reg_scan): Likewise, also for local "insn".
3252 (reg_scan_mark_refs): Likewise for param "insn".
3253 (init_subregs_of_mode): Likewise for local "insn".
3255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3257 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3258 "insn" from rtx to rtx_insn *.
3259 (replace_oldest_value_reg): Likewise for param "insn".
3260 (replace_oldest_value_addr): Likewise.
3261 (replace_oldest_value_mem): Likewise.
3262 (apply_debug_insn_changes): Likewise for local "last_insn".
3263 (copyprop_hardreg_forward_1): Likewise for local "insn".
3265 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3267 * reg-stack.c (next_flags_user): Strengthen return type and param
3268 "insn" from rtx to rtx_insn *.
3269 (straighten_stack): Likewise for param "insn".
3270 (check_asm_stack_operands): Likewise.
3271 (remove_regno_note): Likewise.
3272 (emit_pop_insn): Likewise for return type, param "insn", local
3274 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3275 "limit" from rtx to rtx_insn *.
3276 (swap_to_top): Likewise for param "insn".
3277 (move_for_stack_reg): Likewise.
3278 (move_nan_for_stack_reg): Likewise.
3279 (swap_rtx_condition): Likewise.
3280 (compare_for_stack_reg): Likewise.
3281 (subst_all_stack_regs_in_debug_insn): Likewise.
3282 (subst_stack_regs_pat): Likewise, and local "insn2".
3283 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3285 (subst_stack_regs): Likewise.
3286 (change_stack): Likewise.
3287 (convert_regs_1): Likewise for locals "insn", "next".
3289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3291 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3293 (combine_set_extension): Likewise for param "curr_insn".
3294 (transform_ifelse): Likewise for param "def_insn".
3295 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3296 from vec<rtx> * to vec<rtx_insn *> *.
3297 (is_cond_copy_insn): Likewise for param "insn".
3298 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3300 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3301 local "def_insn" from rtx to rtx_insn *.
3302 (get_sub_rtx): Likewise for param "def_insn".
3303 (merge_def_and_ext): Likewise.
3304 (combine_reaching_defs): Likewise.
3305 (add_removable_extension): Likewise for param "insn".
3306 (find_removable_extensions): Likewise for local "insn".
3307 (find_and_remove_re): Likewise for locals "curr_insn" and
3308 "def_insn". Strengthen locals "reinsn_del_list" and
3309 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3313 * recog.c (split_insn): Strengthen param "insn" and locals
3314 "first", "last" from rtx to rtx_insn *.
3315 (split_all_insns): Likewise for locals "insn", "next".
3316 (split_all_insns_noflow): Likewise.
3318 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3320 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3322 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3323 (debug_rtx_find): Likewise for param 1 "x".
3325 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3326 const_rtx to const rtx_insn *. Likewise for local "insn".
3327 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3328 (debug_rtx_find): Likewise for param 1 "x".
3329 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3330 from const_rtx to const rtx_insn * within the appropriate cases of
3331 the switch statement.
3333 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3334 Strengthen local "insns" from rtx to rtx_insn * since this is
3335 passed to a call to debug_rtx_list.
3337 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3339 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3342 * function.c (stack_protect_epilogue): Add checked cast to
3343 rtx_insn for now when invoking predict_insn_def.
3345 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3347 (predict_insn_def): Likewise.
3348 (rtl_predict_edge): Likewise for local "last_insn".
3349 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3351 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3353 (bb_estimate_probability_locally): Likewise for local "last_insn".
3354 (expensive_function_p): Likewise for local "insn".
3356 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3357 local "jmp", since this is used when invoking predict_insn_def.
3359 2014-08-22 Marek Polacek <polacek@redhat.com>
3362 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3364 2014-08-22 Marek Polacek <polacek@redhat.com>
3367 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3368 a comparison in parens.
3369 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3374 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3377 * cprop.c (fis_get_condition): Likewise.
3379 * postreload.c (reload_cse_regs): Likewise for param "first".
3380 (reload_cse_simplify): Likewise for param "insn".
3381 (reload_cse_regs_1): Likewise for local "insn".
3382 (reload_cse_simplify_set): Likewise for param "insn".
3383 (reload_cse_simplify_operands): Likewise.
3384 (struct reg_use): Likewise for field "insn".
3385 (reload_combine_purge_insn_uses): Likewise for param "insn".
3386 (fixup_debug_insns): Likewise for params "from", "to" and local
3388 (try_replace_in_use): Likewise for local "use_insn".
3389 (reload_combine_recognize_const_pattern): Likewise for param
3390 "insn" and locals "add_moved_after_insn", "use_insn".
3391 (reload_combine_recognize_pattern): Likewise for param "insn" and
3393 (reload_combine): Likewise for locals "insn", "prev".
3394 (reload_combine_note_use): Likewise for param "insn".
3395 (move2add_use_add2_insn): Likewise.
3396 (move2add_use_add3_insn): Likewise.
3397 (reload_cse_move2add): Likewise, also for local "next".
3398 (move2add_note_store): Likewise for local "insn".
3400 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3402 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3404 (struct unoccr): Likewise.
3405 (struct modifies_mem): Likewise.
3406 (alloc_mem): Likewise for local "insn".
3407 (insert_expr_in_table): Likewise for param "insn".
3408 (dump_expr_hash_table_entry): Likewise for local "insn".
3409 (oprs_unchanged_p): Likewise for param "insn".
3410 (load_killed_in_block_p): Likewise for local "setter".
3411 (record_last_reg_set_info): Likewise for param "insn".
3412 (record_last_reg_set_info_regno): Likewise.
3413 (record_last_mem_set_info): Likewise.
3414 (record_last_set_info): Likewise for local "last_set_insn".
3415 (record_opr_changes): Likewise for param "insn".
3416 (hash_scan_set): Likewise.
3417 (compute_hash_table): Likewise for local "insn".
3418 (get_avail_load_store_reg): Likewise for param "insn".
3419 (eliminate_partially_redundant_load): Likewise, also for locals
3420 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3422 (eliminate_partially_redundant_loads): Likewise for local "insn".
3424 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3426 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3428 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3429 (expand_twoval_unop): Likewise for locals entry_last", "last".
3430 (expand_twoval_binop): Likewise.
3431 (expand_twoval_binop_libfunc): Likewise for local "insns".
3432 (widen_leading): Likewise for local "last".
3433 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3434 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3435 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3436 (expand_parity): Likewise for locals "last" and "seq".
3437 (expand_ffs): Likewise for local "seq". Strengthen local
3438 "nonzero_label" from rtx to rtx_code_label *.
3439 (expand_absneg_bit): Strengthen local "insns" from rtx to
3441 (expand_unop_direct): Likewise for local "last".
3442 (expand_unop): Likewise for locals "last", "insns".
3443 (expand_abs_nojump): Likewise for local "last".
3444 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3445 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3447 (expand_copysign_absneg): Strengthen local "label" from rtx to
3449 (expand_copysign_bit): Strengthen local "insns" from rtx to
3451 (struct no_conflict_data): Likewise for fields "first", "insn".
3452 (emit_libcall_block_1): Likewise for param "insns" and locals
3453 "next", "last", "insn".
3454 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3455 on "insns" when invoking emit_libcall_block_1. Ultimately we
3456 want to strengthen insns itself.
3457 (prepare_cmp_insn): Strengthen local "last" from rtx to
3459 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3460 (prepare_float_lib_cmp): Likewise for local "insns".
3461 (emit_conditional_move): Likewise for local "last".
3462 (emit_conditional_add): Likewise.
3463 (have_sub2_insn): Likewise for local "seq".
3464 (expand_float): Likewise for local "insns". Strengthen locals
3465 "label", "neglabel" from rtx to rtx_code_label *.
3466 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3467 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3468 (expand_fixed_convert): Likewise for local "insns" (to
3470 (expand_sfix_optab): Likewise for local "last".
3471 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3472 to rtx_code_label *.
3473 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3474 from rtx to rtx_insn *.
3475 (expand_atomic_fetch_op): Likewise for local "insn".
3476 (maybe_legitimize_operand_same_code): Likewise for local "last".
3477 (maybe_legitimize_operands): Likewise.
3479 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3481 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3482 "insn" from rtx to rtx_insn *.
3483 (ps_rtl_insn): Likewise for return type.
3484 (doloop_register_get): Likewise for params "head", "tail" and
3485 locals "insn", "first_insn_not_to_check".
3486 (schedule_reg_move): Likewise for local "this_insn".
3487 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3488 of gen_move_insn for now.
3489 (reset_sched_times): Strengthen local "insn" from rtx to
3491 (permute_partial_schedule): Likewise.
3492 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3493 (dump_insn_location): Likewise for param "insn".
3494 (loop_canon_p): Likewise for local "insn".
3495 (sms_schedule): Likewise.
3496 (print_partial_schedule): Likewise.
3497 (ps_has_conflicts): Likewise.
3499 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3501 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3502 "tailp" from rtx * to rtx_insn **.
3504 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3505 from rtx to rtx_insn *.
3506 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3507 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3508 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3510 * modulo-sched.c (const_iteration_count): Strengthen return type
3511 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3512 use of NULL_RTX with NULL when working with insns.
3513 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3515 (sms_schedule): Likewise.
3516 * sched-rgn.c (init_ready_list): Likewise, also for locals
3517 "src_head" and "src_next_tail".
3518 (compute_block_dependences): Likewise.
3519 (free_block_dependencies): Likewise.
3520 (debug_rgn_dependencies): Likewise.
3521 (free_rgn_deps): Likewise.
3522 (compute_priorities): Likewise.
3523 (schedule_region): Likewise.
3524 * sel-sched.c (find_ebb_boundaries): Likewise.
3526 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3527 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3529 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3531 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3532 from rtx to rtx_insn *.
3533 (new_seginfo): Likewise for param "insn".
3534 (create_pre_exit): Likewise for locals "last_insn",
3535 "before_return_copy", "return_copy".
3536 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3539 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3541 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3542 from rtx to rtx_insn *.
3543 (lra_push_insn): Likewise for 1st param.
3544 (lra_push_insn_and_update_insn_regno_info): Likewise.
3545 (lra_pop_insn): Likewise for return type.
3546 (lra_invalidate_insn_data): Likewise for 1st param.
3547 (lra_set_insn_deleted): Likewise.
3548 (lra_delete_dead_insn): Likewise.
3549 (lra_process_new_insns): Likewise for first 3 params.
3550 (lra_set_insn_recog_data): Likewise for 1st param.
3551 (lra_update_insn_recog_data): Likewise.
3552 (lra_set_used_insn_alternative): Likewise.
3553 (lra_invalidate_insn_regno_info): Likewise.
3554 (lra_update_insn_regno_info): Likewise.
3555 (lra_former_scratch_operand_p): Likewise.
3556 (lra_eliminate_regs_1): Likewise.
3557 (lra_get_insn_recog_data): Likewise.
3559 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3562 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3564 (substitute_within_insn): New.
3565 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3566 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3567 Replace call to "substitute" with call to substitute_within_insn.
3569 * lra-constraints.c (curr_insn): Strengthen from rtx to
3571 (get_equiv_with_elimination): Likewise for param "insn".
3572 (match_reload): Strengthen params "before" and "after" from rtx *
3574 (emit_spill_move): Likewise for return type. Add a checked cast
3575 to rtx_insn * on result of gen_move_insn for now.
3576 (check_and_process_move): Likewise for local "before". Replace
3577 NULL_RTX with NULL when referring to insns.
3578 (process_addr_reg): Strengthen params "before" and "after" from
3579 rtx * to rtx_insn **.
3580 (insert_move_for_subreg): Likewise.
3581 (simplify_operand_subreg): Strengthen locals "before" and "after"
3582 from rtx to rtx_insn *.
3583 (process_address_1): Strengthen params "before" and "after" from
3584 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3586 (process_address): Strengthen params "before" and "after" from
3587 rtx * to rtx_insn **.
3588 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3589 (curr_insn_transform): Strengthen locals "before" and "after"
3590 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3592 (loc_equivalence_callback): Update cast of "data", changing
3593 resulting type from rtx to rtx_insn *.
3594 (substitute_pseudo_within_insn): New.
3595 (inherit_reload_reg): Strengthen param "insn" from rtx to
3596 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3597 NULL when referring to insns. Add a checked cast to rtx_insn *
3598 when using usage_insn to invoke lra_update_insn_regno_info.
3599 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3600 likewise for locals "restore", "save". Add checked casts to
3601 rtx_insn * when using usage_insn to invoke
3602 lra_update_insn_regno_info and lra_process_new_insns. Replace
3603 NULL_RTX with NULL when referring to insns.
3604 (split_if_necessary): Strengthen param "insn" from rtx to
3606 (update_ebb_live_info): Likewise for params "head", "tail" and local
3608 (get_last_insertion_point): Likewise for return type and local "insn".
3609 (get_live_on_other_edges): Likewise for local "last".
3610 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3611 "prev_insn", "next_insn", "restore".
3612 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3613 (undo_optional_reloads): Likewise for local "insn".
3615 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3617 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3619 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3621 (spill_pseudos): Likewise for local "insn".
3622 (init_elimination): Likewise.
3623 (process_insn_for_elimination): Likewise for param "insn".
3625 * lra-lives.c (curr_insn): Likewise.;
3627 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3628 (remove_pseudos): Likewise for param "insn".
3629 (spill_pseudos): Likewise for local "insn".
3630 (lra_final_code_change): Likewise for locals "insn", "curr".
3632 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3633 (lra_set_insn_deleted): Likewise.
3634 (lra_delete_dead_insn): Likewise, and for local "prev".
3635 (new_insn_reg): Likewise for param "insn".
3636 (lra_set_insn_recog_data): Likewise.
3637 (lra_update_insn_recog_data): Likewise.
3638 (lra_set_used_insn_alternative): Likewise.
3639 (get_insn_freq): Likewise.
3640 (invalidate_insn_data_regno_info): Likewise.
3641 (lra_invalidate_insn_regno_info): Likewise.
3642 (lra_update_insn_regno_info): Likewise.
3643 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3645 (lra_push_insn_1): Strengthen param "insn" from rtx to
3647 (lra_push_insn): Likewise.
3648 (lra_push_insn_and_update_insn_regno_info): Likewise.
3649 (lra_pop_insn): Likewise for return type and local "insn".
3650 (push_insns): Likewise for params "from", "to", and local "insn".
3651 (setup_sp_offset): Likewise for params "from", "last" and locals
3653 (lra_process_new_insns): Likewise for params "insn", "before",
3654 "after" and local "last".
3655 (struct sloc): Likewise for field "insn".
3656 (lra_former_scratch_operand_p): Likewise for param "insn".
3657 (remove_scratches): Likewise for locals "insn", "last".
3658 (check_rtl): Likewise for local "insn".
3659 (add_auto_inc_notes): Likewise for param "insn".
3660 (update_inc_notes): Likewise for local "insn".
3661 (lra): Replace NULL_RTX with NULL when referring to insn.
3663 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3665 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3667 (resolve_reg_notes): Likewise.
3668 (resolve_simple_move): Likewise for return type, param "insn", and
3669 locals "insns", "minsn".
3670 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3671 (resolve_use): Likewise.
3672 (resolve_debug): Likewise.
3673 (find_decomposable_shift_zext): Likewise.
3674 (resolve_shift_zext): Likewise for return type, param "insn", and
3675 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3676 (decompose_multiword_subregs): Likewise for local "insn",
3677 "orig_insn", "decomposed_shift", "end".
3679 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3681 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3682 param "insns" from rtx to rtx_insn *.
3684 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3686 (struct iv_to_split): Likewise.
3687 (loop_exit_at_end_p): Likewise for local "insn".
3688 (split_edge_and_insert): Likewise for param "insns".
3689 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3690 and locals "seq", "jump".
3691 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3692 "branch_code"; update invocations of compare_and_jump_seq to
3693 eliminate NULL_RTX in favor of NULL.
3694 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3696 (reset_debug_uses_in_loop): Likewise.
3697 (analyze_insn_to_expand_var): Likewise for param "insn".
3698 (analyze_iv_to_split_insn): Likewise.
3699 (analyze_insns_in_loop): Likewise for local "insn".
3700 (insert_base_initialization): Likewise for param
3701 "insn" and local "seq".
3702 (split_iv): Likewise for param "insn" and local "seq".
3703 (expand_var_during_unrolling): Likewise for param "insn".
3704 (insert_var_expansion_initialization): Likewise for local "seq".
3705 (combine_var_copies_in_loop_exit): Likewise.
3706 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3708 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3709 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3712 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3714 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3716 (iv_analyze_result): Likewise.
3717 (iv_analyze_expr): Likewise.
3720 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3721 local "def_insn" from rtx to rtx_insn *.
3722 (get_biv_step_1): Likewise for local "insn".
3723 (iv_analyze_expr): Likewise for param "insn".
3724 (iv_analyze_def): Likewise for local "insn".
3725 (iv_analyze_op): Likewise for param "insn".
3726 (iv_analyze): Likewise.
3727 (iv_analyze_result): Likewise.
3729 (suitable_set_for_replacement): Likewise.
3730 (simplify_using_initial_values): Likewise for local "insn".
3731 (iv_number_of_iterations): Likewise for param "insn".
3732 (check_simple_exit): Add checked cast to rtx_insn when invoking
3733 iv_number_of_iterations for now (until get_condition is
3736 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3737 "insn" from rtx to rtx_insn *.
3738 (analyze_insns_in_loop): Likewise for local "insn".
3740 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3742 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3744 (struct invariant): Likewise.
3745 (hash_invariant_expr_1): Likewise for param "insn".
3746 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3747 (find_exits): Likewise for local "insn".
3748 (create_new_invariant): Likewise for param "insn".
3749 (check_dependencies): Likewise.
3750 (find_invariant_insn): Likewise.
3751 (record_uses): Likewise.
3752 (find_invariants_insn): Likewise.
3753 (find_invariants_bb): Likewise for local "insn".
3754 (get_pressure_class_and_nregs): Likewise for param "insn".
3755 (calculate_loop_reg_pressure): Likewise for local "insn".
3757 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3759 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3761 (add_test): Likewise for locals "seq", "jump".
3762 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3764 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3766 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3768 (rebuild_jump_labels_chain): Likewise for param "chain".
3770 * cfgexpand.c (pass_expand::execute): Add checked cast to
3771 rtx_insn * when calling rebuild_jump_labels_chain in region where
3772 we know e->insns.r is non-NULL.
3774 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3776 (rebuild_jump_labels): Likewise.
3777 (rebuild_jump_labels_chain): Likewise for param "chain".
3778 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3779 (init_label_info): Likewise for param "f".
3780 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3781 "prev_nonjump_insn".
3782 (mark_all_labels): Likewise for param "f" and locals "insn",
3783 "prev_nonjump_insn".
3785 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3787 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3788 from rtx to rtx_insn *insn.
3789 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3790 (ira_add_allocno_copy): Likewise.
3791 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3793 (ira_create_copy): Likewise.
3794 (ira_add_allocno_copy): Likewise.
3795 (create_bb_allocnos): Likewise for local "insn".
3796 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3797 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3798 process_regs_for_copy for rtx_insn * param.
3799 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3800 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3801 process_regs_for_copy for rtx_insn * param.
3802 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3803 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3804 (record_operand_costs): Likewise.
3805 (scan_one_insn): Likewise for return type, and for param "insn".
3806 (process_bb_for_costs): Likewise for local "insn".
3807 (process_bb_node_for_hard_reg_moves): Likewise.
3808 * ira-emit.c (struct move): Likewise for field "insn".
3809 (create_move): Eliminate use of NULL_RTX when dealing with an
3811 (emit_move_list): Strengthen return type and locals "result",
3812 "insn" from rtx to rtx_insn *insn.
3813 (emit_moves): Likewise for locals "insns", "tmp".
3814 (ira_emit): Likewise for local "insn".
3815 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3817 (find_call_crossed_cheap_reg): Likewise.
3818 (process_bb_node_lives): Likewise for local "insn".
3819 * ira.c (decrease_live_ranges_number): Likewise.
3820 (compute_regs_asm_clobbered): Likewise.
3821 (build_insn_chain): Likewise.
3822 (find_moveable_pseudos): Likewise, also locals "def_insn",
3823 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3824 to rtx_insn **. Add a checked cast when assigning from
3825 "closest_use" into closest_uses array in a region where we know
3826 it's a non-NULL insn.
3827 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3829 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3830 "last_interesting_insn", "uin".
3831 (move_unallocated_pseudos): Likewise for locals "def_insn",
3832 "move_insn", "newinsn".
3834 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3836 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3837 Strengthen locals "done_label", "do_error" from rtx to
3839 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3840 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3842 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3843 "done_label", "do_error" to rtx_code_label * and local "last" to
3845 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3846 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3847 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3848 "after_lopart_neg", "do_overflow", "hipart_different" to
3849 rtx_code_label * and local "last" to rtx_insn *.
3851 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3853 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3854 "insn" and "move_insn" from rtx to rtx_insn *.
3856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3858 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3860 (cheap_bb_rtx_cost_p): Likewise.
3861 (first_active_insn): Likewise for return type and local "insn".
3862 (last_active_insn): Likewise for return type and locals "insn",
3864 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3866 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3868 (noce_try_move): Likewise for local "seq".
3869 (noce_try_store_flag): Likewise.
3870 (noce_try_store_flag_constants): Likewise.
3871 (noce_try_addcc): Likewise.
3872 (noce_try_store_flag_mask): Likewise.
3873 (noce_try_cmove): Likewise.
3874 (noce_try_minmax): Likewise.
3875 (noce_try_abs): Likewise.
3876 (noce_try_sign_mask): Likewise.
3877 (noce_try_bitop): Likewise.
3878 (noce_can_store_speculate_p): Likewise for local "insn".
3879 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3881 (check_cond_move_block): Likewise for local "insn".
3882 (cond_move_convert_if_block): Likewise.
3883 (cond_move_process_if_block): Likewise for locals "seq",
3885 (noce_find_if_block): Likewise for local "jump".
3886 (merge_if_block): Likewise for local "last".
3887 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
3888 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
3889 (block_has_only_trap): Likewise for return type and local "trap".
3890 (find_if_case_1): Likewise for local "jump".
3891 (dead_or_predicable): Likewise for locals "head", "end", "jump",
3894 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3896 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
3897 "last_insn", "loop_end" from rtx to rtx_insn *.
3899 * hw-doloop.c (scan_loop): Likewise for local "insn".
3900 (discover_loop): Likewise for param "tail_insn".
3901 (discover_loops): Likewise for local "tail".
3903 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
3904 cast to rtx_insn * when assigning from an rtx local to a
3905 hwloop_info's "last_insn" field.
3907 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3909 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
3910 (add_delay_dependencies): Strengthen local "pro" from rtx to
3912 (recompute_todo_spec): Likewise.
3913 (dep_cost_1): Likewise for locals "insn", "used".
3914 (schedule_insn): Likewise for local "dbg".
3915 (schedule_insn): Likewise for locals "pro", "next".
3916 (unschedule_insns_until): Likewise for local "con".
3917 (restore_pattern): Likewise for local "next".
3918 (estimate_insn_tick): Likewise for local "pro".
3919 (resolve_dependencies): Likewise for local "next".
3920 (fix_inter_tick): Likewise.
3921 (fix_tick_ready): Likewise for local "pro".
3922 (add_to_speculative_block): Likewise for locals "check", "twin",
3924 (sched_extend_bb): Likewise for locals "end", "insn".
3925 (init_before_recovery): Likewise for local "x".
3926 (sched_create_recovery_block): Likewise for local "barrier".
3927 (create_check_block_twin): Likewise for local "pro".
3928 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
3930 (unlink_bb_notes): Update for change to type of bb_header.
3931 Strengthen locals "prev", "label", "note", "next" from rtx to
3933 (clear_priorities): Likewise for local "pro".
3935 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3937 * gcse.c (struct occr): Strengthen field "insn" from rtx to
3939 (test_insn): Likewise for this global.
3940 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
3942 (oprs_anticipatable_p): Likewise.
3943 (oprs_available_p): Likewise.
3944 (insert_expr_in_table): Strengthen param "insn" from rtx to
3946 (hash_scan_set): Likewise.
3947 (hash_scan_clobber): Likewise.
3948 (hash_scan_call): Likewise.
3949 (hash_scan_insn): Likewise.
3950 (compute_hash_table_work): Likewise for local "insn".
3951 (process_insert_insn): Likewise for return type and local "pat".
3952 (insert_insn_end_basic_block): Likewise for locals "new_insn",
3953 "pat", "pat_end", "maybe_cc0_setter".
3954 (pre_edge_insert): Likewise for local "insn".
3955 (pre_insert_copy_insn): Likewise for param "insn".
3956 (pre_insert_copies): Likewise for local "insn".
3957 (struct set_data): Likewise for field "insn".
3958 (single_set_gcse): Likewise for param "insn".
3959 (gcse_emit_move_after): Likewise.
3960 (pre_delete): Likewise for local "insn".
3961 (update_bb_reg_pressure): Likewise for param "from" and local
3963 (should_hoist_expr_to_dom): Likewise for param "from".
3964 (hoist_code): Likewise for local "insn".
3965 (get_pressure_class_and_nregs): Likewise for param "insn".
3966 (calculate_bb_reg_pressure): Likewise for local "insn".
3967 (compute_ld_motion_mems): Likewise.
3969 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3971 * genpeep.c (main): Rename param back from "uncast_ins1" to
3972 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
3975 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
3977 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3980 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
3981 documentation to state it is only for VSX operations.
3983 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
3984 constraint only active if VSX.
3986 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
3987 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
3990 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3992 * fwprop.c (single_def_use_dom_walker::before_dom_children):
3993 Strengthen local "insn" from rtx to rtx_insn *.
3994 (use_killed_between): Likewise for param "target_insn".
3995 (all_uses_available_at): Likewise for param "target_insn" and
3997 (update_df_init): Likewise for params "def_insn", "insn".
3998 (update_df): Likewise for param "insn".
3999 (try_fwprop_subst): Likewise for param "def_insn" and local
4001 (free_load_extend): Likewise for param "insn".
4002 (forward_propagate_subreg): Likewise for param "def_insn" and
4004 (forward_propagate_asm): Likewise for param "def_insn" and local
4006 (forward_propagate_and_simplify): Likewise for param "def_insn"
4007 and local "use_insn".
4008 (forward_propagate_into): Likewise for locals "def_insn" and
4011 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4013 * function.c (emit_initial_value_sets): Strengthen local "seq"
4014 from rtx to rtx_insn *.
4015 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4017 (instantiate_virtual_regs): Likewise for local "insn".
4018 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4019 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4020 (expand_function_end): Likewise for locals "insn" and "seq".
4021 (epilogue_done): Likewise for local "insn".
4022 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4024 (reposition_prologue_and_epilogue_notes): Likewise for locals
4025 "insn", "last", "note", "first".
4026 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4027 (pass_match_asm_constraints::execute): Likewise for local "insn".
4029 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4031 * output.h (final_scan_insn): Strengthen return type from rtx to
4033 (final_forward_branch_p): Likewise for param.
4034 (current_output_insn): Likewise for this global.
4036 * final.c (rtx debug_insn): Likewise for this variable.
4037 (current_output_insn): Likewise.
4038 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4039 adding "insn" back in as an rtx_insn * with a checked cast, so
4040 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4042 (compute_alignments): Strengthen local "label" from rtx to
4044 (shorten_branches): Rename param from "first" to "uncast_first",
4045 introducing a new local rtx_insn * "first" using a checked cast to
4046 effectively strengthen "first" from rtx to rtx_insn * without
4047 affecting the type signature. Strengthen locals "insn", "seq",
4048 "next", "label" from rtx to rtx_insn *.
4049 (change_scope): Strengthen param "orig_insn" and local "insn" from
4051 (final_start_function): Rename param from "first" to "uncast_first",
4052 introducing a new local rtx_insn * "first" using a checked cast to
4053 effectively strengthen "first" from rtx to rtx_insn * without
4054 affecting the type signature. Strengthen local "insn" from rtx to
4056 (dump_basic_block_info): Strengthen param "insn" from rtx to
4058 (final): Rename param from "first" to "uncast_first",
4059 introducing a new local rtx_insn * "first" using a checked cast to
4060 effectively strengthen "first" from rtx to rtx_insn * without
4061 affecting the type signature. Strengthen locals "insn", "next"
4062 from rtx to rtx_insn *.
4063 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4065 (call_from_call_insn): Strengthen param "insn" from rtx to
4067 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4068 introducing a new local rtx_insn * "insn" using a checked cast to
4069 effectively strengthen "insn" from rtx to rtx_insn * without
4070 affecting the type signature. Strengthen return type and locals
4071 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4072 now-redundant checked cast to rtx_insn * from both invocations of
4073 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4074 introducing a local "call_insn" for use when invoking
4075 call_from_call_insn.
4076 (notice_source_line): Strengthen param "insn" from rtx to
4078 (leaf_function_p): Likewise for local "insn".
4079 (final_forward_branch_p): Likewise.
4080 (leaf_renumber_regs): Likewise for param "first".
4081 (rest_of_clean_state): Likewise for locals "insn" and "next".
4082 (self_recursive_call_p): Likewise for param "insn".
4083 (collect_fn_hard_reg_usage): Likewise for local "insn".
4084 (get_call_fndecl): Likewise for param "insn".
4085 (get_call_cgraph_rtl_info): Likewise.
4086 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4087 introducing a new local rtx_insn * "insn" using a checked cast to
4088 effectively strengthen "insn" from rtx to rtx_insn * without
4089 affecting the type signature.
4091 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4092 cast when assigning from param "insn" to current_output_insn.
4093 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4094 so that we can assign it back to current_output_insn.
4096 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4098 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4099 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4100 atmxt540s and atmxt540sreva devices.
4101 * config/avr/avr-tables.opt: Regenerate.
4102 * config/avr/t-multilib: Regenerate.
4103 * doc/avr-mmcu.texi: Regenerate.
4105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4107 * expr.c (convert_move): Strengthen local "insns" from rtx to
4109 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4110 "top_label" from rtx to rtx_code_label *.
4111 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4113 (emit_single_push_insn): Likewise for locals "prev", "last".
4114 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4115 to rtx_code_label *.
4116 (store_constructor): Likewise for locals "loop_start", "loop_end".
4117 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4119 (expand_expr_real_2): Likewise.
4120 (expand_expr_real_1): Strengthen local "label" from rtx to
4123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4125 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4126 from rtx to rtx_insn *.
4127 (store_bit_field_1): Likewise.
4128 (extract_bit_field_1): Likewise.
4129 (expand_mult_const): Likewise for local "insns".
4130 (expmed_mult_highpart): Strengthen local "label" from rtx to
4132 (expand_smod_pow2): Likewise.
4133 (expand_sdiv_pow2): Likewise.
4134 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4135 rtx_insn *. Strengthen locals "label", "label1", "label2",
4136 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4137 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4138 (emit_store_flag): Likewise.
4139 (emit_store_flag_force): Strengthen local "label" from rtx to
4141 (do_cmp_and_jump): Likewise for param "label".
4143 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4145 * explow.c (force_reg): Strengthen local "insn" from rtx to
4147 (adjust_stack_1): Likewise.
4148 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4149 "final_label", "available_label", "space_available" from rtx to
4151 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4152 (anti_adjust_stack_and_probe): Likewise.
4154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4156 * except.h (sjlj_emit_function_exit_after): Strengthen param
4157 "after" from rtx to rtx_insn *. This is only called with
4158 result of get_last_insn (in function.c) so type-change should be
4161 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4162 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4163 to rtx_insn *. These fields are only used from except.c so this
4164 type-change should be self-contained to this patch.
4166 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4167 local "last" from rtx to rtx_insn *.
4168 (dw2_build_landing_pads): Likewise for local "seq".
4169 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4170 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4171 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4173 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4175 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4176 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4177 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4178 referring to an insn. Strengthen local "dispatch_label" from
4179 rtx to rtx_code_label *.
4180 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4182 (expand_eh_return): Strengthen local "around_label" from
4183 rtx to rtx_code_label *.
4184 (convert_to_eh_region_ranges): Strengthen locals "iter",
4185 "last_action_insn", "first_no_action_insn",
4186 "first_no_action_insn_before_switch",
4187 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4189 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4191 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4192 from rtx to rtx_insn *.
4193 (cached_next_real_insn): Likewise.
4194 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4196 (dwarf2out_var_location): Strengthen locals "next_real",
4197 "next_note", "expected_next_loc_note", "last_start", "insn" from
4200 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4202 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4203 from rtx to rtx_insn *.
4204 (create_pseudo_cfg): Likewise for local "insn".
4206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4208 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4209 from rtx to rtx_insn *.
4210 (df_bb_regno_last_def_find): Likewise.
4212 * df-problems.c (df_rd_bb_local_compute): Likewise.
4213 (df_lr_bb_local_compute): Likewise.
4214 (df_live_bb_local_compute): Likewise.
4215 (df_chain_remove_problem): Likewise.
4216 (df_chain_create_bb): Likewise.
4217 (df_word_lr_bb_local_compute): Likewise.
4218 (df_remove_dead_eq_notes): Likewise for param "insn".
4219 (df_note_bb_compute): Likewise for local "insn".
4220 (simulate_backwards_to_point): Likewise.
4221 (df_md_bb_local_compute): Likewise.
4223 * df-scan.c (df_scan_free_bb_info): Likewise.
4224 (df_scan_start_dump): Likewise.
4225 (df_scan_start_block): Likewise.
4226 (df_install_ref_incremental): Likewise for local "insn".
4227 (df_insn_rescan_all): Likewise.
4228 (df_reorganize_refs_by_reg_by_insn): Likewise.
4229 (df_reorganize_refs_by_insn_bb): Likewise.
4230 (df_recompute_luids): Likewise.
4231 (df_bb_refs_record): Likewise.
4232 (df_update_entry_exit_and_calls): Likewise.
4233 (df_bb_verify): Likewise.
4235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4237 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4238 "first_note" from rtx to rtx_insn *.
4239 (get_node_of_insn): Likewise for param 2 "insn".
4240 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4242 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4244 (mem_write_insn_p): Likewise.
4245 (mem_access_insn_p): Likewise.
4246 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4247 (def_has_ccmode_p): Likewise for param "insn".
4248 (add_cross_iteration_register_deps): Likewise for locals
4249 "def_insn" and "use_insn".
4250 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4251 (build_intra_loop_deps): Likewise for local "src_insn".
4252 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4254 (get_node_of_insn): Likewise for param "insn".
4256 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4258 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4259 (deletable_insn_p): Strengthen param "insn" from rtx to
4260 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4261 find_call_stack_args, since this is guarded by CALL_P (insn).
4262 (marked_insn_p): Strengthen param "insn" from rtx to
4264 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4265 invoking find_call_stack_args, since this is guarded by
4267 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4268 rtx_insn *; we know this is an insn since this was called by
4270 (mark_nonreg_stores_2): Likewise.
4271 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4273 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4274 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4276 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4277 from rtx to rtx_insn *.
4278 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4280 (delete_unmarked_insns): Likewise for locals "insn", "next".
4281 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4282 (mark_reg_dependencies): Likewise for param "insn".
4283 (rest_of_handle_ud_dce): Likewise for local "insn".
4284 (word_dce_process_block): Likewise.
4285 (dce_process_block): Likewise.
4287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4289 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4290 from rtx to rtx_insn *.
4291 (struct change_cc_mode_args): Likewise for field "insn".
4292 (this_insn): Strengthen from rtx to rtx_insn *.
4293 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4295 (validate_canon_reg): Strengthen param "insn" from rtx to
4297 (canon_reg): Likewise.
4298 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4300 (record_jump_equiv): Strengthen param "insn" from rtx to
4302 (try_back_substitute_reg): Likewise, also for locals "prev",
4304 (find_sets_in_insn): Likewise for param "insn".
4305 (canonicalize_insn): Likewise.
4306 (cse_insn): Likewise. Add a checked cast.
4307 (invalidate_from_clobbers): Likewise for param "insn".
4308 (invalidate_from_sets_and_clobbers): Likewise.
4309 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4311 (cse_prescan_path): Strengthen local "insn" from rtx to
4313 (cse_extended_basic_block): Likewise for locals "insn" and
4315 (cse_main): Likewise for param "f".
4316 (check_for_label_ref): Likewise for local "insn".
4317 (set_live_p): Likewise for second param ("insn").
4318 (insn_live_p): Likewise for first param ("insn") and for local
4320 (cse_change_cc_mode_insn): Likewise for first param "insn".
4321 (cse_change_cc_mode_insns): Likewise for first and second params
4323 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4325 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4328 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4330 Anna Tikhonova <anna.tikhonova@intel.com>
4331 Ilya Tocar <ilya.tocar@intel.com>
4332 Andrey Turetskiy <andrey.turetskiy@intel.com>
4333 Ilya Verbin <ilya.verbin@intel.com>
4334 Kirill Yukhin <kirill.yukhin@intel.com>
4335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4337 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4339 * config/i386/sse.md
4340 (define_mode_iterator VI248_AVX2): Delete.
4341 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4342 (define_mode_iterator VI48_AVX2): Ditto.
4343 (define_insn <shift_insn><mode>3): Delete.
4344 (define_insn "<shift_insn><mode>3<mask_name>" with
4345 VI2_AVX2_AVX512BW): New.
4346 (define_insn "<shift_insn><mode>3<mask_name>" with
4349 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4350 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4351 Anna Tikhonova <anna.tikhonova@intel.com>
4352 Ilya Tocar <ilya.tocar@intel.com>
4353 Andrey Turetskiy <andrey.turetskiy@intel.com>
4354 Ilya Verbin <ilya.verbin@intel.com>
4355 Kirill Yukhin <kirill.yukhin@intel.com>
4356 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4358 * config/i386/sse.md
4359 (define_mode_iterator VI4F_BRCST32x2): New.
4360 (define_mode_attr 64x2_mode): Ditto.
4361 (define_mode_attr 32x2mode): Ditto.
4362 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4363 with VI4F_BRCST32x2): Ditto.
4364 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4365 with V16FI mode iterator): Ditto.
4366 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4368 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4369 with VI8F_BRCST64x2): Ditto.
4371 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4372 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4373 Anna Tikhonova <anna.tikhonova@intel.com>
4374 Ilya Tocar <ilya.tocar@intel.com>
4375 Andrey Turetskiy <andrey.turetskiy@intel.com>
4376 Ilya Verbin <ilya.verbin@intel.com>
4377 Kirill Yukhin <kirill.yukhin@intel.com>
4378 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4380 * config/i386/sse.md
4381 (define_mode_iterator VI8_AVX512VL): New.
4382 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4384 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4386 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4387 (define_mode_iterator V48_AVX512VL): New.
4388 (define_mode_iterator V12_AVX512VL): Ditto.
4389 (define_insn <avx512>_load<mode>_mask): Split into two similar
4390 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4391 Refactor output template.
4392 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4394 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4396 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4398 (reg_available_p): Likewise for param "insn".
4399 (insert_set_in_table): Likewise.
4400 (hash_scan_set): Likewise.
4401 (hash_scan_insn): Likewise.
4402 (make_set_regs_unavailable): Likewise.
4403 (compute_hash_table_work): Likewise for local "insn".
4404 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4406 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4407 (try_replace_reg): Likewise.
4408 (find_avail_set): Likewise.
4409 (cprop_jump): Likewise for params "setcc", "jump".
4410 (constprop_register): Likewise for param "insn".
4411 (cprop_insn): Likewise.
4412 (do_local_cprop): Likewise.
4413 (local_cprop_pass): Likewise for local "insn".
4414 (bypass_block): Likewise for params "setcc" and "jump".
4415 (bypass_conditional_jumps): Likewise for locals "setcc" and
4417 (one_cprop_pass): Likewise for local "insn".
4419 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4421 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4422 from rtx to rtx_insn *.
4423 (struct comparison): Likewise, also for field "prev_clobber".
4424 (conforming_compare): Likewise for param "insn".
4425 (arithmetic_flags_clobber_p): Likewise.
4426 (find_flags_uses_in_insn): Likewise.
4427 (find_comparison_dom_walker::before_dom_children): Likewise for
4428 locals "insn", "next", "last_clobber".
4429 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4433 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4434 "insn" from rtx to rtx_insn *.
4435 (single_set_for_csa): Likewise for param "insn".
4436 (record_one_stack_ref): Likewise.
4437 (try_apply_stack_adjustment): Likewise.
4438 (struct record_stack_refs_data): Likewise for field "insn".
4439 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4440 (prev_active_insn_bb): Likewise for return type and param "insn".
4441 (next_active_insn_bb): Likewise.
4442 (force_move_args_size_note): Likewise for params "prev" and "last"
4443 and locals "test", "next_candidate", "prev_candidate".
4444 (combine_stack_adjustments_for_block): Strengthen locals
4445 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4448 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4450 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4451 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4452 (subst_insn): Likewise for this variable.
4453 (added_links_insn): Likewise.
4454 (struct insn_link): Likewise for field "insn".
4455 (alloc_insn_link): Likewise for param "insn".
4456 (struct undobuf): Likewise for field "other_insn".
4457 (find_single_use): Likewise for param "insn" and local "next".
4458 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4459 (delete_noop_moves): Likewise for locals "insn", "next".
4460 (create_log_links): Likewise for locals "insn", "use_insn".
4461 Strengthen local "next_use" from rtx * to rtx_insn **.
4462 (insn_a_feeds_b): Likewise for params "a", "b".
4463 (combine_instructions): Likewise for param "f" and locals "insn",
4464 "next", "prev", "first", "last_combined_insn", "link", "link1",
4465 "temp". Replace use of NULL_RTX with NULL when referring to
4467 (setup_incoming_promotions): Likewise for param "first"
4468 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4469 (can_combine_p): Likewise for params "insn", "i3", "pred",
4470 "pred2", "succ", "succ2" and for local "p".
4471 (combinable_i3pat): Likewise for param "i3".
4472 (cant_combine_insn_p): Likewise for param "insn".
4473 (likely_spilled_retval_p): Likewise.
4474 (adjust_for_new_dest): Likewise.
4475 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4476 (try_combine): Likewise for return type and for params "i3", "i2",
4477 "i1", "i0", "last_combined_insn", and for locals "insn",
4478 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4479 "i0_insn". Eliminate local "tem" in favor of new locals
4480 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4481 checked cast for now to rtx_insn * on the return type of
4482 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4484 (find_split_point): Strengthen param "insn" from rtx to
4486 (simplify_set): Likewise for local "other_insn".
4487 (recog_for_combine): Likewise for param "insn".
4488 (record_value_for_reg): Likewise.
4489 (record_dead_and_set_regs_1): Likewise for local
4491 (record_dead_and_set_regs): Likewise for param "insn".
4492 (record_promoted_value): Likewise.
4493 (check_promoted_subreg): Likewise.
4494 (get_last_value_validate): Likewise.
4495 (reg_dead_at_p): Likewise.
4496 (move_deaths): Likewise for param "to_insn".
4497 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4498 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4499 in favor of new locals "tem_note" and "tem_insn", the latter being
4501 (distribute_links): Strengthen locals "place", "insn" from rtx to
4504 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4506 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4508 (can_delete_label_p): Require a const rtx_code_label * rather than
4510 (delete_insn): Add checked cast to rtx_code_label * when we know
4511 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4513 (delete_insn_chain): Strengthen locals "prev" and "current" from
4514 rtx to rtx_insn *. Add a checked cast when assigning from
4515 "finish" (strengthening the params will come later). Add a
4516 checked cast to rtx_note * in region where we know
4518 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4520 (compute_bb_for_insn): Likewise.
4521 (free_bb_for_insn): Likewise for local "insn".
4522 (compute_bb_for_insn): Likewise.
4523 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4524 local "insn" from rtx to rtx_insn *
4525 (flow_active_insn_p): Require a const rtx_insn * rather than a
4527 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4529 (can_fallthru): Likewise for locals "insn" and "insn2".
4530 (bb_note): Likewise for local "note".
4531 (first_insn_after_basic_block_note): Likewise for local "note" and
4533 (rtl_split_block): Likewise for locals "insn" and "next".
4534 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4536 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4537 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4539 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4540 them), "kill_from", "barrier", "new_insn".
4541 (patch_jump_insn): Likewise for params "insn", "old_label".
4542 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4543 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4544 "old_label", "new_label".
4545 (rtl_tidy_fallthru_edge): Likewise for local "q".
4546 (rtl_split_edge): Likewise for locals "before", "last".
4547 (commit_one_edge_insertion): Likewise for locals "before",
4548 "after", "insns", "tmp", "last", adding a checked cast where
4549 currently necessary.
4550 (commit_edge_insertions): Likewise.
4551 (rtl_dump_bb): Likewise for locals "insn", "last".
4552 (print_rtl_with_bb): Likewise for local "x".
4553 (rtl_verify_bb_insns): Likewise for local "x".
4554 (rtl_verify_bb_pointers): Likewise for local "insn".
4555 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4557 (rtl_verify_fallthru): Likewise for local "insn".
4558 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4559 (purge_dead_edges): Likewise for local "insn".
4560 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4561 (skip_insns_after_block): Likewise for return type and for locals
4562 "insn", "last_insn", "next_head", "prev".
4563 (record_effective_endpoints): Likewise for locals "next_insn",
4565 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4566 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4567 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4568 (duplicate_insn_chain): For now, add checked cast from rtx to
4569 rtx_insn * when returning insn.
4570 (cfg_layout_duplicate_bb): Likewise for local "insn".
4571 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4573 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4574 (rtl_block_empty_p): Likewise.
4575 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4576 "split_point", "last".
4577 (rtl_block_ends_with_call_p): Likewise for local "insn".
4578 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4580 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4581 "split_at_insn" from rtx to rtx_insn *.
4582 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4583 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4584 to const rtx_insn *.
4585 (rtl_account_profile_record): Likewise.
4587 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4589 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4591 (average_num_loop_insns): Likewise.
4592 (init_set_costs): Likewise for local "seq".
4593 (seq_cost): Likewise for param "seq", from const_rtx to const
4596 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4598 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4601 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4603 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4604 "f1" and "f2" from rtx * to rtx_insn **.
4605 (flow_find_head_matching_sequence): Likewise.
4607 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4608 "cbranch_insn" from rtx to rtx_insn *.
4609 (thread_jump): Likewise for local "insn".
4610 (try_forward_edges): Likewise for local "last".
4611 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4612 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4614 (can_replace_by): Likewise for params "i1", "i2".
4615 (old_insns_match_p): Likewise.
4616 (merge_notes): Likewise.
4617 (walk_to_nondebug_insn): Likewise for param "i1".
4618 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4619 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4620 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4621 (flow_find_head_matching_sequence): Strengthen params "f1" and
4622 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4623 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4625 (outgoing_edges_match): Likewise for locals "last1", "last2".
4626 (try_crossjump_to_edge): Likewise for local "insn".
4627 Replace call to for_each_rtx with for_each_rtx_in_insn.
4629 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4630 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4631 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4632 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4633 (try_optimize_cfg): Strengthen local "last" from rtx to
4635 (delete_dead_jumptables): Likewise for locals "insn", "next",
4638 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4639 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4640 "rtx else_first_tail", to reflect the basic-block.h changes above.
4642 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4644 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4646 (purge_dead_tablejump_edges): Likewise.
4647 (find_bb_boundaries): Likewise for locals "insn", "end",
4648 "flow_transfer_insn".
4650 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4652 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4653 "ins" and "prev" from rtx to rtx_insn *.
4655 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4657 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4659 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4660 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4662 (load_register_parameters): Likewise for local "before_arg".
4663 (check_sibcall_argument_overlap): Likewise for param "insn".
4664 (expand_call): Likewise for locals "normal_call_insns",
4665 "tail_call_insns", "insns", "before_call", "after_args",
4666 "before_arg", "last", "prev". Strengthen one of the "last" from
4667 rtx to rtx_call_insn *.
4668 (fixup_tail_calls): Strengthen local "insn" from rtx to
4670 (emit_library_call_value_1): Likewise for locals "before_call" and
4673 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4675 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4676 and "last" from rtx to rtx_insn *.
4677 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4678 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4680 (expand_errno_check): Strengthen local "lab" from rtx to
4682 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4684 (expand_builtin_mathfn_2): Likewise.
4685 (expand_builtin_mathfn_ternary): Likewise.
4686 (expand_builtin_mathfn_3): Likewise.
4687 (expand_builtin_interclass_mathfn): Likewise for local "last".
4688 (expand_builtin_int_roundingfn): Likewise for local "insns".
4689 (expand_builtin_int_roundingfn_2): Likewise.
4690 (expand_builtin_strlen): Likewise for local "before_strlen".
4691 (expand_builtin_strncmp): Likewise for local "seq".
4692 (expand_builtin_signbit): Likewise for local "last".
4693 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4694 from rtx to rtx_code_label *.
4695 (expand_stack_restore): Strengthen local "prev" from rtx to
4698 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4700 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4702 (struct btr_def_s): Likewise.
4703 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4705 (add_btr_def): Likewise.
4706 (new_btr_user): Likewise.
4707 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4709 (link_btr_uses): Likewise.
4710 (move_btr_def): Likewise for locals "insp", "old_insn",
4711 "new_insn". Add checked cast to rtx_insn * for now on result of
4713 (can_move_up): Strengthen param "insn" from const_rtx to
4716 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4718 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4720 (get_uncond_jump_length): Likewise for locals "label", "jump".
4721 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4723 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4724 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4725 (find_jump_block): Likewise for local "insn".
4726 (fix_crossing_conditional_branches): Likewise for locals
4727 "old_jump", "new_jump".
4728 (fix_crossing_unconditional_branches): Likewise for locals
4729 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4730 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4732 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4734 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4736 (struct mem_insn): Likewise for field "insn".
4737 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4738 (reg_next_inc_use): Likewise.
4739 (reg_next_def): Likewise.
4740 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4741 from rtx to rtx_insn *.
4742 (move_insn_before): Likewise for param "next_insn" and local "insns".
4743 (attempt_change): Likewise for local "mov_insn".
4744 (try_merge): Likewise for param "last_insn".
4745 (get_next_ref): Likewise for return type and local "insn".
4746 Strengthen param "next_array" from rtx * to rtx_insn **.
4747 (parse_add_or_inc): Strengthen param "insn" from rtx to
4749 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4751 (merge_in_block): Likewise for locals "insn", "curr",
4753 (pass_inc_dec::execute): Update allocations of the arrays to
4754 reflect the stronger types.
4756 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4758 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4759 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4760 from rtx to rtx_code_label *.
4762 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4764 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4767 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4769 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4770 generated a warning and prevented bootstrapping the compiler.
4772 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4774 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4777 * jump.c (delete_related_insns): Likewise, also for locals "next"
4780 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4782 * genautomata.c (output_internal_insn_latency_func): When writing
4783 the function "internal_insn_latency" to insn-automata.c,
4784 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4785 allowing the optional guard function of (define_bypass) clauses to
4786 expect a pair of rtx_insn *, rather than a pair of rtx.
4787 (output_insn_latency_func): When writing the function
4788 "insn_latency", add an "uncast_" prefix to params "insn" and
4789 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4790 using checked casts from the params, thus enabling the above
4791 change to the generated "internal_insn_latency" function.
4793 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4795 PR tree-optimization/62091
4796 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4797 handle correctly arrays.
4798 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4800 (record_known_type): Walk into inner type.
4801 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4802 condition on no type changes.
4804 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4806 * genattrtab.c (write_attr_get): Within the generated get_attr_
4807 functions, rename param "insn" to "uncast_insn" and reintroduce
4808 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4809 is an rtx_insn * within insn-attrtab.c
4811 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4813 * output.h (peephole): Strengthen return type from rtx to
4815 * rtl.h (delete_for_peephole): Likewise for both params.
4816 * genpeep.c (main): In generated "peephole" function, strengthen
4817 return type and local "insn" from rtx to rtx_insn *. For now,
4818 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4819 rtx_insn *, with a checked cast.
4820 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4821 locals "insn", "next", "prev" from rtx to rtx_insn *.
4823 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4825 PR tree-optimization/62112
4826 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4827 * gimple-iterator.h (gsi_replace): Return bool.
4828 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4829 moved from ref_may_alias_global_p.
4830 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4832 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4833 (stmt_kills_ref_p_1): Rename...
4834 (stmt_kills_ref_p): ... to this.
4835 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4836 stmt_kills_ref_p): Declare.
4837 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4838 Move the self-assignment case...
4839 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4841 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4843 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4845 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4846 "after". For now, don't strengthen param "trial", which requires
4847 adding checked casts when returning it.
4849 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4851 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4852 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4853 "var_location" hook from rtx to rtx_insn *.
4854 (debug_nothing_rtx): Delete in favor of...
4855 (debug_nothing_rtx_code_label): New prototype.
4856 (debug_nothing_rtx_rtx): Delete unused prototype.
4857 (debug_nothing_rtx_insn): New prototype.
4859 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4860 invoking debug_hooks->var_location (in two places, one in a NOTE
4861 case of a switch statement, the other guarded by a CALL_P
4862 conditional. Add checked cast to rtx_code_label * when invoking
4863 debug_hooks->label (within CODE_LABEL case of switch statement).
4865 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4866 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4867 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4868 (xcoff_debug_hooks): Likewise.
4869 * debug.c (do_nothing_debug_hooks): Likewise.
4870 (debug_nothing_rtx): Delete in favor of...
4871 (debug_nothing_rtx_insn): New function.
4872 (debug_nothing_rtx_rtx): Delete unused function.
4873 (debug_nothing_rtx_code_label): New function.
4874 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4875 debug_nothing_rtx to debug_nothing_rtx_code_label.
4876 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4878 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4879 debug_nothing_rtx to debug_nothing_rtx_insn.
4880 (sdbout_label): Strengthen param "insn" from rtx to
4882 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4883 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4884 "var_location" hook from debug_nothing_rtx to
4885 debug_nothing_rtx_insn.
4887 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4889 * recog.h (insn_output_fn): Update this function typedef to match
4890 the changes below to the generated output functions, strengthening
4891 the 2nd param from rtx to rtx_insn *.
4893 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
4894 insn when invoking an output function, to match the new signature
4895 of insn_output_fn with a stronger second param.
4897 * genconditions.c (write_header): In the generated code for
4898 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
4899 to match the other changes in this patch.
4901 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
4902 the generated "gen_" functions from rtx to rtx_insn * within their
4905 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
4906 the subfunctions within the generated "recog_", "split", "peephole2"
4907 function trees from rtx to rtx_insn *. For now, the top-level
4908 generated functions ("recog", "split", "peephole2") continue to
4909 take a plain rtx for "insn", to avoid introducing dependencies on
4910 other patches. Rename this 2nd param from "insn" to
4911 "uncast_insn", and reintroduce "insn" as a local variable of type
4912 rtx_insn *, initialized at the top of the generated function with
4913 a checked cast on "uncast_insn".
4914 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
4915 the generated "gen_" functions from rtx to rtx_insn * within their
4918 * genoutput.c (process_template): Strengthen the 2nd param within
4919 the generated "output_" functions "insn" from rtx to rtx_insn *.
4921 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
4923 * tree-profile.c (tree_profiling): Skip external functions
4924 when doing coverage instrumentation.
4925 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
4927 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4929 * config/rs6000/altivec.h (vec_cpsgn): New #define.
4930 (vec_mergee): Likewise.
4931 (vec_mergeo): Likewise.
4932 (vec_cntlz): Likewise.
4933 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
4934 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
4935 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
4937 * doc/extend.texi: Document various forms of vec_cpsgn,
4938 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
4939 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
4940 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
4941 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
4942 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
4944 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4946 * config/rs6000/rs6000.c (context.h): New include.
4947 (tree-pass.h): Likewise.
4948 (make_pass_analyze_swaps): New decl.
4949 (rs6000_option_override): Register pass_analyze_swaps.
4950 (swap_web_entry): New subsclass of web_entry_base (df.h).
4951 (special_handling_values): New enum.
4952 (union_defs): New function.
4953 (union_uses): Likewise.
4954 (insn_is_load_p): Likewise.
4955 (insn_is_store_p): Likewise.
4956 (insn_is_swap_p): Likewise.
4957 (rtx_is_swappable_p): Likewise.
4958 (insn_is_swappable_p): Likewise.
4959 (chain_purpose): New enum.
4960 (chain_contains_only_swaps): New function.
4961 (mark_swaps_for_removal): Likewise.
4962 (swap_const_vector_halves): Likewise.
4963 (adjust_subreg_index): Likewise.
4964 (permute_load): Likewise.
4965 (permute_store): Likewise.
4966 (handle_special_swappables): Likewise.
4967 (replace_swap_with_copy): Likewise.
4968 (dump_swap_insn_table): Likewise.
4969 (rs6000_analyze_swaps): Likewise.
4970 (pass_data_analyze_swaps): New pass_data.
4971 (pass_analyze_swaps): New rtl_opt_pass.
4972 (make_pass_analyze_swaps): New function.
4973 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
4975 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4977 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
4978 type from rtx to rtx_insn *.
4979 (create_copy_of_insn_rtx): Likewise.
4980 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
4981 (create_copy_of_insn_rtx): Likewise, also for local "res".
4983 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4985 * rtl.h (find_first_parameter_load): Strengthen return type from
4987 * rtlanal.c (find_first_parameter_load): Strengthen return type
4988 from rtx to rtx_insn *. Add checked cast for now, to postpone
4989 strengthening the params.
4991 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4994 * diagnostic.c: Set default caret.
4995 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
4997 * diagnostic.h (struct diagnostic_context):
4999 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5001 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5002 (sel_bb_head): Strengthen return type insn_t (currently just an
5004 (sel_bb_end): Likewise.
5006 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5007 (sel_bb_head): Strengthen return type and local "head" from
5008 insn_t (currently just an rtx) to rtx_insn *.
5009 (sel_bb_end): Likewise for return type.
5010 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5013 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5015 * basic-block.h (get_last_bb_insn): Strengthen return type from
5017 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5020 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5023 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5025 (diagnostic_report_diagnostic): ... from here.
5026 * toplev.c (general_init): Move code to c-family.
5028 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5030 * df.h (web_entry_base): Replace existing struct web_entry with a
5031 new class web_entry_base with only the predecessor member.
5032 (unionfind_root): Remove declaration and move to class member.
5033 (unionfind_union): Remove declaration and move to friend
5035 (union_defs): Remove declaration.
5036 * web.c (web_entry_base::unionfind_root): Modify to be member
5037 function and adjust accessors.
5038 (unionfind_union): Modify to be friend function and adjust
5040 (web_entry): New subclass of web_entry_base containing the reg
5042 (union_match_dups): Modify for struct -> class changes.
5043 (union_defs): Likewise.
5044 (entry_register): Likewise.
5045 (pass_web::execute): Likewise.
5047 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5049 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5050 builtin define __VEC_ELEMENT_REG_ORDER__.
5052 2014-08-20 Martin Jambor <mjambor@suse.cz>
5053 Wei Mi <wmi@google.com>
5057 * tree-ssa-operands.c (update_stmt_operands): Remove
5058 MODIFIED_NORETURN_CALLS.
5059 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5060 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5061 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5062 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5063 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5064 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5065 (gimple_call_set_ctrl_altering): New func.
5066 (gimple_call_ctrl_altering_p): Ditto.
5067 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5068 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5069 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5070 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5071 remove MODIFIED_NORETURN_CALLS.
5073 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5075 * coverage.c (coverage_compute_profile_id): Return non-0;
5076 also handle symbols with unique name.
5077 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5079 2014-08-20 Steve Ellcey <sellcey@mips.com>
5082 * doc/sourcebuild.texi (non_strict_align): New.
5084 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5086 * cgraphunit.c (ipa_passes, compile): Reshedule
5087 symtab_remove_unreachable_nodes passes; update comments.
5088 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5089 TODO_remove_functions before the pass; the functions ought to be
5091 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5092 TODO_remove_functions.
5093 * passes.c (pass_data_early_local_passes): Do not schedule function
5095 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5097 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5100 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5101 before setting the option.
5102 * diagnostic.c (diagnostic_classify_diagnostic): Record
5103 command-line status.
5105 2014-08-20 Richard Biener <rguenther@suse.de>
5108 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5109 to build uint{16,32,64}_type_node.
5111 2014-08-20 Terry Guo <terry.guo@arm.com>
5113 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5114 with immediate_operand.
5116 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5118 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5119 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5122 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5124 PR preprocessor/51303
5125 * incpath.c (remove_duplicates): Use cpp_warning.
5127 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5131 * doc/options.texi (CPP): Document it.
5132 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5133 * optc-gen.awk: Handle CPP.
5134 * opth-gen.awk: Likewise.
5136 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5138 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5140 (duplicate_insn_chain): Likewise.
5141 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5142 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5143 checked cast for now (until we can strengthen the params in the
5145 (duplicate_insn_chain): Likewise.
5147 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5149 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5151 (prev_cc0_setter): Likewise.
5153 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5154 rtx_insn *, adding checked casts for now as necessary.
5155 (prev_cc0_setter): Likewise.
5157 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5159 * expr.h (emit_move_insn): Strengthen return type from rtx to
5161 (emit_move_insn_1): Likewise.
5162 (emit_move_complex_push): Likewise.
5163 (emit_move_complex_parts): Likewise.
5165 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5166 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5168 (emit_move_complex_push): Strengthen return type from rtx to
5170 (emit_move_complex): Likewise, also for local "ret".
5171 (emit_move_ccmode): Likewise.
5172 (emit_move_multi_word): Likewise for return type and locals
5174 (emit_move_insn_1): Likewise for return type and locals "result",
5176 (emit_move_insn): Likewise for return type and local "last_insn".
5177 (compress_float_constant): Likewise.
5179 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5181 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5182 from rtx to rtx_insn *.
5184 * rtl.h (emit_insn_before): Likewise.
5185 (emit_insn_before_noloc): Likewise.
5186 (emit_insn_before_setloc): Likewise.
5187 (emit_jump_insn_before): Likewise.
5188 (emit_jump_insn_before_noloc): Likewise.
5189 (emit_jump_insn_before_setloc): Likewise.
5190 (emit_call_insn_before): Likewise.
5191 (emit_call_insn_before_noloc): Likewise.
5192 (emit_call_insn_before_setloc): Likewise.
5193 (emit_debug_insn_before): Likewise.
5194 (emit_debug_insn_before_noloc): Likewise.
5195 (emit_debug_insn_before_setloc): Likewise.
5196 (emit_label_before): Likewise.
5197 (emit_insn_after): Likewise.
5198 (emit_insn_after_noloc): Likewise.
5199 (emit_insn_after_setloc): Likewise.
5200 (emit_jump_insn_after): Likewise.
5201 (emit_jump_insn_after_noloc): Likewise.
5202 (emit_jump_insn_after_setloc): Likewise.
5203 (emit_call_insn_after): Likewise.
5204 (emit_call_insn_after_noloc): Likewise.
5205 (emit_call_insn_after_setloc): Likewise.
5206 (emit_debug_insn_after): Likewise.
5207 (emit_debug_insn_after_noloc): Likewise.
5208 (emit_debug_insn_after_setloc): Likewise.
5209 (emit_label_after): Likewise.
5210 (emit_insn): Likewise.
5211 (emit_debug_insn): Likewise.
5212 (emit_jump_insn): Likewise.
5213 (emit_call_insn): Likewise.
5214 (emit_label): Likewise.
5215 (gen_clobber): Likewise.
5216 (emit_clobber): Likewise.
5217 (gen_use): Likewise.
5218 (emit_use): Likewise.
5221 (emit_barrier_before): Strengthen return type from rtx to
5223 (emit_barrier_after): Likewise.
5224 (emit_barrier): Likewise.
5226 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5227 from rtx to rtx_insn *. Add checked casts for now when converting
5228 "last" from rtx to rtx_insn *.
5229 (emit_insn_before_noloc): Likewise for return type.
5230 (emit_jump_insn_before_noloc): Likewise.
5231 (emit_call_insn_before_noloc): Likewise.
5232 (emit_debug_insn_before_noloc): Likewise.
5233 (emit_barrier_before): Strengthen return type and local "insn"
5234 from rtx to rtx_barrier *.
5235 (emit_label_before): Strengthen return type from rtx to
5236 rtx_insn *. Add checked cast for now when returning param
5237 (emit_pattern_after_noloc): Strengthen return type from rtx to
5238 rtx_insn *. Add checked casts for now when converting "last" from
5240 (emit_insn_after_noloc): Strengthen return type from rtx to
5242 (emit_jump_insn_after_noloc): Likewise.
5243 (emit_call_insn_after_noloc): Likewise.
5244 (emit_debug_insn_after_noloc): Likewise.
5245 (emit_barrier_after): Strengthen return type from rtx to
5247 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5248 Add checked cast for now when converting "label" from rtx to
5250 (emit_pattern_after_setloc): Strengthen return type from rtx to
5251 rtx_insn *. Add checked casts for now when converting "last" from
5253 (emit_pattern_after): Strengthen return type from rtx to
5255 (emit_insn_after_setloc): Likewise.
5256 (emit_insn_after): Likewise.
5257 (emit_jump_insn_after_setloc): Likewise.
5258 (emit_jump_insn_after): Likewise.
5259 (emit_call_insn_after_setloc): Likewise.
5260 (emit_call_insn_after): Likewise.
5261 (emit_debug_insn_after_setloc): Likewise.
5262 (emit_debug_insn_after): Likewise.
5263 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5264 when converting "last" from rtx to rtx_insn *.
5265 (emit_pattern_before): Strengthen return type from rtx to
5267 (emit_insn_before_setloc): Likewise.
5268 (emit_insn_before): Likewise.
5269 (emit_jump_insn_before_setloc): Likewise.
5270 (emit_jump_insn_before): Likewise.
5271 (emit_call_insn_before_setloc): Likewise.
5272 (emit_call_insn_before): Likewise.
5273 (emit_debug_insn_before_setloc): Likewise.
5274 (emit_debug_insn_before): Likewise.
5275 (emit_insn): Strengthen return type and locals "last", "insn",
5276 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5277 within cases where we know we have an insn.
5278 (emit_debug_insn): Likewise.
5279 (emit_jump_insn): Likewise.
5280 (emit_call_insn): Strengthen return type and local "insn" from rtx
5282 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5283 a checked cast to rtx_insn * for now on "label".
5284 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5285 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5286 (emit_use): Likewise.
5287 (gen_use): Likewise, also for local "seq".
5288 (emit): Likewise for return type and local "insn".
5289 (rtx_insn): Likewise for return type and local "new_rtx".
5291 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5292 from rtx to rtx_barrier *.
5294 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5295 changed return type from rtx to rtx_insn *, we must update
5296 "emit_fn" type, and this in turn means updating...
5297 (frame_insn): ...this. Strengthen return type from rtx to
5298 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5300 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5302 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5303 rtx to rtx_jump_table_data *. Also for local.
5304 * rtl.h (emit_jump_table_data): Likewise.
5306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5308 * basic-block.h (create_basic_block_structure): Strengthen third
5309 param "bb_note" from rtx to rtx_note *.
5310 * rtl.h (emit_note_before): Strengthen return type from rtx to
5312 (emit_note_after): Likewise.
5313 (emit_note): Likewise.
5314 (emit_note_copy): Likewise. Also, strengthen param similarly.
5315 * function.h (struct rtl_data): Strengthen field
5316 "x_stack_check_probe_note" from rtx to rtx_note *.
5318 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5319 from rtx to rtx_note *.
5320 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5321 "bb_note" from rtx to rtx_note *.
5322 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5323 when calling emit_note_copy.
5324 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5326 (emit_note_after): Likewise.
5327 (emit_note_before): Likewise.
5328 (emit_note_copy): Likewise. Also, strengthen param similarly.
5329 (emit_note): Likewise.
5330 * except.c (emit_note_eh_region_end): Likewise for return type.
5331 Strengthen local "next" from rtx to rtx_insn *.
5332 (convert_to_eh_region_ranges): Strengthen local "note"
5333 from rtx to rtx_note *.
5334 * final.c (change_scope): Likewise.
5335 (reemit_insn_block_notes): Likewise, for both locals named "note".
5336 Also, strengthen local "insn" from rtx to rtx_insn *.
5337 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5339 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5340 strengthen local "seq" from rtx to rtx_insn *.
5341 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5343 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5345 (get_bb_note_from_pool): Strengthen return type from rtx to
5347 (sel_create_basic_block): Strengthen local "new_bb_note" from
5348 insn_t to rtx_note *.
5349 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5350 "note" from rtx to rtx_note *.
5351 (emit_notes_in_bb): Likewise.
5353 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5355 * function.h (struct rtl_data): Strengthen field
5356 "x_parm_birth_insn" from rtx to rtx_insn *.
5357 * function.c (struct assign_parm_data_all): Strengthen fields
5358 "first_conversion_insn" and "last_conversion_insn" from rtx to
5361 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5363 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5364 to rtx_insn *; also for local "var_end_seq".
5365 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5366 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5368 (expand_gimple_cond): Likewise for locals "last2" and "last".
5369 (mark_transaction_restart_calls): Likewise for local "insn".
5370 (expand_gimple_stmt): Likewise for return type and locals "last"
5372 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5373 (avoid_complex_debug_insns): Likewise for param "insn".
5374 (expand_debug_locations): Likewise for locals "insn", "last",
5375 "prev_insn" and "insn2".
5376 (expand_gimple_basic_block): Likewise for local "last".
5377 (construct_exit_block): Likewise for locals "head", "end",
5379 (pass_expand::execute): Likewise for locals "var_seq",
5380 "var_ret_seq", "next".
5382 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5384 * asan.h (asan_emit_stack_protection): Strengthen return type from
5386 * asan.c (asan_emit_stack_protection): Likewise. Add local
5387 "insns" to hold the return value.
5389 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5391 * basic-block.h (bb_note): Strengthen return type from rtx to
5393 * sched-int.h (bb_note): Likewise.
5394 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5396 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5398 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5401 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5402 "insn" from rtx to rtx_insn *.
5403 (make_debug_insn_raw): Strengthen return type from rtx to
5404 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5405 (make_jump_insn_raw): Strengthen return type from rtx to
5406 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5407 (make_call_insn_raw): Strengthen return type from rtx to
5408 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5409 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5410 callback from rtx to rtx_insn *; likewise for local "insn" and
5411 "next", adding a checked cast to rtx_insn in the relevant cases of
5412 the switch statement.
5413 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5414 callback from rtx to rtx_insn *.
5415 (emit_pattern_after_setloc): Likewise.
5416 (emit_pattern_after): Likewise.
5417 (emit_pattern_before_setloc): Likewise.
5418 (emit_pattern_before): Likewise.
5420 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5422 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5424 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5425 accepting an rtx_insn *.
5426 (last_call_insn): Strengthen return type from rtx to
5429 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5431 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5432 "insns" from rtx to rtx_insn *.
5433 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5434 locals "insn" and "prev".
5436 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5438 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5439 rtx_jump_table_data **.
5441 * cfgbuild.c (make_edges): Introduce local "table", using it in
5442 place of "tmp" for jump table data.
5443 (find_bb_boundaries): Strengthen local "table" from rtx to
5444 rtx_jump_table_data *.
5445 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5446 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5447 (try_crossjump_to_edge): Likewise.
5448 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5450 (patch_jump_insn): Introduce local "table", using it in place of
5451 "tmp" for jump table data.
5452 (force_nonfallthru_and_redirect): Introduce local "table", so that
5453 call to tablejump_p can receive an rtx_jump_table_data **. Update
5454 logic around the call to overwrite "note" appropriately if
5455 tablejump_p returns non-zero.
5456 (get_last_bb_insn): Introduce local "table", using it in place of
5457 "tmp" for jump table data.
5458 * dwarf2cfi.c (create_trace_edges): Likewise.
5460 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5461 from rtx to rtx_jump_table_data *.
5462 (create_fix_barrier): Strengthen local "tmp" from rtx to
5463 rtx_jump_table_data *.
5464 (arm_reorg): Likewise for local "table".
5466 * config/s390/s390.c (s390_chunkify_start): Likewise.
5468 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5470 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5471 rtx to rtx_jump_table_data *.
5473 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5474 rtx_jump_table_data **. Add a checked cast when writing through
5475 the pointer: we know there that local "table" is non-NULL and that
5476 JUMP_TABLE_DATA_P (table) holds.
5477 (label_is_jump_target_p): Introduce local "table", using it in
5478 place of "tmp" for jump table data.
5480 2014-08-19 Marek Polacek <polacek@redhat.com>
5483 * doc/invoke.texi: Document -Wbool-compare.
5485 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5487 * rtl.h (entry_of_function): Strengthen return type from rtx to
5489 * cfgrtl.c (entry_of_function): Likewise.
5491 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5493 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5494 rtx_insn *, adding a checked cast for now.
5495 (get_last_insn): Likewise.
5497 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5499 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5502 * emit-rtl.c (gen_label_rtx): Likewise.
5504 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5506 * rtl.h (previous_insn): Strengthen return type from rtx to
5508 (next_insn): Likewise.
5509 (prev_nonnote_insn): Likewise.
5510 (prev_nonnote_insn_bb): Likewise.
5511 (next_nonnote_insn): Likewise.
5512 (next_nonnote_insn_bb): Likewise.
5513 (prev_nondebug_insn): Likewise.
5514 (next_nondebug_insn): Likewise.
5515 (prev_nonnote_nondebug_insn): Likewise.
5516 (next_nonnote_nondebug_insn): Likewise.
5517 (prev_real_insn): Likewise.
5518 (next_real_insn): Likewise.
5519 (prev_active_insn): Likewise.
5520 (next_active_insn): Likewise.
5522 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5523 rtx_insn *, adding a checked cast.
5524 (previous_insn): Likewise.
5525 (next_nonnote_insn): Likewise.
5526 (next_nonnote_insn_bb): Likewise.
5527 (prev_nonnote_insn): Likewise.
5528 (prev_nonnote_insn_bb): Likewise.
5529 (next_nondebug_insn): Likewise.
5530 (prev_nondebug_insn): Likewise.
5531 (next_nonnote_nondebug_insn): Likewise.
5532 (prev_nonnote_nondebug_insn): Likewise.
5533 (next_real_insn): Likewise.
5534 (prev_real_insn): Likewise.
5535 (next_active_insn): Likewise.
5536 (prev_active_insn): Likewise.
5538 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5539 param "stepfunc" so that it returns an rtx_insn * rather than an
5540 rtx, to track the change to prev_nonnote_insn_bb, which is the
5541 only function this is called with.
5542 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5544 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5546 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5549 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5551 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5552 (class rtx_nonjump_insn): Likewise.
5553 (class rtx_jump_insn): Likewise.
5554 (class rtx_call_insn): Likewise.
5555 (class rtx_jump_table_data): Likewise.
5556 (class rtx_barrier): Likewise.
5557 (class rtx_code_label): Likewise.
5558 (class rtx_note): Likewise.
5560 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5561 adding the invariant DEBUG_INSN_P (X).
5562 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5563 the invariant NONJUMP_INSN_P (X).
5564 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5565 the invariant JUMP_P (X).
5566 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5567 the invariant CALL_P (X).
5568 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5569 invariant JUMP_TABLE_DATA_P (X).
5570 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5571 invariant BARRIER_P (X).
5572 (class rtx_code_label): New, a subclass of rtx_insn, adding
5573 the invariant LABEL_P (X).
5574 (class rtx_note): New, a subclass of rtx_insn, adding
5575 the invariant NOTE_P(X).
5576 (is_a_helper <rtx_debug_insn *>::test): New.
5577 (is_a_helper <rtx_nonjump_insn *>::test): New.
5578 (is_a_helper <rtx_jump_insn *>::test): New.
5579 (is_a_helper <rtx_call_insn *>::test): New.
5580 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5581 overloaded for both rtx and rtx_insn *.
5582 (is_a_helper <rtx_barrier *>::test): New.
5583 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5584 for both rtx and rtx_insn *.
5585 (is_a_helper <rtx_note *>::test): New.
5587 2014-08-19 Marek Polacek <polacek@redhat.com>
5589 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5590 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5591 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5592 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5594 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5596 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5597 rtx_insn *. To help with transition, for now, convert from an
5598 access macro into a pair of functions: BND_TO, returning an
5600 (SET_BND_TO): New function, for use where BND_TO is used as an
5603 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5605 (BND_TO): New function, adding a checked cast.
5606 (SET_BND_TO): New function.
5608 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5610 (compute_av_set_on_boundaries): Likewise.
5612 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5614 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5615 destination if it is used in source.
5616 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5617 (*popcount<mode>2_falsedep_1): Likewise.
5619 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5622 * configure.ac: Set install_gold_as_default to no first.
5623 * configure: Regenerated.
5625 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5627 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5628 "note_list" field will eventually be an rtx_insn *. To help with
5629 transition, for now, convert from an access macro into a pair of
5630 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5631 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5634 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5635 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5637 * sel-sched-ir.c (init_bb): Likewise.
5638 (sel_restore_notes): Likewise.
5639 (move_bb_info): Likewise.
5640 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5641 (SET_BB_NOTE_LIST): New function.
5643 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5645 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5646 field will eventually be an rtx_insn *. To help with transition,
5647 for now, convert from an access macro into a pair of functions:
5648 VINSN_INSN_RTX, returning an rtx_insn *, and...
5649 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5650 is used as an lvalue.
5652 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5653 SET_VINSN_INSN_RTX where it's used as an lvalue.
5654 (VINSN_INSN_RTX): New function.
5655 (SET_VINSN_INSN_RTX): New function.
5657 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5659 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5660 eventually be rtx_insn *, but to help with transition, for now,
5661 convert from an access macro into a pair of functions: DEP_PRO
5662 returning an rtx_insn * and...
5663 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5664 lvalue, returning an rtx&.
5665 (DEP_CON): Analogous changes to DEP_PRO above.
5666 (SET_DEP_CON): Likewise.
5668 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5669 an lvalue to SET_DEP_CON.
5670 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5671 (sd_copy_back_deps): Likewise for DEP_CON.
5672 (DEP_PRO): New function, adding a checked cast for now.
5673 (DEP_CON): Likewise.
5674 (SET_DEP_PRO): New function.
5675 (SET_DEP_CON): Likewise.
5677 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5679 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5680 (extra_options): Add i386/cygwin.opt.
5681 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5682 (CPP_SPEC): Accept -pthread.
5684 (GOMP_SELF_SPECS): Update comment.
5685 * config/i386/cygwin.opt: New file for -pthread flag.
5687 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5689 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5690 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5691 that we can return an rtx_insn *.
5693 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5695 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5696 when building executables, not DLLs. Add --large-address-aware
5697 under the same conditions.
5698 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5699 when building executables, not DLLs. Add --large-address-aware
5700 under the same conditions when using -m32.
5702 * config/i386/cygwin-stdint.h: Throughout, make type
5703 definitions dependent on target architecture, not host.
5705 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5707 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5708 the return type from rtx to rtx_insn *, which will enable various
5709 conversions in followup patches. For now this is is done by a
5711 (NEXT_INSN): Likewise.
5712 (SET_PREV_INSN): Convert to an inline function. This is intended
5713 for use as an lvalue, and so returns an rtx& to allow in-place
5715 (SET_NEXT_INSN): Likewise.
5717 2014-07-08 Mark Wielaard <mjw@redhat.com>
5720 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5722 2014-08-19 Marek Polacek <polacek@redhat.com>
5725 * cgraphunit.c (handle_alias_pairs): Fix condition.
5727 2014-08-19 Richard Biener <rguenther@suse.de>
5729 * gimple-fold.c (fold_gimple_assign): Properly build a
5730 null-pointer constant when devirtualizing addresses.
5732 2014-07-07 Mark Wielaard <mjw@redhat.com>
5734 * dwarf2out.c (decl_quals): New function.
5735 (modified_type_die): Take one cv_quals argument instead of two,
5736 one for const and one for volatile.
5737 (add_type_attribute): Likewise.
5738 (generic_parameter_die): Call add_type_attribute with one modifier
5740 (base_type_for_mode): Likewise.
5741 (add_bounds_info): Likewise.
5742 (add_subscript_info): Likewise.
5743 (gen_array_type_die): Likewise.
5744 (gen_descr_array_type_die): Likewise.
5745 (gen_entry_point_die): Likewise.
5746 (gen_enumeration_type_die): Likewise.
5747 (gen_formal_parameter_die): Likewise.
5748 (gen_subprogram_die): Likewise.
5749 (gen_variable_die): Likewise.
5750 (gen_const_die): Likewise.
5751 (gen_field_die): Likewise.
5752 (gen_pointer_type_die): Likewise.
5753 (gen_reference_type_die): Likewise.
5754 (gen_ptr_to_mbr_type_die): Likewise.
5755 (gen_inheritance_die): Likewise.
5756 (gen_subroutine_type_die): Likewise.
5757 (gen_typedef_die): Likewise.
5758 (force_type_die): Likewise.
5760 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5762 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5764 * configure: Regenerate.
5766 2014-08-19 Richard Biener <rguenther@suse.de>
5768 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5769 DECL_EXTERNALs in BLOCKs as non-references.
5770 * tree-streamer-out.c (streamer_write_chain): Likewise.
5772 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5774 Anna Tikhonova <anna.tikhonova@intel.com>
5775 Ilya Tocar <ilya.tocar@intel.com>
5776 Andrey Turetskiy <andrey.turetskiy@intel.com>
5777 Ilya Verbin <ilya.verbin@intel.com>
5778 Kirill Yukhin <kirill.yukhin@intel.com>
5779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5781 * config/i386/sse.md
5782 (define_mode_iterator VI48_AVX512F): Delete.
5783 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5784 (define_mode_iterator VI2_AVX512VL): Ditto.
5785 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5788 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5790 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5791 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5792 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5793 with VI48_AVX512F_AVX512VL): New.
5794 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5795 with VI2_AVX512VL): Ditto.
5797 2014-08-19 Marek Polacek <polacek@redhat.com>
5799 * doc/invoke.texi: Document -Wc99-c11-compat.
5801 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5803 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5805 (SET_PREV_INSN): New macro, for use as an lvalue.
5806 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5808 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5809 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5810 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5811 (fixup_abnormal_edges): Likewise.
5812 (unlink_insn_chain): Likewise.
5813 (fixup_reorder_chain): Likewise.
5814 (cfg_layout_delete_block): Likewise.
5815 (cfg_layout_merge_blocks): Likewise.
5816 * combine.c (update_cfg_for_uncondjump): Likewise.
5817 * emit-rtl.c (link_insn_into_chain): Likewise.
5818 (remove_insn): Likewise.
5819 (delete_insns_since): Likewise.
5820 (reorder_insns_nobb): Likewise.
5821 (emit_insn_after_1): Likewise.
5822 * final.c (rest_of_clean_state): Likewise.
5823 (final_scan_insn): Likewise.
5824 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5825 * haifa-sched.c (concat_note_lists): Likewise.
5826 (remove_notes): Likewise.
5827 (restore_other_notes): Likewise.
5828 (move_insn): Likewise.
5829 (unlink_bb_notes): Likewise.
5830 (restore_bb_notes): Likewise.
5831 * jump.c (delete_for_peephole): Likewise.
5832 * optabs.c (emit_libcall_block_1): Likewise.
5833 * reorg.c (emit_delay_sequence): Likewise.
5834 (fill_simple_delay_slots): Likewise.
5835 * sel-sched-ir.c (sel_move_insn): Likewise.
5836 (sel_remove_insn): Likewise.
5837 (get_bb_note_from_pool): Likewise.
5838 * sel-sched.c (move_nop_to_previous_block): Likewise.
5840 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5841 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5842 (c6x_gen_bundles): Likewise.
5843 (hwloop_optimize): Likewise.
5844 * config/frv/frv.c (frv_function_prologue): Likewise.
5845 (frv_register_nop): Likewise.
5846 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5847 (ia64_reorg): Likewise.
5848 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5849 (mep_make_bundle): Likewise.
5850 (mep_bundle_insns): Likewise.
5851 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5852 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5853 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5855 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5857 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5858 return type from rtx to rtx_insn *.
5860 (BB_HEADER): Likewise.
5861 (BB_FOOTER): Likewise.
5862 (SET_BB_HEAD): Convert to a function.
5863 (SET_BB_END): Likewise.
5864 (SET_BB_HEADER): Likewise.
5865 (SET_BB_FOOTER): Likewise.
5867 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5868 Strengthen the return type from rtx to rtx_insn *. For now, this
5869 is done by adding a checked cast, but this will eventually
5870 become a field lookup.
5872 (BB_HEADER): Likewise.
5873 (BB_FOOTER): Likewise.
5874 (SET_BB_HEAD): New function, from macro of same name. This is
5875 intended for use as an lvalue, and so returns an rtx& to allow
5876 in-place modification.
5877 (SET_BB_END): Likewise.
5878 (SET_BB_HEADER): Likewise.
5879 (SET_BB_FOOTER): Likewise.
5881 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5883 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
5885 (SET_BB_HEAD): New macro, for use as a lvalue.
5886 (BB_END, SET_BB_END): Likewise.
5887 (BB_HEADER, SET_BB_HEADER): Likewise.
5888 (BB_FOOTER, SET_BB_FOOTER): Likewise.
5890 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
5891 of BB_* macros into SET_BB_* macros.
5892 (fix_crossing_unconditional_branches): Likewise.
5893 * caller-save.c (save_call_clobbered_regs): Likewise.
5894 (insert_one_insn): Likewise.
5895 * cfgbuild.c (find_bb_boundaries): Likewise.
5896 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5897 (outgoing_edges_match): Likewise.
5898 (try_optimize_cfg): Likewise.
5899 * cfgexpand.c (expand_gimple_cond): Likewise.
5900 (expand_gimple_tailcall): Likewise.
5901 (expand_gimple_basic_block): Likewise.
5902 (construct_exit_block): Likewise.
5903 * cfgrtl.c (delete_insn): Likewise.
5904 (create_basic_block_structure): Likewise.
5905 (rtl_delete_block): Likewise.
5906 (rtl_split_block): Likewise.
5907 (emit_nop_for_unique_locus_between): Likewise.
5908 (rtl_merge_blocks): Likewise.
5909 (block_label): Likewise.
5910 (try_redirect_by_replacing_jump): Likewise.
5911 (emit_barrier_after_bb): Likewise.
5912 (fixup_abnormal_edges): Likewise.
5913 (record_effective_endpoints): Likewise.
5914 (relink_block_chain): Likewise.
5915 (fixup_reorder_chain): Likewise.
5916 (fixup_fallthru_exit_predecessor): Likewise.
5917 (cfg_layout_duplicate_bb): Likewise.
5918 (cfg_layout_split_block): Likewise.
5919 (cfg_layout_delete_block): Likewise.
5920 (cfg_layout_merge_blocks): Likewise.
5921 * combine.c (update_cfg_for_uncondjump): Likewise.
5922 * emit-rtl.c (add_insn_after): Likewise.
5923 (remove_insn): Likewise.
5924 (reorder_insns): Likewise.
5925 (emit_insn_after_1): Likewise.
5926 * haifa-sched.c (get_ebb_head_tail): Likewise.
5927 (restore_other_notes): Likewise.
5928 (move_insn): Likewise.
5929 (sched_extend_bb): Likewise.
5930 (fix_jump_move): Likewise.
5931 * ifcvt.c (noce_process_if_block): Likewise.
5932 (dead_or_predicable): Likewise.
5933 * ira.c (update_equiv_regs): Likewise.
5934 * reg-stack.c (change_stack): Likewise.
5935 * sel-sched-ir.c (sel_move_insn): Likewise.
5936 * sel-sched.c (move_nop_to_previous_block): Likewise.
5938 * config/c6x/c6x.c (hwloop_optimize): Likewise.
5939 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5941 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5943 * rtl.h (for_each_rtx_in_insn): New function.
5944 * rtlanal.c (for_each_rtx_in_insn): Likewise.
5946 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5948 * coretypes.h (class rtx_insn): Add forward declaration.
5950 * rtl.h: Include is-a.h.
5951 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
5952 workaround to ensure gengtype knows inheritance is occurring,
5953 whilst continuing to use the pre-existing special-casing for
5955 (class rtx_insn): New subclass of rtx_def, adding the
5956 invariant that we're dealing with something we can sanely use
5957 INSN_UID, NEXT_INSN, PREV_INSN on.
5958 (is_a_helper <rtx_insn *>::test): New.
5959 (is_a_helper <const rtx_insn *>::test): New.
5961 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5963 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
5965 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5967 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
5970 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
5972 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
5973 to BUILT_IN_UNREACHABLE.
5975 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
5978 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
5980 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
5981 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
5982 (ffs<mode>2): Do not expand with tzcnt for
5983 TARGET_AVOID_FALSE_DEP_FOR_BMI.
5984 (ffssi2_no_cmove): Ditto.
5985 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
5986 (ctz<mode>2): New expander.
5987 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
5988 (*ctz<mode>2_falsedep): New insn.
5989 (*ctz<mode>2): Rename from ctz<mode>2.
5990 (clz<mode>2_lzcnt): New expander.
5991 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
5992 (*clz<mode>2_lzcnt_falsedep): New insn.
5993 (*clz<mode>2): Rename from ctz<mode>2.
5994 (popcount<mode>2): New expander.
5995 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
5996 (*popcount<mode>2_falsedep): New insn.
5997 (*popcount<mode>2): Rename from ctz<mode>2.
5998 (*popcount<mode>2_cmp): Remove.
5999 (*popcountsi2_cmp_zext): Ditto.
6001 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6003 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6004 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6005 * config/microblaze/microblaze.h
6006 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6008 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6011 * configure.ac: Set install_gold_as_default to no for
6013 * configure: Regenerated.
6015 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6017 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6018 * config.in: Add undef of HAVE_isl.
6019 * configure: Regenerate.
6020 * configure.ac: Add definition of HAVE_isl.
6021 * graphite-blocking.c: Add checking of HAVE_isl.
6022 * graphite-dependences.c: Likewise.
6023 * graphite-interchange.c: Likewise.
6024 * graphite-isl-ast-to-gimple.c: Likewise.
6025 * graphite-optimize-isl.c: Likewise.
6026 * graphite-poly.c: Likewise.
6027 * graphite-scop-detection.c: Likewise.
6028 * graphite-sese-to-poly.c: Likewise.
6029 * graphite.c: Likewise.
6030 * toplev.c: Replace the checking of HAVE_cloog with the checking
6033 2014-08-18 Richard Biener <rguenther@suse.de>
6035 PR tree-optimization/62090
6036 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6037 (fold_builtin_3): Do not fold snprintf.
6038 (fold_builtin_4): Likewise.
6039 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6040 moved from builtins.c.
6041 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6042 (gimple_fold_builtin): Do not fold sprintf here.
6044 2014-08-18 Richard Biener <rguenther@suse.de>
6046 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6048 (maybe_canonicalize_mem_ref_addr): ... this function.
6049 (fold_stmt_1): Apply it here before all simplification.
6051 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6054 * cgraph.h (cgraph_node::create_indirect_edge): Add
6055 compute_indirect_info param.
6056 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6057 indirect_info only when it is required.
6058 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6059 indirect_info fore cloned indirect edge.
6061 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6062 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6063 Anna Tikhonova <anna.tikhonova@intel.com>
6064 Ilya Tocar <ilya.tocar@intel.com>
6065 Andrey Turetskiy <andrey.turetskiy@intel.com>
6066 Ilya Verbin <ilya.verbin@intel.com>
6067 Kirill Yukhin <kirill.yukhin@intel.com>
6068 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6070 * config/i386/sse.md
6071 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6072 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6074 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6075 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6076 Anna Tikhonova <anna.tikhonova@intel.com>
6077 Ilya Tocar <ilya.tocar@intel.com>
6078 Andrey Turetskiy <andrey.turetskiy@intel.com>
6079 Ilya Verbin <ilya.verbin@intel.com>
6080 Kirill Yukhin <kirill.yukhin@intel.com>
6081 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6083 * config/i386/sse.md
6084 (define_mode_iterator VF1_AVX512VL): New.
6085 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6086 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6089 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6090 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6091 Anna Tikhonova <anna.tikhonova@intel.com>
6092 Ilya Tocar <ilya.tocar@intel.com>
6093 Andrey Turetskiy <andrey.turetskiy@intel.com>
6094 Ilya Verbin <ilya.verbin@intel.com>
6095 Kirill Yukhin <kirill.yukhin@intel.com>
6096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6098 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6099 * config/i386/i386.md
6100 (define_code_iterator any_float): New.
6101 (define_code_attr floatsuffix): New.
6102 * config/i386/sse.md
6103 (define_mode_iterator VF1_128_256VL): New.
6104 (define_mode_iterator VF2_512_256VL): New.
6105 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6107 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6108 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6110 (define_mode_attr qq2pssuff): New.
6111 (define_mode_attr sselongvecmode): New.
6112 (define_mode_attr sselongvecmodelower): New.
6113 (define_mode_attr sseintvecmode3): New.
6114 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6116 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6117 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6118 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6119 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6121 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6122 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6123 Anna Tikhonova <anna.tikhonova@intel.com>
6124 Ilya Tocar <ilya.tocar@intel.com>
6125 Andrey Turetskiy <andrey.turetskiy@intel.com>
6126 Ilya Verbin <ilya.verbin@intel.com>
6127 Kirill Yukhin <kirill.yukhin@intel.com>
6128 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6130 * config/i386/sse.md
6131 (define_mode_iterator VF2_AVX512VL): New.
6132 (define_mode_attr sseintvecmode2): New.
6133 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6134 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6135 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6137 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6139 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6141 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6144 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6145 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6146 Anna Tikhonova <anna.tikhonova@intel.com>
6147 Ilya Tocar <ilya.tocar@intel.com>
6148 Andrey Turetskiy <andrey.turetskiy@intel.com>
6149 Ilya Verbin <ilya.verbin@intel.com>
6150 Kirill Yukhin <kirill.yukhin@intel.com>
6151 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6153 * config/i386/i386.md
6154 (define_insn "*movoi_internal_avx"): Add evex version.
6155 (define_insn "*movti_internal"): Ditto.
6157 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6158 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6159 Anna Tikhonova <anna.tikhonova@intel.com>
6160 Ilya Tocar <ilya.tocar@intel.com>
6161 Andrey Turetskiy <andrey.turetskiy@intel.com>
6162 Ilya Verbin <ilya.verbin@intel.com>
6163 Kirill Yukhin <kirill.yukhin@intel.com>
6164 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6166 * config/i386/i386.md
6167 (define_attr "isa"): Add avx512dq, noavx512dq.
6168 (define_attr "enabled"): Ditto.
6169 * config/i386/sse.md
6170 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6172 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6173 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6174 Anna Tikhonova <anna.tikhonova@intel.com>
6175 Ilya Tocar <ilya.tocar@intel.com>
6176 Andrey Turetskiy <andrey.turetskiy@intel.com>
6177 Ilya Verbin <ilya.verbin@intel.com>
6178 Kirill Yukhin <kirill.yukhin@intel.com>
6179 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6181 * config/i386/i386.c
6182 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6183 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6184 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6185 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6186 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6187 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6188 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6189 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6190 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6191 * config/i386/sse.md
6192 (define_mode_iterator VMOVE): Allow V4TI mode.
6193 (define_mode_iterator V_AVX512VL): New.
6194 (define_mode_iterator V): New handling for AVX512VL.
6195 (define_insn "avx512f_load<mode>_mask"): Delete.
6196 (define_insn "<avx512>_load<mode>_mask"): New.
6197 (define_insn "avx512f_store<mode>_mask"): Delete.
6198 (define_insn "<avx512>_store<mode>_mask"): New.
6201 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6204 * asan.c (instrument_derefs): Fix bitfield check.
6206 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6208 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6209 * config/rs6000/htm.md (ttest): Remove clobber.
6210 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6211 (and_operand): Reformat.
6212 (and_2rld_operand): New predicate.
6213 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6215 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6216 parameter. Handle AND directly.
6217 (rs6000_split_logical_di): Remove last parameter.
6218 (rs6000_split_logical): Remove last parameter. Remove obsolete
6220 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6221 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6222 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6223 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6224 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6225 and 5 anonymous splitters): Delete.
6226 (and<mode>3): New expander.
6227 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6228 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6229 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6230 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6231 (floatdisf2_internal1): Remove clobbers.
6232 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6233 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6234 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6235 (and<mode>3 for BOOL_128): Remove clobber.
6236 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6237 rs6000_split_logical.
6238 (*bool<mode>3_internal for BOOL_128): Adjust call of
6239 rs6000_split_logical.
6240 (*boolc<mode>3_internal1 for BOOL_128,
6241 *boolc<mode>3_internal2 for BOOL_128,
6242 *boolcc<mode>3_internal1 for BOOL_128,
6243 *boolcc<mode>3_internal2 for BOOL_128,
6244 *eqv<mode>3_internal1 for BOOL_128,
6245 *eqv<mode>3_internal2 for BOOL_128,
6246 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6247 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6249 (*vec_reload_and_reg_<mptrsize>): Delete.
6251 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6253 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6254 and split, *boolccsi3_internal3 and split): Delete.
6255 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6256 *boolccdi3_internal3 and split): Delete.
6257 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6258 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6260 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6262 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6263 and split, *boolcsi3_internal3 and split): Delete.
6264 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6265 *boolcdi3_internal3 and split): Delete.
6266 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6268 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6270 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6271 <'u'>: Also support printing the low-order 16 bits.
6272 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6273 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6274 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6275 *booldi3_internal3 and split): Delete.
6276 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6277 *bool<mode>3_dot2): New.
6278 (two anonymous define_splits for non_logical_cint_operand): Merge.
6280 2014-08-17 Marek Polacek <polacek@redhat.com>
6281 Manuel López-Ibáñez <manu@gcc.gnu.org>
6284 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6285 (diagnostic_show_locus): Don't print caret diagnostic
6286 if a column is larger than the line_width.
6288 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6290 * common.opt: Make the ISL AST generator to be the main code generator
6293 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6295 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6297 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6300 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6302 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6303 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6304 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6306 * config/pa/pa.md (begin_brtab): Delete insn.
6307 (end_brtab): Likewise.
6309 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6311 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6313 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6315 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6316 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6317 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6318 (get_dynamic_type): Remove.
6319 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6320 (clear_speculation): Bring to ipa-deivrt.h
6321 (get_class_context): Rename to ...
6322 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6323 (contains_type_p): Update.
6324 (get_dynamic_type): Rename to ...
6325 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6326 (possible_polymorphic_call_targets): UPdate.
6327 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6328 * ipa-prop.c (ipa_analyze_call_uses): Update.
6330 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6332 * doc/invoke.texi (SH options): Document missing processor variant
6333 options. Remove references to Hitachi. Undocument deprecated mspace
6336 2014-08-15 Jason Merrill <jason@redhat.com>
6338 * tree.c (type_hash_canon): Uncomment assert.
6340 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6342 * input.h (in_system_header_at): Add comment.
6344 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6347 * diagnostic.c (build_message_string): Make it extern.
6348 * diagnostic.h (build_message_string): Make it extern.
6350 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6352 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6353 load/store from/to non-floating class pseudo.
6355 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6357 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6359 2014-08-15 Richard Biener <rguenther@suse.de>
6361 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6362 (get_constraint_for_ssa_var): Remove dead code.
6363 (get_constraint_for_1): Adjust.
6364 (find_what_var_points_to): Likewise.
6365 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6367 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6370 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6371 (_mm512_mask_cmpge_epu32_mask): Ditto.
6372 (_mm512_cmpge_epu32_mask): Ditto.
6373 (_mm512_mask_cmpge_epi64_mask): Ditto.
6374 (_mm512_cmpge_epi64_mask): Ditto.
6375 (_mm512_mask_cmpge_epu64_mask): Ditto.
6376 (_mm512_cmpge_epu64_mask): Ditto.
6377 (_mm512_mask_cmple_epi32_mask): Ditto.
6378 (_mm512_cmple_epi32_mask): Ditto.
6379 (_mm512_mask_cmple_epu32_mask): Ditto.
6380 (_mm512_cmple_epu32_mask): Ditto.
6381 (_mm512_mask_cmple_epi64_mask): Ditto.
6382 (_mm512_cmple_epi64_mask): Ditto.
6383 (_mm512_mask_cmple_epu64_mask): Ditto.
6384 (_mm512_cmple_epu64_mask): Ditto.
6385 (_mm512_mask_cmplt_epi32_mask): Ditto.
6386 (_mm512_cmplt_epi32_mask): Ditto.
6387 (_mm512_mask_cmplt_epu32_mask): Ditto.
6388 (_mm512_cmplt_epu32_mask): Ditto.
6389 (_mm512_mask_cmplt_epi64_mask): Ditto.
6390 (_mm512_cmplt_epi64_mask): Ditto.
6391 (_mm512_mask_cmplt_epu64_mask): Ditto.
6392 (_mm512_cmplt_epu64_mask): Ditto.
6393 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6394 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6395 (_mm512_cmpneq_epu32_mask): Ditto.
6396 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6397 (_mm512_cmpneq_epi64_mask): Ditto.
6398 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6399 (_mm512_cmpneq_epu64_mask): Ditto.
6400 (_mm512_castpd_ps): Ditto.
6401 (_mm512_castpd_si512): Ditto.
6402 (_mm512_castps_pd): Ditto.
6403 (_mm512_castps_si512): Ditto.
6404 (_mm512_castsi512_ps): Ditto.
6405 (_mm512_castsi512_pd): Ditto.
6406 (_mm512_castpd512_pd128): Ditto.
6407 (_mm512_castps512_ps128): Ditto.
6408 (_mm512_castsi512_si128): Ditto.
6409 (_mm512_castpd512_pd256): Ditto.
6410 (_mm512_castps512_ps256): Ditto.
6411 (_mm512_castsi512_si256): Ditto.
6412 (_mm512_castpd128_pd512): Ditto.
6413 (_mm512_castps128_ps512): Ditto.
6414 (_mm512_castsi128_si512): Ditto.
6415 (_mm512_castpd256_pd512): Ditto.
6416 (_mm512_castps256_ps512): Ditto.
6417 (_mm512_castsi256_si512): Ditto.
6418 (_mm512_cmpeq_epu32_mask): Ditto.
6419 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6420 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6421 (_mm512_cmpeq_epu64_mask): Ditto.
6422 (_mm512_cmpgt_epu32_mask): Ditto.
6423 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6424 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6425 (_mm512_cmpgt_epu64_mask): Ditto.
6426 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6427 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6428 * config/i386/i386.c (enum ix86_builtins): Add
6429 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6430 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6431 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6432 (bdesc_args): Add __builtin_ia32_si512_256si,
6433 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6434 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6435 __builtin_ia32_pd512_pd.
6436 (ix86_expand_args_builtin): Handle new FTYPEs.
6437 * config/i386/sse.md (castmode): Add 512-bit modes.
6438 (AVX512MODE2P): New.
6439 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6440 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6442 2014-08-15 Richard Biener <rguenther@suse.de>
6444 * fold-const.c (tree_swap_operands_p): Put all constants
6445 last, also strip sign-changing NOPs when considering further
6446 canonicalization. Canonicalize also when optimizing for size.
6448 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6450 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6451 one_match > zero_match case to just before simple_sequence.
6453 2014-08-15 Richard Biener <rguenther@suse.de>
6455 * data-streamer.h (streamer_string_index, string_for_index):
6457 * data-streamer-out.c (streamer_string_index): Make static.
6458 * data-streamer-in.c (string_for_index): Likewise.
6459 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6460 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6462 2014-08-15 Richard Biener <rguenther@suse.de>
6464 PR tree-optimization/62031
6465 * tree-data-ref.c (dr_analyze_indices): Do not set
6466 DR_UNCONSTRAINED_BASE.
6467 (dr_may_alias_p): All indirect accesses have to go the
6468 formerly DR_UNCONSTRAINED_BASE path.
6469 * tree-data-ref.h (struct indices): Remove
6470 unconstrained_base member.
6471 (DR_UNCONSTRAINED_BASE): Remove.
6473 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6476 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6477 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6478 in OMP_CLAUSE_MAP in some outer target region.
6480 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6482 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6483 name_expansion_cache.
6484 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6485 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6486 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6487 (difference_cannot_overflow_p): New parameter. Use affine
6488 expansion for equality check.
6489 (iv_elimination_compare_lt): Pass new argument.
6491 2014-08-14 DJ Delorie <dj@redhat.com>
6493 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6494 variables to the accumulator.
6496 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6497 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6498 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6501 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6502 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6503 (umulqihi3_virt): Likewise.
6504 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6505 (umulqihi3_real): Likewise.
6507 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6509 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6511 PR tree-optimization/62091
6512 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6513 function_entry_reached.
6514 (walk_aliased_vdefs): Clear it here.
6515 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6517 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6519 * ipa-utils.h (compare_virtual_tables): Declare.
6520 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6522 2014-08-14 Marek Polacek <polacek@redhat.com>
6525 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6526 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6528 2014-08-14 Tom de Vries <tom@codesourcery.com>
6530 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6532 2014-08-14 Tom de Vries <tom@codesourcery.com>
6534 PR rtl-optimization/62004
6535 PR rtl-optimization/62030
6536 * ifcvt.c (rtx_interchangeable_p): New function.
6537 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6538 * emit-rtl.h (mem_attrs_eq_p): Declare.
6540 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6542 * graphite-scop-detection.c:
6543 Add inclusion of cp-tree.h.
6544 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6545 in case they are pointers to object types
6547 2014-08-14 Richard Biener <rguenther@suse.de>
6549 * BASE-VER: Change to 5.0.0
6551 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6552 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6553 Anna Tikhonova <anna.tikhonova@intel.com>
6554 Ilya Tocar <ilya.tocar@intel.com>
6555 Andrey Turetskiy <andrey.turetskiy@intel.com>
6556 Ilya Verbin <ilya.verbin@intel.com>
6557 Kirill Yukhin <kirill.yukhin@intel.com>
6558 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6560 * config/i386/sse.md (define_mode_attr avx512): New.
6561 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6563 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6564 (define_mode_attr ssse3_avx2): Ditto.
6565 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6566 (define_mode_attr avx2_avx512bw): New.
6567 (define_mode_attr ssedoublemodelower): New.
6568 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6570 (define_mode_attr ssebytemode): Allow V8DI modes.
6571 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6572 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6573 (define_mode_attr ssePSmode2): New.
6574 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6576 (define_mode_attr dbpsadbwmode): New.
6577 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6578 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6579 (vi8_sse4_1_avx2_avx512): New.
6580 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6582 (define_mode_attr blendbits): Move before its immediate use.
6584 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6585 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6586 Anna Tikhonova <anna.tikhonova@intel.com>
6587 Ilya Tocar <ilya.tocar@intel.com>
6588 Andrey Turetskiy <andrey.turetskiy@intel.com>
6589 Ilya Verbin <ilya.verbin@intel.com>
6590 Kirill Yukhin <kirill.yukhin@intel.com>
6591 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6593 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6594 * config/i386/subst.md
6595 (define_mode_iterator SUBST_V): Update.
6596 (define_mode_iterator SUBST_A): Ditto.
6597 (define_subst_attr "mask_operand7"): New.
6598 (define_subst_attr "mask_operand10"): New.
6599 (define_subst_attr "mask_operand_arg34") : New.
6600 (define_subst_attr "mask_expand_op3"): New.
6601 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6602 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6603 (define_subst_attr "mask_avx512vl_condition"): New.
6604 (define_subst_attr "round_mask_operand4"): Ditto.
6605 (define_subst_attr "round_mask_scalar_op3"): Delete.
6606 (define_subst_attr "round_mask_op4"): New.
6607 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6609 (define_subst_attr "round_modev8sf_condition"): New.
6610 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6612 (define_subst_attr "round_saeonly_mask_operand4"): New.
6613 (define_subst_attr "round_saeonly_mask_op4"): New.
6614 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6615 V8DImode, V16SImode.
6616 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6617 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6618 (define_subst_attr "mask_expand4_args"): New.
6619 (define_subst "mask_expand4"): New.
6621 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6623 Anna Tikhonova <anna.tikhonova@intel.com>
6624 Ilya Tocar <ilya.tocar@intel.com>
6625 Andrey Turetskiy <andrey.turetskiy@intel.com>
6626 Ilya Verbin <ilya.verbin@intel.com>
6627 Kirill Yukhin <kirill.yukhin@intel.com>
6628 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6630 * config/i386/i386.md
6631 (define_attr "isa"): Add avx512bw,noavx512bw.
6632 (define_attr "enabled"): Ditto.
6633 (define_split): Add 32/64-bit mask logic.
6634 (define_insn "*k<logic>qi"): New.
6635 (define_insn "*k<logic>hi"): New.
6636 (define_insn "*anddi_1"): Add mask version.
6637 (define_insn "*andsi_1"): Ditto.
6638 (define_insn "*<code><mode>_1"): Ditto.
6639 (define_insn "*<code>hi_1"): Ditto.
6640 (define_insn "kxnor<mode>"): New.
6641 (define_insn "kunpcksi"): New.
6642 (define_insn "kunpckdi"): New.
6643 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6644 (define_insn "*one_cmplhi2_1"): Ditto.
6646 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6647 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6648 Anna Tikhonova <anna.tikhonova@intel.com>
6649 Ilya Tocar <ilya.tocar@intel.com>
6650 Andrey Turetskiy <andrey.turetskiy@intel.com>
6651 Ilya Verbin <ilya.verbin@intel.com>
6652 Kirill Yukhin <kirill.yukhin@intel.com>
6653 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6655 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6658 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6659 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6660 Anna Tikhonova <anna.tikhonova@intel.com>
6661 Ilya Tocar <ilya.tocar@intel.com>
6662 Andrey Turetskiy <andrey.turetskiy@intel.com>
6663 Ilya Verbin <ilya.verbin@intel.com>
6664 Kirill Yukhin <kirill.yukhin@intel.com>
6665 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6667 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
6669 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6670 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6671 xmm/ymm16+ when availble.
6672 * config/i386/i386.h
6673 (HARD_REGNO_NREGS): Add mask regs.
6674 (VALID_AVX512F_REG_MODE): Ditto.
6675 (VALID_AVX512F_REG_MODE) : Define.
6676 (VALID_MASK_AVX512BW_MODE): Ditto.
6677 (reg_class) (MASK_REG_P(X)): Define.
6678 * config/i386/i386.md: Do not split long moves with mask register,
6679 use kmovb if avx512bw is availible.
6680 (movdi_internal): Handle mask registers.
6682 2014-08-14 Richard Biener <rguenther@suse.de>
6684 PR tree-optimization/62081
6685 * tree-ssa-loop.c (pass_fix_loops): New pass.
6686 (pass_tree_loop::gate): Do not fixup loops here.
6687 * tree-pass.h (make_pass_fix_loops): Declare.
6688 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6690 2014-08-14 Richard Biener <rguenther@suse.de>
6692 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6693 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6695 2014-08-14 Richard Biener <rguenther@suse.de>
6697 PR tree-optimization/62090
6698 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6699 (fold_builtin_2): Do not fold sprintf.
6700 (fold_builtin_3): Likewise.
6701 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6702 moved from builtins.c.
6703 (gimple_fold_builtin): Fold sprintf.
6705 2014-08-14 Richard Biener <rguenther@suse.de>
6707 PR rtl-optimization/62079
6708 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6711 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6713 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6714 current_function_decl.
6716 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6718 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6719 cgraph_function_node to cgraph_node::function_symbol
6722 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6724 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6725 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6727 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6729 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6732 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6734 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6737 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6740 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6741 any registers that are used in mem_insn.
6743 2014-08-12 Steve Ellcey <sellcey@mips.com>
6745 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6747 2014-08-12 Steve Ellcey <sellcey@mips.com>
6749 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6750 (MULTILIB_DIRNAMES): Ditto.
6751 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6752 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6753 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6754 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6755 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6756 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6758 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6761 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6762 of __ARM_SIZEOF_WCHAR_T.
6764 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6767 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6768 Remove unnecessary attributes.
6770 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6772 * internal-fn.c (init_internal_fns): Fix off-by-one.
6774 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6776 Anna Tikhonova <anna.tikhonova@intel.com>
6777 Ilya Tocar <ilya.tocar@intel.com>
6778 Andrey Turetskiy <andrey.turetskiy@intel.com>
6779 Ilya Verbin <ilya.verbin@intel.com>
6780 Kirill Yukhin <kirill.yukhin@intel.com>
6781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6783 * config/i386/i386.c (standard_sse_constant_opcode): Use
6784 vpxord/vpternlog if avx512 is availible.
6786 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6789 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6790 bitfields, that is when size doesn't match the size of type or the
6791 size of the constructor.
6793 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6795 * config/rs6000/constraints.md (wh constraint): New constraint,
6796 for FP registers if direct move is available.
6797 (wi constraint): New constraint, for VSX/FP registers that can
6798 handle 64-bit integers.
6799 (wj constraint): New constraint for VSX/FP registers that can
6800 handle 64-bit integers for direct moves.
6801 (wk constraint): New constraint for VSX/FP registers that can
6802 handle 64-bit doubles for direct moves.
6803 (wy constraint): Make documentation match implementation.
6805 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6806 scalar_in_vmx_p field to simplify tests of whether SFmode or
6807 DFmode can go in the Altivec registers.
6808 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6809 (rs6000_setup_reg_addr_masks): Likewise.
6810 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6811 field, and wh/wi/wj/wk constraints.
6812 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6813 the wh/wi/wj/wk constraints.
6814 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6815 upper registers, prefer VSX registers unless the operation is a
6816 memory operation with REG+OFFSET addressing.
6818 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6819 DImode. Change SFmode to use ww constraint instead of d to allow
6820 SF registers in the upper registers.
6823 (VSr5): Fix thinko in comment.
6824 (VSa): New mode attribute that is an alternative to wa, that
6825 returns the VSX register class that a mode can go in, but may not
6826 be the preferred register class.
6827 (VS_64dm): New mode attribute for appropriate register classes for
6828 referencing 64-bit elements of vectors for direct moves and normal
6830 (VS_64reg): Likewise.
6831 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6832 register allocator to only registers the data type can handle.
6833 (vsx_le_perm_load_<mode>): Likewise.
6834 (vsx_le_perm_store_<mode>): Likewise.
6835 (vsx_xxpermdi2_le_<mode>): Likewise.
6836 (vsx_xxpermdi4_le_<mode>): Likewise.
6837 (vsx_lxvd2x2_le_<mode>): Likewise.
6838 (vsx_lxvd2x4_le_<mode>): Likewise.
6839 (vsx_stxvd2x2_le_<mode>): Likewise.
6840 (vsx_add<mode>3): Likewise.
6841 (vsx_sub<mode>3): Likewise.
6842 (vsx_mul<mode>3): Likewise.
6843 (vsx_div<mode>3): Likewise.
6844 (vsx_tdiv<mode>3_internal): Likewise.
6845 (vsx_fre<mode>2): Likewise.
6846 (vsx_neg<mode>2): Likewise.
6847 (vsx_abs<mode>2): Likewise.
6848 (vsx_nabs<mode>2): Likewise.
6849 (vsx_smax<mode>3): Likewise.
6850 (vsx_smin<mode>3): Likewise.
6851 (vsx_sqrt<mode>2): Likewise.
6852 (vsx_rsqrte<mode>2): Likewise.
6853 (vsx_tsqrt<mode>2_internal): Likewise.
6854 (vsx_fms<mode>4): Likewise.
6855 (vsx_nfma<mode>4): Likewise.
6856 (vsx_eq<mode>): Likewise.
6857 (vsx_gt<mode>): Likewise.
6858 (vsx_ge<mode>): Likewise.
6859 (vsx_eq<mode>_p): Likewise.
6860 (vsx_gt<mode>_p): Likewise.
6861 (vsx_ge<mode>_p): Likewise.
6862 (vsx_xxsel<mode>): Likewise.
6863 (vsx_xxsel<mode>_uns): Likewise.
6864 (vsx_copysign<mode>3): Likewise.
6865 (vsx_float<VSi><mode>2): Likewise.
6866 (vsx_floatuns<VSi><mode>2): Likewise.
6867 (vsx_fix_trunc<mode><VSi>2): Likewise.
6868 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6869 (vsx_x<VSv>r<VSs>i): Likewise.
6870 (vsx_x<VSv>r<VSs>ic): Likewise.
6871 (vsx_btrunc<mode>2): Likewise.
6872 (vsx_b2trunc<mode>2): Likewise.
6873 (vsx_floor<mode>2): Likewise.
6874 (vsx_ceil<mode>2): Likewise.
6875 (vsx_<VS_spdp_insn>): Likewise.
6876 (vsx_xscvspdp): Likewise.
6877 (vsx_xvcvspuxds): Likewise.
6878 (vsx_float_fix_<mode>2): Likewise.
6879 (vsx_set_<mode>): Likewise.
6880 (vsx_extract_<mode>_internal1): Likewise.
6881 (vsx_extract_<mode>_internal2): Likewise.
6882 (vsx_extract_<mode>_load): Likewise.
6883 (vsx_extract_<mode>_store): Likewise.
6884 (vsx_splat_<mode>): Likewise.
6885 (vsx_xxspltw_<mode>): Likewise.
6886 (vsx_xxspltw_<mode>_direct): Likewise.
6887 (vsx_xxmrghw_<mode>): Likewise.
6888 (vsx_xxmrglw_<mode>): Likewise.
6889 (vsx_xxsldwi_<mode>): Likewise.
6890 (vsx_xscvdpspn): Tighten constraints to only use register classes
6892 (vsx_xscvspdpn): Likewise.
6893 (vsx_xscvdpspn_scalar): Likewise.
6895 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
6896 wj, and wk constraints.
6897 (GPR_REG_CLASS_P): New helper macro for register classes targeting
6898 general purpose registers.
6900 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
6902 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
6903 DImode instead of wm. Use wk constraint for direct move of DFmode
6905 (extendsidi2_lfiwax): Likewise.
6908 (movdi_internal64): Likewise.
6910 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
6911 wk constraints. Make the wy constraint documentation match them
6914 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
6916 Replacement of isl_int by isl_val
6917 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
6918 (compute_bounds_for_param): use isl_val instead of isl_int
6919 (compute_bounds_for_loop): likewise
6920 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
6921 (build_linearized_memory_access): use isl_val instead of isl_int
6922 (pdr_stride_in_loop): likewise
6923 * graphite-optimize-isl.c:
6924 (getPrevectorMap): use isl_val instead of isl_int
6926 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
6927 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
6928 (extern the_isl_ctx): declare
6929 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
6930 (extract_affine_gmp): likewise
6932 (build_loop_iteration_domains): likewise
6933 (add_param_constraints): likewise
6935 2014-08-11 Richard Biener <rguenther@suse.de>
6937 PR tree-optimization/62075
6938 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
6939 handle uses in patterns.
6941 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6942 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6943 Anna Tikhonova <anna.tikhonova@intel.com>
6944 Ilya Tocar <ilya.tocar@intel.com>
6945 Andrey Turetskiy <andrey.turetskiy@intel.com>
6946 Ilya Verbin <ilya.verbin@intel.com>
6947 Kirill Yukhin <kirill.yukhin@intel.com>
6948 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6950 * common/config/i386/i386-common.c
6951 (OPTION_MASK_ISA_AVX512VL_SET): Define.
6952 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
6953 (ix86_handle_option): Handle OPT_mavx512vl.
6954 * config/i386/cpuid.h (bit_AVX512VL): Define.
6955 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
6956 set -mavx512vl accordingly.
6957 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6958 OPTION_MASK_ISA_AVX512VL.
6959 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
6960 (ix86_option_override_internal): Define PTA_AVX512VL, handle
6961 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
6962 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
6963 * config/i386/i386.h (TARGET_AVX512VL): Define.
6964 (TARGET_AVX512VL_P(x)): Ditto.
6965 * config/i386/i386.opt: Add mavx512vl.
6967 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
6969 PR tree-optimization/62073
6970 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
6973 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
6974 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6975 Anna Tikhonova <anna.tikhonova@intel.com>
6976 Ilya Tocar <ilya.tocar@intel.com>
6977 Andrey Turetskiy <andrey.turetskiy@intel.com>
6978 Ilya Verbin <ilya.verbin@intel.com>
6979 Kirill Yukhin <kirill.yukhin@intel.com>
6980 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6982 * common/config/i386/i386-common.c
6983 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
6984 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
6985 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
6986 (ix86_handle_option): Handle OPT_mavx512bw.
6987 * config/i386/cpuid.h (bit_AVX512BW): Define.
6988 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
6989 set -mavx512bw accordingly.
6990 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
6991 OPTION_MASK_ISA_AVX512BW.
6992 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
6993 (ix86_option_override_internal): Define PTA_AVX512BW, handle
6994 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
6995 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
6996 * config/i386/i386.h (TARGET_AVX512BW): Define.
6997 (TARGET_AVX512BW_P(x)): Ditto.
6998 * config/i386/i386.opt: Add mavx512bw.
7000 2014-08-11 Richard Biener <rguenther@suse.de>
7002 PR tree-optimization/62070
7003 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7004 Remove SSA checking.
7006 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7008 * asan.c (asan_check_flags): New enum.
7009 (build_check_stmt_with_calls): Removed function.
7010 (build_check_stmt): Split inlining logic to
7011 asan_expand_check_ifn.
7012 (instrument_derefs): Rename parameter.
7013 (instrument_mem_region_access): Rename parameter.
7014 (instrument_strlen_call): Likewise.
7015 (asan_expand_check_ifn): New function.
7016 (asan_instrument): Remove old code.
7017 (pass_sanopt::execute): Change handling of
7018 asan-instrumentation-with-call-threshold.
7019 (asan_clear_shadow): Fix formatting.
7020 (asan_function_start): Likewise.
7021 (asan_emit_stack_protection): Likewise.
7022 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7024 * internal-fn.c (expand_ASAN_CHECK): New function.
7025 * internal-fn.def (ASAN_CHECK): New internal function.
7026 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7028 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7029 * tree.c: Small comment fix.
7031 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7033 * gimple.c (gimple_call_fnspec): Support internal functions.
7034 (gimple_call_return_flags): Use const.
7035 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7036 * internal-fn.def: Add fnspec information.
7037 * internal-fn.h (internal_fn_fnspec): New function.
7038 (init_internal_fns): Declare new function.
7039 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7040 (init_internal_fns): New function.
7041 * tree-core.h: Update macro call.
7042 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7044 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7046 * lto-streamer.h (struct output_block::symbol): Change from
7047 struct symtab_node to plain symtab_node.
7048 (referenced_from_this_partition_p): Change first parameter
7049 from struct symtab_node to plain symtab_node.
7051 2014-08-10 Marek Polacek <polacek@redhat.com>
7054 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7056 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7058 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7059 DECL correctly; do not give up on types in static storage.
7061 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7063 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7065 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7067 * graphite-isl-ast-to-gimple.c:
7068 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7070 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7072 2014-08-08 Guozhi Wei <carrot@google.com>
7074 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7076 2014-08-08 Cary Coutant <ccoutant@google.com>
7078 * dwarf2out.c (get_skeleton_type_unit): Remove.
7079 (output_skeleton_debug_sections): Remove skeleton type units.
7080 (output_comdat_type_unit): Likewise.
7081 (dwarf2out_finish): Likewise.
7083 2014-08-07 Yi Yang <ahyangyi@google.com>
7085 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7087 2014-08-08 Richard Biener <rguenther@suse.de>
7089 * lto-streamer.h (struct lto_input_block): Make it a class
7091 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7092 (struct lto_function_header, struct lto_simple_header,
7093 struct lto_simple_header_with_strings,
7094 struct lto_decl_header, struct lto_function_header): Make
7095 a simple inheritance hieararchy. Remove unused fields.
7096 (struct lto_asm_header): Remove.
7097 * lto-streamer-out.c (produce_asm): Adjust.
7098 (lto_output_toplevel_asms): Likewise.
7099 (produce_asm_for_decls): Likewise.
7100 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7101 * data-streamer-in.c (string_for_index): Likewise.
7102 * ipa-inline-analysis.c (inline_read_section): Likewise.
7103 * ipa-prop.c (ipa_prop_read_section): Likewise.
7104 (read_replacements_section): Likewise.
7105 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7106 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7107 (lto_destroy_simple_input_block): Likewise.
7108 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7109 (lto_input_toplevel_asms): Likewise.
7111 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7112 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7113 Anna Tikhonova <anna.tikhonova@intel.com>
7114 Ilya Tocar <ilya.tocar@intel.com>
7115 Andrey Turetskiy <andrey.turetskiy@intel.com>
7116 Ilya Verbin <ilya.verbin@intel.com>
7117 Kirill Yukhin <kirill.yukhin@intel.com>
7118 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7120 * common/config/i386/i386-common.c
7121 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7122 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7123 (ix86_handle_option): Handle OPT_mavx512dq.
7124 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7125 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7126 set -mavx512dq accordingly.
7127 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7128 OPTION_MASK_ISA_AVX512DQ.
7129 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7130 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7131 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7132 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7133 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7134 (TARGET_AVX512DQ_P(x)): Ditto.
7135 * config/i386/i386.opt: Add mavx512dq.
7137 2014-08-08 Richard Biener <rguenther@suse.de>
7139 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7140 target_percent, target_percent_s): Export.
7141 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7142 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7143 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7144 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7145 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7146 Move to gimple-fold.c.
7147 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7149 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7150 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7151 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7152 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7153 (rewrite_call_expr_array): Remove.
7154 (fold_builtin_sprintf_chk): Likewise.
7155 (fold_builtin_snprintf_chk): Likewise.
7156 (fold_builtin_varargs): Remove handling of sprintf_chk,
7157 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7158 (gimple_fold_builtin_sprintf_chk): Remove.
7159 (gimple_fold_builtin_snprintf_chk): Likewise.
7160 (gimple_fold_builtin_varargs): Likewise.
7161 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7162 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7163 * gimple.c (gimple_seq_add_seq_without_update): New function.
7164 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7165 * gimple-fold.c: Include output.h.
7166 (gsi_replace_with_seq_vops): New function, split out from ...
7167 (gimplify_and_update_call_from_tree): ... here.
7168 (replace_call_with_value): New function.
7169 (replace_call_with_call_and_fold): Likewise.
7170 (var_decl_component_p): Moved from builtins.c.
7171 (gimple_fold_builtin_memory_op): Moved from builtins.c
7172 fold_builtin_memory_op and rewritten to GIMPLE.
7173 (gimple_fold_builtin_memset): Likewise.
7174 (gimple_fold_builtin_strcpy): Likewise.
7175 (gimple_fold_builtin_strncpy): Likewise.
7176 (gimple_fold_builtin_strcat): Likewise.
7177 (gimple_fold_builtin_fputs): Likewise.
7178 (gimple_fold_builtin_memory_chk): Likewise.
7179 (gimple_fold_builtin_stxcpy_chk): Likewise.
7180 (gimple_fold_builtin_stxncpy_chk): Likewise.
7181 (gimple_fold_builtin_snprintf_chk): Likewise.
7182 (gimple_fold_builtin_sprintf_chk): Likewise.
7183 (gimple_fold_builtin_strlen): New function.
7184 (gimple_fold_builtin_with_strlen): New function split out from
7185 gimple_fold_builtin.
7186 (gimple_fold_builtin): Change signature and handle
7187 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7188 here. Call gimple_fold_builtin_with_strlen.
7189 (gimple_fold_call): Adjust.
7191 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7193 * calls.c (precompute_arguments): Check
7194 promoted_for_signed_and_unsigned_p and set the promoted mode.
7195 (promoted_for_signed_and_unsigned_p): New function.
7196 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7197 and set the promoted mode.
7198 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7199 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7200 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7203 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7205 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7206 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7207 (expand_call): Likewise.
7208 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7209 to get promoted mode.
7210 * combine.c (record_promoted_value): Skip > 0 comparison with
7211 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7212 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7213 of SUBREG_PROMOTED_UNSIGNED_P.
7214 (convert_modes): Likewise.
7215 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7216 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7217 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7218 SUBREG_PROMOTED_UNSIGNED_SET.
7219 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7220 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7221 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7222 SUBREG_PROMOTED_SET.
7223 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7224 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7225 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7226 of SUBREG_PROMOTED_UNSIGNED_P.
7227 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7228 (SUBREG_PROMOTED_SET): New define.
7229 (SUBREG_PROMOTED_GET): Likewise.
7230 (SUBREG_PROMOTED_SIGN): Likewise.
7231 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7232 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7233 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7234 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7235 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7236 (nonzero_bits1): Skip > 0 comparison with the results as
7237 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7238 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7239 of !SUBREG_PROMOTED_UNSIGNED_P.
7240 * simplify-rtx.c (simplify_unary_operation_1): Use new
7241 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7242 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7243 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7244 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7246 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7248 * ipa-devirt.c: Include gimple-pretty-print.h
7249 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7251 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7252 (get_polymorphic_call_info): Fix return value
7253 (type_change_info): New sturcture based on ipa-prop
7255 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7256 based on ipa-prop variant.
7257 (extr_type_from_vtbl_ptr_store): New function
7258 based on ipa-prop variant.
7259 (record_known_type): New function.
7260 (check_stmt_for_type_change): New function.
7261 (get_dynamic_type): New function.
7262 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7263 * tree-ssa-pre.c: ipa-utils.h
7264 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7265 machinery; sanity check with ipa-prop devirtualization.
7266 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7269 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7271 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7272 * alias.c, cfgexpand.c, cgraphbuild.c,
7273 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7274 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7275 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7276 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7277 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7278 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7279 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7280 dse.c, except.c, gengtype.c, gimple-expr.c,
7281 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7282 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7283 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7284 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7285 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7286 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7288 * pointer-set.c: Remove file.
7289 * pointer-set.h: Remove file.
7291 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7293 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7294 * config/arm/types.md (f_sels, f_seld): Delete.
7296 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7298 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7299 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7300 (aarch64_movdi_<mode>high): Likewise.
7301 (aarch64_mov<mode>high_di): Likewise.
7302 (aarch64_movdi_<mode>low): Likewise.
7303 (aarch64_mov<mode>low_di): Likewise.
7304 (aarch64_movtilow_tilow): Likewise.
7305 Add comment explaining usage of fp,simd attributes and of
7306 TARGET_FLOAT and TARGET_SIMD.
7308 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7309 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7311 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7312 Use MOVN when one of the half-words is 0xffff.
7314 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7316 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7318 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7320 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7321 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7322 (rfs_str): String corresponding to RFS_* constants.
7323 (rank_for_schedule_stats_t): New typedef.
7324 (rank_for_schedule_stats): New static variable.
7325 (rfs_result): New static function.
7326 (rank_for_schedule): Track statistics for deciding heuristics.
7327 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7329 (ready_sort): Use them for debug printouts.
7330 (schedule_block): Init statistics state. Print statistics on
7331 rank_for_schedule decisions.
7333 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7335 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7337 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7339 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7342 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7344 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7345 function to not conflict.
7346 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7347 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7348 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7349 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7350 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7353 2014-08-07 Marek Polacek <polacek@redhat.com>
7355 * fold-const.c (fold_binary_loc): Add folding of
7356 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7358 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7360 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7361 instead of type size.
7362 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7364 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7366 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7367 (*thumb1_movqi_insn): Likewise.
7368 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7370 2014-08-07 Tom de Vries <tom@codesourcery.com>
7372 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7373 (glibc_2_11_or_earlier): Remove effective-target keywords.
7375 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7377 * config/arm/arm.c (bdesc_2arg): Fix typo.
7378 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7380 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7382 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7384 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7387 * haifa-sched.c (advance_one_cycle): Fix dump.
7388 (schedule_block): Don't advance cycle if we are already at the
7389 beginning of the cycle.
7391 2014-08-06 Martin Jambor <mjambor@suse.cz>
7394 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7396 2014-08-06 Richard Biener <rguenther@suse.de>
7399 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7401 (lto_input_tree): Pop SCCs here.
7403 2014-08-06 Richard Biener <rguenther@suse.de>
7405 PR tree-optimization/61320
7406 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7407 handle misaligned loads.
7409 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7411 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7412 (aarch64_expand_vec_perm_const): Check for dup before zip.
7414 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7416 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7417 CONST_INT_P instead of GET_CODE and compare.
7418 (aarch64_select_cc_mode): Likewise.
7419 (aarch64_print_operand): Likewise.
7420 (aarch64_rtx_costs): Likewise.
7421 (aarch64_simd_valid_immediate): Likewise.
7422 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7423 (aarch64_simd_emit_pair_result_insn): Likewise.
7425 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7427 * gdbhooks.py (find_gcc_source_dir): New helper function.
7428 (class PassNames): New class, locating and parsing passes.def.
7429 (class BreakOnPass): New command "break-on-pass".
7431 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7433 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7436 2014-08-05 Richard Biener <rguenther@suse.de>
7438 PR rtl-optimization/61672
7439 * emit-rtl.h (mem_attrs_eq_p): Declare.
7440 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7441 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7442 * cfgcleanup.c (merge_memattrs): Likewise.
7445 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7447 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7448 rather than singleton vectors.
7449 (vqdmlsls_lane_s32): Likewise.
7451 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7453 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7454 Use VSDQ_HSI mode iterator.
7455 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7456 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7457 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7458 Use BUILTIN_VDQHS macro.
7459 (sqrdmulh_laneq): Likewise.
7460 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7461 (vqdmlals_laneq_s32): Likewise.
7462 (vqdmlslh_laneq_s16): Likewise.
7463 (vqdmlsls_laneq_s32): Likewise.
7464 (vqdmulhh_laneq_s16): Likewise.
7465 (vqdmulhs_laneq_s32): Likewise.
7466 (vqrdmulhh_laneq_s16): Likewise.
7467 (vqrdmulhs_laneq_s32): Likewise.
7469 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7471 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7472 (vmuld_laneq_f64): Likewise.
7473 (vmuls_laneq_f32): Likewise.
7474 (vmul_n_f64): Likewise.
7475 (vmuld_lane_f64): Reimplement in C.
7476 (vmuls_lane_f32): Likewise.
7478 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7480 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7482 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7484 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7486 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7487 (rbitsi2): Likewise.
7488 (*arm_rev): Set predicable and predicable_short_it attributes.
7490 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7492 * convert.c (convert_to_integer): Guard transformation to lrint by
7495 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7497 * config/aarch64/aarch64-builtins.c
7498 (aarch64_simd_builtin_type_mode): Delete.
7499 (v8qi_UP): Remap to V8QImode.
7500 (v4hi_UP): Remap to V4HImode.
7501 (v2si_UP): Remap to V2SImode.
7502 (v2sf_UP): Remap to V2SFmode.
7503 (v1df_UP): Remap to V1DFmode.
7504 (di_UP): Remap to DImode.
7505 (df_UP): Remap to DFmode.
7506 (v16qi_UP):V16QImode.
7507 (v8hi_UP): Remap to V8HImode.
7508 (v4si_UP): Remap to V4SImode.
7509 (v4sf_UP): Remap to V4SFmode.
7510 (v2di_UP): Remap to V2DImode.
7511 (v2df_UP): Remap to V2DFmode.
7512 (ti_UP): Remap to TImode.
7513 (ei_UP): Remap to EImode.
7514 (oi_UP): Remap to OImode.
7515 (ci_UP): Map to CImode.
7516 (xi_UP): Remap to XImode.
7517 (si_UP): Remap to SImode.
7518 (sf_UP): Remap to SFmode.
7519 (hi_UP): Remap to HImode.
7520 (qi_UP): Remap to QImode.
7521 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7522 (VAR1): Build builtin name.
7523 (aarch64_init_simd_builtins): Remove dead code.
7525 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7527 * graphite-isl-ast-to-gimple.c:
7528 (set_options): New function.
7529 (scop_to_isl_ast): Add calling of set_options.
7531 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7533 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7534 (analyze_iv_to_split_insn): Don't initialize them.
7535 (get_ivts_expr): Removed.
7536 (allocate_basic_variable, insert_base_initialization): Use
7537 SET_SRC instead of *get_ivts_expr.
7538 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7540 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7542 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7543 (translate_isl_ast_for_loop): Add checking of the
7544 flag_loop_parallelize_all.
7545 (ast_build_before_for): New function.
7546 (scop_to_isl_ast): Add checking of the
7547 flag_loop_parallelize_all.
7548 * graphite-dependences.c: Move the defenition of the
7549 scop_get_dependences from graphite-optimize-isl.c to this file.
7550 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7551 (carries_deps): Add checking of the x's value.
7552 * graphite-optimize-isl.c: Move the defenition of the
7553 scop_get_dependences to graphite-dependences.c.
7554 * graphite-poly.h: Add declarations of scop_get_dependences
7557 2014-08-04 Rohit <rohitarulraj@freescale.com>
7560 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7562 (alt_reg_names): Likewise.
7563 (rs6000_dwarf_register_span): For SPE high registers, replace
7564 dwarf register numbers with GCC hard register numbers.
7565 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7566 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7567 register number for the corresponding GCC hard register number.
7568 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7569 newly added GCC hard register numbers for SPE high registers.
7570 (DWARF_FRAME_REGISTERS): Likewise.
7571 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7572 (DWARF_FRAME_REGNUM): Likewise.
7573 (FIXED_REGISTERS): Likewise.
7574 (CALL_USED_REGISTERS): Likewise.
7575 (CALL_REALLY_USED_REGISTERS): Likewise.
7576 (REG_ALLOC_ORDER): Likewise.
7577 (enum reg_class): Likewise.
7578 (REG_CLASS_NAMES): Likewise.
7579 (REG_CLASS_CONTENTS): Likewise.
7580 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7582 2014-08-04 Richard Biener <rguenther@suse.de>
7584 * gimple-fold.h (gimple_fold_builtin): Remove.
7585 * gimple-fold.c (gimple_fold_builtin): Make static.
7586 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7587 fold_stmt, not gimple_fold_builtin.
7589 2014-08-04 Martin Liska <mliska@suse.cz>
7591 * cgraph.h (csi_end_p): Removed.
7592 (csi_next): Likewise.
7593 (csi_node): Likewise.
7594 (csi_start): Likewise.
7595 (cgraph_node_in_set_p): Likewise.
7596 (cgraph_node_set_size): Likewise.
7597 (vsi_end_p): Likewise.
7598 (vsi_next): Likewise.
7599 (vsi_node): Likewise.
7600 (vsi_start): Likewise.
7601 (varpool_node_set_size): Likewise.
7602 (cgraph_node_set_nonempty_p): Likewise.
7603 (varpool_node_set_nonempty_p): Likewise.
7604 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7606 * ipa-inline-transform.c: Likewise.
7607 * ipa-utils.c (cgraph_node_set_new): Removed.
7608 (cgraph_node_set_add): Likewise.
7609 (cgraph_node_set_remove): Likewise.
7610 (cgraph_node_set_find): Likewise.
7611 (dump_cgraph_node_set): Likewise.
7612 (debug_cgraph_node_set): Likewise.
7613 (free_cgraph_node_set): Likewise.
7614 (varpool_node_set_new): Likewise.
7615 (varpool_node_set_add): Likewise.
7616 (varpool_node_set_remove): Likewise.
7617 (varpool_node_set_find): Likewise.
7618 (dump_varpool_node_set): Likewise.
7619 (free_varpool_node_set): Likewise.
7620 (debug_varpool_node_set): Likewise.
7621 * tree-emutls.c (struct tls_var_data):
7622 (emutls_index): Removed.
7623 (emutls_decl): Likewise.
7624 (gen_emutls_addr): Function implementation uses newly added
7625 hash_map<varpool_node *, tls_var_data>.
7626 (clear_access_vars): Likewise.
7627 (create_emultls_var): Likewise.
7628 (ipa_lower_emutls): Likewise.
7629 (reset_access): New function.
7631 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7633 * config/i386/i386.c (ix86_option_override_internal): Add
7634 PTA_RDRND and PTA_MOVBE for bdver4.
7636 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7637 James Greenhalgh <james.greenhalgh@arm.com>
7639 * doc/md.texi (clrsb): Document.
7640 (clz): Change reference to x into operand 1.
7642 (popcount): Likewise.
7644 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7647 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7648 move to subtarget in serial version if result is ignored.
7650 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7651 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7653 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7654 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7655 (sched_analyze_insn): Update use of try_group_insn to
7656 sched_macro_fuse_insns.
7657 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7658 arguments that are not conditional jumps.
7660 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7662 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7663 family information. Handle BTVER2 cpu with cpuid family value.
7665 2014-08-04 Tom de Vries <tom@codesourcery.com>
7667 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7668 (glibc_2_11_or_earlier): Document effective-target keywords.
7670 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7672 * ipa-devirt.c (odr_type_warn_count): Add type.
7673 (possible_polymorphic_call_targets): Set it.
7674 (ipa_devirt): Use it.
7676 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7678 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7680 * ipa-devirt.c: Include hash-map.h
7681 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7682 (clear_speculation): Break out of ...
7683 (get_class_context): ... here; speed up handling obviously useless
7685 (odr_type_warn_count, decl_warn_count): New structures.
7686 (final_warning_record): New structure.
7687 (final_warning_records): New static variable.
7688 (possible_polymorphic_call_targets): Cleanup handling of
7689 speculative info; do not build speculation when user do not care;
7690 record info about warnings when asked for.
7691 (add_decl_warning): New function.
7692 (type_warning_cmp): New function.
7693 (decl_warning_cmp): New function.
7694 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7695 (gate): Enable pass when warnings are requested.
7696 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7699 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7701 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7703 (hash_map::remove): New method.
7704 (hash_map::traverse): New method.
7705 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7706 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7707 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7708 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7709 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7710 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7713 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7715 * hash-set.h: new File.
7716 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7717 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7718 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7719 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7720 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7721 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7722 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7723 varpool.c: Use hash_set instead of pointer_set.
7725 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7727 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7729 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7731 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7732 for frame access when strict_p is false.
7734 2014-08-01 Renlin Li <renlin.li@arm.com>
7735 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7737 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7738 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7739 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7741 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7743 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7744 aarch64_mem_pair_offset.
7746 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7748 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7750 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7751 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7753 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7755 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7757 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7760 * cgraphunit.c (analyze_functions): Use get_create rather than get
7761 for decls which are clones of abstract functions.
7763 2014-08-01 Martin Liska <mliska@suse.cz>
7765 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7766 * ipa-prop.h (count_formal_params): Global function created from static.
7767 * ipa-prop.c (count_formal_params): Likewise.
7768 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7769 profiles for semantically equivalent functions.
7770 * passes.c (do_per_function): If we load body of a function
7771 during WPA, this condition should behave same.
7772 * varpool.c (ctor_for_folding): More tolerant assert for variable
7773 aliases created during WPA.
7775 2014-08-01 Martin Liska <mliska@suse.cz>
7777 * doc/invoke.texi (Options That Control Optimization): Documentation
7778 for -foptimize-strlen introduced. Optimization levels default options
7781 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7783 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7784 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7785 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7787 * stor-layout.h (min_align_of_type): New prototype.
7788 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7789 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7791 * ubsan.c: Include builtins.h.
7792 (ubsan_expand_bounds_ifn): Change return type to bool,
7794 (ubsan_expand_null_ifn): Change return type to bool, change
7795 argument to gimple_stmt_iterator *. Handle both null and alignment
7796 sanitization, take type from ckind argument's type rather than
7798 (instrument_member_call): Removed.
7799 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7800 Handle both null and alignment sanitization, don't say whole
7801 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7802 call instead of 2 argument.
7803 (instrument_null): Adjust instrument_mem_ref caller. Don't
7804 instrument calls here.
7805 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7807 * stor-layout.c (min_align_of_type): New function.
7808 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7809 Or it into SANITIZE_UNDEFINED.
7810 * doc/invoke.texi (-fsanitize=alignment): Document.
7812 2014-07-31 Andi Kleen <ak@linux.intel.com>
7814 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7816 2014-07-31 Andi Kleen <ak@linux.intel.com>
7818 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7820 (vn_reference_compute_hash): Dito.
7821 (vn_nary_op_compute_hash): Dito.
7822 (vn_phi_compute_hash): Dito.
7823 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7825 2014-07-31 Andi Kleen <ak@linux.intel.com>
7827 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7828 Rename to inchash:add_expr_commutative. Convert to inchash.
7829 (iterative_hash_hashable_expr): Rename to
7830 inchash:add_hashable_expr. Convert to inchash.
7831 (avail_expr_hash): Dito.
7833 2014-07-31 Andi Kleen <ak@linux.intel.com>
7835 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7838 2014-07-31 Andi Kleen <ak@linux.intel.com>
7840 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7842 2014-07-31 Andi Kleen <ak@linux.intel.com>
7844 * Makefile.in (OBJS): Add rtlhash.o
7845 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7846 (loc_checksum): Dito.
7847 (loc_checksum_ordered): Dito.
7848 (hash_loc_operands): Dito.
7850 (hash_loc_list): Dito.
7851 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7852 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7853 * rtlhash.c: New file.
7854 * rtlhash.h: New file.
7856 2014-07-31 Andi Kleen <ak@linux.intel.com>
7858 * inchash.h (inchash): Change inchash class to namespace.
7859 (class hash): ... Rename from inchash.
7860 (add_object): Move from macro to class template.
7861 * lto-streamer-out.c (hash_tree): Change inchash
7863 * tree.c (build_type_attribute_qual_variant): Dito.
7864 (type_hash_list): Dito.
7865 (attribute_hash_list): Dito.
7866 (iterative_hstate_expr): Rename to inchash::add_expr
7867 (build_range_type_1): Change inchash to inchash::hash
7868 and use hash::add_expr.
7869 (build_array_type_1): Dito.
7870 (build_function_type): Dito
7871 (build_method_type_directly): Dito.
7872 (build_offset_type): Dito.
7873 (build_complex_type): Dito.
7874 (make_vector_type): Dito.
7875 * tree.h (iterative_hash_expr): Dito.
7877 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7879 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7881 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7883 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
7884 correct alphabetical position.
7885 (vpaddd_f64): Rewrite using builtins.
7886 (vpaddd_s64): Move to correct alphabetical position.
7889 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
7892 * config/sh/sh.c (sh_legitimate_address_p,
7893 sh_legitimize_reload_address): Handle reg+reg address modes when
7894 ALLOW_INDEXED_ADDRESS is false.
7895 * config/sh/predicates.md (general_movsrc_operand,
7896 general_movdst_operand): Likewise.
7898 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7900 * config/aarch64/aarch64-builtins.c
7901 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
7904 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7906 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
7907 the generated mask based on BYTES_BIG_ENDIAN.
7908 (aarch64_simd_check_vect_par_cnst_half): New.
7909 * config/aarch64/aarch64-protos.h
7910 (aarch64_simd_check_vect_par_cnst_half): New.
7911 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
7912 the check out to aarch64_simd_check_vect_par_cnst_half.
7913 (vect_par_cnst_lo_half): Likewise.
7914 * config/aarch64/aarch64-simd.md
7915 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
7916 (move_hi_quad_<mode>): Always generate a low mask.
7918 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7920 * doc/invoke.texi (AVR Options): Add documentation about
7921 __AVR_DEVICE_NAME__ built-in macro.
7923 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
7926 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
7927 constraints are satisfied.
7928 (<shift>di3_neon): Likewise.
7930 2014-07-31 Richard Biener <rguenther@suse.de>
7932 PR tree-optimization/61964
7933 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
7934 by structural equality.
7936 2014-07-31 Yury Gribov <y.gribov@samsung.com>
7938 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
7939 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
7940 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
7942 * gcc.c (sanitize_spec_function): Support new option.
7943 (SANITIZER_SPEC): Remove now redundant check.
7944 * opts.c (common_handle_option): Support new option.
7945 (finish_options): Check for incompatibilities.
7946 * toplev.c (process_options): Split userspace-specific checks.
7948 2014-07-31 Richard Biener <rguenther@suse.de>
7950 * lto-streamer.h (struct output_block): Remove global.
7951 (struct data_in): Remove labels, num_named_labels and
7953 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
7954 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
7956 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
7959 * common.opt (-Wreturn-local-addr): Moved from c.opt.
7960 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
7961 (isolate_path): New argument to avoid inserting a trap.
7962 (find_implicit_erroneous_behaviour): Handle returning the address
7963 of a local variable.
7964 (find_explicit_erroneous_behaviour): Likewise.
7966 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
7969 * toplev.c (init_random_seed): Move piece of code never called to
7971 (set_random_seed): see above.
7973 2014-07-31 Tom de Vries <tom@codesourcery.com>
7975 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
7977 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
7979 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
7980 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
7982 2014-07-31 Richard Biener <rguenther@suse.de>
7984 * data-streamer.h (streamer_write_data_stream): Declare here,
7986 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
7987 * lto-cgraph.c (lto_output_node): Adjust.
7988 (lto_output_varpool_node): Likewise.
7989 * data-streamer-out.c (streamer_string_index): Likewise.
7990 (streamer_write_data_stream, lto_append_block): Move from ...
7991 * lto-section-out.c (lto_output_data_stream,
7992 lto_append_block): ... here.
7994 2014-07-30 Mike Stump <mikestump@comcast.net>
7996 * configure.ac: Also check for popen.
7997 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
7998 * configure: Regenerate.
7999 * config.in: Regenerate.
8001 2014-07-30 Martin Jambor <mjambor@suse.cz>
8003 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8004 parameter to gimple.
8006 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8008 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8009 address as second parameter to __tpf_eh_return routine.
8011 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8013 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8016 2014-07-30 Tom Tromey <tromey@redhat.com>
8019 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8020 * doc/extend.texi (Type Attributes): Document designated_init
8023 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8025 * graphite-isl-ast-to-gimple.c:
8026 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8027 (gcc_expression_from_isl_expression): Pass type to
8028 gcc_expression_from_isl_ast_expr_id.
8030 2014-07-30 Richard Biener <rguenther@suse.de>
8032 * lto-streamer.h (lto_write_data): New function.
8033 * langhooks.c (lhd_append_data): Do not free block.
8034 * lto-section-out.c (lto_write_data): New function writing
8035 raw data to the current section.
8036 (lto_write_stream): Adjust for langhook semantic change.
8037 (lto_destroy_simple_output_block): Write header directly.
8038 * lto-opts.c (lto_write_options): Write options directly.
8039 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8040 (lto_output_toplevel_asms): Likewise.
8041 (copy_function_or_variable): Copy data directly.
8042 (write_global_references): Output index table directly.
8043 (lto_output_decl_state_refs): Likewise.
8044 (write_symbol): Write data directly.
8045 (produce_symtab): Adjust.
8046 (produce_asm_for_decls): Output header and refs directly.
8048 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8050 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8051 to speculative_targets
8052 (get_class_context): Fix handling of contextes without outer type;
8053 avoid matching non-polymorphic types in LTO.
8054 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8055 parameter to speculative_targetsp; handle speculation.
8056 (dump_possible_polymorphic_call_targets): Update dumping.
8058 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8060 * common.opt (Wodr): Enable by default.
8062 2014-07-29 Olivier Hainque <hainque@adacore.com>
8064 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8066 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8069 * gengtype.c (strtoken): New function.
8070 (create_user_defined_type): Replace strtok with strtoken.
8072 2014-07-29 Nathan Sidwell <nathan@acm.org>
8074 * gcov-io.c (gcov_var): Make hidden.
8075 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8076 (gcov_do_dump): Declare.
8077 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8079 2014-07-29 Martin Jambor <mjambor@suse.cz>
8081 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8082 parameter to gimple.
8083 (sra_modify_assign): Likewise.
8085 2014-07-29 Richard Biener <rguenther@suse.de>
8088 * expr.c (expand_expr_real_2): Revert last change.
8090 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8092 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8093 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8094 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8096 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8097 (contains_type_p): Forward declare.
8098 (polymorphic_call_target_hasher::hash): Hash speculative info.
8099 (polymorphic_call_target_hasher::equal): Compare speculative info.
8100 (get_class_context): Handle speuclation.
8101 (contains_type_p): Update.
8102 (get_polymorphic_call_info_for_decl): Update.
8103 (walk_ssa_copies): Break out from ...
8104 (get_polymorphic_call_info): ... here; set speculative context
8106 * ipa-prop.c (ipa_write_indirect_edge_info,
8107 ipa_read_indirect_edge_info): Stream speculative context.
8108 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8109 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8110 SPECULATIVE_MAYBE_DERIVED_TYPE).
8111 (possible_polymorphic_call_targets overriders): Update.
8112 (dump_possible_polymorphic_call_targets overriders): Update.
8113 (dump_possible_polymorphic_call_target_p overriders): Update.
8115 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8117 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8118 ipa-devirt path; fix thinko there.
8120 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8122 * config/i386/i386.c (ix86_return_in_memory): Replace one
8123 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8125 2014-07-28 Marek Polacek <polacek@redhat.com>
8127 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8129 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8131 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8132 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8133 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8134 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8135 (USE_LD_AS_NEEDED): Likewise.
8136 (ASM_APP_ON): Likewise.
8137 (ASM_APP_OFF): Likewise.
8138 (TARGET_POSIX_IO): Likewise.
8139 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8140 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8141 (USE_LD_AS_NEEDED): Likewise.
8142 (ASM_APP_ON): Likewise.
8143 (ASM_APP_OFF): Likewise.
8144 (TARGET_POSIX_IO): Likewise.
8146 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8149 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8150 operators other than the equality operators.
8152 2014-07-28 Richard Biener <rguenther@suse.de>
8155 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8156 sure to register SImode ones, not only >= word_mode ones.
8157 * expr.c (expand_expr_real_2): When expanding -ftrapv
8158 binops do not use OPTAB_LIB_WIDEN.
8160 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8163 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8164 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8165 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8166 inserting them in the insn stream.
8168 2014-07-28 Marek Polacek <polacek@redhat.com>
8171 * common.opt (Wodr): Add Var.
8173 2014-07-28 Richard Biener <rguenther@suse.de>
8175 PR tree-optimization/61921
8176 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8177 if there is a varpool node before dereferencing it.
8179 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8181 * graphite-sese-to-poly.c:
8182 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8183 id of the pbb), which contains pointer to the pbb1.
8185 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8187 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8189 * graphite-isl-ast-to-gimple.c:
8190 (graphite_create_new_guard): New function.
8191 (translate_isl_ast_node_if): New function.
8192 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8194 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8196 2014-07-27 Anthony Green <green@moxielogic.com>
8198 * config.gcc: Add moxie-*-moxiebox* configuration.
8199 * config/moxie/moxiebox.h: New file.
8201 2014-07-26 Andrew Pinski <apinski@cavium.com>
8203 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8204 from the read only register.
8206 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8208 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8209 as the allocation class if it isn't likely to be spilled.
8211 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8213 * rtl.h (tls_referenced_p): Declare.
8214 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8215 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8216 (mips_cannot_force_const_mem): Use tls_referenced_p.
8217 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8218 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8219 instead of pa_tls_referenced_p.
8220 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8221 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8222 (pa_legitimate_constant_p): Likewise.
8223 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8224 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8225 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8226 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8227 rs6000_tls_referenced_p.
8228 (rs6000_tls_symbol_ref_1): Delete.
8230 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8233 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8234 Optimize inverse of a VEC_CONCAT.
8236 2014-07-25 Xinliang David Li <davidxl@google.com>
8238 * params.def: New parameter.
8239 * coverage.c (get_coverage_counts): Check new flag.
8240 (coverage_compute_profile_id): Check new flag.
8241 (coverage_begin_function): Check new flag.
8242 (coverage_end_function): Check new flag.
8243 * value-prof.c (coverage_node_map_initialized_p): New function.
8244 (init_node_map): Populate map with all functions.
8245 * doc/invoke.texi: Document new parameter.
8247 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8248 Richard Biener <rguenther@suse.de>
8250 * lto-streamer-out.c (struct sccs): Turn to ...
8251 (class DFS): ... this one; refactor the DFS walk so it can
8252 be re-done on per-SCC basis.
8253 (DFS::DFS): New constructor.
8254 (DFS::~DFS): New destructor.
8255 (hash_tree): Add new MAP argument holding in-SCC hash values;
8256 remove POINTER_TYPE hashing hack.
8257 (scc_entry_compare): Rename to ...
8258 (DFS::scc_entry_compare): ... this one.
8259 (hash_scc): Rename to ...
8260 (DFS::hash_scc): ... this one; pass output_block instead
8261 of streamer_cache; work harder to get unique and stable SCC
8263 (DFS_write_tree): Rename to ...
8264 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8265 (lto_output_tree): Update.
8267 2014-07-25 Andi Kleen <ak@linux.intel.com>
8269 * lto-streamer-out.c (hash_tree): Convert to inchash.
8271 2014-07-25 Andi Kleen <ak@linux.intel.com>
8273 * tree.c (build_type_attribute_qual_variant): Use inchash.
8274 (type_hash_list): Dito.
8275 (attribute_hash_list): Dito
8276 (iterative_hstate_expr): Dito.
8277 (iterative_hash_expr): Dito.
8278 (build_range_type_1): Dito.
8279 (build_array_type_1): Dito.
8280 (build_function_type): Dito.
8281 (build_method_type_directly): Dito.
8282 (build_offset_type): Dito.
8283 (build_complex_type): Dito.
8284 (make_vector_type): Dito.
8285 * tree.h (iterative_hash_expr): Add compat wrapper.
8286 (iterative_hstate_expr): Add.
8288 2014-07-25 Andi Kleen <ak@linux.intel.com>
8290 * Makefile.in (OBJS): Add inchash.o.
8291 (PLUGIN_HEADERS): Add inchash.h.
8292 * ipa-devirt.c: Include inchash.h.
8293 * lto-streamer-out.c: Dito.
8294 * tree-ssa-dom.c: Dito.
8295 * tree-ssa-pre.c: Dito.
8296 * tree-ssa-sccvn.c: Dito.
8297 * tree-ssa-tail-merge.c: Dito.
8299 * tree.c (iterative_hash_hashval_t): Move to ...
8300 (iterative_hash_host_wide_int): Move to ...
8301 * inchash.c: Here. New file.
8302 * tree.h (iterative_hash_hashval_t): Move to ...
8303 (iterative_hash_host_wide_int): Move to ...
8304 * inchash.h: Here. New file.
8306 2014-07-25 Richard Biener <rguenther@suse.de>
8310 * fold-const.c (native_encode_int): Add and handle offset
8311 parameter to do partial encodings of expr.
8312 (native_encode_fixed): Likewise.
8313 (native_encode_real): Likewise.
8314 (native_encode_complex): Likewise.
8315 (native_encode_vector): Likewise.
8316 (native_encode_string): Likewise.
8317 (native_encode_expr): Likewise.
8318 * fold-const.c (native_encode_expr): Add offset parameter
8320 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8321 (fold_ctor_reference): Handle all reads from tcc_constant
8324 2014-07-25 Richard Biener <rguenther@suse.de>
8326 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8329 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8331 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8333 2014-07-24 Kyle McMartin <kyle@redhat.com>
8335 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8337 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8339 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8341 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8343 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8344 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8345 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8347 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8349 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8350 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8351 aggregate types. Instead, *all* aggregate types, except for single-
8352 element or homogeneous float/vector aggregates, are quadword-aligned
8353 if required by their type alignment. Issue -Wpsabi note when a type
8354 is now treated differently than before.
8356 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8358 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8359 does not fit fully into floating-point registers, and there is still
8360 space in the register parameter area, use GPRs to pass those parts
8361 of the argument. Issue -Wpsabi note if any parameter is now treated
8362 differently than before.
8363 (rs6000_arg_partial_bytes): Update.
8365 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8367 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8369 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8371 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8372 * toplev.c (initialize_rtl): Don't use it. Move previously
8373 "language-dependent" calls to...
8374 (backend_init): ...here.
8375 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8376 Assert that RTL initialization hasn't happend yet.
8378 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8380 PR rtl-optimization/61629
8381 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8382 they have already been initialized.
8384 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8387 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8388 DECL_INCOMING_RTL and entry_parm.
8389 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8390 * calls.c (load_register_parameters): Likewise argument values.
8391 (emit_library_call_value_1, store_one_arg): Likewise argument
8393 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8395 * explow.c (validize_mem): Modify the argument in-place.
8397 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8399 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8400 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8402 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8404 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8405 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8407 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8409 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8410 (aarch64_save_callee_saves): New parameter "skip_wb".
8411 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8413 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8415 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8417 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8419 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8421 * graphite-isl-ast-to-gimple.c:
8422 (graphite_create_new_loop): Add calling of isl_id_free to properly
8423 decrement reference counts.
8425 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8427 2014-07-24 Martin Liska <mliska@suse.cz>
8428 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8430 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8431 (rs6000_code_end): Likewise.
8433 2014-07-24 Martin Liska <mliska@suse.cz>
8435 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8436 symtab_node funtion used.
8437 (rs6000_xcoff_declare_object_name): Likewise.
8439 2014-07-24 Martin Liska <mliska@suse.cz>
8441 * cgraphunit.c (compile): Correct function used.
8443 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8445 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8448 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8451 * varasm.c (bss_initializer_p): Handle offlined ctors.
8452 (align_variable, get_variable_align): Likewise.
8453 (make_decl_one_only): Likewise.
8454 (default_binds_local_p_1): Likewise.
8455 (decl_binds_to_current_def_p): Likewise.
8456 (get_variable_section): Get constructor if it is offlined.
8457 (assemble_variable_contents): Sanity check that the caller
8458 streamed in the ctor in LTO.
8460 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8462 * graphite-isl-ast-to-gimple.c:
8463 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8464 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8465 isl_ast_op_pdiv_r to the different case.
8467 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8469 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8472 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8473 when flag_errno_math is on.
8475 2014-07-24 Martin Liska <mliska@suse.cz>
8477 * cgraph.h (varpool_node):
8478 (availability get_availability (void)):
8479 created from cgraph_variable_initializer_availability
8480 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8481 created from: cgraph_variable_initializer_availability
8482 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8483 (void finalize_named_section_flags (void)):
8484 created from varpool_finalize_named_section_flags
8485 (bool assemble_decl (void)): created from varpool_assemble_decl
8486 (void analyze (void)): created from varpool_analyze_node
8487 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8488 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8489 (void remove_initializer (void)): created from varpool_remove_initializer
8490 (tree get_constructor (void)): created from varpool_get_constructor
8491 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8492 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8493 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8494 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8495 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8496 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8497 (static bool output_variables (void)): created from varpool_output_variables
8498 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8499 created from varpool_extra_name_alias
8500 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8501 (static void dump_varpool (FILE *f)): created from dump_varpool
8502 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8503 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8504 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8505 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8506 (void assemble_aliases (void)): created from assemble_aliases
8508 2014-07-24 Martin Liska <mliska@suse.cz>
8510 * cgraph.h (symtab_node):
8511 (void register_symbol (void)): created from symtab_register_node
8512 (void remove (void)): created from symtab_remove_node
8513 (void dump (FILE *f)): created from dump_symtab_node
8514 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8515 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8516 (struct ipa_ref *add_reference (symtab_node *referred_node,
8517 enum ipa_ref_use use_type)): created from add_reference
8518 (struct ipa_ref *add_reference (symtab_node *referred_node,
8519 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8520 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8521 gimple stmt)): created from maybe_add_reference
8522 (bool semantically_equivalent_p (symtab_node *target)): created from
8523 symtab_semantically_equivalent_p
8524 (void remove_from_same_comdat_group (void)): created from
8525 remove_from_same_comdat_group
8526 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8527 symtab_add_to_same_comdat_group
8528 (void dissolve_same_comdat_group_list (void)): created from
8529 symtab_dissolve_same_comdat_group_list
8530 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8531 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8532 created from symtab_alias_ultimate_target
8533 (inline symtab_node *next_defined_symbol (void)): created from
8534 symtab_next_defined_symbol
8535 (bool resolve_alias (symtab_node *target)): created from
8536 symtab_resolve_alias
8537 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8538 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8539 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8540 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8541 (void set_section (const char *section)): created from set_section_1
8542 (enum availability get_availability (void)): created from symtab_node_availability
8543 (void make_decl_local (void)): created from symtab_make_decl_local
8544 (bool real_symbol_p (void)): created from symtab_read_node
8545 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8546 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8547 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8548 symtab_in_same_comdat_p;
8549 (bool address_taken_from_non_vtable_p (void)): created from
8550 address_taken_from_non_vtable_p
8551 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8552 (static void dump_table (FILE *)): created from dump_symtab
8553 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8554 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8555 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8556 symtab_used_from_object_file_p
8557 (void dump_base (FILE *)): created from dump_symtab_base
8558 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8559 (void unregister (void)): created from symtab_unregister_node
8560 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8561 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8562 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8563 symtab_nonoverwritable_alias_1
8564 * cgraph.h (cgraph_node):
8565 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8566 created from cgraph_remove_node_and_inline_clones
8567 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8568 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8569 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8570 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8571 created from cgraph_function_node
8572 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8573 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8574 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8575 created from cgraph_create_clone
8576 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8577 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8578 created from cgraph_create_virtual_clone
8579 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8580 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8581 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8582 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8583 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8584 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8585 created from cgraph_function_version_info
8586 (struct cgraph_function_version_info *insert_new_function_version (void)):
8587 created from insert_new_cgraph_node_version
8588 (struct cgraph_function_version_info *function_version (void)): created from
8589 get_cgraph_node_version
8590 (void analyze (void)): created from analyze_function
8591 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8592 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8593 tree real_alias) cgraph_add_thunk
8594 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8595 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8596 created from cgraph_function_or_thunk_node
8597 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8598 created from expand_thunk
8599 (void reset (void)): created from cgraph_reset_node
8600 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8601 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8602 (void remove (void)): created from cgraph_remove_node
8603 (void dump (FILE *f)): created from dump_cgraph_node
8604 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8605 (bool get_body (void)): created from cgraph_get_body
8606 (void release_body (void)): created from cgraph_release_function_body
8607 (void unnest (void)): created from cgraph_unnest_node
8608 (void make_local (void)): created from cgraph_make_node_local
8609 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8610 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8611 gcov_type count, int freq)): created from cgraph_create_edge
8612 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8613 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8614 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8615 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8616 created from cgraph_create_edge_including_clones
8617 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8618 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8619 (void remove_callers (void)): created from cgraph_node_remove_callers
8620 (void remove_callees (void)): created from cgraph_node_remove_callees
8621 (enum availability get_availability (void)): created from cgraph_function_body_availability
8622 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8623 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8624 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8625 (void call_duplication_hooks (cgraph_node *node2)): created from
8626 cgraph_call_node_duplication_hooks
8627 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8628 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8629 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8630 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8631 (void call_function_insertion_hooks (void)):
8632 created from cgraph_call_function_insertion_hooks
8633 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8634 (bool local_p (void)): created from cgraph_local_node
8635 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8636 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8637 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8638 (inline bool only_called_directly_or_aliased_p (void)):
8639 created from cgraph_only_called_directly_or_aliased_p
8640 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8641 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8642 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8643 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8644 (bool can_remove_if_no_direct_calls_p (void)):
8645 created from cgraph_can_remove_if_no_direct_calls_p
8646 (inline bool has_gimple_body_p (void)):
8647 created from cgraph_function_with_gimple_body_p
8648 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8649 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8650 (static inline void debug_cgraph (void)): created from debug_cgraph
8651 (static void record_function_versions (tree decl1, tree decl2)):
8652 created from record_function_versions
8653 (static void delete_function_version (tree decl)):
8654 created from delete_function_version
8655 (static void add_new_function (tree fndecl, bool lowered)):
8656 created from cgraph_add_new_function
8657 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8658 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8659 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8660 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8661 (static cgraph_node *get_for_asmname (tree asmname)):
8662 created from cgraph_node_for_asm
8663 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8664 created from cgraph_same_body_alias
8665 (static bool used_from_object_file_p_worker (cgraph_node *node,
8666 void *): new function
8667 (static bool non_local_p (cgraph_node *node, void *)):
8668 created from cgraph_non_local_node_p_1
8669 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8670 created from verify_cgraph
8671 (static bool make_local (cgraph_node *node, void *)):
8672 created from cgraph_make_node_local
8673 (static cgraph_node *create_alias (tree alias, tree target)):
8674 created from cgraph_create_function_alias
8675 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8676 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8677 created from cgraph_create_edge_1
8678 * cgraph.h (varpool_node):
8679 (void remove (void)): created from varpool_remove_node
8680 (void dump (FILE *f)): created from dump_varpool_node
8682 2014-07-24 Richard Biener <rguenther@suse.de>
8685 * tree-ssa-structalias.c (create_variable_info_for_1):
8686 Use varpool_get_constructor.
8687 (create_variable_info_for): Likewise.
8689 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8691 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8692 subtract outgoing area size when restoring stack_pointer_rtx.
8694 2014-07-24 Nick Clifton <nickc@redhat.com>
8696 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8697 that operations are taking place in parallel.
8698 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8700 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8702 * omp-low.c (extract_omp_for_data): Add missing break statement.
8704 2014-07-24 Richard Biener <rguenther@suse.de>
8706 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8707 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8708 and adjust MOVE_RATIO query accordingly.
8709 (estimate_num_insns): Adjust callers.
8710 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8711 * ipa-cp.c (gather_context_independent_values,
8712 estimate_local_effects): Likewise.
8713 * ipa-split.c (consider_split): Likewise.
8715 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8717 * config/i386/driver-i386.c: Remove names of unused arguments and
8718 unnecessary unused attributes.
8719 * config/i386/host-mingw32.c: Likewise.
8720 * config/i386/i386.c: Likewise.
8721 * config/i386/winnt-stubs.c: Likewise.
8722 * config/i386/winnt.c: Likewise.
8724 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8726 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8727 (aarch64_gen_loadwb_pair): New helper function.
8728 (aarch64_expand_epilogue): Simplify code using new helper functions.
8729 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8731 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8733 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8734 (aarch64_gen_storewb_pair): New helper function.
8735 (aarch64_expand_prologue): Simplify code using new helper functions.
8736 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8738 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8740 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8741 Rename to aarch64_save_callee_saves, remove restore code.
8742 (aarch64_restore_callee_saves): New function.
8744 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8746 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8747 (aarch64_save_callee_saves): New function to handle reg save
8748 for both core and vectore regs.
8750 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8752 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8753 (aarch64_gen_store_pair): New helper function.
8754 (aarch64_save_or_restore_callee_save_registers)
8755 (aarch64_save_or_restore_fprs): Use new helper functions.
8757 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8759 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8760 (aarch64_save_or_restore_callee_save_registers)
8761 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8763 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8765 * config/aarch64/aarch64.c
8766 (aarch64_save_or_restore_callee_save_registers)
8767 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8769 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8771 * config/aarch64/aarch64.c
8772 (aarch64_save_or_restore_callee_save_registers)
8773 (aarch64_save_or_restore_fprs): Remove 'increment'.
8775 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8777 * config/aarch64/aarch64.c
8778 (aarch64_save_or_restore_callee_save_registers)
8779 (aarch64_save_or_restore_fprs): Use register offset in
8780 cfun->machine->frame.reg_offset.
8782 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8784 * config/aarch64/aarch64.c
8785 (aarch64_save_or_restore_callee_save_registers)
8786 (aarch64_save_or_restore_fprs): Remove base_rtx.
8788 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8790 * config/aarch64/aarch64.c
8791 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8792 to 'start_offset'. Remove local variable 'start_offset'.
8794 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8796 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8797 type to HOST_WIDE_INT.
8799 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8801 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8802 (aarch64_save_or_restore_fprs)
8803 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8805 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8807 * config/arm/t-rtems-eabi: Add
8808 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8809 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8810 mbig-endian/mthumb/march=armv7-r, and
8811 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8814 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8815 Chris Johns <chrisj@rtems.org>
8816 Joel Sherrill <joel.sherrill@oarcorp.com>
8818 * config.gcc: Add nios2-*-rtems*.
8819 * config/nios2/rtems.h: New file.
8820 * gcc/config/nios2/t-rtems: New file.
8822 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8825 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8826 constant numbers, not general constants.
8827 (rs6000_expand_vector_init): Ditto.
8829 2014-07-23 Nathan Sidwell <nathan@acm.org>
8831 * gcov-tool.c (gcov_list): Declare here.
8832 (set_gcov_list): Remove.
8833 (gcov_output_files): Set gcov_list directly.
8835 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8837 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8839 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8841 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8842 callee-saved registers are available for padding purpose
8843 and r3 is not mandatory, then prefer use those callee-saved
8846 2014-07-23 Richard Biener <rguenther@suse.de>
8848 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8849 * combine.c: Include statistics.h and params.h.
8850 (combine_instructions): Guard three and four insn combines
8851 with max-combine-insns value. Record statistics for combines
8853 * doc/invoke.texi (max-combine-insns): Document new param.
8855 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8857 * graphite-isl-ast-to-gimple.c:
8858 (translate_isl_ast_node_block): New function.
8859 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8861 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8862 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8864 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8866 * graphite-isl-ast-to-gimple.c:
8867 (get_max_schedule_dimensions): New function.
8868 (extend_schedule): Likewise.
8869 (generate_isl_schedule): Add calling of extend_schedule and
8870 get_max_schedule_dimensions.
8872 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8874 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8875 (case UNSPEC): Handle UNSPEC_RBIT.
8877 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8879 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8880 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8882 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8884 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
8886 2014-07-22 Roman Gareev <gareevroman@gmail.com>
8888 * graphite-isl-ast-to-gimple.c:
8889 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
8891 (build_iv_mapping): New function.
8892 (translate_isl_ast_node_user): Likewise.
8893 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
8895 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
8896 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
8897 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
8899 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8902 * config/arm/arm.md (setmem): New pattern.
8903 * config/arm/arm-protos.h (struct tune_params): New fields.
8904 (arm_gen_setmem): New prototype.
8905 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
8906 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8907 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8908 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
8909 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
8910 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
8911 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
8912 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8913 (arm_const_inline_cost): New function.
8914 (arm_block_set_max_insns): New function.
8915 (arm_block_set_non_vect_profit_p): New function.
8916 (arm_block_set_vect_profit_p): New function.
8917 (arm_block_set_unaligned_vect): New function.
8918 (arm_block_set_aligned_vect): New function.
8919 (arm_block_set_unaligned_non_vect): New function.
8920 (arm_block_set_aligned_non_vect): New function.
8921 (arm_block_set_vect, arm_gen_setmem): New functions.
8923 2014-07-21 Bin Cheng <bin.cheng@arm.com>
8925 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
8927 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
8930 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
8931 out of #ifdef __OPTIMIZE__.
8933 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8935 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
8936 different trapping status if -fnon-call-exceptions is enabled.
8938 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
8940 * expr.c (store_field): Handle VOIDmode for calls that return values
8941 in multiple locations.
8943 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8945 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
8946 (altivec_vsldoi_<mode>): Likewise.
8948 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8950 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
8951 to the number of characters in the line.
8953 2014-07-20 Roman Gareev <gareevroman@gmail.com>
8955 * graphite-isl-ast-to-gimple.c: Add using of
8956 build_nonstandard_integer_type instead of int128_integer_type_node.
8958 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
8960 * toplev.c (output_stack_usage): Adjust the location of the warning.
8962 2014-07-19 Daniel Cederman <cederman@gaisler.com>
8964 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
8965 (*membar_storeload): Disable for LEON3.
8967 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8969 PR rtl-optimization/61461
8970 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
8972 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
8975 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
8976 Fix instruction constraint.
8977 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
8979 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
8981 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
8983 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
8985 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
8986 GNU coding standards.
8987 (nds32_register_move_cost): Likewise.
8988 (nds32_memory_move_cost): Likewise.
8989 (nds32_address_cost): Likewise.
8991 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8993 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
8995 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
8997 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
8998 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
8999 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9000 (HAVE_sync_compare_and_swapqi): Define.
9001 (HAVE_sync_compare_and_swaphi): Likewise.
9002 (HAVE_sync_compare_and_swapsi): Likewise.
9004 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9006 * config/mips/p5600.md: Add missing cpu tests.
9008 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9010 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9011 (vmla_f64): Likewise.
9012 (vfms_f64): Likewise.
9013 (vmls_f64): Likewise.
9015 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9017 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9018 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9020 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9022 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9023 (vmlal_high_lane_s32): Likewise.
9024 (vmlal_high_lane_u16): Likewise.
9025 (vmlal_high_lane_u32): Likewise.
9026 (vmlsl_high_lane_s16): Likewise.
9027 (vmlsl_high_lane_s32): Likewise.
9028 (vmlsl_high_lane_u16): Likewise.
9029 (vmlsl_high_lane_u32): Likewise.
9031 2014-07-17 Terry Guo <terry.guo@arm.com>
9033 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9034 (alus_reg): Renamed to alus_sreg.
9035 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9036 from alu_reg to alu_sreg. Change type of dsp instructions from
9037 alu_reg to alu_dsp_reg.
9038 * config/arm/thumb1.md: Likewise.
9039 * config/arm/thumb2.md: Likewise.
9040 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9041 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9042 with alu_sreg and alus_sreg.
9043 * config/arm/arm1026ejs.md (alu_op): Likewise.
9044 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9045 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9046 * config/arm/fa526.md (526_alu_op): Likewise.
9047 * config/arm/fa606te.md (606te_alu_op): Likewise.
9048 * config/arm/fa626te.md (626te_alu_op): Likewise.
9049 * config/arm/fa726te.md (726te_alu_op): Likewise.
9050 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9051 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9052 alu_sreg, alu_dsp_reg and alus_sreg.
9053 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9054 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9055 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9056 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9057 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9058 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9059 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9060 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9061 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9062 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9063 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9064 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9065 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9066 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9067 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9068 alus_reg to alus_sreg.
9070 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9072 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9075 2014-07-17 Richard Biener <rguenther@suse.de>
9077 PR rtl-optimization/61801
9078 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9079 don't set reg_pending_barrier if it appears in a debug-insn.
9081 2014-07-16 DJ Delorie <dj@redhat.com>
9083 * config/rx/rx.c (rx_option_override): Fix alignment values.
9084 (rx_align_for_label): Likewise.
9086 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9089 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9090 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9091 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9093 (cris_print_index, cris_print_operand, cris_constant_index_p)
9094 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9095 (cris_address_cost): Ditto last CONSTANT_P.
9096 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9097 callers changed. Yield cris_offsettable_symbol for non-PIC
9098 constant symbolic expressions including labels. Yield cris_unspec
9100 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9101 target to pic_offset_table_rtx for calls that will likely go
9102 through PLT, const0_rtx when they can't. All callers changed.
9103 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9104 symbolic expressions to be PICified. Remove second, redundant,
9105 assert on can_create_pseudo_p returning non-zero. Use
9106 replace_equiv_address_nv, not replace_equiv_address, for final
9108 * config/cris/cris.md ("movsi"): Move variable t to pattern
9109 toplevel. Adjust assert for new cris_symbol_type member. Use
9110 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9111 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9113 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9114 ("call", "call_value"): Use second incoming operand as a marker
9115 for pic-offset-table-register being used.
9116 ("*expanded_call_non_v32", "*expanded_call_v32")
9117 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9118 second incoming operand to CALL, match cris_call_type_marker.
9119 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9120 ("*expanded_call_side"): Ditto. Fix typo in comment.
9121 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9123 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9124 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9125 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9126 users changed. Add members cris_offsettable_symbol and cris_unspec.
9127 (cris_symbol_type): Rename from cris_pic_symbol_type.
9128 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9130 * config/cris/cris-protos.h (cris_symbol_type_of,
9131 cris_expand_pic_call_address): Adjust prototypes.
9132 (cris_legitimate_constant_p): New prototype.
9134 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9135 an existing tmake_file. Don't add t-slibgcc and t-linux.
9137 2014-07-17 Jason Merrill <jason@redhat.com>
9140 * symtab.c (symtab_remove_from_same_comdat_group): Also
9141 set_comdat_group to NULL_TREE.
9142 (verify_symtab): Fix diagnostic.
9144 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9147 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9149 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9151 Support location tracking for built-in macro tokens
9152 * input.h (is_location_from_builtin_token): New function declaration.
9153 * input.c (is_location_from_builtin_token): New function definition.
9154 * toplev.c (general_init): Tell libcpp what the pre-defined
9155 spelling location for built-in tokens is.
9157 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9159 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9160 on the FUNCTION_DECL.
9162 2014-07-16 Richard Biener <rguenther@suse.de>
9165 * doc/extend.texi (always_inline): Clarify.
9167 2014-07-15 Eric Christopher <echristo@gmail.com>
9169 * doc/invoke.texi (Link Options): Document -z option.
9171 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9173 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9174 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9176 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9178 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9180 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9182 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9183 varpool_assemble_decl.
9184 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9187 2014-07-15 Michael Matz <matz@suse.de>
9189 PR rtl-optimization/61772
9190 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9192 2014-07-15 Richard Biener <rguenther@suse.de>
9194 * opts.c (default_options_table): Disable bit-ccp at -Og.
9196 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9198 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9200 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9202 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9203 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9204 call langhook for unknown declaration.
9205 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9206 * tree.h (DECL_ARGUMENTS): Update.
9207 * print-tree.c (print_node): Update.
9208 * tree-core.h (tree_decl_non_common): Remove arguments.
9209 (tree_function_decl): Add arguments.
9211 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9213 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9215 2014-07-14 Richard Biener <rguenther@suse.de>
9217 PR tree-optimization/61779
9218 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9219 simplifying a condition.
9221 2014-07-14 Richard Biener <rguenther@suse.de>
9223 * builtins.c (c_strlen): Make only_value == 2 really only
9224 affect warning generation.
9226 2014-07-14 Richard Biener <rguenther@suse.de>
9228 PR tree-optimization/61757
9229 PR tree-optimization/61783
9230 PR tree-optimization/61787
9231 * tree-ssa-dom.c (record_equality): Revert canonicalization
9232 change and add comment.
9233 (propagate_rhs_into_lhs): Revert previous fix, removing
9234 loop depth restriction again.
9236 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9238 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9239 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9240 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9241 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9242 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9243 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9244 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9246 2014-07-14 Richard Biener <rguenther@suse.de>
9248 * cgraph.h (decl_in_symtab_p): Make inline.
9250 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9253 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9256 * config/i386/i386.c (classify_argument): Don't merge classes above
9259 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9261 * cgraph.h (symtab_node): Add nonzero_address.
9262 (decl_in_symtab_p): Break out from ...
9263 (symtab_get_node): ... here.
9264 * fold-const.c: Include cgraph.h
9265 (tree_single_nonzero_warnv_p): Use symtab to determine
9266 if symbol is non-zero.
9267 * symtab.c (symtab_node::nonzero_address): New method.
9269 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9271 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9272 forgotten in previous commit.
9274 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9276 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9278 * ipa-devirt.c: Include stor-layout.h and intl.h
9279 (odr_subtypes_equivalent_p): New function.
9280 (warn_odr): New function.
9281 (warn_type_mismatch): New function.
9282 (odr_types_equivalent_p): New function.
9283 (add_type_duplicate): Use it.
9284 * common.opt (Wodr): New flag.
9285 * doc/invoke.texi (Wodr): Document new warning.
9287 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9289 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9290 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9291 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9292 (varpool_get_constructor): Push CTORS_IN timevar.
9293 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9295 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9297 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9298 Remove VOID_FTYPE_PUSHORT.
9299 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9300 Change code to USHORT_FTYPE_VOID.
9301 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9302 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9303 (ix86_atomic_assign_expand_fenv): Update for
9304 __builtin_ia32_fnstsw changes.
9305 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9306 (fnstsw): Change operand 0 to nonimmediate operand.
9308 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9310 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9311 (varpool_get_constructor): New function.
9312 (varpool_ctor_useable_for_folding_p): Break out from ...
9313 (ctor_for_folding): ... here; use varpool_get_constructor.
9314 (varpool_assemble_decl): Likewise.
9315 * lto-streamer.h (struct output_block): Turn cgraph_node
9317 (lto_input_variable_constructor): Declare.
9318 * ipa-visibility.c (function_and_variable_visibility): Use
9319 varpool_get_constructor.
9320 * cgraph.h (varpool_get_constructor): Declare.
9321 (varpool_ctor_useable_for_folding_p): New function.
9322 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9323 parameter; return error_mark_node for non-trivial constructors.
9324 (lto_write_tree_1, DFS_write_tree): Update use of
9325 get_symbol_initial_value.
9326 (output_function): Update initialization of symbol.
9327 (output_constructor): New function.
9328 (copy_function): Rename to ..
9329 (copy_function_or_variable): ... this one; handle vars too.
9330 (lto_output): Output variable sections.
9331 * lto-streamer-in.c (input_constructor): New function.
9332 (lto_read_body): Rename from ...
9333 (lto_read_body_or_constructor): ... this one; handle vars too.
9334 (lto_input_variable_constructor): New function.
9335 * ipa-prop.c (ipa_prop_write_jump_functions,
9336 ipa_prop_write_all_agg_replacement): Update.
9337 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9338 (output_cgraph_opt_summary): Set symbol to NULL.
9340 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9342 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9343 non-polymorphic types.
9344 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9345 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9346 of types is not polymorphic.
9348 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9350 * lra-constraints.c (remove_inheritance_pseudos): Process
9351 destination pseudo too.
9353 2014-07-11 Rong Xu <xur@google.com>
9355 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9358 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9360 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9361 * config/avr/avr-devices.c (AVR_MCU): Same.
9362 (avr_mcu_types): add text start value to end of device list.
9363 * config/avr/avr-mcus.def: Add text section start for all devices.
9364 (ata5782): Add new avr5 device.
9366 * config/avr/avr-tables.opt: Regenerate.
9367 * config/avr/avr.h: Add declaration for text section start handler.
9368 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9370 (LINK_SPEC): Include text section start handler to linker spec.
9371 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9372 pass -Ttext option to linker if the text section start for the device
9374 * config/avr/t-multilib: Regenerate.
9375 * doc/avr-mmcu.texi: Regenerate.
9377 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9379 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9380 * config/rs6000/aix52.h (LINK_SPEC): Same.
9381 * config/rs6000/aix53.h (LINK_SPEC): Same.
9382 * config/rs6000/aix61.h (LINK_SPEC): Same.
9383 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9385 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9387 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9388 (graphite_verify): New function.
9389 (ivs_params_clear): New function.
9390 (gcc_expression_from_isl_ast_expr_id): New function.
9391 (gcc_expression_from_isl_expr_int): New function.
9392 (binary_op_to_tree): New function.
9393 (ternary_op_to_tree): New function.
9394 (unary_op_to_tree): New function.
9395 (nary_op_to_tree): New function.
9396 (gcc_expression_from_isl_expr_op): New function.
9397 (gcc_expression_from_isl_expression): New function.
9398 (graphite_create_new_loop): New function.
9399 (translate_isl_ast_for_loop): New function.
9400 (get_upper_bound): New function.
9401 (graphite_create_new_loop_guard): New function.
9402 (translate_isl_ast_node_for): New function.
9403 (translate_isl_ast): New function.
9404 (add_parameters_to_ivs_params): New function.
9405 (scop_to_isl_ast): New parameter ip.
9406 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9408 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9410 * config/xtensa/predicates.md (call expander): Update for
9411 DECL_SECTION_NAME being string.
9413 2014-07-11 Richard Biener <rguenther@suse.de>
9416 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9417 can be implemented with a single load followed by a single store.
9418 (c_strlen): Only warn when only_value is not 2.
9420 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9422 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9424 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9427 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9428 (*movhi_bytes): Likewise.
9429 (*arm_movqi_insn): Likewise.
9431 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9434 * config/alpha/alpha.c: Include tree-pass.h, context.h
9436 (pass_data_handle_trap_shadows): New pass.
9437 (pass_handle_trap_shadows::gate): New pass gate function.
9438 (make_pass_handle_trap_shadows): New function.
9439 (rest_of_handle_trap_shadows): Ditto.
9441 (alpha_align_insns_1): Rename from alpha_align_insns.
9442 (pass_data_align_insns): New pass.
9443 (pass_align_insns::gate): New pass gate function.
9444 (make_pass_aling_insns): New function.
9445 (rest_of_align_insns): Ditto.
9446 (alpha_align_insns): Ditto.
9448 (alpha_option_override): Declare handle_trap_shadows info
9449 and align_insns_info. Register handle_trap_shadows and align_insns
9451 (alpha_reorg): Do not call alpha_trap_shadows and
9452 alpha_align_insn from here.
9454 (alpha_pad_function_end): Do not skip BARRIERs.
9456 2014-07-10 Rong Xu <xur@google.com>
9458 Add gcov-tool: an offline gcda profile processing tool support.
9459 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9460 (gcov_is_error): Ditto.
9461 (gcov_read_string): Ditto.
9462 (gcov_read_sync): Ditto.
9463 * gcov-io.h: Move counter defines to gcov-counter.def.
9464 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9465 * coverage.c: Ditto.
9466 * gcov-tool.c: Offline gcda profile processing tool.
9467 (unlink_gcda_file): Remove one gcda file.
9468 (unlink_profile_dir): Remove gcda files from the profile path.
9469 (gcov_output_files): Output gcda files to an output dir.
9470 (profile_merge): Merge two profiles in directory.
9471 (print_merge_usage_message): Print merge usage.
9472 (merge_usage): Print merge usage and exit.
9473 (do_merge): Driver for profile merge sub-command.
9474 (profile_rewrite): Rewrite profile.
9475 (print_rewrite_usage_message): Print rewrite usage.
9476 (rewrite_usage): Print rewrite usage and exit.
9477 (do_rewrite): Driver for profile rewrite sub-command.
9478 (print_usage): Print gcov-info usage and exit.
9479 (print_version): Print gcov-info version.
9480 (process_args): Process arguments.
9481 (main): Main routine for gcov-tool.
9482 * Makefile.in: Build and install gcov-tool.
9483 * gcov-counter.def: New file split from gcov-io.h.
9484 * doc/gcc.texi: Include gcov-tool.texi.
9485 * doc/gcov-tool.texi: Document for gcov-tool.
9487 2014-07-10 Richard Biener <rguenther@suse.de>
9489 PR tree-optimization/61757
9490 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9491 (propagate_rhs_into_lhs): Revert part of last change.
9493 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9495 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9498 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9501 * function.c (allocate_struct_function): Revert r188667 change.
9503 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9505 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9507 * doc/install.texi: Remove links to defunct package providers for
9510 2014-07-09 Tom de Vries <tom@codesourcery.com>
9512 * final.c (get_call_fndecl): Declare.
9513 (self_recursive_call_p): New function.
9514 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9516 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9518 * ipa-devirt.c (record_node): Walk through aliases.
9520 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9522 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9524 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9527 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9529 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9531 * ipa-visibility.c (function_and_variable_visibility): Remove
9532 temporary hack disabling local aliases on AIX.
9534 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9536 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9537 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9539 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9541 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9542 * rs6000/rs6000.c: Inline output of .set instruction.
9543 (declare_alias_data): New struct.
9544 (rs6000_declare_alias): New function.
9545 (rs6000_xcoff_declare_function_name): Use it.
9546 (rs6000_xcoff_declare_object_name): New function.
9547 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9548 (ASM_OUTPUT_DEF): Turn to empty definition.
9550 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9553 * hash-table.h: use hash_table::value_type instead of
9554 Descriptor::value_type in the return types of several methods.
9556 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9558 * tree-pass.h (pass_data): Remove has_execute member.
9559 * passes.c (execute_one_pass): Don't check pass->has_execute.
9560 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9561 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9562 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9563 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9564 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9565 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9566 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9567 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9568 gimple-low.c, gimple-ssa-isolate-paths.c,
9569 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9570 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9571 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9572 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9573 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9574 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9575 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9576 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9577 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9578 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9579 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9580 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9581 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9582 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9583 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9584 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9585 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9586 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9587 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9588 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9589 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9590 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9591 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9592 web.c: Remove initializer for pass_data::has_execute.
9594 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9596 * graphite-htab.h: Use hash_map instead of hash_table.
9597 * graphite-clast-to-gimple.c: Adjust.
9598 * passes.c: Use hash_map instead of hash_table.
9600 * sese.h: Remove now unused code.
9602 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9605 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9608 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9610 PR rtl-optimization/61673
9611 * combine.c (simplify_comparison): Test just mode's sign bit
9612 in tmode rather than the sign bit and any bits above it.
9614 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9616 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9617 Add __isl_give to the declaration.
9618 (generate_isl_schedule): Likewise.
9619 (scop_to_isl_ast): Likewise.
9621 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9623 * config/arm/arm.c (cortexa5_extra_costs): New table.
9624 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9626 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9628 PR tree-optimization/61725
9629 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9630 range, use range_includes_zerop_p instead of integer_zerop on
9631 vr0->min, only use log2 of max if min is not negative.
9633 2014-07-08 Richard Biener <rguenther@suse.de>
9635 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9636 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9637 restriction on loop depth difference.
9638 (record_equality): Likewise.
9639 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9640 (loop_depth_of_name): Remove.
9641 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9642 restriction on loop depth difference.
9643 (init_copy_prop): Likewise.
9645 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9647 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9649 (walk_aliased_vdefs): Likewise.
9650 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9651 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9652 (detect_type_change_from_memory_writes): Check if entry was reached.
9654 2014-07-08 Richard Biener <rguenther@suse.de>
9656 PR tree-optimization/61681
9657 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9658 NONLOCAL inside ESCAPED.
9660 2014-07-08 Richard Biener <rguenther@suse.de>
9662 PR tree-optimization/61680
9663 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9664 Handle properly all read-write dependences with group accesses.
9666 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9668 PR tree-optimization/61576
9669 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9670 block containing reduction statement is predecessor of phi basi block.
9672 2014-07-08 Marek Polacek <polacek@redhat.com>
9675 * fold-const.c (round_up_loc): Change the parameter type.
9677 * fold-const.h (round_up_loc): Adjust declaration.
9678 * stor-layout.c (finalize_record_size): Check for too large types.
9680 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9682 * symtab.c: Include calls.h.
9683 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9685 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9687 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9688 little-endian code generation.
9689 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9690 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9691 (spe_evmergehilo): Rename to...
9692 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9693 (spe_evmergelo): Rename to...
9694 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9695 (spe_evmergelohi): Rename to...
9696 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9697 (spe_evmergehi, spe_evmergehilo): New expanders.
9698 (spe_evmergelo, spe_evmergelohi): Likewise.
9699 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9700 (*frob_tf_ti): Likewise.
9701 (*frob_<mode>_di_2): Likewise.
9702 (*frob_tf_di_8_2): Likewise.
9703 (*frob_di_<mode>): Likewise.
9704 (*frob_ti_tf): Likewise.
9705 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9706 (*frob_ti_<mode>_8_2): Likewise.
9707 (*frob_ti_tf_2): Likewise.
9708 (mov_si<mode>_e500_subreg0): Rename to...
9709 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9711 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9712 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9713 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9714 the big endianness only.
9715 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9716 (*mov_si<mode>_e500_subreg0_2): Rename to...
9717 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9718 big big endianness only.
9719 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9720 (*mov_si<mode>_e500_subreg4): Rename to...
9721 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9723 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9724 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9725 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9726 the big endianness only.
9727 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9729 (*mov_si<mode>_e500_subreg4_2): Rename to...
9730 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9732 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9733 (*mov_sitf_e500_subreg8): Rename to...
9734 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9736 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9737 (*mov_sitf_e500_subreg8_2): Rename to...
9738 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9740 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9741 (*mov_sitf_e500_subreg12): Rename to...
9742 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9744 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9745 (*mov_sitf_e500_subreg12_2): Rename to...
9746 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9748 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9750 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9752 * asan.c (instrument_strlen_call): Do not instrument first byte
9753 in strlen if already instrumented.
9755 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9757 * config/arm/arm.opt (mwords-little-endian): Delete.
9758 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9759 of TARGET_LITTLE_WORDS.
9760 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9761 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9763 * doc/invoke.texi: Remove references to -mwords-little-endian.
9765 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9767 * expmed.c (struct init_expmed_rtl): Change all fields but
9768 pow2 and cint from struct rtx_def to rtx.
9769 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9770 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9773 2014-07-06 Marek Polacek <polacek@redhat.com>
9776 * doc/invoke.texi: Document -Wsizeof-array-argument.
9778 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9780 * wide-int.h (wide_int_storage): Change declaration from struct
9783 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9785 * cgraph.c (cgraph_create_indirect_edge): Update call of
9786 get_polymorphic_call_info.
9787 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9788 (possible_polymorphic_call_targets): Add parameter call.
9789 (decl_maybe_in_construction_p): New predicate.
9790 (get_polymorphic_call_info): Add parameter call;
9791 use decl_maybe_in_construction_p.
9792 * gimple-fold.c (fold_gimple_assign): Update use of
9793 possible_polymorphic_call_targets.
9794 (gimple_fold_call): Likewise.
9795 * ipa-prop.c: Inlcude calls.h
9796 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9797 (param_type_may_change_p): New predicate.
9798 (detect_type_change_from_memory_writes): Break out from ...
9799 (detect_type_change): ... this one; use param_type_may_change_p.
9800 (detect_type_change_ssa): Use param_type_may_change_p.
9801 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9803 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9806 * config/arm/arm-protos.h (arm_legitimate_address_p,
9807 arm_is_constant_pool_ref): Add prototypes.
9808 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9809 (arm_is_constant_pool_ref) New function.
9810 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9811 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9812 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9813 operand. Remove pool_range and neg_pool_range attributes.
9814 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9815 pool_range and neg_pool_range attributes.
9816 * config/arm/constraints.md (Uh): New constraint.
9817 (Uq): Don't allow constant pool references.
9819 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9821 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9822 (move_lo_quad_internal_be_<mode>): Likewise.
9823 (move_lo_quad_<mode>): Convert to define_expand.
9824 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9825 (aarch64_simd_move_hi_quad_be_<mode>): New.
9826 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9827 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9828 (aarch64_combinez_be<mode>): New.
9829 (aarch64_combine<mode>): Convert to define_expand.
9830 (aarch64_combine_internal<mode>): New.
9831 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9833 2014-07-04 Tom de Vries <tom@codesourcery.com>
9835 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9836 combination of earlyclobber and read/write modifiers.
9838 2014-07-04 Tom de Vries <tom@codesourcery.com>
9840 * config/aarch64/aarch64-simd.md
9841 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9843 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9846 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9848 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9851 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9853 PR tree-optimization/61684
9854 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9855 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9857 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9858 Kito Cheng <kito@0xlab.org>
9859 Monk Chiang <sh.chiang04@gmail.com>
9861 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9862 (nds32_symbol_load_store_p): Move to ...
9863 (nds32_fp_as_gp_check_available): Move to ...
9864 * config/nds32/nds32-fp-as-gp.c: ... here.
9865 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9868 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9869 Kito Cheng <kito@0xlab.org>
9870 Monk Chiang <sh.chiang04@gmail.com>
9872 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9873 (nds32_expand_store_multiple): Move to ...
9874 (nds32_expand_movmemqi): Move to ...
9875 * config/nds32/nds32-memory-manipulation.c: ... here.
9877 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9878 Kito Cheng <kito@0xlab.org>
9879 Monk Chiang <sh.chiang04@gmail.com>
9881 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9882 (nds32_output_casesi_pc_relative): Move to ...
9883 (nds32_output_casesi): Move to ...
9884 (nds32_mem_format): Move to ...
9885 (nds32_output_16bit_store): Move to ...
9886 (nds32_output_16bit_load): Move to ...
9887 (nds32_output_32bit_store): Move to ...
9888 (nds32_output_32bit_load): Move to ...
9889 (nds32_output_32bit_load_s): Move to ...
9890 (nds32_output_stack_push): Move to ...
9891 (nds32_output_stack_pop): Move to ...
9892 * config/nds32/nds32-md-auxiliary.c: ... here.
9894 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9895 Ling-Hua Tseng <uranus@tinlans.org>
9897 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
9898 the purpose of this file.
9900 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9901 Kito Cheng <kito@0xlab.org>
9902 Monk Chiang <sh.chiang04@gmail.com>
9904 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
9905 (nds32_address_cost): Move implementation to ...
9906 * config/nds32/nds32-cost.c: ... here.
9907 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
9908 (nds32_address_cost_impl): Declare.
9910 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9911 Kito Cheng <kito@0xlab.org>
9912 Monk Chiang <sh.chiang04@gmail.com>
9914 * config/nds32/nds32.c
9915 (nds32_consecutive_registers_load_store_p): Move to ...
9916 (nds32_valid_multiple_load_store): Move to ...
9917 (nds32_valid_stack_push_pop): Move to ...
9918 (nds32_can_use_bclr_p): Move to ...
9919 (nds32_can_use_bset_p): Move to ...
9920 (nds32_can_use_btgl_p): Move to ...
9921 (nds32_can_use_bitci_p): Move to ...
9922 * config/nds32/nds32-predicates.c: ... here.
9924 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9925 Kito Cheng <kito@0xlab.org>
9926 Monk Chiang <sh.chiang04@gmail.com>
9928 * config/nds32/nds32.c
9929 (nds32_expand_builtin_null_ftype_reg): Move to ...
9930 (nds32_expand_builtin_reg_ftype_imm): Move to ...
9931 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
9932 (nds32_init_builtins): Move implementation to ...
9933 (nds32_expand_builtin): Move implementation to ...
9934 * config/nds32/nds32-intrinsic.c: ... here.
9935 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
9936 (nds32_expand_builtin_impl): Declare.
9938 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9939 Kito Cheng <kito@0xlab.org>
9940 Monk Chiang <sh.chiang04@gmail.com>
9942 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
9943 (nds32_emit_section_tail_template): Move to ...
9944 (nds32_emit_isr_jmptbl_section): Move to ...
9945 (nds32_emit_isr_vector_section): Move to ...
9946 (nds32_emit_isr_reset_conten): Move to ...
9947 (nds32_check_isr_attrs_conflict): Move to ...
9948 (nds32_construct_isr_vectors_information): Move to ...
9949 (nds32_asm_file_start): Move implementation to ...
9950 (nds32_asm_file_end): Move implementation to ...
9951 * config/nds32/nds32-isr.c: ... here.
9952 * config/nds32/nds32-protos.h
9953 (nds32_check_isr_attrs_conflict): Declare.
9954 (nds32_construct_isr_vectors_information): Declare.
9955 (nds32_asm_file_start_for_isr): Declare.
9956 (nds32_asm_file_end_for_isr): Declare.
9958 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9959 Kito Cheng <kito@0xlab.org>
9960 Monk Chiang <sh.chiang04@gmail.com>
9962 * config.gcc (nds32*): Add new modules to extra_objs.
9963 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
9964 (nds32be-*-*): Likewise.
9965 * config/nds32/nds32-cost.c: New file.
9966 * config/nds32/nds32-fp-as-gp.c: New file.
9967 * config/nds32/nds32-intrinsic.c: New file.
9968 * config/nds32/nds32-isr.c: New file.
9969 * config/nds32/nds32-md-auxiliary.c: New file.
9970 * config/nds32/nds32-memory-manipulation.c: New file.
9971 * config/nds32/nds32-pipelines-auxiliary.c: New file.
9972 * config/nds32/nds32-predicates.c: New file.
9973 * config/nds32/t-nds32: New file.
9975 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9977 PR tree-optimization/61682
9978 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
9979 using cases and when one of the operands is equal to 1.
9981 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
9983 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
9984 ashr<mode>3): Correct mode of operands[2].
9985 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
9986 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
9987 Correct mode of operands[2]. Fix split condition.
9989 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
9991 * arm.md (arch): Add armv6_or_vfpv3.
9992 (arch_enabled): Add test for the above.
9993 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
9995 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
9997 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9999 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10000 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10001 HWI 1 and negate the unsigned value.
10002 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10003 use AND instead of shift.
10004 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10006 2014-07-03 Marek Polacek <polacek@redhat.com>
10008 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10009 (-fsanitize=float-divide-by-zero): Move to the table with
10010 -fsanitize=undefined suboptions.
10011 (-fsanitize=float-cast-overflow): Likewise.
10013 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10015 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10016 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10019 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10021 * loop-invariant.c (struct invariant): Add a new member: eqno;
10022 (find_identical_invariants): Update eqno;
10023 (create_new_invariant): Init eqno;
10024 (get_inv_cost): Compute comp_cost with eqno;
10026 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10028 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10029 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10030 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10031 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10032 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10034 2014-07-02 Christian Bruel <christian.bruel@st.com>
10038 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10039 (make_preds_opaque): Delete.
10040 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10041 (commit_mode_sets): New function.
10042 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10043 Process all modes at once.
10044 * basic-block.h (pre_edge_lcm_avs): Declare.
10045 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10046 Call clear_aux_for_edges. Fix comments.
10047 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10048 (pre_edge_rev_lcm): Idem.
10049 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10051 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10052 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10054 * config/i386/i386.c (x96_emit_mode_set): Idem.
10055 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10056 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10057 (fpscr_toggle) Disallow from delay slot.
10058 * target.def (emit_mode_set): Add prev_mode parameter.
10059 * doc/tm.texi: Regenerate.
10061 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10063 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10066 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10068 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10069 vtable_pointer_value_to_vtable): Constify.
10070 (contains_polymorphic_type_p): Declare.
10071 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10072 vtable_pointer_value_to_vtable): Constify.
10073 (contains_polymorphic_type_p): New predicate.
10074 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10076 (ipa_set_ancestor_jf): Likewise.
10077 (detect_type_change): Return false in easy cases.
10078 (compute_complex_assign_jump_func): Require type to contain
10080 (compute_known_type_jump_func): Likewise.
10082 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10084 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10086 (type_in_anonymous_namespace_p): Constify argument.
10087 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10088 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10089 (main_odr_variant): New function.
10090 (hash_type_name): Make static; update assert; do not ICE on
10092 (types_same_for_odr): Bring here from tree.c; simplify and remove
10093 old structural comparing code that doesn't work for templates.
10094 (odr_hasher::equal): Update assert.
10095 (add_type_duplicate): Return true when bases should be computed;
10096 replace incomplete loader by complete; do not output duplicated
10097 warnings; do not ICE on non-records; set odr_violated flag.
10098 (get_odr_type): Be ready to replace incomplete type by complete
10099 one; work on ODR variants instead of main variants; reorder item
10100 in array so bases have still smaller indexes.
10101 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10102 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10104 2014-07-01 Cary Coutant <ccoutant@google.com>
10106 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10108 (resolve_addr_in_expr): When replacing the rtx in a location list
10109 entry, get a new address table entry.
10110 (dwarf2out_finish): Call index_location_lists even if there are no
10111 addr_index_table entries yet.
10113 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10115 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10116 change for not being obvious.
10118 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10120 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10123 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10125 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10126 (vcagt_f64): Likewise.
10127 (vcale_f64): Likewise.
10128 (vcaled_f64): Likewise.
10129 (vcales_f32): Likewise.
10130 (vcalt_f64): Likewise.
10131 (vcaltd_f64): Likewise.
10132 (vcalts_f32): Likewise.
10134 2014-07-01 Marek Polacek <polacek@redhat.com>
10136 * doc/invoke.texi: Document -Wint-conversion.
10138 2014-07-01 Marek Polacek <polacek@redhat.com>
10141 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10143 2014-07-01 Martin Liska <mliska@suse.cz>
10145 IPA REF alias refactoring
10146 * cgraph.h (iterate_direct_aliases): New function.
10147 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10148 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10149 FOR_EACH_ALIAS added.
10150 (cgraph_for_node_and_aliases): Likewise.
10151 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10152 * ipa-inline.c (reset_edge_caches): Likewise.
10153 (update_caller_keys): Likewise.
10154 * trans-mem.c (ipa_tm_execute): Likewise.
10155 *varpool.c (varpool_analyze_node): Likewise.
10156 (varpool_for_node_and_aliases): Likewise.
10157 * ipa-ref.h (first_alias): New function.
10158 (last_alias): Likewise.
10159 (has_aliases_p): Likewise.
10160 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10161 is sensitive to IPA_REF_ALIASes.
10162 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10163 are put at the beginning of the list.
10164 (symtab_node::iterate_direct_aliases): New function.
10166 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10169 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10171 (write_ts_type_common_tree_pointers): Do not stream fields not set
10172 for incomplete types; do not stream duplicated fields for variants;
10173 sanity check that variant and type match.
10174 (write_ts_type_non_common_tree_pointers): Likewise.
10175 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10176 TYPE_SIZE whether type is complete.
10177 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10178 write_ts_type_common_tree_pointers
10179 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10181 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10183 * var-tracking.c (add_stores): Return instead of asserting if old
10184 and new values for conditional store are the same.
10186 2014-06-30 Richard Henderson <rth@redhat.com>
10190 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10191 the cfg if there were any changes.
10192 * passes.def: Revert move of peephole2 after reorder_blocks;
10193 move duplicate_computed_gotos before peephole2.
10195 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10197 * except.c (emit_note_eh_region_end): New helper function.
10198 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10199 emit EH_REGION_END note.
10200 * jump.c (cleanup_barriers): Do not split a call and its
10201 corresponding CALL_ARG_LOCATION note.
10203 2014-06-30 Jeff Law <law@redhat.com>
10205 PR tree-optimization/61607
10206 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10207 deeper into the SSA_NAME_VALUE chain.
10209 2014-06-30 Marek Polacek <polacek@redhat.com>
10211 * convert.c (convert_to_integer): Don't instrument conversions if the
10212 function has no_sanitize_undefined attribute.
10213 * ubsan.c: Don't run the ubsan pass if the function has
10214 no_sanitize_undefined attribute.
10216 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10218 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10219 -fsanitize=undefined suboptions.
10221 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10223 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10224 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10225 against bigendian and adjust indices.
10227 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10229 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10231 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10234 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10235 Add alternative; make early clobber. Adjust both split patterns
10236 to use operand 0 as the working register.
10238 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10240 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10241 as ira_object_id_map might be NULL, or 1.
10243 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10245 * loop-invariant.c (get_inv_cost): Handle register class.
10246 (gain_for_invariant): Check the register pressure of the inv
10247 and its overlapped register class, other than all.
10249 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10251 * doc/invoke.texi (Optimize Options): Fix descriptions of
10252 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10254 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10256 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10259 2014-06-29 Tobias Grosser <tobias@grosser.es>
10262 * graphite-isl-ast-to-gimple.c: Add missing guards.
10264 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10266 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10267 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10268 * flag-types.h: Add new enum fgraphite_generator.
10269 * graphite-isl-ast-to-gimple.c: New.
10270 * graphite-isl-ast-to-gimple.h: New.
10271 * graphite.c (graphite_transform_loops): Add choice of Graphite
10272 code generator, which depends on flag_graphite_code_gen.
10274 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10276 * graphite-dependences.c (subtract_commutative_associative_deps):
10277 Add NULL checking of the following variables: must_raw_no_source,
10278 may_raw_no_source, must_war_no_source, may_war_no_source,
10279 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10280 must_war, may_war, must_waw, may_waw.
10282 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10284 * graphite-clast-to-gimple.c: gloog is renamed to
10285 graphite_regenerate_ast_cloog. gloog_error is renamed to
10286 graphite_regenerate_error.
10287 * graphite-clast-to-gimple.h: The definition of the struct
10288 bb_pbb_def is moved to graphite-htab.h.
10289 Add inclusion of the hash-table.h.
10290 * graphite-htab.h: The declaration of the function gloog is moved
10291 to graphite-clast-to-gimple.h and renamed to
10292 graphite_regenerate_ast_cloog.
10293 * graphite.c (graphite_transform_loops): gloog is renamed
10294 to graphite_regenerate_ast_cloog.
10296 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10298 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10300 (write_ts_type_common_tree_pointers): Do not stream fields not set
10301 for incomplete types; do not stream duplicated fields for variants;
10302 sanity check that variant and type match.
10303 (write_ts_type_non_common_tree_pointers): Likewise.
10304 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10305 TYPE_SIZE whether type is complete.
10306 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10307 write_ts_type_common_tree_pointers
10308 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10310 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10312 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10314 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10316 * tree-inline.c (remap_type_1): Do not duplicate fields
10317 that are shared in between type and its main variant.
10319 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10321 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10323 (ipa_set_ancestor_jf) Likewise.
10324 (check_stmt_for_type_change): Check that we work on main variant.
10325 (detect_type_change): Look into main variant.
10326 (compute_known_type_jump_func): Check that main variant has BINFO.
10328 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10330 * ipa-devirt.c (set_type_binfo): New function.
10331 (add_type_duplicate): Use it.
10332 (get_odr_type): Sanity check that binfos points to main variants.
10333 (get_class_context): Be sure the context's outer_type is main variant.
10334 (contains_type_p): Walk main variant.
10335 (get_polymorphic_call_info_for_decl): Set outer_type to be
10337 (get_polymorphic_call_info): Likewise.
10338 (possible_polymorphic_call_targets): Sanity check that we operate
10341 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10343 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10345 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10347 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10348 accidental change due to wide-int branch merge.
10350 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10352 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10353 compressed debug support.
10354 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10355 * configure: Regenerate.
10356 * config.in: Regenerate.
10357 * common.opt (compressed_debug_sections): New enum.
10358 (gz, gz=): New options.
10359 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10360 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10361 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10362 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10363 LINK_COMPRESS_DEBUG_SPEC.
10364 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10365 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10366 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10367 (Debugging Options): Document -gz[=type].
10369 2014-06-27 Martin Jambor <mjambor@suse.cz>
10372 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10373 args_to_skip, use those from node instead. Copy args_to_skip and
10374 combined_args_to_skip from node to the new thunk.
10375 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10376 (cgraph_create_virtual_clone): Moved computation of
10377 combined_args_to_skip...
10378 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10380 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10382 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10383 redundant diagnostic machinary.
10385 2014-06-27 Richard Biener <rguenther@suse.de>
10387 * tree-ssa-math-opts.c (bswap_replace): Fix
10388 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10390 2014-06-27 Martin Liska <mliska@suse.cz>
10392 * gimple.h (gimple_location_safe): New function introduced.
10393 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10394 of gimple_location_safe replaces gimple_location.
10395 (gimple_fold_call): Likewise.
10396 * ipa-devirt.c (ipa_devirt): Likewise.
10397 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10398 * ipa.c (walk_polymorphic_call_targets): Likewise.
10399 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10401 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10403 PR tree-optimization/57233
10404 PR tree-optimization/61299
10405 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10407 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10408 would be lowered to scalar shifts, check if corresponding
10409 shifts and vector BIT_IOR_EXPR are supported and don't lower
10410 or lower just to narrower vector type in that case.
10411 * expmed.c (expand_shift_1): Fix up handling of vector
10412 shifts and rotates.
10414 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10417 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10419 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10421 * doc/invoke.texi (-fsemantic-interposition): Document.
10422 * common.opt (fsemantic-interposition): New flag.
10423 * varasm.c (decl_replaceable_p): Use it.
10425 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10428 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10429 extraction other than index 3.
10431 2014-06-26 Teresa Johnson <tejohnson@google.com>
10433 * doc/invoke.texi: Fix typo.
10434 * dumpfile.c: Add support for documented -fdump-* options
10435 optimized/missed/note/optall.
10437 2014-06-26 Martin Jambor <mjambor@suse.cz>
10439 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10440 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10441 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10442 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10443 * opts.c (default_options_optimization): Set
10444 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10445 * doc/invoke.texi (allow-load-data-races)
10446 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10447 (allow-store-data-races): Document the new default.
10449 2014-06-26 Martin Jambor <mjambor@suse.cz>
10451 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10452 renamed to ipa_impossible_devirt_target. Fix typo.
10453 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10454 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10455 ipa_impossible_devirt_target.
10457 2014-06-26 Richard Biener <rguenther@suse.de>
10459 PR tree-optimization/61607
10460 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10461 explaining why we restrict copies on loop depth.
10462 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10464 (record_equivalences_from_phis): Instead add it here.
10466 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10468 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10469 (LTO_WRAPPER_OBJS): New variable.
10470 (lto-wrapper$(exeext)): Use it.
10471 * collect2.c: Include "collect-utils.h".
10472 (verbose, debug): Remove variables.
10473 (at_file_supplied): No longer static.
10474 (tool_name): New variable.
10475 (do_wait, fork_execute, maybe_unlink): Don't declare.
10476 (tool_cleanup): No longer static.
10477 (notice): Remove function.
10478 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10479 fork_execute calls.
10480 (collect_wait, do_wait, collect_execute): Remove functions.
10481 (maybe_unlink): No longer static.
10482 * collect2.h (verbose, debug): Don't declare.
10483 (at_file_supplied): Declare.
10484 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10486 (collect_execute): Replace with implementation from collect2, plus a
10487 new arg use_atfile. All callers changed.
10488 (collect_wait): Replace with implementation from collect2.
10489 (maybe_unlink_file): Remove function.
10490 (fork_execute): Replace with implementation from collect2, plus a
10491 new arg use_atfile. All callers changed.
10492 (do_wait): Add call to utils_cleanup to the error path.
10493 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10494 (tool_cleanup): Adjust declarations.
10495 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10496 * tlink.c: Include "collect-utils.h".
10497 (tlink_execute): New arg use_atfile. All callers changed.
10498 (tlink_init, tlink_execute): Remove declarations.
10500 * collect-utils.c (save_temps): New variable.
10501 (do_wait): Use it instead of debug. Use fatal_error.
10502 * collect-utils.h (save_temps): Declare.
10503 * collect2.c (verbose): Rename from vflag. All uses changed.
10504 (tool_cleanup): New function, copied from collect_atexit.
10505 (collect_atexit, handler): Just call it.
10506 * collect2.h (verbose): Declaration renamed from vflag.
10507 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10510 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10511 (lto-wrapper$(exeext)): Link with collect-utils.o.
10512 * collect-utils.c: New file.
10513 * collect-utils.h: New file.
10514 * lto-wrapper.c: Include "collect-utils.h".
10515 (args_name): Delete variable.
10516 (tool_name): New variable.
10517 (tool_cleanup): New function.
10518 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10519 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10520 (fork_execute): Remove functions.
10522 2014-06-26 Nick Clifton <nickc@redhat.com>
10524 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10526 * doc/extend.texi (Function Attributes): Fix typo in description
10527 of RX vector attribute.
10529 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10531 * config.gcc (supported_defaults): Error when passing either
10532 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10534 2014-06-26 Richard Biener <rguenther@suse.de>
10536 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10537 propagating volatile pointers.
10539 2014-06-26 Richard Biener <rguenther@suse.de>
10541 PR tree-optimization/61607
10542 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10543 loop if we redirected its latch edge.
10544 (thread_block_1): Do not cancel loops prematurely.
10546 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10548 * toplev.c (backend_init_target): Move init_emit_regs and
10550 (backend_init) ... here; skip ira_init_once and backend_init_target.
10551 (target_reinit) ... and here; clear
10552 this_target_rtl->lang_dependent_initialized.
10553 (lang_dependent_init_target): Clear
10554 this_target_rtl->lang_dependent_initialized;
10555 break out rtl initialization to ...
10556 (initialize_rtl): ... here; call also backend_init_target
10558 * toplev.h (initialize_rtl): New function.
10559 * function.c: Include toplev.h
10560 (init_function_start): Call initialize_rtl.
10561 * rtl.h (target_rtl): Add target_specific_initialized,
10562 lang_dependent_initialized.
10564 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10565 Jakub Jelinek <jakub@redhat.com>
10567 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10569 2014-06-25 Tom de Vries <tom@codesourcery.com>
10571 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10573 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10575 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10576 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10577 Issue a strict overflow warning if appropriate.
10579 2014-06-25 Martin Liska <mliska@suse.cz>
10581 IPA REF refactoring
10582 * Makefile.in: Removed header file (ipa-ref-inline.h).
10583 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10585 (cgraph_speculative_call_info): Likewise.
10586 (cgraph_for_node_thunks_and_aliases): Likewise.
10587 (cgraph_for_node_and_aliases): Likewise.
10588 (verify_cgraph_node): Likewise.
10589 * cgraph.h: Batch of IPA REF functions become member functions of
10590 symtab_node: add_reference, maybe_add_reference, clone_references,
10591 clone_referring, clone_reference, find_reference,
10592 remove_stmt_references, remove_all_references,
10593 remove_all_referring, dump_references, dump_referring,
10594 has_alias_p, iterate_reference, iterate_referring.
10595 * cgraphbuild.c (record_reference): New IPA REF function used.
10596 (record_type_list): Likewise.
10597 (record_eh_tables): Likewise.
10598 (mark_address): Likewise.
10599 (mark_load): Likewise.
10600 (mark_store): Likewise.
10601 (pass_build_cgraph_edges): Likewise.
10602 (rebuild_cgraph_edge): Likewise.
10603 (cgraph_rebuild_references): Likewise.
10604 (pass_remove_cgraph_callee_edges): Likewise.
10605 * cgraphclones.c (cgraph_clone_node): Likewise.
10606 (cgraph_create_virtual_clone): Likewise.
10607 (cgraph_materialize_clone): Likewise.
10608 (cgraph_materialize_all_clones): Likewise.
10609 * cgraphunit.c (cgraph_reset_node): Likewise.
10610 (cgraph_reset_node): Likewise.
10611 (analyze_function): Likewise.
10612 (assemble_thunks_and_aliases): Likewise.
10613 (expand_function): Likewise.
10614 * ipa-comdats.c (propagate_comdat_group): Likewise.
10615 (enqueue_references): Likewise.
10616 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10617 (create_specialized_node): Likewise.
10618 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10619 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10620 * ipa-inline.c (reset_edge_caches): Likewise.
10621 (update_caller_keys): Likewise.
10622 (execute): Likewise.
10623 * ipa-prop.c (remove_described_reference): Likewise.
10624 (propagate_controlled_uses): Likewise.
10625 (ipa_edge_duplication_hook): Likewise.
10626 (ipa_modify_call_arguments): Likewise.
10627 * ipa-pure-const.c (propagate_pure_const): Likewise.
10628 * ipa-ref-inline.h: Header file removed, functions moved
10629 to symtab_node class.
10630 * ipa-ref.c (remove_reference): New class member function.
10631 (cannot_lead_to_return): New class member function.
10632 (referring_ref_list): Likewise.
10633 (referred_ref_list): Likewise.
10634 Rest of functions moved to symtab_node class.
10635 * ipa-ref.h: New member functions remove_reference,
10636 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10638 ipa_ref_list class has new member functions: first_reference,
10639 first_referring, clear, nreferences.
10640 * ipa-reference.c (analyze_function): New IPA REF function used.
10641 (write_node_summary_p): Likewise.
10642 (ipa_reference_write_optimization_summary): Likewise.
10643 * ipa-split.c (split_function): Likewise.
10644 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10645 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10646 (function_and_variable_visibility): Likewise.
10647 * ipa.c (has_addr_references_p): Likewise.
10648 (process_references): Argument type changed.
10649 (symtab_remove_unreachable_nodes): New IPA REF function used.
10650 (process_references): Likewise.
10651 (set_writeonly_bit): Likewise.
10652 * lto-cgraph.c: Implementation of new symtab_node member functions
10653 that uses new IPA REF functions.
10654 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10656 * lto-streamer-out.c (output_symbol_p): Likewise.
10657 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10659 * symtab.c: Implementation of new IPA REF API.
10660 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10661 (ipa_tm_create_version): Likewise.
10662 (ipa_tm_execute): Likewise.
10663 * tree-emutls.c (gen_emutls_addr): Likewise.
10664 * tree-inline.c (copy_bb): Likewise.
10665 (delete_unreachable_blocks_update_callgraph): Likewise.
10666 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10667 (varpool_for_node_and_aliases): Likewise.
10669 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10671 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10673 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10676 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10677 tree_node * instead of tree_node *.
10679 (print_fold_checksum): Likewise.
10680 (fold_check_failed): Likewise.
10681 (debug_fold_checksum): Likewise.
10682 (fold_build1_stat_loc): Likewise.
10683 (fold_build2_stat_loc): Likewise.
10684 (fold_build3_stat_loc): Likewise.
10685 (fold_build_call_array_loc): Likewise.
10687 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10689 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10690 implementation with call to...
10691 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10693 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10696 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10698 PR tree-optimization/57742
10699 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10700 after replacing the statement.
10702 2014-06-25 Nick Clifton <nickc@redhat.com>
10704 * config/v850/v850.c (GHS_default_section_names): Change to const
10706 (GHS_current_section_names): Likewise.
10707 (v850_insert_attributes): Do not build strings, just assign the
10708 names directly. Change the type of 'chosen_section' to const
10710 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10711 directly to the array entry.
10712 * config/v850/v850.h (GHS_default_section_names): Change to const
10714 (GHS_current_section_names): Likewise.
10716 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10718 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10719 (LANG_HOOKS_DECLS): Add it.
10720 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10722 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10723 * langhooks.h (struct lang_hooks_for_decls): Add
10724 omp_clause_linear_ctor hook.
10725 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10726 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10727 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10728 combined simd loop use omp_clause_linear_ctor hook.
10730 2014-06-24 Cong Hou <congh@google.com>
10732 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10733 pattern recognition.
10734 (type_conversion_p): PROMOTION is true if it's a type promotion
10735 conversion, and false otherwise. Return true if the given expression
10736 is a type conversion one.
10737 * tree-vectorizer.h: Adjust the number of patterns.
10738 * tree.def: Add SAD_EXPR.
10739 * optabs.def: Add sad_optab.
10740 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10741 * expr.c (expand_expr_real_2): Likewise.
10742 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10743 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10744 * optabs.c (optab_for_tree_code): Likewise.
10745 * tree-cfg.c (estimate_operator_cost): Likewise.
10746 * tree-ssa-operands.c (get_expr_operands): Likewise.
10747 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10748 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10749 * doc/generic.texi: Add document for SAD_EXPR.
10750 * doc/md.texi: Add document for ssad and usad.
10752 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10754 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10755 qualification in cast.
10757 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10759 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10760 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10761 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10762 (tree_function_decl): ... here.
10763 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10764 streaming of vindex to ...
10765 (write_ts_function_decl_tree_pointers): ... here.
10766 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10767 Do not stream DECL_VINDEX.
10768 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10770 2014-06-24 Catherine Moore <clm@codesourcery.com>
10771 Sandra Loosemore <sandra@codesourcery.com>
10773 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10774 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10775 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10777 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10779 * doc/invoke.texi (Warning Options): Remove duplicated
10780 -Wmaybe-uninitialized.
10782 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10784 PR tree-optimization/57742
10785 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10786 (handle_builtin_malloc, handle_builtin_memset): New functions.
10787 (strlen_optimize_stmt): Call them.
10788 * passes.def: Move strlen after loop+dom but before vrp.
10790 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10793 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10794 model family 6 CPU with has_longmode never use a CPU without
10797 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10800 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10803 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10805 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10806 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10808 * hash-map.h: New file.
10809 * ipa-comdats.c: Use hash_map instead of pointer_map.
10811 * lto-section-out.c: Adjust.
10812 * lto-streamer.h: Replace pointer_map with hash_map.
10813 * symtab.c (verify_symtab): Likewise.
10814 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10815 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10816 * tree-streamer.h: Likewise.
10817 * tree-streamer.c: Adjust.
10818 * pointer-set.h: Remove pointer_map.
10820 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10822 * hash-table.h: Add a template arg to choose between storing values
10823 and storing pointers to values, and then provide partial
10824 specializations for both.
10825 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10826 should store, not the type values should point to.
10827 * tree-into-ssa.c (var_info_hasher): Likewise.
10828 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10829 * tree-complex.c: Adjust.
10830 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10831 table instead of int_tree_map *.
10832 * tree-parloops.c: Adjust.
10833 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10834 type is being stored.
10835 * tree-vectorizer.c: Adjust.
10837 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10839 * hash-table.h: Remove a layer of indirection from hash_table so that
10840 it contains the hash table's data instead of a pointer to the data.
10841 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10842 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10843 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10844 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10845 fold-const.c, gcse.c, ggc-common.c,
10846 gimple-ssa-strength-reduction.c, gimplify.c,
10847 graphite-clast-to-gimple.c, graphite-dependences.c,
10848 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10849 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10850 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10851 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10852 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10853 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10854 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10855 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10856 tree-ssa-live.c, tree-ssa-loop-im.c,
10857 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10858 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10859 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10860 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10861 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10862 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10863 vtable-verify.c, vtable-verify.h: Adjust.
10865 2014-06-24 Richard Biener <rguenther@suse.de>
10867 PR tree-optimization/61572
10868 * tree-ssa-sink.c (statement_sink_location): Do not sink
10869 loads from hard registers.
10871 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10873 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10874 not mentioned in clauses use private clause if the iterator is
10875 declared in #pragma omp for simd, and when adding lastprivate
10876 instead, add it to the outer #pragma omp for too. Diagnose
10877 if the variable is private in outer context. For simd collapse > 1
10878 loops, replace all iterators with temporaries.
10879 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10880 same even in collapse > 1 loops.
10882 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10883 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
10885 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
10886 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
10888 (gimplify_adjust_omp_clauses): Likewise.
10889 * omp-low.c (lower_rec_simd_input_clauses,
10890 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
10891 safelen the same as safelen(1).
10892 * tree-nested.c (convert_nonlocal_omp_clauses,
10893 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
10894 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
10895 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
10896 Fixup handling of GIMPLE_OMP_TARGET.
10897 (convert_tramp_reference_stmt, convert_gimple_call): Handle
10900 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
10902 PR tree-optimization/61554
10903 * tree-ssa-propagate.c: Include "bitmap.h".
10904 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
10905 properly update constructor/destructor.
10906 (substitute_and_fold_dom_walker::before_dom_children):
10907 Remove call to gimple_purge_dead_eh_edges, add bb->index to
10908 need_eh_cleaup instead.
10909 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
10912 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
10914 * varpool.c (dump_varpool_node): Dump used_by_single_function.
10915 * tree-pass.h (make_pass_ipa_single_use): New pass.
10916 * cgraph.h (used_by_single_function): New flag.
10917 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
10919 * passes.def (pass_ipa_single_use): Scedule.
10920 * ipa.c (BOTTOM): New macro.
10921 (meet): New function
10922 (propagate_single_user): New function.
10923 (ipa_single_use): New function.
10924 (pass_data_ipa_single_use): New pass.
10925 (pass_ipa_single_use): New pass.
10926 (pass_ipa_single_use::gate): New gate.
10927 (make_pass_ipa_single_use): New function.
10929 2014-06-23 Kai Tietz <ktietz@redhat.com>
10932 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
10933 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
10935 2014-06-23 Richard Biener <rguenther@suse.de>
10937 * tree-ssa-loop.c (gate_loop): New function.
10938 (pass_tree_loop::gate): Call it.
10939 (pass_data_tree_no_loop, pass_tree_no_loop,
10940 make_pass_tree_no_loop): New.
10941 * tree-vectorizer.c: Include tree-scalar-evolution.c
10942 (pass_slp_vectorize::execute): Initialize loops and SCEV if
10944 (pass_slp_vectorize::clone): New method.
10945 * timevar.def (TV_TREE_NOLOOP): New.
10946 * tree-pass.h (make_pass_tree_no_loop): Declare.
10947 * passes.def (pass_tree_no_loop): New pass group with
10950 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
10953 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
10954 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
10956 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
10958 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
10959 "yes" where needed.
10961 2014-06-23 Alan Modra <amodra@gmail.com>
10964 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
10965 to zero on debug statements.
10967 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
10970 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
10971 Ignore third operand if present by marking qualifier_internal.
10973 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
10975 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
10977 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
10978 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
10979 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
10980 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
10981 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
10982 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
10983 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
10984 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
10985 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
10986 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
10987 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
10988 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
10989 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
10990 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
10991 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
10992 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
10993 logic in GCC vector extensions
10995 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
10996 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
10997 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
10998 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
10999 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11000 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11001 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11002 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11003 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11004 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11006 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11008 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11011 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11012 (vget_low_s64): Use __GET_LOW macro.
11013 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11014 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11015 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11016 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11017 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11019 (vcombine_s64): Use GCC vector extensions; remove cast.
11020 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11021 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11022 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11023 Fix type signature; remove cast.
11025 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11028 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11030 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11032 (BUILTIN_VD1): New.
11033 (BUILTIN_VD_RE): Remove.
11034 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11035 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11036 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11037 variant but not df.
11038 (vreinterpretv1df*, vreinterpret*v1df): New.
11039 (vreinterpretdf*, vreinterpret*df): Remove.
11040 * config/aarch64/aarch64-simd.md (aarch64_create,
11041 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11042 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11044 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11045 (vcreate_f64): Remove cast, use v1df builtin.
11046 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11047 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11048 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11049 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11050 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11051 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11052 add range check using __builtin_aarch64_im_lane_boundsi.
11053 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11054 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11055 type signature, use gcc vector extensions.
11056 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11057 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11058 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11059 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11060 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11061 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11062 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11063 vreinterpret_u64_f64): Use v1df builtin not df.
11065 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11067 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11070 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11072 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11075 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11077 * loop-invariant.c (pre_check_invariant_p): New function.
11078 (find_invariant_insn): Call pre_check_invariant_p.
11080 2014-06-22 Richard Henderson <rth@redhat.com>
11083 * compare-elim.c (struct comparison): Add eh_note.
11084 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11085 a redundant comparison in a different EH region. Purge EH edges if
11088 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11090 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11091 (var_shift): Use it.
11092 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11093 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11094 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11095 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11096 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11097 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11098 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11099 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11100 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11101 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11102 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11103 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11104 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11105 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11106 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11107 *rotldi3_internal15be): Use the new attribute. Merge register and
11108 integer alternatives.
11110 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11112 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11113 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11114 split, *ashrdi3_internal3 and split): Delete, merge into...
11115 (ashr<mode>3): New expander.
11116 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11117 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11119 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11121 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11122 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11123 *rotldi3_internal3 and split): Delete, merge into...
11124 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11125 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11126 Use "rotlw" extended mnemonic.
11128 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11130 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11131 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11132 and split, *ashldi3_internal3 and split): Delete, merge into...
11133 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11134 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11136 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11138 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11139 (lshrsi3, two anonymous define_insns and define_splits,
11140 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11141 *lshrdi3_internal3 and split): Delete, merge into...
11142 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11143 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11145 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11147 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11148 Remove "O" alternative.
11150 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11152 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11153 (mips_move_from_gpr_cost): Likewise.
11154 (mips_register_move_cost): Update accordingly.
11155 (mips_secondary_reload_class): Remove name of in_p.
11157 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11160 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11161 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11163 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11165 * config/nios2/nios2.c: Include "builtins.h".
11167 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11169 * cgraph.h (tls_model_names): New variable.
11170 * print-tree.c (print_node): Simplify.
11171 * varpool.c (tls_model_names): New variable.
11172 (dump_varpool_node): Output tls model.
11174 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11176 * ipa-visibility.c (function_and_variable_visibility): Disable
11177 temporarily local aliases for some targets.
11179 2014-06-20 Marek Polacek <polacek@redhat.com>
11181 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11182 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11183 into SANITIZE_UNDEFINED.
11184 * doc/invoke.texi: Describe -fsanitize=bounds.
11185 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11186 functions created in the FEs.
11187 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11188 (expand_UBSAN_BOUNDS): New function.
11189 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11190 * internal-fn.h: Don't define internal functions here.
11191 * opts.c (common_handle_option): Add -fsanitize=bounds.
11192 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11193 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11194 * tree-core.h: Define internal functions here.
11195 (struct tree_base): Add ifn field.
11196 * tree-pretty-print.c: Include "internal-fn.h".
11197 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11198 * tree.c (get_callee_fndecl): Likewise.
11199 (build_call_expr_internal_loc): New function.
11200 * tree.def (CALL_EXPR): Update description.
11201 * tree.h (CALL_EXPR_IFN): Define.
11202 (build_call_expr_internal_loc): Declare.
11203 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11205 (ubsan_type_descriptor): Change bool parameter to enum
11206 ubsan_print_style. Adjust the code. Add handling of
11208 (ubsan_expand_bounds_ifn): New function.
11209 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11210 (ubsan_build_overflow_builtin): Likewise.
11211 (instrument_bool_enum_load): Likewise.
11212 (ubsan_instrument_float_cast): Likewise.
11213 * ubsan.h (enum ubsan_print_style): New enum.
11214 (ubsan_expand_bounds_ifn): Declare.
11215 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11217 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11219 * config/rs6000/rs6000.md: Append `DONE' to preparation
11220 statements of `bswap' pattern splitters.
11222 2014-06-20 Tom de Vries <tom@codesourcery.com>
11224 * target.def (call_fusage_contains_non_callee_clobbers): Update
11226 * doc/tm.texi: Regenerate.
11228 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11229 Max Ostapenko <m.ostapenko@partner.samsung.com>
11232 * asan.c (instrument_strlen_call): Fixed instrumentation of
11235 2014-06-20 Martin Jambor <mjambor@suse.cz>
11238 * ipa-prop.c (impossible_devirt_target): New function.
11239 (try_make_edge_direct_virtual_call): Use it, also instead of
11242 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11243 Max Ostapenko <m.ostapenko@partner.samsung.com>
11246 * asan.c (build_check_stmt): Add condition.
11248 2014-06-20 Martin Jambor <mjambor@suse.cz>
11251 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11254 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11256 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11258 (VCONQ): Make comment more helpful.
11260 * config/aarch64/aarch64-simd.md
11261 (aarch64_sqdmulh_lane<mode>):
11262 Use VCOND for operands 2. Update lane checking and flipping logic.
11263 (aarch64_sqrdmulh_lane<mode>): Likewise.
11264 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11265 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11266 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11267 attribute of operand 3 to VCOND.
11268 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11269 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11270 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11271 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11272 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11273 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11275 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11276 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11277 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11278 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11279 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11280 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11281 operand to VCOND. Update lane flipping and bounds checking logic.
11282 (aarch64_sqdmlal2_lane<mode>): Likewise.
11283 (aarch64_sqdmlsl_lane<mode>): Likewise.
11284 (aarch64_sqdmull_lane<mode>): Likewise.
11285 (aarch64_sqdmull2_lane<mode>): Likewise.
11286 (aarch64_sqdmlal_laneq<mode>):
11287 Replace VCON usage with VCONQ.
11288 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11289 (aarch64_sqdmlal2_laneq<mode>): Emit
11290 aarch64_sqdmlal2_laneq<mode>_internal insn.
11291 Replace VCON with VCONQ.
11292 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11293 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11294 (aarch64_sqdmull_laneq<mode>): Emit
11295 aarch64_sqdmull_laneq<mode>_internal insn.
11296 Replace VCON with VCONQ.
11297 (aarch64_sqdmull2_laneq<mode>): Emit
11298 aarch64_sqdmull2_laneq<mode>_internal insn.
11299 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11300 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11301 of 3rd argument to int16x4_t.
11302 (vqdmlalh_lane_s16): Likewise.
11303 (vqdmlslh_lane_s16): Likewise.
11304 (vqdmull_high_lane_s16): Likewise.
11305 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11306 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11307 (vqdmlsl_lane_s16): Likewise.
11308 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11309 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11310 (vqdmlals_lane_s32): Likewise.
11311 (vqdmlsls_lane_s32): Likewise.
11312 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11313 (vqdmulls_lane_s32): Likewise.
11314 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11315 (vqdmlsl_lane_s32): Likewise.
11316 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11317 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11318 (vqrdmulhh_lane_s16): Likewise.
11319 (vqdmlsl_high_lane_s16): Likewise.
11320 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11321 (vqdmlsl_high_lane_s32): Likewise.
11322 (vqrdmulhs_lane_s32): Likewise.
11324 2014-06-20 Tom de Vries <tom@codesourcery.com>
11326 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11327 get_call_reg_set_usage.
11329 2014-06-20 Tom de Vries <tom@codesourcery.com>
11331 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11332 it contains all call_used_regs.
11334 2014-06-20 Tom de Vries <tom@codesourcery.com>
11336 * final.c (collect_fn_hard_reg_usage): Add and use variable
11337 function_used_regs.
11339 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11341 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11342 (set_init_priority, get_init_priority, set_fini_priority,
11343 get_fini_priority): New methods.
11344 * tree.c (init_priority_for_decl): Remove.
11345 (init_ttree): Do not initialize init priority.
11346 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11347 (decl_priority_info): Remove.
11348 (decl_init_priority_insert): Rewrite.
11349 (decl_fini_priority_insert): Rewrite.
11350 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11351 tree_priority_map_marked_p): Remove.
11352 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11353 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11354 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11355 not output priorities.
11356 (pack_ts_function_decl_value_fields): Likewise.
11357 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11358 not input priorities.
11359 (unpack_ts_function_decl_value_fields): Likewise.
11360 * symtab.c (symbol_priority_map): Declare.
11361 (init_priority_hash): Declare.
11362 (symtab_unregister_node): Unregister from priority hash, too.
11363 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11365 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11366 (symbol_priority_info): New function.
11367 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11369 * tree-core.h (tree_priority_map): Remove.
11371 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11373 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11374 0xff to uint64_t before shifting it up.
11376 2014-06-20 Julian Brown <julian@codesourcery.com>
11377 Chung-Lin Tang <cltang@codesourcery.com>
11379 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11380 TARGET_THUMB1_ONLY. Add comments.
11382 2014-06-19 Tom de Vries <tom@codesourcery.com>
11384 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11385 return type to void.
11386 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11388 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11390 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11391 as "move", from depends_on.
11393 2014-06-19 Terry Guo <terry.guo@arm.com>
11395 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11398 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11400 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11402 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11404 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11407 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11408 addresses here if reload in progress or completed.
11410 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11412 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11413 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11414 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11415 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11416 (mips_register_priority): New function that implements the target
11417 hook TARGET_REGISTER_PRIORITY.
11418 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11419 (mips_lra_p): Likewise for TARGET_LRA_P.
11420 (TARGET_REGISTER_PRIORITY): Define macro.
11421 (TARGET_SPILL_CLASS): Likewise.
11422 (TARGET_LRA_P): Likewise.
11423 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11425 (REG_CLASS_NAMES): Likewise.
11426 (REG_CLASS_CONTENTS): Likewise.
11427 (BASE_REG_CLASS): Use M16_SP_REGS.
11428 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11429 New set attribute to enable alternatives depending on the register
11431 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11432 (*lea64): Disable pattern for MIPS16.
11433 * config/mips/mips.opt (mlra): New option.
11435 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11437 * lra-constraints.c (base_to_reg): New function.
11438 (process_address): Use new function.
11440 2014-06-18 Tom de Vries <tom@codesourcery.com>
11442 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11443 * config/aarch64/aarch64.c
11444 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11445 (aarch64_emit_call_insn): New function.
11446 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11448 * config/aarch64/aarch64.md (define_expand "call_internal")
11449 (define_expand "call_value_internal", define_expand "sibcall_internal")
11450 (define_expand "sibcall_value_internal"): New.
11451 (define_expand "call", define_expand "call_value")
11452 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11453 expand variant and aarch64_emit_call_insn.
11455 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11456 Tom de Vries <tom@codesourcery.com>
11458 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11459 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11461 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11462 clobbers to CALL_INSN_FUNCTION_USAGE.
11463 (define_expand "sibcall_internal")
11464 (define_expand "sibcall_value_internal"): New.
11465 (define_expand "call", define_expand "call_value"): Add argument to
11466 arm_emit_call_insn.
11467 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11468 (define_expand "sibcall_value"): Use sibcall_value_internal and
11469 arm_emit_call_insn.
11471 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11473 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11475 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11477 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11480 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11482 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11483 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11484 annotations. Fix DWARF information.
11486 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11488 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11489 __udivmoddi4, and fixups for negative operands.
11491 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11493 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11495 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11497 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11500 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11502 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11505 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11507 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11508 describing register usage on function entry and exit.
11510 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11512 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11513 (__aeabi_ldivmod): Fix whitespace.
11515 2014-06-18 Andreas Schwab <schwab@suse.de>
11517 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11518 Remove blank line after @item.
11520 2014-06-18 Richard Henderson <rth@redhat.com>
11523 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11525 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11527 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11528 POST_MODIFY for neon loads and stores.
11529 (arm_print_operand): Output post-index register for neon loads and
11532 2014-06-18 Richard Biener <rguenther@suse.de>
11534 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11536 2014-06-18 Richard Biener <rguenther@suse.de>
11538 * tree-pass.h (make_pass_dce_loop): Remove.
11539 * passes.def: Replace pass_dce_loop with pass_dce.
11540 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11541 changed free niter estimates and reset the scev cache.
11542 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11543 make_pass_dce_loop): Remove.
11544 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11545 (fini_copy_prop): Return whether something changed. Always
11546 let substitute_and_fold perform DCE and free niter estimates
11547 and reset the scev cache if so.
11548 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11549 (pass_data_copy_prop): Do not unconditionally schedule
11550 cleanup-cfg or update-ssa.
11552 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11554 PR tree-optimization/61518
11555 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11556 reduction var is used in reduction stmt or phi-function only.
11558 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11560 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11562 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11564 PR tree-optimization/61517
11565 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11566 whose rhs's first tree is the source expression instead of the
11568 (find_bswap_or_nop): Likewise.
11569 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11570 gimple stmt whose rhs's first tree is the source. In the memory source
11571 case, move the stmt to be replaced close to one of the original load to
11572 avoid the problem of a store between the load and the stmt's original
11574 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11577 2014-06-18 Andreas Schwab <schwab@suse.de>
11579 PR rtl-optimization/54555
11580 * postreload.c (move2add_use_add2_insn): Substitute
11581 STRICT_LOW_PART only if it is cheaper.
11583 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11585 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11586 Do not use unspec as call operand. Use memory_operand instead of
11587 memory_nox32_operand and add "m" operand constraint. Disable
11588 pattern for TARGET_X32.
11589 (*sibcall_pop_memory): Ditto.
11590 (*sibcall_value_memory): Ditto.
11591 (*sibcall_value_pop_memory): Ditto.
11592 (sibcall peepholes): Merge SImode and DImode patterns using
11593 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11594 Disable pattern for TARGET_X32. Check if eliminated register is
11595 really dead after call insn. Generate call RTX without unspec operand.
11596 (sibcall_value peepholes): Ditto.
11597 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11598 instead of memory_nox32_operand. Check if eliminated register is
11599 really dead after call insn. Generate call RTX without unspec operand.
11600 (sibcall_value_pop peepholes): Ditto.
11601 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11603 2014-06-18 Terry Guo <terry.guo@arm.com>
11606 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11609 2014-06-18 Olivier Hainque <hainque@adacore.com>
11611 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11612 memorization of the end of block source location.
11613 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11614 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11615 end source location info we have on the block entry/exit code we
11618 2014-06-18 Richard Biener <rguenther@suse.de>
11620 * common.opt (fssa-phiopt): New option.
11621 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11623 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11624 * doc/invoke.texi (-fssa-phiopt): Document.
11626 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11628 * genattrtab.c (n_bypassed): New variable.
11629 (process_bypasses): Initialise n_bypassed.
11630 Count number of bypassed reservations.
11631 (make_automaton_attrs): Allocate space for bypassed reservations
11632 rather than number of bypasses.
11634 2014-06-18 Richard Biener <rguenther@suse.de>
11636 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11637 we propagated anything.
11638 (substitute_and_fold_dom_walker::before_dom_children): Something
11639 changed if we propagated into PHI arguments.
11640 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11643 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11645 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11647 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11648 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11649 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11650 Introduces alternative way of loads group permutaions.
11651 (vect_transform_grouped_load): Try alternative way of permutations.
11653 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11655 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11656 changed in ORT_TARGET region, don't jump to do_outer.
11657 (struct gimplify_adjust_omp_clauses_data): New type.
11658 (gimplify_adjust_omp_clauses_1): Adjust for data being
11659 a struct gimplify_adjust_omp_clauses_data pointer instead
11660 of tree *. Pass pre_p as a new argument to
11661 lang_hooks.decls.omp_finish_clause hook.
11662 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11663 splay_tree_foreach to pass both list_p and pre_p.
11664 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11665 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11666 gimplify_adjust_omp_clauses callers.
11667 * langhooks.c (lhd_omp_finish_clause): New function.
11668 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11669 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11670 * langhooks.h (struct lang_hooks_for_decls): Add a new
11671 gimple_seq * argument to omp_finish_clause hook.
11672 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11673 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11674 (scan_omp_parallel, lower_omp_for): When adding
11675 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11676 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11677 * tree-nested.c (convert_nonlocal_omp_clauses,
11678 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11679 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11681 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11683 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11684 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11686 2014-06-17 Xinliang David Li <davidxl@google.com>
11688 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11689 * passes.c (pass_init_dump_file): Do not set initialize
11690 flag to false unconditionally.
11692 2014-06-17 Richard Biener <rguenther@suse.de>
11694 * genopinit.c (main): Use vec<>::qsort method.
11695 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11697 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11699 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11701 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11702 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11703 (mips_move_to_gpr_cost): Remove ST_REGS case.
11704 (mips_move_from_gpr_cost): Likewise.
11705 (mips_register_move_cost): Likewise.
11706 (mips_secondary_reload_class): Likewise.
11708 2014-06-17 Richard Biener <rguenther@suse.de>
11710 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11711 (pass_all_optimizations): Move 3rd copy-prop pass from after
11712 fre to before ifcombine/phiopt.
11714 2014-06-17 Richard Biener <rguenther@suse.de>
11716 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11717 and allow all blocks to be forwarders.
11719 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11722 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11723 variable 'size'; calculate 'size' right in the front; use
11724 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11725 pcum->aapcs_stack_words.
11727 2014-06-17 Nick Clifton <nickc@redhat.com>
11729 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11730 (umulhi3, mulsidi3, umulsidi3): Likewise.
11732 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11734 PR middle-end/61508
11735 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11736 check for section name.
11738 2014-06-17 Richard Biener <rguenther@suse.de>
11740 * tree-ssa-propagate.c: Include domwalk.h.
11741 (substitute_and_fold): Outline main worker into a domwalker ...
11742 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11743 Schedule stmts we can fully propagate for removal. Remove
11745 (substitute_and_fold): Apply a dominator walk to perform
11746 substitution. Process stmts scheduled for removal here.
11748 2014-06-17 Richard Biener <rguenther@suse.de>
11750 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11751 of PHI node moving.
11753 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11755 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11756 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11757 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11758 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11759 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11761 (get_fpscr) : Likewise.
11763 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11765 PR rtl-optimization/61325
11766 * lra-constraints.c (valid_address_p): Add forward declaration.
11767 (simplify_operand_subreg): Check address validity before and after
11768 alter_reg of memory subreg.
11770 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11772 * config/i386/i386.c (decide_alg): Correctly handle
11773 maximum size of stringop algorithm.
11775 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11777 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11779 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11781 PR rtl-optimization/61522
11782 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11784 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11787 * symtab.c (symtab_node::reset_section): New method.
11788 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11790 * cgraph.h (reset_section): Declare.
11791 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11792 do not consider comdat locals.
11793 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11795 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11796 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11797 reset sections of symbols dragged out of the comdats.
11798 (function_and_variable_visibility): Reset sections of
11801 2014-06-16 Richard Biener <rguenther@suse.de>
11803 PR tree-optimization/61482
11804 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11805 [-INF(OVF), +INF(OVF)] range.
11807 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11809 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11810 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11811 handling 32-bit multiplication.
11813 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11815 PR middle-end/61430
11816 * lra-lives.c (process_bb_lives): Skip creating copy during
11817 insn scan when src/dest has constrained to same regno.
11819 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11821 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11822 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11824 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11826 * asan.c (check_func): New function.
11827 (maybe_create_ssa_name): Likewise.
11828 (build_check_stmt_with_calls): Likewise.
11829 (use_calls_p): Likewise.
11830 (report_error_func): Change interface.
11831 (build_check_stmt): Allow non-integer lengths; add support
11833 (asan_instrument): Likewise.
11834 (instrument_mem_region_access): Moved code to build_check_stmt.
11835 (instrument_derefs): Likewise.
11836 (instrument_strlen_call): Likewise.
11837 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11838 * doc/invoke.texi: Describe new parameter.
11839 * params.def: Define new parameter.
11840 * params.h: Likewise.
11841 * sanitizer.def: Describe new builtins.
11843 2014-06-16 Richard Biener <rguenther@suse.de>
11845 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11846 Make all defs available at the end.
11847 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11849 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11852 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11854 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11857 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11858 initialization. Replace remaining use of uid.
11860 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11862 * c-family/c-common.c (handle_tls_model_attribute): Use
11863 set_decl_tls_model.
11864 * c-family/c-common.c (handle_tls_model_attribute): Use
11865 set_decl_tls_model.
11866 * cgraph.h (struct varpool_node): Add tls_model.
11867 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11868 * tree.h (DECL_TLS_MODEL): Update.
11869 (DECL_THREAD_LOCAL_P): Check that variable is static.
11870 (decl_tls_model): Declare.
11871 (set_decl_tls_model): Declare.
11872 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11873 set symbol prorperties.
11874 (get_emutls_init_templ_addr): Cleanup.
11875 (new_emutls_decl): Update.
11876 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11877 (lto_input_varpool_node): Likewise.
11878 * lto-streamer-out.c (hash_tree): Likewise.
11879 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11880 not stream DECL_TLS_MODEL.
11881 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11882 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
11884 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11886 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
11888 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11890 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
11891 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
11893 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
11894 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
11895 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
11896 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
11897 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
11898 (df_get_artificial_defs, df_get_artificial_uses)
11899 (df_single_def, df_single_use): Update accordingly.
11900 (df_refs_chain_dump): Take the first element in a linked list as
11901 parameter, rather than a pointer to an array of pointers.
11902 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
11903 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
11904 (df_chain_create_bb_process_use): Likewise.
11905 (df_md_bb_local_compute_process_def): Likewise.
11906 * fwprop.c (process_defs, process_uses): Likewise.
11907 (register_active_defs, update_uses): Likewise.
11908 (forward_propagate_asm): Update for new df_ref linking.
11909 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
11910 (df_null_ref_rec, df_null_mw_rec): Likewise.
11911 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
11913 (df_scan_free_bb_info): Remove check for null artificial_defs.
11914 (df_install_ref_incremental): Adjust for new df_ref linking.
11915 Use a single-element insertion rather than a full sort.
11916 (df_ref_chain_delete_du_chain): Take the first element
11917 in a linked list as parameter, rather than a pointer to an array of
11919 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
11920 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
11921 (df_insn_info_delete): Remove check for null defs and call to
11922 df_scan_free_mws_vec.
11923 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
11924 null rather than df_null_*_rec.
11925 (df_insn_rescan_debug_internal): Likewise, and update null
11926 checks in the same way. Remove check for null defs.
11927 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
11928 Move a single element rather doing a full sort.
11929 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
11931 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
11932 Initialize df_ref and df_mw_hardreg lists to null rather than
11934 (df_ref_compare): Take df_refs as parameter, transferring the
11935 old interface to...
11936 (df_ref_ptr_compare): ...this new function.
11937 (df_sort_and_compress_refs): Update accordingly.
11938 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
11939 old interface to...
11940 (df_mw_ptr_compare): ...this new function.
11941 (df_sort_and_compress_mws): Update accordingly.
11942 (df_install_refs, df_install_mws): Return a linked list rather than
11943 an array of pointers.
11944 (df_refs_add_to_chains): Assert that old lists are empty rather
11946 (df_insn_refs_verify): Don't handle null defs speciailly.
11947 * web.c (union_match_dups): Update for new df_ref linking.
11949 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11951 * df.h (df_ref_create, df_ref_remove): Delete.
11952 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
11953 (df_ref_remove): Likewise.
11955 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11957 * df.h (df_single_def, df_single_use): New functions.
11958 * ira.c (find_moveable_pseudos): Use them.
11960 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11962 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
11963 * df-problems.c (df_note_bb_compute): Use it.
11964 * regstat.c (regstat_bb_compute_ri): Likewise.
11966 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11968 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
11969 * cse.c (cse_extended_basic_block): Use them.
11970 * dce.c (mark_artificial_use): Likewise.
11971 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
11972 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
11973 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
11974 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
11975 (df_simulate_initialize_backwards): Likewise.
11976 (df_simulate_finalize_backwards): Likewise.
11977 (df_simulate_initialize_forwards): Likewise.
11978 (df_md_simulate_artificial_defs_at_top): Likewise.
11979 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
11980 * regrename.c (init_rename_info): Likewise.
11981 * regstat.c (regstat_bb_compute_ri): Likewise.
11982 (regstat_bb_compute_calls_crossed): Likewise.
11984 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
11986 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
11987 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
11988 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
11989 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
11990 * combine.c (create_log_links): Likewise.
11991 * compare-elim.c (find_flags_uses_in_insn): Likewise.
11992 (try_eliminate_compare): Likewise.
11993 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
11994 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
11995 (remove_reg_equal_equiv_notes_for_defs): Likewise.
11996 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
11997 (word_dce_process_block, dce_process_block): Likewise.
11998 * ddg.c (def_has_ccmode_p): Likewise.
11999 * df-core.c (df_bb_regno_first_def_find): Likewise.
12000 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12001 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12002 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12003 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12004 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12005 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12006 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12007 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12008 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12009 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12010 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12011 * fwprop.c (local_ref_killed_between_p): Likewise.
12012 (all_uses_available_at, free_load_extend): Likewise.
12013 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12014 * hw-doloop.c (scan_loop): Likewise.
12015 * ifcvt.c (dead_or_predicable): Likewise.
12016 * init-regs.c (initialize_uninitialized_regs): Likewise.
12017 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12018 (process_bb_node_lives): Likewise.
12019 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12020 (find_moveable_pseudos): Likewise.
12021 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12022 * recog.c (peep2_find_free_register): Likewise.
12023 * ree.c (get_defs): Likewise.
12024 * regstat.c (regstat_bb_compute_ri): Likewise.
12025 (regstat_bb_compute_calls_crossed): Likewise.
12026 * sched-deps.c (find_inc, find_mem): Likewise.
12027 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12028 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12029 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12030 (prepare_shrink_wrap): Likewise.
12031 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12032 * web.c (union_defs, pass_web::execute): Likewise.
12033 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12034 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12036 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12038 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12039 to inheritance pseudos.
12040 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12042 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12045 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12046 (BU_MISC_2): Rename to ...
12047 (BU_LDBL128_2): ... this.
12048 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12049 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12050 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12051 RS6000_BTM_LDBL128.
12052 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12053 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12054 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12055 (unpacktf_1): Likewise.
12056 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12057 (__builtin_longdouble_dw1): Likewise.
12058 * doc/sourcebuild.texi (longdouble128): Document.
12060 2014-06-13 Jeff Law <law@redhat.com>
12062 PR rtl-optimization/61094
12063 PR rtl-optimization/61446
12064 * ree.c (combine_reaching_defs): Get the mode for the copy from
12065 the extension insn rather than the defining insn.
12067 2014-06-13 Dehao Chen <dehao@google.com>
12069 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12071 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12073 * doc/install.texi (--enable-linker-plugin-configure-flags)
12074 (--enable-linker-plugin-flags): Document new flags.
12076 2014-06-13 Martin Jambor <mjambor@suse.cz>
12079 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12080 cache_token if returning early.
12082 2014-06-13 Nick Clifton <nickc@redhat.com>
12084 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12085 requested alignment is active.
12086 (LABEL_ALIGN): Likewise.
12087 (LOOP_ALIGN): Likewise.
12089 2014-06-13 Richard Biener <rguenther@suse.de>
12091 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12092 Rewrite to propagate the VN result into all uses where
12093 possible and to remove stmts becoming dead because of that.
12094 (eliminate): Generalize stmt removal handling, remove in
12095 reverse dominator order to support proper debug stmt
12096 generation. Update stmts before removing stmts.
12097 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12099 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12101 PR tree-optimization/61375
12102 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12103 symbolic number cannot be represented in an uint64_t.
12104 (find_bswap_or_nop_1): Likewise.
12106 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12108 * symtab.c (symtab_node::reset_section): New method.
12109 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12111 * cgraph.h (reset_section): Declare.
12112 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12113 do not consider comdat locals.
12114 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12116 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12117 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12118 reset sections of symbols dragged out of the comdats.
12119 (function_and_variable_visibility): Reset sections of
12122 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12124 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12125 to use symtab and decl_binds_to_current_def_p
12126 * tree-vectorizer.c (increase_alignment): Increase alignment
12127 of alias target, too.
12129 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12131 PR middle-end/61486
12132 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12133 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12134 if outer combined construct is distribute.
12135 (gimplify_omp_for): For OMP_DISTRIBUTE set
12136 gimplify_omp_ctxp->distribute.
12137 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12138 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12139 mapping into decl map.
12141 2014-06-12 Jason Merrill <jason@redhat.com>
12143 * common.opt (fabi-version): Change default to 0.
12145 2014-06-12 Jason Merrill <jason@redhat.com>
12147 * toplev.c (process_options): Reject -fabi-version=1.
12149 2014-06-12 Jeff Law <law@redhat.com>
12151 PR tree-optimization/61009
12152 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12153 value when we stop processing a block due to problematic PHIs.
12155 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12157 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12158 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12159 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12160 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12161 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12162 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12163 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12164 are not in the spec.
12166 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12169 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12170 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12173 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12175 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12177 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12180 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12181 loading from address spaces.
12183 2014-06-12 Martin Liska <mliska@suse.cz>
12186 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12187 statement is reachable.
12189 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12191 * symtab.c (section_hash): New hash.
12192 (symtab_unregister_node): Clear section before freeing.
12193 (hash_section_hash_entry): New haser.
12194 (eq_sections): New function.
12195 (symtab_node::set_section_for_node): New method.
12196 (set_section_1): Update.
12197 (symtab_node::set_section): Take string instead of tree as parameter.
12198 (symtab_resolve_alias): Update.
12199 * cgraph.h (section_hash_entry_d): New structure.
12200 (section_hash_entry): New typedef.
12201 (cgraph_node): Change comdat_group_ to x_comdat_group,
12202 change section_ to x_section and turn into section_hash_entry;
12203 update accestors; put set_section_for_node offline.
12204 * tree.c (decl_section_name): Turn into string.
12205 (set_decl_section_name): Change parameter to be string.
12206 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12207 * sdbout.c (sdbout_one_type): Update.
12208 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12209 * varasm.c (IN_NAMED_SECTION, get_named_section,
12210 resolve_unique_section, hot_function_section, get_named_text_section,
12211 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12212 make_decl_rtl, default_unique_section): Update.
12213 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12214 (c6x_elf_unique_section): Update.
12215 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12216 * config/pa/pa.c (pa_function_section): Update.
12217 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12218 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12219 * config/arc/arc.c (arc_in_small_data_p): Update.
12220 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12221 * config/mcore/mcore.c (mcore_unique_section): Update.
12222 * config/mips/mips.c (mips16_build_function_stub): Update.
12223 (mips16_build_call_stub): Update.
12224 (mips_function_rodata_section): Update.
12225 (mips_in_small_data_p): Update.
12226 * config/score/score.c (score_in_small_data_p): Update.
12227 * config/rx/rx.c (rx_in_small_data): Update.
12228 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12229 (rs6000_xcoff_asm_named_section): Update.
12230 (rs6000_xcoff_unique_section): Update.
12231 * config/frv/frv.c (frv_string_begins_with): Update.
12232 (frv_in_small_data_p): Update.
12233 * config/v850/v850.c (v850_encode_data_area): Update.
12234 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12235 (bfin_handle_l1_data_attribute): Update.
12236 (bfin_handle_l2_attribute): Update.
12237 * config/mep/mep.c (mep_unique_section): Update.
12238 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12240 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12241 (h8300_handle_tiny_data_attribute): Update.
12242 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12243 (m32r_in_small_data_p): Update.
12244 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12245 * config/i386/i386.c (ix86_in_large_data_p): Update.
12246 * config/i386/winnt.c (i386_pe_unique_section): Update.
12247 * config/darwin.c (darwin_function_section): Update.
12248 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12249 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12250 (new_emutls_decl): Update.
12251 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12252 input_varpool_node): Update.
12253 (ead_string_cst): Turn to ...
12254 (read_string): ... this one.
12255 * dwarf2out.c (secname_for_decl): Update.
12256 * asan.c (asan_protect_global): Update.
12258 2014-06-11 DJ Delorie <dj@redhat.com>
12260 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12262 * config/rx/rx.c (rx_option_override): Likewise.
12263 (rx_align_for_label): Likewise.
12265 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12267 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12269 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12272 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12274 * common.md: New file.
12275 * doc/md.texi: Update description of generic, machine-independent
12277 * config/s390/constraints.md (e): Delete.
12278 * Makefile.in (md_file): Include common.md.
12279 * config/m32c/t-m32c (md_file): Likewise.
12280 * genpreds.c (general_mem): New array.
12281 (generic_constraint_letters): Remove constraints now defined by
12283 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12284 Allow the first character to be '<' or '>' as well.
12285 * genoutput.c (general_mem): New array.
12286 (indep_constraints): Remove constraints now defined by common.md.
12287 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12288 Remove special handling of 'm'.
12289 * ira-costs.c (record_reg_classes): Remove special handling of
12290 constraints now defined by common.md.
12291 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12292 * ira-lives.c (single_reg_class): Likewise.
12293 (ira_implicitly_set_insn_hard_regs): Likewise.
12294 * lra-constraints.c (reg_class_from_constraints): Likewise.
12295 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12296 * postreload.c (reload_cse_simplify_operands): Likewise.
12297 * reload.c (push_secondary_reload, scratch_reload_class)
12298 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12299 * reload1.c (maybe_fix_stack_asms): Likewise.
12300 * targhooks.c (default_secondary_reload): Likewise.
12301 * stmt.c (parse_output_constraint): Likewise.
12302 * recog.c (preprocess_constraints): Likewise.
12303 (constrain_operands, peep2_find_free_register): Likewise.
12304 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12305 must be handled specially.
12307 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12309 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12310 * genpreds.c (have_const_dbl_constraints): Delete.
12311 (add_constraint): Don't set it.
12312 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12313 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12314 constraints using the lookup_constraint logic.
12315 * ira-lives.c (single_reg_class): Likewise.
12316 * ira.c (ira_setup_alts): Likewise.
12317 * lra-constraints.c (process_alt_operands): Likewise.
12318 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12319 * reload.c (find_reloads): Likewise.
12321 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12323 * genpreds.c (const_int_start, const_int_end): New variables.
12324 (choose_enum_order): Output CONST_INT constraints before memory
12326 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12328 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12329 * ira.c (ira_setup_alts): Likewise.
12330 * lra-constraints.c (process_alt_operands): Likewise.
12331 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12332 * reload.c (find_reloads): Likewise.
12334 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12336 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12337 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12338 * recog.c (preprocess_constraints): Update accordingly.
12340 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12342 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12343 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12344 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12345 * genpreds.c (print_type_tree): New function.
12346 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12347 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12348 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12349 Write out enum constraint_type and get_constraint_type.
12350 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12351 constraint_num rather than a constraint string.
12352 (satisfies_address_constraint_p): Likewise.
12353 (reg_class_from_constraints): Avoid old constraint macros.
12354 (process_alt_operands, process_address_1): Likewise.
12355 (curr_insn_transform): Likewise.
12356 * ira-costs.c (record_reg_classes): Likewise.
12357 (record_operand_costs): Likewise.
12358 * ira-lives.c (single_reg_class): Likewise.
12359 (ira_implicitly_set_insn_hard_regs): Likewise.
12360 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12361 * postreload.c (reload_cse_simplify_operands): Likewise.
12362 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12363 (constrain_operands, peep2_find_free_register): Likewise.
12364 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12365 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12366 * reload1.c (maybe_fix_stack_asms): Likewise.
12367 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12368 * targhooks.c (default_secondary_reload): Likewise.
12369 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12370 to EXTRA_CONSTRAINT_STR.
12371 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12373 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12375 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12376 (write_constraint_satisfied_p_array): ...this new function.
12377 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12379 (write_insn_preds_c): Update accordingly.
12381 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12383 * genpreds.c (write_lookup_constraint): Rename to...
12384 (write_lookup_constraint_1): ...this.
12385 (write_lookup_constraint_array): New function.
12386 (write_tm_preds_h): Define lookup_constraint as an inline function
12387 that uses write_lookup_constraint_array where possible.
12388 (write_insn_preds_c): Update for the changes above.
12390 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12392 * doc/md.texi (regclass_for_constraint): Rename to...
12393 (reg_class_for_constraint): ...this.
12394 * genpreds.c (num_constraints, enum_order, register_start)
12395 (register_end, satisfied_start, memory_start, memory_end)
12396 (address_start, address_end): New variables.
12397 (add_constraint): Count the number of constraints.
12398 (choose_enum_order): New function.
12399 (write_enum_constraint_num): Iterate over enum_order.
12400 (write_regclass_for_constraint): Rename to...
12401 (write_reg_class_for_constraint_1): ...this and update output
12403 (write_constraint_satisfied_p): Rename to...
12404 (write_constraint_satisfied_p_1): ...this and update output
12405 accordingly. Do nothing if all extra constraints are register
12407 (write_insn_extra_memory_constraint): Delete.
12408 (write_insn_extra_address_constraint): Delete.
12409 (write_range_function): New function.
12410 (write_tm_preds_h): Define constraint_satisfied_p and
12411 reg_class_for_constraint as inline functions that do a range check
12412 before calling the out-of-line function. Use write_range_function
12413 to implement insn_extra_{register,memory,address}_constraint,
12414 the first of which is new.
12415 (write_insn_preds_c): Update after above changes to write_* functions.
12416 (main): Call choose_enum_order.
12418 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12420 PR tree-optimization/61306
12421 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12422 expression instead of its size.
12423 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12424 false to prevent optimization when the result is unpredictable due to
12425 arithmetic right shift of signed type with highest byte is set.
12426 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12427 (init_symbolic_number): Likewise.
12428 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12429 when the result is unpredictable due to sign extension.
12431 2014-06-11 Terry Guo <terry.guo@arm.com>
12433 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12434 (*thumb1_addsi3): Ditto.
12435 (*thumb_subdi3): Ditto.
12436 (thumb1_subsi3_insn): Ditto.
12437 (*thumb_mulsi3): Ditto.
12438 (*thumb_mulsi3_v6): Ditto.
12439 (*thumb1_andsi3_insn): Ditto.
12440 (thumb1_bicsi3): Ditto.
12441 (*thumb1_iorsi3_insn): Ditto.
12442 (*thumb1_xorsi3_insn): Ditto.
12443 (*thumb1_ashlsi3): Ditto.
12444 (*thumb1_ashrsi3): Ditto.
12445 (*thumb1_lshrsi3): Ditto.
12446 (*thumb1_rotrsi3): Ditto.
12447 (*thumb1_negdi2): Ditto.
12448 (*thumb1_negsi2): Ditto.
12449 (*thumb1_abssi2): Ditto.
12450 (*thumb1_neg_abssi2): Ditto.
12451 (*thumb1_one_cmplsi2): Ditto.
12452 (*thumb1_zero_extendhisi2): Ditto.
12453 (*thumb1_zero_extendqisi2): Ditto.
12454 (*thumb1_zero_extendqisi2_v6): Ditto.
12455 (thumb1_extendhisi2): Ditto.
12456 (thumb1_extendqisi2): Ditto.
12457 (*thumb1_movdi_insn): Ditto.
12458 (*thumb1_movsi_insn): Ditto.
12459 (*thumb1_movhi_insn): Ditto.
12460 (thumb_movhi_clobber): Ditto.
12461 (*thumb1_movqi_insn): Ditto.
12462 (*thumb1_movhf): Ditto.
12463 (*thumb1_movsf_insn): Ditto.
12464 (*thumb_movdf_insn): Ditto.
12465 (movmem12b): Ditto.
12467 (cbranchqi4): Ditto.
12468 (cbranchsi4_insn): Ditto.
12469 (cbranchsi4_scratch): Ditto.
12470 (*negated_cbranchsi4): Ditto.
12471 (*tbit_cbranch): Ditto.
12472 (*tlobits_cbranch): Ditto.
12473 (*tstsi3_cbranch): Ditto.
12474 (*cbranchne_decr1): Ditto.
12475 (*addsi3_cbranch): Ditto.
12476 (*addsi3_cbranch_scratch): Ditto.
12477 (*thumb_cmpdi_zero): Ditto.
12478 (cstoresi_eq0_thumb1): Ditto.
12479 (cstoresi_ne0_thumb1): Ditto.
12480 (*cstoresi_eq0_thumb1_insn): Ditto.
12481 (*cstoresi_ne0_thumb1_insn): Ditto.
12482 (cstoresi_nltu_thumb1): Ditto.
12483 (cstoresi_ltu_thumb1): Ditto.
12484 (thumb1_addsi3_addgeu): Ditto.
12485 (*thumb_jump): Ditto.
12486 (*call_reg_thumb1_v5): Ditto.
12487 (*call_reg_thumb1): Ditto.
12488 (*call_value_reg_thumb1_v5): Ditto.
12489 (*call_value_reg_thumb1): Ditto.
12490 (*call_insn): Ditto.
12491 (*call_value_insn): Ditto.
12492 (thumb1_casesi_internal_pic): Ditto.
12493 (thumb1_casesi_dispatch): Ditto.
12494 (*thumb1_indirect_jump): Ditto.
12495 (prologue_thumb1_interwork): Ditto.
12496 (*epilogue_insns): Ditto.
12497 (consttable_1): Ditto.
12498 (consttable_2): Ditto.
12499 (tablejump): Ditto.
12500 (*thumb1_tablejump): Ditto.
12501 (thumb_eh_return): Ditto.
12502 (define_peephole2): Two of them are thumb1 only and got moved into
12503 new file thumb1.md.
12504 (define_split): Six of them are thumb1 only and got moved into new
12506 * config/arm/thumb1.md: New file comprised of above thumb1 only
12509 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12511 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12512 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12514 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12515 (aarch64_crc_builtin_datum): New struct.
12516 (aarch64_crc_builtin_data): New.
12517 (aarch64_init_crc32_builtins): New function.
12518 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12519 (aarch64_crc32_expand_builtin): New.
12520 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12521 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12522 __ARM_FEATURE_CRC32 when appropriate.
12523 (TARGET_CRC32): Define.
12524 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12525 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12526 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12527 (aarch64_<crc_variant>): New pattern.
12528 * config/aarch64/arm_acle.h: New file.
12529 * config/aarch64/iterators.md (CRC): New int iterator.
12530 (crc_variant, crc_mode): New int attributes.
12531 * doc/aarch64-acle-intrinsics.texi: New file.
12532 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12533 Include aarch64-acle-intrinsics.texi.
12535 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12537 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12538 check for stores group of length 3.
12539 (vect_permute_store_chain): New permutations for stores group of
12541 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12542 of vec_perm_shuffle for the new permutations.
12544 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12546 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12547 table rewriting temporarily on targets not supporting ONE_ONLY.
12549 2014-06-11 Richard Biener <rguenther@suse.de>
12551 PR middle-end/61437
12553 2014-06-04 Richard Biener <rguenther@suse.de>
12555 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12556 TREE_PUBLIC and DECL_EXTERNAL decls.
12558 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12560 * varasm.c (set_implicit_section): New function.
12561 (resolve_unique_section): Use it to set implicit section
12563 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12564 (default_function_section): Likewise.
12565 (decl_binds_to_current_def_p): Constify argument.
12566 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12567 * asan.c (asan_protect_global): Use
12568 symtab_get_node (decl)->implicit_section.
12569 * symtab.c (dump_symtab_base): Dump implicit sections.
12570 (verify_symtab_base): Verify sanity of sectoins and comdats.
12571 (symtab_resolve_alias): Alias share the section of its target.
12572 (set_section_1): New function.
12573 (symtab_node::set_section): Move here, recurse to aliases.
12574 (verify_symtab): Check for duplicated symtab lists.
12575 * tree-core.h (implicit_section_name_p): Remove.
12576 * tree-vect-data-refs.c: Include varasm.h.
12577 (vect_can_force_dr_alignment_p): Fix conditional on when
12578 decl bints to current definition; use
12579 symtab_get_node (decl)->implicit_section.
12580 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12581 * cgraph.h (struct symtab_node): Add implicit_section.
12582 (set_section): Rename to ...
12583 (set_section_for_node): ... this one.
12584 (set_section): Declare.
12585 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12586 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12587 input_overwrite_node, input_varpool_node): Stream implicit_section.
12588 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12589 removal; it will fail in LTO.
12591 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12593 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12594 Change second alternative type to f_mcr.
12595 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12596 and 12th alternatives' types to f_mcr and f_mrc.
12597 (*movdi_aarch64): Same for 12th and 13th alternatives.
12598 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12599 (aarch64_movtilow_tilow): Change type to fmov.
12601 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12603 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12604 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12606 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12608 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12610 (aarch64_sqrdmulh_lane<mode>): Likewise.
12611 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12612 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12613 (aarch64_sqdmulh_laneq<mode>): New expander.
12614 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12615 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12616 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12617 (aarch64_sqdmulh_lane<mode>): New expander.
12618 (aarch64_sqrdmulh_lane<mode>): Likewise.
12619 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12620 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12621 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12622 (aarch64_sqdmlal_laneq<mode>): Likewise.
12623 (aarch64_sqdmlsl_lane<mode>): Likewise.
12624 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12625 (aarch64_sqdmlal2_lane<mode>): Likewise.
12626 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12627 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12628 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12629 (aarch64_sqdmull_lane<mode>): Likewise.
12630 (aarch64_sqdmull_laneq<mode>): Likewise.
12631 (aarch64_sqdmull2_lane<mode>): Likewise.
12632 (aarch64_sqdmull2_laneq<mode>): Likewise.
12634 2014-06-10 Richard Biener <rguenther@suse.de>
12636 PR tree-optimization/61438
12637 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12638 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12639 insertion of IVs if running PRE.
12640 (eliminate): Adjust.
12641 (pass_pre::execute): Likewise.
12642 (pass_fre::execute): Likewise.
12644 2014-06-10 Richard Biener <rguenther@suse.de>
12646 PR middle-end/61456
12647 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12648 Do not use the main variant for the type comparison.
12649 (ncr_compar): Likewise.
12650 (nonoverlapping_component_refs_p): Likewise.
12652 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12654 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12655 REG_CFA_RESTORE mode.
12657 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12659 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12660 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12661 expand_vec_perm_pblendv.
12663 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12665 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12667 Simplify description of __crc32d and __crc32cd intrinsics.
12668 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12671 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12674 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12675 * config.in: Regenerate.
12676 * configure: Likewise.
12678 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12680 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12682 (intersect_static_var_sets): Remove.
12683 (propagate): Do not prune local statics.
12685 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12688 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12689 Set lastprivate_firstprivate even if omp_private_outer_ref
12690 langhook returns true.
12691 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12692 langhook, call unshare_expr on new_var and call
12693 build_outer_var_ref to get the last argument.
12695 2014-06-10 Marek Polacek <polacek@redhat.com>
12698 * doc/extend.texi: Add cindex for transparent_union.
12700 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12702 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12703 init_symbolic_number ().
12705 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12707 PR middle-end/61141
12708 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12709 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12710 (verify_rtl_sharing): Likewise.
12712 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12715 * tree.c (build_qualified_type): Use a canonical type for
12718 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12720 * config/arm/arm-modes.def: Remove XFmode.
12722 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12725 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12726 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12727 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12728 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12729 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12730 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12731 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12732 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12733 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12735 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12737 * tree-core.h (tree_decl_with_vis): Remove section_name.
12739 2014-06-09 Kito Cheng <kito@0xlab.org>
12741 * ira.c (ira): Don't call init_caller_save if LRA enabled
12742 since LRA use its own infrastructure to handle that.
12744 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12746 * symtab.c (dump_symtab_base): Update dumping.
12747 (symtab_make_decl_local): Clear only DECL_COMDAT.
12748 * tree-vect-data-refs.c (Check that variable is static before
12749 tampering with sections.
12750 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12751 (cgraph_create_virtual_clone): Likewise.
12752 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12753 (decl_section_name, set_decl_section_name): New accessors.
12754 (find_decls_types_r): Do not walk section name
12755 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12756 (decl_comdat_group, decl_comdat_group_id): Constify.
12757 (decl_section_name, set_decl_section_name): Update.
12758 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12759 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12760 (cgraph_make_node_local_1): Clear section and comdat group.
12761 * cgraph.h (set_comdat_group): Sanity check.
12762 (get_section, set_section): New.
12763 * ipa-comdats.c (ipa_comdats): Use get_section.
12764 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12765 * lto-streamer-out.c: Do not follow section names.
12766 * c-family/c-common.c (handle_section_attribute): Update.
12767 * lto-cgraph.c (lto_output_node): Output section.
12768 (lto_output_varpool_node): Likewise.
12769 (read_comdat_group): Rename to ...
12770 (read_identifier): ... this one.
12771 (read_string_cst): New function.
12772 (input_node, input_varpool_node): Input section names.
12773 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12774 (new_emutls_decl): Update.
12775 (secname_for_decl): Check section names only of static vars.
12776 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12777 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12778 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12779 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12780 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12781 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12782 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12783 * config/v850/v850.c (v850_insert_attributes): Likewise.
12784 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12786 (h8300_handle_tiny_data_attribute): Likewise.
12787 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12788 (bfin_handle_l2_attribute): Likewise.
12790 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12792 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12793 remove static initializer.
12795 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12797 * varasm.c (use_blocks_for_decl_p): Check symbol table
12798 instead of alias attribute.
12799 (place_block_symbol): Recurse on aliases.
12801 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12803 * ipa-visibility.c: Include varasm.h
12804 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12806 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12808 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12809 outputting aliases.
12811 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12813 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12814 from test_insn into GGC space escape via SET_SRC.
12816 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12818 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12819 call statement, if any.
12820 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12821 statements, if any. Tidy up.
12823 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12826 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12827 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12828 handles swapping the two 64-bit double words on little endian
12829 systems. Include V1TImode and optionally TImode in VSX_LE so that
12830 these types are properly swapped. Change all of the insns and
12831 splits that do the 64-bit swaps to use VSX_LE.
12832 (vsx_le_perm_load_<mode>): Likewise.
12833 (vsx_le_perm_store_<mode>): Likewise.
12834 (splitters for little endian memory operations): Likewise.
12835 (vsx_xxpermdi2_le_<mode>): Likewise.
12836 (vsx_lxvd2x2_le_<mode>): Likewise.
12837 (vsx_stxvd2x2_le_<mode>): Likewise.
12839 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12842 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12843 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12844 and corresponding splitters. Zero extend general register
12845 or memory input operand to XMM temporary. Enable for
12846 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12847 (floatunssi<mode>2): Update expander predicate.
12849 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12851 PR rtl-optimization/61325
12852 * lra-constraints.c (process_address_1): Check scale equal to one
12853 to prevent transformation: base + scale * index => base + new_reg.
12855 2014-06-06 Richard Biener <rguenther@suse.de>
12857 PR tree-optimization/59299
12858 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12860 (nearest_common_dominator_of_uses): Likewise.
12861 (statement_sink_location): Adjust. Support sinking loads.
12863 2014-06-06 Martin Jambor <mjambor@suse.cz>
12865 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12866 (build_agg_jump_func_from_list): Likewise.
12867 (determine_known_aggregate_parts): Renamed to
12868 determine_locally_known_aggregate_parts. Moved some functionality
12869 to the two functions above, removed bound checks.
12871 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12873 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12874 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12875 (aarch64_progress_pointer): Likewise.
12876 (aarch64_copy_one_part_and_move_pointers): Likewise.
12877 (aarch64_expand_movmen): Likewise.
12878 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12879 * config/aarch64/aarch64.md (movmem<mode>): New.
12881 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12883 * targhooks.c (default_add_stmt_cost): Call target specific
12884 hook instead of default one.
12886 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
12888 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
12889 endianness instead of host endianness.
12890 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
12893 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12896 * function.c (instantiate_decls): Process the saved static chain.
12897 (expand_function_start): If not optimizing, save the static chain
12899 * tree-nested.c (convert_all_function_calls): Always create the static
12900 chain for nested functions if not optimizing.
12902 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12904 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
12906 2014-06-06 Richard Biener <rguenther@suse.de>
12908 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
12909 (construct_init_block): Likewise.
12910 (construct_exit_block): Likewise.
12911 (pass_expand::execute): Likewise.
12912 * graphite.c (graphite_transforms): Replace check for current_loops
12913 with a check for > 1 loops.
12914 (pass_graphite_transforms::execute): Adjust.
12915 * ipa-split.c (split_function): Remove check for current_loops.
12916 * omp-low.c (expand_parallel_call): Likewise.
12917 (expand_omp_for_init_counts): Likewise.
12918 (extract_omp_for_update_vars): Likewise.
12919 (expand_omp_for_generic): Likewise.
12920 (expand_omp_sections): Likewise.
12921 (expand_omp_target): Likewise.
12922 * tracer.c (tail_duplicate): Likewise.
12923 (pass_tracer::execute): Likewise.
12924 * trans-mem.c (expand_transaction): Likewise.
12925 * tree-complex.c (expand_complex_div_wide): Likewise.
12926 * tree-eh.c (lower_resx): Likewise.
12927 (cleanup_empty_eh_merge_phis): Likewise.
12928 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
12929 current_loops with a check for > 1 loops.
12930 (pass_predcom::execute): Adjust.
12931 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
12932 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
12933 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
12934 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
12935 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
12936 * tree-switch-conversion.c (process_switch): Likewise.
12937 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
12938 * tree-vrp.c (vrp_visit_phi_node): Likewise.
12939 (execute_vrp): Likewise.
12940 * ubsan.c (ubsan_expand_null_ifn): Likewise.
12942 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
12944 * rtl.h (insn_location): Declare.
12945 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
12946 with UNKNOWN_LOCATION.
12947 * emit-rtl.c (insn_location): New function.
12948 * final.c (notice_source_line): Check that the instruction has a
12949 location before retrieving it and use insn_location.
12950 * modulo-sched.c (loop_single_full_bb_p): Likewise.
12951 * print-rtl.c (print_rtx): Likewise.
12953 2014-06-06 Richard Biener <rguenther@suse.de>
12955 * passes.def: Move 2nd VRP pass before phi-only-cprop.
12957 2014-06-06 Christian Bruel <christian.bruel@st.com>
12959 PR tree-optimization/43934
12960 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
12963 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
12965 * ira-lives.c (single_reg_class): Add missing break. Explicitly
12966 return NO_REGS for extra address and memory constraints. Handle
12967 operands that match (or are equivalent to something that matches)
12968 extra constant constraints. Ignore other non-register operands.
12970 2014-06-06 Alan Modra <amodra@gmail.com>
12973 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
12974 * doc/tm.texi: Regenerate.
12975 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
12976 Use throughout in place of REG_PARM_STACK_SPACE.
12977 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
12978 "incoming" param. Pass to rs6000_function_parms_need_stack.
12979 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
12980 prototype_p when incoming. Use function decl when incoming
12981 to handle K&R style functions.
12982 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
12983 (INCOMING_REG_PARM_STACK_SPACE): Define.
12985 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12988 * cfgexpand.c (expand_debug_expr): Use address space of nested
12989 TREE_TYPE for ADDR_EXPR and MEM_REF.
12991 2014-06-05 Jeff Law <law@redhat.com>
12993 PR tree-optimization/61289
12994 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
12995 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
12996 looking for those which match LHS. All callers changed.
12997 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
12998 parameters and code which manipulated them. All callers changed.
12999 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13000 and DST_MAP parameters. Simplify invalidation code by just calling
13001 invalidate_equivalences. All callers changed.
13002 (thread_across_edge): Simplify now that we don't need to maintain
13003 the map of equivalences to invalidate.
13005 2014-06-05 Kai Tietz <ktietz@redhat.com>
13006 Richard Henderson <rth@redhat.com>
13009 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13010 checking for !TARGET_X32.
13011 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13012 (sibcall_intern): New define_insn, plus required peepholes.
13013 (sibcall_pop_intern): Likewise.
13014 (sibcall_value_intern): Likewise.
13015 (sibcall_value_pop_intern): Likewise.
13017 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13019 * tree-inline.c (tree_function_versioning): Check DF info existence
13020 before accessing it.
13022 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13024 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13026 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13027 aarch64_frame hard_fp_offset and frame_size.
13028 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13029 frame_size; remove original_frame_size.
13030 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13031 (aarch64_initial_elimination_offset): Remove frame_size and
13032 offset. Use aarch64_frame frame_size.
13034 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13035 Jiong Wang <jiong.wang@arm.com>
13036 Renlin <renlin.li@arm.com>
13038 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13039 initialization of R30 offset. Update offset. Iterate core
13040 regisers upto X30. Remove X29, X30 specific code.
13042 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13043 Jiong Wang <jiong.wang@arm.com>
13045 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13046 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13047 (aarch64_register_saved_on_entry): Adjust test.
13049 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13051 * config/aarch64/aarch64.h (machine_function): Move
13052 saved_varargs_size from here...
13053 (aarch64_frame): ... to here.
13055 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13056 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13057 (aarch64_initial_elimination_offset)
13058 (aarch64_setup_incoming_varargs): Adjust location of
13059 saved_varargs_size.
13061 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13063 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13066 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13067 Prachi Godbole <Prachi.Godbole@imgtec.com>
13069 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13070 mips32r5 entry to use PROCESSOR_P5600.
13071 * config/mips/mips-tables.opt: Regenerate.
13072 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13073 * config/mips/mips.c (mips_fmadd_bypass): New function.
13074 (mips_rtx_cost_data): Add costs for p5600.
13075 (mips_issue_rate): Add support for p5600.
13076 (mips_multipass_dfa_lookahead): Likewise.
13077 * config/mips/mips.h (TUNE_P5600): New define.
13078 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13079 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13080 * config/mips/mips.md: Include p5600.md.
13081 (processor): Add p5600.
13082 * config/mips/p5600.md: New file.
13084 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13086 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13087 * config/i386/predicates.md (palignr_operand): New.
13088 Indicates if permutation is suitable for palignr instruction.
13090 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13092 PR tree-optimization/61319
13093 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13094 stmt belongs to loop.
13096 2014-06-05 Richard Biener <rguenther@suse.de>
13098 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13099 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13100 (lookup_tmp_var): Adjust.
13101 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13103 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13105 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13107 2014-06-05 Marek Polacek <polacek@redhat.com>
13110 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13112 2014-06-04 Tom de Vries <tom@codesourcery.com>
13114 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13117 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13119 PR tree-optimization/61385
13120 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13122 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13124 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13125 changed to use fatal_error.
13126 (main): Ensure lto_wrapper_cleanup is run atexit.
13128 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13130 * lra-constraints.c (valid_address_p): Move earlier in file.
13131 (address_eliminator): New structure.
13132 (satisfies_memory_constraint_p): New function.
13133 (satisfies_address_constraint_p): Likewise.
13134 (process_alt_operands, process_address, curr_insn_transform): Use them.
13136 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13138 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13140 (target_lra_int, default_target_lra_int, this_target_lra_int)
13141 (op_alt_data): Delete.
13142 * lra.h (lra_init): Delete.
13143 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13144 (init_insn_code_data_once): Remove op_alt_data handling.
13145 (finish_insn_code_data_once): Likewise.
13146 (init_op_alt_data): Delete.
13147 (get_static_insn_data): Initialize operand_alternative to null.
13148 (free_insn_recog_data): Cast operand_alternative before freeing it.
13149 (setup_operand_alternative): Take the operand_alternative as
13150 parameter and assume it isn't already cached in the static
13152 (lra_set_insn_recog_data): Update accordingly.
13153 (lra_init): Delete.
13154 * ira.c (ira_init): Don't call lra_init.
13155 * target-globals.h (this_target_lra_int): Declare.
13156 (target_globals): Remove lra_int.
13157 (restore_target_globals): Update accordingly.
13158 * target-globals.c: Don't include lra-int.h.
13159 (default_target_globals, save_target_globals): Remove lra_int.
13161 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13163 * recog.h (operand_alternative): Convert reg_class, reject,
13164 matched and matches into bitfields.
13165 (preprocess_constraints): New overload.
13166 (preprocess_insn_constraints): New function.
13167 (preprocess_constraints): Take the insn as parameter.
13168 (recog_op_alt): Change into a pointer.
13169 (target_recog): Add x_op_alt.
13170 * recog.c (asm_op_alt): New variable.
13171 (recog_op_alt): Change into a pointer.
13172 (preprocess_constraints): New overload, replacing the old function
13173 definition with one that doesn't use global state.
13174 (preprocess_insn_constraints): New function.
13175 (preprocess_constraints): Use them. Take the insn as parameter.
13176 Use asm_op_alt for asms.
13177 (recog_init): Free existing x_op_alt entries.
13178 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13180 (make_early_clobber_and_input_conflicts): Likewise.
13181 (process_bb_node_lives): Pass the insn to process_constraints.
13182 * reg-stack.c (check_asm_stack_operands): Likewise.
13183 (subst_asm_stack_regs): Likewise.
13184 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13185 * regrename.c (build_def_use): Likewise.
13186 * sched-deps.c (sched_analyze_insn): Likewise.
13187 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13188 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13189 (note_invalid_constants): Likewise.
13190 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13191 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13194 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13196 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13197 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13199 (make_early_clobber_and_input_conflicts): Likewise.
13200 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13202 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13204 * recog.h (alternative_class): New function.
13205 (which_op_alt): Return a const recog_op_alt.
13206 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13207 (subst_asm_stack_regs): Likewise.
13208 * config/arm/arm.c (note_invalid_constants): Likewise.
13209 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13210 the operand_alternative; use alternative class instead.
13211 * sel-sched.c (get_reg_class): Likewise.
13212 * regrename.c (build_def_use): Likewise.
13213 (hide_operands, restore_operands, record_out_operands): Update type
13216 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13218 * recog.h (recog_op_alt): Convert to a flat array.
13219 (which_op_alt): New function.
13220 * recog.c (recog_op_alt): Convert to a flat array.
13221 (preprocess_constraints): Update accordingly, grouping all
13222 operands of the same alternative together, rather than the
13224 * ira-lives.c (check_and_make_def_conflict): Likewise.
13225 (make_early_clobber_and_input_conflicts): Likewise.
13226 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13227 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13228 (subst_asm_stack_regs): Likewise.
13229 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13230 * regrename.c (hide_operands, record_out_operands): Likewise.
13231 (build_def_use): Likewise.
13232 * sel-sched.c (get_reg_class): Likewise.
13233 * config/arm/arm.c (note_invalid_constants): Likewise.
13235 2014-06-04 Jason Merrill <jason@redhat.com>
13239 * gimplify.c (gimplify_arg): Non-static.
13240 * gimplify.h: Declare it.
13242 2014-06-04 Richard Biener <rguenther@suse.de>
13244 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13245 TREE_PUBLIC and DECL_EXTERNAL decls.
13247 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13249 * regcprop.c (copyprop_hardreg_forward_1): Account for
13250 HARD_REGNO_CALL_PART_CLOBBERED.
13252 2014-06-04 Richard Biener <rguenther@suse.de>
13254 * configure.ac: Check whether the underlying type of int64_t
13255 is long or long long.
13256 * configure: Regenerate.
13257 * config.in: Likewise.
13258 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13259 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13261 2014-06-04 Richard Biener <rguenther@suse.de>
13263 PR tree-optimization/60098
13264 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13266 (dse_optimize_stmt): Simplify, now that we found a kill
13269 2014-06-04 Richard Biener <rguenther@suse.de>
13271 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13272 of accesses with non-invariant address.
13274 2014-06-04 Martin Liska <mliska@suse.cz>
13276 * cgraph.h (cgraph_make_wrapper): New function introduced.
13277 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13278 * ipa-inline.h (inline_analyze_function): The function is global.
13279 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13281 2014-06-04 Martin Liska <mliska@suse.cz>
13283 * tree.h (private_lookup_attribute_starting): New function.
13284 (lookup_attribute_starting): Likewise.
13285 * tree.c (private_lookup_attribute_starting): Likewise.
13287 2014-06-04 Martin Liska <mliska@suse.cz>
13289 * cgraph.h (expand_thunk): New argument added.
13290 (address_taken_from_non_vtable_p): New global function.
13291 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13292 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13293 * cgraphunit.c (analyze_function): Likewise.
13294 (assemble_thunks_and_aliases): Argument added to call.
13295 (expand_thunk): New argument forces to produce GIMPLE thunk.
13297 2014-06-04 Martin Liska <mliska@suse.cz>
13299 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13300 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13301 * profile.c (branch_prob): Likewise.
13303 2014-06-04 Martin Jambor <mjambor@suse.cz>
13306 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13307 handler for switch on an ipa_ref_use enum.
13308 * ipa-reference.c (analyze_function): Likewise.
13310 2014-06-04 Kai Tietz <ktietz@redhat.com>
13312 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13313 from old call-instruction.
13315 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13317 * config/aarch64/aarch64.c (aarch64_classify_address)
13318 (aarch64_legitimize_reload_address): Support full addressing modes
13320 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13321 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13323 2014-06-03 Andrew Pinski <apinski@cavium.com>
13325 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13328 2014-06-03 Andrew Pinski <apinski@cavium.com>
13330 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13331 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13333 2014-06-03 Kai Tietz <ktietz@redhat.com>
13335 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13338 2014-06-03 Dehao Chen <dehao@google.com>
13340 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13343 2014-06-03 Marek Polacek <polacek@redhat.com>
13346 * doc/invoke.texi: Document -Wswitch-bool.
13347 * function.c (stack_protect_epilogue): Cast controlling expression of
13349 * gengtype.c (walk_type): Generate switch expression with its
13350 controlling expression cast to int.
13352 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13354 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13356 * config/avr/avr-tables.opt: Regenerate.
13357 * config/avr/t-multilib: Regenerate.
13358 * doc/avr-mmcu.texi: Regenerate.
13360 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13361 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13363 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13364 (ata6617c, ata664251): Add new avr35 devices.
13365 (ata6612c): Add new avr4 device.
13366 (ata6613c, ata6614q): Add new avr5 devices.
13367 * config/avr/avr-tables.opt: Regenerate.
13368 * config/avr/t-multilib: Regenerate.
13369 * doc/avr-mmcu.texi: Regenerate.
13371 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13373 * gcc/config/aarch64/aarch64-builtins.c
13374 (aarch64_types_binop_ssu_qualifiers): New static data.
13375 (TYPES_BINOP_SSU): Define.
13376 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13377 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13378 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13379 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13380 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13381 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13382 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13383 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13384 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13385 suffix to builtin function name, remove cast.
13386 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13387 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13388 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13390 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13392 * gcc/config/aarch64/aarch64-builtins.c
13393 (aarch64_types_binop_uus_qualifiers,
13394 aarch64_types_shift_to_unsigned_qualifiers,
13395 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13396 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13397 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13398 sqshlu_n, uqshl_n): Update qualifiers.
13399 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13400 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13401 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13402 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13403 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13404 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13405 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13406 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13407 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13408 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13409 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13410 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13411 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13412 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13413 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13414 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13415 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13416 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13417 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13418 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13419 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13420 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13421 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13422 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13423 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13424 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13425 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13427 2014-06-03 Teresa Johnson <tejohnson@google.com>
13429 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13431 2014-06-02 Jason Merrill <jason@redhat.com>
13434 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13436 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13438 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13441 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13443 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13445 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13446 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13447 * config/aarch64/iterators.md (REVERSE): New iterator.
13448 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13449 (rev_op): New int_attribute.
13450 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13451 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13452 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13453 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13454 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13455 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13456 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13457 Replace temporary __asm__ with __builtin_shuffle.
13459 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13461 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13463 * config/mips/mips-tables.opt: Regenerate.
13464 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13465 to use mips_isa_rev rather than ISA_MIPS32R2.
13466 * config/mips/mips.h (ISA_MIPS32R3): New define.
13467 (ISA_MIPS32R5): New define.
13468 (ISA_MIPS64R3): New define.
13469 (ISA_MIPS64R5): New define.
13470 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13471 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13472 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13474 (MIPS_ISA_SYNCI_SPEC): Likewise.
13475 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13476 (LINK_SPEC): Added mips32r3 and mips32r5.
13477 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13478 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13479 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13480 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13481 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13482 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13483 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13485 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13487 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13489 * config/mips/mips.opt (mxpa): New option.
13490 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13493 2014-06-03 Martin Jambor <mjambor@suse.cz>
13496 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13499 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13501 PR tree-optimization/61328
13502 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13503 initialization from find_bswap_or_nop_1.
13504 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13505 in source_expr2 before using the size value the function sets. Also
13506 make use of init_symbolic_number () in both the old place and
13507 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13508 doing recursion in the GIMPLE_BINARY_RHS case.
13510 2014-06-03 Richard Biener <rguenther@suse.de>
13512 PR tree-optimization/61383
13513 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13516 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13518 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13519 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13520 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13521 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13523 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13524 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13525 * system.h: ...here and make it unconditional.
13526 * target.def (conditional_register_usage): Mention
13527 define_register_constraint instead of old-style constraint macros.
13528 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13529 * doc/tm.texi: Regenerate.
13530 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13531 protected by !USE_MD_CONSTRAINTS.
13532 * config/frv/frv.md: Remove quote from old version of documentation.
13533 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13534 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13535 CONST_DOUBLE_OK_FOR_LETTER.
13536 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13538 2014-06-02 Andrew Pinski <apinski@cavium.com>
13540 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13541 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13542 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13543 file whose name depends on -mabi= and -mbig-endian.
13544 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13545 Handle LP64 better and handle ilp32 too.
13546 (MULTILIB_OPTIONS): Delete.
13547 (MULTILIB_DIRNAMES): Delete.
13549 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13551 * expr.h: Remove prototypes of functions defined in builtins.c.
13552 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13553 Remove prototypes of functions defined in builtins.c.
13554 * builtins.h: Update prototype list to include all exported functions.
13555 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13556 no_c99_libc_has_function): Move to targhooks.c
13557 (build_string_literal, build_call_expr_loc_array,
13558 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13560 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13561 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13562 no_c99_libc_has_function): Relocate from builtins.c.
13563 * tree.c: Include builtins.h.
13564 (build_call_expr_loc_array, build_call_expr_loc_vec,
13565 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13567 * fold-const.h (fold_fma): Move prototype to builtins.h.
13568 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13569 * asan.c: Include builtins.h.
13570 * cfgexpand.c: Likewise.
13571 * convert.c: Likewise.
13572 * emit-rtl.c: Likewise.
13573 * except.c: Likewise.
13574 * expr.c: Likewise.
13575 * fold-const.c: Likewise.
13576 * gimple-fold.c: Likewise.
13577 * gimple-ssa-strength-reduction.c: Likewise.
13578 * gimplify.c: Likewise.
13579 * ipa-inline.c: Likewise.
13580 * ipa-prop.c: Likewise.
13581 * lto-streamer-out.c: Likewise.
13582 * stmt.c: Likewise.
13583 * tree-inline.c: Likewise.
13584 * tree-object-size.c: Likewise.
13585 * tree-sra.c: Likewise.
13586 * tree-ssa-ccp.c: Likewise.
13587 * tree-ssa-forwprop.c: Likewise.
13588 * tree-ssa-loop-ivcanon.c: Likewise.
13589 * tree-ssa-loop-ivopts.c: Likewise.
13590 * tree-ssa-math-opts.c: Likewise.
13591 * tree-ssa-reassoc.c: Likewise.
13592 * tree-ssa-threadedge.c: Likewise.
13593 * tree-streamer-in.c: Likewise.
13594 * tree-vect-data-refs.c: Likewise.
13595 * tree-vect-patterns.c: Likewise.
13596 * tree-vect-stmts.c: Likewise.
13597 * config/aarch64/aarch64.c: Likewise.
13598 * config/alpha/alpha.c: Likewise.
13599 * config/arc/arc.c: Likewise.
13600 * config/arm/arm.c: Likewise.
13601 * config/avr/avr.c: Likewise.
13602 * config/bfin/bfin.c: Likewise.
13603 * config/c6x/c6x.c: Likewise.
13604 * config/cr16/cr16.c: Likewise.
13605 * config/cris/cris.c: Likewise.
13606 * config/epiphany/epiphany.c: Likewise.
13607 * config/fr30/fr30.c: Likewise.
13608 * config/frv/frv.c: Likewise.
13609 * config/h8300/h8300.c: Likewise.
13610 * config/i386/i386.c: Likewise.
13611 * config/i386/winnt.c: Likewise.
13612 * config/ia64/ia64.c: Likewise.
13613 * config/iq2000/iq2000.c: Likewise.
13614 * config/lm32/lm32.c: Likewise.
13615 * config/m32c/m32c.c: Likewise.
13616 * config/m32r/m32r.c: Likewise.
13617 * config/m68k/m68k.c: Likewise.
13618 * config/mcore/mcore.c: Likewise.
13619 * config/mep/mep.c: Likewise.
13620 * config/microblaze/microblaze.c: Likewise.
13621 * config/mips/mips.c: Likewise.
13622 * config/mmix/mmix.c: Likewise.
13623 * config/mn10300/mn10300.c: Likewise.
13624 * config/moxie/moxie.c: Likewise.
13625 * config/msp430/msp430.c: Likewise.
13626 * config/nds32/nds32.c: Likewise.
13627 * config/pa/pa.c: Likewise.
13628 * config/pdp11/pdp11.c: Likewise.
13629 * config/picochip/picochip.c: Likewise.
13630 * config/rl78/rl78.c: Likewise.
13631 * config/rs6000/rs6000.c: Likewise.
13632 * config/rx/rx.c: Likewise.
13633 * config/s390/s390.c: Likewise.
13634 * config/score/score.c: Likewise.
13635 * config/sh/sh.c: Likewise.
13636 * config/sparc/sparc.c: Likewise.
13637 * config/spu/spu.c: Likewise.
13638 * config/stormy16/stormy16.c: Likewise.
13639 * config/tilegx/tilegx.c: Likewise.
13640 * config/tilepro/tilepro.c: Likewise.
13641 * config/v850/v850.c: Likewise.
13642 * config/vax/vax.c: Likewise.
13643 * config/xtensa/xtensa.c: Likewise.
13645 2014-06-02 Jeff Law <law@redhat.com>
13647 PR rtl-optimization/61094
13648 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13649 was marked as do_no_reextend. If a copy is needed to eliminate
13650 an extension, then mark it as do_not_reextend.
13652 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13654 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13656 2014-06-02 Richard Henderson <rth@redhat.com>
13659 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13660 addresses inside asms. Use output_operand_lossage instead of
13663 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13666 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13667 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13669 2014-06-02 Tom de Vries <tom@codesourcery.com>
13671 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13672 case that x has VOIDmode.
13674 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13676 * varasm.c (copy_constant): Delete function.
13677 (build_constant_desc): Don't call it.
13679 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13682 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13683 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13684 with immediate_operand.
13686 2014-06-02 Andreas Schwab <schwab@suse.de>
13688 * config/ia64/ia64.c
13689 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13690 pending_data_specs first.
13692 2014-06-02 Richard Biener <rguenther@suse.de>
13694 PR tree-optimization/61378
13695 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13696 valueized_anything.
13698 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13700 * config/i386/constraints.md (Bw): Rename from 'w'.
13701 (Bz): Rename from 'z'.
13702 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13704 2014-06-01 Kai Tietz <ktietz@redhat.com>
13707 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13708 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13709 instead of m constraint.
13711 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13713 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13714 a separate alternative where the scratch operand 2 is marked as
13717 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13719 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13720 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13721 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13722 and __builtins_arm_get_fpscr.
13723 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13724 __builtins_arm_get_fpscr.
13725 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13726 __builtins_arm_ldfpscr.
13727 (arm_atomic_assign_expand_fenv): New function.
13728 * config/arm/vfp.md (set_fpscr): New pattern.
13729 (get_fpscr) : Likewise.
13730 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13732 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13733 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13735 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13737 * asan.c (report_error_func): Add SLOW_P argument, use
13738 BUILT_IN_ASAN_*_N if set.
13739 (build_check_stmt): Likewise.
13740 (instrument_derefs): If T has insufficient alignment,
13741 force same handling as for odd sizes.
13743 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13744 BUILT_IN_ASAN_REPORT_STORE_N): New.
13745 * asan.c (struct asan_mem_ref): Change access_size type to
13747 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13748 update_mem_ref_hash_table): Likewise.
13749 (asan_mem_ref_hasher::hash): Hash in a HWI.
13750 (report_error_func): Change size_in_bytes argument to HWI.
13751 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13753 (build_shadow_mem_access): New function.
13754 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13755 Handle size_in_bytes not power of two or larger than 16.
13756 (instrument_derefs): Don't give up if size_in_bytes is not
13757 power of two or is larger than 16.
13759 2014-05-30 Kai Tietz <ktietz@redhat.com>
13762 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13763 for sibling-tail-calls.
13764 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13766 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13767 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13769 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13771 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13772 * config/avr/avr-tables.opt: Regenerate.
13773 * config/avr/t-multilib: Regenerate.
13774 * doc/avr-mmcu.texi: Regenerate.
13776 2014-05-30 Ian Lance Taylor <iant@google.com>
13778 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13781 2014-05-30 Tom de Vries <tom@codesourcery.com>
13783 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13786 2014-05-30 Tom de Vries <tom@codesourcery.com>
13788 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13789 * lra.c (initialize_lra_reg_info_element): Add init of
13790 actual_call_used_reg_set field.
13791 (lra): Call lra_create_live_ranges before lra_inheritance for
13793 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13795 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13796 instead of call_used_reg_set for -fuse-caller-save.
13797 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13799 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13801 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13803 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13805 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13807 * ira.c (ira_get_dup_out_num): Check for output operands at
13808 the start of the loop. Handle cases where an included alternative
13809 follows an excluded one.
13811 2014-05-29 Mike Stump <mikestump@comcast.net>
13814 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13815 post ld passes when lto is used.
13817 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13819 PR rtl-optimization/61325
13820 * lra-constraints.c (process_address): Rename to process_address_1.
13821 (process_address): New function.
13823 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13825 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13826 TYPES_BINOPV): New static data.
13827 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13829 * config/aarch64/aarch64-simd.md (aarch64_ext,
13830 aarch64_im_lane_boundsi): New patterns.
13831 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13833 (aarch64_evpc_ext): New function.
13835 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13837 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13838 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13839 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13840 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13841 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13843 2014-05-29 Tom de Vries <tom@codesourcery.com>
13845 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13847 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13848 Richard Sandiford <rdsandiford@googlemail.com>
13850 * arm/iterators.md (shiftable_ops): New code iterator.
13851 (t2_binop0, arith_shift_insn): New code attributes.
13852 * arm/predicates.md (shift_nomul_operator): New predicate.
13853 * arm/arm.md (insn_enabled): Delete.
13854 (enabled): Remove insn_enabled test.
13855 (*arith_shiftsi): Delete. Replace with ...
13856 (*<arith_shift_insn>_multsi): ... new pattern.
13857 (*<arith_shift_insn>_shiftsi): ... new pattern.
13858 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13860 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13861 Tom de Vries <tom@codesourcery.com>
13863 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13864 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13866 (mips_split_call): Use POST_CALL_TMP_REG.
13867 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13869 2014-05-29 Tom de Vries <tom@codesourcery.com>
13871 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13872 with #ifdef STACK_REGS.
13874 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13876 * varasm.c (get_variable_section): Walk aliases.
13877 (place_block_symbol): Walk aliases.
13879 2014-05-28 Tom de Vries <tom@codesourcery.com>
13882 2014-05-28 Tom de Vries <tom@codesourcery.com>
13884 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13885 * lra.c (initialize_lra_reg_info_element): Add init of
13886 actual_call_used_reg_set field.
13887 (lra): Call lra_create_live_ranges before lra_inheritance for
13889 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13891 * lra-constraints.c (need_for_call_save_p): Use
13892 actual_call_used_reg_set instead of call_used_reg_set for
13894 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13896 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13898 * doc/md.texi: Document that the % constraint character must
13899 be at the beginning of the string.
13900 * genoutput.c (validate_insn_alternatives): Check that '=',
13901 '+' and '%' only appear at the beginning of a constraint.
13902 * ira.c (commutative_constraint_p): Delete.
13903 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
13904 at the start of the string.
13905 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
13907 * config/arm/neon.md (bicdi3_neon): Likewise.
13908 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
13909 (slt_si, sltu_si): Likewise.
13910 * config/vax/vax.md (sbcdi3): Likewise.
13911 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
13912 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
13913 (mul64): Move '%' to beginning of constraint.
13914 * config/arm/arm.md (*xordi3_insn): Likewise.
13915 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
13916 (xorsi3): Likewise.
13918 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
13920 * doc/md.texi: Document the restrictions on the "enabled" attribute.
13922 2014-05-28 Jason Merrill <jason@redhat.com>
13925 * cgraph.h (symtab_node::get_comdat_group_id): New.
13926 * cgraphunit.c (analyze_functions): Call it.
13927 * symtab.c (dump_symtab_node): Likewise.
13928 * tree.c (decl_comdat_group_id): New.
13929 * tree.h: Declare it.
13930 * lto-streamer-out.c (write_symbol): Use it.
13931 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
13933 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13935 PR bootstrap/PR61146
13936 * wide-int.cc: Do not include longlong.h when compiling with clang.
13938 2014-05-28 Richard Biener <rguenther@suse.de>
13940 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
13941 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
13942 (vrp_visit_assignment_or_call): Print less vertical space.
13943 (vrp_visit_stmt): Likewise.
13944 (vrp_visit_phi_node): Likewise. For a PHI argument with
13945 VR_VARYING range consider recording it as copy.
13947 2014-05-28 Richard Biener <rguenther@suse.de>
13950 2014-05-28 Richard Biener <rguenther@suse.de>
13952 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13954 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
13956 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
13957 sufficiently aligned and an offset is used at the same time.
13958 (expand_expr_real_1): Likewise.
13960 2014-05-28 Richard Biener <rguenther@suse.de>
13962 PR middle-end/61045
13963 * fold-const.c (fold_comparison): When folding
13964 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
13965 the sign of the remaining constant operand stays the same.
13967 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
13969 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13970 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
13971 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
13973 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
13974 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
13975 (m32bit-doubles) Likewise.
13976 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
13977 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
13980 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13982 * configure.ac ($gcc_cv_ld_clearcap): New test.
13983 * configure: Regenerate.
13984 * config.in: Regenerate.
13985 * config/sol2.opt (mclear-hwcap): New option.
13986 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
13987 * config/sol2-clearcap.map: Moved here from
13988 testsuite/gcc.target/i386/clearcap.map.
13989 * config/sol2-clearcapv2.map: Move here from
13990 gcc.target/i386/clearcapv2.map.
13991 * config/t-sol2 (install): Depend on install-clearcap-map.
13992 (install-clearcap-map): New target.
13993 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
13996 2014-05-28 Richard Biener <rguenther@suse.de>
13998 * hwint.h (*_HALF_WIDE_INT*): Move to ...
13999 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14000 ... here and remove the rest.
14001 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14003 2014-05-28 Richard Biener <rguenther@suse.de>
14005 PR tree-optimization/61335
14006 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14007 new range fails, drop to varying.
14009 2014-05-28 Olivier Hainque <hainque@adacore.com>
14011 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14012 (CPP_SPEC): Add entry for -mcpu=8548.
14013 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14014 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14016 2014-05-28 Tom de Vries <tom@codesourcery.com>
14018 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14019 * lra.c (initialize_lra_reg_info_element): Add init of
14020 actual_call_used_reg_set field.
14021 (lra): Call lra_create_live_ranges before lra_inheritance for
14023 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14025 * lra-constraints.c (need_for_call_save_p): Use
14026 actual_call_used_reg_set instead of call_used_reg_set for
14028 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14030 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14031 Tom de Vries <tom@codesourcery.com>
14033 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14035 (@item -fuse-caller-save): New item.
14037 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14038 Tom de Vries <tom@codesourcery.com>
14040 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14041 OPT_fuse_caller_save.
14043 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14044 Tom de Vries <tom@codesourcery.com>
14046 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14047 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14048 get_call_reg_set_usage.
14049 * resource.c (mark_set_resources, mark_target_live_regs): Use
14050 get_call_reg_set_usage.
14051 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14053 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14054 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14055 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14056 * ira-build.c (ira_create_allocno): Init
14057 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14058 (create_cap_allocno, propagate_allocno_info)
14059 (propagate_some_info_from_allocno)
14060 (copy_info_to_removed_store_destinations): Handle
14061 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14062 * ira-costs.c (ira_tune_allocno_costs): Use
14063 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14065 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14066 Tom de Vries <tom@codesourcery.com>
14068 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14069 and function_used_regs_valid fields.
14070 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14071 find_all_hard_reg_sets.
14072 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14073 (get_call_reg_set_usage): New function.
14074 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14075 * regs.h (get_call_reg_set_usage): Declare.
14077 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14080 * config/dbx.h (License): Add Runtime Library Exception.
14081 * config/newlib-stdint.h (License): Same.
14082 * config/rtems.h (License): Same
14083 * config/initfini-array.h (License): Same
14084 * config/v850/v850.h (License): Same.
14085 * config/v850/v850-opts.h (License): Same
14086 * config/v850/rtems.h (License): Same.
14088 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14091 * doc/extend.texi (Local Labels): Note that label differences are
14092 not supported for AVR.
14094 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14095 Olivier Hainque <hainque@adacore.com>
14097 * rtl.h (set_for_reg_notes): Declare.
14098 * emit-rtl.c (set_for_reg_notes): New function.
14099 (set_unique_reg_note): Use it.
14100 * optabs.c (add_equal_note): Likewise
14102 2014-05-27 Andrew Pinski <apinski@cavium.com>
14104 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14105 Use <w> for the register in assembly template.
14106 (stack_protect_test): Use the mode of operands[0] for the result.
14107 (stack_protect_test_<mode>): Use <w> for the register
14108 in assembly template.
14110 2014-05-27 DJ Delorie <dj@redhat.com>
14112 * config/rx/rx.c (add_vector_labels): New.
14113 (rx_output_function_prologue): Call it.
14114 (rx_handle_func_attribute): Don't require empty arguments.
14115 (rx_handle_vector_attribute): New.
14116 (rx_attribute_table): Add "vector" attribute.
14117 * doc/extend.texi (interrupt, vector): Document new/changed
14118 RX-specific attributes.
14120 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14122 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14124 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14125 predicate to detect a negative quotient.
14127 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14129 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14130 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14131 Add X - Y CMP 0 to X CMP Y transformation.
14132 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14134 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14136 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14139 2014-05-27 Steve Ellcey <sellcey@mips.com>
14141 * config/mips/mips.c: Add include of cgraph.h.
14143 2014-05-27 Richard Biener <rguenther@suse.de>
14145 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14147 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14150 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14151 * config/arm/arm-cores.def (License): Same.
14152 * config/arm/arm-opts.h (License): Same.
14153 * config/arm/aout.h (License): Same.
14154 * config/arm/bpabi.h (License): Same.
14155 * config/arm/elf.h (License): Same.
14156 * config/arm/linux-elf.h (License): Same.
14157 * config/arm/linux-gas.h (License): Same.
14158 * config/arm/netbsd-elf.h (License): Same.
14159 * config/arm/uclinux-eabi.h (License): Same.
14160 * config/arm/uclinux-elf.h (License): Same.
14161 * config/arm/vxworks.h (License): Same.
14163 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14165 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14166 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14167 (arm_init_neon_builtins): Handle NEON_BSWAP.
14168 Define required type nodes.
14169 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14170 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14171 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14172 * config/arm/iterators.md (VDQHSD): New mode iterator.
14174 2014-05-27 Richard Biener <rguenther@suse.de>
14176 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14177 Try using literal operands when comparing value-ranges failed.
14179 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14181 * ira.c (commutative_operand): Adjust for change to recog_data.
14182 [Missing from previous commit.]
14184 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14186 * system.h (TEST_BIT): New macro.
14187 * recog.h (alternative_mask): New type.
14188 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14189 (recog_data_d): Replace alternative_enabled_p array with
14190 enabled_alternatives.
14191 (target_recog): New structure.
14192 (default_target_recog, this_target_recog): Declare.
14193 (get_enabled_alternatives, recog_init): Likewise.
14194 * recog.c (default_target_recog, this_target_recog): New variables.
14195 (get_enabled_alternatives): New function.
14196 (extract_insn): Use it.
14197 (recog_init): New function.
14198 (preprocess_constraints, constrain_operands): Adjust for change to
14200 * postreload.c (reload_cse_simplify_operands): Likewise.
14201 * reload.c (find_reloads): Likewise.
14202 * ira-costs.c (record_reg_classes): Likewise.
14203 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14204 all alternatives after a disabled one would be skipped.
14205 (ira_implicitly_set_insn_hard_regs): Likewise.
14206 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14207 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14208 with enabled_alternatives.
14209 * lra.c (free_insn_recog_data): Update accordingly.
14210 (lra_update_insn_recog_data): Likewise.
14211 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14212 * lra-constraints.c (process_alt_operands): Likewise. Handle
14213 only_alternative as part of the enabled mask.
14214 * target-globals.h (this_target_recog): Declare.
14215 (target_globals): Add a recog field.
14216 (restore_target_globals): Restore this_target_recog.
14217 * target-globals.c: Include recog.h.
14218 (default_target_globals): Initialize recog field.
14219 (save_target_globals): Likewise.
14220 * reginfo.c (reinit_regs): Call recog_init.
14221 * toplev.c (backend_init_target): Likewise.
14223 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14225 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14226 rather than any named insn's code.
14228 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14231 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14232 * config/arm/arm-cores.def (License): Same.
14234 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14236 * tree.h (decl_comdat_group): Declare.
14237 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14238 * tree.c (decl_comdat_group): Here.
14240 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14242 PR rtl-optimization/61222
14243 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14244 the shift, truncate the PLUS operand to the result mode.
14246 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14249 * config/i386/i386.c (ix86_rtx_costs)
14250 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14253 2014-05-26 Martin Jambor <mjambor@suse.cz>
14255 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14258 2014-05-26 Richard Biener <rguenther@suse.de>
14260 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14261 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14262 Provide specializations.
14263 (wi::int_traits <HOST_WIDE_INT>,
14264 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14266 2014-05-26 Alan Modra <amodra@gmail.com>
14269 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14270 params and return a bool. Remove dead code. Update comment.
14271 Assert we have a const_int source. Remove bogus code from
14272 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14273 handling of constants > 2G and reg_equal note, from..
14274 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14275 return value. Update comment. If we can, use a new pseudo
14276 for intermediate calculations.
14277 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14279 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14280 call to rs6000_emit_set_const in splitter.
14281 (movdi_internal64+2, +3): Likewise.
14283 2014-05-26 Richard Biener <rguenther@suse.de>
14285 * system.h: Define __STDC_FORMAT_MACROS before
14286 including inttypes.h.
14287 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14288 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14289 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14290 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14291 HOST_WIDEST_INT_C): Remove.
14292 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14293 if C99 inttypes.h is not available.
14294 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14295 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14296 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14297 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14298 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14299 (struct output_info): Likewise.
14300 (print_statistics): Adjust.
14301 (dump_bitmap_statistics): Likewise.
14302 * bt-load.c (migrate_btr_defs): Print with PRId64.
14303 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14304 (MAX_SAFE_MULTIPLIER): Adjust.
14305 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14306 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14307 dump_cgraph_node): Likewise.
14308 * final.c (dump_basic_block_info): Likewise.
14309 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14310 * gcov.c (format_gcov): Likewise.
14311 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14313 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14314 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14315 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14316 Use PRId64 for dumping.
14317 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14318 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14319 (add_allocno_hard_regs): Adjust.
14320 * loop-doloop.c (doloop_modify): Print using PRId64.
14321 * loop-iv.c (inverse): Compute in uint64_t.
14322 (determine_max_iter, iv_number_of_iterations): Likewise.
14323 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14324 Print using PRId64.
14325 * lto-streamer-out.c (write_symbol): Use uint64_t.
14326 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14327 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14328 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14329 * modulo-sched.c (const_iteration_count): Use int64_t.
14330 (sms_schedule): Dump using PRId64.
14331 * predict.c (dump_prediction): Likewise.
14332 * pretty-print.h (pp_widest_integer): Remove.
14333 * profile.c (get_working_sets, is_edge_inconsistent,
14334 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14335 * tree-pretty-print.c (pp_double_int): Remove case handling
14336 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14337 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14339 (pass_optimize_bswap::execute): Remove restriction on hosts.
14340 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14341 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14342 * tree.c (widest_int_cst_value): Remove.
14343 * tree.h (widest_int_cst_value): Likewise.
14344 * value-prof.c (dump_histogram_value): Print using PRId64.
14345 * gengtype.c (main): Also inject int64_t.
14346 * ggc-page.c (struct max_alignment): Use int64_t.
14347 * alloc-pool.c (struct allocation_object_def): Likewise.
14348 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14350 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14351 * doc/tm.texi: Regenerated.
14352 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14353 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14354 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14355 mmix_output_register_setting): Use [u]int64_t in prototypes.
14356 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14357 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14358 mmix_output_octa, mmix_output_shifted_value): Adjust.
14359 (mmix_intval): Adjust. Remove unreachable case.
14360 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14362 2014-05-26 Richard Biener <rguenther@suse.de>
14364 * configure.ac: Drop __int64 type check. Insist that we
14365 found uint64_t and int64_t.
14366 * hwint.h (HOST_BITS_PER___INT64): Remove.
14367 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14368 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14369 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14370 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14371 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14372 for dst_q_src_df_rms_cdt.
14373 * configure: Regenerate.
14374 * config.in: Likewise.
14376 2014-05-26 Michael Tautschnig <mt@debian.org>
14379 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14380 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14382 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14384 PR rtl-optimization/61278
14385 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14387 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14389 PR rtl-optimization/61220
14390 Part of PR rtl-optimization/61225
14391 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14392 insn; skip split_edge for a block with only one successor.
14394 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14396 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14399 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14401 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14402 (update_vtable_references): New function.
14403 (function_and_variable_visibility): Rewrite also vtable initializers.
14404 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14406 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14408 * ggc.h (ggc_grow): New function.
14409 * ggc-none.c (ggc_grow): New function.
14410 * ggc-page.c (ggc_grow): Likewise.
14412 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14414 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14415 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14416 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14417 varpool_externally_visible_p, can_replace_by_local_alias,
14418 update_visibility_by_resolution_info, function_and_variable_visibility,
14419 pass_data_ipa_function_and_variable_visibility,
14420 make_pass_ipa_function_and_variable_visibility,
14421 whole_program_function_and_variable_visibility,
14422 pass_data_ipa_whole_program_visibility,
14423 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14424 * cgraph.h (cgraph_local_node_p): Declare.
14425 * ipa-visibility.c: New file.
14426 * Makefile.in (OBJS): Add ipa-visiblity.o
14428 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14430 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14431 that var decl is available.
14433 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14435 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14436 symtab_node pointer.
14437 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14438 (find_decls_types_r): Do not walk COMDAT_GROUP.
14439 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14440 * varasm.c (make_decl_one_only): Use set_comdat_group;
14441 create node if needed.
14442 * ipa-inline-transform.c (save_inline_function_body): Update
14443 way we decl->symtab mapping.
14444 * symtab.c (symtab_hash, hash_node, eq_node
14445 symtab_insert_node_to_hashtable): Remove.
14446 (symtab_register_node): Update.
14447 (symtab_unregister_node): Update.
14448 (symtab_get_node): Reimplement as inline function.
14449 (symtab_add_to_same_comdat_group): Update.
14450 (symtab_dissolve_same_comdat_group_list): Update.
14451 (dump_symtab_base): Update.
14452 (verify_symtab_base): Update.
14453 (symtab_make_decl_local): Update.
14454 (fixup_same_cpp_alias_visibility): Update.
14455 (symtab_nonoverwritable_alias): Update.
14456 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14457 * ipa.c (update_visibility_by_resolution_info): UPdate.
14458 * bb-reorder.c: Include cgraph.h
14459 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14460 with comdat groups.
14461 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14462 * cgraph.c (cgraph_get_create_node): Update.
14463 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14465 (symtab_get_node): Make inline.
14466 (symtab_insert_node_to_hashtable): Remove.
14467 (symtab_can_be_discarded): Update.
14468 (decl_comdat_group): New function.
14469 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14471 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14473 (read_comdat_group): New function.
14474 (input_node, input_varpool_node): Use it.
14475 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14477 * mips.c (mips_start_unique_function): Likewise.
14478 (ix86_code_end): Likewise.
14479 (rs6000_code_end): Likweise.
14480 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14482 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14484 * gengtype-state.c (fatal_reading_state): Bring offline.
14485 * optabs.c (widening_optab_handler): Bring offline.
14486 * optabs.h (widening_optab_handler): Likewise.
14487 * final.c (get_attr_length_1): Likewise.
14489 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14491 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14493 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14495 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14496 (ppc440-compare): Include shift with dot.
14497 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14498 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14500 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14502 (e6500_sfx2): Include it.
14503 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14504 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14505 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14506 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14507 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14508 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14509 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14510 *lshiftrt_internal1le, *lshiftrt_internal1be,
14511 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14512 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14513 *rotldi3_internal10le, *rotldi3_internal10be,
14514 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14515 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14516 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14517 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14518 define_insns): Use type "shift" in the appropriate alternatives.
14520 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14522 * config/rs6000/rs6000.md (type): Add "logical". Delete
14524 (dot): Adjust comment.
14525 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14526 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14527 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14528 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14529 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14530 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14531 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14532 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14534 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14535 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14536 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14537 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14538 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14539 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14540 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14541 * config/rs6000/8540.md (ppc8540_su): Adjust.
14542 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14543 cell-cmp-microcoded): Adjust.
14544 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14545 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14546 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14547 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14548 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14549 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14550 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14551 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14552 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14554 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14555 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14556 Adjust. Adjust comment.
14557 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14558 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14560 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14562 * config/rs6000/rs6000.md (type): Add "add".
14563 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14564 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14565 define_insns): Use it.
14566 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14568 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14569 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14570 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14571 * config/rs6000/601.md (ppc601-integer): Adjust.
14572 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14573 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14574 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14575 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14576 * config/rs6000/8540.md (ppc8540_su): Adjust.
14577 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14578 cell-cmp-microcoded): Adjust.
14579 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14580 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14581 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14582 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14583 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14584 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14585 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14586 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14587 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14589 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14590 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14591 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14592 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14594 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14596 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14597 "delayed_compare", "var_delayed_compare".
14598 (var_shift): New attribute.
14599 (cell_micro): Adjust.
14600 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14601 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14602 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14603 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14604 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14605 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14606 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14607 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14608 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14609 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14610 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14611 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14612 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14613 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14614 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14615 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14616 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14617 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14618 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14619 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14620 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14621 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14622 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14623 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14624 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14626 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14627 * config/rs6000/440.md (ppc440-integer): Adjust.
14628 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14629 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14630 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14631 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14632 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14633 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14634 * config/rs6000/8540.md (ppc8540_su): Adjust.
14635 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14636 cell-cmp-microcoded): Adjust.
14637 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14638 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14639 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14640 e500mc64_delayed): Adjust.
14641 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14642 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14643 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14644 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14645 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14646 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14647 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14648 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14649 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14651 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14652 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14654 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14656 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14657 (bits): New mode_attr.
14658 (idiv_ldiv): Delete mode_attr.
14659 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14660 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14661 rs6000_adjust_priority, is_nonpipeline_insn,
14662 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14664 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14665 * config/rs6000/440.md (ppc440-idiv): Adjust.
14666 * config/rs6000/476.md (ppc476-idiv): Adjust.
14667 * config/rs6000/601.md (ppc601-idiv): Adjust.
14668 * config/rs6000/603.md (ppc603-idiv): Adjust.
14669 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14670 ppc620-ldiv): Adjust.
14671 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14672 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14673 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14674 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14675 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14676 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14677 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14678 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14679 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14680 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14681 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14682 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14683 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14684 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14685 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14686 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14687 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14688 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14690 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14692 * config/rs6000/rs6000.md (type): Delete "insert_word",
14693 "insert_dword". Add "insert".
14694 (size): Update comment.
14695 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14696 insn_must_be_first_in_group): Adjust.
14697 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14698 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14699 *insvsi_internal6, insvdi_internal): Adjust.
14701 * config/rs6000/40x.md (ppc403-integer): Adjust.
14702 * config/rs6000/440.md (ppc440-integer): Adjust.
14703 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14704 * config/rs6000/601.md (ppc601-integer): Adjust.
14705 * config/rs6000/603.md (ppc603-integer): Adjust.
14706 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14707 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14708 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14709 * config/rs6000/8540.md (ppc8540_su): Adjust.
14710 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14711 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14712 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14713 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14714 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14715 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14716 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14717 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14718 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14719 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14720 * config/rs6000/power7.md (power7-integer): Adjust.
14721 * config/rs6000/power8.md (power8-1cyc): Adjust.
14722 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14723 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14725 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14727 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14728 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14729 (size): New attribute.
14730 (dot): New attribute.
14731 (cell_micro): Adjust.
14732 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14733 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14734 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14735 umuldi3_highpart): Adjust.
14736 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14737 rs6000_adjust_priority, is_nonpipeline_insn,
14738 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14740 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14741 ppc405-imul3): Adjust.
14742 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14743 * config/rs6000/476.md (ppc476-imul): Adjust.
14744 * config/rs6000/601.md (ppc601-imul): Adjust.
14745 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14746 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14747 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14748 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14749 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14751 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14752 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14753 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14754 cell-imul): Adjust.
14755 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14756 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14757 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14758 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14759 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14760 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14761 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14762 power4-lmul, power4-imul, power4-imul3): Adjust.
14763 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14764 power5-lmul, power5-imul, power5-imul3): Adjust.
14765 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14766 power6-lmul, power6-imul, power6-imul3): Adjust.
14767 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14768 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14770 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14771 rs64a-lmul): Adjust.
14772 * config/rs6000/titan.md (titan_imul): Adjust.
14774 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14776 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14777 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14778 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14779 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14780 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14781 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14782 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14783 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14784 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14785 * config/rs6000/titan.md: Delete nonsensical comment.
14786 (titan_imul): Add type imul3.
14787 (titan_mulhw): Remove type imul3; add type halfmul.
14789 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14791 * config/rs6000/rs6000.md (type): Reorder, reformat.
14793 2014-05-23 Martin Jambor <mjambor@suse.cz>
14795 PR tree-optimization/53787
14796 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14797 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14798 analysis_done, update all uses.
14799 * ipa-prop.c: Include domwalk.h
14800 (param_analysis_info): Removed.
14801 (param_aa_status): New type.
14802 (ipa_bb_info): Likewise.
14803 (func_body_info): Likewise.
14804 (ipa_get_bb_info): New function.
14805 (aa_overwalked): Likewise.
14806 (find_dominating_aa_status): Likewise.
14807 (parm_bb_aa_status_for_bb): Likewise.
14808 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14809 (load_from_unmodified_param): Accept func_body_info as a parameter
14810 instead of parms_ainfo.
14811 (parm_ref_data_preserved_p): Changed to use new param AA info.
14812 (parm_ref_data_pass_through_p): Likewise.
14813 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14814 (compute_complex_assign_jump_func): Changed to use new param AA info.
14815 (compute_complex_ancestor_jump_func): Likewise.
14816 (ipa_compute_jump_functions_for_edge): Likewise.
14817 (ipa_compute_jump_functions): Removed.
14818 (ipa_compute_jump_functions_for_bb): New function.
14819 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14821 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14822 and info, moved variable declarations down.
14823 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14825 (ipa_analyze_stmt_uses): Likewise.
14826 (ipa_analyze_params_uses): Removed.
14827 (ipa_analyze_params_uses_in_bb): New function.
14828 (ipa_analyze_controlled_uses): Likewise.
14829 (free_ipa_bb_info): Likewise.
14830 (analysis_dom_walker): New class.
14831 (ipa_analyze_node): Handle node-specific forbidden analysis,
14832 initialize and free func_body_info, use dominator walker.
14833 (ipcp_modif_dom_walker): New class.
14834 (ipcp_transform_function): Create and free func_body_info, use
14835 ipcp_modif_dom_walker, moved a lot of functionality there.
14837 2014-05-23 Marek Polacek <polacek@redhat.com>
14838 Jakub Jelinek <jakub@redhat.com>
14840 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14841 * gcc.c (sanitize_spec_function): Likewise.
14842 * convert.c (convert_to_integer): Include "ubsan.h". Add
14843 floating-point to integer instrumentation.
14844 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14845 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14846 SANITIZE_NONDEFAULT.
14847 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14848 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14849 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14850 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14851 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14852 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14853 float/double/long double.
14854 (ubsan_instrument_float_cast): New function.
14855 * ubsan.h (ubsan_instrument_float_cast): Declare.
14857 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14859 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14861 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14862 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14863 Adjust for tailcalling through registers.
14864 * config/aarch64/aarch64.h (enum reg_class): New caller save
14866 (REG_CLASS_NAMES): Likewise.
14867 (REG_CLASS_CONTENTS): Likewise.
14868 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14869 Allow tailcalling without decls.
14871 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14873 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14874 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14876 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14877 gsi, and variables v_* to v*.
14879 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14881 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14883 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14885 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
14886 * omp-low.c: Update accordingly.
14888 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
14889 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
14890 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
14891 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
14892 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
14893 GF_OMP_TARGET_KIND_UPDATE.
14895 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14896 Explicitly enumerate the expected region types.
14898 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
14901 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
14902 documentation; the old documentation didn't clearly state the
14903 constraints on the contents of the pointed-to storage.
14905 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
14907 Fix bootstrap error on ia64
14908 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
14909 Return default value.
14911 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
14913 PR tree-optimization/54733
14914 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
14916 (find_bswap_or_nop_load): New.
14917 (find_bswap_1): Renamed to ...
14918 (find_bswap_or_nop_1): This. Also add support for memory source.
14919 (find_bswap): Renamed to ...
14920 (find_bswap_or_nop): This. Also add support for memory source and
14921 detection of bitwise operations equivalent to load in target
14923 (execute_optimize_bswap): Likewise. Also move its leading comment back
14924 in place and split statement transformation into ...
14925 (bswap_replace): This.
14927 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14929 PR rtl-optimization/61215
14930 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
14931 simplify_gen_subreg until final substitution.
14933 2014-05-23 Alan Modra <amodra@gmail.com>
14936 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
14937 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
14938 Use "Y" constraint rather than "m".
14940 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14942 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
14944 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
14945 New function declaration.
14946 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
14947 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
14948 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
14949 (aarch64_init_builtins) : Initialize builtins
14950 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14951 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14952 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
14953 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
14954 and __builtins_aarch64_set_fpsr.
14955 (aarch64_atomic_assign_expand_fenv): New function.
14956 * config/aarch64/aarch64.md (set_fpcr): New pattern.
14957 (get_fpcr) : Likewise.
14958 (set_fpsr) : Likewise.
14959 (get_fpsr) : Likewise.
14960 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
14961 and UNSPECV_SET_FPSR.
14962 * doc/extend.texi (AARCH64 Built-in Functions) : Document
14963 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
14964 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
14966 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
14968 PR rtl-optimization/60969
14969 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
14970 constraints. Set up mem cost for NO_REGS case.
14972 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
14974 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
14976 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
14978 * config/darwin.c: Include "lto-section-names.h".
14979 (LTO_SEGMENT_NAME): Don't define.
14980 * config/i386/winnt.c: Include "lto-section-names.h".
14981 * lto-streamer.c: Include "lto-section-names.h".
14982 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
14983 * lto-wrapper.c: Include "lto-section-names.h".
14984 (LTO_SECTION_NAME_PREFIX): Don't define.
14985 * lto-section-names.h: New file.
14986 * cgraphunit.c: Include "lto-section-names.h".
14988 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
14990 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
14992 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
14995 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
14997 2014-05-22 Nick Clifton <nickc@redhat.com>
14999 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15001 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15003 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15004 -> (T)A transformation to integer types.
15006 2014-05-22 Teresa Johnson <tejohnson@google.com>
15008 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15009 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15010 (gcov_rewrite): Use gcov_nonruntime_assert.
15011 (gcov_open): Ditto.
15012 (gcov_write_words): Ditto.
15013 (gcov_write_length): Ditto.
15014 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15015 gcc_assert from IN_LIBGCOV code.
15016 (gcov_read_summary): Use gcov_error to flag profile corruption.
15017 (gcov_sync): Use gcov_nonruntime_assert.
15018 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15019 (gcov_histo_index): Use gcov_nonruntime_assert.
15020 (static void gcov_histogram_merge): Ditto.
15021 (compute_working_sets): Ditto.
15022 * gcov-io.h (gcov_nonruntime_assert): Define.
15023 (gcov_error): Define for !IN_LIBGCOV
15025 2014-05-22 Richard Biener <rguenther@suse.de>
15027 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15028 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15029 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15030 and deallocation site.
15031 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15032 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15033 passing through the incoming points-to set.
15034 (handle_lhs_call): Use flags argument instead of recomputing it.
15035 (find_func_aliases_for_call): Call handle_lhs_call with proper
15038 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15040 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15041 all padding bits in REAL_VALUE_TYPE are cleared.
15043 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15045 Cleanup and improve multipass_dfa_lookahead_guard
15046 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15047 (core2i7_first_cycle_multipass_begin,)
15048 (core2i7_first_cycle_multipass_issue,)
15049 (core2i7_first_cycle_multipass_backtrack): Update signature.
15050 * config/ia64/ia64.c
15051 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15052 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15053 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15055 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15056 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15058 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15060 * doc/tm.texi: Regenerate.
15062 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15063 * haifa-sched.c (ready_try): Make signed to allow negative values.
15064 (rebug_ready_list_1): Update.
15065 (choose_ready): Simplify.
15066 (sched_extend_ready_list): Update.
15068 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15070 Remove IA64 speculation tweaking flags
15071 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15072 speculation tuning flags.
15073 (msched-prefer-non-data-spec-insns,)
15074 (msched-prefer-non-control-spec-insns): Obsolete options.
15075 * haifa-sched.c (choose_ready): Remove handling of
15076 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15077 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15078 and PREFER_NON_DATA_SPEC.
15079 * sel-sched.c (process_spec_exprs): Remove handling of
15080 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15082 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15084 Improve scheduling debug output
15085 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15086 (advance_one_cycle): Update.
15087 (schedule_insn, queue_to_ready): Add debug printouts.
15088 (debug_ready_list_1): New static function.
15089 (debug_ready_list): Update.
15090 (max_issue): Add debug printouts.
15091 (dump_insn_stream): New static function.
15092 (schedule_block): Use it. Also better indent printouts.
15094 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15096 Fix sched_insn debug counter
15097 * haifa-sched.c (schedule_insn): Update.
15098 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15099 (save_backtrack_point, restore_backtrack_point): Update.
15100 (first_nonscheduled_insn): New static function.
15101 (queue_to_ready, choose_ready): Use it.
15102 (schedule_block): Init nonscheduled_insns_begin.
15103 (sched_emit_insn): Update.
15106 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15108 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15110 (aarch64_secondary_reload) : LikeWise.
15111 (aarch64_class_max_nregs) : Remove CORE_REGS.
15112 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15113 (REG_CLASS_NAMES) : Likewise.
15114 (REG_CLASS_CONTENTS) : LikeWise.
15115 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15117 2014-05-21 Guozhi Wei <carrot@google.com>
15120 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15122 (vqdmulhq_n_s16): Likewise.
15124 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15126 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15128 2014-05-21 Marek Polacek <polacek@redhat.com>
15131 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15133 2014-05-21 Martin Jambor <mjambor@suse.cz>
15135 * doc/invoke.texi (Optimize Options): Document parameters
15136 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15137 ipa-cp-array-index-hint-bonus.
15139 2014-05-21 Mark Wielaard <mjw@redhat.com>
15142 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15143 version >= 3 or not strict DWARF.
15144 * langhooks.h (struct lang_hooks_for_types): Add
15145 enum_underlying_base_type.
15146 * langhooks.c (lhd_enum_underlying_base_type): New function.
15147 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15148 enum_underlying_base_type.
15149 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15150 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15151 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15153 2014-05-21 Richard Biener <rguenther@suse.de>
15155 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15157 2014-05-21 John Marino <gnugcc@marino.st>
15159 * config.gcc (*-*-dragonfly*): New target.
15160 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15161 * configure: Regenerate.
15162 * config/dragonfly-stdint.h: New.
15163 * config/dragonfly.h: New.
15164 * config/dragonfly.opt: New.
15165 * config/i386/dragonfly.h: New.
15166 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15168 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15170 * tree.def (VOID_CST): New.
15171 * tree-core.h (TI_VOID): New.
15172 * tree.h (void_node): New.
15173 * tree.c (tree_node_structure_for_code, tree_code_size)
15174 (iterative_hash_expr): Handle VOID_CST.
15175 (build_common_tree_nodes): Initialize void_node.
15177 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15179 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15181 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15183 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15186 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15187 flag_reorder_blocks_and_partition.
15188 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15190 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15193 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15195 (*addc_r_t): Add new insn_and_split.
15197 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15199 PR middle-end/61252
15200 * omp-low.c (handle_simd_reference): New function.
15201 (lower_rec_input_clauses): Use it. Defer adding reference
15202 initialization even for reduction without placeholder if in simd,
15203 handle it properly later on.
15205 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15207 PR tree-optimization/60899
15208 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15209 assume all static symbols will have definition wile parsing and
15210 check the do have definition later in compilation; check that
15211 variable referring symbol will be output before concluding that
15212 reference is safe; be conservative for referring local statics;
15213 be more precise about when comdat is output in other partition.
15215 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15218 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15220 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15221 (ipa_inline): Loop inline_to_all_callers until no more aliases
15224 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15226 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15227 set writeonly flag only for vars actually written to.
15229 2014-05-20 Dehao Chen <dehao@google.com>
15231 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15232 and callee count to get clone count.
15233 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15234 count in copy_body.
15236 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15238 PR rtl-optimization/61243
15239 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15241 2014-05-20 Xinliang David Li <davidxl@google.com>
15243 * cgraphunit.c (walk_polymorphic_call_targets): Add
15244 dbgcnt and fopt-info support.
15245 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15246 * ipa-devirt.c (ipa_devirt): Ditto.
15247 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15248 * ipa.c (walk_polymorphic_call_targets): Ditto.
15249 * gimple-fold.c (fold_gimple_assign): Ditto.
15250 (gimple_fold_call): Ditto.
15251 * dbgcnt.def: New counter.
15253 2014-05-20 DJ Delorie <dj@redhat.com>
15255 * config/msp430/msp430.md (split): Don't allow subregs when
15256 splitting SImode adds.
15257 (andneghi): Fix subtraction logic.
15258 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15260 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15262 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15264 * except.c (switch_to_exception_section, resolve_unique_section,
15265 get_named_text_section, default_function_rodata_section,
15266 align_variable, get_block_for_decl, default_section_type_flags):
15267 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15268 * symtab.c (symtab_add_to_same_comdat_group,
15269 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15270 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15272 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15273 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15274 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15275 (c6x_function_in_section_p): Likewise.
15276 * config/darwin.c (machopic_select_section): Likewise.
15277 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15278 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15279 * config/mep/mep.c (mep_select_section): LIkewise.
15280 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15282 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15284 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15285 EH region of calls to pure functions that can throw an exception.
15286 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15287 (copy_reference_ops_from_call): Also copy the EH region of the call if
15288 it can throw an exception.
15290 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15292 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15293 nested VEC_SELECTs that are inverses of each other.
15295 2014-05-20 Richard Biener <rguenther@suse.de>
15297 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15298 (extract_and_process_scc_for_name): not here.
15299 (cond_dom_walker::before_dom_children): Only process
15300 stmts that end the BB in interesting ways.
15301 (run_scc_vn): Mark param uses as visited.
15303 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15305 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15308 2014-05-20 Nick Clifton <nickc@redhat.com>
15310 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15311 (msp430_gimplify_va_arg_expr): New function.
15312 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15314 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15315 operand 0 in order to prevent confusion about the number of
15316 registers involved.
15318 2014-05-20 Richard Biener <rguenther@suse.de>
15320 PR tree-optimization/61221
15321 * tree-ssa-pre.c (el_to_update): Remove.
15322 (eliminate_dom_walker::before_dom_children): Handle released
15323 VDEFs by value-numbering them to the associated VUSE. Update
15324 stmt immediately for substituted call address.
15325 (eliminate): Remove delayed stmt updating code.
15326 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15327 possibly late re-numbered vuses.
15328 (vn_reference_lookup_2): Adjust.
15329 (vn_reference_lookup_pieces): Likewise.
15330 (vn_reference_lookup): Likewise.
15332 2014-05-20 Richard Biener <rguenther@suse.de>
15334 * config.gcc: Remove need_64bit_hwint.
15335 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15336 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15338 * config.in: Regenerate.
15339 * configure: Likewise.
15341 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15343 * doc/extend.texi: Create Label Attributes section,
15344 move all label attributes into it and reference it.
15346 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15348 * arm.c (thumb1_reorg): When scanning backwards skip anything
15349 that's not a proper insn.
15351 2014-05-19 Richard Biener <rguenther@suse.de>
15353 PR tree-optimization/61221
15354 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15355 Do nothing for unreachable blocks.
15356 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15357 Improve unreachability detection.
15359 2014-05-19 Richard Biener <rguenther@suse.de>
15361 PR tree-optimization/61209
15362 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15364 2014-05-19 Nick Clifton <nickc@redhat.com>
15366 * except.c (init_eh): Fix computation of builtin setjmp buffer
15367 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15369 2014-05-19 Richard Biener <rguenther@suse.de>
15371 PR tree-optimization/61184
15372 * tree-vrp.c (is_negative_overflow_infinity): Use
15373 TREE_OVERFLOW_P and do that check first.
15374 (is_positive_overflow_infinity): Likewise.
15375 (is_overflow_infinity): Likewise.
15376 (vrp_operand_equal_p): Properly treat operands with
15377 differing overflow as not equal.
15379 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15381 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15382 shift simplification where it was intended.
15384 2014-05-19 Christian Bruel <christian.bruel@st.com>
15387 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15389 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15392 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15395 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15397 * reg-notes.def (CROSSING_JUMP): Likewise.
15398 * rtl.h (rtx_def): Update comment for jump flag.
15399 (CROSSING_JUMP_P): Define.
15400 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15401 of a REG_CROSSING_JUMP note.
15402 * cfghooks.c (tidy_fallthru_edges): Likewise.
15403 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15404 * emit-rtl.c (try_split): Likewise.
15405 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15406 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15407 * jump.c (redirect_jump_2): Likewise.
15408 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15409 (relax_delay_slots): Likewise.
15410 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15411 (bbit_di): Likewise.
15412 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15413 * config/sh/sh.md (jump_compact): Likewise.
15414 * bb-reorder.c (rotate_loop): Likewise.
15415 (pass_duplicate_computed_gotos::execute): Likewise.
15416 (add_reg_crossing_jump_notes): Rename to...
15417 (update_crossing_jump_flags): ...this.
15418 (pass_partition_blocks::execute): Update accordingly.
15420 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15422 * tree.h: Remove extraneous template <>.
15424 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15426 * ipa.c (symtab_remove_unreachable_nodes): Remove
15427 symbol from comdat group if its body was eliminated.
15428 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15429 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15430 (symtab_unregister_node): ... this one.
15431 (verify_symtab_base): More strict checking of comdats.
15432 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15434 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15436 * tree-pass.h (make_pass_ipa_comdats): New pass.
15437 * timevar.def (TV_IPA_COMDATS): New timevar.
15438 * passes.def (pass_ipa_comdats): Add.
15439 * Makefile.in (OBJS): Add ipa-comdats.o
15440 * ipa-comdats.c: New file.
15442 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15444 * ipa.c (update_visibility_by_resolution_info): New function.
15445 (function_and_variable_visibility): Use it.
15447 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15449 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15451 (FOR_EACH_DEFINED_SYMBOL): New macro.
15452 (varpool_first_static_initializer, varpool_next_static_initializer,
15453 varpool_first_defined_variable, varpool_next_defined_variable):
15455 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15457 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15459 * ggc-page.c (ggc_handle_finalizers): Add comment.
15461 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15463 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15464 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15465 (ggc_internal_cleared_alloc): Likewise.
15466 * ggc-page.c (finalizer): New class.
15467 (vec_finalizer): Likewise.
15468 (globals::finalizers): New member.
15469 (globals::vec_finalizers): Likewise.
15470 (ggc_internal_alloc): Record the finalizer if any for the block being
15472 (ggc_handle_finalizers): New function.
15473 (ggc_collect): Call ggc_handle_finalizers.
15474 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15476 (ggc_internal_cleared_alloc): Likewise.
15477 (finalize): New function.
15478 (need_finalization_p): Likewise.
15479 (ggc_alloc): Install the type's destructor as the finalizer if it
15480 might do something.
15481 (ggc_cleared_alloc): Likewise.
15482 (ggc_vec_alloc): Likewise.
15483 (ggc_cleared_vec_alloc): Likewise.
15485 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15487 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15489 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15491 * alias.c (record_alias_subset): Adjust.
15492 * bitmap.c (bitmap_element_allocate): Likewise.
15493 (bitmap_gc_alloc_stat): Likewise.
15494 * cfg.c (init_flow): Likewise.
15495 (alloc_block): Likewise.
15496 (unchecked_make_edge): Likewise.
15497 * cfgloop.c (alloc_loop): Likewise.
15498 (flow_loops_find): Likewise.
15499 (rescan_loop_exit): Likewise.
15500 * cfgrtl.c (init_rtl_bb_info): Likewise.
15501 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15502 (cgraph_allocate_node): Likewise.
15503 (cgraph_create_edge_1): Likewise.
15504 (cgraph_allocate_init_indirect_info): Likewise.
15505 * cgraphclones.c (cgraph_clone_edge): Likewise.
15506 * cgraphunit.c (add_asm_node): Likewise.
15507 (init_lowered_empty_function): Likewise.
15508 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15509 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15510 (alpha_use_linkage): Likewise.
15511 * config/arc/arc.c (arc_init_machine_status): Likewise.
15512 * config/arm/arm.c (arm_init_machine_status): Likewise.
15513 * config/avr/avr.c (avr_init_machine_status): Likewise.
15514 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15515 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15516 * config/cris/cris.c (cris_init_machine_status): Likewise.
15517 * config/darwin.c (machopic_indirection_name): Likewise.
15518 (darwin_build_constant_cfstring): Likewise.
15519 (darwin_enter_string_into_cfstring_table): Likewise.
15520 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15521 * config/frv/frv.c (frv_init_machine_status): Likewise.
15522 * config/i386/i386.c (get_dllimport_decl): Likewise.
15523 (ix86_init_machine_status): Likewise.
15524 (assign_386_stack_local): Likewise.
15525 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15526 (i386_pe_maybe_record_exported_symbol): Likewise.
15527 (i386_pe_record_stub): Likewise.
15528 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15529 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15530 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15531 (m32c_note_pragma_address): Likewise.
15532 * config/mep/mep.c (mep_init_machine_status): Likewise.
15533 (mep_note_pragma_flag): Likewise.
15534 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15535 (mips16_local_alias): Likewise.
15536 (mips_init_machine_status): Likewise.
15537 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15538 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15539 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15540 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15541 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15542 * config/pa/pa.c (pa_init_machine_status): Likewise.
15543 (pa_get_deferred_plabel): Likewise.
15544 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15545 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15546 (rs6000_init_machine_status): Likewise.
15547 (output_toc): Likewise.
15548 * config/s390/s390.c (s390_init_machine_status): Likewise.
15549 * config/score/score.c (score_output_external): Likewise.
15550 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15551 * config/spu/spu.c (spu_init_machine_status): Likewise.
15552 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15553 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15554 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15555 * coverage.c (coverage_end_function): Likewise.
15556 * dbxout.c (dbxout_init): Likewise.
15557 * doc/gty.texi: Don't mention variable_size attribute.
15558 * dwarf2cfi.c (new_cfi): Adjust.
15559 (new_cfi_row): Likewise.
15560 (copy_cfi_row): Likewise.
15561 (create_cie_data): Likewise.
15562 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15563 (new_loc_descr): Likewise.
15564 (find_AT_string_in_table): Likewise.
15565 (add_addr_table_entry): Likewise.
15566 (new_die): Likewise.
15567 (add_var_loc_to_decl): Likewise.
15568 (clone_die): Likewise.
15569 (clone_as_declaration): Likewise.
15570 (break_out_comdat_types): Likewise.
15571 (new_loc_list): Likewise.
15572 (add_loc_descr_to_each): Likewise.
15573 (add_location_or_const_value_attribute): Likewise.
15574 (add_linkage_name): Likewise.
15575 (lookup_filename): Likewise.
15576 (dwarf2out_var_location): Likewise.
15577 (new_line_info_table): Likewise.
15578 (dwarf2out_init): Likewise.
15579 (mem_loc_descriptor): Likewise.
15580 (loc_descriptor): Likewise.
15581 (add_const_value_attribute): Likewise.
15582 (tree_add_const_value_attribute): Likewise.
15583 (comp_dir_string): Likewise.
15584 (dwarf2out_vms_debug_main_pointer): Likewise.
15585 (string_cst_pool_decl): Likewise.
15586 * emit-rtl.c (set_mem_attrs): Likewise.
15587 (get_reg_attrs): Likewise.
15588 (start_sequence): Likewise.
15589 (init_emit): Likewise.
15590 (init_emit_regs): Likewise.
15591 * except.c (init_eh_for_function): Likewise.
15592 (gen_eh_region): Likewise.
15593 (gen_eh_region_catch): Likewise.
15594 (gen_eh_landing_pad): Likewise.
15595 (add_call_site): Likewise.
15596 * function.c (add_frame_space): Likewise.
15597 (insert_temp_slot_address): Likewise.
15598 (assign_stack_temp_for_type): Likewise.
15599 (get_hard_reg_initial_val): Likewise.
15600 (allocate_struct_function): Likewise.
15601 (prepare_function_start): Likewise.
15602 (types_used_by_var_decl_insert): Likewise.
15603 * gengtype.c (variable_size_p): Remove function.
15604 (enum alloc_quantity): Remove enum.
15605 (write_typed_alloc_def): Remove function.
15606 (write_typed_struct_alloc_def): Likewise.
15607 (write_typed_typedef_alloc_def): Likewise.
15608 (write_typed_alloc_defns): Likewise.
15610 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15611 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15612 * ggc.h (ggc_alloc): new function.
15613 (ggc_cleared_alloc): Likewise.
15614 (ggc_vec_alloc): Template on type of vector element, and remove
15615 element size argument.
15616 (ggc_cleared_vec_alloc): Likewise.
15617 * gimple.c (gimple_build_omp_for): Adjust.
15618 (gimple_copy): Likewise.
15619 * ipa-cp.c (get_replacement_map): Likewise.
15620 (find_aggregate_values_for_callers_subset): Likewise.
15621 (known_aggs_to_agg_replacement_list): Likewise.
15622 * ipa-devirt.c (get_odr_type): Likewise.
15623 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15624 (read_agg_replacement_chain): Likewise.
15625 * loop-iv.c (get_simple_loop_desc): Likewise.
15626 * lto-cgraph.c (input_node_opt_summary): Likewise.
15627 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15628 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15629 (input_eh_region): Likewise.
15630 (input_eh_lp): Likewise.
15631 (input_cfg): Likewise.
15632 * optabs.c (set_optab_libfunc): Likewise.
15633 (init_tree_optimization_optabs): Likewise.
15634 (set_conv_libfunc): Likewise.
15635 * passes.c (do_per_function_toporder): Likewise.
15636 * rtl.h: Don't use variable_size gty attribute.
15637 * sese.c (if_region_set_false_region): Adjust.
15638 * stringpool.c (gt_pch_save_stringpool): Likewise.
15639 * target-globals.c (save_target_globals): Likewise.
15640 * toplev.c (general_init): Likewise.
15641 * trans-mem.c (record_tm_replacement): Likewise.
15642 (split_bb_make_tm_edge): Likewise.
15643 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15644 * tree-data-ref.h (lambda_vector_new): Likewise.
15645 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15646 * tree-iterator.c (tsi_link_before): Likewise.
15647 (tsi_link_after): Likewise.
15648 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15649 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15650 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15651 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15652 * tree-ssa.c (init_tree_ssa): Adjust.
15653 * tree-ssanames.c (set_range_info): Likewise.
15654 (get_ptr_info): Likewise.
15655 (duplicate_ssa_name_ptr_info): Likewise.
15656 (duplicate_ssa_name_range_info): Likewise.
15657 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15658 (unpack_ts_fixed_cst_value_fields): Likewise.
15659 * tree.c (build_fixed): Likewise.
15660 (build_real): Likewise.
15661 (build_string): Likewise.
15662 (decl_priority_info): Likewise.
15663 (decl_debug_expr_insert): Likewise.
15664 (decl_value_expr_insert): Likewise.
15665 (decl_debug_args_insert): Likewise.
15666 (type_hash_add): Likewise.
15667 (build_omp_clause): Likewise.
15668 * ubsan.c (decl_for_type_insert): Likewise.
15669 * varasm.c (get_unnamed_section): Likewise.
15670 (get_noswitch_section): Likewise.
15671 (get_section): Likewise.
15672 (get_block_for_section): Likewise.
15673 (create_block_symbol): Likewise.
15674 (build_constant_desc): Likewise.
15675 (create_constant_pool): Likewise.
15676 (force_const_mem): Likewise.
15677 (record_tm_clone_pair): Likewise.
15678 * varpool.c (varpool_create_empty_node): Likewise.
15680 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15682 * dwarf2out.c (tree_add_const_value_attribute): Call
15683 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15684 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15685 instead of ggc_internal_<x>alloc_stat.
15686 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15687 (ggc_realloc): Likewise.
15688 * ggc-none.c (ggc_internal_alloc): Likewise.
15689 (ggc_internal_cleared_alloc): Likewise.
15690 * ggc-page.c: Likewise.
15691 * ggc.h (ggc_internal_alloc_stat): Likewise.
15692 (ggc_internal_alloc): Remove macro.
15693 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15694 (ggc_internal_cleared_alloc): Remove macro.
15695 (GGC_RESIZEVEC): Adjust.
15696 (ggc_resizevar): Remove macro.
15697 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15698 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15699 (ggc_internal_vec_cleared_alloc): Remove macro.
15700 (ggc_alloc_atomic_stat): Drop _stat suffix.
15701 (ggc_alloc_atomic): Remove macro.
15702 (ggc_alloc_cleared_atomic): Remove macro.
15703 (ggc_alloc_string_stat): Drop _stat suffix.
15704 (ggc_alloc_string): Remove macro.
15705 (ggc_alloc_rtx_def_stat): Adjust.
15706 (ggc_alloc_tree_node_stat): Likewise.
15707 (ggc_alloc_cleared_tree_node_stat): Likewise.
15708 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15709 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15710 * gimple.c (gimple_build_omp_for): Likewise.
15711 (gimple_copy): Likewise.
15712 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15713 * toplev.c (realloc_for_line_map): Adjust.
15714 * tree-data-ref.h (lambda_vector_new): Likewise.
15715 * tree-phinodes.c (allocate_phi_node): Likewise.
15716 * tree.c (grow_tree_vec_stat): Likewise.
15717 * vec.h (va_gc::reserve): Adjust.
15719 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15721 * config/microblaze/microblaze.c (break_handler): New Declaration.
15722 (microblaze_break_function_p,microblaze_is_break_handler): New.
15723 (compute_frame_size): Use microblaze_break_function_p.
15724 Add the test of break_handler.
15725 (microblaze_function_prologue) : Add the test of variable
15726 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15727 (microblaze_function_epilogue) : Add the test of break_handler.
15728 (microblaze_globalize_label) : Add the test of break_handler.
15729 Check the name by BREAK_HANDLER_NAME.
15731 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15733 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15734 microblaze_is_break_handler test.
15735 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15736 Use SYMBOL_REF_DECL.
15738 * config/microblaze/microblaze-protos.h
15739 (microblaze_break_function_p,microblaze_is_break_handler):
15742 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15743 new MicroBlaze break_handler functions.
15745 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15747 * doc/extend.texi (Size of an asm): Move node text according
15748 to its @menu entry position.
15750 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15752 PR tree-optimization/61140
15753 PR tree-optimization/61150
15754 PR tree-optimization/61197
15755 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15757 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15759 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15761 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15763 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15764 __SIZEOF_INT128__ is defined.
15766 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15768 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15769 (rs6000_delegitimize_address): Use it.
15771 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15773 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15774 inplace argument. Store the new address in the original MEM when true.
15775 * emit-rtl.c (change_address_1): Likewise.
15776 (adjust_address_1, adjust_automodify_address_1, offset_address):
15777 Update accordingly.
15778 * rtl.h (plus_constant): Add an inplace argument.
15779 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15780 when true. Avoid generating (plus X (const_int 0)).
15781 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15782 in-place. Pass true to plus_constant.
15783 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15785 2014-05-16 Dehao Chen <dehao@google.com>
15787 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15789 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15792 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15794 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15796 2014-05-16 Dehao Chen <dehao@google.com>
15798 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15799 optimize_function_for_size_p.
15800 * regs.h (REG_FREQ_FROM_BB): Likewise.
15802 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15805 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15806 negt_reg_operand cases.
15807 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15809 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15811 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15813 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15816 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15819 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15821 * tree-cfg.c (dump_function_to_file): Dump the return type of
15822 functions, in a line to itself before the function body, mimicking
15823 the layout of a C function.
15825 2014-05-16 Dehao Chen <dehao@google.com>
15827 * cfghooks.c (make_forwarder_block): Use direct computation to
15828 get fall-through edge's count and frequency.
15830 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15832 * config/arc/arc.c (arc_init): Fix typo in error message.
15833 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15834 (split_stack_prologue_scratch_regno): Likewise.
15835 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15836 word from error message.
15838 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15840 * ira-costs.c: Fix typo in comment.
15842 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15844 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15846 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15848 * varpool.c (dump_varpool_node): Dump write-only flag.
15849 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15851 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15852 write-only variables.
15853 * ipa.c (process_references): New function.
15854 (set_readonly_bit): New function.
15855 (set_writeonly_bit): New function.
15856 (clear_addressable_bit): New function.
15857 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15858 fix handling of aliases.
15859 * cgraph.h (struct varpool_node): Add writeonly flag.
15861 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15863 PR rtl-optimization/60969
15864 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15865 Calculate costs for this case.
15867 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15869 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15870 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15872 2014-05-16 Richard Biener <rguenther@suse.de>
15874 PR tree-optimization/61194
15875 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15876 bool patterns ending in a COND_EXPR.
15878 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15880 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15882 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15884 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
15885 where we were unable to cost an RTX.
15887 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15889 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
15892 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15893 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15895 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
15897 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15898 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15900 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
15901 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
15903 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15904 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15906 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
15909 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15910 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15912 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15915 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15916 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15918 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
15919 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
15921 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15922 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15924 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
15925 rotates and shifts.
15927 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15928 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15930 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
15931 ZERO_EXTEND and SIGN_EXTEND better.
15933 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15934 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15936 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
15937 logical operations.
15939 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15940 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15942 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
15943 costs when costing loads and stores to memory.
15945 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15946 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
15948 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
15951 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15953 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
15955 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15956 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15958 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
15960 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
15962 (aarch64_rtx_mult_cost): New.
15963 (aarch64_rtx_costs): Use it, refactor as appropriate.
15965 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15966 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
15968 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
15969 emit instructions, return number of instructions which would
15971 (aarch64_add_constant): Update call to aarch64_build_constant.
15972 (aarch64_output_mi_thunk): Likewise.
15973 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
15976 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15978 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
15979 (TARGET_RTX_COSTS): Call it.
15981 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15983 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
15984 (cortexa57_vector_cost): Likewise.
15985 (cortexa57_tunings): Use them.
15987 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15989 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
15990 (cpu_addrcost_table): Use it.
15991 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
15992 (aarch64_address_cost): Rewrite using aarch64_classify_address,
15995 2014-05-16 Richard Biener <rguenther@suse.de>
15997 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
15998 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
15999 (visit_phi): Ignore edges marked as not executable.
16000 (class cond_dom_walker): New.
16001 (cond_dom_walker::before_dom_children): Value-number
16002 control statements and mark successor edges as not
16003 executable if possible.
16004 (run_scc_vn): First walk all control statements in
16005 dominator order, marking edges as not executable.
16006 * tree-inline.c (copy_edges_for_bb): Be not confused
16007 about random edge flags.
16009 2014-05-16 Richard Biener <rguenther@suse.de>
16011 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16013 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16016 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16017 (__TM_simple_begin): Use it.
16018 (__TM_begin): Likewise.
16020 2014-05-15 Martin Jambor <mjambor@suse.cz>
16023 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16024 type_preserved flag when the indirect edge is polymorphic.
16026 2014-05-15 Martin Jambor <mjambor@suse.cz>
16028 PR tree-optimization/61090
16029 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16030 build_ref_for_model.
16032 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16034 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16035 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16037 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16039 PR tree-optimization/61158
16040 * fold-const.c (fold_binary_loc): If X is zero-extended and
16041 shiftc >= prec, make sure zerobits is all ones instead of
16042 invoking undefined behavior.
16044 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16046 * regcprop.h: New file.
16047 * regcprop.c (skip_debug_insn_p): New decl.
16048 (replace_oldest_value_reg): Check skip_debug_insn_p.
16049 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16050 * shrink-wrap.c: Include regcprop.h.
16051 (prepare_shrink_wrap): Call
16052 copyprop_hardreg_forward_bb_without_debug_insn.
16054 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16056 * shrink-wrap.h: Update comment.
16057 * shrink-wrap.c: Update comment.
16058 (next_block_for_reg): Rename to live_edge_for_reg.
16059 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16060 (move_insn_for_shrink_wrap): Split live_edge.
16061 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16063 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16065 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16067 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16068 * config/sparc/sparc.md (fptype_ut699): New attribute.
16069 (in_branch_delay): Return false if -mfix-ut699 is specified and
16070 fptype_ut699 is set to single.
16071 (truncdfsf2): Add fptype_ut699 attribute.
16072 (fix_truncdfsi2): Likewise.
16073 (floatsisf2): Change fptype attribute.
16074 (fix_truncsfsi2): Likewise.
16075 (negtf2_notv9): Delete.
16076 (negtf2_v9): Likewise.
16077 (negtf2_hq): New instruction.
16078 (negtf2): New instruction and splitter.
16079 (negdf2_notv9): Rewrite.
16080 (abstf2_notv9): Delete.
16081 (abstf2_hq_v9): Likewise.
16082 (abstf2_v9): Likewise.
16083 (abstf2_hq): New instruction.
16084 (abstf2): New instruction and splitter.
16085 (absdf2_notv9): Rewrite.
16087 2014-05-14 Cary Coutant <ccoutant@google.com>
16090 * opts.c (common_handle_option): Don't special-case "-g".
16091 (set_debug_level): Default to at least level 2 with "-g".
16093 2014-05-14 DJ Delorie <dj@redhat.com>
16095 * config/msp430/msp430.c (msp430_builtin): Add
16096 MSP430_BUILTIN_DELAY_CYCLES.
16097 (msp430_init_builtins): Register void __delay_cycles(long long).
16098 (msp430_builtin_decl): Add it.
16099 (cg_magic_constant): New.
16100 (msp430_expand_delay_cycles): New.
16101 (msp430_expand_builtin): Call it.
16102 (msp430_print_operand_raw): Change integer printing from "int" to
16104 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16105 (delay_cycles_start): New.
16106 (delay_cycles_end): New.
16107 (delay_cycles_32): New.
16108 (delay_cycles_32x): New.
16109 (delay_cycles_16): New.
16110 (delay_cycles_16x): New.
16111 (delay_cycles_2): New.
16112 (delay_cycles_1): New.
16113 * doc/extend.texi: Document __delay_cycles().
16115 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16117 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16118 length attribute computation.
16120 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16123 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16125 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16128 * config/sparc/sparc.md: Fix types of low and high in DI constant
16129 splitter. Use gen_int_mode in some other splitters.
16131 2014-05-14 Martin Jambor <mjambor@suse.cz>
16134 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16136 2014-05-14 James Norris <jnorris@codesourcery.com>
16138 * omp-low.c (expand_parallel_call): Remove shadow variable.
16139 (expand_omp_taskreg): Likewise.
16141 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16143 * common/config/i386/i386-common.c
16144 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16145 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16146 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16147 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16148 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16149 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16150 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16151 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16152 xsavecintrin.h, xsavesintrin.h.
16153 (x86_64-*-*): Ditto.
16154 * config/i386/clflushoptintrin.h: New.
16155 * config/i386/xsavecintrin.h: Ditto.
16156 * config/i386/xsavesintrin.h: Ditto.
16157 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16158 (bit_XSAVES): Ditto.
16159 (bit_XSAVES): Ditto.
16160 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16161 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16163 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16164 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16165 OPTION_MASK_ISA_XSAVES.
16166 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16167 -mxsavec, -mxsaves.
16168 (PTA_CLFLUSHOPT) Define.
16169 (PTA_XSAVEC): Ditto.
16170 (PTA_XSAVES): Ditto.
16171 (ix86_option_override_internal): Handle new options.
16172 (ix86_valid_target_attribute_inner_p): Ditto.
16173 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16174 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16175 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16176 (bdesc_special_args): Add __builtin_ia32_xsaves,
16177 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16178 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16179 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16180 (ix86_expand_builtin): Handle new builtins.
16181 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16182 (TARGET_CLFLUSHOPT_P): Ditto.
16183 (TARGET_XSAVEC): Ditto.
16184 (TARGET_XSAVEC_P): Ditto.
16185 (TARGET_XSAVES): Ditto.
16186 (TARGET_XSAVES_P): Ditto.
16187 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16188 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16189 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16191 (ANY_XRSTOR64): Ditto.
16193 (xrstor): Change into <xrstor>.
16194 (xrstor_rex64): Change into <xrstor>_rex64.
16195 (xrstor64): Change into <xrstor>64
16197 * config/i386/i386.opt (mclflushopt): New.
16200 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16202 * doc/invoke.texi: Document new options.
16204 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16206 PR rtl-optimization/60866
16207 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16208 Default it to -1. Pass it down to init_simplejump_data.
16209 (init_simplejump_data): New parameter old_seqno. Pass it down
16210 to get_seqno_for_a_jump.
16211 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16212 initializing new jump seqno as a last resort. Add comment.
16213 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16214 jump and pass it down to sel_init_new_insn.
16215 (sel_redirect_edge_and_branch_force): Likewise.
16217 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16219 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16220 shifted values to avoid build warning.
16222 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16224 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16225 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16226 (cfg_layout_merge_blocks): Likewise.
16227 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16229 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16231 PR rtl-optimization/60901
16232 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16233 bb predecessor belongs to the same scheduling region. Adjust comment.
16235 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16237 * doc/sourcebuild.texi: (dfp_hw): Document.
16238 (p8vector_hw): Likewise.
16239 (powerpc_eabi_ok): Likewise.
16240 (powerpc_elfv2): Likewise.
16241 (powerpc_htm_ok): Likewise.
16242 (ppc_recip_hw): Likewise.
16243 (vsx_hw): Likewise.
16245 2014-05-13 Cary Coutant <ccoutant@google.com>
16247 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16249 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16251 * gengtype-parse.c (require3): Eliminate in favor of...
16253 (require_template_declaration): Update to support optional single *
16256 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16257 (create_user_defined_type): Handle a single level of explicit
16258 pointerness within template arguments.
16259 (struct write_types_data): Add field "kind".
16260 (filter_type_name): Handle "*" character.
16261 (write_user_func_for_structure_ptr): Require a write_types_data
16262 rather than just a prefix string, so that we can look up the kind
16263 of the wtd and use it as an index into wrote_user_func_for_ptr,
16264 ensuring that such functions are written at most once. Support
16265 subclasses by invoking the marking function of the ultimate base class.
16266 (write_user_func_for_structure_body): Require a write_types_data
16267 rather than just a prefix string, so that we can pass this to
16268 write_user_func_for_structure_ptr.
16269 (write_func_for_structure): Likewise.
16270 (ggc_wtd): Add initializer of new "kind" field.
16271 (pch_wtd): Likewise.
16273 * gengtype.h (enum write_types_kinds): New.
16274 (struct type): Add field wrote_user_func_for_ptr to the "s"
16277 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16279 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16280 instead of const_binop.
16281 (fold_binary_loc): Likewise.
16283 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16285 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16286 calculation to match get_ref_base_and_extent.
16288 2014-05-13 Catherine Moore <clm@codesourcery.com>
16289 Sandra Loosemore <sandra@codesourcery.com>
16291 * configure.ac: Fix assembly for explicit JALR relocation check.
16292 * configure: Regenerate.
16294 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16296 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16297 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16298 Remove associated type declarations and initialisations.
16299 (arm_expand_neon_builtin): Likewise.
16300 (neon_emit_pair_result_insn): Delete.
16301 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16302 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16303 (neon_vzip<mode>): Likewise.
16304 (neon_vuzp<mode>): Likewise.
16306 2014-05-13 Richard Biener <rguenther@suse.de>
16309 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16310 it needs revisiting whether the call still may be tail-called.
16312 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16314 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16315 * rtl.h (block_symbol): Reduce number of fields to 2.
16316 (rtx_def): Add u2.symbol_ref_flags.
16317 (SYMBOL_REF_FLAGS): Use it.
16318 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16319 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16320 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16321 Lower index of SYMBOL_REF_DATA.
16322 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16323 Print SYMBOL_REF_FLAGS at the same time.
16324 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16326 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16328 * rtl.def (VAR_LOCATION): Remove "i" field.
16329 * rtl.h (rtx_def): Add u2.var_location_status.
16330 (PAT_VAR_LOCATION_STATUS): Use it.
16331 (gen_rtx_VAR_LOCATION): Declare.
16332 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16333 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16334 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16336 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16338 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16339 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16341 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16343 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16344 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16345 * rtl.h (rtx_def): Add insn_uid to u2 field.
16346 (RTX_FLAG_CHECK8): Delete in favor of...
16347 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16348 (INSN_DELETED_P): Update accordingly.
16349 (INSN_UID): Use u2.insn_uid.
16350 (INSN_CHAIN_CODE_P): Define.
16351 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16352 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16353 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16354 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16355 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16356 indices accordingly.
16357 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16358 Update indices for insn-chain rtxes.
16359 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16360 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16361 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16362 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16363 * combine.c (try_combine): Likewise.
16364 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16366 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16368 * rtl.def (REG): Remove middle field.
16369 * rtl.h (rtx_def): Add orignal_regno to u2.
16370 (ORIGINAL_REGNO): Use it instead of field 1.
16371 (REG_ATTRS): Lower field index accordingly.
16372 * gengtype.c (adjust_field_rtx_def): Remove handling of
16373 ORIGINAL_REGNO. Move REG_ATTRS index down.
16374 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16375 code that prints the REGNO.
16377 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16379 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16382 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16384 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16386 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16388 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16389 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16391 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16393 * config/aarch64/aarch64-protos.h
16394 (aarch64_hard_regno_caller_save_mode): New prototype.
16395 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16397 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16399 2014-05-13 Christian Bruel <christian.bruel@st.com>
16401 * target.def (mode_switching): New hook vector.
16402 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16403 (mode_exit, modepriority_to_mode): Likewise.
16404 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16405 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16406 * target.h: Include tm.h and hard-reg-set.h.
16407 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16408 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16409 * doc/tm.texi Regenerate.
16410 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16411 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16412 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16413 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16414 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16415 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16416 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16417 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16418 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16419 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16420 (ix86_emit_mode_set): Hookify.
16421 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16423 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16424 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16425 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16426 (epiphany_mode_priority_to_mode): Remove declaration.
16427 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16428 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16429 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16431 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16432 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16433 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16435 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16438 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16439 is const0_rtx, return immediately. Don't test count == 0 when
16442 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16444 * Makefile.in: add shrink-wrap.o.
16445 * config/i386/i386.c: include "shrink-wrap.h"
16446 * function.c: Likewise.
16447 (requires_stack_frame_p, next_block_for_reg,
16448 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16449 dup_block_and_redirect): Move to shrink-wrap.c
16450 (thread_prologue_and_epilogue_insns): Extract three code segments
16451 as functions in shrink-wrap.c
16452 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16454 * shrink-wrap.c: New file.
16455 * shrink-wrap.h: New file.
16457 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16459 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16460 reference to Solaris.
16462 2014-05-12 Mike Stump <mikestump@comcast.net>
16465 * genattrtab.c (filename): Add.
16466 (convert_set_attr_alternative): Improve error message.
16467 (check_defs): Restore read_md_filename for error messages.
16468 (gen_insn): Save filename.
16470 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16472 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16473 -fno-local-ivars and -fivar-visibility.
16474 * c-family/c.opt: Make -Wshadow also implicitly enable
16477 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16479 * doc/tm.texi: Remove reference to deleted macro.
16480 * doc/tm.texi.in: Likewise.
16482 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16485 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16488 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16491 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16492 * config/arm/aout.h (License): Same.
16493 * config/arm/bpabi.h (License): Same.
16494 * config/arm/elf.h (License): Same.
16495 * config/arm/linux-elf.h (License): Same.
16496 * config/arm/linux-gas.h (License): Same.
16497 * config/arm/netbsd-elf.h (License): Same.
16498 * config/arm/uclinux-eabi.h (License): Same.
16499 * config/arm/uclinux-elf.h (License): Same.
16500 * config/arm/vxworks.h (License): Same.
16502 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16504 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16505 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16506 number of operands to 3.
16507 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16508 * tree-nested.c (convert_nonlocal_omp_clauses,
16509 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16510 * gimplify.c (gimplify_scan_omp_clauses): Handle
16511 OMP_CLAUSE_LINEAR_STMT.
16512 * omp-low.c (lower_rec_input_clauses): Fix typo.
16513 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16514 cast between Fortran boolean_type_node and C _Bool if
16517 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16519 PR tree-optimization/61136
16520 * wide-int.h (multiple_of_p): Define a version that doesn't return
16522 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16523 integer_zerop/const_binop pair.
16524 (multiple_of_p): Likewise, converting both operands to widest_int
16527 2014-05-09 Teresa Johnson <tejohnson@google.com>
16529 * cgraphunit.c (analyze_functions): Use correct dump file.
16531 2014-05-09 Florian Weimer <fweimer@redhat.com>
16533 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16535 (stack_protect_return_slot_p): New function.
16536 (expand_used_vars): Call stack_protect_decl_p and
16537 stack_protect_return_slot_p for -fstack-protector-strong.
16539 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16540 Andrew Haley <aph@redhat.com>
16541 Richard Sandiford <rdsandiford@googlemail.com>
16543 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16546 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16548 PR middle-end/61111
16549 * fold-const.c (fold_binary_loc): Changed width of mask.
16551 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16553 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16554 unsigned int initializers for regno_in, regno_out.
16556 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16559 * config/avr/avr.md (cc): Add new attribute set_vzn.
16560 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16561 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16562 with INC, DEC or NEG.
16563 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16564 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16565 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16567 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16570 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16572 * wide-int.cc (UTItype): Define.
16573 (UDWtype): Define for appropriate W_TYPE_SIZE.
16575 2014-05-09 Richard Biener <rguenther@suse.de>
16577 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16578 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16579 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16580 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16581 ssa_propagate): Adjust.
16583 2014-05-08 Jeff Law <law@redhat.com>
16585 PR tree-optimization/61009
16586 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16587 tri-state rather than a boolean. When a block is too big to
16588 thread through, inform caller via negative return value.
16589 (thread_across_edge): If a block was too big for normal threading,
16590 then it's too big for a joiner too, so remove temporary equivalences
16591 and return immediately.
16593 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16594 Matthias Klose <doko@ubuntu.com>
16597 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16599 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16602 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16604 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16607 * config/alpha/alpha.c: Include gimple-iterator.h.
16608 (alpha_gimple_fold_builtin): New function. Move
16609 ALPHA_BUILTIN_UMULH folding from ...
16610 (alpha_fold_builtin): ... here.
16611 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16613 2014-05-08 Wei Mi <wmi@google.com>
16616 * config/i386/i386.c (ix86_compute_frame_layout): Update
16617 preferred_stack_boundary for call, expanded from tls descriptor.
16618 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16619 to depend on SP register.
16620 (*tls_local_dynamic_base_32_gnu): Ditto.
16621 (*tls_local_dynamic_32_once): Ditto.
16622 (tls_global_dynamic_64_<mode>): Set
16623 ix86_tls_descriptor_calls_expanded_in_cfun.
16624 (tls_local_dynamic_base_64_<mode>): Ditto.
16625 (tls_global_dynamic_32): Set
16626 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16627 to depend on SP register.
16628 (tls_local_dynamic_base_32): Ditto.
16630 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16632 * config/arm/arm_neon.h: Update comment.
16633 * config/arm/neon-docgen.ml: Delete.
16634 * config/arm/neon-gen.ml: Delete.
16635 * doc/arm-neon-intrinsics.texi: Update comment.
16637 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16639 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16641 (vand, vorr, veor, vorn, vbic): Remove.
16642 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16644 (neon_vsub_unspec): Likewise.
16645 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16647 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16649 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16650 (vadd_s16): Likewise.
16651 (vadd_s32): Likewise.
16652 (vadd_f32): Likewise.
16653 (vadd_u8): Likewise.
16654 (vadd_u16): Likewise.
16655 (vadd_u32): Likewise.
16656 (vadd_s64): Likewise.
16657 (vadd_u64): Likewise.
16658 (vaddq_s8): Likewise.
16659 (vaddq_s16): Likewise.
16660 (vaddq_s32): Likewise.
16661 (vaddq_s64): Likewise.
16662 (vaddq_f32): Likewise.
16663 (vaddq_u8): Likewise.
16664 (vaddq_u16): Likewise.
16665 (vaddq_u32): Likewise.
16666 (vaddq_u64): Likewise.
16667 (vmul_s8): Likewise.
16668 (vmul_s16): Likewise.
16669 (vmul_s32): Likewise.
16670 (vmul_f32): Likewise.
16671 (vmul_u8): Likewise.
16672 (vmul_u16): Likewise.
16673 (vmul_u32): Likewise.
16674 (vmul_p8): Likewise.
16675 (vmulq_s8): Likewise.
16676 (vmulq_s16): Likewise.
16677 (vmulq_s32): Likewise.
16678 (vmulq_f32): Likewise.
16679 (vmulq_u8): Likewise.
16680 (vmulq_u16): Likewise.
16681 (vmulq_u32): Likewise.
16682 (vsub_s8): Likewise.
16683 (vsub_s16): Likewise.
16684 (vsub_s32): Likewise.
16685 (vsub_f32): Likewise.
16686 (vsub_u8): Likewise.
16687 (vsub_u16): Likewise.
16688 (vsub_u32): Likewise.
16689 (vsub_s64): Likewise.
16690 (vsub_u64): Likewise.
16691 (vsubq_s8): Likewise.
16692 (vsubq_s16): Likewise.
16693 (vsubq_s32): Likewise.
16694 (vsubq_s64): Likewise.
16695 (vsubq_f32): Likewise.
16696 (vsubq_u8): Likewise.
16697 (vsubq_u16): Likewise.
16698 (vsubq_u32): Likewise.
16699 (vsubq_u64): Likewise.
16700 (vand_s8): Likewise.
16701 (vand_s16): Likewise.
16702 (vand_s32): Likewise.
16703 (vand_u8): Likewise.
16704 (vand_u16): Likewise.
16705 (vand_u32): Likewise.
16706 (vand_s64): Likewise.
16707 (vand_u64): Likewise.
16708 (vandq_s8): Likewise.
16709 (vandq_s16): Likewise.
16710 (vandq_s32): Likewise.
16711 (vandq_s64): Likewise.
16712 (vandq_u8): Likewise.
16713 (vandq_u16): Likewise.
16714 (vandq_u32): Likewise.
16715 (vandq_u64): Likewise.
16716 (vorr_s8): Likewise.
16717 (vorr_s16): Likewise.
16718 (vorr_s32): Likewise.
16719 (vorr_u8): Likewise.
16720 (vorr_u16): Likewise.
16721 (vorr_u32): Likewise.
16722 (vorr_s64): Likewise.
16723 (vorr_u64): Likewise.
16724 (vorrq_s8): Likewise.
16725 (vorrq_s16): Likewise.
16726 (vorrq_s32): Likewise.
16727 (vorrq_s64): Likewise.
16728 (vorrq_u8): Likewise.
16729 (vorrq_u16): Likewise.
16730 (vorrq_u32): Likewise.
16731 (vorrq_u64): Likewise.
16732 (veor_s8): Likewise.
16733 (veor_s16): Likewise.
16734 (veor_s32): Likewise.
16735 (veor_u8): Likewise.
16736 (veor_u16): Likewise.
16737 (veor_u32): Likewise.
16738 (veor_s64): Likewise.
16739 (veor_u64): Likewise.
16740 (veorq_s8): Likewise.
16741 (veorq_s16): Likewise.
16742 (veorq_s32): Likewise.
16743 (veorq_s64): Likewise.
16744 (veorq_u8): Likewise.
16745 (veorq_u16): Likewise.
16746 (veorq_u32): Likewise.
16747 (veorq_u64): Likewise.
16748 (vbic_s8): Likewise.
16749 (vbic_s16): Likewise.
16750 (vbic_s32): Likewise.
16751 (vbic_u8): Likewise.
16752 (vbic_u16): Likewise.
16753 (vbic_u32): Likewise.
16754 (vbic_s64): Likewise.
16755 (vbic_u64): Likewise.
16756 (vbicq_s8): Likewise.
16757 (vbicq_s16): Likewise.
16758 (vbicq_s32): Likewise.
16759 (vbicq_s64): Likewise.
16760 (vbicq_u8): Likewise.
16761 (vbicq_u16): Likewise.
16762 (vbicq_u32): Likewise.
16763 (vbicq_u64): Likewise.
16764 (vorn_s8): Likewise.
16765 (vorn_s16): Likewise.
16766 (vorn_s32): Likewise.
16767 (vorn_u8): Likewise.
16768 (vorn_u16): Likewise.
16769 (vorn_u32): Likewise.
16770 (vorn_s64): Likewise.
16771 (vorn_u64): Likewise.
16772 (vornq_s8): Likewise.
16773 (vornq_s16): Likewise.
16774 (vornq_s32): Likewise.
16775 (vornq_s64): Likewise.
16776 (vornq_u8): Likewise.
16777 (vornq_u16): Likewise.
16778 (vornq_u32): Likewise.
16779 (vornq_u64): Likewise.
16781 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16783 * wide-int.cc (UTItype): Define.
16784 (UDWtype): Define for appropriate W_TYPE_SIZE.
16786 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16788 PR tree-optimization/59100
16789 * tree-ssa-phiopt.c: Include tree-inline.h.
16790 (neutral_element_p, absorbing_element_p): New functions.
16791 (value_replacement): Handle conditional binary operations with a
16792 neutral or absorbing element.
16794 2014-05-08 Richard Biener <rguenther@suse.de>
16796 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16797 folding the expression.
16798 (valueize_expr): Remove.
16799 (visit_reference_op_load): Do not valueize the result of
16801 (simplify_binary_expression): Likewise.
16802 (simplify_unary_expression): Likewise.
16804 2014-05-08 Richard Biener <rguenther@suse.de>
16806 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16807 looking at TYPE_ARG_TYPES.
16809 2014-05-08 Richard Biener <rguenther@suse.de>
16811 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16812 pointer propagation special-case.
16814 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16816 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16817 core part of address expressions.
16819 2014-05-08 Alan Modra <amodra@gmail.com>
16822 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16823 loads and stores when -mno-strict-align at any alignment.
16824 (expand_block_clear): Similarly. Also correct calculation of
16827 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16829 PR middle-end/39246
16830 * tree-complex.c (expand_complex_move): Keep line info when expanding
16832 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16833 of complex expression. Use new argument to display correct location
16834 for values coming from phi statement.
16835 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16836 (warn_uninitialized_phi): Pass location of phi argument to
16838 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16839 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16841 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16843 * config/rs6000/predicates.md (indexed_address_mem): New.
16844 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16845 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16846 fpstore_ux, fpstore_u.
16847 (sign_extend, indexed, update): New.
16848 (cell_micro): Adjust.
16849 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16850 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16851 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16852 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16853 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16854 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16855 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16856 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16857 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16858 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16859 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16860 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16861 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16862 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16863 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16865 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16866 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16867 *vsx_extract_<mode>_store): Adjust.
16868 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16869 is_cracked_insn, insn_must_be_first_in_group,
16870 insn_must_be_last_in_group): Adjust.
16872 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16874 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16875 ppc440-fpstore): Adjust.
16876 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16877 ppc476-fpstore): Adjust.
16878 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16879 ppc601-fpstore): Adjust.
16880 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16882 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
16884 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
16885 ppc7450-fpstore): Adjust.
16886 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
16887 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
16888 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
16890 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
16891 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
16892 cell-fpstore, cell-fpstore-update): Adjust.
16893 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
16894 ppce300c3_store, ppce300c3_fpstore): Adjust.
16895 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
16896 e500mc_fpstore): Adjust.
16897 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
16898 e500mc64_store, e500mc64_fpstore): Adjust.
16899 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
16900 e5500_fpstore): Adjust.
16901 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
16902 e6500_fpstore): Adjust.
16903 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
16905 * config/rs6000/power4.md (power4-load, power4-load-ext,
16906 power4-load-ext-update, power4-load-ext-update-indexed,
16907 power4-load-update-indexed, power4-load-update, power4-fpload,
16908 power4-fpload-update, power4-store, power4-store-update,
16909 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
16911 * config/rs6000/power5.md (power5-load, power5-load-ext,
16912 power5-load-ext-update, power5-load-ext-update-indexed,
16913 power5-load-update-indexed, power5-load-update, power5-fpload,
16914 power5-fpload-update, power5-store, power5-store-update,
16915 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
16917 * config/rs6000/power6.md (power6-load, power6-load-ext,
16918 power6-load-update, power6-load-update-indexed,
16919 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
16920 power6-fpload-update, power6-store, power6-store-update,
16921 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
16923 * config/rs6000/power7.md (power7-load, power7-load-ext,
16924 power7-load-update, power7-load-update-indexed,
16925 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
16926 power7-fpload-update, power7-store, power7-store-update,
16927 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
16929 * config/rs6000/power8.md (power8-load, power8-load-update,
16930 power8-load-ext, power8-load-ext-update, power8-fpload,
16931 power8-fpload-update, power8-store, power8-store-update-indexed,
16932 power8-fpstore, power8-fpstore-update): Adjust.
16933 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
16935 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
16936 titan_lsu_store, titan_lsu_fpstore): Adjust.
16937 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
16939 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
16942 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
16943 unrolled byte insns. Emit address increments after move insns.
16945 2014-05-07 David Malcolm <dmalcolm@redhat.com>
16947 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
16948 const_gimple, rather than a gimple.
16949 (gimple_call_builtin_p): Likewise, for the three variants.
16951 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
16952 (gimple_call_builtin_p): Likewise, for the three variants.
16954 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
16956 PR tree-optimization/61095
16957 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
16959 2014-05-07 Richard Biener <rguenther@suse.de>
16961 PR tree-optimization/61034
16962 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
16963 (maybe_skip_until): Use translate to take into account
16964 lattices when trying to do disambiguations.
16965 (get_continuation_for_phi_1): Likewise.
16966 (get_continuation_for_phi): Adjust for added translate arguments.
16967 (walk_non_aliased_vuses): Likewise.
16968 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
16969 (walk_non_aliased_vuses): Likewise.
16970 (call_may_clobber_ref_p_1): Declare.
16971 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
16972 calls. Stop early if we are only supposed to disambiguate.
16973 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
16975 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
16977 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
16978 Emit an error when the function has arguments.
16980 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
16982 * cfgloop.h (unswitch_loops): Remove.
16983 * doc/passes.texi: Remove references to loop-unswitch.c
16984 * timevar.def (TV_LOOP_UNSWITCH): Remove.
16986 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
16988 * tree-vect-data-refs.c (vect_grouped_load_supported): New
16989 check for loads group of length 3.
16990 (vect_permute_load_chain): New permutations for loads group of
16992 * tree-vect-stmts.c (vect_model_load_cost): Change cost
16993 of vec_perm_shuffle for the new permutations.
16995 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
16997 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
16998 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
16999 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17000 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17001 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17002 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17003 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17004 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17006 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17008 * loop-unswitch.c: Delete.
17010 2014-05-07 Richard Biener <rguenther@suse.de>
17012 * config.gcc: Always set need_64bit_hwint to yes.
17014 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17016 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17017 of using optimize_size.
17019 2014-05-06 Mike Stump <mikestump@comcast.net>
17021 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17023 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17025 * config/i386/sse.md (*mov<mode>_internal)
17026 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17027 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17028 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17029 (*<code><mode>3, *andnot<mode>3<mask_name>)
17030 (<mask_codefor><code><mode>3<mask_name>): Only consider
17031 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17033 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17036 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17038 * lra-constraints.c (valid_address_p): Move earlier in file.
17039 Add a constraint argument to the address_info version.
17040 (satisfies_memory_constraint_p): New function.
17041 (satisfies_address_constraint_p): Likewise.
17042 (process_alt_operands, curr_insn_transform): Use them.
17043 (process_address): Pass the constraint to valid_address_p when
17044 checking address operands.
17046 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17048 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17049 to their respective blocks. Fix inadvertent use of "node".
17051 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17053 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17055 (init_emit_once): ...here.
17056 * rtl.h (init_derived_machine_modes): Declare.
17057 * toplev.c (do_compile): Call it even if no_backend.
17059 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17060 Mike Stump <mikestump@comcast.net>
17061 Richard Sandiford <rdsandiford@googlemail.com>
17062 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17064 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17065 (rtx_equal_for_memref_p): Update comment.
17066 (adjust_offset_for_component_ref): Use wide-int interfaces.
17067 * builtins.c (get_object_alignment_2): Likewise.
17068 (c_readstr): Likewise.
17069 (target_char_cast): Add comment.
17070 (determine_block_size): Use wide-int interfaces.
17071 (expand_builtin_signbit): Likewise.
17072 (fold_builtin_int_roundingfn): Likewise.
17073 (fold_builtin_bitop): Likewise.
17074 (fold_builtin_bswap): Likewise.
17075 (fold_builtin_logarithm): Use signop.
17076 (fold_builtin_pow): Likewise.
17077 (fold_builtin_memory_op): Use wide-int interfaces.
17078 (fold_builtin_object_size): Likewise.
17079 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17080 nb_iterations_estimate.
17081 (record_niter_bound): Use wide-int interfaces.
17082 (get_estimated_loop_iterations_int): Likewise.
17083 (get_estimated_loop_iterations): Likewise.
17084 (get_max_loop_iterations): Likewise.
17085 * cfgloop.h: Include wide-int.h.
17086 (struct nb_iter_bound): Change bound to widest_int.
17087 (struct loop): Change nb_iterations_upper_bound and
17088 nb_iterations_estimate to widest_int.
17089 (record_niter_bound): Switch to use widest_int.
17090 (get_estimated_loop_iterations): Likewise.
17091 (get_max_loop_iterations): Likewise.
17092 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17093 update for wide-int.
17094 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17095 * combine.c (try_combine): Likewise.
17096 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17097 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17099 (aarch64_float_const_representable_p): Likewise.
17100 * config/arc/arc.c: Include wide-int.h.
17101 (arc_can_use_doloop_p): Use wide-int interfaces.
17102 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17103 (vfp3_const_double_index): Likewise.
17104 * config/avr/avr.c (avr_out_round): Likewise.
17105 (avr_fold_builtin): Likewise.
17106 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17107 (bfin_can_use_doloop_p): Likewise.
17108 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17109 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17110 * config/i386/i386.c: Include wide-int.h.
17111 (ix86_data_alignment): Use wide-int interfaces.
17112 (ix86_local_alignment): Likewise.
17113 (ix86_emit_swsqrtsf): Update real_from_integer.
17114 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17115 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17116 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17117 (zero_constant): Likewise.
17118 (input_operand): Likewise.
17119 (splat_input_operand): Likewise.
17120 (non_logical_cint_operand): Change const_double to const_wide_int.
17121 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17122 (easy_altivec_constant): Remove comment.
17123 (paired_expand_vector_init): Use CONSTANT_P.
17124 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17125 (rs6000_emit_move): Update checks.
17126 (rs6000_aggregate_candidate): Use wide-int interfaces.
17127 (rs6000_expand_ternop_builtin): Likewise.
17128 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17129 (rs6000_assemble_integer): Likewise.
17130 (rs6000_hash_constant): Likewise.
17131 (output_toc): Likewise.
17132 (rs6000_rtx_costs): Likewise.
17133 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17134 * config/rs6000/rs6000-c.c: Include wide-int.h.
17135 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17136 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17137 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17138 Handle CONST_WIDE_INT.
17139 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17140 Use tree_fits_uhwi_p.
17141 * config/sparc/sparc.c: Include wide-int.h.
17142 (sparc_fold_builtin): Use wide-int interfaces.
17143 * config/vax/vax.c: Include wide-int.h.
17144 (vax_float_literal): Use real_from_integer.
17145 * coretypes.h (struct hwivec_def): New.
17147 (const_hwivec): New.
17148 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17149 (equiv_constant): Handle CONST_WIDE_INT.
17150 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17151 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17152 * dbxout.c (stabstr_U): Use wide-int interfaces.
17153 (dbxout_type): Update to use cst_fits_shwi_p.
17154 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17155 (TARGET_SUPPORTS_WIDE_INT): Add default.
17156 * dfp.c: Include wide-int.h.
17157 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17158 decimal_real_to_integer.
17159 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17160 decimal_real_to_integer.
17161 * doc/generic.texi (Constant expressions): Update for wide_int.
17162 * doc/rtl.texi (const_double): Likewise.
17163 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17164 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17165 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17166 (REAL_VALUE_FROM_INT): Remove.
17167 (TARGET_SUPPORTS_WIDE_INT): New.
17168 * doc/tm.texi: Regenerate.
17169 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17170 * double-int.h: Include wide-int.h.
17171 (struct wi::int_traits): New.
17172 * dwarf2out.c (get_full_len): New.
17173 (dw_val_equal_p): Add case dw_val_class_wide_int.
17174 (size_of_loc_descr): Likewise.
17175 (output_loc_operands): Likewise.
17176 (insert_double): Remove.
17177 (insert_wide_int): New.
17178 (add_AT_wide): New.
17179 (print_die): Add case dw_val_class_wide_int.
17180 (attr_checksum): Likewise.
17181 (attr_checksum_ordered): Likewise.
17182 (same_dw_val_p): Likewise.
17183 (size_of_die): Likewise.
17184 (value_format): Likewise.
17185 (output_die): Likewise.
17186 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17188 (clz_loc_descriptor): Use wide-int interfaces.
17189 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17190 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17191 (round_up_to_align): Use wide-int interfaces.
17192 (field_byte_offset): Likewise.
17193 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17194 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17195 CONST_DOUBLE handling. Use wide-int interfaces.
17196 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17197 (gen_enumeration_type_die): Use add_AT_wide.
17198 (hash_loc_operands): Add case dw_val_class_wide_int.
17199 (compare_loc_operands): Likewise.
17200 * dwarf2out.h: Include wide-int.h.
17201 (wide_int_ptr): New.
17202 (enum dw_val_class): Add dw_val_class_wide_int.
17203 (struct dw_val_struct): Add val_wide.
17204 * emit-rtl.c (const_wide_int_htab): New.
17205 (const_wide_int_htab_hash): New.
17206 (const_wide_int_htab_eq): New.
17207 (lookup_const_wide_int): New.
17208 (const_double_htab_hash): Use wide-int interfaces.
17209 (const_double_htab_eq): Likewise.
17210 (rtx_to_double_int): Conditionally compile for wide-int.
17211 (immed_double_int_const): Rename to immed_wide_int_const and
17212 update for wide-int.
17213 (immed_double_const): Conditionally compile for wide-int.
17214 (init_emit_once): Use wide-int interfaces.
17215 * explow.c (plus_constant): Likewise.
17216 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17217 (lshift_value): Use wide-int interfaces.
17218 (expand_mult): Likewise.
17219 (choose_multiplier): Likewise.
17220 (expand_smod_pow2): Likewise.
17221 (make_tree): Likewise.
17222 * expr.c (convert_modes): Consolidate handling of constants.
17223 Use wide-int interfaces.
17224 (emit_group_load_1): Add note.
17225 (store_expr): Update comment.
17226 (get_inner_reference): Use wide-int interfaces.
17227 (expand_constructor): Update comment.
17228 (expand_expr_real_2): Use wide-int interfaces.
17229 (expand_expr_real_1): Likewise.
17230 (reduce_to_bit_field_precision): Likewise.
17231 (const_vector_from_tree): Likewise.
17232 * final.c: Include wide-int-print.h.
17233 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17234 * fixed-value.c: Include wide-int.h.
17235 (fixed_from_string): Use wide-int interfaces.
17236 (fixed_to_decimal): Likewise.
17237 (fixed_convert_from_real): Likewise.
17238 (real_convert_from_fixed): Likewise.
17239 * fold-const.h (mem_ref_offset): Return an offset_int.
17240 (div_if_zero_remainder): Remove code parameter.
17241 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17242 Use wide-int interfaces.
17243 (may_negate_without_overflow_p): Use wide-int interfaces.
17244 (negate_expr_p): Likewise.
17245 (fold_negate_expr): Likewise.
17246 (int_const_binop_1): Likewise.
17247 (const_binop): Likewise.
17248 (fold_convert_const_int_from_int): Likewise.
17249 (fold_convert_const_int_from_real): Likewise.
17250 (fold_convert_const_int_from_fixed): Likewise.
17251 (fold_convert_const_fixed_from_int): Likewise.
17252 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17253 (sign_bit_p): Use wide-int interfaces.
17254 (make_range_step): Likewise.
17255 (build_range_check): Likewise. Pass an integer of the correct type
17256 instead of using integer_one_node.
17257 (range_predecessor): Pass an integer of the correct type instead
17258 of using integer_one_node.
17259 (range_successor): Likewise.
17260 (merge_ranges): Likewise.
17261 (unextend): Use wide-int interfaces.
17262 (extract_muldiv_1): Likewise.
17263 (fold_div_compare): Likewise.
17264 (fold_single_bit_test): Likewise.
17265 (fold_sign_changed_comparison): Likewise.
17266 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17267 (fold_plusminus_mult_expr): Use wide-int interfaces.
17268 (native_encode_int): Likewise.
17269 (native_interpret_int): Likewise.
17270 (fold_unary_loc): Likewise.
17271 (pointer_may_wrap_p): Likewise.
17272 (size_low_cst): Likewise.
17273 (mask_with_tz): Likewise.
17274 (fold_binary_loc): Likewise.
17275 (fold_ternary_loc): Likewise.
17276 (multiple_of_p): Likewise.
17277 (tree_call_nonnegative_warnv_p): Update calls to
17278 tree_int_cst_min_precision and real_from_integer.
17279 (fold_negate_const): Use wide-int interfaces.
17280 (fold_abs_const): Likewise.
17281 (fold_relational_const): Use tree_int_cst_lt.
17282 (round_up_loc): Use wide-int interfaces.
17283 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17284 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17285 * gengtype.c: Remove include of double-int.h.
17286 (do_typedef): Use wide-int interfaces.
17287 (open_base_files): Add wide-int.h.
17288 (main): Add offset_int and widest_int typedefs.
17289 * gengtype-lex.l: Handle "^".
17290 (CXX_KEYWORD): Add "static".
17291 * gengtype-parse.c (require3): New.
17292 (require_template_declaration): Handle constant template arguments
17293 and nested templates.
17294 * gengtype-state.c: Don't include "double-int.h".
17295 * genpreds.c (write_one_predicate_function): Update comment.
17296 (write_tm_constrs_h): Add check for hval and lval use in
17298 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17299 (add_to_sequence): Likewise.
17300 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17301 and const_double_operand.
17302 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17304 * gimple-fold.c (get_base_constructor): Likewise.
17305 (fold_array_ctor_reference): Likewise.
17306 (fold_nonarray_ctor_reference): Likewise.
17307 (fold_const_aggregate_ref_1): Likewise.
17308 (gimple_val_nonnegative_real_p): Likewise.
17309 (gimple_fold_indirect_ref): Likewise.
17310 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17311 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17312 (struct slsr_cand_d): Change index to be widest_int.
17313 (struct incr_info_d): Change incr to be widest_int.
17314 (alloc_cand_and_find_basis): Use wide-int interfaces.
17315 (slsr_process_phi): Likewise.
17316 (backtrace_base_for_ref): Likewise. Return a widest_int.
17317 (restructure_reference): Take a widest_int instead of a double_int.
17318 (slsr_process_ref): Use wide-int interfaces.
17319 (create_mul_ssa_cand): Likewise.
17320 (create_mul_imm_cand): Likewise.
17321 (create_add_ssa_cand): Likewise.
17322 (create_add_imm_cand): Take a widest_int instead of a double_int.
17323 (slsr_process_add): Use wide-int interfaces.
17324 (slsr_process_cast): Likewise.
17325 (slsr_process_copy): Likewise.
17326 (dump_candidate): Likewise.
17327 (dump_incr_vec): Likewise.
17328 (replace_ref): Likewise.
17329 (cand_increment): Likewise. Return a widest_int.
17330 (cand_abs_increment): Likewise.
17331 (replace_mult_candidate): Take a widest_int instead of a double_int.
17332 (replace_unconditional_candidate): Use wide-int interfaces.
17333 (incr_vec_index): Take a widest_int instead of a double_int.
17334 (create_add_on_incoming_edge): Likewise.
17335 (create_phi_basis): Use wide-int interfaces.
17336 (replace_conditional_candidate): Likewise.
17337 (record_increment): Take a widest_int instead of a double_int.
17338 (record_phi_increments): Use wide-int interfaces.
17339 (phi_incr_cost): Take a widest_int instead of a double_int.
17340 (lowest_cost_path): Likewise.
17341 (total_savings): Likewise.
17342 (analyze_increments): Use wide-int interfaces.
17343 (ncd_with_phi): Take a widest_int instead of a double_int.
17344 (ncd_of_cand_and_phis): Likewise.
17345 (nearest_common_dominator_for_cands): Likewise.
17346 (insert_initializers): Use wide-int interfaces.
17347 (all_phi_incrs_profitable): Likewise.
17348 (replace_one_candidate): Likewise.
17349 (replace_profitable_candidates): Likewise.
17350 * godump.c: Include wide-int-print.h.
17351 (go_output_typedef): Use wide-int interfaces.
17352 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17353 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17354 (build_loop_iteration_domains): Likewise.
17355 * hooks.h: Include wide-int.h rather than double-int.h.
17356 (hook_bool_dint_dint_uint_bool_true): Delete.
17357 (hook_bool_wint_wint_uint_bool_true): Declare.
17358 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17359 (hook_bool_wint_wint_uint_bool_true): New.
17360 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17362 (ubsan_expand_si_overflow_mul_check): Likewise.
17363 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17364 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17365 (get_ancestor_addr_info): Likewise.
17366 (ipa_modify_call_arguments): Likewise.
17367 * loop-doloop.c (doloop_modify): Likewise.
17368 (doloop_optimize): Likewise.
17369 * loop-iv.c (iv_number_of_iterations): Likewise.
17370 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17371 (unroll_loop_constant_iterations): Likewise.
17372 (decide_unroll_runtime_iterations): Likewise.
17373 (unroll_loop_runtime_iterations): Likewise.
17374 (decide_peel_simple): Likewise.
17375 (decide_unroll_stupid): Likewise.
17376 * lto-streamer-in.c (streamer_read_wi): Add.
17377 (input_cfg): Use wide-int interfaces.
17378 (lto_input_tree_1): Likewise.
17379 * lto-streamer-out.c (streamer_write_wi): Add.
17380 (hash_tree): Use wide-int interfaces.
17381 (output_cfg): Likewise.
17382 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17383 (GTFILES): Add wide-int.h and signop.h.
17384 (TAGS): Look for .cc files too.
17385 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17386 * optabs.c (expand_subword_shift): Likewise.
17387 (expand_doubleword_shift): Likewise.
17388 (expand_absneg_bit): Likewise.
17389 (expand_copysign_absneg): Likewise.
17390 (expand_copysign_bit): Likewise.
17391 * postreload.c (reload_cse_simplify_set): Likewise.
17392 * predict.c (predict_iv_comparison): Likewise.
17393 * pretty-print.h: Include wide-int-print.h.
17395 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17396 * print-tree.c: Include wide-int-print.h.
17397 (print_node_brief): Use wide-int interfaces.
17398 (print_node): Likewise.
17399 * read-rtl.c (validate_const_wide_int): New.
17400 (read_rtx_code): Add CONST_WIDE_INT case.
17401 * real.c: Include wide-int.h.
17402 (real_to_integer2): Delete.
17403 (real_to_integer): New function, returning a wide_int.
17404 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17405 (ten_to_ptwo): Update call to real_from_integer.
17406 (real_digit): Likewise.
17407 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17408 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17409 (REAL_VALUE_TO_INT): Delete.
17410 (real_to_integer): Declare a wide-int form.
17411 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17412 * recog.c (const_int_operand): Improve comment.
17413 (const_scalar_int_operand): New.
17414 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17415 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17416 (split_double): Likewise.
17417 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17418 (rtx_size): Likewise.
17419 (rtx_alloc_stat_v): New.
17420 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17421 (cwi_output_hex): New.
17422 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17423 (cwi_check_failed_bounds): New.
17424 * rtl.def (CONST_WIDE_INT): New.
17425 * rtl.h: Include <utility> and wide-int.h.
17426 (struct hwivec_def): New.
17427 (CWI_GET_NUM_ELEM): New.
17428 (CWI_PUT_NUM_ELEM): New.
17429 (struct rtx_def): Add num_elem and hwiv.
17430 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17431 (CASE_CONST_UNIQUE): Likewise.
17432 (CASE_CONST_ANY): Likewise.
17433 (CONST_SCALAR_INT_P): Likewise.
17434 (CONST_WIDE_INT_P): New.
17436 (HWIVEC_CHECK): New.
17437 (cwi_check_failed_bounds): New.
17439 (HWIVEC_CHECK): New.
17440 (CONST_WIDE_INT_VEC) New.
17441 (CONST_WIDE_INT_NUNITS) New.
17442 (CONST_WIDE_INT_ELT) New.
17443 (rtx_mode_t): New type.
17444 (wi::int_traits <rtx_mode_t>): New.
17446 (wi::min_value): New.
17447 (wi::max_value): New.
17449 (const_wide_int_alloc): New.
17450 (immed_wide_int_const): New.
17451 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17452 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17453 * signop.h: New file.
17454 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17455 (simplify_const_unary_operation): Use wide-int interfaces.
17456 (simplify_binary_operation_1): Likewise.
17457 (simplify_const_binary_operation): Likewise.
17458 (simplify_const_relational_operation): Likewise.
17459 (simplify_immed_subreg): Likewise.
17460 * stmt.c (expand_case): Likewise.
17461 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17462 signop rather than a bool.
17463 * stor-layout.c (layout_type): Use wide-int interfaces.
17464 (initialize_sizetypes): Update calls to
17465 set_min_and_max_values_for_integral_type.
17466 (set_min_and_max_values_for_integral_type): Take a signop rather
17467 than a bool. Use wide-int interfaces.
17468 (fixup_signed_type): Update accordingly. Remove
17469 HOST_BITS_PER_DOUBLE_INT limit.
17470 (fixup_unsigned_type): Likewise.
17471 * system.h (STATIC_CONSTANT_P): New.
17472 (STATIC_ASSERT): New.
17473 * target.def (can_use_doloop_p): Take widest_ints rather than
17475 * target.h: Include wide-int.h rather than double-int.h.
17476 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17478 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17479 rather than INT_CST_LT_UNSIGNED.
17480 (can_use_doloop_if_innermost): Take widest_ints rather than
17482 * tree-affine.c: Include wide-int-print.h.
17483 (double_int_ext_for_comb): Delete.
17484 (wide_int_ext_for_comb): New.
17485 (aff_combination_zero): Use wide-int interfaces.
17486 (aff_combination_const): Take a widest_int instead of a double_int.
17487 (aff_combination_elt): Use wide-int interfaces.
17488 (aff_combination_scale): Take a widest_int instead of a double_int.
17489 (aff_combination_add_elt): Likewise.
17490 (aff_combination_add_cst): Likewise.
17491 (aff_combination_add): Use wide-int interfaces.
17492 (aff_combination_convert): Likewise.
17493 (tree_to_aff_combination): Likewise.
17494 (add_elt_to_tree): Take a widest_int instead of a double_int.
17495 (aff_combination_to_tree): Use wide-int interfaces.
17496 (aff_combination_remove_elt): Likewise.
17497 (aff_combination_add_product): Take a widest_int instead of
17499 (aff_combination_mult): Use wide-int interfaces.
17500 (aff_combination_expand): Likewise.
17501 (double_int_constant_multiple_p): Delete.
17502 (wide_int_constant_multiple_p): New.
17503 (aff_combination_constant_multiple_p): Take a widest_int pointer
17504 instead of a double_int pointer.
17505 (print_aff): Use wide-int interfaces.
17506 (get_inner_reference_aff): Take a widest_int pointer
17507 instead of a double_int pointer.
17508 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17509 * tree-affine.h: Include wide-int.h.
17510 (struct aff_comb_elt): Change type of coef to widest_int.
17511 (struct affine_tree_combination): Change type of offset to widest_int.
17512 (double_int_ext_for_comb): Delete.
17513 (wide_int_ext_for_comb): New.
17514 (aff_combination_const): Use widest_int instead of double_int.
17515 (aff_combination_scale): Likewise.
17516 (aff_combination_add_elt): Likewise.
17517 (aff_combination_constant_multiple_p): Likewise.
17518 (get_inner_reference_aff): Likewise.
17519 (aff_comb_cannot_overlap_p): Likewise.
17520 (aff_combination_zero_p): Use wide-int interfaces.
17521 * tree.c: Include tree.h.
17522 (init_ttree): Use make_int_cst.
17523 (tree_code_size): Removed code for INTEGER_CST case.
17524 (tree_size): Add INTEGER_CST case.
17525 (make_node_stat): Update comment.
17526 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17527 (build_int_cst_type): Use wide-int interfaces.
17528 (double_int_to_tree): Likewise.
17529 (double_int_fits_to_tree_p): Delete.
17530 (force_fit_type_double): Delete.
17531 (force_fit_type): New.
17532 (int_cst_hash_hash): Use wide-int interfaces.
17533 (int_cst_hash_eq): Likewise.
17534 (build_int_cst_wide): Delete.
17535 (wide_int_to_tree): New.
17536 (cache_integer_cst): Use wide-int interfaces.
17537 (build_low_bits_mask): Likewise.
17538 (cst_and_fits_in_hwi): Likewise.
17539 (real_value_from_int_cst): Likewise.
17540 (make_int_cst_stat): New.
17541 (integer_zerop): Use wide_int interfaces.
17542 (integer_onep): Likewise.
17543 (integer_all_onesp): Likewise.
17544 (integer_pow2p): Likewise.
17545 (integer_nonzerop): Likewise.
17546 (tree_log2): Likewise.
17547 (tree_floor_log2): Likewise.
17548 (tree_ctz): Likewise.
17549 (int_size_in_bytes): Likewise.
17550 (mem_ref_offset): Return an offset_int rather than a double_int.
17551 (build_type_attribute_qual_variant): Use wide_int interfaces.
17552 (type_hash_eq): Likewise
17553 (tree_int_cst_equal): Likewise.
17554 (tree_int_cst_lt): Delete.
17555 (tree_int_cst_compare): Likewise.
17556 (tree_fits_shwi_p): Use wide_int interfaces.
17557 (tree_fits_uhwi_p): Likewise.
17558 (tree_int_cst_sign_bit): Likewise.
17559 (tree_int_cst_sgn): Likewise.
17560 (tree_int_cst_min_precision): Take a signop rather than a bool.
17561 (simple_cst_equal): Use wide_int interfaces.
17562 (compare_tree_int): Likewise.
17563 (iterative_hash_expr): Likewise.
17564 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17566 (get_type_static_bounds): Use wide_int interfaces.
17567 (tree_int_cst_elt_check_failed): New.
17568 (build_common_tree_nodes): Reordered to set prec before filling in
17570 (int_cst_value): Check cst_and_fits_in_hwi.
17571 (widest_int_cst_value): Use wide_int interfaces.
17572 (upper_bound_in_type): Likewise.
17573 (lower_bound_in_type): Likewise.
17574 (num_ending_zeros): Likewise.
17575 (drop_tree_overflow): Likewise.
17576 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17577 (gen_conditions_for_pow_cst_base): Likewise.
17578 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17579 (group_case_labels_stmt): Use wide-int interfaces.
17580 (verify_gimple_assign_binary): Likewise.
17581 (print_loop): Likewise.
17582 * tree-chrec.c (tree_fold_binomial): Likewise.
17583 * tree-core.h (struct tree_base): Add int_length.
17584 (struct tree_int_cst): Change rep of value.
17585 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17586 (dr_may_alias_p): Likewise.
17587 (max_stmt_executions_tree): Likewise.
17588 * tree.def (INTEGER_CST): Update comment.
17589 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17590 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17591 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17592 (dequeue_and_dump): Use wide-int interfaces.
17593 * tree.h: Include wide-int.h.
17594 (NULL_TREE): Moved to earlier loc in file.
17595 (TREE_INT_CST_ELT_CHECK): New.
17596 (tree_int_cst_elt_check_failed): New.
17598 (TREE_INT_CST): Delete.
17599 (TREE_INT_CST_LOW): Use wide-int interfaces.
17600 (TREE_INT_CST_HIGH): Delete.
17601 (TREE_INT_CST_NUNITS): New.
17602 (TREE_INT_CST_EXT_NUNITS): Likewise.
17603 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17604 (TREE_INT_CST_ELT): Likewise.
17605 (INT_CST_LT): Delete.
17606 (tree_int_cst_elt_check): New (two forms).
17607 (type_code_size): Update comment.
17608 (make_int_cst_stat, make_int_cst): New.
17609 (tree_to_double_int): Delete.
17610 (double_int_fits_to_tree_p): Delete.
17611 (force_fit_type_double): Delete.
17612 (build_int_cstu): Replace with out-of-line function.
17613 (build_int_cst_wide): Delete.
17614 (tree_int_cst_lt): Define inline.
17615 (tree_int_cst_le): New.
17616 (tree_int_cst_compare): Define inline.
17617 (tree_int_cst_min_precision): Take a signop rather than a bool.
17618 (wi::int_traits <const_tree>): New.
17619 (wi::int_traits <tree>): New.
17620 (wi::extended_tree): New.
17621 (wi::int_traits <wi::extended_tree>): New.
17622 (wi::to_widest): New.
17623 (wi::to_offset): New.
17624 (wi::fits_to_tree_p): New.
17625 (wi::min_value): New.
17626 (wi::max_value): New.
17627 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17628 (copy_tree_body_r): Likewise.
17629 * tree-object-size.c (compute_object_offset): Likewise.
17630 (addr_object_size): Likewise.
17631 * tree-predcom.c: Include wide-int-print.h.
17632 (struct dref_d): Change type of offset to widest_int.
17633 (dump_dref): Call wide-int printer.
17634 (aff_combination_dr_offset): Use wide-int interfaces.
17635 (determine_offset): Take a widest_int pointer rather than a
17636 double_int pointer.
17637 (split_data_refs_to_components): Use wide-int interfaces.
17638 (suitable_component_p): Likewise.
17639 (order_drefs): Likewise.
17640 (add_ref_to_chain): Likewise.
17641 (valid_initializer_p): Likewise.
17642 (determine_roots_comp): Likewise.
17643 * tree-pretty-print.c: Include wide-int-print.h.
17644 (dump_generic_node): Use wide-int interfaces.
17645 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17646 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17647 (move_fixed_address_to_symbol): Likewise.
17648 (move_hint_to_base): Likewise.
17649 (move_pointer_to_base): Likewise.
17650 (move_variant_to_index): Likewise.
17651 (most_expensive_mult_to_index): Likewise.
17652 (addr_to_parts): Likewise.
17653 (copy_ref_info): Likewise.
17654 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17655 (indirect_refs_may_alias_p): Likewise.
17656 (stmt_kills_ref_p_1): Likewise.
17657 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17658 * tree-ssa-ccp.c: Update comment at top of file. Include
17660 (struct prop_value_d): Change type of mask to widest_int.
17661 (extend_mask): New function.
17662 (dump_lattice_value): Use wide-int interfaces.
17663 (get_default_value): Likewise.
17664 (set_constant_value): Likewise.
17665 (set_value_varying): Likewise.
17666 (valid_lattice_transition): Likewise.
17667 (set_lattice_value): Likewise.
17668 (value_to_double_int): Delete.
17669 (value_to_wide_int): New.
17670 (get_value_from_alignment): Use wide-int interfaces.
17671 (get_value_for_expr): Likewise.
17672 (do_dbg_cnt): Likewise.
17673 (ccp_finalize): Likewise.
17674 (ccp_lattice_meet): Likewise.
17675 (bit_value_unop_1): Use widest_ints rather than double_ints.
17676 (bit_value_binop_1): Likewise.
17677 (bit_value_unop): Use wide-int interfaces.
17678 (bit_value_binop): Likewise.
17679 (bit_value_assume_aligned): Likewise.
17680 (evaluate_stmt): Likewise.
17681 (ccp_fold_stmt): Likewise.
17682 (visit_cond_stmt): Likewise.
17683 (ccp_visit_stmt): Likewise.
17684 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17685 (constant_pointer_difference): Likewise.
17686 (associate_pointerplus): Likewise.
17687 (combine_conversions): Likewise.
17688 * tree-ssa-loop.h: Include wide-int.h.
17689 (struct tree_niter_desc): Change type of max to widest_int.
17690 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17691 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17692 (remove_redundant_iv_tests): Likewise.
17693 (canonicalize_loop_induction_variables): Likewise.
17694 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17695 (constant_multiple_of): Take a widest_int pointer instead of
17696 a double_int pointer.
17697 (get_computation_aff): Use wide-int interfaces.
17698 (ptr_difference_cost): Likewise.
17699 (difference_cost): Likewise.
17700 (get_loop_invariant_expr_id): Likewise.
17701 (get_computation_cost_at): Likewise.
17702 (iv_elimination_compare_lt): Likewise.
17703 (may_eliminate_iv): Likewise.
17704 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17705 instead of double_int.
17706 (max_loop_iterations): Likewise.
17707 (max_stmt_executions): Likewise.
17708 (estimated_stmt_executions): Likewise.
17709 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17710 (split_to_var_and_offset): Use wide-int interfaces.
17711 (determine_value_range): Likewise.
17712 (bound_difference_of_offsetted_base): Likewise.
17713 (bounds_add): Take a widest_int instead of a double_int.
17714 (number_of_iterations_ne_max): Use wide-int interfaces.
17715 (number_of_iterations_ne): Likewise.
17716 (number_of_iterations_lt_to_ne): Likewise.
17717 (assert_loop_rolls_lt): Likewise.
17718 (number_of_iterations_lt): Likewise.
17719 (number_of_iterations_le): Likewise.
17720 (number_of_iterations_cond): Likewise.
17721 (number_of_iterations_exit): Likewise.
17722 (finite_loop_p): Likewise.
17723 (derive_constant_upper_bound_assign): Likewise.
17724 (derive_constant_upper_bound): Return a widest_int.
17725 (derive_constant_upper_bound_ops): Likewise.
17726 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17727 (record_estimate): Take a widest_int rather than a double_int.
17728 (record_nonwrapping_iv): Use wide-int interfaces.
17729 (double_int_cmp): Delete.
17730 (wide_int_cmp): New.
17731 (bound_index): Take a widest_int rather than a double_int.
17732 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17733 (maybe_lower_iteration_bound): Likewise.
17734 (estimate_numbers_of_iterations_loop): Likewise.
17735 (estimated_loop_iterations): Take a widest_int pointer than than
17736 a double_int pointer.
17737 (estimated_loop_iterations_int): Use wide-int interfaces.
17738 (max_loop_iterations): Take a widest_int pointer than than
17739 a double_int pointer.
17740 (max_loop_iterations_int): Use wide-int interfaces.
17741 (max_stmt_executions): Take a widest_int pointer than than
17742 a double_int pointer.
17743 (estimated_stmt_executions): Likewise.
17744 (n_of_executions_at_most): Use wide-int interfaces.
17745 (scev_probably_wraps_p): Likewise.
17746 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17747 to real_to_integer.
17748 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17750 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17751 double_ints. Adjust for trailing_wide_ints <3> representation.
17752 (set_nonzero_bits): Likewise.
17753 (get_range_info): Return wide_ints rather than double_ints.
17754 Adjust for trailing_wide_ints <3> representation.
17755 (get_nonzero_bits): Likewise.
17756 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17758 * tree-ssanames.h (struct range_info_def): Replace min, max and
17759 nonzero_bits with a trailing_wide_ints <3>.
17760 (set_range_info): Use wide_int_refs rather than double_ints.
17761 (set_nonzero_bits): Likewise.
17762 (get_range_info): Return wide_ints rather than double_ints.
17763 (get_nonzero_bits): Likewise.
17764 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17765 * tree-ssa-pre.c (phi_translate_1): Likewise.
17766 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17767 (acceptable_pow_call): Likewise.
17768 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17770 (vn_reference_fold_indirect): Likewise.
17771 (vn_reference_maybe_forwprop_address): Likewise.
17772 (valueize_refs_1): Likewise.
17773 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17774 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17775 tree_int_cst_lt and tree_int_cst_le.
17776 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17778 (streamer_alloc_tree): Likewise.
17779 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17780 (streamer_write_tree_header): Likewise.
17781 (streamer_write_integer_cst): Likewise.
17782 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17783 (build_constructors): Likewise.
17784 (array_value_type): Likewise.
17785 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17786 (vect_check_gather): Likewise.
17787 * tree-vect-generic.c (build_replicated_const): Likewise.
17788 (expand_vector_divmod): Likewise.
17789 * tree-vect-loop.c (vect_transform_loop): Likewise.
17790 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17791 (vect_do_peeling_for_alignment): Likewise.
17792 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17793 * tree-vrp.c: Include wide-int.h.
17794 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17795 (extract_range_from_assert): Use wide-int interfaces.
17796 (vrp_int_const_binop): Likewise.
17797 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17798 double_int pointers.
17799 (ranges_from_anti_range): Use wide-int interfaces.
17800 (quad_int_cmp): Delete.
17801 (quad_int_pair_sort): Likewise.
17802 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17803 (extract_range_from_unary_expr_1): Likewise.
17804 (adjust_range_with_scev): Likewise.
17805 (masked_increment): Take and return wide_ints rather than double_ints.
17806 (register_edge_assert_for_2): Use wide-int interfaces.
17807 (check_array_ref): Likewise.
17808 (search_for_addr_array): Likewise.
17809 (maybe_set_nonzero_bits): Likewise.
17810 (union_ranges): Pass an integer of the correct type instead of
17811 using integer_one_node.
17812 (intersect_ranges): Likewise.
17813 (simplify_truth_ops_using_ranges): Likewise.
17814 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17815 (range_fits_type_p): Likewise.
17816 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17818 (simplify_conversion_using_ranges): Use wide-int interfaces.
17819 (simplify_float_conversion_using_ranges): Likewise.
17820 (vrp_finalize): Likewise.
17821 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17822 (gimple_stringops_transform): Likewise.
17823 * varasm.c (decode_addr_const): Likewise.
17824 (const_hash_1): Likewise.
17825 (const_rtx_hash_1): Likewise
17826 (output_constant): Likewise.
17827 (array_size_for_constructor): Likewise.
17828 (output_constructor_regular_field): Likewise.
17829 (output_constructor_bitfield): Likewise.
17830 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17831 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17833 * gencheck.c: Define BITS_PER_UNIT.
17834 * wide-int.cc: New.
17836 * wide-int-print.cc: New.
17837 * wide-int-print.h: New.
17839 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17841 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17843 2014-05-06 Richard Biener <rguenther@suse.de>
17845 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17846 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17847 (TODO_verify_all): Adjust.
17848 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17849 TODO_verify_stmts and TODO_verify_rtl_sharing.
17850 * bb-reorder.c: Likewise.
17851 * cfgexpand.c: Likewise.
17852 * cprop.c: Likewise.
17854 * function.c: Likewise.
17855 * fwprop.c: Likewise.
17856 * gcse.c: Likewise.
17857 * gimple-ssa-isolate-paths.c: Likewise.
17858 * gimple-ssa-strength-reduction.c: Likewise.
17859 * ipa-split.c: Likewise.
17860 * loop-init.c: Likewise.
17861 * loop-unroll.c: Likewise.
17862 * lower-subreg.c: Likewise.
17863 * modulo-sched.c: Likewise.
17864 * postreload-gcse.c: Likewise.
17865 * predict.c: Likewise.
17866 * recog.c: Likewise.
17867 * sched-rgn.c: Likewise.
17868 * store-motion.c: Likewise.
17869 * tracer.c: Likewise.
17870 * trans-mem.c: Likewise.
17871 * tree-call-cdce.c: Likewise.
17872 * tree-cfg.c: Likewise.
17873 * tree-cfgcleanup.c: Likewise.
17874 * tree-complex.c: Likewise.
17875 * tree-eh.c: Likewise.
17876 * tree-emutls.c: Likewise.
17877 * tree-if-conv.c: Likewise.
17878 * tree-into-ssa.c: Likewise.
17879 * tree-loop-distribution.c: Likewise.
17880 * tree-object-size.c: Likewise.
17881 * tree-parloops.c: Likewise.
17882 * tree-pass.h: Likewise.
17883 * tree-sra.c: Likewise.
17884 * tree-ssa-ccp.c: Likewise.
17885 * tree-ssa-copy.c: Likewise.
17886 * tree-ssa-copyrename.c: Likewise.
17887 * tree-ssa-dce.c: Likewise.
17888 * tree-ssa-dom.c: Likewise.
17889 * tree-ssa-dse.c: Likewise.
17890 * tree-ssa-forwprop.c: Likewise.
17891 * tree-ssa-ifcombine.c: Likewise.
17892 * tree-ssa-loop-ch.c: Likewise.
17893 * tree-ssa-loop-ivcanon.c: Likewise.
17894 * tree-ssa-loop.c: Likewise.
17895 * tree-ssa-math-opts.c: Likewise.
17896 * tree-ssa-phiopt.c: Likewise.
17897 * tree-ssa-phiprop.c: Likewise.
17898 * tree-ssa-pre.c: Likewise.
17899 * tree-ssa-reassoc.c: Likewise.
17900 * tree-ssa-sink.c: Likewise.
17901 * tree-ssa-strlen.c: Likewise.
17902 * tree-ssa-tail-merge.c: Likewise.
17903 * tree-ssa-uncprop.c: Likewise.
17904 * tree-switch-conversion.c: Likewise.
17905 * tree-tailcall.c: Likewise.
17906 * tree-vect-generic.c: Likewise.
17907 * tree-vectorizer.c: Likewise.
17908 * tree-vrp.c: Likewise.
17909 * tsan.c: Likewise.
17910 * var-tracking.c: Likewise.
17911 * bt-load.c: Likewise.
17912 * cfgcleanup.c: Likewise.
17913 * combine-stack-adj.c: Likewise.
17914 * combine.c: Likewise.
17915 * compare-elim.c: Likewise.
17916 * config/epiphany/resolve-sw-modes.c: Likewise.
17917 * config/i386/i386.c: Likewise.
17918 * config/mips/mips.c: Likewise.
17919 * config/s390/s390.c: Likewise.
17920 * config/sh/sh_treg_combine.cc: Likewise.
17921 * config/sparc/sparc.c: Likewise.
17924 * final.c: Likewise.
17925 * ifcvt.c: Likewise.
17926 * mode-switching.c: Likewise.
17927 * passes.c: Likewise.
17928 * postreload.c: Likewise.
17930 * reg-stack.c: Likewise.
17931 * regcprop.c: Likewise.
17932 * regrename.c: Likewise.
17935 2014-05-06 Richard Biener <rguenther@suse.de>
17937 PR middle-end/61070
17938 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
17939 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
17941 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
17944 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
17946 2014-05-05 Radovan Obradovic <robradovic@mips.com>
17947 Tom de Vries <tom@codesourcery.com>
17949 * target.def (call_fusage_contains_non_callee_clobbers): New
17951 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
17953 (@node Miscellaneous Register Hooks): New node.
17954 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
17955 * doc/tm.texi: Regenerate.
17957 2014-05-05 Marek Polacek <polacek@redhat.com>
17960 * opts.c (common_handle_option): Call error_at instead of warning_at.
17962 2014-05-05 Richard Biener <rguenther@suse.de>
17964 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
17965 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
17966 under the TODO_verify_il umbrella.
17968 2014-05-05 Richard Biener <rguenther@suse.de>
17970 * passes.c (execute_function_todo): Move TODO_verify_flow under
17971 the TODO_verify_ul umbrella.
17973 2014-05-05 Richard Biener <rguenther@suse.de>
17975 PR middle-end/61010
17976 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
17977 X & CST away from a CST that is the mask of a mode.
17979 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17981 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
17982 int argument to enum machine_mode.
17983 (picochip_class_max_nregs): Ditto.
17984 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
17985 (picochip_class_max_nregs): Ditto.
17987 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17989 * target.def: Add new target hook.
17990 * doc/tm.texi: Regenerate.
17991 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
17992 * targhooks.c (default_keep_leaf_when_profiled): New function.
17994 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
17995 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
17997 2014-05-05 Bin Cheng <bin.cheng@arm.com>
17999 PR tree-optimization/60363
18000 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18001 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18002 (update_destination_phis): New parameter.
18003 (create_edge_and_update_destination_phis): Ditto.
18004 (ssa_fix_duplicate_block_edges): Pass new arguments.
18005 (thread_single_edge): Ditto.
18007 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18009 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18010 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18011 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18012 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18013 Use RS6000_BTM_HARD_FLOAT.
18014 (BU_MISC_2): Likewise.
18015 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18016 RS6000_BTM_HARD_FLOAT.
18017 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18018 is explicitly used.
18019 (rs6000_invalid_builtin): Add hard floating builtin support.
18020 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18021 hard float builtins.
18022 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18024 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18026 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18027 Add missing function* argument.
18029 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18031 * lra-constraints.c (valid_address_p): Move earlier in file.
18032 Add a constraint argument to the address_info version.
18033 (satisfies_memory_constraint_p): New function.
18034 (satisfies_address_constraint_p): Likewise.
18035 (process_alt_operands, curr_insn_transform): Use them.
18036 (process_address): Pass the constraint to valid_address_p when
18037 checking address operands.
18039 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18041 * config/mips/mips.c (mips_isa_rev): New variable.
18042 (mips_set_architecture): Set it.
18043 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18045 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18046 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18047 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18048 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18049 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18050 conditions in terms of mips_isa_rev.
18051 (mips_isa_rev): Declare.
18053 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18055 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18056 (prob_unlikely, prob_likely): Make variables const.
18058 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18060 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18062 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18064 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18066 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18068 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18069 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18070 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18072 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18073 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18075 Replace usage of ROUND_REG with sh_round_reg.
18076 Use CEIL instead of ROUND_ADVANCE.
18078 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18081 * config/sh/sh.c: Include stdlib headers before everything else.
18083 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18085 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18086 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18087 (gimplify_adjust_omp_clauses): Simd region is never
18088 directly nested in combined parallel. Instead, for linear
18089 with copyin/copyout, if in combined for simd loop, make decl
18090 firstprivate/lastprivate on OMP_FOR.
18091 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18092 expand_omp_for_static_chunk): When setting endvar, also set
18093 fd->loop.v to the same value.
18095 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18097 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18099 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18101 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18104 2014-05-02 Marek Polacek <polacek@redhat.com>
18106 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18108 2014-05-02 Kito Cheng <kito@0xlab.org>
18110 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18111 to a C expression marco.
18112 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18113 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18114 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18115 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18116 HONOR_REG_ALLOC_ORDER.
18117 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18119 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18121 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18123 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18125 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18127 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18129 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18130 (convert_scalar_cond_reduction): Likewise.
18131 (predicate_scalar_phi): Add recognition and transformation
18132 of simple conditioanl reduction to be vectorizable.
18134 2014-05-01 Marek Polacek <polacek@redhat.com>
18137 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18139 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18141 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18142 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18143 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18144 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18145 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18146 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18147 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18148 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18150 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18152 * config/arc/arc.opt (mlra): Move comment above option name
18153 to avoid mis-parsing as language options.
18155 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18157 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18158 * config/sol2.h: ... here.
18159 * config/sol2-10.h: Remove.
18161 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18162 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18163 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18164 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18165 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18166 * config/sol2.h: ... here.
18167 (SECTION_NAME_FORMAT): Don't redefine.
18168 (STARTFILE_ARCH32_SPEC): Rename to ...
18169 (STARTFILE_ARCH_SPEC): ... this.
18170 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18171 * config/sparc/sol2.h: ... here.
18172 (SECTION_NAME_FORMAT): Don't undef.
18173 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18174 (SUBTARGET_EXTRA_SPECS): Remove.
18175 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18177 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18178 (MD_STARTFILE_PREFIX): Remove.
18179 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18180 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18181 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18182 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18183 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18184 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18185 * config/i386/sol2.h: ... here.
18186 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18187 * config/i386/sol2-bi.h: Remove.
18188 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18189 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18191 * config/i386/t-sol2-64: Rename to ...
18192 * config/i386/t-sol2: ... this.
18193 * config/sparc/t-sol2-64: Rename to ...
18194 * config/sparc/t-sol2: ... this.
18196 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18197 sol2_tm_file_head, sol2_tm_file_tail.
18198 Include ${cpu_type}/sol2.h before sol2.h.
18200 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18201 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18202 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18203 Reflect i386/t-sol2-64 renaming.
18204 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18205 Reflect sparc/t-sol2-64 renaming.
18207 2014-04-30 Richard Biener <rguenther@suse.de>
18209 * passes.c (execute_function_todo): Move TODO_verify_stmts
18210 and TODO_verify_ssa under the TODO_verify_il umbrella.
18211 * tree-ssa.h (verify_ssa): Adjust prototype.
18212 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18213 we should verify SSA operands.
18214 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18215 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18216 whether we should verify whether not throwing stmts have EH info.
18217 * graphite-scop-detection.c (create_sese_edges): Adjust.
18218 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18219 * tree-eh.c (lower_try_finally_switch): Do not add the
18220 default case label twice.
18222 2014-04-30 Marek Polacek <polacek@redhat.com>
18224 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18225 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18226 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18227 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18229 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18231 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18232 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18233 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18234 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18235 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18236 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18237 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18238 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18240 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18242 * tree-cfg.c (dump_function_to_file): Dump the return type of
18243 functions, in a line to itself before the function body, mimicking
18244 the layout of a C function.
18246 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18248 PR tree-optimization/60971
18249 * tree-tailcall.c (process_assignment): Reject conversions which
18252 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18254 * calls.c (initialize_argument_information): Always treat
18255 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18256 (expand_call): Likewise.
18257 (emit_library_call_calue_1): Likewise.
18258 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18259 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18262 2014-04-29 Nick Clifton <nickc@redhat.com>
18264 * config/msp430/msp430.md (umulsidi): Fix typo.
18265 (mulhisi3): Enable even inside interrupt handlers.
18266 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18267 bigger return address pushed in large mode.
18269 2014-04-29 Nick Clifton <nickc@redhat.com>
18271 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18272 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18274 * config/m32r/m32r.c (init_reg_tables): Likewise.
18275 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18276 enum to hold the modes.
18278 2014-04-29 Richard Biener <rguenther@suse.de>
18280 * dominance.c (free_dominance_info): Add overload with
18281 function parameter.
18282 (dom_info_state): Likewise.
18283 (dom_info_available_p): Likewise.
18284 * basic-block.h (free_dominance_info, dom_info_state,
18285 dom_info_available_p): Declare overloads.
18286 * passes.c (execute_function_todo): Verify that verifiers
18287 don't change dominator info state. Drop dominator info
18288 for IPA pass invocations.
18289 * cgraph.c (release_function_body): Restore asserts that
18290 dominator information is released.
18292 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18294 * doc/invoke.texi: Fix typo.
18295 * tree-vrp.c: Fix typos.
18296 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18298 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18300 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18302 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18304 * config/aarch64/aarch64-builtins.c
18305 (aarch64_types_storestruct_lane_qualifiers): New.
18306 (TYPES_STORESTRUCT_LANE): Likewise.
18307 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18308 (st3_lane): Likewise.
18309 (st4_lane): Likewise.
18310 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18311 (vec_store_lanesci_lane<mode>): Likewise.
18312 (vec_store_lanesxi_lane<mode>): Likewise.
18313 (aarch64_st2_lane<VQ:mode>): Likewise.
18314 (aarch64_st3_lane<VQ:mode>): Likewise.
18315 (aarch64_st4_lane<VQ:mode>): Likewise.
18316 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18317 * config/aarch64/arm_neon.h
18318 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18319 use new macro arguments.
18320 (__ST3_LANE_FUNC): Likewise.
18321 (__ST4_LANE_FUNC): Likewise.
18322 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18323 (V_THREE_ELEM): Likewise.
18324 (V_FOUR_ELEM): Likewise.
18326 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18328 * doc/gimple.texi: Replace the description of the now-defunct
18329 union gimple_statement_d with a diagram showing the
18330 gimple_statement_base class hierarchy and its relationships to
18331 the GSS_ and GIMPLE_ enums.
18333 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18335 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18336 * config/aarch64/aarch64.c
18337 (aarch64_cannot_change_mode_class): Weaken conditions.
18338 (aarch64_modes_tieable_p): New.
18339 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18341 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18343 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18344 (loadsync_<mode>): Change mode.
18345 (load_quadpti, store_quadpti): New.
18346 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18347 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18349 2014-04-28 Martin Jambor <mjambor@suse.cz>
18351 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18352 same alias type as the original statement.
18353 (subreplacement_assignment_data): New type.
18354 (handle_unscalarized_data_in_subtree): New type of parameter,
18355 generate new memory accesses with same alias type as the original
18357 (load_assign_lhs_subreplacements): Likewise.
18358 (sra_modify_constructor_assign): Generate new memory accesses with
18359 same alias type as the original statement.
18361 2014-04-28 Richard Biener <rguenther@suse.de>
18363 * tree-pass.h (TODO_verify_il): Define.
18364 (TODO_verify_all): Complete properly.
18365 * passes.c (execute_function_todo): Move existing loop-closed
18366 SSA verification under TODO_verify_il.
18367 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18368 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18369 Fix tree sharing issue.
18371 2014-04-28 Richard Biener <rguenther@suse.de>
18373 PR middle-end/60092
18374 * builtins.def (DEF_C11_BUILTIN): Add.
18375 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18376 * coretypes.h (enum function_class): Add function_c11_misc.
18377 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18378 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18379 (call_may_clobber_ref_p_1): Likewise.
18380 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18381 (mark_all_reaching_defs_necessary_1): Likewise.
18382 (propagate_necessity): Likewise.
18383 (eliminate_unnecessary_stmts): Likewise.
18384 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18386 2014-04-28 Richard Biener <rguenther@suse.de>
18388 * tree-vrp.c (vrp_var_may_overflow): Remove.
18389 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18390 with overflow immediately bump to one before that value and
18391 let iteration figure out overflow status.
18393 2014-04-28 Richard Biener <rguenther@suse.de>
18395 * configure.ac: Do valgrind header checks unconditionally.
18396 Add --enable-valgrind-annotations.
18397 * system.h: Guard valgrind header inclusion with
18398 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18399 * alloc-pool.c (pool_alloc, pool_free): Use
18400 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18401 to guard possibly dead code.
18402 * config.in: Regenerated.
18403 * configure: Likewise.
18405 2014-04-28 Jeff Law <law@redhat.com>
18407 PR tree-optimization/60902
18408 * tree-ssa-threadedge.c
18409 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18410 over real defs when invalidating outputs from statements that do not
18411 produce useful outputs for threading.
18413 2014-04-28 Richard Biener <rguenther@suse.de>
18415 PR tree-optimization/60979
18416 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18417 SCOPs that end in a block with a successor with abnormal
18420 2014-04-28 Richard Biener <rguenther@suse.de>
18422 * tree-pass.h (execute_pass_list): Adjust prototype.
18423 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18424 (do_per_function): Change callback signature, push all actual
18425 work to the callbals.
18426 (do_per_function_toporder): Likewise.
18427 (execute_function_dump): Adjust.
18428 (execute_function_todo): Likewise.
18429 (clear_last_verified): Likewise.
18430 (verify_curr_properties): Likewise.
18431 (update_properties_after_pass): Likewise.
18432 (execute_pass_list_1): Split out from ...
18433 (execute_pass_list): ... here. Adjust.
18434 (execute_ipa_pass_list): Likewise.
18435 * cgraphunit.c (cgraph_add_new_function): Adjust.
18436 (analyze_function): Likewise.
18437 (expand_function): Likewise.
18438 * cgraph.c (release_function_body): Free dominance info
18439 here instead of asserting it was magically freed elsewhere.
18441 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18443 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18444 * configure: Regenerate.
18445 * config/sparc/sparc.opt (muser-mode): New option.
18446 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18448 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18449 * doc/invoke.texi (SPARC options): Document -muser-mode.
18451 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18453 * cselib.c (find_slot_memmode): Delete.
18454 (cselib_hasher): Change compare_type to a struct.
18455 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18457 (preserve_constants_and_equivs): Adjust for new compare_type.
18458 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18459 (wrap_constant): Delete.
18460 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18462 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18464 * doc/install.texi (Building with profile feedback): Remove
18467 2014-04-26 Tom de Vries <tom@codesourcery.com>
18469 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18472 2014-04-25 Cary Coutant <ccoutant@google.com>
18475 * dwarf2out.c (should_move_die_to_comdat): A type definition
18476 can contain a subprogram definition, but don't move it to a
18478 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18479 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18481 (clone_tree_hash): Rename to...
18482 (clone_tree_partial): ...this; change callers. Copy
18483 DW_TAG_subprogram DIEs as declarations.
18484 (copy_decls_walk): Don't copy children of a declaration into a
18487 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18490 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18493 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18495 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18496 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18498 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18501 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18503 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18505 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18507 PR tree-optimization/60930
18508 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18509 creating a multiply candidate by folding two constant
18510 multiplicands when the result overflows.
18512 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18514 PR tree-optimization/60960
18515 * tree-vect-generic.c (expand_vector_operation): Only call
18516 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18518 2014-04-25 Tom de Vries <tom@codesourcery.com>
18520 * expr.c (clobber_reg_mode): New function.
18521 * expr.h (clobber_reg): New function.
18523 2014-04-25 Tom de Vries <tom@codesourcery.com>
18525 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18528 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18529 Tom de Vries <tom@codesourcery.com>
18531 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18533 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18534 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18535 new argument to find_all_hard_reg_sets call.
18537 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18539 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18540 Use HOST_WIDE_INT_C for mask literal.
18541 (aarch_rev16_shleft_mask_imm_p): Likewise.
18543 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18546 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18548 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18550 PR preprocessor/56540
18551 * config/i386/i386-c.c (ix86_target_macros): Define
18552 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18554 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18556 * configure.ac (tga_func): Remove.
18557 (LIB_TLS_SPEC): Remove.
18558 * configure: Regenerate.
18559 * config.in: Regenerate.
18560 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18562 2014-04-25 Richard Biener <rguenther@suse.de>
18565 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18566 call stmt use/clobber sets during stmt walk instead of
18567 walking the possibly incomplete set of caller edges.
18569 2014-04-25 Richard Biener <rguenther@suse.de>
18572 * passes.c (apply_ipa_transforms): Inline into only caller ...
18573 (execute_one_pass): ... here. Properly bring in function
18574 bodies for nodes we want to apply IPA transforms to.
18576 2014-04-24 Cong Hou <congh@google.com>
18578 PR tree-optimization/60896
18579 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18580 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18581 (vect_mark_pattern_stmts): Set the def type of all statements in
18582 PATTERN_DEF_SEQ as vect_internal_def.
18584 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18586 * doc/extend.texi (PowerPC Built-in Functions): Document new
18587 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18588 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18590 * config/rs6000/predicates.md (const_0_to_3_operand): New
18591 predicate to match 0..3 integer constants.
18593 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18594 to support adding miscellaneous builtin functions.
18595 (BU_DFP_MISC_2): Likewise.
18596 (BU_P7_MISC_1): Likewise.
18597 (BU_P7_MISC_2): Likewise.
18598 (BU_P8V_MISC_3): Likewise.
18599 (BU_MISC_1): Likewise.
18600 (BU_MISC_2): Likewise.
18601 (DIVWE): Add extended divide builtin functions.
18602 (DIVWEO): Likewise.
18603 (DIVWEU): Likewise.
18604 (DIVWEUO): Likewise.
18606 (DIVDEO): Likewise.
18607 (DIVDEU): Likewise.
18608 (DIVDEUO): Likewise.
18609 (DXEX): Add decimal floating-point builtin functions.
18611 (DDEDPD): Likewise.
18612 (DDEDPDQ): Likewise.
18613 (DENBCD): Likewise.
18614 (DENBCDQ): Likewise.
18618 (DSCLIQ): Likewise.
18620 (DSCRIQ): Likewise.
18621 (CDTBCD): Add new BCD builtin functions.
18622 (CBCDTD): Likewise.
18623 (ADDG6S): Likewise.
18624 (BCDADD): Likewise.
18625 (BCDADD_LT): Likewise.
18626 (BCDADD_EQ): Likewise.
18627 (BCDADD_GT): Likewise.
18628 (BCDADD_OV): Likewise.
18629 (BCDSUB): Likewise.
18630 (BCDSUB_LT): Likewise.
18631 (BCDSUB_EQ): Likewise.
18632 (BCDSUB_GT): Likewise.
18633 (BCDSUB_OV): Likewise.
18634 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18635 (UNPACK_TD): Likewise.
18636 (PACK_TF): Likewise.
18637 (UNPACK_TF): Likewise.
18638 (UNPACK_TF_0): Likewise.
18639 (UNPACK_TF_1): Likewise.
18640 (PACK_V1TI): Likewise.
18641 (UNPACK_V1TI): Likewise.
18643 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18644 support for decimal floating point builtin functions.
18645 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18646 functions that take constant arguments.
18647 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18648 (rs6000_init_builtins): Setup long double, _Decimal64, and
18649 _Decimal128 types for new builtin functions.
18650 (builtin_function_type): Set the unsigned flags appropriately for
18651 the new builtin functions.
18652 (rs6000_opt_masks): Add support for decimal floating point builtin
18655 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18656 floating point builtin functions.
18657 (RS6000_BTM_COMMON): Likewise.
18658 (RS6000_BTI_long_double): Likewise.
18659 (RS6000_BTI_dfloat64): Likewise.
18660 (RS6000_BTI_dfloat128): Likewise.
18661 (long_double_type_internal_node): Likewise.
18662 (dfloat64_type_internal_node): Likewise.
18663 (dfloat128_type_internal_node): Likewise.
18665 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18666 2.07 bcd arithmetic instructions.
18667 (UNSPEC_BCDSUB): Likewise.
18668 (UNSPEC_BCD_OVERFLOW): Likewise.
18669 (UNSPEC_BCD_ADD_SUB): Likewise.
18670 (bcd_add_sub): Likewise.
18671 (BCD_TEST): Likewise.
18672 (bcd<bcd_add_sub>): Likewise.
18673 (bcd<bcd_add_sub>_test): Likewise.
18674 (bcd<bcd_add_sub>_test2): Likewise.
18675 (bcd<bcd_add_sub>_<code>): Likewise.
18676 (peephole2 for combined bcd ops): Likewise.
18678 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18679 decimal floating point builtin functions.
18680 (UNSPEC_DENBCD): Likewise.
18681 (UNSPEC_DXEX): Likewise.
18682 (UNSPEC_DIEX): Likewise.
18683 (UNSPEC_DSCLI): Likewise.
18684 (UNSPEC_DSCRI): Likewise.
18685 (D64_D128): Likewise.
18686 (dfp_suffix): Likewise.
18687 (dfp_ddedpd_<mode>): Likewise.
18688 (dfp_denbcd_<mode>): Likewise.
18689 (dfp_dxex_<mode>): Likewise.
18690 (dfp_diex_<mode>): Likewise.
18691 (dfp_dscli_<mode>): Likewise.
18692 (dfp_dscri_<mode>): Likewise.
18694 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18696 (UNSPEC_CDTBCD): Likewise.
18697 (UNSPEC_CBCDTD): Likewise.
18698 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18699 (UNSPEC_DIVEO): Likewise.
18700 (UNSPEC_DIVEU): Likewise.
18701 (UNSPEC_DIVEUO): Likewise.
18702 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18703 pack/unpack 128-bit types.
18704 (UNSPEC_PACK_128BIT): Likewise.
18705 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18706 (udiv<mode>3): Use idiv_ldiv mode attribute.
18707 (div<mode>3): Likewise.
18708 (addg6s): Add new BCD builtin functions.
18709 (cdtbcd): Likewise.
18710 (cbcdtd): Likewise.
18711 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18712 (div_extend): Likewise.
18713 (div<div_extend>_<mode>"): Likewise.
18714 (FP128_64): Add support for new builtin functions to pack/unpack
18716 (unpack<mode>): Likewise.
18717 (unpacktf_0): Likewise.
18718 (unpacktf_1): Likewise.
18719 (unpack<mode>_dm): Likewise.
18720 (unpack<mode>_nodm): Likewise.
18721 (pack<mode>): Likewise.
18722 (unpackv1ti): Likewise.
18723 (packv1ti): Likewise.
18725 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18727 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18730 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18732 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18733 * gimplify.c (omp_is_private): Change last argument's type to int.
18734 Only diagnose lastprivate if the simd argument is 1, only diagnose
18735 linear if the simd argument is 2.
18736 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18737 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18738 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18739 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18740 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18741 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18742 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18743 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18744 * tree-nested.c (convert_nonlocal_omp_clauses,
18745 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18747 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18750 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18753 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18755 * flag-types.h (enum ivar_visibility): Add.
18757 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18759 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18760 function * argument.
18762 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18764 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18766 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18767 Tom de Vries <tom@codesourcery.com>
18769 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18770 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18772 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18773 * emit-rtl.c (try_split): Same.
18775 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18776 Tom de Vries <tom@codesourcery.com>
18778 * common.opt (fuse-caller-save): New option.
18780 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18782 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18783 elements for big-endian.
18785 2014-04-24 Richard Biener <rguenther@suse.de>
18787 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18788 during TER and instead use the sepops interface for expanding
18789 non-GIMPLE_SINGLE_RHS.
18791 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18793 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18794 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18796 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18798 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18799 assembler 64-bit option.
18800 * configure: Regenerate.
18802 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18804 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18805 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18806 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18807 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18808 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18810 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18812 * config/aarch64/aarch64-builtins.c
18813 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18814 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18815 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18816 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18818 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18819 (Vrevsuff): New mode attribute.
18821 2014-04-24 Terry Guo <terry.guo@arm.com>
18823 * config/arm/arm.h (machine_function): Define variable
18824 after_arm_reorg here.
18825 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18826 (arm_split_constant): Update the way to access variable
18828 (arm_reorg): Ditto.
18829 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18831 2014-04-23 Tom de Vries <tom@codesourcery.com>
18833 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18835 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18837 * is-a.h: Update comments to reflect the following changes to the
18838 "pointerness" of the API, making the template parameter match the
18839 return type, allowing use of is-a.h with typedefs of pointers.
18840 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18841 that the return type matches the parameter to the is_a_helper.
18843 (dyn_cast): Likewise.
18845 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18846 pointer from the is-a.h API.
18848 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18849 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18851 (is_a_helper <varpool_node>::test): Likewise, convert to...
18852 (is_a_helper <varpool_node *>::test): ...this.
18854 (varpool_first_variable): Update for removal of implicit pointer
18855 from the is-a.h API.
18856 (varpool_next_variable): Likewise.
18857 (varpool_first_static_initializer): Likewise.
18858 (varpool_next_static_initializer): Likewise.
18859 (varpool_first_defined_variable): Likewise.
18860 (varpool_next_defined_variable): Likewise.
18861 (cgraph_first_defined_function): Likewise.
18862 (cgraph_next_defined_function): Likewise.
18863 (cgraph_first_function): Likewise.
18864 (cgraph_next_function): Likewise.
18865 (cgraph_first_function_with_gimple_body): Likewise.
18866 (cgraph_next_function_with_gimple_body): Likewise.
18867 (cgraph_alias_target): Likewise.
18868 (varpool_alias_target): Likewise.
18869 (cgraph_function_or_thunk_node): Likewise.
18870 (varpool_variable_node): Likewise.
18871 (symtab_real_symbol_p): Likewise.
18872 * cgraphunit.c (referred_to_p): Likewise.
18873 (analyze_functions): Likewise.
18874 (handle_alias_pairs): Likewise.
18875 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18876 * gimple-ssa.h (gimple_vuse_op): Likewise.
18877 (gimple_vdef_op): Likewise.
18878 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18879 * gimple.c (gimple_build_asm_1): Likewise.
18880 (gimple_build_try): Likewise.
18881 (gimple_build_resx): Likewise.
18882 (gimple_build_eh_dispatch): Likewise.
18883 (gimple_build_omp_for): Likewise.
18884 (gimple_omp_for_set_clauses): Likewise.
18886 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
18887 (is_a_helper <gimple_statement_asm *>::test): ...this.
18888 (is_a_helper <gimple_statement_bind>::test): Convert to...
18889 (is_a_helper <gimple_statement_bind *>::test): ...this.
18890 (is_a_helper <gimple_statement_call>::test): Convert to...
18891 (is_a_helper <gimple_statement_call *>::test): ...this.
18892 (is_a_helper <gimple_statement_catch>::test): Convert to...
18893 (is_a_helper <gimple_statement_catch *>::test): ...this.
18894 (is_a_helper <gimple_statement_resx>::test): Convert to...
18895 (is_a_helper <gimple_statement_resx *>::test): ...this.
18896 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
18897 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
18898 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
18899 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
18900 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
18901 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
18902 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
18903 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
18904 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
18905 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
18906 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
18907 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
18908 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
18909 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
18910 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
18911 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
18912 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
18913 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
18914 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
18915 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
18916 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
18917 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
18918 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
18919 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
18920 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
18921 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
18922 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
18923 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
18924 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
18925 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
18926 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
18927 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
18928 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
18929 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
18930 (is_a_helper <gimple_statement_phi>::test): Convert to...
18931 (is_a_helper <gimple_statement_phi *>::test): ...this.
18932 (is_a_helper <gimple_statement_transaction>::test): Convert to...
18933 (is_a_helper <gimple_statement_transaction *>::test): ...this.
18934 (is_a_helper <gimple_statement_try>::test): Convert to...
18935 (is_a_helper <gimple_statement_try *>::test): ...this.
18936 (is_a_helper <gimple_statement_wce>::test): Convert to...
18937 (is_a_helper <gimple_statement_wce *>::test): ...this.
18938 (is_a_helper <const gimple_statement_asm>::test): Convert to...
18939 (is_a_helper <const gimple_statement_asm *>::test): ...this.
18940 (is_a_helper <const gimple_statement_bind>::test): Convert to...
18941 (is_a_helper <const gimple_statement_bind *>::test): ...this.
18942 (is_a_helper <const gimple_statement_call>::test): Convert to...
18943 (is_a_helper <const gimple_statement_call *>::test): ...this.
18944 (is_a_helper <const gimple_statement_catch>::test): Convert to...
18945 (is_a_helper <const gimple_statement_catch *>::test): ...this.
18946 (is_a_helper <const gimple_statement_resx>::test): Convert to...
18947 (is_a_helper <const gimple_statement_resx *>::test): ...this.
18948 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
18949 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
18950 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
18951 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
18952 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
18954 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
18956 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
18958 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
18960 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
18961 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
18962 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
18964 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
18965 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
18967 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
18968 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
18969 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
18970 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
18971 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
18972 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
18974 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
18975 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
18976 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
18977 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
18979 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
18980 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
18981 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
18982 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
18983 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
18984 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
18985 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
18986 (is_a_helper <const gimple_statement_phi>::test): Convert to...
18987 (is_a_helper <const gimple_statement_phi *>::test): ...this.
18988 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
18989 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
18990 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
18991 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
18992 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
18993 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
18994 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
18996 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
18998 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
18999 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19001 (gimple_use_ops): Update for removal of implicit pointer from the
19003 (gimple_set_use_ops): Likewise.
19004 (gimple_vuse): Likewise.
19005 (gimple_vdef): Likewise.
19006 (gimple_vuse_ptr): Likewise.
19007 (gimple_vdef_ptr): Likewise.
19008 (gimple_set_vuse): Likewise.
19009 (gimple_set_vdef): Likewise.
19010 (gimple_omp_return_set_lhs): Likewise.
19011 (gimple_omp_return_lhs): Likewise.
19012 (gimple_omp_return_lhs_ptr): Likewise.
19013 (gimple_call_fntype): Likewise.
19014 (gimple_call_set_fntype): Likewise.
19015 (gimple_call_set_internal_fn): Likewise.
19016 (gimple_call_use_set): Likewise.
19017 (gimple_call_clobber_set): Likewise.
19018 (gimple_bind_vars): Likewise.
19019 (gimple_bind_set_vars): Likewise.
19020 (gimple_bind_body_ptr): Likewise.
19021 (gimple_bind_set_body): Likewise.
19022 (gimple_bind_add_stmt): Likewise.
19023 (gimple_bind_block): Likewise.
19024 (gimple_bind_set_block): Likewise.
19025 (gimple_asm_ninputs): Likewise.
19026 (gimple_asm_noutputs): Likewise.
19027 (gimple_asm_nclobbers): Likewise.
19028 (gimple_asm_nlabels): Likewise.
19029 (gimple_asm_input_op): Likewise.
19030 (gimple_asm_input_op_ptr): Likewise.
19031 (gimple_asm_output_op): Likewise.
19032 (gimple_asm_output_op_ptr): Likewise.
19033 (gimple_asm_set_output_op): Likewise.
19034 (gimple_asm_clobber_op): Likewise.
19035 (gimple_asm_set_clobber_op): Likewise.
19036 (gimple_asm_label_op): Likewise.
19037 (gimple_asm_set_label_op): Likewise.
19038 (gimple_asm_string): Likewise.
19039 (gimple_catch_types): Likewise.
19040 (gimple_catch_types_ptr): Likewise.
19041 (gimple_catch_handler_ptr): Likewise.
19042 (gimple_catch_set_types): Likewise.
19043 (gimple_catch_set_handler): Likewise.
19044 (gimple_eh_filter_types): Likewise.
19045 (gimple_eh_filter_types_ptr): Likewise.
19046 (gimple_eh_filter_failure_ptr): Likewise.
19047 (gimple_eh_filter_set_types): Likewise.
19048 (gimple_eh_filter_set_failure): Likewise.
19049 (gimple_eh_must_not_throw_fndecl): Likewise.
19050 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19051 (gimple_eh_else_n_body_ptr): Likewise.
19052 (gimple_eh_else_e_body_ptr): Likewise.
19053 (gimple_eh_else_set_n_body): Likewise.
19054 (gimple_eh_else_set_e_body): Likewise.
19055 (gimple_try_eval_ptr): Likewise.
19056 (gimple_try_cleanup_ptr): Likewise.
19057 (gimple_try_set_eval): Likewise.
19058 (gimple_try_set_cleanup): Likewise.
19059 (gimple_wce_cleanup_ptr): Likewise.
19060 (gimple_wce_set_cleanup): Likewise.
19061 (gimple_phi_capacity): Likewise.
19062 (gimple_phi_num_args): Likewise.
19063 (gimple_phi_result): Likewise.
19064 (gimple_phi_result_ptr): Likewise.
19065 (gimple_phi_set_result): Likewise.
19066 (gimple_phi_arg): Likewise.
19067 (gimple_phi_set_arg): Likewise.
19068 (gimple_resx_region): Likewise.
19069 (gimple_resx_set_region): Likewise.
19070 (gimple_eh_dispatch_region): Likewise.
19071 (gimple_eh_dispatch_set_region): Likewise.
19072 (gimple_omp_critical_name): Likewise.
19073 (gimple_omp_critical_name_ptr): Likewise.
19074 (gimple_omp_critical_set_name): Likewise.
19075 (gimple_omp_for_clauses): Likewise.
19076 (gimple_omp_for_clauses_ptr): Likewise.
19077 (gimple_omp_for_set_clauses): Likewise.
19078 (gimple_omp_for_collapse): Likewise.
19079 (gimple_omp_for_index): Likewise.
19080 (gimple_omp_for_index_ptr): Likewise.
19081 (gimple_omp_for_set_index): Likewise.
19082 (gimple_omp_for_initial): Likewise.
19083 (gimple_omp_for_initial_ptr): Likewise.
19084 (gimple_omp_for_set_initial): Likewise.
19085 (gimple_omp_for_final): Likewise.
19086 (gimple_omp_for_final_ptr): Likewise.
19087 (gimple_omp_for_set_final): Likewise.
19088 (gimple_omp_for_incr): Likewise.
19089 (gimple_omp_for_incr_ptr): Likewise.
19090 (gimple_omp_for_set_incr): Likewise.
19091 (gimple_omp_for_pre_body_ptr): Likewise.
19092 (gimple_omp_for_set_pre_body): Likewise.
19093 (gimple_omp_parallel_clauses): Likewise.
19094 (gimple_omp_parallel_clauses_ptr): Likewise.
19095 (gimple_omp_parallel_set_clauses): Likewise.
19096 (gimple_omp_parallel_child_fn): Likewise.
19097 (gimple_omp_parallel_child_fn_ptr): Likewise.
19098 (gimple_omp_parallel_set_child_fn): Likewise.
19099 (gimple_omp_parallel_data_arg): Likewise.
19100 (gimple_omp_parallel_data_arg_ptr): Likewise.
19101 (gimple_omp_parallel_set_data_arg): Likewise.
19102 (gimple_omp_task_clauses): Likewise.
19103 (gimple_omp_task_clauses_ptr): Likewise.
19104 (gimple_omp_task_set_clauses): Likewise.
19105 (gimple_omp_task_child_fn): Likewise.
19106 (gimple_omp_task_child_fn_ptr): Likewise.
19107 (gimple_omp_task_set_child_fn): Likewise.
19108 (gimple_omp_task_data_arg): Likewise.
19109 (gimple_omp_task_data_arg_ptr): Likewise.
19110 (gimple_omp_task_set_data_arg): Likewise.
19111 (gimple_omp_taskreg_clauses): Likewise.
19112 (gimple_omp_taskreg_clauses_ptr): Likewise.
19113 (gimple_omp_taskreg_set_clauses): Likewise.
19114 (gimple_omp_taskreg_child_fn): Likewise.
19115 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19116 (gimple_omp_taskreg_set_child_fn): Likewise.
19117 (gimple_omp_taskreg_data_arg): Likewise.
19118 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19119 (gimple_omp_taskreg_set_data_arg): Likewise.
19120 (gimple_omp_task_copy_fn): Likewise.
19121 (gimple_omp_task_copy_fn_ptr): Likewise.
19122 (gimple_omp_task_set_copy_fn): Likewise.
19123 (gimple_omp_task_arg_size): Likewise.
19124 (gimple_omp_task_arg_size_ptr): Likewise.
19125 (gimple_omp_task_set_arg_size): Likewise.
19126 (gimple_omp_task_arg_align): Likewise.
19127 (gimple_omp_task_arg_align_ptr): Likewise.
19128 (gimple_omp_task_set_arg_align): Likewise.
19129 (gimple_omp_single_clauses): Likewise.
19130 (gimple_omp_single_clauses_ptr): Likewise.
19131 (gimple_omp_single_set_clauses): Likewise.
19132 (gimple_omp_target_clauses): Likewise.
19133 (gimple_omp_target_clauses_ptr): Likewise.
19134 (gimple_omp_target_set_clauses): Likewise.
19135 (gimple_omp_target_child_fn): Likewise.
19136 (gimple_omp_target_child_fn_ptr): Likewise.
19137 (gimple_omp_target_set_child_fn): Likewise.
19138 (gimple_omp_target_data_arg): Likewise.
19139 (gimple_omp_target_data_arg_ptr): Likewise.
19140 (gimple_omp_target_set_data_arg): Likewise.
19141 (gimple_omp_teams_clauses): Likewise.
19142 (gimple_omp_teams_clauses_ptr): Likewise.
19143 (gimple_omp_teams_set_clauses): Likewise.
19144 (gimple_omp_sections_clauses): Likewise.
19145 (gimple_omp_sections_clauses_ptr): Likewise.
19146 (gimple_omp_sections_set_clauses): Likewise.
19147 (gimple_omp_sections_control): Likewise.
19148 (gimple_omp_sections_control_ptr): Likewise.
19149 (gimple_omp_sections_set_control): Likewise.
19150 (gimple_omp_for_set_cond): Likewise.
19151 (gimple_omp_for_cond): Likewise.
19152 (gimple_omp_atomic_store_set_val): Likewise.
19153 (gimple_omp_atomic_store_val): Likewise.
19154 (gimple_omp_atomic_store_val_ptr): Likewise.
19155 (gimple_omp_atomic_load_set_lhs): Likewise.
19156 (gimple_omp_atomic_load_lhs): Likewise.
19157 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19158 (gimple_omp_atomic_load_set_rhs): Likewise.
19159 (gimple_omp_atomic_load_rhs): Likewise.
19160 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19161 (gimple_omp_continue_control_def): Likewise.
19162 (gimple_omp_continue_control_def_ptr): Likewise.
19163 (gimple_omp_continue_set_control_def): Likewise.
19164 (gimple_omp_continue_control_use): Likewise.
19165 (gimple_omp_continue_control_use_ptr): Likewise.
19166 (gimple_omp_continue_set_control_use): Likewise.
19167 (gimple_transaction_body_ptr): Likewise.
19168 (gimple_transaction_label): Likewise.
19169 (gimple_transaction_label_ptr): Likewise.
19170 (gimple_transaction_set_body): Likewise.
19171 (gimple_transaction_set_label): Likewise.
19173 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19174 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19175 * ipa-ref.c (ipa_record_reference): Likewise.
19176 * ipa-reference.c (analyze_function): Likewise.
19177 (ipa_reference_write_optimization_summary): Likewise.
19178 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19179 (address_taken_from_non_vtable_p): Likewise.
19180 (comdat_can_be_unshared_p_1): Likewise.
19181 * lto-cgraph.c (lto_output_ref): Likewise.
19182 (add_references): Likewise.
19183 (compute_ltrans_boundary): Likewise.
19184 (output_symtab): Likewise.
19185 (input_ref): Likewise.
19186 (input_cgraph_1): Likewise.
19187 (output_cgraph_opt_summary): Likewise.
19188 * lto-streamer-out.c (lto_output): Likewise.
19189 (output_symbol_p): Likewise.
19190 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19191 (lsei_start_function_in_partition): Likewise.
19192 (lsei_next_variable_in_partition): Likewise.
19193 (lsei_start_variable_in_partition): Likewise.
19194 * symtab.c (insert_to_assembler_name_hash): Likewise.
19195 (unlink_from_assembler_name_hash): Likewise.
19196 (symtab_unregister_node): Likewise.
19197 (symtab_remove_node): Likewise.
19198 (dump_symtab_node): Likewise.
19199 (verify_symtab_base): Likewise.
19200 (verify_symtab_node): Likewise.
19201 (symtab_make_decl_local): Likewise.
19202 (symtab_alias_ultimate_target): Likewise.
19203 (symtab_resolve_alias): Likewise.
19204 (symtab_get_symbol_partitioning_class): Likewise.
19205 * tree-phinodes.c (allocate_phi_node): Likewise.
19206 (reserve_phi_args_for_new_edge): Likewise.
19207 (remove_phi_args): Likewise.
19208 * varpool.c (varpool_node_for_asm): Likewise.
19209 (varpool_remove_unreferenced_decls): Likewise.
19211 2014-04-23 Jeff Law <law@redhat.com>
19213 PR tree-optimization/60902
19214 * tree-ssa-threadedge.c
19215 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19216 invalidate outputs from statements that do not produce useful
19217 outputs for threading.
19219 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19221 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19222 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19223 machine descriptions for Stack Smashing Protector.
19225 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19227 * aarch64.md (<optab>_rol<mode>3): New pattern.
19228 (<optab>_rolsi3_uxtw): Likewise.
19229 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19231 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19233 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19234 (arm_cortex_a12_tune): Likewise.
19236 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19238 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19240 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19242 * config/arm/arm.md (arm_rev16si2): New pattern.
19243 (arm_rev16si2_alt): Likewise.
19244 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19246 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19248 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19249 (rev16<mode>2_alt): Likewise.
19250 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19251 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19252 (aarch_rev16_shleft_mask_imm_p): Likewise.
19253 (aarch_rev16_p_1): Likewise.
19254 (aarch_rev16_p): Likewise.
19255 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19256 (aarch_rev16_shright_mask_imm_p): Likewise.
19257 (aarch_rev16_shleft_mask_imm_p): Likewise.
19259 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19261 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19262 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19264 (cortex_a53_extra_costs): Likewise.
19265 (cortex_a57_extra_costs): Likewise.
19266 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19267 (cortexa7_extra_costs): Likewise.
19268 (cortexa8_extra_costs): Likewise.
19269 (cortexa12_extra_costs): Likewise.
19270 (cortexa15_extra_costs): Likewise.
19271 (v7m_extra_costs): Likewise.
19272 (arm_new_rtx_costs): Handle BSWAP.
19274 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19276 * config/arm/arm.c (cortexa8_extra_costs): New table.
19277 (arm_cortex_a8_tune): New tuning struct.
19278 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19280 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19282 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19284 2014-04-23 Richard Biener <rguenther@suse.de>
19286 * Makefile.in (OBJS): Remove loop-unswitch.o.
19287 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19288 * passes.def (pass_rtl_unswitch): Likewise.
19289 * loop-init.c (gate_rtl_unswitch): Likewise.
19290 (rtl_unswitch): Likewise.
19291 (pass_data_rtl_unswitch): Likewise.
19292 (pass_rtl_unswitch): Likewise.
19293 (make_pass_rtl_unswitch): Likewise.
19294 * rtl.h (reversed_condition): Likewise.
19295 (compare_and_jump_seq): Likewise.
19296 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19298 * loop-unroll.c (compare_and_jump_seq): Likewise.
19300 2014-04-23 Richard Biener <rguenther@suse.de>
19302 PR tree-optimization/60903
19303 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19304 commented code block.
19305 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19306 loop flags to newly created BBs and edges.
19308 2014-04-23 Nick Clifton <nickc@redhat.com>
19310 * config/msp430/msp430.c (msp430_handle_option): Move function
19312 (msp430_option_override): Simplify mcu and mcpu option handling.
19313 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19314 support for -mhwmult command line option.
19315 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19316 -mhwmult command line option.
19317 (msp430_hwmult_enabled): Delete.
19318 (msp43o_output_labelref): Add support for -mhwmult command line option.
19319 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19320 (umulsidi3): Likewise.
19321 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19322 (mcpu, mlarge, msmall): Likewise.
19323 (mhwmult): New option.
19324 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19326 (msp430_is_f5_mcu): Remove prototype.
19327 (msp430_use_f5_series_hwmult): Add prototype.
19328 * config/msp430/msp430-opts.h: New file.
19329 * common/config/msp430: New directory.
19330 * common/config/msp430/msp430-common.c: New file.
19331 * config.gcc (msp430): Remove target_has_targetm_common.
19332 * doc/invoke.texi: Document -mhwmult command line option.
19334 2014-04-23 Nick Clifton <nickc@redhat.com>
19336 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19337 default-manifest.o if it can be found in the search path.
19338 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19340 2014-04-23 Terry Guo <terry.guo@arm.com>
19342 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19344 2014-04-23 Richard Biener <rguenther@suse.de>
19346 PR middle-end/60895
19347 * tree-inline.c (declare_return_variable): Use mark_addressable.
19349 2014-04-23 Richard Biener <rguenther@suse.de>
19351 PR middle-end/60891
19352 * loop-init.c (loop_optimizer_init): Make sure to apply
19353 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19355 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19358 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19360 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19361 if flag_sanitize_undefined_trap_on_error.
19362 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19363 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19364 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19365 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19366 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19367 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19368 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19369 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19370 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19371 * ubsan.c (ubsan_instrument_unreachable): Return
19372 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19373 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19374 if flag_sanitize_undefined_trap_on_error and
19375 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19376 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19377 instrument_bool_enum_load): Emit __builtin_trap () if
19378 flag_sanitize_undefined_trap_on_error and
19379 __builtin_handle_*_abort () if !flag_sanitize_recover.
19380 * doc/invoke.texi (-fsanitize-recover,
19381 -fsanitize-undefined-trap-on-error): Document.
19383 2014-04-22 Christian Bruel <christian.bruel@st.com>
19385 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19386 Force immediates to SImode.
19388 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19390 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19391 (lroundsfsi2): New.
19392 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19393 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19394 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19395 (nios2_fpu_insn): Add entry for round.
19396 (N2FPU_NO_ERRNO_P): Define.
19397 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19399 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19401 2014-04-22 Richard Henderson <rth@redhat.com>
19403 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19404 (add<GPI>3_compare0): Remove leading * from name.
19405 (add<GPI>3_carryin): Likewise.
19406 (sub<GPI>3_compare0): Likewise.
19407 (sub<GPI>3_carryin): Likewise.
19408 (<su_optab>mulditi3): New expander.
19409 (multi3): New expander.
19410 (madd<GPI>): Remove leading * from name.
19412 2014-04-22 Martin Jambor <mjambor@suse.cz>
19414 * cgraphclones.c (cgraph_function_versioning): Copy
19415 ipa_transforms_to_apply instead of asserting it is empty.
19417 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19420 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19421 on count_exp to get mode.
19423 2014-04-22 Andrew Pinski <apinski@cavium.com>
19425 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19426 Handle TLS for ILP32.
19427 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19428 (tlsie_small_<mode>): this and handle PTR.
19429 (tlsie_small_sidi): New pattern.
19430 (tlsle_small): Change to an expand to handle ILP32.
19431 (tlsle_small_<mode>): New pattern.
19432 (tlsdesc_small): Rename to ...
19433 (tlsdesc_small_<mode>): this and handle PTR.
19435 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19437 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19439 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19441 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19442 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19443 (aarch64_types_signed_poly_qualifiers): Likewise.
19444 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19445 (aarch64_types_poly_signed_qualifiers): Likewise.
19446 (TYPES_REINTERP_SS): Type macro added.
19447 (TYPES_REINTERP_SU): Likewise.
19448 (TYPES_REINTERP_SP): Likewise.
19449 (TYPES_REINTERP_US): Likewise.
19450 (TYPES_REINTERP_PS): Likewise.
19451 (aarch64_fold_builtin): New expression folding added.
19452 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19453 Declarations removed.
19454 (REINTERP_SS): Declarations added.
19455 (REINTERP_US): Likewise.
19456 (REINTERP_PS): Likewise.
19457 (REINTERP_SU): Likewise.
19458 (REINTERP_SP): Likewise.
19459 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19460 (vreinterpretq_p8_f64): Likewise.
19461 (vreinterpret_p16_f64): Likewise.
19462 (vreinterpretq_p16_f64): Likewise.
19463 (vreinterpret_f32_f64): Likewise.
19464 (vreinterpretq_f32_f64): Likewise.
19465 (vreinterpret_f64_f32): Likewise.
19466 (vreinterpret_f64_p8): Likewise.
19467 (vreinterpret_f64_p16): Likewise.
19468 (vreinterpret_f64_s8): Likewise.
19469 (vreinterpret_f64_s16): Likewise.
19470 (vreinterpret_f64_s32): Likewise.
19471 (vreinterpret_f64_s64): Likewise.
19472 (vreinterpret_f64_u8): Likewise.
19473 (vreinterpret_f64_u16): Likewise.
19474 (vreinterpret_f64_u32): Likewise.
19475 (vreinterpret_f64_u64): Likewise.
19476 (vreinterpretq_f64_f32): Likewise.
19477 (vreinterpretq_f64_p8): Likewise.
19478 (vreinterpretq_f64_p16): Likewise.
19479 (vreinterpretq_f64_s8): Likewise.
19480 (vreinterpretq_f64_s16): Likewise.
19481 (vreinterpretq_f64_s32): Likewise.
19482 (vreinterpretq_f64_s64): Likewise.
19483 (vreinterpretq_f64_u8): Likewise.
19484 (vreinterpretq_f64_u16): Likewise.
19485 (vreinterpretq_f64_u32): Likewise.
19486 (vreinterpretq_f64_u64): Likewise.
19487 (vreinterpret_s64_f64): Likewise.
19488 (vreinterpretq_s64_f64): Likewise.
19489 (vreinterpret_u64_f64): Likewise.
19490 (vreinterpretq_u64_f64): Likewise.
19491 (vreinterpret_s8_f64): Likewise.
19492 (vreinterpretq_s8_f64): Likewise.
19493 (vreinterpret_s16_f64): Likewise.
19494 (vreinterpretq_s16_f64): Likewise.
19495 (vreinterpret_s32_f64): Likewise.
19496 (vreinterpretq_s32_f64): Likewise.
19497 (vreinterpret_u8_f64): Likewise.
19498 (vreinterpretq_u8_f64): Likewise.
19499 (vreinterpret_u16_f64): Likewise.
19500 (vreinterpretq_u16_f64): Likewise.
19501 (vreinterpret_u32_f64): Likewise.
19502 (vreinterpretq_u32_f64): Likewise.
19504 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19506 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19507 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19508 (vreinterpret_p8_s8): Likewise.
19509 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19510 (vreinterpret_p8_s16): Likewise.
19511 (vreinterpret_p8_s32): Likewise.
19512 (vreinterpret_p8_s64): Likewise.
19513 (vreinterpret_p8_f32): Likewise.
19514 (vreinterpret_p8_u8): Likewise.
19515 (vreinterpret_p8_u16): Likewise.
19516 (vreinterpret_p8_u32): Likewise.
19517 (vreinterpret_p8_u64): Likewise.
19518 (vreinterpret_p8_p16): Likewise.
19519 (vreinterpretq_p8_s8): Likewise.
19520 (vreinterpretq_p8_s16): Likewise.
19521 (vreinterpretq_p8_s32): Likewise.
19522 (vreinterpretq_p8_s64): Likewise.
19523 (vreinterpretq_p8_f32): Likewise.
19524 (vreinterpretq_p8_u8): Likewise.
19525 (vreinterpretq_p8_u16): Likewise.
19526 (vreinterpretq_p8_u32): Likewise.
19527 (vreinterpretq_p8_u64): Likewise.
19528 (vreinterpretq_p8_p16): Likewise.
19529 (vreinterpret_p16_s8): Likewise.
19530 (vreinterpret_p16_s16): Likewise.
19531 (vreinterpret_p16_s32): Likewise.
19532 (vreinterpret_p16_s64): Likewise.
19533 (vreinterpret_p16_f32): Likewise.
19534 (vreinterpret_p16_u8): Likewise.
19535 (vreinterpret_p16_u16): Likewise.
19536 (vreinterpret_p16_u32): Likewise.
19537 (vreinterpret_p16_u64): Likewise.
19538 (vreinterpret_p16_p8): Likewise.
19539 (vreinterpretq_p16_s8): Likewise.
19540 (vreinterpretq_p16_s16): Likewise.
19541 (vreinterpretq_p16_s32): Likewise.
19542 (vreinterpretq_p16_s64): Likewise.
19543 (vreinterpretq_p16_f32): Likewise.
19544 (vreinterpretq_p16_u8): Likewise.
19545 (vreinterpretq_p16_u16): Likewise.
19546 (vreinterpretq_p16_u32): Likewise.
19547 (vreinterpretq_p16_u64): Likewise.
19548 (vreinterpretq_p16_p8): Likewise.
19549 (vreinterpret_f32_s8): Likewise.
19550 (vreinterpret_f32_s16): Likewise.
19551 (vreinterpret_f32_s32): Likewise.
19552 (vreinterpret_f32_s64): Likewise.
19553 (vreinterpret_f32_u8): Likewise.
19554 (vreinterpret_f32_u16): Likewise.
19555 (vreinterpret_f32_u32): Likewise.
19556 (vreinterpret_f32_u64): Likewise.
19557 (vreinterpret_f32_p8): Likewise.
19558 (vreinterpret_f32_p16): Likewise.
19559 (vreinterpretq_f32_s8): Likewise.
19560 (vreinterpretq_f32_s16): Likewise.
19561 (vreinterpretq_f32_s32): Likewise.
19562 (vreinterpretq_f32_s64): Likewise.
19563 (vreinterpretq_f32_u8): Likewise.
19564 (vreinterpretq_f32_u16): Likewise.
19565 (vreinterpretq_f32_u32): Likewise.
19566 (vreinterpretq_f32_u64): Likewise.
19567 (vreinterpretq_f32_p8): Likewise.
19568 (vreinterpretq_f32_p16): Likewise.
19569 (vreinterpret_s64_s8): Likewise.
19570 (vreinterpret_s64_s16): Likewise.
19571 (vreinterpret_s64_s32): Likewise.
19572 (vreinterpret_s64_f32): Likewise.
19573 (vreinterpret_s64_u8): Likewise.
19574 (vreinterpret_s64_u16): Likewise.
19575 (vreinterpret_s64_u32): Likewise.
19576 (vreinterpret_s64_u64): Likewise.
19577 (vreinterpret_s64_p8): Likewise.
19578 (vreinterpret_s64_p16): Likewise.
19579 (vreinterpretq_s64_s8): Likewise.
19580 (vreinterpretq_s64_s16): Likewise.
19581 (vreinterpretq_s64_s32): Likewise.
19582 (vreinterpretq_s64_f32): Likewise.
19583 (vreinterpretq_s64_u8): Likewise.
19584 (vreinterpretq_s64_u16): Likewise.
19585 (vreinterpretq_s64_u32): Likewise.
19586 (vreinterpretq_s64_u64): Likewise.
19587 (vreinterpretq_s64_p8): Likewise.
19588 (vreinterpretq_s64_p16): Likewise.
19589 (vreinterpret_u64_s8): Likewise.
19590 (vreinterpret_u64_s16): Likewise.
19591 (vreinterpret_u64_s32): Likewise.
19592 (vreinterpret_u64_s64): Likewise.
19593 (vreinterpret_u64_f32): Likewise.
19594 (vreinterpret_u64_u8): Likewise.
19595 (vreinterpret_u64_u16): Likewise.
19596 (vreinterpret_u64_u32): Likewise.
19597 (vreinterpret_u64_p8): Likewise.
19598 (vreinterpret_u64_p16): Likewise.
19599 (vreinterpretq_u64_s8): Likewise.
19600 (vreinterpretq_u64_s16): Likewise.
19601 (vreinterpretq_u64_s32): Likewise.
19602 (vreinterpretq_u64_s64): Likewise.
19603 (vreinterpretq_u64_f32): Likewise.
19604 (vreinterpretq_u64_u8): Likewise.
19605 (vreinterpretq_u64_u16): Likewise.
19606 (vreinterpretq_u64_u32): Likewise.
19607 (vreinterpretq_u64_p8): Likewise.
19608 (vreinterpretq_u64_p16): Likewise.
19609 (vreinterpret_s8_s16): Likewise.
19610 (vreinterpret_s8_s32): Likewise.
19611 (vreinterpret_s8_s64): Likewise.
19612 (vreinterpret_s8_f32): Likewise.
19613 (vreinterpret_s8_u8): Likewise.
19614 (vreinterpret_s8_u16): Likewise.
19615 (vreinterpret_s8_u32): Likewise.
19616 (vreinterpret_s8_u64): Likewise.
19617 (vreinterpret_s8_p8): Likewise.
19618 (vreinterpret_s8_p16): Likewise.
19619 (vreinterpretq_s8_s16): Likewise.
19620 (vreinterpretq_s8_s32): Likewise.
19621 (vreinterpretq_s8_s64): Likewise.
19622 (vreinterpretq_s8_f32): Likewise.
19623 (vreinterpretq_s8_u8): Likewise.
19624 (vreinterpretq_s8_u16): Likewise.
19625 (vreinterpretq_s8_u32): Likewise.
19626 (vreinterpretq_s8_u64): Likewise.
19627 (vreinterpretq_s8_p8): Likewise.
19628 (vreinterpretq_s8_p16): Likewise.
19629 (vreinterpret_s16_s8): Likewise.
19630 (vreinterpret_s16_s32): Likewise.
19631 (vreinterpret_s16_s64): Likewise.
19632 (vreinterpret_s16_f32): Likewise.
19633 (vreinterpret_s16_u8): Likewise.
19634 (vreinterpret_s16_u16): Likewise.
19635 (vreinterpret_s16_u32): Likewise.
19636 (vreinterpret_s16_u64): Likewise.
19637 (vreinterpret_s16_p8): Likewise.
19638 (vreinterpret_s16_p16): Likewise.
19639 (vreinterpretq_s16_s8): Likewise.
19640 (vreinterpretq_s16_s32): Likewise.
19641 (vreinterpretq_s16_s64): Likewise.
19642 (vreinterpretq_s16_f32): Likewise.
19643 (vreinterpretq_s16_u8): Likewise.
19644 (vreinterpretq_s16_u16): Likewise.
19645 (vreinterpretq_s16_u32): Likewise.
19646 (vreinterpretq_s16_u64): Likewise.
19647 (vreinterpretq_s16_p8): Likewise.
19648 (vreinterpretq_s16_p16): Likewise.
19649 (vreinterpret_s32_s8): Likewise.
19650 (vreinterpret_s32_s16): Likewise.
19651 (vreinterpret_s32_s64): Likewise.
19652 (vreinterpret_s32_f32): Likewise.
19653 (vreinterpret_s32_u8): Likewise.
19654 (vreinterpret_s32_u16): Likewise.
19655 (vreinterpret_s32_u32): Likewise.
19656 (vreinterpret_s32_u64): Likewise.
19657 (vreinterpret_s32_p8): Likewise.
19658 (vreinterpret_s32_p16): Likewise.
19659 (vreinterpretq_s32_s8): Likewise.
19660 (vreinterpretq_s32_s16): Likewise.
19661 (vreinterpretq_s32_s64): Likewise.
19662 (vreinterpretq_s32_f32): Likewise.
19663 (vreinterpretq_s32_u8): Likewise.
19664 (vreinterpretq_s32_u16): Likewise.
19665 (vreinterpretq_s32_u32): Likewise.
19666 (vreinterpretq_s32_u64): Likewise.
19667 (vreinterpretq_s32_p8): Likewise.
19668 (vreinterpretq_s32_p16): Likewise.
19669 (vreinterpret_u8_s8): Likewise.
19670 (vreinterpret_u8_s16): Likewise.
19671 (vreinterpret_u8_s32): Likewise.
19672 (vreinterpret_u8_s64): Likewise.
19673 (vreinterpret_u8_f32): Likewise.
19674 (vreinterpret_u8_u16): Likewise.
19675 (vreinterpret_u8_u32): Likewise.
19676 (vreinterpret_u8_u64): Likewise.
19677 (vreinterpret_u8_p8): Likewise.
19678 (vreinterpret_u8_p16): Likewise.
19679 (vreinterpretq_u8_s8): Likewise.
19680 (vreinterpretq_u8_s16): Likewise.
19681 (vreinterpretq_u8_s32): Likewise.
19682 (vreinterpretq_u8_s64): Likewise.
19683 (vreinterpretq_u8_f32): Likewise.
19684 (vreinterpretq_u8_u16): Likewise.
19685 (vreinterpretq_u8_u32): Likewise.
19686 (vreinterpretq_u8_u64): Likewise.
19687 (vreinterpretq_u8_p8): Likewise.
19688 (vreinterpretq_u8_p16): Likewise.
19689 (vreinterpret_u16_s8): Likewise.
19690 (vreinterpret_u16_s16): Likewise.
19691 (vreinterpret_u16_s32): Likewise.
19692 (vreinterpret_u16_s64): Likewise.
19693 (vreinterpret_u16_f32): Likewise.
19694 (vreinterpret_u16_u8): Likewise.
19695 (vreinterpret_u16_u32): Likewise.
19696 (vreinterpret_u16_u64): Likewise.
19697 (vreinterpret_u16_p8): Likewise.
19698 (vreinterpret_u16_p16): Likewise.
19699 (vreinterpretq_u16_s8): Likewise.
19700 (vreinterpretq_u16_s16): Likewise.
19701 (vreinterpretq_u16_s32): Likewise.
19702 (vreinterpretq_u16_s64): Likewise.
19703 (vreinterpretq_u16_f32): Likewise.
19704 (vreinterpretq_u16_u8): Likewise.
19705 (vreinterpretq_u16_u32): Likewise.
19706 (vreinterpretq_u16_u64): Likewise.
19707 (vreinterpretq_u16_p8): Likewise.
19708 (vreinterpretq_u16_p16): Likewise.
19709 (vreinterpret_u32_s8): Likewise.
19710 (vreinterpret_u32_s16): Likewise.
19711 (vreinterpret_u32_s32): Likewise.
19712 (vreinterpret_u32_s64): Likewise.
19713 (vreinterpret_u32_f32): Likewise.
19714 (vreinterpret_u32_u8): Likewise.
19715 (vreinterpret_u32_u16): Likewise.
19716 (vreinterpret_u32_u64): Likewise.
19717 (vreinterpret_u32_p8): Likewise.
19718 (vreinterpret_u32_p16): Likewise.
19719 (vreinterpretq_u32_s8): Likewise.
19720 (vreinterpretq_u32_s16): Likewise.
19721 (vreinterpretq_u32_s32): Likewise.
19722 (vreinterpretq_u32_s64): Likewise.
19723 (vreinterpretq_u32_f32): Likewise.
19724 (vreinterpretq_u32_u8): Likewise.
19725 (vreinterpretq_u32_u16): Likewise.
19726 (vreinterpretq_u32_u64): Likewise.
19727 (vreinterpretq_u32_p8): Likewise.
19728 (vreinterpretq_u32_p16): Likewise.
19730 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19732 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19734 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19736 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19737 (vqnegd_s64): Likewise.
19738 (vqabs_s64): Likewise.
19739 (vqabsd_s64): Likewise.
19741 2014-04-22 Richard Henderson <rth@redhat.com>
19743 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19744 computation to the top of the loop.
19746 2014-04-22 Renlin <renlin.li@arm.com>
19747 Jiong Wang <jiong.wang@arm.com>
19749 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19750 * config/aarch64/aarch64.c (aarch64_layout_frame)
19751 (aarch64_initial_elimination_offset): Likewise.
19753 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19755 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19758 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19760 * machmode.h (bitwise_mode_for_mode): Declare.
19761 * stor-layout.h (bitwise_type_for_mode): Likewise.
19762 * stor-layout.c (bitwise_mode_for_mode): New function.
19763 (bitwise_type_for_mode): Likewise.
19764 * builtins.c (fold_builtin_memory_op): Use it instead of
19765 int_mode_for_mode and build_nonstandard_integer_type.
19767 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19769 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19770 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19771 (*-*-solaris2*): Simplify.
19772 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19773 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19774 *-*-solaris2.9* handling.
19776 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19778 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19779 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19780 handling, simplify.
19781 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19782 * configure: Regenerate.
19784 * config/i386/sol2-9.h: Remove.
19786 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19787 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19788 Remove Solaris 9 references.
19790 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19792 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19793 (floatuns<GPI:mode><GPF:mode>2): Remove.
19794 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19795 and floatuns conversions.
19796 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19797 and floatuns conversions.
19798 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19799 (w1,w2): New mode attributes for inequal width conversions.
19801 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19803 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19804 the output asm format.
19806 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19808 * config/aarch64/aarch64-simd.md
19809 (aarch64_cm<optab>di): Always split.
19810 (*aarch64_cm<optab>di): New.
19811 (aarch64_cmtstdi): Always split.
19812 (*aarch64_cmtstdi): New.
19814 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19816 PR tree-optimization/60823
19817 * omp-low.c (ipa_simd_modify_function_body): Go through
19818 all SSA_NAMEs and for those refering to vector arguments
19819 which are going to be replaced adjust SSA_NAME_VAR and,
19820 if it is a default definition, change it into a non-default
19821 definition assigned at the beginning of function from new_decl.
19822 (ipa_simd_modify_stmt_ops): Rewritten.
19823 * tree-dfa.c (set_ssa_default_def): When removing default def,
19824 check for NULL loc instead of NULL *loc.
19826 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19828 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19829 restrictions on core registers for DImode values in Thumb2.
19831 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19833 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19834 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19836 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19838 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19839 (*iordi_notzesidi_di): Likewise.
19840 (*iordi_notsesidi_di): Likewise.
19842 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19844 * config/arm/arm-protos.h (tune_params): New struct members.
19845 * config/arm/arm.c: Initialise tune_params per processor.
19846 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19847 for speed, based on new tune_params.
19849 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19851 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19852 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19853 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19854 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19855 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19856 (vrnda_f64): Likewise.
19857 (vrndi_f64): Likewise.
19858 (vrndm_f64): Likewise.
19859 (vrndn_f64): Likewise.
19860 (vrndp_f64): Likewise.
19861 (vrndx_f64): Likewise.
19863 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19865 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19866 GET_MODE_SIZE argument is enum machine_mode.
19868 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19871 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19872 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19874 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19876 PR middle-end/60281
19877 * asan.c (asan_emit_stack_protection): Force the base to align to
19878 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19879 appropriate bits if STRICT_ALIGNMENT.
19880 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19882 (expand_used_vars): Leave a space in the stack frame for alignment
19883 if STRICT_ALIGNMENT.
19885 2014-04-21 David Malcolm <dmalcolm@redhat.com>
19887 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
19889 (gimple_store_p): Likewise.
19890 (gimple_assign_load_p): Likewise.
19891 (gimple_assign_cast_p): Likewise.
19892 (gimple_clobber_p): Likewise.
19894 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
19895 rather than a gimple.
19896 (gimple_assign_cast_p): Likewise.
19898 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
19901 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
19902 If mode is DDmode and TARGET_E500_DOUBLE allow move.
19904 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
19905 more debug information for E500 if -mdebug=reg.
19907 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
19910 * config/i386/i386.c (ix86_expand_builtin)
19911 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
19912 register for target RTX.
19913 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
19915 2014-04-18 Cong Hou <congh@google.com>
19917 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
19918 the widen-mult pattern by handling two operands with different sizes,
19919 and operands whose size is smaller than half of the result type.
19921 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19923 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
19924 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
19925 (do_estimate_edge_time): Compute it.
19926 * ipa-inline.c (want_inline_small_function_p): Bypass
19927 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
19929 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
19931 * ipa-inline.c (spec_rem): New static variable.
19932 (dump_overall_stats): New function.
19933 (dump_inline_stats): New function.
19935 2014-04-18 Richard Henderson <rth@redhat.com>
19937 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
19938 to GET_MODE_SIZE, not a reg_class_t.
19940 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19942 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
19943 (vsx_xxmrglw_<mode>): Likewise.
19945 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
19948 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
19949 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
19950 (rs6000_init_hard_regno_mode_ok): Likewise.
19952 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
19954 * ipa-inline.c (inline_small_functions): Account only non-cold
19956 * doc/invoke.texi (inline-unit-growth): Update documentation.
19958 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
19960 * config/rs6000/rs6000.md (addti3, subti3): New.
19962 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
19965 * config/i386/i386.c (ix86_expand_clear): Remove outdated
19966 comment. Check optimize_insn_for_size_p instead of
19967 optimize_insn_for_speed_p.
19969 2014-04-17 Martin Jambor <mjambor@suse.cz>
19971 * gimple-iterator.c (gsi_start_edge): New function.
19972 * gimple-iterator.h (gsi_start_edge): Declare.
19973 * tree-sra.c (single_non_eh_succ): New function.
19974 (disqualify_ops_if_throwing_stmt): Renamed to
19975 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
19976 having one non-EH successor BB.
19977 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
19978 generate loads into replacements.
19979 (sra_modify_assign): Likewise and and also use the simple path for
19981 (sra_modify_function_body): Commit statements on edges.
19983 2014-04-17 Richard Biener <rguenther@suse.de>
19985 PR middle-end/60849
19986 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
19987 comparison results and add clarifying comment.
19989 2014-04-17 Jakub Jelinek <jakub@redhat.com>
19991 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
19992 (blank_mode): Initialize it.
19993 (emit_mode_size_inline, emit_mode_nunits_inline,
19994 emit_mode_inner_inline): New functions.
19995 (emit_insn_modes_h): Call them and surround their output with
19996 #if GCC_VERSION >= 4001 ... #endif.
19997 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
19998 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
19999 mode_* arrays if the argument is __builtin_constant_p.
20000 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20001 is enum machine_mode.
20003 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20005 * passes.c (opt_pass::execute): Adjust.
20006 (pass_manager::execute_pass_mode_switching): Likewise.
20007 (early_local_passes::execute): Likewise.
20008 (execute_one_pass): Pass cfun to the pass's execute method.
20009 * tree-pass.h (opt_pass::execute): Add function * argument.
20010 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20011 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20012 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20013 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20014 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20015 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20016 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20017 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20018 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20019 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20020 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20021 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20022 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20023 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20024 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20025 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20026 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20027 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20028 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20029 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20030 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20031 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20032 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20033 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20034 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20035 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20036 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20037 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20038 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20041 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20043 * passes.c (opt_pass::gate): Take function * argument.
20044 (gate_all_early_local_passes): Merge into
20045 (early_local_passes::gate): this.
20046 (gate_all_early_optimizations): Merge into
20047 (all_early_optimizations::gate): this.
20048 (gate_all_optimizations): Mege into
20049 (all_optimizations::gate): this.
20050 (gate_all_optimizations_g): Merge into
20051 (all_optimizations_g::gate): this.
20052 (gate_rest_of_compilation): Mege into
20053 (rest_of_compilation::gate): this.
20054 (gate_postreload): Merge into
20055 (postreload::gate): this.
20056 (dump_one_pass): Pass cfun to the pass's gate method.
20057 (execute_ipa_summary_passes): Likewise.
20058 (execute_one_pass): Likewise.
20059 (ipa_write_summaries_2): Likewise.
20060 (ipa_write_optimization_summaries_1): Likewise.
20061 (ipa_read_summaries_1): Likewise.
20062 (ipa_read_optimization_summaries_1): Likewise.
20063 (execute_ipa_stmt_fixups): Likewise.
20064 * tree-pass.h (opt_pass::gate): Add function * argument.
20065 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20066 combine-stack-adj.c, combine.c, compare-elim.c,
20067 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20068 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20069 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20070 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20071 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20072 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20073 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20074 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20075 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20076 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20077 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20078 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20079 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20080 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20081 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20082 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20083 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20084 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20085 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20086 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20087 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20088 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20089 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20090 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20091 var-tracking.c, vtable-verify.c, web.c: Adjust.
20093 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20095 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20096 * configure: Regenerate.
20098 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20100 * passes.c (dump_one_pass): don't check pass->has_gate.
20101 (execute_ipa_summary_passes): Likewise.
20102 (execute_one_pass): Likewise.
20103 (ipa_write_summaries_2): Likewise.
20104 (ipa_write_optimization_summaries_1): Likewise.
20105 (ipa_read_optimization_summaries_1): Likewise.
20106 (execute_ipa_stmt_fixups): Likewise.
20107 * tree-pass.h (pass_data::has_gate): Remove.
20108 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20109 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20110 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20111 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20112 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20113 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20114 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20115 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20116 gimple-low.c, gimple-ssa-isolate-paths.c,
20117 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20118 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20119 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20120 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20121 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20122 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20123 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20124 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20125 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20126 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20127 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20128 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20129 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20130 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20131 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20132 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20133 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20134 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20135 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20136 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20137 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20138 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20141 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20143 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20145 * passes.c (pass_manager::register_dump_files_1): Merge into
20146 (pass_manager::register_dump_files): this, and remove its handling of
20147 properties since the pass always has the properties anyway.
20148 (pass_manager::pass_manager): Adjust.
20150 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20152 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20153 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20154 dealing with properties.
20155 (pass_manager::register_dump_files): Adjust.
20157 2014-03-20 Mark Wielaard <mjw@redhat.com>
20159 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20160 then represent the bound as normal constant value.
20162 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20165 Forward port from 4.8 branch
20166 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20168 * config/i386/bmiintrin.h (_blsi_u32): New.
20169 (_blsi_u64): Ditto.
20170 (_blsr_u32): Ditto.
20171 (_blsr_u64): Ditto.
20172 (_blsmsk_u32): Ditto.
20173 (_blsmsk_u64): Ditto.
20174 (_tzcnt_u32): Ditto.
20175 (_tzcnt_u64): Ditto.
20177 2014-04-17 Kito Cheng <kito@0xlab.org>
20179 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20181 2014-04-17 Richard Biener <rguenther@suse.de>
20183 PR middle-end/60849
20184 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20185 boolean results for comparisons.
20187 2014-04-17 Richard Biener <rguenther@suse.de>
20189 PR tree-optimization/60836
20190 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20191 initial PHI args to be gimple values.
20193 2014-04-17 Richard Biener <rguenther@suse.de>
20195 PR tree-optimization/60841
20196 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20197 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20198 of stmts to SLP build.
20199 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20200 (vect_analyze_slp): Likewise.
20201 (vect_analyze_slp_instance): Likewise.
20202 (vect_build_slp_tree): Limit overall SLP tree growth.
20203 * tree-vectorizer.h (vect_analyze_data_refs,
20204 vect_analyze_slp): Adjust prototypes.
20206 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20208 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20211 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20213 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20214 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20215 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20216 for TARGET_SLOW_PSHUFB
20218 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20220 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20221 * config/i386/i386.c (intel_cost): Ditto.
20223 2014-04-17 Joey Ye <joey.ye@arm.com>
20225 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20227 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20229 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20230 with -fuse-profile.
20232 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20234 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20235 (type_all_derivations_known_p): New predicate.
20236 (type_all_ctors_visible_p): New predicate.
20237 (type_possibly_instantiated_p): New predicate.
20238 (get_odr_type): Compute all_derivations_known.
20239 (dump_odr_type): Dump the flag.
20240 (maybe_record_type): Cleanup.
20241 (record_target_from_binfo): Add bases_to_consider array;
20242 record bases for types w/o instances and skip CXX destructor.
20243 (possible_polymorphic_call_targets_1): Add bases_to_consider
20244 and consider_construction parameters; check if type may have instance.
20245 (get_polymorphic_call_info): Set maybe_in_construction to true
20246 when we know nothing.
20247 (record_targets_from_bases): Skip CXX destructors; they are
20248 never called for types in construction.
20249 (possible_polymorphic_call_targets): Do not record target when
20250 type may not have instance.
20252 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20255 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20256 external aliases alive, too.
20258 2014-04-16 Andrew Pinski <apinski@cavium.com>
20260 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20263 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20265 * final.c (compute_alignments): Do not apply loop alignment to a block
20266 falling through to the exit.
20268 2014-04-16 Catherine Moore <clm@codesourcery.com>
20270 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20271 Adjust constraints for microMIPS store patterns.
20273 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20275 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20277 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20279 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20280 (append_use): Run at -O0.
20281 (append_vdef): Likewise.
20282 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20283 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20285 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20287 PR tree-optimization/60844
20288 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20289 (propagate_op_to_single_use, remove_visited_stmt_chain,
20290 linearize_expr, repropagate_negates, reassociate_bb): Use it
20291 instead of gsi_remove.
20293 2014-04-16 Martin Jambor <mjambor@suse.cz>
20295 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20296 ipa_transforms_to_apply.
20297 (cgraph_function_versioning): Assert that old_node has empty
20298 ipa_transforms_to_apply.
20299 * trans-mem.c (ipa_tm_create_version): Likewise.
20300 * tree-inline.c (tree_function_versioning): Do not duplicate
20301 ipa_transforms_to_apply.
20303 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20306 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20308 Pass necessary as flags on 64-bit Solaris/x86.
20309 Use lowercase relocs for x86_64-*-*.
20310 * configure: Regenerate.
20312 2014-04-15 Jan Hubicka <jh@suse.cz>
20314 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20315 (maybe_record_node, likely_target_p): Use it.
20317 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20320 Revert following patch
20322 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20325 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20326 software floating point or no floating point registers, do not
20327 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20328 in GPRs that occurs after we tested for GPRs that would never be
20331 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20332 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20333 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20334 specifically allow DDmode, since that does not use the SPE SIMD
20337 2014-03-21 Mark Wielaard <mjw@redhat.com>
20339 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20340 as unsigned or int depending on type and value used.
20342 2014-04-15 Richard Biener <rguenther@suse.de>
20344 PR rtl-optimization/56965
20345 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20346 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20348 * alias.c (true_dependence_1): Do not call
20349 nonoverlapping_component_refs_p.
20350 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20351 nonoverlapping_component_refs_p.
20352 (indirect_refs_may_alias_p): Likewise.
20354 2014-04-15 Teresa Johnson <tejohnson@google.com>
20356 * cfg.c (dump_bb_info): Fix flags check.
20357 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20359 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20361 PR rtl-optimization/60663
20362 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20365 2014-04-15 Richard Biener <rguenther@suse.de>
20367 * lto-streamer.h (LTO_major_version): Bump to 4.
20369 2014-04-15 Richard Biener <rguenther@suse.de>
20371 * common.opt (lto_partition_model): New enum.
20372 (flto-partition=): Merge separate options with a single with argument,
20373 add -flto-partition=one support.
20374 * flag-types.h (enum lto_partition_model): Declare.
20375 * opts.c (finish_options): Remove duplicate -flto-partition=
20377 * lto-wrapper.c (run_gcc): Adjust.
20379 2014-04-15 Richard Biener <rguenther@suse.de>
20381 * alias.c (ncr_compar): New function.
20382 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20384 2014-04-15 Richard Biener <rguenther@suse.de>
20386 * alias.c (record_component_aliases): Do not walk BINFOs.
20388 2014-04-15 Richard Biener <rguenther@suse.de>
20390 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20391 Add struct function argument and adjust.
20392 (find_func_aliases_for_call): Likewise.
20393 (find_func_aliases): Likewise.
20394 (find_func_clobbers): Likewise.
20395 (intra_create_variable_infos): Likewise.
20396 (compute_points_to_sets): Likewise.
20397 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20399 2014-04-15 Richard Biener <rguenther@suse.de>
20401 * tree.c (iterative_hash_expr): Use enum tree_code_class
20402 to store TREE_CODE_CLASS.
20403 (tree_block): Likewise.
20404 (tree_set_block): Likewise.
20405 * tree.h (fold_build_pointer_plus_loc): Use
20406 convert_to_ptrofftype_loc.
20408 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20411 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20414 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20416 * cfgloop.h (struct loop): Move force_vectorize down.
20417 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20418 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20419 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20420 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20421 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20422 * tree-core.h (enum annot_expr_kind): Add new kind values.
20423 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20424 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20426 * tree.def (ANNOTATE_EXPR): Tweak comment.
20428 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20430 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20433 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20435 * tree.h (TYPE_IDENTIFIER): Declare.
20436 * tree.c (subrange_type_for_debug_p): Use it.
20437 * godump.c (go_format_type): Likewise.
20438 * dwarf2out.c (is_cxx_auto, modified_type_die,
20439 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20440 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20442 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20445 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20447 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20449 * config/i386/i386.c (examine_argument): Return bool. Return true if
20450 parameter should be passed in memory.
20451 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20452 (construct_container): Update calls to examine_argument.
20453 (function_arg_advance_64): Ditto.
20454 (return_in_memory_32): Merge with ix86_return_in_memory.
20455 (return_in_memory_64): Ditto.
20456 (return_in_memory_ms_64): Ditto.
20458 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20460 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20461 * coverage.c (coverage_compute_profile_id): Handle externally visible
20464 2014-04-14 Martin Jambor <mjambor@suse.cz>
20466 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20467 DECL_DISREGARD_INLINE_LIMITS functions.
20469 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20472 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20474 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20477 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20478 optimize_insn_for_speed_p instead of
20479 optimize_function_for_speed_p.
20481 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20483 * doc/invoke.texi (free): Document AArch64.
20485 2014-04-14 Richard Biener <rguenther@suse.de>
20487 PR tree-optimization/60042
20488 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20489 (insert_into_preds_of_block): Do not prevent PHI insertion
20490 for REFERENCE exprs here ...
20491 (eliminate_dom_walker::before_dom_children): ... but prevent
20492 their use here under similar conditions when applied to the
20493 IL after PRE optimizations.
20495 2014-04-14 Richard Biener <rguenther@suse.de>
20497 * passes.def: Move early points-to after early SRA.
20499 2014-04-14 Richard Biener <rguenther@suse.de>
20501 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20502 check for which sign-changes we allow when forwarding
20503 a converted value into a switch.
20505 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20507 * stor-layout.c (place_field): Finalize non-constant offset for the
20510 2014-04-14 Richard Biener <rguenther@suse.de>
20512 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20514 (expand_switch_using_bit_tests_p): Likewise.
20515 (process_switch): Compute and pass on speed_p based on the
20517 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20518 optimize_bb_for_speed_p.
20520 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20522 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20523 * function.h (struct function): Rename has_force_vect_loops into
20524 has_force_vectorize_loops.
20525 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20526 (input_struct_function_base): Likewise.
20527 * lto-streamer-out.c (output_cfg): Likewise.
20528 (output_struct_function_base): Likewise.
20529 * omp-low.c (expand_omp_simd): Likewise.
20530 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20531 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20532 (version_loop_for_if_conversion): Likewise.
20533 (tree_if_conversion): Likewise.
20534 (main_tree_if_conversion): Likewise.
20535 (gate_tree_if_conversion): Likewise.
20536 * tree-inline.c (copy_loops): Likewise.
20537 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20538 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20539 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20540 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20541 * tree-vectorizer.c (vectorize_loops): Likewise.
20542 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20544 2014-04-14 Richard Biener <rguenther@suse.de>
20547 * lto-streamer-out.c (wrap_refs): New function.
20548 (lto_output): Wrap symbol references in global initializes in
20549 type-preserving MEM_REFs.
20551 2014-04-14 Christian Bruel <christian.bruel@st.com>
20553 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20555 2014-04-14 Christian Bruel <christian.bruel@st.com>
20557 * config/sh/sh.md (setmemqi): New expand pattern.
20558 * config/sh/sh.h (CLEAR_RATIO): Define.
20559 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20560 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20562 2014-04-14 Richard Biener <rguenther@suse.de>
20564 PR middle-end/55022
20565 * fold-const.c (negate_expr_p): Don't negate directional rounding
20567 (fold_negate_expr): Likewise.
20569 2014-04-14 Richard Biener <rguenther@suse.de>
20571 PR tree-optimization/59817
20572 PR tree-optimization/60453
20573 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20574 recursion to catch all CHRECs in the scalar evolution and restrict
20575 the predicate for the remains appropriately.
20577 2014-04-12 Catherine Moore <clm@codesourcery.com>
20579 * config/mips/constraints.md: Add new register constraint "kb".
20580 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20581 (*movhi_internal): Likewise.
20582 (*movqi_internal): Likewise.
20583 * config/mips/mips.h (M16_STORE_REGS): New register class.
20584 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20585 (REG_CLASS_CONTENTS): Likewise.
20586 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20588 2014-04-11 Tobias Burnus <burnus@net-b.de>
20591 * doc/invoke.texi (-Wformat-signedness): Document it.
20592 (Wformat=2): Mention that this enables -Wformat-signedness.
20594 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20596 * common/config/epiphany/epiphany-common.c
20597 (epiphany_option_optimization_table): Enable section anchors by
20598 default at -O1 or higher.
20599 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20600 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20601 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20602 carries no extra cost.
20603 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20604 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20605 * config/epiphany/predicates.md (memclob_operand): New predicate.
20606 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20607 Use memclob_operand predicate and X constraint for operand 3.
20609 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20611 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20612 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20615 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20617 PR rtl-optimization/60651
20618 * mode-switching.c (optimize_mode_switching): Make sure to emit
20619 sets of a lower numbered entity before sets of a higher numbered
20620 entity to a mode of the same or lower priority.
20621 When creating a seginfo for a basic block that starts with a code
20622 label, move the insertion point past the code label.
20623 (new_seginfo): Document and enforce requirement that
20624 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20625 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20626 * doc/tm.texi: Regenerate.
20628 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20631 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20633 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20635 * BASE-VER: Set to 4.10.0.
20637 2014-04-11 Tobias Burnus <burnus@net-b.de>
20640 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20641 * doc/gcc.texi (Service): Update description in the @menu
20642 * doc/invoke.texi (Option Summary): Remove misplaced and
20645 2014-04-11 Steve Ellcey <sellcey@mips.com>
20646 Jakub Jelinek <jakub@redhat.com>
20648 PR middle-end/60556
20649 * expr.c (convert_move): Use emit_store_flag_force instead of
20650 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20653 2014-04-11 Richard Biener <rguenther@suse.de>
20655 PR middle-end/60797
20656 * varasm.c (assemble_alias): Avoid endless error reporting
20657 recursion by setting TREE_ASM_WRITTEN.
20659 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20661 * config/s390/s390.md: Add a splitter for NOT rtx.
20663 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20665 PR rtl-optimization/60663
20666 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20668 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20669 Jakub Jelinek <jakub@redhat.com>
20672 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20673 flag from decl_node to node.
20675 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20678 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20679 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20680 ameliorating the cases where it can be.
20682 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20685 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20687 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20688 (loadsync_<mode>): Change mode.
20689 (load_quadpti, store_quadpti): New.
20690 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20691 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20692 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20694 2014-04-09 Cong Hou <congh@google.com>
20697 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20700 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20702 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20703 instead of vnor to exploit possible fusion opportunity in the
20705 (altivec_expand_vec_perm_const_le): Likewise.
20707 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20709 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20710 (loadsync_<mode>): Change mode.
20711 (load_quadpti, store_quadpti): New.
20712 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20713 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20715 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20718 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20719 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20720 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20722 2014-04-08 Richard Biener <rguenther@suse.de>
20724 PR middle-end/60706
20725 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20726 a 64bit widest int print double-int similar to on HWI64 hosts.
20728 2014-04-08 Richard Biener <rguenther@suse.de>
20730 PR tree-optimization/60785
20731 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20732 default defs properly.
20734 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20736 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20737 (Weffc++): Likewise.
20739 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20741 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20742 set completep to false rather than true.
20744 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20747 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20748 ARM_TARGET2_DWARF_FORMAT.
20750 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20753 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20754 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20757 2014-04-07 Richard Biener <rguenther@suse.de>
20759 PR tree-optimization/60766
20760 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20761 (may_eliminate_iv): Convert cand_value_at result to desired type.
20763 2014-04-07 Jason Merrill <jason@redhat.com>
20766 * common.opt (-fno-gnu-unique): Add.
20767 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20769 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20771 * haifa-sched.c: Fix outdated function reference and minor
20772 grammar errors in introductory comment.
20774 2014-04-07 Richard Biener <rguenther@suse.de>
20776 PR middle-end/60750
20777 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20778 for noreturn calls.
20779 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20781 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20784 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20785 size accounting for thunks.
20786 (pa_asm_output_mi_thunk): Use final_start_function() and
20787 final_end_function() to output function start and end directives.
20789 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20791 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20792 device specific ISA/ feature information. Remove short_sp and
20793 errata_skip ds. Add avr_device_specific_features enum to have device
20795 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20796 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20797 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20798 updated device specific info.
20799 * config/avr/avr-mcus.def: Merge device specific details to
20800 dev_attribute field.
20801 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20803 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20804 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20805 assembler if RMW isa supported by current device.
20806 * config/avr/genmultilib.awk: Update as device info structure changed.
20807 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20809 2014-04-04 Cong Hou <congh@google.com>
20811 PR tree-optimization/60656
20812 * tree-vect-stmts.c (supportable_widening_operation):
20813 Fix a bug that elements in a vector with vect_used_by_reduction
20814 property are incorrectly reordered when the operation on it is not
20815 consistant with the one in reduction operation.
20817 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20819 PR rtl-optimization/60155
20820 * gcse.c (record_set_data): New function.
20821 (single_set_gcse): New function.
20822 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20823 (hoist_code): Likewise.
20824 (get_pressure_class_and_nregs): Likewise.
20826 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20828 * explow.c (probe_stack_range): Emit a final optimization blockage.
20830 2014-04-04 Anthony Green <green@moxielogic.com>
20832 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20835 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20838 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20839 flags are set only during streaming.
20840 * ipa.c (process_references, walk_polymorphic_call_targets,
20841 symtab_remove_unreachable_nodes): Drop bodies of always inline
20842 after early inlining.
20843 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20845 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20846 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20849 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20852 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20855 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20857 (cortex_a53_fdivd): Likewise.
20859 2014-04-04 Martin Jambor <mjambor@suse.cz>
20862 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20863 Adjust all callers.
20864 * cgraph.c (clone_of_p): Also return true if thunks match.
20865 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20866 cgraph_function_or_thunk_node and an obsolete comment.
20867 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20869 (build_function_decl_skip_args): Likewise.
20870 (set_new_clone_decl_and_node_flags): New function.
20871 (duplicate_thunk_for_node): Likewise.
20872 (redirect_edge_duplicating_thunks): Likewise.
20873 (cgraph_clone_node): New parameter args_to_skip, pass it to
20874 redirect_edge_duplicating_thunks which is called instead of
20875 cgraph_redirect_edge_callee.
20876 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20877 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20879 2014-04-04 Jeff Law <law@redhat.com>
20882 * config/arm/predicates.md (const_int_I_operand): New predicate.
20883 (const_int_M_operand): Similarly.
20884 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
20886 (insv_t2, extv_reg, extzv_t2): Likewise.
20887 (load_multiple_with_writeback): Similarly for const_int_I_operand.
20888 (pop_multiple_with_writeback_and_return): Likewise.
20889 (vfp_pop_multiple_with_writeback): Likewise
20891 2014-04-04 Richard Biener <rguenther@suse.de>
20894 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
20895 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
20897 * gimplify.h (gimple_add_tmp_var_fn): Declare.
20898 * gimplify.c (gimple_add_tmp_var_fn): New function.
20899 * gimple-expr.h (create_tmp_reg_fn): Declare.
20900 * gimple-expr.c (create_tmp_reg_fn): New function.
20901 * gimple-low.c (record_vars_into): Don't change cfun.
20902 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
20903 code generation without cfun.
20905 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
20908 * Makefile.in (install-driver): Fix shell scripting.
20910 2014-04-03 Cong Hou <congh@google.com>
20912 PR tree-optimization/60505
20913 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
20914 threshold of number of iterations below which no vectorization
20916 * tree-vect-loop.c (new_loop_vec_info):
20917 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
20918 * tree-vect-loop.c (vect_analyze_loop_operations):
20919 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
20920 * tree-vect-loop.c (vect_transform_loop):
20921 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
20922 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
20923 of iterations of the loop and see if we should build the epilogue.
20925 2014-04-03 Richard Biener <rguenther@suse.de>
20927 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
20928 (streamer_tree_cache_create): Adjust.
20929 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
20930 to allow optional nodes array.
20931 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
20932 (streamer_tree_cache_append): Likewise.
20933 (streamer_tree_cache_create): Create nodes array optionally
20934 as specified by parameter.
20935 * lto-streamer-out.c (create_output_block): Avoid maintaining
20936 the node array in the writer cache.
20937 (DFS_write_tree): Remove assertion.
20938 (produce_asm_for_decls): Free the out decl state hash table early.
20939 * lto-streamer-in.c (lto_data_in_create): Adjust for
20940 streamer_tree_cache_create prototype change.
20942 2014-04-03 Richard Biener <rguenther@suse.de>
20944 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
20945 set TREE_CHAIN to NULL_TREE.
20947 2014-04-03 Richard Biener <rguenther@suse.de>
20949 PR tree-optimization/60740
20950 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
20951 over all GIMPLE_COND operands.
20953 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
20955 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
20956 (Weffc++): Remove Scott's numbering, merge lists and reference
20959 2014-04-03 Nick Clifton <nickc@redhat.com>
20961 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
20964 2014-04-03 Martin Jambor <mjambor@suse.cz>
20966 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
20967 mention gcc_unreachable before failing.
20968 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
20971 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
20974 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
20975 inconsistent code and instead mark the context inconsistent.
20976 (possible_polymorphic_call_targets): For inconsistent contexts
20977 return empty complete list.
20979 2014-04-02 Anthony Green <green@moxielogic.com>
20981 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
20982 (extendqisi2, extendhisi2): Define.
20983 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
20984 (WCHAR_TYPE): Change to unsigned int.
20986 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20988 PR tree-optimization/60733
20989 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
20990 insertion point for PHI candidates to be the end of the feeding
20991 block for the PHI argument.
20993 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
20995 PR rtl-optimization/60650
20996 * lra-constraints.c (process_alt_operands): Decrease reject for
20997 earlyclobber matching.
20999 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21001 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21003 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21005 * config/spu/spu.c (pad_bb): Do not crash when the last
21006 insn is CODE_FOR_blockage.
21008 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21010 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21011 lies outside the target mode.
21013 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21016 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21017 software floating point or no floating point registers, do not
21018 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21019 in GPRs that occurs after we tested for GPRs that would never be
21022 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21023 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21024 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21025 specifically allow DDmode, since that does not use the SPE SIMD
21028 2014-04-02 Richard Biener <rguenther@suse.de>
21030 PR middle-end/60729
21031 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21032 MODE_INTs. Properly use negv_optab.
21033 (expand_abs): Likewise.
21035 2014-04-02 Richard Biener <rguenther@suse.de>
21038 * Makefile.in (install-driver): Guard extra installs with special
21041 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21043 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21044 Document vec_vgbbd.
21046 2014-04-01 Richard Henderson <rth@redhat.com>
21049 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21050 alternative enabled before register allocation.
21052 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21054 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21055 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21057 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21058 (nios2_got_address): Update nios2_large_got_address call site.
21059 (nios2_delegitimize_address): New function.
21060 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21061 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21062 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21064 2014-04-01 Martin Husemann <martin@duskware.de>
21066 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21069 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21071 PR rtl-optimization/60604
21072 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21073 check from register_operand.
21074 (register_operand): Redefine in terms of general_operand.
21075 (nonmemory_operand): Use register_operand for the non-constant cases.
21077 2014-04-01 Richard Biener <rguenther@suse.de>
21079 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21081 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21083 * doc/invoke.texi (mapp-regs): Clarify.
21085 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21087 * config/i386/avx512fintrin.h (__v32hi): Define type.
21088 (__v64qi): Likewise.
21089 (_mm512_set1_epi8): Define.
21090 (_mm512_set1_epi16): Define.
21091 (_mm512_set4_epi32): Define.
21092 (_mm512_set4_epi64): Define.
21093 (_mm512_set4_pd): Define.
21094 (_mm512_set4_ps): Define.
21095 (_mm512_setr4_epi64): Define.
21096 (_mm512_setr4_epi32): Define.
21097 (_mm512_setr4_pd): Define.
21098 (_mm512_setr4_ps): Define.
21099 (_mm512_setzero_epi32): Define.
21101 2014-03-31 Martin Jambor <mjambor@suse.cz>
21103 PR middle-end/60647
21104 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21105 callsite_arguments_match_p. Updated all callers. Also check types of
21106 corresponding formal parameters and actual arguments.
21107 (not_all_callers_have_enough_arguments_p) Renamed to
21108 some_callers_have_mismatched_arguments_p.
21110 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21112 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21114 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21117 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21120 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21122 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21123 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21125 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21126 Use FMAMODE_NOVF512 mode iterator.
21127 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21128 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21129 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21130 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21132 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21133 Use VF_128_256 mode iterator.
21134 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21137 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21139 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21140 static chain if needed.
21142 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21145 * lra-constraints.c (index_part_to_reg): New.
21146 (process_address): Use it.
21148 2014-03-27 Jeff Law <law@redhat.com>
21149 Jakub Jelinek <jakub@redhat.com>
21152 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21153 gen_rtx_{PLUS,MULT} to build up the address expression.
21155 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21156 creating non-canonical RTL.
21158 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21161 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21162 functions; reorganize to make cheap checks first.
21163 (inline_small_functions): Do not estimate growth when dumping;
21165 * ipa-inline.h (inline_summary): Add min_size.
21166 (growth_likely_positive): New function.
21167 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21168 (set_cond_stmt_execution_predicate): Cleanup.
21169 (estimate_edge_size_and_time): Compute min_size.
21170 (estimate_calls_size_and_time): Likewise.
21171 (estimate_node_size_and_time): Likewise.
21172 (inline_update_overall_summary): Update min_size.
21173 (do_estimate_edge_time): Likewise.
21174 (do_estimate_edge_size): Update.
21175 (do_estimate_edge_hints): Update.
21176 (growth_likely_positive): New function.
21178 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21181 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21182 also if addr has VOIDmode.
21184 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21186 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21187 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21189 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21190 instructions as well as AdvancedSIMD loads.
21192 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21194 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21195 Use crypto_aese type.
21196 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21197 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21198 crypto_aese, crypto_aesmc. Move to types.md.
21199 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21201 * config/arm/iterators.md (crypto_type): Likewise.
21203 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21205 * cgraph.c: Include expr.h and tree-dfa.h.
21206 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21209 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21212 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21213 regs from checking multi-reg pseudos.
21215 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21217 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21219 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21221 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21222 if it would clobber the stack pointer, even temporarily.
21224 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21226 * mode-switching.c: Make small adjustments to the top comment.
21228 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21230 * config/rs6000/constraints.md (wD constraint): New constraint to
21231 match the constant integer to get the top DImode/DFmode out of a
21232 vector in a VSX register.
21234 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21235 match the constant integer to get the top DImode/DFmode out of a
21236 vector in a VSX register.
21238 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21241 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21244 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21245 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21247 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21248 Optimize vec_extract of 64-bit values, where the value being
21249 extracted is in the top word, where we can use scalar
21250 instructions. Add direct move and store support. Combine the big
21251 endian/little endian vector select load support into a single insn.
21252 (vsx_extract_<mode>_internal1): Likewise.
21253 (vsx_extract_<mode>_internal2): Likewise.
21254 (vsx_extract_<mode>_load): Likewise.
21255 (vsx_extract_<mode>_store): Likewise.
21256 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21257 combined into vsx_extract_<mode>_load.
21258 (vsx_extract_<mode>_one_le): Likewise.
21260 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21261 define the top 64-bit vector element.
21263 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21266 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21267 Document vec_vbpermq builtin.
21270 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21271 enable use of xxsldwi and xxpermdi builtin functions.
21272 (vec_xxpermdi): Likewise.
21274 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21275 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21277 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21279 PR rtl-optimization/60650
21280 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21282 (find_spills_for): New.
21283 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21284 Spill all pseudos on the second iteration.
21286 2014-03-27 Marek Polacek <polacek@redhat.com>
21289 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21292 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21294 * config/s390/s390.c (s390_can_use_return_insn): Check for
21295 call-saved FPRs on 31 bit.
21297 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21299 PR middle-end/60682
21300 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21301 if they need regimplification, just drop them instead of
21302 calling gimple_regimplify_operands on them.
21304 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21307 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21308 (aarch64_frame_pointer_required): Adjust logic.
21309 (aarch64_can_eliminate): Adjust logic.
21310 (aarch64_override_options_after_change): Adjust logic.
21312 2014-03-27 Dehao Chen <dehao@google.com>
21314 * ipa-inline.c (early_inliner): Update node's inline info.
21316 2014-03-26 Dehao Chen <dehao@google.com>
21318 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21319 compiler inserted conditional jumps for NAN float check.
21321 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21323 * ubsan.h (ubsan_create_data): Change second argument's type
21324 to const location_t *.
21325 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21327 (ubsan_create_data): Change second argument to const location_t *PLOC.
21328 Create Loc field whenever PLOC is non-NULL.
21329 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21330 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21334 * real.c (real_to_integer2): Change type of low to UHWI.
21336 2014-03-26 Tobias Burnus <burnus@net-b.de>
21338 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21339 (CILK_SELF_SPECS): New define.
21340 (driver_self_specs): Use it.
21342 2014-03-26 Richard Biener <rguenther@suse.de>
21344 * tree-pretty-print.c (percent_K_format): Implement special
21345 case for LTO and its stripped down BLOCK tree.
21347 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21350 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21352 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21353 one range is range_int_cst_p, but not both, at least optimize
21354 addition/subtraction of 0 and multiplication by 0 or 1.
21355 * gimple-fold.c (gimple_fold_call): Fold
21356 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21357 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21358 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21360 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21362 PR rtl-optimization/60452
21363 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21364 <case REG>: Return 1 for invalid offsets from the frame pointer.
21366 2014-03-26 Marek Polacek <polacek@redhat.com>
21369 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21372 2014-03-26 Marek Polacek <polacek@redhat.com>
21375 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21378 2014-03-26 Marek Polacek <polacek@redhat.com>
21381 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21382 multiplication in unsigned type.
21384 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21386 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21388 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21390 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21392 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21395 * cif-code.def (UNREACHABLE) New code.
21396 * ipa-inline.c (inline_small_functions): Skip edges to
21397 __builtlin_unreachable.
21398 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21399 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21400 predicate to __bulitin_unreachable.
21401 (set_cond_stmt_execution_predicate): Fix issue when
21402 invert_tree_comparison returns ERROR_MARK.
21403 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21404 propagate to inline clones.
21405 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21407 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21408 * cgraphclones.c (cgraph_clone_node): If call destination is already
21409 ureachable, do not redirect it back.
21410 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21413 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21415 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21416 Do not modify inline clones.
21418 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21420 * config/i386/i386.md (general_sext_operand): New mode attr.
21421 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21422 don't generate (sign_extend (const_int)).
21423 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21424 operands[2]. Use We constraint instead of <i> and
21425 <general_sext_operand> predicate instead of <general_operand>.
21426 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21427 * config/i386/constraints.md (We): New constraint.
21428 * config/i386/predicates.md (x86_64_sext_operand,
21429 sext_operand): New predicates.
21431 2014-03-25 Martin Jambor <mjambor@suse.cz>
21434 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21435 inconsistent devirtualizations to __builtin_unreachable.
21437 2014-03-25 Marek Polacek <polacek@redhat.com>
21440 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21442 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21444 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21445 order of elements for big-endian.
21447 2014-03-25 Richard Biener <rguenther@suse.de>
21449 PR middle-end/60635
21450 * gimplify-me.c (gimple_regimplify_operands): Update the
21453 2014-03-25 Martin Jambor <mjambor@suse.cz>
21456 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21457 (lto_output_varpool_node): Likewise.
21458 (input_overwrite_node): Likewise.
21459 (input_varpool_node): Likewise.
21461 2014-03-25 Richard Biener <rguenther@suse.de>
21463 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21464 (run_gcc): Likewise.
21466 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21468 * combine.c (simplify_compare_const): Add MODE argument.
21469 Handle mode_width 0 as very large mode_width.
21470 (try_combine, simplify_comparison): Adjust callers.
21472 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21473 type to avoid signed integer overflow.
21474 * explow.c (plus_constant): Likewise.
21476 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21478 * doc/generic.texi: Correct typos.
21480 2014-03-24 Tobias Burnus <burnus@net-b.de>
21482 * doc/invoke.texi (-flto): Expand section about
21483 using static libraries with LTO.
21485 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21487 PR rtl-optimization/60501
21488 * optabs.def (addptr3_optab): New optab.
21489 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21490 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21491 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21493 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21495 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21497 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21499 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21502 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21503 (_mm256_undefined_ps): Define.
21504 (_mm256_undefined_pd): Define.
21505 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21506 (_mm_undefined_pd): Define.
21507 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21508 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21509 (_mm512_undefined_ps): Define.
21510 (_mm512_undefined_pd): Define.
21511 Use _mm*_undefined_*.
21512 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21514 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21516 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21517 (lshr_simd): DI mode added.
21518 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21519 (aarch64_ushr_simddi): Likewise.
21520 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21521 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21522 (vshrd_n_u64): Likewise.
21524 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21526 * Makefile.in (s-macro_list): Depend on cc1.
21528 2014-03-23 Teresa Johnson <tejohnson@google.com>
21530 * ipa-utils.c (ipa_print_order): Use specified dump file.
21532 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21534 PR rtl-optimization/60601
21535 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21537 * gcc.c (eval_spec_function): Initialize save_growing_value.
21539 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21542 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21543 code == MINUS_EXPR, never swap op0 with op1.
21545 * toplev.c (init_local_tick): Avoid signed integer multiplication
21547 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21548 shift by first operand's bitsize.
21550 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21553 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21554 redefine to 1 or 0.
21555 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21556 TARGET_ISA_64BIT_P(x).
21558 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21560 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21561 pattern for vector nor instead of subtract from splat(-1).
21562 (altivec_expand_vec_perm_const_le): Likewise.
21564 2014-03-21 Richard Henderson <rth@twiddle.net>
21567 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21568 related insns after epilogue_completed.
21570 2014-03-21 Martin Jambor <mjambor@suse.cz>
21573 * cgraph.h (symtab_node): New flag body_removed.
21574 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21575 when removing bodies.
21576 * symtab.c (dump_symtab_base): Dump body_removed flag.
21577 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21578 had their bodies removed.
21580 2014-03-21 Martin Jambor <mjambor@suse.cz>
21583 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21586 2014-03-21 Richard Biener <rguenther@suse.de>
21588 PR tree-optimization/60577
21589 * tree-core.h (struct tree_base): Document nothrow_flag use
21590 in DECL_NONALIASED.
21591 * tree.h (DECL_NONALIASED): New.
21592 (may_be_aliased): Adjust.
21593 * coverage.c (build_var): Set DECL_NONALIASED.
21595 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21597 * expr.c (expand_expr_real_1): Remove outdated comment.
21599 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21601 PR middle-end/60597
21602 * ira.c (adjust_cleared_regs): Call copy_rtx on
21603 *reg_equiv[REGNO (loc)].src_p before passing it to
21604 simplify_replace_fn_rtx.
21607 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21608 into CONST, put pic register as first operand of PLUS. Use
21609 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21611 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21613 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21615 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21617 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21618 around for store forwarding issue in the FPU on the UT699.
21619 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21620 loads and operations if -mfix-ut699 is specified.
21621 (divtf3_hq): Tweak attribute.
21622 (sqrttf2_hq): Likewise.
21624 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21626 * calls.c (store_one_arg): Remove incorrect const qualification on the
21627 type of the temporary.
21628 * cfgexpand.c (expand_return): Likewise.
21629 * expr.c (expand_constructor): Likewise.
21630 (expand_expr_real_1): Likewise.
21632 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21634 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21637 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21640 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21642 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21644 * config/arm/aarch-common-protos.h
21645 (alu_cost_table): Fix spelling of "extend".
21646 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21648 2014-03-19 Richard Biener <rguenther@suse.de>
21650 PR middle-end/60553
21651 * tree-core.h (tree_type_common): Re-order pointer members
21652 to reduce recursion depth during GC walks.
21654 2014-03-19 Marek Polacek <polacek@redhat.com>
21657 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21658 before accessing it.
21660 2014-03-19 Richard Biener <rguenther@suse.de>
21663 * lto-streamer-in.c (input_function): In WPA stage do not drop
21666 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21668 PR tree-optimization/60559
21669 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21670 with build_zero_cst assignment.
21672 2014-03-18 Kai Tietz <ktietz@redhat.com>
21674 PR rtl-optimization/56356
21675 * sdbout.c (sdbout_parms): Verify that parms'
21676 incoming argument is valid.
21677 (sdbout_reg_parms): Likewise.
21679 2014-03-18 Richard Henderson <rth@redhat.com>
21682 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21683 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21684 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21686 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21688 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21689 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21690 Italicize plugin event names in description. Explain that
21691 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21692 Remind that no GCC functions should be called after PLUGIN_FINISH.
21693 Explain what pragmas with expansion are.
21695 2014-03-18 Martin Liska <mliska@suse.cz>
21697 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21698 gimple call statement is update.
21699 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21700 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21702 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21705 * ubsan.c (ubsan_instrument_unreachable): Call
21706 initialize_sanitizer_builtins.
21707 (ubsan_pass): Likewise.
21710 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21711 varpool_finalize_decl instead of rest_of_decl_compilation.
21713 2014-03-18 Richard Biener <rguenther@suse.de>
21715 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21716 by using bitmap_and_compl instead of bitmap_and_compl_into.
21717 (df_rd_transfer_function): Likewise.
21719 2014-03-18 Richard Biener <rguenther@suse.de>
21721 * doc/lto.texi (fresolution): Fix typo.
21723 2014-03-18 Richard Biener <rguenther@suse.de>
21725 * doc/invoke.texi (flto): Update for changes in 4.9.
21727 2014-03-18 Richard Biener <rguenther@suse.de>
21729 * doc/loop.texi: Remove section on the removed lambda framework.
21730 Update loop docs with recent changes in preserving loop structure.
21732 2014-03-18 Richard Biener <rguenther@suse.de>
21734 * doc/lto.texi (-fresolution): Document.
21736 2014-03-18 Richard Biener <rguenther@suse.de>
21738 * doc/contrib.texi: Adjust my name.
21740 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21743 * internal-fn.c: Include diagnostic-core.h.
21744 (expand_BUILTIN_EXPECT): New function.
21745 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21746 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21747 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21748 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21749 IFN_BUILTIN_EXPECT.
21750 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21751 Revert 3 argument __builtin_expect code.
21752 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21753 * gimple-fold.c (gimple_fold_call): Likewise.
21754 * tree.h (fold_builtin_expect): New prototype.
21755 * builtins.c (build_builtin_expect_predicate): Add predictor
21756 argument, if non-NULL, create 3 argument __builtin_expect.
21757 (fold_builtin_expect): No longer static. Add ARG2 argument,
21758 pass it through to build_builtin_expect_predicate.
21759 (fold_builtin_2): Adjust caller.
21760 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21761 * internal-fn.def (BUILTIN_EXPECT): New.
21763 2014-03-18 Tobias Burnus <burnus@net-b.de>
21766 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21767 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21768 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21770 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21773 * predict.c (combine_predictions_for_bb): Fix up formatting.
21774 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21775 fill what it points to if non-NULL.
21776 (tree_predict_by_opcode): Adjust caller, use the predictor.
21777 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21779 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21781 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21782 proper constant for the store mode.
21784 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21786 * symtab.c (change_decl_assembler_name): Fix transparent alias
21787 chain construction.
21789 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21791 * config/aarch64/aarch64.c: Correct the comments about the
21792 aarch64 stack layout.
21794 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21796 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21797 check for GF_OMP_FOR_KIND_FOR.
21799 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21801 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21802 ymm and zmm register names.
21804 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21807 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21808 note creation for the 2010-08-31 changes.
21810 2014-03-17 Marek Polacek <polacek@redhat.com>
21812 PR middle-end/60534
21813 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21814 as -fno-tree-loop-vectorize.
21815 (expand_omp_simd): Likewise.
21817 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21819 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21820 (eligible_for_call_delay): New prototype.
21821 * config/sparc/sparc.c (tls_call_delay): Rename into...
21822 (eligible_for_call_delay): ...this. Return false if the instruction
21823 cannot be put in the delay slot of a branch.
21824 (eligible_for_restore_insn): Simplify.
21825 (eligible_for_return_delay): Return false if the instruction cannot be
21826 put in the delay slot of a branch and simplify.
21827 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21828 put in the delay slot of a branch.
21829 * config/sparc/sparc.md (fix_ut699): New attribute.
21830 (tls_call_delay): Delete.
21831 (in_call_delay): Reimplement.
21832 (eligible_for_sibcall_delay): Rename into...
21833 (in_sibcall_delay): ...this.
21834 (eligible_for_return_delay): Rename into...
21835 (in_return_delay): ...this.
21836 (in_branch_delay): Reimplement.
21837 (in_uncond_branch_delay): Delete.
21838 (in_annul_branch_delay): Delete.
21840 2014-03-14 Richard Henderson <rth@redhat.com>
21843 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21844 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21845 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21846 (floathi splitters): Remove.
21847 (float<SWI48x>xf2): New pattern.
21848 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21849 code that tried to handle DImode for 32-bit, but which was excluded
21850 by the pattern's condition. Drop allocation of stack temporary.
21851 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21852 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21853 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21854 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21855 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21856 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21857 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21858 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21859 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21860 (*float<SWI48x><X87MODEF>2_i387): Remove.
21861 (all float _with_temp splitters): Remove.
21862 (*float<SWI48x><MODEF>2_i387): New pattern.
21863 (*float<SWI48><MODEF>2_sse): New pattern.
21864 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21865 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21867 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21868 Marek Polacek <polacek@redhat.com>
21870 PR middle-end/60484
21871 * common.opt (dump_base_name_prefixed): New Variable.
21872 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21873 if x_dump_base_name_prefixed is already set, set it at the end.
21875 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21877 PR rtl-optimization/60508
21878 * lra-constraints.c (get_reload_reg): Add new parameter
21880 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21881 Pass the new parameter values.
21883 2014-03-14 Richard Biener <rguenther@suse.de>
21885 * common.opt: Revert unintented changes from r205065.
21886 * opts.c: Likewise.
21888 2014-03-14 Richard Biener <rguenther@suse.de>
21890 PR middle-end/60518
21891 * cfghooks.c (split_block): Properly adjust all loops the
21892 block was a latch of.
21894 2014-03-14 Martin Jambor <mjambor@suse.cz>
21897 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
21900 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
21903 * config/avr/avr.c (avr_set_current_function): Pass function name
21904 through default_strip_name_encoding before sanity checking instead
21905 of skipping the first char of the assembler name.
21907 2014-03-13 Richard Henderson <rth@redhat.com>
21910 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
21911 (ix86_force_to_memory, ix86_free_from_memory): Remove.
21912 * config/i386/i386-protos.h: Likewise.
21913 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
21914 in the expander instead of a splitter.
21915 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
21916 any possibility of requiring a memory.
21917 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
21918 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
21919 (fp branch splitters): Update for ix86_split_fp_branch.
21920 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
21921 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
21922 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
21923 (*fop_<MODEF>_2_i387): Remove f/r alternative.
21924 (*fop_<MODEF>_3_i387): Likewise.
21925 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
21926 (splitters for the fop_* register patterns): Remove.
21927 (fscalexf4_i387): Rename from *fscalexf4_i387.
21928 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
21930 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21932 PR tree-optimization/59779
21933 * tree-dfa.c (get_ref_base_and_extent): Use double_int
21934 type for bitsize and maxsize instead of HOST_WIDE_INT.
21936 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
21938 PR rtl-optimization/57320
21939 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
21940 the CFG after thread_prologue_and_epilogue_insns.
21942 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
21944 PR rtl-optimization/57189
21945 * lra-constraints.c (process_alt_operands): Disfavor spilling
21948 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
21950 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
21952 2014-03-13 Jakub Jelinek <jakub@redhat.com>
21954 PR tree-optimization/59025
21955 PR middle-end/60418
21956 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
21957 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
21959 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
21962 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
21963 calls of avr_out_plus_1.
21965 2014-03-13 Bin Cheng <bin.cheng@arm.com>
21967 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
21968 BB's single pred and update the father loop's latch info later.
21970 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
21972 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
21976 (VEC_base): Likewise.
21977 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
21978 registers, we need to swap double words in little endian mode.
21980 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
21981 to be a container mode for 128-bit integer operations added in ISA
21982 2.07. Unlike TImode and PTImode, the preferred register set is
21983 the Altivec/VMX registers for the 128-bit operations.
21985 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
21987 (rs6000_split_128bit_ok_p): Likewise.
21989 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
21990 macros for creating ISA 2.07 normal and overloaded builtin
21991 functions with 3 arguments.
21992 (BU_P8V_OVERLOAD_3): Likewise.
21993 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
21994 for use as overloaded functions.
21995 (VPERM_1TI_UNS): Likewise.
21996 (VSEL_1TI): Likewise.
21997 (VSEL_1TI_UNS): Likewise.
21998 (ST_INTERNAL_1ti): Likewise.
21999 (LD_INTERNAL_1ti): Likewise.
22000 (XXSEL_1TI): Likewise.
22001 (XXSEL_1TI_UNS): Likewise.
22002 (VPERM_1TI): Likewise.
22003 (VPERM_1TI_UNS): Likewise.
22004 (XXPERMDI_1TI): Likewise.
22005 (SET_1TI): Likewise.
22006 (LXVD2X_V1TI): Likewise.
22007 (STXVD2X_V1TI): Likewise.
22008 (VEC_INIT_V1TI): Likewise.
22009 (VEC_SET_V1TI): Likewise.
22010 (VEC_EXT_V1TI): Likewise.
22011 (EQV_V1TI): Likewise.
22012 (NAND_V1TI): Likewise.
22013 (ORC_V1TI): Likewise.
22014 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22015 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22016 overloaded builtin.
22017 (VADDUQM): Likewise.
22018 (VSUBCUQ): Likewise.
22019 (VADDEUQM): Likewise.
22020 (VADDECUQ): Likewise.
22021 (VSUBEUQM): Likewise.
22022 (VSUBECUQ): Likewise.
22024 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22025 __int128_t and __uint128_t types.
22026 (__uint128_type): Likewise.
22027 (altivec_categorize_keyword): Add support for vector __int128_t,
22028 vector __uint128_t, vector __int128, and vector unsigned __int128
22029 as a container type for TImode operations that need to be done in
22030 VSX/Altivec registers.
22031 (rs6000_macro_to_expand): Likewise.
22032 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22033 to support 128-bit integer instructions vaddcuq, vadduqm,
22034 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22035 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22037 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22038 for V1TImode, and set up preferences to use VSX/Altivec registers.
22039 Setup VSX reload handlers.
22040 (rs6000_debug_reg_global): Likewise.
22041 (rs6000_init_hard_regno_mode_ok): Likewise.
22042 (rs6000_preferred_simd_mode): Likewise.
22043 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22044 (easy_altivec_constant): Likewise.
22045 (output_vec_const_move): Likewise.
22046 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22048 (rs6000_expand_vector_extract): Likewise.
22049 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22051 (rs6000_const_vec): Add support for V1TImode.
22052 (rs6000_emit_le_vsx_load): Swap double words when loading or
22053 storing TImode/V1TImode.
22054 (rs6000_emit_le_vsx_store): Likewise.
22055 (rs6000_emit_le_vsx_move): Likewise.
22056 (rs6000_emit_move): Add support for V1TImode.
22057 (altivec_expand_ld_builtin): Likewise.
22058 (altivec_expand_st_builtin): Likewise.
22059 (altivec_expand_vec_init_builtin): Likewise.
22060 (altivec_expand_builtin): Likewise.
22061 (rs6000_init_builtins): Add support for V1TImode type. Add
22062 support for ISA 2.07 128-bit integer builtins. Define type names
22063 for the VSX/Altivec vector types.
22064 (altivec_init_builtins): Add support for overloaded vector
22065 functions with V1TImode type.
22066 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22067 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22069 (rs6000_split_128bit_ok_p): Likewise.
22070 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22071 __int128_t and vector __uint128_t.
22073 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22074 and mode attributes.
22076 (VSX_M2): Likewise.
22081 (VS_scalar): Likewise.
22082 (VS_double): Likewise.
22083 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22085 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22086 we support the ISA 2.07 128-bit integer arithmetic instructions.
22087 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22088 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22089 and TImode types for use with the builtin functions.
22090 (V1TI_type_node): Likewise.
22091 (unsigned_V1TI_type_node): Likewise.
22092 (intTI_type_internal_node): Likewise.
22093 (uintTI_type_internal_node): Likewise.
22095 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22096 128-bit builtin functions.
22097 (UNSPEC_VADDEUQM): Likewise.
22098 (UNSPEC_VADDECUQ): Likewise.
22099 (UNSPEC_VSUBCUQ): Likewise.
22100 (UNSPEC_VSUBEUQM): Likewise.
22101 (UNSPEC_VSUBECUQ): Likewise.
22102 (VM): Add V1TImode to vector mode iterators.
22104 (VI_unit): Likewise.
22105 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22106 (altivec_vaddcuq): Likewise.
22107 (altivec_vsubuqm): Likewise.
22108 (altivec_vsubcuq): Likewise.
22109 (altivec_vaddeuqm): Likewise.
22110 (altivec_vaddecuq): Likewise.
22111 (altivec_vsubeuqm): Likewise.
22112 (altivec_vsubecuq): Likewise.
22114 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22116 (BOOL_128): Likewise.
22117 (BOOL_REGS_OUTPUT): Likewise.
22118 (BOOL_REGS_OP1): Likewise.
22119 (BOOL_REGS_OP2): Likewise.
22120 (BOOL_REGS_UNARY): Likewise.
22121 (BOOL_REGS_AND_CR0): Likewise.
22123 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22124 128-bit integer builtin support.
22125 (vec_vadduqm): Likewise.
22126 (vec_vaddecuq): Likewise.
22127 (vec_vaddeuqm): Likewise.
22128 (vec_vsubecuq): Likewise.
22129 (vec_vsubeuqm): Likewise.
22130 (vec_vsubcuq): Likewise.
22131 (vec_vsubuqm): Likewise.
22133 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22134 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22135 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22136 128-bit integer add/subtract to ISA 2.07.
22138 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22140 * config/arc/arc.c (arc_predicate_delay_insns):
22141 Fix third argument passed to conditionalize_nonjump.
22143 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22145 * config/aarch64/aarch64-builtins.c
22146 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22147 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22148 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22149 instead of __builtin_lfloor.
22150 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22152 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22154 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22155 (tree_ssa_ifcombine_bb_1): New function.
22156 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22157 is an empty forwarder block to then_bb or vice versa and then_bb
22158 and else_bb are effectively swapped.
22160 2014-03-12 Christian Bruel <christian.bruel@st.com>
22163 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22164 REG_CFA_DEF_CFA note.
22165 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22166 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22168 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22170 PR tree-optimization/60454
22171 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22173 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22175 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22176 Do not define target_cpu_default2 to generic.
22177 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22178 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22179 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22181 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22182 Marc Glisse <marc.glisse@inria.fr>
22184 PR tree-optimization/60502
22185 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22186 instead of build_low_bits_mask.
22188 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22190 PR middle-end/60482
22191 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22192 if there are multiple uses, but op doesn't live on E edge.
22193 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22194 clobber stmts before __builtin_unreachable.
22196 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22198 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22199 hard_frame_pointer_rtx.
22200 * cse.c (cse_insn): Remove volatile check.
22201 * cselib.c (cselib_process_insn): Likewise.
22202 * dse.c (scan_insn): Likewise.
22204 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22206 * config/arc/arc.c (conditionalize_nonjump): New function,
22208 (arc_ifcvt): ... this.
22209 (arc_predicate_delay_insns): Use it.
22211 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22213 * config/arc/predicates.md (extend_operand): During/after reload,
22214 allow const_int_operand.
22215 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22216 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22217 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22219 (umulsi3_highpart_i): Likewise.
22221 2014-03-11 Richard Biener <rguenther@suse.de>
22223 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22224 Add asserts to guard possible wrong-code bugs.
22226 2014-03-11 Richard Biener <rguenther@suse.de>
22228 PR tree-optimization/60429
22229 PR tree-optimization/60485
22230 * tree-ssa-structalias.c (set_union_with_increment): Properly
22231 take into account all fields that overlap the shifted vars.
22232 (do_sd_constraint): Likewise.
22233 (do_ds_constraint): Likewise.
22234 (get_constraint_for_ptr_offset): Likewise.
22236 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22238 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22239 (nios2_compute_frame_layout):
22240 Add calculation of cfun->machine->fp_save_offset.
22241 (nios2_expand_prologue): Correct setting of frame pointer register
22243 (nios2_expand_epilogue): Update recovery of stack pointer from
22244 frame pointer accordingly.
22245 (nios2_initial_elimination_offset): Update calculation of offset
22246 for eliminating to HARD_FRAME_POINTER_REGNUM.
22248 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22251 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22252 cgraph_get_create_node on VAR_DECLs.
22254 2014-03-10 Richard Biener <rguenther@suse.de>
22256 PR middle-end/60474
22257 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22259 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22261 * config/vms/vms.opt (vms_float_format): New variable.
22263 2014-03-08 Tobias Burnus <burnus@net-b.de>
22265 * doc/invoke.texi (-fcilkplus): Update implementation status.
22267 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22268 Richard Biener <rguenther@suse.de>
22270 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22271 consistently accross all TUs.
22272 (run_gcc): Enable -fshort-double automatically at link at link-time
22273 and disallow override.
22275 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22278 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22279 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22280 if they can't be used.
22282 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22284 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22285 for Solaris 11/x86 ld.
22286 * configure: Regenerate.
22288 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22290 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22291 (LIB_TLS_SPEC): Save as ld_tls_libs.
22292 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22293 (HAVE_AS_IX86_TLSLDM): New test.
22294 * configure, config.in: Regenerate.
22295 * config/i386/i386.c (legitimize_tls_address): Fall back to
22296 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22297 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22298 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22299 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22301 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22303 * common.opt (fira-loop-pressure): Mark as optimization.
22305 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22307 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22308 an OpenMP mappable type.
22310 2014-03-06 Matthias Klose <doko@ubuntu.com>
22312 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22313 MULTILIB_OSDIRNAMES is not defined.
22315 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22316 Meador Inge <meadori@codesourcery.com>
22319 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22320 (arm_legitimize_address): Call legitimize_tls_address for any
22321 arm_tls_referenced_p expression, handle constant addend. Call it
22322 before testing for !TARGET_ARM.
22323 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22325 2014-03-06 Richard Biener <rguenther@suse.de>
22327 PR middle-end/60445
22331 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22333 * tree-streamer.c (record_common_node): Assert we don't record
22334 nodes with type double.
22335 (preload_common_node): Skip type double, complex double and double
22336 pointer since it is now frontend dependent due to fshort-double option.
22338 2014-03-06 Richard Biener <rguenther@suse.de>
22340 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22341 or -fno-lto is specified and the linker has full plugin support.
22342 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22343 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22344 * lto-wrapper.c (merge_and_complain): Merge compile-time
22345 optimization levels.
22346 (run_gcc): And pass it through to the link options.
22348 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22352 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22354 * cselib.c (remove_useless_values): Skip to avoid quadratic
22355 behavior if the condition moved from...
22356 (cselib_process_insn): ... here holds.
22358 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22361 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22362 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22365 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22366 (TM_H): Add x86-tune.def.
22368 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22370 * config/aarch64/aarch64.c (generic_tunings):
22371 Use cortexa57_extra_costs.
22373 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22376 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22377 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22378 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22381 2014-03-04 Heiher <r@hev.cc>
22383 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22384 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22386 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22388 * config/i386/predicates.md (const2356_operand): Change to ...
22389 (const2367_operand): ... this.
22390 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22392 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22393 (*avx512pf_scatterpf<mode>sf): Ditto.
22394 (avx512pf_scatterpf<mode>df): Ditto.
22395 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22396 (*avx512pf_scatterpf<mode>df): Ditto.
22397 * config/i386/i386.c (ix86_expand_builtin): Update
22398 incorrect hint operand error message.
22400 2014-03-04 Richard Biener <rguenther@suse.de>
22402 * lto-section-in.c (lto_get_section_data): Fix const cast.
22404 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22406 * tree-streamer.c (record_common_node): Assert we don't record
22407 nodes with type double.
22408 (preload_common_node): Skip type double, complex double and double
22409 pointer since it is now frontend dependent due to fshort-double option.
22411 2014-03-04 Richard Biener <rguenther@suse.de>
22414 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22415 (lto_input_toplevel_asms): Likewise.
22416 * lto-section-in.c (lto_get_section_data): Instead do it here
22419 2014-03-04 Richard Biener <rguenther@suse.de>
22421 PR tree-optimization/60382
22422 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22423 dead PHIs a reduction.
22425 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22427 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22429 (_mm_prefetch): Move out of GCC target("sse") pragma.
22430 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22431 GCC target("prfchw") pragma.
22432 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22434 * config/i386/i386.c (ix86_option_override_internal): Enable
22435 -mprfchw with -mprefetchwt1.
22437 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22439 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22442 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22444 * opts.h (CL_PCH_IGNORE): Define.
22445 * targhooks.c (option_affects_pch_p):
22446 Return false for options that have CL_PCH_IGNORE set.
22447 * opt-functions.awk: Process PchIgnore.
22448 * doc/options.texi: Document PchIgnore.
22450 * config/arc/arc.opt (misize): Add PchIgnore property.
22452 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22454 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22455 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22456 constraint on constants to permit them being loaded into
22457 GENERAL_REGS or BASE_REGS.
22459 2014-03-03 Nick Clifton <nickc@redhat.com>
22461 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22462 anti-cacnonical alternatives.
22463 (negandhi3_real): New pattern.
22464 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22466 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22468 * config/avr/avr-mcus.def: Remove atxmega16x1.
22469 * config/avr/avr-tables.opt: Regenerate.
22470 * config/avr/t-multilib: Regenerate.
22471 * doc/avr-mmcu.texi: Regenerate.
22473 2014-03-03 Tobias Grosser <tobias@grosser.es>
22474 Mircea Namolaru <mircea.namolaru@inria.fr>
22476 PR tree-optimization/58028
22477 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22480 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22482 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22483 not handled by recognizers.
22485 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22487 PR middle-end/60175
22488 * function.c (expand_function_end): Don't emit
22489 clobber_return_register sequence if clobber_after is a BARRIER.
22490 * cfgexpand.c (construct_exit_block): Append instructions before
22491 return_label to prev_bb.
22493 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22495 * config/rs6000/constraints.md: Document reserved use of "wc".
22497 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22500 * ipa.c (function_and_variable_visibility): When dissolving comdat
22501 group, also set all symbols to local.
22503 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22508 2013-12-14 Jan Hubicka <jh@suse.cz>
22509 PR middle-end/58477
22510 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22512 2014-03-02 Jon Beniston <jon@beniston.com>
22518 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22519 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22520 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22521 (simple_return, *simple_return): New patterns
22522 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22523 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22525 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22527 * dwarf2out.c (gen_subprogram_die): Tidy.
22529 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22532 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22533 (*mov_t_msb_neg_negc): ... this new insn.
22535 2014-02-28 Jason Merrill <jason@redhat.com>
22538 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22541 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22544 * dwarf2out.c (decltype_auto_die): New static.
22545 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22546 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22547 (is_cxx_auto): Likewise.
22549 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22551 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22552 we are not using general regs only.
22554 2014-02-28 Richard Biener <rguenther@suse.de>
22557 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22558 previous fix and only allow to remove trivial pre-headers
22559 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22560 (remove_forwarder_block): Properly update the latch of a loop.
22562 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22565 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22566 (cselib_preserved_hash_table): New.
22567 (preserve_constants_and_equivs): Move preserved vals to it.
22568 (cselib_find_slot): Look it up first.
22569 (cselib_init): Initialize it.
22570 (cselib_finish): Release it.
22571 (dump_cselib_table): Dump it.
22573 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22576 * cselib.c (remove_useless_values): Skip to avoid quadratic
22577 behavior if the condition moved from...
22578 (cselib_process_insn): ... here holds.
22580 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22583 * var-tracking.c (vt_initialize): Apply the same condition to
22584 preserve the CFA base value.
22586 2014-02-28 Joey Ye <joey.ye@arm.com>
22589 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22590 if reload in progress or completed.
22592 2014-02-28 Tobias Burnus <burnus@net-b.de>
22594 PR middle-end/60147
22595 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22598 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22600 * doc/tm.texi.in (Condition Code Status): Update documention for
22601 relative locations of cc0-setter and cc0-user.
22603 2014-02-27 Jeff Law <law@redhat.com>
22605 PR rtl-optimization/52714
22606 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22607 into two independent simple sets, if I3 is a jump, ensure the
22608 pattern we place into I3 is a (set (pc) ...).
22610 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22611 Jeff Law <law@redhat.com>
22613 PR rtl-optimization/49847
22614 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22615 are in different blocks.
22616 * doc/tm.texi (Condition Code Status): Update documention for
22617 relative locations of cc0-setter and cc0-user.
22619 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22622 * lra.c (lra_emit_add): Check SUBREG too.
22624 2014-02-27 Andreas Schwab <schwab@suse.de>
22626 * config/m68k/m68k.c (m68k_option_override): Disable
22627 -flive-range-shrinkage for classic m68k.
22628 (m68k_override_options_after_change): Likewise.
22630 2014-02-27 Marek Polacek <polacek@redhat.com>
22632 PR middle-end/59223
22633 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22634 -Wmaybe-uninitialized.
22636 2014-02-27 Alan Modra <amodra@gmail.com>
22639 * reload1.c (emit_input_reload_insns): When reload_override_in,
22640 set old to rl->in_reg when rl->in_reg is a subreg.
22642 2014-02-26 Richard Biener <rguenther@suse.de>
22645 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22647 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22649 * common/config/i386/predicates.md (const1256_operand): Remove.
22650 (const2356_operand): New.
22651 (const_1_to_2_operand): Remove.
22652 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22653 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22654 (*avx512pf_gatherpf<mode>sf): Ditto.
22655 (avx512pf_gatherpf<mode>df): Ditto.
22656 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22657 (*avx512pf_gatherpf<mode>df): Ditto.
22658 (avx512pf_scatterpf<mode>sf): Ditto.
22659 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22660 (*avx512pf_scatterpf<mode>sf): Ditto.
22661 (avx512pf_scatterpf<mode>df): Ditto.
22662 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22663 (*avx512pf_scatterpf<mode>df): Ditto.
22664 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22666 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22668 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22669 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22670 (_mm512_mask_testn_epi64_mask): Move to ...
22671 * config/i386/avx512cdintrin.h: Here.
22672 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22673 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22674 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22675 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22676 TARGET_AVX512F from TARGET_AVX512CD.
22678 2014-02-26 Richard Biener <rguenther@suse.de>
22681 * ipa.c (walk_polymorphic_call_targets): Properly guard
22682 call to inline_update_overall_summary.
22684 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22687 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22688 and latches only if requested. Fix latch if it is removed.
22689 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22690 LOOPS_HAVE_PREHEADERS.
22692 2014-02-25 Andrew Pinski <apinski@cavium.com>
22694 * builtins.c (expand_builtin_thread_pointer): Create a new target
22695 when the target is NULL.
22697 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22699 PR rtl-optimization/60317
22700 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22701 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22702 * lra-assigns.c: Include params.h.
22703 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22704 other reload pseudos considerations.
22706 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22708 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22709 to use canonical form for nor<mode>3.
22711 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22714 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22717 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22719 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22720 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22721 (ix86_handle_option): Handle OPT_mprefetchwt1.
22722 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22723 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22725 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22726 OPTION_MASK_ISA_PREFETCHWT1.
22727 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22728 (PTA_PREFETCHWT1): New.
22729 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22730 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22731 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22732 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22733 (*prefetch_avx512pf_<mode>_: Change into ...
22734 (*prefetch_prefetchwt1_<mode>: This.
22735 * config/i386/i386.opt (mprefetchwt1): New.
22736 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22737 (_mm_prefetch): Handle intent to write.
22738 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22740 2014-02-25 Richard Biener <rguenther@suse.de>
22742 PR middle-end/60291
22743 * emit-rtl.c (mem_attrs_htab): Remove.
22744 (mem_attrs_htab_hash): Likewise.
22745 (mem_attrs_htab_eq): Likewise.
22746 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22747 (init_emit_once): Do not allocate mem_attrs_htab.
22749 2014-02-25 Richard Biener <rguenther@suse.de>
22752 * lto-opts.c (lto_write_options): Output non-explicit conservative
22753 -fwrapv, -fno-trapv and -fno-strict-overflow.
22754 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22755 (run_gcc): And pass them through.
22757 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22759 * sel-sched.c (calculate_new_fences): New parameter ptime.
22760 Calculate it as a maximum over all fence cycles.
22761 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22762 Print the final schedule timing when sched_verbose.
22764 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22766 PR rtl-optimization/60292
22767 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22768 bit fot the fence instruction.
22770 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22772 * calls.h: Fix typo in comment.
22774 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22776 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22777 adjusting offsetable addresses.
22779 2014-02-24 Guozhi Wei <carrot@google.com>
22781 * sparseset.h (sparseset_pop): Fix the wrong index.
22783 2014-02-24 Walter Lee <walt@tilera.com>
22785 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22786 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22788 * common/config/tilegx/tilegx-common.c
22789 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22790 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22791 (LINK_SPEC): Ditto.
22792 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22793 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22794 (tilegx_gimplify_va_arg_expr): Handle big endian.
22795 (tilegx_expand_unaligned_load): Ditto.
22796 (tilegx_expand_unaligned_store): Ditto.
22797 (TARGET_RETURN_IN_MSB): New.
22798 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22799 (TARGET_ENDIAN_DEFAULT): New.
22800 (TARGET_BIG_ENDIAN): Handle big endian.
22801 (BYTES_BIG_ENDIAN): Ditto.
22802 (WORDS_BIG_ENDIAN): Ditto.
22803 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22804 (ENDIAN_SPEC): New.
22805 (EXTRA_SPECS): New.
22806 * config/tilegx/tilegx.md (extv): Handle big endian.
22808 (insn_st<n>): Ditto.
22809 (insn_st<n>_add<bitsuffix>): Ditto.
22810 (insn_stnt<n>): Ditto.
22811 (insn_stnt<n>_add<bitsuffix>):Ditto.
22812 (vec_interleave_highv8qi): Handle big endian.
22813 (vec_interleave_highv8qi_be): New.
22814 (vec_interleave_highv8qi_le): New.
22815 (insn_v1int_h): Handle big endian.
22816 (vec_interleave_lowv8qi): Handle big endian.
22817 (vec_interleave_lowv8qi_be): New.
22818 (vec_interleave_lowv8qi_le): New.
22819 (insn_v1int_l): Handle big endian.
22820 (vec_interleave_highv4hi): Handle big endian.
22821 (vec_interleave_highv4hi_be): New.
22822 (vec_interleave_highv4hi_le): New.
22823 (insn_v2int_h): Handle big endian.
22824 (vec_interleave_lowv4hi): Handle big endian.
22825 (vec_interleave_lowv4hi_be): New.
22826 (vec_interleave_lowv4hi_le): New.
22827 (insn_v2int_l): Handle big endian.
22828 (vec_interleave_highv2si): Handle big endian.
22829 (vec_interleave_highv2si_be): New.
22830 (vec_interleave_highv2si_le): New.
22831 (insn_v4int_h): Handle big endian.
22832 (vec_interleave_lowv2si): Handle big endian.
22833 (vec_interleave_lowv2si_be): New.
22834 (vec_interleave_lowv2si_le): New.
22835 (insn_v4int_l): Handle big endian.
22836 * config/tilegx/tilegx.opt (mbig-endian): New option.
22837 (mlittle-endian): New option.
22838 * doc/install.texi: Document tilegxbe-linux.
22839 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22841 2014-02-24 Martin Jambor <mjambor@suse.cz>
22844 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22845 there are no parameter descriptors.
22847 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22849 PR rtl-optimization/60268
22850 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22851 initialization to ...
22852 (sched_rgn_init): ... here.
22853 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22855 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22857 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22860 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22862 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22865 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22867 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22868 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22870 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22872 * config/microblaze/predicates.md: Add cmp_op predicate.
22873 * config/microblaze/microblaze.md: Add branch_compare instruction
22874 which uses cmp_op predicate and emits cmp insn before branch.
22875 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22876 to microblaze_expand_conditional_branch and consolidate logic.
22877 (microblaze_expand_conditional_branch): emit branch_compare
22878 insn instead of handling cmp op separate from branch insn.
22880 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22882 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
22885 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22887 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
22888 define_insn with define_expand and new define_insn
22889 *altivec_lve<VI_char>x_internal.
22890 (altivec_stve<VI_char>x): Replace define_insn with define_expand
22891 and new define_insn *altivec_stve<VI_char>x_internal.
22892 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
22894 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
22896 (altivec_expand_stvex_be): New function.
22898 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
22900 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
22901 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
22902 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
22903 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
22905 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
22908 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
22909 instead of emit_move_insn.
22911 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22913 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
22914 vspltw with vsldoi.
22915 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
22916 gen_altivec_vsumsws.
22918 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22920 * config/rs6000/altivec.md (altivec_lvxl): Rename as
22921 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
22922 (altivec_lvxl_<mode>): New define_expand incorporating
22923 -maltivec=be semantics where needed.
22924 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
22925 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
22926 semantics where needed.
22927 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
22928 (altivec_stvx_<mode>): New define_expand incorporating
22929 -maltivec=be semantics where needed.
22930 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
22931 VM2 iterator instead of V4SI.
22932 (altivec_stvxl_<mode>): New define_expand incorporating
22933 -maltivec=be semantics where needed.
22934 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
22935 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
22936 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
22937 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
22938 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
22939 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
22940 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
22941 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
22942 ALTIVEC_BUILTIN_STVXL.
22943 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
22944 (altivec_expand_stvx_be): Likewise.
22945 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
22946 (altivec_expand_lvx_be): Likewise.
22947 (altivec_expand_stvx_be): Likewise.
22948 (altivec_expand_builtin): Add cases for
22949 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
22950 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
22951 (altivec_init_builtins): Add definitions for
22952 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
22953 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
22955 2014-02-21 Catherine Moore <clm@codesourcery.com>
22957 * doc/invoke.texi (mvirt, mno-virt): Document.
22958 * config/mips/mips.opt (mvirt): New option.
22959 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
22961 2014-02-21 Richard Biener <rguenther@suse.de>
22963 PR tree-optimization/60276
22964 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
22965 (STMT_VINFO_MIN_NEG_DIST): New macro.
22966 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
22967 STMT_VINFO_MIN_NEG_DIST.
22968 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
22969 made for negative dependence distances still hold.
22971 2014-02-21 Richard Biener <rguenther@suse.de>
22973 PR middle-end/60291
22974 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
22975 DECL_INITIAL for globals not in the current function context.
22977 2014-02-21 Jakub Jelinek <jakub@redhat.com>
22979 PR tree-optimization/56490
22980 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
22981 * tree-ssa-uninit.c: Include params.h.
22982 (compute_control_dep_chain): Add num_calls argument, return false
22983 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
22984 num_calls to recursive call.
22985 (find_predicates): Change dep_chain into normal array,
22986 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
22987 variable and adjust compute_control_dep_chain caller.
22988 (find_def_preds): Likewise.
22990 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
22992 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
22993 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
22995 2014-02-21 Nick Clifton <nickc@redhat.com>
22997 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
22998 (pushhi1): Likewise.
22999 (popqi1): Add mode to pre_dec.
23000 (pophi1): Likewise.
23002 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23004 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23005 mode for mask of V8SFmode permutation.
23007 2014-02-20 Richard Henderson <rth@redhat.com>
23010 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23011 a new pseudo for OLDVAL.
23013 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23016 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23017 gen_reg_rtx if d->testing_p.
23018 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23019 if d->testing_p and we will certainly return true.
23020 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23023 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23025 * emit-rtl.c (gen_reg_rtx): Assert that
23026 crtl->emit.regno_pointer_align_length is non-zero.
23028 2014-02-20 Richard Henderson <rth@redhat.com>
23031 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23032 on failure the store back into EXPECT.
23034 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23035 Sandra Loosemore <sandra@codesourcery.com>
23037 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23038 * config/nios2/nios2.c (nios2_function_profiler): Add
23039 -fPIC (flag_pic == 2) support.
23040 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23041 (nios2_large_offset_p): New function.
23042 (nios2_unspec_reloc_p): Move up position, update to use
23043 nios2_large_offset_p.
23044 (nios2_unspec_address): Remove function.
23045 (nios2_unspec_offset): New function.
23046 (nios2_large_got_address): New function.
23047 (nios2_got_address): Add large offset support.
23048 (nios2_legitimize_tls_address): Update usage of removed and new
23050 (nios2_symbol_binds_local_p): New function.
23051 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23052 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23053 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23054 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23055 processing for (const (unspec ...)).
23056 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23058 2014-02-20 Richard Biener <rguenther@suse.de>
23060 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23061 doing the substitution.
23062 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23064 2014-02-20 Martin Jambor <mjambor@suse.cz>
23067 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23068 info when checking whether lattices are bottom.
23070 2014-02-20 Richard Biener <rguenther@suse.de>
23072 PR middle-end/60221
23073 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23076 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23079 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23080 parameter specifying the scaling.
23081 (inline_call): Update.
23082 (want_inline_recursively): Guard division by zero.
23083 (recursive_inlining): Update.
23084 * ipa-inline.h (clone_inlined_nodes): Update.
23086 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23089 * config/i386/i386.c (classify_argument): Pass structures of size
23090 64 bytes or less in register.
23092 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23093 Kirill Yukhin <kirill.yukhin@intel.com>
23095 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23096 (_mm_rcp28_round_ss): Ditto.
23097 (_mm_rsqrt28_round_sd): Ditto.
23098 (_mm_rsqrt28_round_ss): Ditto.
23099 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23100 (_mm_rcp14_round_ss): Ditto.
23101 (_mm_rsqrt14_round_sd): Ditto.
23102 (_mm_rsqrt14_round_ss): Ditto.
23103 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23104 the first input operand, get rid of match_dup.
23105 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23107 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23109 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23110 operand as the first input operand, set type attribute.
23111 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23112 Set type attribute.
23113 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23114 operand as the first input operand, set type attribute.
23116 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23118 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23121 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23124 * config/i386/i386.c (construct_container): Remove TFmode check
23125 for X86_64_INTEGER_CLASS.
23127 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23130 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23131 only when -Wpsabi is enabled.
23133 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23136 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23137 passing arrays in registers are the same as for structs, so remove the
23138 special case for them.
23140 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23142 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23143 destination type, extract only the valid bits if the source type is not
23144 integral and has a different mode.
23146 2014-02-19 Richard Biener <rguenther@suse.de>
23149 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23152 2014-02-19 Richard Biener <rguenther@suse.de>
23155 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23156 (ipa_modify_call_arguments): Emit an argument load explicitely and
23157 preserve virtual SSA form there and for the replacement call.
23158 Do not update SSA form nor free dominance info.
23160 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23162 * ipa.c (function_and_variable_visibility): Also clear WEAK
23163 flag when disolving COMDAT_GROUP.
23165 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23167 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23168 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23169 not devirtualizing.
23170 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23171 do more sanity checks.
23172 (detect_type_change): Return true when giving up early.
23173 (compute_complex_assign_jump_func): Fix type parameter of
23174 ipa_set_ancestor_jf.
23175 (compute_complex_ancestor_jump_func): Likewise.
23176 (update_jump_functions_after_inlining): Fix updating of
23178 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23180 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23182 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23183 inline clones when edge disappears.
23185 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23188 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23189 Split 64-bit moves into 2 patterns. Do not allow the use of
23190 direct move for TDmode in little endian, since the decimal value
23191 has little endian bytes within a word, but the 64-bit pieces are
23192 ordered in a big endian fashion, and normal subreg's of TDmode are
23194 (mov<mode>_64bit_dm): Likewise.
23195 (movtd_64bit_nodm): Likewise.
23197 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23199 PR tree-optimization/60174
23200 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23201 statement of an SSA_NAME that occurs in an abnormal PHI node.
23203 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23206 * final.c (SEEN_BB): Remove.
23207 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23208 (final_scan_insn): Don't force_source_line on second
23209 NOTE_INSN_BASIC_BLOCK.
23211 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23214 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23215 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23216 (type_natural_mode): Warn ABI change when %zmm register is not
23217 available for AVX512F vector value passing.
23219 2014-02-18 Kai Tietz <ktietz@redhat.com>
23222 * config/i386/i386.c (ix86_expand_prologue): Use value in
23223 rax register as displacement when restoring %r10 or %rax.
23224 Fix wrong offset when restoring both registers.
23226 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23228 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23229 assertion with conditional return.
23231 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23232 Uros Bizjak <ubizjak@gmail.com>
23235 * config/i386/driver-i386.c (host_detect_local_cpu): If
23236 YMM state is not saved by the OS, also clear has_f16c. Move
23237 CPUID 0x80000001 handling before YMM state saving checking.
23239 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23241 PR rtl-optimization/58960
23242 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23243 factored out from ...
23244 (sched_init): ... here.
23245 (free_global_sched_pressure_data): New, factored out from ...
23246 (sched_finish): ... here.
23247 * sched-int.h (free_global_sched_pressure_data): Declare.
23248 * sched-rgn.c (nr_regions_initial): New static global.
23249 (haifa_find_rgns): Initialize it.
23250 (schedule_region): Disable sched-pressure for the newly
23253 2014-02-17 Richard Biener <rguenther@suse.de>
23255 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23256 release SSA defs of pattern stmts.
23258 2014-02-17 Richard Biener <rguenther@suse.de>
23260 * tree-inline.c (expand_call_inline): Release the virtual
23261 operand defined by the call we are about to inline.
23263 2014-02-17 Richard Biener <rguenther@suse.de>
23265 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23267 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23268 Ilya Tocar <ilya.tocar@intel.com>
23270 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23271 arguments order in builtin.
23272 (_mm512_permutexvar_epi64): Ditto.
23273 (_mm512_mask_permutexvar_epi64): Ditto
23274 (_mm512_maskz_permutexvar_epi32): Ditto
23275 (_mm512_permutexvar_epi32): Ditto
23276 (_mm512_mask_permutexvar_epi32): Ditto
23278 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23280 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23281 (p8_vmrgow): Likewise.
23283 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23285 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23288 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23291 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23292 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23293 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23294 using direct move instructions on ISA 2.07. Also adjust
23295 instruction length for 64-bit.
23296 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23297 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23299 2014-02-15 Alan Modra <amodra@gmail.com>
23303 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23304 find_replacement on parts of insn rtl that might be reloaded.
23306 2014-02-15 Richard Biener <rguenther@suse.de>
23308 PR tree-optimization/60183
23309 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23310 (tree_ssa_phiprop): Calculate and free post-dominators.
23312 2014-02-14 Jeff Law <law@redhat.com>
23314 PR rtl-optimization/60131
23315 * ree.c (get_extended_src_reg): New function.
23316 (combine_reaching_defs): Use it rather than assuming location of REG.
23317 (find_and_remove_re): Verify first operand of extension is
23318 a REG before adding the insns to the copy list.
23320 2014-02-14 Roland McGrath <mcgrathr@google.com>
23322 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23323 * configure: Regenerated.
23324 * config.in: Regenerated.
23325 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23326 instead of ASM_SHORT.
23328 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23329 Richard Earnshaw <rearnsha@arm.com>
23331 PR rtl-optimization/59535
23332 * lra-constraints.c (process_alt_operands): Encourage alternative
23333 when unassigned pseudo class is superset of the alternative class.
23334 (inherit_reload_reg): Don't inherit when optimizing for code size.
23335 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23336 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23337 modes not less than 4 for Thumb1.
23339 2014-02-14 Kyle McMartin <kyle@redhat.com>
23342 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23344 2014-02-14 Richard Biener <rguenther@suse.de>
23346 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23347 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23348 Do not strip INDIRECT_REFs.
23350 2014-02-14 Richard Biener <rguenther@suse.de>
23353 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23354 DECL_FUNCTION_SPECIFIC_TARGET.
23355 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23356 * tree-streamer-out.c (pack_ts_target_option): Remove.
23357 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23358 (write_ts_function_decl_tree_pointers): Do not stream
23359 DECL_FUNCTION_SPECIFIC_TARGET.
23360 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23361 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23362 (lto_input_ts_function_decl_tree_pointers): Do not stream
23363 DECL_FUNCTION_SPECIFIC_TARGET.
23365 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23367 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23368 (get_initial_def_for_induction, vectorizable_induction): Ignore
23369 debug stmts when looking for exit_phi.
23370 (vectorizable_live_operation): Fix up condition.
23372 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23374 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23375 nreverse() because it changes the content of original tree list.
23377 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23379 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23380 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23382 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23384 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23385 GNU coding standards.
23387 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23390 * dwarf2out.c (gen_subprogram_die): Don't call
23391 add_calling_convention_attribute if subr_die is old_die.
23393 2014-02-13 Sharad Singhai <singhai@google.com>
23395 * doc/optinfo.texi: Fix order of nodes.
23397 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23399 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23400 operands[2], not operands[3].
23402 2014-02-13 Richard Biener <rguenther@suse.de>
23405 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23406 mention the possibility of an in-tree build.
23407 (CLooG): Update recommended version to 0.18.1, mention the
23408 possibility of an in-tree build and clarify that the ISL
23409 bundled with CLooG does not work.
23411 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23414 * expr.c (compress_float_constant): If x is a hard register,
23415 extend into a pseudo and then move to x.
23417 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23419 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23420 caused by bad second argument to warning_at() with -mhotpatch and
23421 nested functions (e.g. with gfortran).
23423 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23425 * opts.c (option_name): Remove "enabled by default" rider.
23427 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23429 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23431 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23432 Uros Bizjak <ubizjak@gmail.com>
23435 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23436 * configure: Regenerated.
23438 2014-02-12 Richard Biener <rguenther@suse.de>
23440 * vec.c (vec_prefix::calculate_allocation): Move as
23441 inline variant to vec.h.
23442 (vec_prefix::calculate_allocation_1): New out-of-line version.
23443 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23444 (vec_prefix::m_has_auto_buf): Rename to ...
23445 (vec_prefix::m_using_auto_storage): ... this.
23446 (vec_prefix::calculate_allocation): Inline the easy cases
23447 and dispatch to calculate_allocation_1 which doesn't need the
23449 (va_heap::reserve): Use gcc_checking_assert.
23450 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23451 m_using_auto_storage.
23452 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23454 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23455 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23456 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23458 2014-02-12 Richard Biener <rguenther@suse.de>
23460 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23461 when we found a dependence.
23463 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23465 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23467 (maybe_fold_stmt): ... into this new function.
23468 * omp-low.c (lower_omp): Update comment.
23470 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23473 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23476 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23478 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23479 identifiers in comments.
23480 (cortexa53_extra_costs): Likewise.
23481 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23482 (cortexa7_extra_costs): Likewise.
23483 (cortexa12_extra_costs): Likewise.
23484 (cortexa15_extra_costs): Likewise.
23485 (v7m_extra_costs): Likewise.
23487 2014-02-12 Richard Biener <rguenther@suse.de>
23489 PR middle-end/60092
23490 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23491 of posix_memalign being successful.
23492 (lower_stmt): Restrict lowering of posix_memalign to when
23493 -ftree-bit-ccp is enabled.
23495 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23497 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23499 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23501 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23503 PR rtl-optimization/60116
23504 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23505 other_insn once the combination has been validated.
23507 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23510 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23512 * ipa-devirt.c: Include demangle.h
23513 (odr_violation_reported): New static variable.
23514 (add_type_duplicate): Update odr_violations.
23515 (maybe_record_node): Add completep parameter; update it.
23516 (record_target_from_binfo): Add COMPLETEP parameter;
23517 update it as needed.
23518 (possible_polymorphic_call_targets_1): Likewise.
23519 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23520 rename FINAL to COMPLETE.
23521 (record_targets_from_bases): Sanity check we found the binfo;
23522 fix COMPLETEP updating.
23523 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23524 parameter, fix computing of COMPLETEP.
23525 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23526 at LTO time do demangling.
23527 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23528 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23530 (gimple_get_virt_method_for_binfo): Likewise.
23531 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23532 gimple_get_virt_method_for_vtable): Update prototypes.
23534 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23537 * genautomata.c (add_presence_absence): Fix typo with
23538 {final_}presence_list.
23540 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23543 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23544 for VSX/Altivec vectors that land in GPR registers.
23546 2014-02-11 Richard Henderson <rth@redhat.com>
23547 Jakub Jelinek <jakub@redhat.com>
23550 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23551 around drhs if type conversion to lacc->type is not useless.
23553 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23555 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23557 (cortex-a57.cortex-a53): Likewise.
23558 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23560 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23562 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23565 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23567 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23568 add_options_for_arm_vfp3.
23570 2014-02-11 Jeff Law <law@redhat.com>
23572 PR middle-end/54041
23573 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23574 object with an undesirable mode.
23576 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23579 * config/i386/sol2-9.h: New file.
23580 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23581 *-*-solaris2.9*): Use it.
23583 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23585 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23586 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23588 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23590 * config/microblaze/microblaze.c: Extend mcpu version format
23592 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23594 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23596 2014-02-10 Richard Henderson <rth@redhat.com>
23599 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23600 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23601 ms-abi vs -mno-accumulate-outgoing-args.
23602 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23603 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23606 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23608 PR middle-end/60080
23609 * cfgexpand.c (expand_asm_operands): Attach source location to
23610 ASM_INPUT rtx objects.
23611 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23613 2014-02-10 Nick Clifton <nickc@redhat.com>
23615 * config/mn10300/mn10300.c (popcount): New function.
23616 (mn10300_expand_prologue): Include saved registers in stack usage
23619 2014-02-10 Jeff Law <law@redhat.com>
23621 PR middle-end/52306
23622 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23623 when changing the SET_DEST of a prior insn to avoid an input reload.
23625 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23627 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23628 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23629 -mcall-openbsd, or -mcall-linux.
23630 (CC1_ENDIAN_BIG_SPEC): Remove.
23631 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23632 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23633 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23634 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23635 and %cc1_endian_default.
23636 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23638 2014-02-10 Richard Biener <rguenther@suse.de>
23640 PR tree-optimization/60115
23641 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23642 MEM_REF handling. Properly verify that the accesses are not
23643 out of the objects bound.
23645 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23647 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23650 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23652 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23653 proper constants and fix formatting.
23654 (possible_polymorphic_call_targets): Fix formatting.
23656 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23657 Ilya Tocar <ilya.tocar@intel.com>
23659 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23660 (_mm512_loadu_epi32): Renamed into...
23661 (_mm512_loadu_si512): This.
23662 (_mm512_storeu_epi32): Renamed into...
23663 (_mm512_storeu_si512): This.
23664 (_mm512_maskz_ceil_ps): Removed.
23665 (_mm512_maskz_ceil_pd): Ditto.
23666 (_mm512_maskz_floor_ps): Ditto.
23667 (_mm512_maskz_floor_pd): Ditto.
23668 (_mm512_floor_round_ps): Ditto.
23669 (_mm512_floor_round_pd): Ditto.
23670 (_mm512_ceil_round_ps): Ditto.
23671 (_mm512_ceil_round_pd): Ditto.
23672 (_mm512_mask_floor_round_ps): Ditto.
23673 (_mm512_mask_floor_round_pd): Ditto.
23674 (_mm512_mask_ceil_round_ps): Ditto.
23675 (_mm512_mask_ceil_round_pd): Ditto.
23676 (_mm512_maskz_floor_round_ps): Ditto.
23677 (_mm512_maskz_floor_round_pd): Ditto.
23678 (_mm512_maskz_ceil_round_ps): Ditto.
23679 (_mm512_maskz_ceil_round_pd): Ditto.
23680 (_mm512_expand_pd): Ditto.
23681 (_mm512_expand_ps): Ditto.
23682 * config/i386/i386.c (ix86_builtins): Remove
23683 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23684 (bdesc_args): Ditto.
23685 * config/i386/predicates.md (const1256_operand): New.
23686 (const_1_to_2_operand): Ditto.
23687 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23688 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23689 (*avx512pf_gatherpf<mode>sf): Ditto.
23690 (avx512pf_gatherpf<mode>df): Ditto.
23691 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23692 (*avx512pf_gatherpf<mode>df): Ditto.
23693 (avx512pf_scatterpf<mode>sf): Ditto.
23694 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23695 (*avx512pf_scatterpf<mode>sf): Ditto.
23696 (avx512pf_scatterpf<mode>df): Ditto.
23697 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23698 (*avx512pf_scatterpf<mode>df): Ditto.
23699 (avx512f_expand<mode>): Removed.
23700 (<shift_insn><mode>3<mask_name>): Change predicate type.
23702 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23704 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23705 not at the end of datarefs vector use ordered_remove to avoid
23706 reordering datarefs vector.
23709 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23710 mark local addressable non-static vars as GOVD_PRIVATE
23711 instead of GOVD_LOCAL.
23712 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23713 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23716 PR middle-end/60092
23717 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23718 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23719 assume_aligned or alloc_align attributes.
23720 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23721 arguments. Handle also assume_aligned and alloc_align attributes.
23722 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23723 calls to functions with assume_aligned or alloc_align attributes.
23724 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23726 2014-02-08 Terry Guo <terry.guo@arm.com>
23728 * doc/invoke.texi: Document ARM -march=armv7e-m.
23730 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23732 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23733 flag on __cilkrts_rethrow builtin.
23736 * ipa-cp.c (determine_versionability): Fail at -O0
23737 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23738 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23741 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23744 * tree-inline.c (copy_forbidden): Fail for
23745 __attribute__((optimize (0))) functions.
23747 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23749 * varpool.c: Include pointer-set.h.
23750 (varpool_remove_unreferenced_decls): Variables in other partitions
23751 will not be output; be however careful to not lose information
23752 about partitioning.
23754 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23756 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23757 lookup in the vtable constructor.
23759 2014-02-07 Jeff Law <law@redhat.com>
23762 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23763 define_insn_and_split.
23765 * ipa-inline.c (inline_small_functions): Fix typos.
23767 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23769 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23770 (s390_can_use_return_insn): Declare.
23771 * config/s390/s390.h (EPILOGUE_USES): Define.
23772 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23774 (s390_chunkify_start): Handle return JUMP_LABELs.
23775 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23776 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23777 (s390_can_use_return_insn): New functions.
23778 (s390_fix_long_loop_prediction): Handle conditional returns.
23779 (TARGET_SET_UP_BY_PROLOGUE): Define.
23780 * config/s390/s390.md (ANY_RETURN): New code iterator.
23781 (*creturn, *csimple_return, return, simple_return): New patterns.
23783 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23785 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23786 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23787 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23788 REG_CFA_RESTORE list when deciding not to restore a register.
23790 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23792 * config/s390/s390.c: Include tree-pass.h and context.h.
23793 (s390_early_mach): New function, split out from...
23794 (s390_emit_prologue): ...here.
23795 (pass_data_s390_early_mach): New pass structure.
23796 (pass_s390_early_mach): New class.
23797 (s390_option_override): Create and register early_mach pass.
23798 Move to end of file.
23800 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23802 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23803 to match for the exit block.
23805 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23807 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23808 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23809 Reject misaligned operands.
23811 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23813 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23815 2014-02-07 Richard Biener <rguenther@suse.de>
23817 PR middle-end/60092
23818 * gimple-low.c (lower_builtin_posix_memalign): New function.
23819 (lower_stmt): Call it to lower posix_memalign in a way
23820 to make alignment info accessible.
23822 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23825 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23826 __builtin_setjmp_receiver.
23828 2014-02-07 Richard Biener <rguenther@suse.de>
23830 PR middle-end/60092
23831 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23832 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23833 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23834 Handle BUILT_IN_POSIX_MEMALIGN.
23835 (find_func_clobbers): Likewise.
23836 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23837 (call_may_clobber_ref_p_1): Likewise.
23839 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23842 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23845 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23848 * lto-cgraph.c (lto_output_node): Use
23849 symtab_get_symbol_partitioning_class.
23850 (lto_output_varpool_node): likewise.
23851 (symtab_get_symbol_partitioning_class): Move here from
23852 lto/lto-partition.c
23853 * cgraph.h (symbol_partitioning_class): Likewise.
23854 (symtab_get_symbol_partitioning_class): Declare.
23856 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23858 * ggc.h (ggc_internal_cleared_alloc): New macro.
23859 * vec.h (vec_safe_copy): Handle memory stats.
23860 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23861 * target-globals.c (save_target_globals): Likewise.
23863 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23866 * expr.c (emit_move_resolve_push): Export; be bit more selective
23867 on when to clear alias set.
23868 * expr.h (emit_move_resolve_push): Declare.
23869 * function.h (struct function): Add tail_call_marked.
23870 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23871 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23872 * config/i386/i386.md (TImode move expander): De not call
23874 (FP push expanders): Preserve memory attributes.
23875 * config/i386/sse.md (push<mode>1): Remove.
23876 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23877 (ix86_expand_push): Remove.
23878 * config/i386/mmx.md (push<mode>1): Remove.
23880 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23882 PR rtl-optimization/60030
23883 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
23884 lopart with paradoxical subreg before shifting it up by hprec.
23886 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23888 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
23889 Remove extra newline at end of file.
23890 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
23891 (arm_issue_rate): Handle cortexa57.
23892 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
23893 (cortex-a57.cortex-a53): Likewise.
23895 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23898 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
23899 don't record in REG_FRAME_RELATED_EXPR registers not set in that
23901 (arm_expand_prologue): Adjust all callers.
23902 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
23903 info, registers also at the lowest numbered registers side. Use
23904 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
23908 * var-tracking.c (adjust_mems): Before adding a SET to
23909 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
23911 2014-02-06 Alan Modra <amodra@gmail.com>
23914 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
23915 change SDmode to DDmode when lra_in_progress.
23917 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23919 PR middle-end/59150
23920 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
23921 free_data_ref on the dr first, and before goto again also set dr
23922 to the next dr. For simd_lane_access, free old datarefs[i] before
23923 overwriting it. For get_vectype_for_scalar_type failure, don't
23924 free_data_ref if simd_lane_access.
23926 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
23929 * tree.h (opts_for_fn): New inline function.
23930 (opt_for_fn): Define.
23931 * config/i386/i386.c (ix86_function_regparm): Use
23932 opt_for_fn (decl, optimize) instead of optimize.
23934 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
23936 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
23937 for SYMBOL_REF in large memory model.
23939 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23941 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
23942 and crypto support.
23943 (cortex-a57): Likewise.
23944 (cortex-a57.cortex-a53): Likewise.
23946 2014-02-06 Yury Gribov <y.gribov@samsung.com>
23947 Kugan Vivekanandarajah <kuganv@linaro.org>
23949 * config/arm/arm.c (arm_vector_alignment_reachable): Check
23951 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
23953 2014-02-06 Richard Biener <rguenther@suse.de>
23955 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
23956 set_loop_copy and initialize_original_copy_tables.
23958 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
23960 * config/aarch64/aarch64-simd.md
23961 (aarch64_ashr_simddi): Change QI to SI.
23963 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
23964 Jakub Jelinek <jakub@redhat.com>
23966 PR middle-end/60013
23967 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
23970 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23972 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
23973 CODE_FOR_altivec_vpku[hw]um to
23974 CODE_FOR_altivec_vpku[hw]um_direct.
23975 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
23976 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
23977 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
23978 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
23980 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23982 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
23983 generation for -maltivec=be.
23984 (altivec_vsumsws): Simplify redundant test.
23986 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23988 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
23989 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
23990 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
23991 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
23992 gen_altivec_vpkuwum.
23993 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
23995 (altivec_vpks<VI_char>ss): Likewise.
23996 (altivec_vpks<VI_char>us): Likewise.
23997 (altivec_vpku<VI_char>us): Likewise.
23998 (altivec_vpku<VI_char>um): Likewise.
23999 (altivec_vpku<VI_char>um_direct): New (copy of
24000 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24002 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24003 target is little endian and -maltivec=be is not specified.
24004 (*altivec_vupkhs<VU_char>_direct): New (copy of
24005 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24006 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24007 target is little endian and -maltivec=be is not specified.
24008 (*altivec_vupkls<VU_char>_direct): New (copy of
24009 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24010 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24011 little endian and -maltivec=be is not specified.
24012 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24013 little endian and -maltivec=be is not specified.
24015 2014-02-05 Richard Henderson <rth@redhat.com>
24018 * combine-stack-adj.c: Revert r206943.
24019 * sched-int.h (struct deps_desc): Add last_args_size.
24020 * sched-deps.c (init_deps): Initialize it.
24021 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24022 contain REG_ARGS_SIZE notes.
24024 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24026 * lto-cgraph.c (asm_nodes_output): Make global.
24027 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24028 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24029 (driver_handle_option): Handle OPT_fwpa.
24031 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24034 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24035 a comment typo and formatting issue. If odr_hash hasn't been
24036 created, return vNULL and set *completep to false.
24038 PR middle-end/57499
24039 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24040 bb with no successors.
24042 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24045 * doc/invoke.texi (-march): Clarify documentation for ARM.
24046 (-mtune): Likewise.
24049 2014-02-05 Richard Biener <rguenther@suse.de>
24051 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24052 when not vectorizing because of too many alias checks.
24053 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24054 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24056 2014-02-05 Nick Clifton <nickc@redhat.com>
24058 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24059 accept extended registers in any mode when compiling for the MN10300.
24061 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24063 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24064 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24065 sanitization attributes.
24066 (can_inline_edge_p): Likewise.
24067 (sanitize_attrs_match_for_inline_p): New function.
24069 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24071 * ipa-prop.c (detect_type_change): Shor circuit testing of
24072 type changes on THIS pointer.
24074 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24077 * config/pa/pa.c (legitimize_tls_address): Return original address
24078 if not passed a SYMBOL_REF rtx.
24079 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24081 (pa_emit_move_sequence): Simplify TLS source operands.
24082 (pa_legitimate_constant_p): Reject all TLS constants.
24083 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24084 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24086 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24088 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24089 groups when we know they are controlled by LTO.
24090 * varasm.c (default_binds_local_p_1): If object is in other partition,
24091 it will be resolved locally.
24093 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24095 * config/host-linux.c (linux_gt_pch_use_address): Don't
24096 use SSIZE_MAX because it is not always defined.
24098 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24101 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24102 threshold for pseudo splitting.
24103 (update_ebb_live_info): Process call argument hard registers and
24104 hard registers from insn definition too.
24105 (max_small_class_regs_num): New constant.
24106 (inherit_in_ebb): Update live hard regs through EBBs. Update
24107 reloads_num only for small register classes. Don't split for
24110 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24113 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24116 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24118 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24119 visibility is safe.
24121 2014-02-04 Marek Polacek <polacek@redhat.com>
24123 * gdbinit.in (pel): Define.
24125 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24127 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24130 2014-02-04 Richard Biener <rguenther@suse.de>
24133 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24134 in function context local.
24135 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24136 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24137 similar to LTO_imported_decl_ref.
24139 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24141 PR tree-optimization/60002
24142 * cgraphclones.c (build_function_decl_skip_args): Clear
24143 DECL_LANG_SPECIFIC.
24145 PR tree-optimization/60023
24146 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24147 false to gsi_replace.
24148 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24149 has been in some EH region and vec_stmt could throw, add
24150 vec_stmt into the same EH region.
24151 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24152 has no lhs, ignore it.
24153 * internal-fn.c (expand_MASK_LOAD): Likewise.
24156 * tree-inline.c (copy_forbidden): Fail for
24157 __attribute__((optimize (0))) functions.
24160 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24161 is set, copy one less argument.
24162 (expand_simd_clones): Don't subtract clone_info->inbranch
24163 from simd_clone_struct_alloc argument.
24165 PR rtl-optimization/57915
24166 * recog.c (simplify_while_replacing): If all unary/binary/relational
24167 operation arguments are constant, attempt to simplify those.
24169 PR middle-end/59261
24170 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24171 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24173 2014-02-04 Richard Biener <rguenther@suse.de>
24175 PR tree-optimization/60012
24176 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24177 TBAA disambiguation to all DDRs.
24179 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24182 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24183 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24185 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24188 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24190 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24192 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24193 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24195 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24198 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24199 to figure out targets of polymorphic calls with known decl.
24200 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24201 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24202 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24203 (get_polymorphic_call_info): ... here.
24204 (get_polymorphic_call_info_from_invariant): New function.
24206 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24208 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24209 lookup via vtable pointer; check for type consistency
24210 and turn inconsitent facts into UNREACHABLE.
24211 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24212 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24213 type inconsistent querries; return UNREACHABLE instead.
24215 2014-02-03 Richard Henderson <rth@twiddle.net>
24218 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24219 already processed this node.
24220 (normalize_one_pred_1): Pass along mark_set.
24221 (normalize_one_pred): Create and destroy a pointer_set_t.
24222 (normalize_one_pred_chain): Likewise.
24224 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24226 PR gcov-profile/58602
24227 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24229 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24232 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24233 -fno-devirtualize; try to devirtualize by the knowledge of
24234 virtual table pointer given by aggregate propagation.
24235 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24236 (ipa_print_node_jump_functions): Dump also offset that
24237 is relevant for polymorphic calls.
24238 (determine_known_aggregate_parts): Add arg_type parameter; use it
24239 instead of determining the type from pointer type.
24240 (ipa_compute_jump_functions_for_edge): Update call of
24241 determine_known_aggregate_parts.
24242 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24243 (gimple_get_virt_method_for_binfo): ... here; simplify using
24244 vtable_pointer_value_to_vtable.
24245 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24246 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24247 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24248 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24250 (vtable_pointer_value_to_binfo): ... here.
24251 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24253 2014-02-03 Teresa Johnson <tejohnson@google.com>
24255 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24256 redef of outer loop index variable.
24258 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24262 * doc/extend.texi (Function Attributes): Typo.
24264 2014-02-03 Cong Hou <congh@google.com>
24266 PR tree-optimization/60000
24267 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24268 if the vectorized statement is a store. A store statement can only
24269 appear at the end of pattern statements.
24271 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24273 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24274 (ix86_option_override_internal): Default long double to 64-bit for
24275 32-bit Bionic and to 128-bit for 64-bit Bionic.
24277 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24278 TARGET_LONG_DOUBLE_128 is true.
24279 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24281 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24282 (mlong-double-64): Negate -mlong-double-128.
24283 (mlong-double-128): New option.
24285 * config/i386/i386-c.c (ix86_target_macros): Define
24286 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24288 * doc/invoke.texi: Document -mlong-double-128.
24290 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24292 PR rtl-optimization/60024
24293 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24295 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24297 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24299 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24301 PR rtl-optimization/57662
24302 * sel-sched.c (code_motion_path_driver): Do not mark already not
24303 existing blocks in the visiting bitmap.
24305 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24307 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24308 on the insn being emitted.
24310 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24311 Will Deacon <will.deacon@arm.com>
24313 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24315 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24317 * config/arm/arm-tables.opt: Regenerate.
24319 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24321 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24322 for vector types other than V16QImode.
24323 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24324 define_expand, and call altivec_expand_vec_perm_le when producing
24325 code with little endian element order.
24326 (*altivec_vperm_<mode>_internal): New insn having previous
24327 behavior of altivec_vperm_<mode>.
24328 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24329 altivec_expand_vec_perm_le when producing code with little endian
24331 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24332 behavior of altivec_vperm_<mode>_uns.
24334 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24336 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24337 (altivec_vsumsws): Add handling for -maltivec=be with a little
24339 (altivec_vsumsws_direct): New.
24340 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24341 gen_altivec_vsumsws.
24343 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24345 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24346 vtable_pointer_value_to_binfo): New functions.
24347 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24348 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24350 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24352 * config/nios2/nios2.md (load_got_register): Initialize GOT
24353 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24354 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24356 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24358 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24359 preserverd by passthrough, do not propagate the type.
24361 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24363 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24364 (mips_atomic_assign_expand_fenv): New function.
24365 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24367 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24369 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24370 (__builtin_mips_set_fcsr): Likewise.
24371 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24372 MIPS_USI_FTYPE_VOID.
24373 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24374 (mips16_expand_set_fcsr): Likewise.
24375 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24376 (mips16_set_fcsr_stub): Likewise.
24377 (mips16_get_fcsr_one_only_stub): New class.
24378 (mips16_set_fcsr_one_only_stub): Likewise.
24379 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24380 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24381 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24382 (hard_float): New availability predicate.
24383 (mips_builtins): Add get_fcsr and set_fcsr.
24384 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24385 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24386 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24387 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24388 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24391 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24393 * config/mips/mips.c (mips_one_only_stub): New class.
24394 (mips_need_mips16_rdhwr_p): Replace with...
24395 (mips16_rdhwr_stub): ...this new variable.
24396 (mips16_stub_call_address): New function.
24397 (mips16_rdhwr_one_only_stub): New class.
24398 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24399 (mips_output_mips16_rdhwr): Delete.
24400 (mips_finish_stub): New function.
24401 (mips_code_end): Use it to handle rdhwr stubs.
24403 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24406 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24407 when calculating size of integer atomic types.
24409 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24411 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24413 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24415 PR tree-optimization/60003
24416 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24417 * profile.c (branch_prob): Use gimple_call_builtin_p
24418 to check for BUILT_IN_SETJMP_RECEIVER.
24419 * tree-inline.c (copy_bb): Call notice_special_calls.
24421 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24424 * lra-constraints.c (process_alt_operands): Update reload_sum only
24427 2014-01-31 Richard Henderson <rth@redhat.com>
24429 PR middle-end/60004
24430 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24431 until after else_eh is processed.
24433 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24435 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24436 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24437 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24438 in smmintrin.h, remove them.
24439 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24440 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24441 * config/i386/i386.md (ROUND_SAE): Fix value.
24442 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24443 (const48_operand): New.
24444 * config/i386/subst.md (round), (round_expand): Use
24445 const_4_or_8_to_11_operand.
24446 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24448 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24450 * config/i386/constraints.md (Yk): Swap meaning with k.
24451 * config/i386/i386.md (movhi_internal): Change Yk to k.
24452 (movqi_internal): Ditto.
24453 (*k<logic><mode>): Ditto.
24456 (kandn<mode>): Ditto.
24457 (*<code>hi_1): Ditto.
24458 (*<code>qi_1): Ditto.
24459 (kxnor<mode>): Ditto.
24460 (kortestzhi): Ditto.
24461 (kortestchi): Ditto.
24463 (*one_cmplhi2_1): Ditto.
24464 (*one_cmplqi2_1): Ditto.
24465 * config/i386/sse.md (): Change k to Yk.
24466 (avx512f_load<mode>_mask): Ditto.
24467 (avx512f_blendm<mode>): Ditto.
24468 (avx512f_store<mode>_mask): Ditto.
24469 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24470 (avx512f_storedqu<mode>_mask): Ditto.
24471 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24473 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24474 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24475 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24476 (avx512f_maskcmp<mode>3): Ditto.
24477 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24478 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24479 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24480 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24481 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24482 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24483 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24484 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24485 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24486 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24487 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24488 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24489 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24490 (vec_extract_lo_<mode>_maskm): Ditto.
24491 (vec_extract_hi_<mode>_maskm): Ditto.
24492 (avx512f_vternlog<mode>_mask): Ditto.
24493 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24494 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24495 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24496 (avx512f_<code>v8div16qi2_mask): Ditto.
24497 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24498 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24499 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24500 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24501 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24502 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24503 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24504 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24505 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24506 (avx512cd_maskb_vec_dupv8di): Ditto.
24507 (avx512cd_maskw_vec_dupv16si): Ditto.
24508 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24509 (avx512f_vpermi2var<mode>3_mask): Ditto.
24510 (avx512f_vpermi2var<mode>3_mask): Ditto.
24511 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24512 (*avx512f_gathersi<mode>): Ditto.
24513 (*avx512f_gathersi<mode>_2): Ditto.
24514 (*avx512f_gatherdi<mode>): Ditto.
24515 (*avx512f_gatherdi<mode>_2): Ditto.
24516 (*avx512f_scattersi<mode>): Ditto.
24517 (*avx512f_scatterdi<mode>): Ditto.
24518 (avx512f_compress<mode>_mask): Ditto.
24519 (avx512f_compressstore<mode>_mask): Ditto.
24520 (avx512f_expand<mode>_mask): Ditto.
24521 * config/i386/subst.md (mask): Change k to Yk.
24522 (mask_scalar_merge): Ditto.
24525 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24527 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24529 2014-01-31 Richard Biener <rguenther@suse.de>
24531 PR middle-end/59990
24532 * builtins.c (fold_builtin_memory_op): Make sure to not
24533 use a floating-point mode or a boolean or enumeral type for
24534 the copy operation.
24536 2014-01-30 DJ Delorie <dj@redhat.com>
24538 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24539 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24540 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24541 whenever main() has an epilogue.
24543 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24545 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24546 unused variable "field".
24547 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24548 (vsx_mergeh_<mode>): Likewise.
24549 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24550 (altivec_vmrghh): Likewise.
24551 (altivec_vmrghw): Likewise.
24552 (altivec_vmrglb): Likewise.
24553 (altivec_vmrglh): Likewise.
24554 (altivec_vmrglw): Likewise.
24555 (altivec_vspltb): Add missing uses.
24556 (altivec_vsplth): Likewise.
24557 (altivec_vspltw): Likewise.
24558 (altivec_vspltsf): Likewise.
24560 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24563 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24564 frame related instructions.
24566 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24568 PR rtl-optimization/59959
24569 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24570 any reload of register whose subreg is invalid.
24572 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24574 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24575 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24576 Add missing return type - void.
24578 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24580 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24581 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24582 remove element index adjustment for endian (now handled in vsx.md
24584 (altivec_expand_vec_perm_const): Use
24585 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24586 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24587 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24588 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24589 define_expand and a new define_insn *altivec_vspltb_internal;
24590 adjust for -maltivec=be on a little endian target.
24591 (altivec_vspltb_direct): New.
24592 (altivec_vsplth): Divide into a define_expand and a new
24593 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24594 little endian target.
24595 (altivec_vsplth_direct): New.
24596 (altivec_vspltw): Divide into a define_expand and a new
24597 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24598 little endian target.
24599 (altivec_vspltw_direct): New.
24600 (altivec_vspltsf): Divide into a define_expand and a new
24601 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24602 a little endian target.
24604 2014-01-30 Richard Biener <rguenther@suse.de>
24606 PR tree-optimization/59993
24607 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24608 can propagate form the earlier stmt and avoid the transform
24609 when the intermediate result is needed.
24611 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24613 * README.Portability: Fix typo.
24615 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24617 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24618 comparison_operator with ordered_comparison_operator.
24620 2014-01-30 Nick Clifton <nickc@redhat.com>
24622 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24623 Rename to mn10300_store_multiple_regs.
24624 * config/mn10300/mn10300.c: Likewise.
24625 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24626 store_multiple_regs.
24627 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24628 Call mn10300_store_multiple_regs.
24630 2014-01-30 Nick Clifton <nickc@redhat.com>
24631 DJ Delorie <dj@redhat.com>
24633 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24634 %fp 2 to keep registers after it properly word-aligned.
24635 (rl78_alloc_physical_registers_umul): Handle the case where both
24636 input operands are the same.
24638 2014-01-30 Richard Biener <rguenther@suse.de>
24640 PR tree-optimization/59903
24641 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24644 2014-01-30 Jason Merrill <jason@redhat.com>
24647 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24650 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24652 2014-01-30 Richard Biener <rguenther@suse.de>
24654 PR tree-optimization/59951
24655 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24657 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24660 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24661 SFmode to DFmode case.
24663 2014-01-29 DJ Delorie <dj@redhat.com>
24665 * config/msp430/msp430.opt (-minrt): New.
24666 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24668 (ENDFILE_SPEC): Likewise.
24670 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24672 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24673 (estimate_function_body_sizes): Use it.
24675 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24678 * dwarf2out.c (is_cxx_auto): New.
24679 (is_base_type): Use it.
24680 (gen_type_die_with_usage): Likewise.
24682 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24684 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24685 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24686 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24687 -maltivec=be with LE targets.
24688 (vsx_mergeh_<mode>): Likewise.
24689 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24690 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24691 (altivec_vmrghb): Replace with define_expand and new
24692 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24693 (altivec_vmrghb_direct): New define_insn.
24694 (altivec_vmrghh): Replace with define_expand and new
24695 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24696 (altivec_vmrghh_direct): New define_insn.
24697 (altivec_vmrghw): Replace with define_expand and new
24698 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24699 (altivec_vmrghw_direct): New define_insn.
24700 (*altivec_vmrghsf): Adjust for endianness.
24701 (altivec_vmrglb): Replace with define_expand and new
24702 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24703 (altivec_vmrglb_direct): New define_insn.
24704 (altivec_vmrglh): Replace with define_expand and new
24705 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24706 (altivec_vmrglh_direct): New define_insn.
24707 (altivec_vmrglw): Replace with define_expand and new
24708 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24709 (altivec_vmrglw_direct): New define_insn.
24710 (*altivec_vmrglsf): Adjust for endianness.
24711 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24712 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24713 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24714 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24715 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24716 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24717 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24718 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24720 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24722 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24723 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24726 2014-01-29 Richard Biener <rguenther@suse.de>
24728 PR tree-optimization/58742
24729 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24730 associate_pointerplus_align.
24731 (associate_pointerplus_diff): New function.
24732 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24733 and associate_pointerplus_diff.
24735 2014-01-29 Richard Biener <rguenther@suse.de>
24737 * lto-streamer.h (LTO_major_version): Bump to 3.
24738 (LTO_minor_version): Reset to 0.
24740 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24742 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24743 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24744 (arm_file_start): Generate correct asm header for armv7ve.
24745 * config/arm/bpabi.h: Add multilib support for armv7ve.
24746 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24747 and cortex-a15 to armv7ve.
24748 * config/arm/t-aprofile: Add multilib support for armv7ve.
24749 * doc/invoke.texi: Document -march=armv7ve.
24751 2014-01-29 Richard Biener <rguenther@suse.de>
24753 PR tree-optimization/58742
24754 * tree-ssa-forwprop.c (associate_plusminus): Return true
24755 if we changed sth, defer EH cleanup to ...
24756 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24757 (simplify_mult): New function.
24759 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24761 PR middle-end/59917
24762 PR tree-optimization/59920
24763 * tree.c (build_common_builtin_nodes): Remove
24764 __builtin_setjmp_dispatcher initialization.
24765 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24766 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24767 instead of gsi_after_labels + manually skipping debug stmts.
24768 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24769 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24770 * tree-inline.c (copy_edges_for_bb): Remove
24771 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24772 argument. Ignore computed_goto_p stmts. Don't call
24773 make_abnormal_goto_edges. If a call might need abnormal edges
24774 for non-local gotos, see if it already has an edge to
24775 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24776 with true argument, don't do anything then, otherwise add
24777 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24778 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24780 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24781 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24782 (lower_stmt): Don't set data->calls_builtin_setjmp.
24783 (lower_builtin_setjmp): Adjust comment.
24784 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24785 * tree-cfg.c (found_computed_goto): Remove.
24786 (factor_computed_gotos): Remove.
24787 (make_goto_expr_edges): Return bool, true for computed gotos.
24788 Don't call make_abnormal_goto_edges.
24789 (build_gimple_cfg): Don't set found_computed_goto, don't call
24790 factor_computed_gotos.
24791 (computed_goto_p): No longer static.
24792 (make_blocks): Don't set found_computed_goto.
24793 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24794 (make_edges): If make_goto_expr_edges returns true, push bb
24795 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24796 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24797 vector. Record mapping between bbs and OpenMP regions if there
24798 are any, adjust make_gimple_omp_edges caller. Call
24799 handle_abnormal_edges.
24800 (make_abnormal_goto_edges): Remove.
24801 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24802 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24803 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24804 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24805 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24806 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24807 filling *region also set *region_idx to (*region)->entry->index.
24810 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24811 For REGs set ORIGINAL_REGNO.
24813 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24815 * doc/md.texi: Mention that a target shouldn't implement
24816 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24819 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24821 PR tree-optimization/59594
24822 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24823 a copy of the datarefs vector rather than the vector itself.
24825 2014-01-28 Jason Merrill <jason@redhat.com>
24828 * dwarf2out.c (auto_die): New static.
24829 (gen_type_die_with_usage): Handle C++1y 'auto'.
24830 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24833 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24836 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24837 (SPEC_X32): Likewise.
24838 (SPEC_64): Likewise.
24839 * config/i386/i386.c (ix86_option_override_internal): Turn off
24840 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24842 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24843 * config/i386/i386.h (TARGET_16BIT): New macro.
24844 (TARGET_16BIT_P): Likewise.
24845 * config/i386/i386.opt: Add m16.
24846 * doc/invoke.texi: Document -m16.
24848 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24850 PR preprocessor/59935
24851 * input.c (location_get_source_line): Bail out on when line number
24852 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24854 2014-01-28 Richard Biener <rguenther@suse.de>
24856 PR tree-optimization/58742
24857 * tree-ssa-forwprop.c (associate_plusminus): Handle
24858 pointer subtraction of the form (T)(P + A) - (T)P.
24860 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24862 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24865 2014-01-28 Richard Biener <rguenther@suse.de>
24868 2014-01-28 Richard Biener <rguenther@suse.de>
24870 PR rtl-optimization/45364
24871 PR rtl-optimization/59890
24872 * var-tracking.c (local_get_addr_clear_given_value): Handle
24873 already cleared slot.
24874 (val_reset): Handle not allocated local_get_addr_cache.
24875 (vt_find_locations): Use post-order on the inverted CFG.
24877 2014-01-28 Richard Biener <rguenther@suse.de>
24879 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24881 2014-01-28 Richard Biener <rguenther@suse.de>
24883 PR rtl-optimization/45364
24884 PR rtl-optimization/59890
24885 * var-tracking.c (local_get_addr_clear_given_value): Handle
24886 already cleared slot.
24887 (val_reset): Handle not allocated local_get_addr_cache.
24888 (vt_find_locations): Use post-order on the inverted CFG.
24890 2014-01-28 Alan Modra <amodra@gmail.com>
24892 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
24893 * configure.ac <recursive call for build != host>: Define
24894 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
24895 and LD_FOR_BUILD too.
24896 * configure: Regenerate.
24898 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
24900 * config/i386/i386.c (get_builtin_code_for_version): Separate
24901 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
24902 Broadwell from Haswell.
24904 2014-01-27 Steve Ellcey <sellcey@mips.com>
24906 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24907 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
24908 * config/mips/mips.c (mips_option_override): Change setting
24910 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
24911 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
24912 Change from Mask to Var.
24914 2014-01-27 Jeff Law <law@redhat.com>
24916 * ipa-inline.c (inline_small_functions): Fix typo.
24918 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
24920 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
24921 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
24922 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
24923 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
24924 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
24925 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
24926 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
24927 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
24928 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
24929 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
24930 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
24931 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
24932 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
24933 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
24934 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
24935 (_mm512_storeu_epi64): Ditto.
24936 (_mm512_cmpge_epi32_mask): Ditto.
24937 (_mm512_cmpge_epu32_mask): Ditto.
24938 (_mm512_cmpge_epi64_mask): Ditto.
24939 (_mm512_cmpge_epu64_mask): Ditto.
24940 (_mm512_cmple_epi32_mask): Ditto.
24941 (_mm512_cmple_epu32_mask): Ditto.
24942 (_mm512_cmple_epi64_mask): Ditto.
24943 (_mm512_cmple_epu64_mask): Ditto.
24944 (_mm512_cmplt_epi32_mask): Ditto.
24945 (_mm512_cmplt_epu32_mask): Ditto.
24946 (_mm512_cmplt_epi64_mask): Ditto.
24947 (_mm512_cmplt_epu64_mask): Ditto.
24948 (_mm512_cmpneq_epi32_mask): Ditto.
24949 (_mm512_cmpneq_epu32_mask): Ditto.
24950 (_mm512_cmpneq_epi64_mask): Ditto.
24951 (_mm512_cmpneq_epu64_mask): Ditto.
24952 (_mm512_expand_pd): Ditto.
24953 (_mm512_expand_ps): Ditto.
24954 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
24955 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
24956 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
24957 * config/i386/i386.c (ix86_builtins): Add
24958 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
24959 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
24960 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
24961 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
24962 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
24963 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
24964 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
24965 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
24966 IX86_BUILTIN_PMOVUSQW512_MEM.
24967 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
24968 __builtin_ia32_pmovsqd512mem_mask,
24969 __builtin_ia32_pmovqd512mem_mask,
24970 __builtin_ia32_pmovusqw512mem_mask,
24971 __builtin_ia32_pmovsqw512mem_mask,
24972 __builtin_ia32_pmovqw512mem_mask,
24973 __builtin_ia32_pmovusdw512mem_mask,
24974 __builtin_ia32_pmovsdw512mem_mask,
24975 __builtin_ia32_pmovdw512mem_mask,
24976 __builtin_ia32_pmovqb512mem_mask,
24977 __builtin_ia32_pmovusqb512mem_mask,
24978 __builtin_ia32_pmovsqb512mem_mask,
24979 __builtin_ia32_pmovusdb512mem_mask,
24980 __builtin_ia32_pmovsdb512mem_mask,
24981 __builtin_ia32_pmovdb512mem_mask.
24982 (bdesc_args): Add __builtin_ia32_expanddf512,
24983 __builtin_ia32_expandsf512.
24984 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
24985 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
24986 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
24987 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
24988 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
24989 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
24990 (avx512f_<code>v8div16qi2_mask_store): This.
24991 (avx512f_expand<mode>): New.
24993 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
24995 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
24997 (_mm512_mask_prefetch_i64gather_pd): Ditto.
24998 (_mm512_prefetch_i32scatter_pd): Ditto.
24999 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25000 (_mm512_prefetch_i64scatter_pd): Ditto.
25001 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25002 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25003 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25004 (_mm512_prefetch_i32scatter_ps): Ditto.
25005 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25006 (_mm512_prefetch_i64scatter_ps): Ditto.
25007 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25008 * config/i386/i386-builtin-types.def: Define
25009 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25010 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25011 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25012 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25013 IX86_BUILTIN_SCATTERPFQPD.
25014 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25015 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25016 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25017 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25018 __builtin_ia32_scatterpfqps.
25019 (ix86_expand_builtin): Expand new built-ins.
25020 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25021 fix memory access data type.
25022 (*avx512pf_gatherpf<mode>_mask): Ditto.
25023 (*avx512pf_gatherpf<mode>): Ditto.
25024 (avx512pf_scatterpf<mode>): Ditto.
25025 (*avx512pf_scatterpf<mode>_mask): Ditto.
25026 (*avx512pf_scatterpf<mode>): Ditto.
25027 (GATHER_SCATTER_SF_MEM_MODE): New.
25028 (avx512pf_gatherpf<mode>df): Ditto.
25029 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25030 (*avx512pf_scatterpf<mode>df): Ditto.
25032 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25035 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25036 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25039 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25041 * common/config/arm/arm-common.c
25042 (arm_rewrite_mcpu): Handle multiple names.
25044 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25046 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25048 * gimple-builder.h (create_gimple_tmp): Delete.
25050 2014-01-27 Christian Bruel <christian.bruel@st.com>
25052 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25055 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25057 * config/pa/pa.md (call): Generate indirect long calls to non-local
25058 functions when outputing 32-bit code.
25059 (call_value): Likewise except for special call to buggy powf function.
25061 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25062 portable runtime and PIC indirect calls.
25063 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25064 and PIC call sequences. Use ldo instead of blr to set return register
25065 in PIC call sequence.
25067 2014-01-25 Walter Lee <walt@tilera.com>
25069 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25070 avoid clobbering a live register.
25072 2014-01-25 Walter Lee <walt@tilera.com>
25074 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25075 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25076 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25077 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25079 2014-01-25 Walter Lee <walt@tilera.com>
25081 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25082 arguments on even registers.
25083 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25085 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25086 (BIGGEST_ALIGNMENT): Ditto.
25087 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25089 2014-01-25 Walter Lee <walt@tilera.com>
25091 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25092 insns before bundling.
25093 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25095 2014-01-25 Walter Lee <walt@tilera.com>
25097 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25098 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25099 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25101 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25103 * config/mips/constraints.md (kl): Delete.
25104 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25105 define expands, using...
25106 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25107 instructions for MIPS16.
25108 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25109 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25111 2014-01-25 Walter Lee <walt@tilera.com>
25113 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25117 2014-01-25 Walter Lee <walt@tilera.com>
25119 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25120 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25122 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25124 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25127 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25129 * print-rtl.c (in_call_function_usage): New var.
25130 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25131 EXPR_LIST mode as mode and not as reg note name.
25133 PR middle-end/59561
25134 * cfgloopmanip.c (copy_loop_info): If
25135 loop->warned_aggressive_loop_optimizations, make sure
25136 the flag is set in target loop too.
25138 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25140 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25142 * builtins.def: Likewise.
25143 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25144 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25145 * ira.c (ira_setup_eliminable_regset): Likewise.
25146 * omp-low.c (gate_expand_omp): Likewise.
25147 (execute_lower_omp): Likewise.
25148 (diagnose_sb_0): Likewise.
25149 (gate_diagnose_omp_blocks): Likewise.
25150 (simd_clone_clauses_extract): Likewise.
25153 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25155 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25156 correction for little endian...
25157 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25160 2014-01-24 Jeff Law <law@redhat.com>
25162 PR tree-optimization/59919
25163 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25164 for non-returning calls.
25166 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25168 * common/config/aarch64/aarch64-common.c
25169 (aarch64_rewrite_mcpu): Handle multiple names.
25170 * config/aarch64/aarch64.h
25171 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25173 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25175 * input.c (add_file_to_cache_tab): Handle the case where fopen
25178 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25181 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25182 from push operand if code of push isn't PRE_DEC.
25184 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25187 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25188 -mquad-memory-atomic. Update -mquad-memory documentation to say
25189 it is only used for non-atomic loads/stores.
25191 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25192 -mquad-memory or -mquad-memory-atomic switches.
25194 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25195 -mquad-memory-atomic to ISA 2.07 support.
25197 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25198 to separate support of normal quad word memory operations (ldq, stq)
25199 from the atomic quad word memory operations.
25201 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25202 support to separate non-atomic quad word operations from atomic
25203 quad word operations. Disable non-atomic quad word operations in
25204 little endian mode so that we don't have to swap words after the
25205 load and before the store.
25206 (quad_load_store_p): Add comment about atomic quad word support.
25207 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25208 options printed with -mdebug=reg.
25210 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25211 -mquad-memory-atomic as the test for whether we have quad word
25212 atomic instructions.
25213 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25214 or -mp8-vector are used, allow byte/half-word atomic operations.
25216 * config/rs6000/sync.md (load_lockedti): Insure that the address
25217 is a proper indexed or indirect address for the lqarx instruction.
25218 On little endian systems, swap the hi/lo registers after the lqarx
25220 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25221 insure the address is valid for the lqarx instruction.
25222 (store_conditionalti): Insure that the address is a proper indexed
25223 or indirect address for the stqcrx. instruction. On little endian
25224 systems, swap the hi/lo registers before doing the stqcrx.
25226 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25227 insure the address is valid for the stqcrx. instruction.
25229 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25230 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25231 type of quad memory support is available.
25233 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25235 PR regression/59915
25236 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25237 there is a danger of looping.
25239 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25241 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25242 force flag_ira_loop_pressure if set via command line.
25244 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25246 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25247 (ashr_simd): New builtin handling DI mode.
25248 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25249 (aarch64_sshr_simddi): New match pattern.
25250 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25251 (vshrd_n_s64): Likewise.
25252 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25254 2014-01-23 Nick Clifton <nickc@redhat.com>
25256 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25257 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25258 favour of mcu specific scripts.
25259 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25262 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25263 Alex Velenko <Alex.Velenko@arm.com>
25265 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25266 (vaddv_s16): Likewise.
25267 (vaddv_s32): Likewise.
25268 (vaddv_u8): Likewise.
25269 (vaddv_u16): Likewise.
25270 (vaddv_u32): Likewise.
25271 (vaddvq_s8): Likewise.
25272 (vaddvq_s16): Likewise.
25273 (vaddvq_s32): Likewise.
25274 (vaddvq_s64): Likewise.
25275 (vaddvq_u8): Likewise.
25276 (vaddvq_u16): Likewise.
25277 (vaddvq_u32): Likewise.
25278 (vaddvq_u64): Likewise.
25279 (vaddv_f32): Likewise.
25280 (vaddvq_f32): Likewise.
25281 (vaddvq_f64): Likewise.
25282 (vmaxv_f32): Likewise.
25283 (vmaxv_s8): Likewise.
25284 (vmaxv_s16): Likewise.
25285 (vmaxv_s32): Likewise.
25286 (vmaxv_u8): Likewise.
25287 (vmaxv_u16): Likewise.
25288 (vmaxv_u32): Likewise.
25289 (vmaxvq_f32): Likewise.
25290 (vmaxvq_f64): Likewise.
25291 (vmaxvq_s8): Likewise.
25292 (vmaxvq_s16): Likewise.
25293 (vmaxvq_s32): Likewise.
25294 (vmaxvq_u8): Likewise.
25295 (vmaxvq_u16): Likewise.
25296 (vmaxvq_u32): Likewise.
25297 (vmaxnmv_f32): Likewise.
25298 (vmaxnmvq_f32): Likewise.
25299 (vmaxnmvq_f64): Likewise.
25300 (vminv_f32): Likewise.
25301 (vminv_s8): Likewise.
25302 (vminv_s16): Likewise.
25303 (vminv_s32): Likewise.
25304 (vminv_u8): Likewise.
25305 (vminv_u16): Likewise.
25306 (vminv_u32): Likewise.
25307 (vminvq_f32): Likewise.
25308 (vminvq_f64): Likewise.
25309 (vminvq_s8): Likewise.
25310 (vminvq_s16): Likewise.
25311 (vminvq_s32): Likewise.
25312 (vminvq_u8): Likewise.
25313 (vminvq_u16): Likewise.
25314 (vminvq_u32): Likewise.
25315 (vminnmv_f32): Likewise.
25316 (vminnmvq_f32): Likewise.
25317 (vminnmvq_f64): Likewise.
25319 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25321 * config/aarch64/aarch64-simd.md
25322 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25323 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25324 (*aarch64_mul3_elt<mode>): Likewise.
25325 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25326 (*aarch64_mul3_elt_to_64v2df): Likewise.
25327 (*aarch64_mla_elt<mode>): Likewise.
25328 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25329 (*aarch64_mls_elt<mode>): Likewise.
25330 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25331 (*aarch64_fma4_elt<mode>): Likewise.
25332 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25333 (*aarch64_fma4_elt_to_64v2df): Likewise.
25334 (*aarch64_fnma4_elt<mode>): Likewise.
25335 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25336 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25337 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25338 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25339 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25340 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25341 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25342 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25343 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25345 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25347 * config/aarch64/aarch64-simd.md
25348 (aarch64_be_checked_get_lane<mode>): New define_expand.
25349 * config/aarch64/aarch64-simd-builtins.def
25350 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25351 New builtin definition.
25352 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25353 Use new safe be builtin.
25355 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25357 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25359 (aarch64_be_st1<mode>): Likewise.
25360 (aarch_ld1<VALL:mode>): Define_expand modified.
25361 (aarch_st1<VALL:mode>): Likewise.
25362 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25363 (UNSPEC_ST1): Likewise.
25365 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25367 * config/microblaze/microblaze.md: Add trap insn and attribute
25369 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25371 PR preprocessor/58580
25372 * input.h (location_get_source_line): Take an additional line_size
25374 (void diagnostics_file_cache_fini): Declare new function.
25375 * input.c (struct fcache): New type.
25376 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25377 New static constants.
25378 (diagnostic_file_cache_init, total_lines_num)
25379 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25380 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25381 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25382 (get_next_line, read_next_line, goto_next_line, read_line_num):
25383 New static function definitions.
25384 (diagnostic_file_cache_fini): New function.
25385 (location_get_source_line): Take an additional output line_len
25386 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25388 * diagnostic.c (diagnostic_finish): Call
25389 diagnostic_file_cache_fini.
25390 (adjust_line): Take an additional input parameter for the length
25391 of the line, rather than calculating it with strlen.
25392 (diagnostic_show_locus): Adjust the use of
25393 location_get_source_line and adjust_line with respect to their new
25394 signature. While displaying a line now, do not stop at the first
25395 null byte. Rather, display the zero byte as a space and keep
25396 going until we reach the size of the line.
25397 * Makefile.in: Add vec.o to OBJS-libcommon
25399 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25400 Ilya Tocar <ilya.tocar@intel.com>
25402 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25403 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25404 (__builtin_ia32_kmov16): Ditto.
25405 * config/i386/i386.md (UNSPEC_KMOV): New.
25408 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25410 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25411 (_mm512_storeu_si512): Ditto.
25413 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25416 * rtl.h (get_referenced_operands): Declare.
25417 * recog.c (get_referenced_operands): New function.
25418 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25419 operands have been referenced when recording LO_SUM references.
25421 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25423 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25425 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25427 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25428 Enable for generic and recent AMD targets.
25430 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25432 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25433 ARG_SIZE note when adjustment was eliminated.
25435 2014-01-22 Jeff Law <law@redhat.com>
25437 PR tree-optimization/59597
25438 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25439 in file. Accept new argument REGISTERING and use it to modify
25440 dump output appropriately.
25441 (register_jump_thread): Corresponding changes.
25442 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25443 thread paths involving joiner blocks. Add code to dump cancelled
25444 jump threading paths.
25446 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25448 PR rtl-optimization/59477
25449 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25450 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25452 2014-01-22 Tom Tromey <tromey@redhat.com>
25454 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25456 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25458 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25460 PR rtl-optimization/59896
25461 * lra-constraints.c (process_alt_operands): Check unused note for
25462 matched operands of insn with no output reloads.
25464 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25466 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25467 (mips_move_from_gpr_cost): Likewise.
25469 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25471 PR rtl-optimization/59858
25472 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25473 ira_class_hard_regs_num.
25474 (process_alt_operands): Increase reject for dying matched operand.
25476 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25479 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25480 smaller than size, perform several stores or loads and stores
25481 at dst + count - size to store or copy all of size bytes, rather
25482 than just last modesize bytes.
25484 2014-01-20 DJ Delorie <dj@redhat.com>
25486 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25487 that CLOBBERs are REGs before propogating their values.
25489 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25491 PR middle-end/59789
25492 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25493 (cgraph_inline_failed_type): New function.
25494 * cgraph.h (DEFCIFCODE): Add type.
25495 (cgraph_inline_failed_type_t): New enum.
25496 (cgraph_inline_failed_type): New prototype.
25497 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25498 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25499 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25500 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25501 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25502 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25503 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25504 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25505 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25506 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25507 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25508 OPTIMIZATION_MISMATCH.
25509 * tree-inline.c (expand_call_inline): Emit errors during
25510 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25512 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25515 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25516 mode attribute in insn output.
25518 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25520 * output.h (output_constant): Delete.
25521 * varasm.c (output_constant): Make private.
25523 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25525 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25527 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25529 PR middle-end/59860
25530 * tree.h (fold_builtin_strcat): New prototype.
25531 * builtins.c (fold_builtin_strcat): No longer static. Add len
25532 argument, if non-NULL, don't call c_strlen. Optimize
25533 directly into __builtin_memcpy instead of __builtin_strcpy.
25534 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25535 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25537 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25539 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25540 for SImode_address_operand operands, having only a REG argument.
25542 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25544 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25545 loader name using mbig-endian.
25546 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25548 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25550 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25551 (-mtune): Likewise.
25554 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25556 * config/aarch64/aarch64-protos.h
25557 (aarch64_cannot_change_mode_class_ptr): Declare.
25558 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25559 aarch64_cannot_change_mode_class_ptr): New.
25560 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25561 backend hook aarch64_cannot_change_mode_class.
25563 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25565 * common/config/aarch64/aarch64-common.c
25566 (aarch64_handle_option): Don't handle any option order logic here.
25567 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25568 selected_cpu, warn on architecture version mismatch.
25569 (aarch64_override_options): Fix parsing order for option strings.
25571 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25572 Iain Sandoe <iain@codesourcery.com>
25575 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25576 warning. Amend comment to reflect current functionality.
25578 2014-01-20 Richard Biener <rguenther@suse.de>
25580 PR middle-end/59860
25581 * builtins.c (fold_builtin_strcat): Remove case better handled
25582 by tree-ssa-strlen.c.
25584 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25586 * config/aarch64/aarch64.opt
25587 (mcpu, march, mtune): Make case-insensitive.
25589 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25592 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25593 if operands[1] is a REG or ZERO_EXTEND of a REG.
25595 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25597 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25599 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25601 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25602 long non-pic millicode calls.
25604 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25606 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25608 2014-01-19 Kito Cheng <kito@0xlab.org>
25610 * builtins.c (expand_movstr): Check movstr expand done or fail.
25612 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25613 H.J. Lu <hongjiu.lu@intel.com>
25616 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25617 to DImode for zero-extended addresses.
25619 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25621 PR rtl-optimization/57763
25622 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25623 on the new indirect jump_insn and increment LABEL_NUSES (label).
25625 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25629 * config.gcc (x86_archs): New variable.
25630 (x86_64_archs): Likewise.
25631 (x86_cpus): Likewise.
25632 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25633 --with-arch/--with-cpu= options.
25634 Support --with-arch=/--with-cpu={nehalem,westmere,
25635 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25637 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25639 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25640 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25642 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25644 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25646 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25649 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25650 clear cpp_get_options (parse_in)->warn_unused_macros for
25651 ix86_target_macros_internal with cpp_define.
25653 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25655 * jump.c (delete_related_insns): Keep (use (insn))s.
25656 * reorg.c (redundant_insn): Check for barriers too.
25658 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25660 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25662 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25664 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25665 call to $$dyncall when TARGET_LONG_CALLS is true.
25667 2014-01-17 Jeff Law <law@redhat.com>
25669 * ree.c (combine_set_extension): Temporarily disable test for
25670 changing number of hard registers.
25672 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25674 PR middle-end/58125
25675 * ipa-inline-analysis.c (inline_free_summary):
25676 Do not free summary of aliases.
25678 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25680 PR middle-end/59706
25681 * gimplify.c (gimplify_expr): Use create_tmp_var
25682 instead of create_tmp_var_raw. If cond doesn't have
25683 integral type, don't add the IFN_ANNOTATE builtin at all.
25685 2014-01-17 Martin Jambor <mjambor@suse.cz>
25688 * ipa-cp.c (prev_edge_clone): New variable.
25689 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25690 Also resize prev_edge_clone vector.
25691 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25692 (ipcp_edge_removal_hook): New function.
25693 (ipcp_driver): Register ipcp_edge_removal_hook.
25695 2014-01-17 Andrew Pinski <apinski@cavium.com>
25696 Steve Ellcey <sellcey@mips.com>
25699 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25702 2014-01-17 Jeff Law <law@redhat.com>
25704 PR middle-end/57904
25705 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25706 so that pass_ccp runs first.
25708 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25710 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25711 (ix86_adjust_cost): Use !TARGET_XXX.
25712 (do_reorder_for_imul): Likewise.
25713 (swap_top_of_ready_list): Likewise.
25714 (ix86_sched_reorder): Likewise.
25716 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25718 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25719 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25720 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25721 (intel_memset): New. Duplicate slm_memset.
25722 (intel_cost): New. Duplicate slm_cost.
25723 (m_INTEL): New macro.
25724 (processor_target_table): Add "intel".
25725 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25726 with PROCESSOR_INTEL for "intel".
25727 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25728 PROCESSOR_SILVERMONT.
25729 (ix86_issue_rate): Likewise.
25730 (ix86_adjust_cost): Likewise.
25731 (ia32_multipass_dfa_lookahead): Likewise.
25732 (swap_top_of_ready_list): Likewise.
25733 (ix86_sched_reorder): Likewise.
25734 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25735 instead of TARGET_OPT_AGU.
25736 * config/i386/i386.h (TARGET_INTEL): New.
25737 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25738 (processor_type): Add PROCESSOR_INTEL.
25739 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25740 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25742 2014-01-17 Marek Polacek <polacek@redhat.com>
25745 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25748 2014-01-17 Richard Biener <rguenther@suse.de>
25750 PR tree-optimization/46590
25751 * opts.c (default_options_table): Add entries for
25752 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25753 all enabled at -O1 but not for -Og.
25754 * common.opt (fbranch-count-reg): Remove Init(1).
25755 (fmove-loop-invariants): Likewise.
25756 (ftree-pta): Likewise.
25758 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25760 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25761 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25762 decls to at least the GCC 4.8 used alignments.
25765 * tree-nested.c (convert_nonlocal_reference_stmt,
25766 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25767 of GIMPLE_BIND stmts, adjust associated decls.
25769 2014-01-17 Richard Biener <rguenther@suse.de>
25771 PR tree-optimization/46590
25772 * vec.h (vec<>::bseach): New member function implementing
25773 binary search according to C89 bsearch.
25774 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25775 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25776 bitmap pointer again. Make accesses_in_loop a flat array.
25777 (mem_ref_obstack): New global.
25778 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25779 (mark_ref_stored): Likewise.
25780 (ref_indep_loop_p_2): Likewise.
25781 (set_ref_stored_in_loop): New helper function.
25782 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25783 (memref_free): Adjust.
25784 (record_mem_ref_loc): Simplify.
25785 (gather_mem_refs_stmt): Adjust.
25786 (sort_locs_in_loop_postorder_cmp): New function.
25787 (analyze_memory_references): Sort accesses_in_loop after
25788 loop postorder number.
25789 (find_ref_loc_in_loop_cmp): New function.
25790 (for_all_locs_in_loop): Find relevant cluster of locs in
25791 accesses_in_loop and iterate without recursion.
25792 (execute_sm): Avoid uninit warning.
25793 (struct ref_always_accessed): Simplify.
25794 (ref_always_accessed::operator ()): Likewise.
25795 (ref_always_accessed_p): Likewise.
25796 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25797 loop postorder numbers here.
25798 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25801 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25804 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25805 on decls for which assemble_alias has been called.
25807 2014-01-17 Nick Clifton <nickc@redhat.com>
25809 * config/msp430/msp430.opt: (mcpu): New option.
25810 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25811 (msp430_option_override): Parse target_cpu. If the MCU name
25812 matches a generic string, clear target_mcu.
25813 (msp430_attr): Allow numeric interrupt values up to 63.
25814 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25815 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25817 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25819 * config/msp430/msp430.md (popm): Use %J rather than %I.
25820 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25821 (addhi_cy_i): Use immediate_operand for operand 2.
25822 * doc/invoke.texi: Document -mcpu option.
25824 2014-01-17 Richard Biener <rguenther@suse.de>
25826 PR rtl-optimization/38518
25827 * df.h (df_analyze_loop): Declare.
25828 * df-core.c: Include cfgloop.h.
25829 (df_analyze_1): Split out main part of df_analyze.
25830 (df_analyze): Adjust.
25831 (loop_inverted_post_order_compute): New function.
25832 (loop_post_order_compute): Likewise.
25833 (df_analyze_loop): New function avoiding whole-function
25834 postorder computes.
25835 * loop-invariant.c (find_defs): Use df_analyze_loop.
25836 (find_invariants): Adjust.
25837 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25839 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25841 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25842 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25844 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25846 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25847 traversal when removing references.
25849 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25852 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25854 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25856 PR middle-end/56791
25857 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25858 pushing a reload for an autoinc when we had previously reloaded an
25859 inner part of the address.
25861 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25863 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25865 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25866 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25867 when not giving up or versioning for alias only because of
25869 (vect_analyze_data_ref_dependences): Set to true.
25870 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25872 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25873 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25876 PR middle-end/58344
25877 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25880 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25881 operand 0 predicate for gathers, use a new pseudo as subtarget.
25883 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25885 PR middle-end/59609
25886 * lra-constraints.c (process_alt_operands): Add printing debug info.
25887 Check absence of input/output reloads for matched operands too.
25889 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
25891 PR rtl-optimization/59835
25892 * ira.c (ira_init_register_move_cost): Increase cost for
25895 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
25897 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
25899 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
25902 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
25903 non-register objects. Use gen_(high/low)part more consistently.
25906 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25909 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
25910 endian support, remove tests for WORDS_BIG_ENDIAN.
25911 (p8_mfvsrd_3_<mode>): Likewise.
25912 (reload_gpr_from_vsx<mode>): Likewise.
25913 (reload_gpr_from_vsxsf): Likewise.
25914 (p8_mfvsrd_4_disf): Likewise.
25916 2014-01-16 Richard Biener <rguenther@suse.de>
25918 PR rtl-optimization/46590
25919 * lcm.c (compute_antinout_edge): Use postorder iteration.
25920 (compute_laterin): Use inverted postorder iteration.
25922 2014-01-16 Nick Clifton <nickc@redhat.com>
25924 PR middle-end/28865
25925 * varasm.c (output_constant): Return the number of bytes actually
25927 (output_constructor_array_range): Update the field size with the
25928 number of bytes emitted by output_constant.
25929 (output_constructor_regular_field): Likewise. Also do not
25930 complain if the total number of bytes emitted is now greater
25931 than the expected fieldpos.
25932 * output.h (output_constant): Update prototype and descriptive comment.
25934 2014-01-16 Marek Polacek <polacek@redhat.com>
25936 PR middle-end/59827
25937 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
25938 it is error_mark_node.
25940 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
25942 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
25943 VALID_AVX256_REG_OR_OI_MODE.
25945 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
25947 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
25948 current procedure should be profiled.
25950 2014-01-15 Andrew Pinski <apinski@cavium.com>
25952 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
25953 of moving from/to the STACK_REG register class.
25955 2014-01-15 Richard Henderson <rth@redhat.com>
25958 * reginfo.c (global_regs_decl): Globalize.
25959 * rtl.h (global_regs_decl): Declare.
25960 * ira.c (do_reload): Diagnose frame_pointer_needed and it
25961 reserved via global_regs.
25963 2014-01-15 Teresa Johnson <tejohnson@google.com>
25965 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
25967 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
25969 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
25970 and vmulosh rather than call gen_vec_widen_smult_*.
25971 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
25972 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
25973 (vec_widen_smult_even_v16qi): Likewise.
25974 (vec_widen_umult_even_v8hi): Likewise.
25975 (vec_widen_smult_even_v8hi): Likewise.
25976 (vec_widen_umult_odd_v16qi): Likewise.
25977 (vec_widen_smult_odd_v16qi): Likewise.
25978 (vec_widen_umult_odd_v8hi): Likewise.
25979 (vec_widen_smult_odd_v8hi): Likewise.
25980 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
25981 vmuloub rather than call gen_vec_widen_umult_*.
25982 (vec_widen_umult_lo_v16qi): Likewise.
25983 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
25984 vmulosb rather than call gen_vec_widen_smult_*.
25985 (vec_widen_smult_lo_v16qi): Likewise.
25986 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
25987 rather than call gen_vec_widen_umult_*.
25988 (vec_widen_umult_lo_v8hi): Likewise.
25989 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
25990 rather than call gen_vec_widen_smult_*.
25991 (vec_widen_smult_lo_v8hi): Likewise.
25993 2014-01-15 Jeff Law <law@redhat.com>
25995 PR tree-optimization/59747
25996 * ree.c (find_and_remove_re): Properly handle case where a second
25997 eliminated extension requires widening a copy created for elimination
25998 of a prior extension.
25999 (combine_set_extension): Ensure that the number of hard regs needed
26000 for a destination register does not change when we widen it.
26002 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26004 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26005 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26006 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26007 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26008 (avr-*-rtems*): Likewise.
26009 (bfin*-rtems*): Likewise.
26010 (moxie-*-rtems*): Likewise.
26011 (h8300-*-rtems*): Likewise.
26012 (i[34567]86-*-rtems*): Likewise.
26013 (lm32-*-rtems*): Likewise.
26014 (m32r-*-rtems*): Likewise.
26015 (m68k-*-rtems*): Likewise.
26016 (microblaze*-*-rtems*): Likewise.
26017 (mips*-*-rtems*): Likewise.
26018 (powerpc-*-rtems*): Likewise.
26019 (sh-*-rtems*): Likewise.
26020 (sparc-*-rtems*): Likewise.
26021 (sparc64-*-rtems*): Likewise.
26022 (v850-*-rtems*): Likewise.
26023 (m32c-*-rtems*): Likewise.
26025 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26027 PR rtl-optimization/59511
26028 * ira.c (ira_init_register_move_cost): Use memory costs for some
26029 cases of register move cost calculations.
26030 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26031 instead of BB frequency.
26032 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26033 * lra-assigns.c (find_hard_regno_for): Ditto.
26035 2014-01-15 Richard Biener <rguenther@suse.de>
26037 PR tree-optimization/59822
26038 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26039 (vectorizable_load): Use it to hoist defs of uses of invariant
26040 loads out of the loop.
26042 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26043 Kugan Vivekanandarajah <kuganv@linaro.org>
26046 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26049 2014-01-15 Richard Biener <rguenther@suse.de>
26051 PR rtl-optimization/59802
26052 * lcm.c (compute_available): Use inverted postorder to seed
26053 the initial worklist.
26055 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26058 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26059 ADDR_REGS for invalid symrefs in non-PIC code.
26061 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26064 * builtins.c (determine_block_size): Initialize *probable_max_size
26065 even if len_rtx is CONST_INT.
26067 2014-01-14 Andrew Pinski <apinski@cavium.com>
26069 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26070 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26071 (cortexa53_tunings): Likewise.
26072 (aarch64_sched_issue_rate): New function.
26073 (TARGET_SCHED_ISSUE_RATE): Define.
26075 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26077 * ira-costs.c (find_costs_and_classes): Add missed
26078 ira_init_register_move_cost_if_necessary.
26080 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26083 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26085 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26088 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26089 to indicate if type is used for function return value. Warn ABI
26090 change if the vector mode isn't available for function return value.
26091 (ix86_function_arg_advance): Pass false to type_natural_mode.
26092 (ix86_function_arg): Likewise.
26093 (ix86_gimplify_va_arg): Likewise.
26094 (function_arg_32): Don't warn ABI change.
26095 (ix86_function_value): Pass true to type_natural_mode.
26096 (ix86_return_in_memory): Likewise.
26097 (ix86_struct_value_rtx): Removed.
26098 (TARGET_STRUCT_VALUE_RTX): Likewise.
26100 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26102 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26103 converting a conditional jump into a conditional return.
26105 2014-01-14 Richard Biener <rguenther@suse.de>
26107 PR tree-optimization/58921
26108 PR tree-optimization/59006
26109 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26110 hoisting invariant stmts.
26111 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26112 invariant loads on the preheader edge if possible.
26114 2014-01-14 Joey Ye <joey.ye@arm.com>
26116 * doc/plugin.texi (Building GCC plugins): Update to C++.
26118 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26120 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26121 (_mm_rcp28_round_ss): Ditto.
26122 (_mm_rsqrt28_round_sd): Ditto.
26123 (_mm_rsqrt28_round_ss): Ditto.
26124 (_mm_rcp28_sd): Ditto.
26125 (_mm_rcp28_ss): Ditto.
26126 (_mm_rsqrt28_sd): Ditto.
26127 (_mm_rsqrt28_ss): Ditto.
26128 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26129 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26130 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26131 (IX86_BUILTIN_RCP28SD): Ditto.
26132 (IX86_BUILTIN_RCP28SS): Ditto.
26133 (IX86_BUILTIN_RSQRT28SD): Ditto.
26134 (IX86_BUILTIN_RSQRT28SS): Ditto.
26135 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26136 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26137 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26138 (ix86_expand_special_args_builtin): Expand new FTYPE.
26139 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26140 (srcp14<mode>): Make insn unary.
26141 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26142 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26143 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26144 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26145 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26146 Fix rounding: make it SAE only.
26147 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26149 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26151 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26152 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26153 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26154 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26155 (round_saeonly_mask_scalar_operand4): Ditto.
26156 (round_saeonly_mask_scalar_op3): Ditto.
26157 (round_saeonly_mask_scalar_op4): Ditto.
26159 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26161 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26162 Implement -maltivec=be for vec_insert and vec_extract.
26164 2014-01-10 DJ Delorie <dj@redhat.com>
26166 * config/msp430/msp430.md (call_internal): Don't allow memory
26167 references with SP as the base register.
26168 (call_value_internal): Likewise.
26169 * config/msp430/constraints.md (Yc): New. For memory references
26170 that don't use SP as a base register.
26172 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26173 "an integer without a # prefix"
26174 * config/msp430/msp430.md (epilogue_helper): Use it.
26176 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26179 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26180 AVX512F gather builtins.
26181 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26182 on gather decls with INTEGER_TYPE masktype.
26183 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26184 directly into the builtin rather than hoisting it before loop.
26186 PR tree-optimization/59387
26187 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26188 (scev_const_prop): If folded_casts and type has undefined overflow,
26189 use force_gimple_operand instead of force_gimple_operand_gsi and
26190 for each added stmt if it is assign with
26191 arith_code_with_undefined_signed_overflow, call
26192 rewrite_to_defined_overflow.
26193 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26194 gimple-fold.h instead.
26195 (arith_code_with_undefined_signed_overflow,
26196 rewrite_to_defined_overflow): Moved to ...
26197 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26198 rewrite_to_defined_overflow): ... here. No longer static.
26199 Include gimplify-me.h.
26200 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26201 rewrite_to_defined_overflow): New prototypes.
26203 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26205 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26207 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26209 * builtins.c (get_object_alignment_2): Minor tweak.
26210 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26212 2014-01-13 Christian Bruel <christian.bruel@st.com>
26214 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26215 optimized non constant lengths.
26217 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26220 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26221 load as __atomic_load_N if possible.
26223 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26225 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26227 (rs6000_expand_builtin): Adjust call.
26229 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26232 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26233 * config/rs6000/rs6000.c: Include target-globals.h.
26234 (rs6000_set_current_function): Instead of doing target_reinit
26235 unconditionally, use save_target_globals_default_opts and
26236 restore_target_globals.
26238 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26240 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26241 (rs6000_expand_builtin): Handle mffs and mtfsf.
26242 (rs6000_init_builtins): Define mffs and mtfsf.
26243 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26244 (rs6000_mffs): New pattern.
26245 (rs6000_mtfsf): New pattern.
26247 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26249 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26250 Start narrowing with START. Apply candidate-use pair
26251 and check overall cost in narrowing.
26252 (iv_ca_prune): Pass new argument.
26254 2014-01-10 Jeff Law <law@redhat.com>
26256 PR middle-end/59743
26257 * ree.c (combine_reaching_defs): Ensure the defining statement
26258 occurs before the extension when optimizing extensions with
26259 different source and destination hard registers.
26261 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26264 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26265 vtables into the type inheritance graph.
26267 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26269 PR rtl-optimization/59754
26270 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26271 modes in the REGNO != REGNO case.
26273 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26275 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26277 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26279 PR tree-optimization/59745
26280 * tree-predcom.c (tree_predictive_commoning_loop): Call
26281 free_affine_expand_cache if giving up because components is NULL.
26283 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26284 GC in payload of target_globals struct instead of allocating them on
26285 the heap and the larger structs separately using GC.
26286 * target-globals.h (struct target_globals): Make regs, hard_regs,
26287 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26288 of GTY((skip)) and change type to void *.
26289 (reset_target_globals): Cast loads from those fields to corresponding
26292 2014-01-10 Steve Ellcey <sellcey@mips.com>
26295 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26296 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26297 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26299 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26302 * aarch64-modes.def (CC_Zmode): New flags mode.
26303 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26304 represents an equality.
26305 (aarch64_get_condition_code): Handle CC_Zmode.
26306 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26308 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26310 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26311 extraction in good case.
26313 2014-01-10 Richard Biener <rguenther@suse.de>
26315 PR tree-optimization/59374
26316 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26317 checking after SLP discovery. Mark stmts not participating
26318 in any SLP instance properly.
26320 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26322 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26323 when handling a SET rtx.
26325 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26327 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26328 (cortex-a57): Likewise.
26329 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26331 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26333 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26334 non-iwmmxt builtins.
26336 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26340 * ipa-devirt.c record_target_from_binfo): Take as argument
26341 stack of binfos and lookup matching one for virtual inheritance.
26342 (possible_polymorphic_call_targets_1): Update.
26344 2014-01-10 Huacai Chen <chenhc@lemote.com>
26346 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26347 kernel strings for Loongson-2E/2F/3A.
26349 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26351 PR middle-end/59670
26352 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26353 is_gimple_call before calling gimple_call_internal_p.
26355 2014-01-09 Steve Ellcey <sellcey@mips.com>
26357 * Makefile.in (TREE_FLOW_H): Remove.
26358 (TREE_SSA_H): Add file names from tree-flow.h.
26359 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26360 * tree.h: Remove tree-flow.h reference.
26361 * hash-table.h: Remove tree-flow.h reference.
26362 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26363 reference with tree-ssa-loop.h.
26365 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26367 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26368 default element-order behavior for -maltivec.
26369 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26370 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26371 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26372 when targeting big endian, at least for now.
26373 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26375 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26377 PR middle-end/47735
26378 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26379 var satisfies use_register_for_decl, just take into account type
26380 alignment, rather than decl alignment.
26382 PR tree-optimization/59622
26383 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26384 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26385 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26386 Don't devirtualize for inplace at all. For targets.length () == 1,
26387 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26389 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26391 * config/i386/i386.md (cpu): Remove the unused btver1.
26393 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26395 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26397 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26400 * tree-core.h (struct target_globals): New forward declaration.
26401 (struct tree_target_option): Add globals field.
26402 * tree.h (TREE_TARGET_GLOBALS): Define.
26403 (prepare_target_option_nodes_for_pch): New prototype.
26404 * target-globals.h (struct target_globals): Define even if
26405 !SWITCHABLE_TARGET.
26406 * tree.c (prepare_target_option_node_for_pch,
26407 prepare_target_option_nodes_for_pch): New functions.
26408 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26409 * config/i386/i386.c: Include target-globals.h.
26410 (ix86_set_current_function): Instead of doing target_reinit
26411 unconditionally, use save_target_globals_default_opts and
26412 restore_target_globals.
26414 2014-01-09 Richard Biener <rguenther@suse.de>
26416 PR tree-optimization/59715
26417 * tree-cfg.h (split_critical_edges): Declare.
26418 * tree-cfg.c (split_critical_edges): Export.
26419 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26421 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26423 * cfgexpand.c (expand_stack_vars): Optionally disable
26424 asan stack protection.
26425 (expand_used_vars): Likewise.
26426 (partition_stack_vars): Likewise.
26427 * asan.c (asan_emit_stack_protection): Optionally disable
26428 after return stack usage.
26429 (instrument_derefs): Optionally disable memory access instrumentation.
26430 (instrument_builtin_call): Likewise.
26431 (instrument_strlen_call): Likewise.
26432 (asan_protect_global): Optionally disable global variables protection.
26433 * doc/invoke.texi: Added doc for new options.
26434 * params.def: Added new options.
26435 * params.h: Likewise.
26437 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26439 PR rtl-optimization/59724
26440 * ifcvt.c (cond_exec_process_if_block): Don't call
26441 flow_find_head_matching_sequence with 0 longest_match.
26442 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26443 non-active insns if !stop_after.
26444 (try_head_merge_bb): Revert 2014-01-07 changes.
26446 2014-01-08 Jeff Law <law@redhat.com>
26448 * ree.c (get_sub_rtx): New function, extracted from...
26449 (merge_def_and_ext): Here.
26450 (combine_reaching_defs): Use get_sub_rtx.
26452 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26454 * cgraph.h (varpool_variable_node): Do not choke on null node.
26456 2014-01-08 Catherine Moore <clm@codesourcery.com>
26458 * config/mips/mips.md (simple_return): Attempt to use JRC
26460 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26462 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26464 PR rtl-optimization/59137
26465 * reorg.c (steal_delay_list_from_target): Call update_block for
26467 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26469 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26471 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26472 two duplicate entries.
26474 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26477 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26479 * config/mips/mips.c (mips_truncated_op_cost): New function.
26480 (mips_rtx_costs): Adjust test for BADDU.
26481 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26483 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26485 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26486 (*baddu_si): ...this new pattern.
26488 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26491 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26493 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26495 PR middle-end/57748
26496 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26498 (expand_expr, expand_normal): Adjust.
26499 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26500 inner_reference_p. Use inner_reference_p to expand inner references.
26501 (store_expr): Adjust.
26502 * cfgexpand.c (expand_call_stmt): Adjust.
26504 2014-01-08 Rong Xu <xur@google.com>
26506 * gcov-io.c (gcov_var): Move from gcov-io.h.
26507 (gcov_position): Ditto.
26508 (gcov_is_error): Ditto.
26509 (gcov_rewrite): Ditto.
26510 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26511 only part to libgcc/libgcov.h.
26513 2014-01-08 Marek Polacek <polacek@redhat.com>
26515 PR middle-end/59669
26516 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26518 2014-01-08 Marek Polacek <polacek@redhat.com>
26521 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26523 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26525 PR rtl-optimization/59649
26526 * stor-layout.c (get_mode_bounds): For BImode return
26527 0 and STORE_FLAG_VALUE.
26529 2014-01-08 Richard Biener <rguenther@suse.de>
26531 PR middle-end/59630
26532 * gimple.h (is_gimple_builtin_call): Remove.
26533 (gimple_builtin_call_types_compatible_p): New.
26534 (gimple_call_builtin_p): New overload.
26535 * gimple.c (is_gimple_builtin_call): Remove.
26536 (validate_call): Rename to ...
26537 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26538 check return types.
26539 (validate_type): New static function.
26540 (gimple_call_builtin_p): New overload and adjust.
26541 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26542 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26543 (gimple_fold_stmt_to_constant_1): Likewise.
26544 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26546 2014-01-08 Richard Biener <rguenther@suse.de>
26548 PR middle-end/59471
26549 * gimplify.c (gimplify_expr): Gimplify register-register type
26550 VIEW_CONVERT_EXPRs to separate stmts.
26552 2014-01-07 Jeff Law <law@redhat.com>
26554 PR middle-end/53623
26555 * ree.c (combine_set_extension): Handle case where source
26556 and destination registers in an extension insn are different.
26557 (combine_reaching_defs): Allow source and destination registers
26558 in extension to be different under limited circumstances.
26559 (add_removable_extension): Remove restriction that the
26560 source and destination registers in the extension are the same.
26561 (find_and_remove_re): Emit a copy from the extension's
26562 destination to its source after the defining insn if
26563 the source and destination registers are different.
26565 PR middle-end/59285
26566 * ifcvt.c (merge_if_block): If we are merging a block with more than
26567 one successor with a block with no successors, remove any BARRIER
26568 after the second block.
26570 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26572 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26574 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26577 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26578 for 14-bit register offsets when INT14_OK_STRICT is false.
26580 2014-01-07 Roland Stigge <stigge@antcom.de>
26581 Michael Meissner <meissner@linux.vnet.ibm.com>
26584 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26585 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26587 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26589 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26592 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26594 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26595 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26596 rtx is const0_rtx or not.
26598 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26601 * target-globals.c (save_target_globals): Remove this_fn_optab
26603 * toplev.c: Include optabs.h.
26604 (target_reinit): Temporarily restore the global options if another
26605 set of options are in force.
26607 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26609 PR rtl-optimization/58668
26610 * cfgcleanup.c (flow_find_cross_jump): Don't count
26611 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26612 to determine what is counted.
26613 (flow_find_head_matching_sequence): Use active_insn_p to determine
26615 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26617 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26618 determine what is counted.
26620 PR tree-optimization/59643
26621 * tree-predcom.c (split_data_refs_to_components): If one dr is
26622 read and one write, determine_offset fails and the write isn't
26623 in the bad component, just put the read into the bad component.
26625 2014-01-07 Mike Stump <mikestump@comcast.net>
26626 Jakub Jelinek <jakub@redhat.com>
26629 * tree-core.h (struct tree_optimization_option): Change optabs
26630 type from unsigned char * to void *.
26631 * optabs.c (init_tree_optimization_optabs): Adjust
26632 TREE_OPTIMIZATION_OPTABS initialization.
26634 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26637 * config/i386/i386.h (struct machine_function): Add
26638 no_drap_save_restore field.
26639 * config/i386/i386.c (ix86_save_reg): Use
26640 !cfun->machine->no_drap_save_restore instead of
26641 crtl->stack_realign_needed.
26642 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26643 this function clears frame_pointer_needed. Set
26644 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26645 and DRAP reg is needed.
26647 2014-01-06 Marek Polacek <polacek@redhat.com>
26650 * doc/implement-c.texi: Mention that other integer types are
26651 permitted as bit-field types in strictly conforming mode.
26653 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26655 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26656 is newly allocated.
26658 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26660 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26662 2014-01-06 Martin Jambor <mjambor@suse.cz>
26665 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26667 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26669 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26673 * var-tracking.c (add_stores): Preserve the value of the source even if
26674 we don't record the store.
26676 2014-01-06 Terry Guo <terry.guo@arm.com>
26678 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26680 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26683 * config/darwin.c (darwin_function_section): Adjust return values to
26684 correspond to optimisation changes made in r206070.
26686 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26688 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26689 from prefetch_block tune setting.
26690 (nocona_cost): Correct size of prefetch block to 64.
26692 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26694 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26695 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26696 used to save the static chain register in the computation of the offset
26697 from which the FP registers need to be restored.
26699 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26701 PR tree-optimization/59519
26702 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26703 ICE if get_current_def (current_new_name) is already non-NULL, as long
26704 as it is a phi result of some other phi in *new_exit_bb that has
26707 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26708 or vmovdqu* for misaligned_operand.
26709 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26710 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26711 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26712 aligned_mem for AVX512F masked aligned load and store builtins and for
26713 non-temporal moves.
26715 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26717 PR tree-optimization/59651
26718 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26719 Address range for negative step should be added by TYPE_SIZE_UNIT.
26721 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26723 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26724 overlapping registers also for registers other than the stack pointer.
26726 2014-01-03 Marek Polacek <polacek@redhat.com>
26729 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26732 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26735 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26738 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26739 (push splitter): Use <P:MODE_SIZE> instead of
26740 GET_MODE_SIZE (<P:MODE>mode).
26741 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26742 (mov -1, reg peephole2): Likewise.
26743 * config/i386/sse.md (*mov<mode>_internal,
26744 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26745 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26746 *<code><mode>3, *andnot<mode>3<mask_name>,
26747 <mask_codefor><code><mode>3<mask_name>): Likewise.
26748 * config/i386/subst.md (mask_mode512bit_condition,
26749 sd_mask_mode512bit_condition): Likewise.
26751 2014-01-02 Xinliang David Li <davidxl@google.com>
26753 PR tree-optimization/59303
26754 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26755 (dump_predicates): Better output format.
26756 (pred_equal_p): New function.
26757 (is_neq_relop_p): Ditto.
26758 (is_neq_zero_form_p): Ditto.
26759 (pred_expr_equal_p): Ditto.
26760 (pred_neg_p): Ditto.
26761 (simplify_pred): Ditto.
26762 (simplify_preds_2): Ditto.
26763 (simplify_preds_3): Ditto.
26764 (simplify_preds_4): Ditto.
26765 (simplify_preds): Ditto.
26766 (push_pred): Ditto.
26767 (push_to_worklist): Ditto.
26768 (get_pred_info_from_cmp): Ditto.
26769 (is_degenerated_phi): Ditto.
26770 (normalize_one_pred_1): Ditto.
26771 (normalize_one_pred): Ditto.
26772 (normalize_one_pred_chain): Ditto.
26773 (normalize_preds): Ditto.
26774 (normalize_cond_1): Remove function.
26775 (normalize_cond): Ditto.
26776 (is_gcond_subset_of): Ditto.
26777 (is_subset_of_any): Ditto.
26778 (is_or_set_subset_of): Ditto.
26779 (is_and_set_subset_of): Ditto.
26780 (is_norm_cond_subset_of): Ditto.
26781 (pred_chain_length_cmp): Ditto.
26782 (convert_control_dep_chain_into_preds): Type change.
26783 (find_predicates): Ditto.
26784 (find_def_preds): Ditto.
26785 (destroy_predicates_vecs): Ditto.
26786 (find_matching_predicates_in_rest_chains): Ditto.
26787 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26788 (is_pred_expr_subset): Ditto.
26789 (is_pred_chain_subset_of): Ditto.
26790 (is_included_in): Ditto.
26791 (is_superset_of): Ditto.
26793 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26795 Update copyright years.
26797 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26799 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26800 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26801 config/arc/arc.md, config/arc/arc.opt,
26802 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26803 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26804 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26805 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26806 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26807 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26808 vtable-verify.c, vtable-verify.h: Use the standard form for the
26811 2014-01-02 Tobias Burnus <burnus@net-b.de>
26813 * gcc.c (process_command): Update copyright notice dates.
26814 * gcov-dump.c: Ditto.
26816 * doc/cpp.texi: Bump @copying's copyright year.
26817 * doc/cppinternals.texi: Ditto.
26818 * doc/gcc.texi: Ditto.
26819 * doc/gccint.texi: Ditto.
26820 * doc/gcov.texi: Ditto.
26821 * doc/install.texi: Ditto.
26822 * doc/invoke.texi: Ditto.
26824 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26826 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26828 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26830 * config/i386/sse.md (*mov<mode>_internal): Guard
26831 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26833 PR rtl-optimization/59647
26834 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26835 new_rtx into UNSIGNED_FLOAT rtxes.
26837 Copyright (C) 2014 Free Software Foundation, Inc.
26839 Copying and distribution of this file, with or without modification,
26840 are permitted in any medium without royalty provided the copyright
26841 notice and this notice are preserved.