1 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3 * cse.c (change_cc_mode_args): Delete.
4 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
5 a function that examines each subrtx itself. Take the fields of
6 change_cc_mode_args as argument and return void.
7 (cse_change_cc_mode_insn): Update calls accordingly.
9 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
11 * cse.c (is_dead_reg): Change argument to const_rtx.
12 (dead_debug_insn_data): Delete.
13 (is_dead_debug_insn): Expand commentary. Turn from being a
14 for_each_rtx callback to being a function that examines
15 each subrtx itself. Take the fields of dead_debug_insn_data
17 (delete_trivially_dead_insns): Update call accordingly.
19 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
21 * cse.c (check_for_label_ref): Move earlier in file. Turn from
22 being a for_each_rtx callback to being a function that examines
24 (cse_extended_basic_block): Update call accordingly.
26 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
28 * cse.c (check_dependence_data): Delete.
29 (check_dependence): Change from being a for_each_rtx callback to being
30 a function that examines all subrtxes itself. Don't handle null rtxes.
31 (invalidate): Update call accordingly.
33 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
35 * cse.c: Include rtl-iter.h.
36 (approx_reg_cost_1): Delete.
37 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
38 Don't handle null rtxes.
40 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
42 * cfgcleanup.c: Include rtl-iter.h.
43 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
44 to being a function that examines each subrtx itself.
45 (thread_jump): Update accordingly.
47 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
49 * combine-stack-adj.c: Include rtl-iter.h.
50 (record_stack_refs_data): Delete.
51 (record_stack_refs): Turn from being a for_each_rtx callback
52 to being a function that examines each subrtx itself.
53 Take a pointer to the reflist. Invert sense of return value
54 so that true means success and false means failure. Don't
56 (combine_stack_adjustments_for_block): Update accordingly.
58 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
60 * combine.c (record_truncated_value): Turn from being a for_each_rtx
61 callback to a function that takes an rtx and returns a bool
62 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
65 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
67 * combine.c: Include rtl-iter.h.
68 (unmentioned_reg_p_1): Delete.
69 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
70 Don't handle null rtxes.
72 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
74 * calls.c: Include rtl-iter.h.
75 (internal_arg_pointer_based_exp_1): Delete.
76 (internal_arg_pointer_based_exp): Take a const_rtx.
77 Use FOR_EACH_SUBRTX to iterate over subrtxes.
79 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
81 * caller-save.c: Include rtl-iter.h.
82 (add_used_regs_1): Delete.
83 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
84 to iterate over subrtxes. Assert that any remaining pseudos
87 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
89 * bt-load.c: Include rtl-iter.h.
90 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
91 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
92 to iterate over subrtxes.
93 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
94 find_btr_use rather than btr_referenced_p.
96 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
98 * alias.c: Include rtl-iter.h.
99 (refs_newer_value_cb): Delete.
100 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
102 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
104 * rtl-iter.h: New file.
105 * rtlanal.c: Include it.
106 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
107 (generic_subrtx_iterator <T>::add_single_to_queue)
108 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
109 (generic_subrtx_iterator <T>::free_array): New functions.
110 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
111 (generic_subrtx_iterator <const_rtx_accessor>)
112 (generic_subrtx_iterator <rtx_var_accessor>
113 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
114 (setup_reg_subrtx_bounds): New function.
115 (init_rtlanal): Call it.
117 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
120 * config/sh/sh.md (ashlsi3): Handle negative shift count for
122 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
124 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
126 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
128 2014-08-27 David Malcolm <dmalcolm@redhat.com>
130 * rtl.h (JUMP_LABEL_AS_INSN): New.
132 2014-08-27 David Malcolm <dmalcolm@redhat.com>
134 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
136 (alloc_EXPR_LIST): Strengthen return type from rtx to
138 (remove_free_EXPR_LIST_node): Likewise for param.
139 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
140 from rtx to rtx_expr_list *.
141 * sched-int.h (struct deps_desc): Strengthen fields
142 "pending_read_mems" and "pending_write_mems" from rtx to
145 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
146 rtx to rtx_expr_list *.
147 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
148 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
150 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
151 from rtx to rtx_expr_list *.
152 * loop-iv.c (simplify_using_initial_values): Strengthen local
153 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
154 "pnote_next" from rtx * to rtx_expr_list **.
155 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
156 param "exprp" from rtx * to rtx_expr_list **.
157 (add_insn_mem_dependence): Strengthen local "mem_list" from
158 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
160 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
161 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
162 param "old_mems_p" from rtx * to rtx_expr_list **.
163 * var-tracking.c (struct adjust_mem_data): Strengthen field
164 "side_effects" from rtx to rtx_expr_list *.
165 (adjust_insn): Replace NULL_RTX with NULL when assigning to
167 (prepare_call_arguments): Likewise.
169 2014-08-27 David Malcolm <dmalcolm@redhat.com>
171 * function.h (struct rtl_data): Strengthen field
172 "x_stack_slot_list" from rtx to rtx_expr_list *.
174 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
175 when assigning to stack_slot_list.
177 2014-08-27 David Malcolm <dmalcolm@redhat.com>
179 * function.h (struct rtl_data): Strengthen field
180 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
181 * rtl.h (remove_node_from_expr_list): Strengthen second param from
182 rtx * to rtx_expr_list **.
184 * cfgbuild.c (make_edges): In loop over
185 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
186 rtx_expr_list *, and use methods of the latter class to clarify
188 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
189 rtx_expr_list *, and use methods of the latter class to clarify
191 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
192 * reload1.c (set_initial_label_offsets): Likewise for local "x".
193 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
194 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
195 to rtx_expr_list *. Use methods of the latter class to clarify
198 2014-08-27 David Malcolm <dmalcolm@redhat.com>
200 * function.h (struct expr_status): Strengthen field
201 "x_forced_labels" from rtx to rtx_expr_list *.
203 * cfgbuild.c (make_edges): Split local "x" into two locals,
204 strengthening one from rtx to rtx_expr_list *, and using methods
206 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
207 loop over forced_labels, introduce strengthen it from rtx to
208 rtx_expr_list *, using methods to clarify the code.
209 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
210 to rtx_expr_list *, using methods of said class to clarify the
212 * reload1.c (set_initial_label_offsets): Split local "x" into two
213 per-loop variables, strengthening the first from rtx to
214 rtx_expr_list * and using methods.
216 2014-08-27 David Malcolm <dmalcolm@redhat.com>
218 * coretypes.h (class rtx_expr_list): Add forward declaration.
219 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
220 * gengenrtl.c (special_rtx): Add EXPR_LIST.
221 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
222 invariant: GET_CODE (X) == EXPR_LIST.
223 (is_a_helper <rtx_expr_list *>::test): New.
224 (rtx_expr_list::next): New.
225 (rtx_expr_list::element): New.
226 (gen_rtx_EXPR_LIST): New.
228 2014-08-27 David Malcolm <dmalcolm@redhat.com>
230 * varasm.c (mark_constants): Convert a GET_CODE check into a
231 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
232 Use methods of rtx_sequence to clarify the code.
234 2014-08-27 David Malcolm <dmalcolm@redhat.com>
236 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
237 local "seq" via a checked cast, and use methods of rtx_sequence
238 to simplify the code.
240 2014-08-27 David Malcolm <dmalcolm@redhat.com>
242 * resource.c (mark_referenced_resources): Strengthen local
243 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
244 using methods of rtx_sequence to clarify the code.
245 (find_dead_or_set_registers): Within the switch statement, convert
246 a GET_CODE check to a dyn_cast, introducing local "seq". Within
247 the JUMP_P handling, introduce another local "seq", adding a
248 checked cast to rtx_sequence *. In both cases, use methods of
249 rtx_sequence to clarify the code.
250 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
251 via a checked cast, and use methods of rtx_sequence to simplify
254 2014-08-27 David Malcolm <dmalcolm@redhat.com>
256 * reorg.c (redundant_insn): In two places in the function, replace
257 a check of GET_CODE with a dyn_cast, introducing local "seq", and
258 usings methods of rtx_sequence to clarify the code.
260 2014-08-27 David Malcolm <dmalcolm@redhat.com>
262 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
263 local "seq" with a checked cast, and use methods of rtx_sequence
266 2014-08-27 David Malcolm <dmalcolm@redhat.com>
268 * function.c (contains): Introduce local "seq" for PATTERN (insn),
269 with a checked cast, in the region for where we know it's a
270 SEQUENCE. Use methods of rtx_sequence.
272 2014-08-27 David Malcolm <dmalcolm@redhat.com>
274 * final.c (get_attr_length_1): Replace GET_CODE check with a
275 dyn_cast, introducing local "seq" and the use of methods of
277 (shorten_branches): Likewise, introducing local "body_seq".
278 Strengthen local "inner_insn" from rtx to rtx_insn *.
279 (reemit_insn_block_notes): Replace GET_CODE check with a
280 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
281 Use methods of rtx_sequence.
282 (final_scan_insn): Likewise, introducing local "seq" for when
283 "body" is known to be a SEQUENCE, using its methods.
285 2014-08-27 David Malcolm <dmalcolm@redhat.com>
287 * except.c (can_throw_external): Strengthen local "seq" from rtx
288 to rtx_sequence *. Use methods of rtx_sequence.
289 (insn_nothrow_p): Likewise.
291 2014-08-27 David Malcolm <dmalcolm@redhat.com>
293 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
294 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
295 Use methods of rtx_sequence.
296 (scan_trace): Likewise for local "pat".
298 2014-08-27 David Malcolm <dmalcolm@redhat.com>
300 * coretypes.h (class rtx_sequence): Add forward declaration.
301 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
302 invariant: GET_CODE (X) == SEQUENCE.
303 (is_a_helper <rtx_sequence *>::test): New.
304 (is_a_helper <const rtx_sequence *>::test): New.
305 (rtx_sequence::len): New.
306 (rtx_sequence::element): New.
307 (rtx_sequence::insn): New.
309 2014-08-27 David Malcolm <dmalcolm@redhat.com>
311 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
313 (alloc_INSN_LIST): Strengthen return type from rtx to
315 (copy_INSN_LIST): Likewise for return type and param.
316 (concat_INSN_LIST): Likewise for both params and return type.
317 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
318 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
319 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
320 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
322 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
323 "implicit_sets", "control_uses", "clobbers" from rtx to
325 (struct deps_desc): Likewise for fields "pending_read_insns",
326 "pending_write_insns", "pending_jump_insns",
327 "last_pending_memory_flush", "last_function_call",
328 "last_function_call_may_noreturn", "sched_before_next_call",
329 "sched_before_next_jump".
330 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
331 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
333 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
334 from rtx to rtx_insn_list *.
335 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
338 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
340 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
342 (queue_insn): Likewise for local "link".
343 (struct haifa_saved_data): Strengthen field "insn_queue" from
344 rtx * to rtx_insn_list **.
345 (save_backtrack_point): Update allocation of save->insn_queue to
346 reflect the strengthening of elements from rtx to rtx_insn_list *.
347 (queue_to_ready): Strengthen local "link" from rtx to
348 rtx_insn_list *; use methods "next" and "insn" when traversing the
350 (early_queue_to_ready): Likewise for locals "link", "next_link",
352 (schedule_block): Update allocation of insn_queue to reflect the
353 strengthening of elements from rtx to rtx_insn_list *. Strengthen
354 local "link" from rtx to rtx_insn_list *, and use methods when
356 (add_to_speculative_block): Strengthen locals "twins" and
357 "next_node" from rtx to rtx_insn_list *, and use methods when
358 working with them. Strengthen local "twin" from rtx to
359 rtx_insn *, eliminating a checked cast.
360 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
361 from rtx to rtx_insn_list *, and use methods when working with
364 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
365 from rtx to rtx_insn_list *, adding a checked cast.
366 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
368 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
369 "newlink" from rtx to rtx_insn_list *. Strengthen local
370 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
371 from rtx to rtx_insn *.
372 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
373 from rtx to rtx_insn_list *. Use methods of the latter class.
374 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
375 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
376 (remove_free_INSN_LIST_node): Strengthen return type and local
377 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
378 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
379 rtx_insn_list *, using "insn" method.
381 * sched-deps.c (add_dependence_list): Strengthen param "list"
382 from rtx to rtx_insn_list *, and use methods when working with it.
383 (add_dependence_list_and_free): Strengthen param "listp" from
384 rtx * to rtx_insn_list **.
385 (remove_from_dependence_list): Strenghten param "listp" from rtx *
386 to rtx_insn_list **, and use methods when working with *listp.
387 (remove_from_both_dependence_lists): Strengthen param "listp" from
388 rtx * to rtx_insn_list **
389 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
390 to rtx_insn_list **. Eliminate local "link", in favor of two new
391 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
393 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
394 by introducing local "cond_deps".
395 (remove_from_deps): Strengthen param "insn" from rtx to
398 * sched-rgn.c (concat_insn_mem_list): Strengthen param
399 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
400 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
401 Use methods of rtx_insn_list.
403 * store-motion.c (struct st_expr): Strengthen fields
404 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
405 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
407 (find_moveable_store): Split out "tmp" into multiple more-tightly
408 scoped locals. Use methods of rtx_insn_list *.
409 (compute_store_table): Strengthen local "tmp" from rtx to
410 rtx_insn *. Use methods of rtx_insn_list *.
412 2014-08-27 David Malcolm <dmalcolm@redhat.com>
414 * coretypes.h (class rtx_insn_list): Add forward declaration.
415 * rtl.h (class rtx_insn_list): New subclass of rtx_def
416 (is_a_helper <rtx_insn_list *>::test): New.
417 (rtx_insn_list::next): New.
418 (rtx_insn_list::insn): New.
419 (gen_rtx_INSN_LIST): Add prototype.
420 * emit-rtl.c (gen_rtx_INSN_LIST): New.
421 * gengenrtl.c (special_rtx): Add INSN_LIST.
423 2014-08-27 David Malcolm <dmalcolm@redhat.com>
425 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
426 "prev" from rtx to rtx_insn *.
428 2014-08-27 David Malcolm <dmalcolm@redhat.com>
430 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
431 functions. Require merely an rtx for now, not an rtx_insn *.
432 (BLOCK_FOR_INSN): Likewise.
433 (INSN_LOCATION): Likewise.
434 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
436 2014-08-27 David Malcolm <dmalcolm@redhat.com>
438 * rtl.h (PATTERN): Convert this macro into a pair of inline
439 functions, for now, requiring const_rtx and rtx.
441 2014-08-27 David Malcolm <dmalcolm@redhat.com>
443 * target.def (unwind_emit): Strengthen param "insn" from rtx to
445 (final_postscan_insn): Likewise.
446 (adjust_cost): Likewise.
447 (adjust_priority): Likewise.
448 (variable_issue): Likewise.
449 (macro_fusion_pair_p): Likewise.
450 (dfa_post_cycle_insn): Likewise.
451 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
452 (first_cycle_multipass_issue): Likewise.
453 (dfa_new_cycle): Likewise.
454 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
455 (speculate_insn): Likewise for param "insn".
456 (gen_spec_check): Likewise for params "insn" and "label".
457 (get_insn_spec_ds): Likewise for param "insn".
458 (get_insn_checked_ds): Likewise.
459 (dispatch_do): Likewise.
460 (dispatch): Likewise.
461 (cannot_copy_insn_p): Likewise.
462 (invalid_within_doloop): Likewise.
463 (legitimate_combined_insn): Likewise.
467 * doc/tm.texi: Automatically updated to reflect changes to
470 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
472 (schedule_block): Likewise.
473 (sched_init): Likewise.
474 (sched_speculate_insn): Strengthen param "insn" from rtx to
476 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
478 * hooks.c (hook_bool_rtx_true): Rename to...
479 hook_bool_rtx_insn_true): ...this, and strengthen first param from
481 (hook_constcharptr_const_rtx_null): Rename to...
482 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
483 first param from const_rtx to const rtx_insn *.
484 (hook_bool_rtx_int_false): Rename to...
485 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
486 param from rtx to rtx_insn *.
487 (hook_void_rtx_int): Rename to...
488 (hook_void_rtx_insn_int): ...this, and strengthen first param from
491 * hooks.h (hook_bool_rtx_true): Rename to...
492 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
494 (hook_bool_rtx_int_false): Rename to...
495 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
496 param from rtx to rtx_insn *.
497 (hook_void_rtx_int): Rename to...
498 (hook_void_rtx_insn_int): ...this, and strengthen first param from
500 (hook_constcharptr_const_rtx_null): Rename to...
501 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
502 first param from const_rtx to const rtx_insn *.
504 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
505 and local "prev" from rtx to rtx_insn *.
507 * sched-int.h (sched_speculate_insn): Strengthen first param from
510 * sel-sched.c (create_speculation_check): Likewise for local "label".
511 * targhooks.c (default_invalid_within_doloop): Strengthen param
512 "insn" from const_rtx to const rtx_insn *.
513 * targhooks.h (default_invalid_within_doloop): Strengthen param
514 from const_rtx to const rtx_insn *.
516 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
517 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
519 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
521 (arc_invalid_within_doloop): Likewise, with const.
523 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
524 (arm_cannot_copy_insn_p): Likewise for param "insn".
525 (arm_unwind_emit): Likewise.
527 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
530 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
531 (c6x_variable_issue): Likewise. Removed now-redundant checked
533 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
535 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
536 Likewise for param "insn".
537 (epiphany_mode_after): Likewise.
538 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
539 params "insn", "dep_insn".
540 (epiphany_mode_needed): Likewise for param "insn".
541 (epiphany_mode_after): Likewise.
543 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
544 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
545 (ix86_avx_u128_mode_needed): Likewise.
546 (ix86_i387_mode_needed): Likewise.
547 (ix86_mode_needed): Likewise.
548 (ix86_avx_u128_mode_after): Likewise.
549 (ix86_mode_after): Likewise.
550 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
551 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
552 (ix86_adjust_priority): Likewise for param "insn".
553 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
554 (do_dispatch): Likewise.
555 (has_dispatch): Likewise.
556 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
558 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
559 reflect renaming of default hook implementation from
560 hook_constcharptr_const_rtx_null to
561 hook_constcharptr_const_rtx_insn_null.
562 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
564 (ia64_variable_issue): Likewise for param "insn".
565 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
566 (ia64_dfa_new_cycle): Likewise.
567 (ia64_get_insn_spec_ds): Likewise.
568 (ia64_get_insn_checked_ds): Likewise.
569 (ia64_speculate_insn): Likewise.
570 (ia64_gen_spec_check): Likewise for params "insn", "label".
571 (ia64_asm_unwind_emit): Likewise for param "insn".
573 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
575 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
577 (m68k_sched_variable_issue): Likewise for param "insn".
579 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
582 * config/microblaze/microblaze.c (microblaze_adjust_cost):
583 Likewise for params "insn", "dep".
585 * config/mips/mips.c (mips_adjust_cost): Likewise.
586 (mips_variable_issue): Likewise for param "insn".
587 (mips_final_postscan_insn): Likewise.
589 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
590 for params "insn", "dep".
592 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
594 (pa_adjust_priority): Likewise for param "insn".
596 * config/picochip/picochip.c (picochip_sched_adjust_cost):
597 Likewise for params "insn", "dep_insn".
599 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
601 (rs6000_variable_issue): Likewise.
602 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
603 (rs6000_debug_adjust_cost): Likewise.
604 (rs6000_adjust_priority): Likewise for param "insn".
605 (rs6000_use_sched_lookahead_guard): Likewise.
606 (get_next_active_insn): Likewise for return type and both params.
607 (redefine_groups): Likewise for params "prev_head_insn", "tail"
608 and locals "insn", "next_insn".
609 (pad_groups): Likewise.
611 * config/s390/s390.c (s390_adjust_priority): Likewise for param
613 (s390_cannot_copy_insn_p): Likewise.
614 (s390_sched_variable_issue): Likewise for third param, eliminating
616 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
617 default hook implementation from hook_constcharptr_const_rtx_null
618 to hook_constcharptr_const_rtx_insn_null.
620 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
621 from rtx to rtx_insn *.
622 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
623 (sh_variable_issue): Likewise for param "insn".
624 (sh_dfa_new_cycle): Likewise.
625 (sh_mode_needed): Likewise.
626 (sh_mode_after): Likewise.
628 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
629 params "insn", "dep_insn".
630 (hypersparc_adjust_cost): Likewise.
631 (sparc_adjust_cost): Likewise.
633 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
634 param, eliminated checked cast.
635 (spu_sched_adjust_cost): Likewise for first and third params.
637 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
638 params "insn" and "dep_insn" from rtx to rtx_insn *.
640 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
642 2014-08-27 David Malcolm <dmalcolm@redhat.com>
644 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
645 (set_is_load_p): ...this, updating to work on a SET pattern rather
647 (is_store_insn): Rename to...
648 (set_is_store_p): ...this, updating to work on a SET pattern
650 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
651 top of function to where it is needed. Rewrite the bogus
652 condition that checks for "insn" and "dep" being PARALLEL to
653 instead use single_set, introducing locals "insn_set" and
654 "dep_set". Given that we only ever returned "cost" for a non-pair
655 of SETs, bail out early if we don't have a pair of SET.
656 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
657 use the new locals "insn_set" and "dep_set", and update calls to
658 is_load_insn and is_store_insn to be calls to set_is_load_p and
661 2014-08-27 Guozhi Wei <carrot@google.com>
664 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
665 amount before using it.
667 2014-08-27 Richard Biener <rguenther@suse.de>
669 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
670 get_maxval_strlen inside a more useful API.
671 (gimple_fold_builtin_with_strlen): Remove and fold into ...
672 (gimple_fold_builtin): ... caller.
673 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
674 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
675 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
676 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
677 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
678 gimple_fold_builtin_sprintf): Adjust to compute maxval
681 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
684 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
686 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
687 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
688 Anna Tikhonova <anna.tikhonova@intel.com>
689 Ilya Tocar <ilya.tocar@intel.com>
690 Andrey Turetskiy <andrey.turetskiy@intel.com>
691 Ilya Verbin <ilya.verbin@intel.com>
692 Kirill Yukhin <kirill.yukhin@intel.com>
693 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
696 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
697 Use `concat_tg_mode' attribute to determine asm register size.
699 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
700 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
701 Anna Tikhonova <anna.tikhonova@intel.com>
702 Ilya Tocar <ilya.tocar@intel.com>
703 Andrey Turetskiy <andrey.turetskiy@intel.com>
704 Ilya Verbin <ilya.verbin@intel.com>
705 Kirill Yukhin <kirill.yukhin@intel.com>
706 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
709 (define_mode_iterator VI48_AVX512VL): New.
710 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
711 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
712 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
713 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
714 with VI1): Change mode iterator.
715 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
716 with VI_ULOADSTORE_BW_AVX512VL): New.
717 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
718 with VI_ULOADSTORE_F_AVX512VL): Ditto.
719 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
720 with VI1): Change mode iterator.
721 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
722 with VI_ULOADSTORE_BW_AVX512VL): New.
723 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
724 with VI_ULOADSTORE_F_AVX512VL): Ditto.
725 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
726 with VI1): Change mode iterator.
727 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
728 with VI_ULOADSTORE_BW_AVX512VL): New.
729 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
730 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
731 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
732 (define_insn "<avx512>_storedqu<mode>_mask" with
734 (define_insn "<avx512>_storedqu<mode>_mask" with
735 VI12_AVX512VL): Ditto.
737 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
739 Anna Tikhonova <anna.tikhonova@intel.com>
740 Ilya Tocar <ilya.tocar@intel.com>
741 Andrey Turetskiy <andrey.turetskiy@intel.com>
742 Ilya Verbin <ilya.verbin@intel.com>
743 Kirill Yukhin <kirill.yukhin@intel.com>
744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
747 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
748 (define_mode_iterator VI48_AVX512BW): New.
749 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
750 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
751 with VI48_AVX2_48_AVX512F): New.
752 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
753 with VI2_AVX512VL): Ditto.
755 2014-08-27 Richard Biener <rguenther@suse.de>
758 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
759 (fold_builtin_3): Do not fold strcat_chk here.
760 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
762 (gimple_fold_builtin): Fold strcat_chk here.
764 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
766 * dwarf2out.h (dwarf2out_decl): Remove prototype.
767 * dwarf2out.c (dwarf2out_decl): Make static.
769 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
771 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
773 2014-08-26 David Malcolm <dmalcolm@redhat.com>
775 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
776 from rtx to rtx_insn *.
777 (cselib_lookup_from_insn): Likewise for final param.
778 (cselib_subst_to_values_from_insn): Likewise.
779 (cselib_add_permanent_equiv): Likewise.
781 * cselib.c (cselib_current_insn): Likewise for this variable.
782 (cselib_subst_to_values_from_insn): Likewise for param "insn".
783 (cselib_lookup_from_insn): Likewise.
784 (cselib_add_permanent_equiv): Likewise for param "insn" and local
785 "save_cselib_current_insn".
786 (cselib_process_insn): Replace use of NULL_RTX with NULL.
788 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
789 from rtx to rtx_insn *.
791 2014-08-26 David Malcolm <dmalcolm@redhat.com>
793 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
796 2014-08-26 David Malcolm <dmalcolm@redhat.com>
798 * df.h (df_dump_insn_problem_function): Strengthen first param of
799 this callback from const_rtx to const rtx_insn *.
800 (struct df_insn_info): Strengthen field "insn" from rtx to
802 (DF_REF_INSN): Eliminate this function, reinstating the older
804 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
805 (df_reg_defined): Likewise.
806 (df_find_use): Likewise.
807 (df_reg_used): Likewise.
808 (df_dump_insn_top): Strengthen param 1 from const_rtx to
810 (df_dump_insn_bottom): Likewise.
811 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
812 (df_insn_debug_regno): Likewise.
813 (debug_df_insn): Likewise.
814 (df_rd_simulate_one_insn): Likewise for param 2.
815 (df_word_lr_simulate_defs): Likewise for param 1.
816 (df_word_lr_simulate_uses): Likewise.
817 (df_md_simulate_one_insn): Likewise for param 2.
818 (df_simulate_find_noclobber_defs): Likewise for param 1.
819 (df_simulate_find_defs): Likewise.
820 (df_simulate_defs): Likewise.
821 (df_simulate_uses): Likewise.
822 (df_simulate_one_insn_backwards): Likewise for param 2.
823 (df_simulate_one_insn_forwards): Likewise.
824 (df_uses_create): Likewise for param 2.
825 (df_insn_create_insn_record): Likewise for param 1.
826 (df_insn_delete): Likewise.
827 (df_insn_rescan): Likewise.
828 (df_insn_rescan_debug_internal): Likewise.
829 (df_insn_change_bb): Likewise.
830 (df_notes_rescan): Likewise.
831 * rtl.h (remove_death): Likewise for param 2.
832 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
834 * sched-int.h (reemit_notes): Strengthen param from rtx to
836 * valtrack.h (propagate_for_debug): Likewise for param 1.
838 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
839 local "tmp_rtx" from const_rtx to const rtx_insn *.
840 * combine.c (remove_death): Strengthen param "insn" from rtx to
842 (move_deaths): Likewise for local "where_dead".
843 * cse.c (delete_trivially_dead_insns): Introduce local
844 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
845 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
847 (df_reg_defined): Likewise.
848 (df_find_use): Likewise.
849 (df_reg_used): Likewise.
850 (df_dump_insn_problem_data): Strengthen param "insn" from
851 const_rtx to const rtx_insn *.
852 (df_dump_insn_top): Likewise.
853 (df_dump_insn_bottom): Likewise.
854 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
855 (df_insn_debug_regno): Likewise.
856 (debug_df_insn): Likewise.
857 (DF_REF_INSN): Delete.
858 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
859 from rtx to rtx_insn *.
860 (df_chain_insn_top_dump): Strengthen param "insn" from
861 const_rtx to const rtx_insn *.
862 (df_chain_insn_bottom_dump): Likewise.
863 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
865 (df_word_lr_simulate_uses): Likewise.
866 (df_print_note): Likewise.
867 (df_remove_dead_and_unused_notes): Likewise.
868 (df_set_unused_notes_for_mw): Likewise.
869 (df_set_dead_notes_for_mw): Likewise.
870 (df_create_unused_note): Likewise.
871 (df_simulate_find_defs): Likewise.
872 (df_simulate_find_uses): Likewise.
873 (df_simulate_find_noclobber_defs): Likewise.
874 (df_simulate_defs): Likewise.
875 (df_simulate_uses): Likewise.
876 (df_simulate_one_insn_backwards): Likewise.
877 (df_simulate_one_insn_forwards): Likewise.
878 (df_md_simulate_one_insn): Likewise.
879 * df-scan.c (df_uses_create): Likewise.
880 (df_insn_create_insn_record): Likewise.
881 (df_insn_delete): Likewise.
882 (df_insn_rescan): Likewise.
883 (df_insn_rescan_debug_internal): Likewise.
884 (df_insn_change_bb): Likewise.
885 (df_notes_rescan): Likewise.
886 (df_refs_add_to_chains): Likewise.
887 (df_insn_refs_verify): Likewise.
888 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
889 when invoking df_insn_delete.
890 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
891 (set_unique_reg_note): Add checked cast.
892 * final.c (cleanup_subreg_operands): Likewise.
893 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
894 "insn" from rtx to rtx_insn *.
895 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
896 "last" from rtx to rtx_insn *.
897 * ira-emit.c (change_regs_in_insn): New function.
898 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
899 Invoke change_regs_in_insn rather than change_regs.
900 * ira.c (update_equiv_regs): Strengthen locals "insn",
901 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
902 for_each_rtx_in_insn rather than for_each_rtx.
903 * recog.c (confirm_change_group): Add checked casts.
904 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
906 (peep2_fill_buffer): Add checked cast.
907 * rtlanal.c (remove_note): Likewise.
908 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
909 locals "next" "end" from rtx to rtx_insn *.
911 2014-08-26 David Malcolm <dmalcolm@redhat.com>
913 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
915 (struct reg_use_data): Likewise for field "insn".
916 (insn_cost): Likewise for param.
917 (real_insn_for_shadow): Likewise for return type and param.
918 (increase_insn_priority): Likewise for param 1.
919 (debug_dependencies): Likewise for both params.
921 * haifa-sched.c (insn_delay): Likewise for param "insn".
922 (real_insn_for_shadow): Likewise for return type and param "insn".
923 (update_insn_after_change): Likewise for param "insn".
924 (recompute_todo_spec): Likewise for param "next" and locals "pro",
926 (insn_cost): Likewise for param "insn".
927 (increase_insn_priority): Likewise.
928 (calculate_reg_deaths): Likewise.
929 (setup_insn_reg_pressure_info): Likewise.
930 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
931 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
932 (model_recompute): Likewise.
933 (must_restore_pattern_p): Likewise for param "next".
934 (model_excess_cost): Likewise for param "insn".
935 (queue_remove): Likewise.
936 (adjust_priority): Likewise for param "prev".
937 (update_register_pressure): Likewise for param "insn".
938 (setup_insn_max_reg_pressure): Likewise for local "insn".
939 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
940 (model_add_to_schedule): Likewise.
941 (model_reset_queue_indices): Likewise for local "insn".
942 (unschedule_insns_until): Strengthen local "recompute_vec" from
943 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
944 "con" from rtx to rtx_insn *.
945 (restore_last_backtrack_point): Likewise for both locals "x". Add
947 (estimate_insn_tick): Likewise for param "insn".
948 (commit_schedule): Likewise for params "prev_head", "tail" and
950 (verify_shadows): Likewise for locals "i1", "i2".
951 (dump_insn_stream): Likewise for params "head", "tail" and locals
953 (schedule_block): Likewise for locals "insn", "x". Add a checked
955 (fix_inter_tick): Likewise for params "head", "tail".
956 (create_check_block_twin): Likewise for local "jump".
957 (haifa_change_pattern): Likewise for param "insn".
958 (haifa_speculate_insn): Likewise.
959 (dump_new_block_header): Likewise for params "head", "tail".
960 (fix_jump_move): Likewise for param "jump".
961 (move_block_after_check): Likewise.
962 (sched_init_insn_luid): Likewise for param "insn".
963 (sched_init_luids): Likewise for local "insn".
964 (insn_luid): Likewise for param "insn".
965 (init_h_i_d): Likewise.
966 (haifa_init_h_i_d): Likewise for local "insn".
967 (haifa_init_insn): Likewise for param "insn".
968 * sched-deps.c (add_dependence): Likewise for local "real_pro",
970 (create_insn_reg_use): Likewise for param "insn".
971 (setup_insn_reg_uses): Likewise. Add a checked cast.
972 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
973 "tail" from rtx to rtx_insn *.
974 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
977 2014-08-26 David Malcolm <dmalcolm@redhat.com>
979 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
980 from rtx to rtx_insn *.
981 (model_add_to_schedule): Likewise for locals "start", "end",
984 2014-08-26 David Malcolm <dmalcolm@redhat.com>
986 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
988 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
989 "to" and locals "insn", "next", "copy". Remove now-redundant
992 2014-08-26 David Malcolm <dmalcolm@redhat.com>
994 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
995 rtx_insn * and param 4 from rtx * to rtx_insn **.
996 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
997 param 2 from rtx * to rtx_insn **.
999 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
1000 rtx_insn * and final param from rtx * to rtx_insn **.
1002 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
1003 from rtx to rtx_insn *.
1004 (try_head_merge_bb): Likewise for both locals named "move_upto".
1005 * df-problems.c (can_move_insns_across): Likewise for params
1006 "from", "to", "across_from", "across_to" and locals "insn",
1007 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
1009 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
1010 from rtx to rtx_insn *.
1011 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
1012 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1013 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
1015 (noce_try_abs): Likewise.
1016 (noce_get_condition): Likewise for param "jump". Strengthen param
1017 "earliest" from rtx * to rtx_insn **.
1018 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
1020 (find_cond_trap): Likewise.
1021 (dead_or_predicable): Likewise for local "earliest".
1022 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
1024 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
1025 and local "prev". Strengthen param "earliest" from rtx * to
1027 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
1028 Strengthen param "earliest" from rtx * to rtx_insn **.
1030 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1032 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
1033 "to" and local "insn" from rtx to rtx_insn *.
1035 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1037 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
1038 from rtx to rtx_insn *.
1039 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
1040 (code_motion_path_driver): Likewise for local "last_insn".
1041 (simplify_changed_insns): Likewise for local "insn".
1043 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1045 * rtl.h (push_to_sequence): Strengthen param from rtx to
1047 (push_to_sequence2): Likewise for both params.
1048 (delete_insns_since): Likewise for param.
1049 (reorder_insns_nobb): Likewise for all three params.
1050 (set_new_first_and_last_insn): Likewise for both params.
1052 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
1053 rtx_insn *. Remove now-redundant cast.
1054 (set_last_insn): Likewise.
1056 * builtins.c (expand_builtin_return): Strengthen local
1057 "call_fusage" from rtx to rtx_insn *.
1058 * cfgrtl.c (create_basic_block_structure): Likewise for local
1060 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
1061 "first", "last" and local "insn".
1062 (delete_insns_since): Likewise for param "from".
1063 (reorder_insns_nobb): Likewise for params "from", "to", "after"
1065 (push_to_sequence): Likewise for param "first" and local "last".
1066 (push_to_sequence2): Likewise for params "first" and "last".
1067 * lra.c (emit_add3_insn): Likewise for local "last".
1068 (lra_emit_add): Likewise.
1069 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
1071 (process_address_1): Likewise for locals "insn", last".
1072 * modulo-sched.c (ps_first_note): Likewise for return type.
1073 * optabs.c (expand_binop_directly): Likewise for param "last".
1075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1077 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
1079 * emit-rtl.c (get_last_insn_anywhere): Likewise.
1081 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1083 * function.h (struct sequence_stack): Strengthen fields "first"
1084 and "last" from rtx to rtx_insn *.
1085 (struct emit_status): Likewise for fields "x_first_insn" and
1088 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
1089 (set_first_insn): Add checked cast.
1090 (get_last_insn): Remove now-redundant checked cast.
1091 (set_last_insn): Add checked cast.
1093 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
1094 "saved_first" and "saved_last" from rtx to rtx_insn *.
1096 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1098 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
1099 (unlink_insn_chain): Strengthen both params from rtx to
1102 * cfgrtl.c (cfg_layout_function_header): Likewise for this
1104 (unlink_insn_chain): Likewise for params "first" and "last".
1105 Remove now-redundant checked cast.
1106 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
1107 (fixup_reorder_chain): Strengthen local "insn" from rtx to
1109 * emit-rtl.c (link_insn_into_chain): Likewise for all three
1111 (add_insn): Likewise for param "insn" and local "prev".
1112 (add_insn_after_nobb): Likewise for both params and local "next".
1113 (add_insn_before_nobb): Likewise for both params and local "prev".
1114 (add_insn_after): Rename param "after" to "uncast_after",
1115 introducing local "after" with another checked cast.
1116 (add_insn_before): Rename params "insn" and "before", giving them
1117 "uncast_" prefixes, adding the old names back using checked casts.
1118 (emit_note_after): Likewise for param "after".
1119 (emit_note_before): Likewise for param "before".
1120 (emit_label): Add a checked cast.
1122 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1124 * cselib.h (cselib_record_sets_hook): Strengthen initial param
1125 "insn" from rtx to rtx_insn *.
1127 * cselib.c (cselib_record_sets_hook): Likewise.
1129 * var-tracking.c (add_with_sets): Likewise, renaming back from
1130 "uncast_insn" to "insn" and eliminating the checked cast from rtx
1133 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1135 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
1136 and "header_" from rtx to rtx_insn *.
1137 (struct basic_block_d): Likewise for field "head_" within "x"
1138 field of union basic_block_il_dependent.
1139 (BB_HEAD): Drop function...
1140 (SET_BB_HEAD): ...and this function in favor of...
1141 (BB_HEAD): ...reinstate macro.
1142 (BB_END): Drop function...
1143 (SET_BB_END): ...and this function in favor of...
1144 (BB_END): ...reinstate macro.
1145 (BB_HEADER): Drop function...
1146 (SET_BB_HEADER): ...and this function in favor of...
1147 (BB_HEADER): ...reinstate macro.
1149 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
1150 (fix_crossing_unconditional_branches): Likewise.
1151 * caller-save.c (save_call_clobbered_regs): Likewise.
1152 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
1153 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
1154 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
1155 (merge_blocks_move_successor_nojumps): Likewise.
1156 (outgoing_edges_match): Update use of for_each_rtx to
1157 for_each_rtx_in_insn.
1158 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
1159 (expand_gimple_cond): Likewise.
1160 (expand_gimple_tailcall): Likewise.
1161 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
1163 (construct_exit_block): Drop use of SET_BB_END.
1164 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
1166 (delete_insn): Rename param "insn" to "uncast_insn", introducing
1167 a new local "insn" with a checked cast to rtx_insn *. Drop use of
1168 SET_BB_HEAD and SET_BB_END.
1169 (create_basic_block_structure): Drop use of SET_BB_HEAD and
1171 (rtl_delete_block): Drop use of SET_BB_HEAD.
1172 (rtl_split_block): Drop use of SET_BB_END.
1173 (emit_nop_for_unique_locus_between): Likewise.
1174 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
1175 (block_label): Drop use of SET_BB_HEAD.
1176 (fixup_abnormal_edges): Drop use of SET_BB_END.
1177 (record_effective_endpoints): Drop use of SET_BB_HEADER.
1178 (relink_block_chain): Likewise.
1179 (fixup_reorder_chain): Drop use of SET_BB_END.
1180 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
1181 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
1182 rtx_insn **. Drop use of SET_BB_HEADER.
1183 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
1185 (BB_HEAD): Delete this function.
1186 (SET_BB_HEAD): Likewise.
1188 (SET_BB_END): Likewise.
1189 (BB_HEADER): Likewise.
1190 (SET_BB_HEADER): Likewise.
1191 * emit-rtl.c (add_insn_after): Rename param "insn" to
1192 "uncast_insn", adding a new local "insn" and a checked cast to
1193 rtx_insn *. Drop use of SET_BB_END.
1194 (remove_insn): Strengthen locals "next" and "prev" from rtx to
1195 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
1196 (reorder_insns): Drop use of SET_BB_END.
1197 (emit_insn_after_1): Strengthen param "first" and locals "last",
1198 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
1199 (emit_pattern_after_noloc): Add checked cast.
1200 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
1201 (restore_other_notes): Likewise.
1202 (move_insn): Likewise.
1203 (sched_extend_bb): Likewise.
1204 (fix_jump_move): Likewise.
1205 * ifcvt.c (noce_process_if_block): Likewise.
1206 (dead_or_predicable): Likewise.
1207 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
1208 * reg-stack.c (change_stack): Drop use of SET_BB_END.
1209 * sel-sched-ir.c (sel_move_insn): Likewise.
1210 * sel-sched.c (move_nop_to_previous_block): Likewise.
1212 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
1214 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
1216 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1218 * basic-block.h (create_basic_block_structure): Strengthen params
1219 1 "head" and 2 "end" from rtx to rtx_insn *.
1220 * cfgrtl.c (create_basic_block_structure): Likewise.
1221 (rtl_create_basic_block): Update casts from void * to rtx to
1222 rtx_insn *, so that we can pass them as rtx_insn * to
1223 create_basic_block_structure.
1224 * sel-sched-ir.c (sel_create_basic_block): Likewise.
1226 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1228 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
1230 (check_for_inc_dec): Strengthen param "insn" from rtx to
1233 * cselib.h (cselib_process_insn): Likewise.
1235 * cselib.c (cselib_record_sets): Likewise.
1236 (cselib_process_insn): Likewise.
1238 * dse.c (struct insn_info): Likewise for field "insn".
1239 (check_for_inc_dec_1): Likewise for local "insn".
1240 (check_for_inc_dec): Likewise for param "insn".
1241 (scan_insn): Likewise.
1242 (dse_step1): Likewise for local "insn".
1244 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
1245 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
1247 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1249 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
1250 from rtx to rtx_insn *.
1251 (DEP_PRO): Delete this function and...
1252 (SET_DEP_PRO): ...this function in favor of...
1253 (DEP_PRO): ...reinstate this macro.
1254 (DEP_CON): Delete this function and...
1255 (SET_DEP_CON): ...this function in favor of...
1256 (DEP_CON): ...reinstate this old macro.
1257 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
1258 (init_dep): Likewise.
1259 (set_priorities): Likewise for both params.
1260 (sd_copy_back_deps): Likewise for params 1 and 2.
1262 * haifa-sched.c (priority): Likewise for param "insn" and local
1264 (set_priorities): Likewise for params "head" and "tail" and local
1266 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
1268 (add_to_speculative_block): Add a checked cast.
1269 (create_check_block_twin): Drop use of SET_DEP_CON.
1270 (add_jump_dependencies): Strengthen params "insn" and "jump" from
1273 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
1274 Drop use of SET_DEP_PRO
1275 (init_dep): Strengthen params "pro" and "con" from rtx to
1277 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
1281 (SET_DEP_PRO): Delete.
1282 (SET_DEP_CON): Delete.
1284 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1286 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
1287 from rtx to rtx_insn *.
1288 (VINSN_INSN_RTX): Eliminate rvalue function and...
1289 (SET_VINSN_INSN): ...lvalue function in favor of...
1290 (VINSN_INSN_RTX): reinstate this old macro.
1292 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
1293 in favor of VINSN_INSN_RTX.
1294 (VINSN_INSN_RTX): Delete this function.
1295 (SET_VINSN_INSN_RTX): Likewise.
1297 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1299 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
1300 (BND_TO): Delete this function and...
1301 (SET_BND_TO): ...this functions in favor of...
1302 (BND_TO): ...reinstating this macro.
1303 (struct _fence): Strengthen field "executing_insns" from
1304 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
1305 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
1306 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
1307 and param "insn" from rtx to insn_t.
1308 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
1311 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
1313 (rtx_vec_t): Likewise.
1314 (struct sched_deps_info_def): Strengthen param of "start_insn"
1315 callback from rtx to rtx_insn *. Likewise for param "insn2" of
1316 "note_mem_dep" callback and first param of "note_dep" callback.
1318 * haifa-sched.c (add_to_speculative_block): Strengthen param
1319 "insn" from rtx to rtx_insn *.
1320 (clear_priorities): Likewise.
1321 (calc_priorities): Likewise for local "insn".
1323 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
1324 Remove redundant checked cast.
1325 (haifa_note_mem_dep): Likewise for param "pending_insn".
1326 (haifa_note_dep): Likewise for param "elem".
1327 (note_mem_dep): Likewise for param "e".
1328 (sched_analyze_1): Add checked casts.
1329 (sched_analyze_2): Likewise.
1331 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
1332 from rtx to rtx_insn *.
1333 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
1334 from vec<rtx> * to vec<rtx_insn *> *.
1336 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
1338 (flist_add): Strengthen param "executing_insns" from
1339 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1340 (advance_deps_context): Remove now-redundant checked cast.
1341 (init_fences): Replace uses of NULL_RTX with NULL.
1342 (merge_fences): Strengthen params "last_scheduled_insn" and
1343 "sched_next" from rtx to rtx_insn * and "executing_insns" from
1344 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
1345 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
1346 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
1347 an instruction, rather than doing double-duty as a pattern.
1348 (return_nop_to_pool): Update for change of insn_t.
1349 (deps_init_id): Remove now-redundant checked cast.
1350 (struct sched_scan_info_def): Strengthen param of "init_insn"
1351 callback from rtx to insn_t.
1352 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
1353 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
1355 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
1356 "end" from rtx to rtx_insn *.
1357 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
1358 (rtx insn_rtx, bool force_unique_p)
1359 (BND_TO): Delete function.
1360 (SET_BND_TO): Delete function.
1362 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
1364 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
1365 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
1367 (undo_transformations): Likewise for param "insn".
1368 (update_liveness_on_insn): Likewise.
1369 (compute_live_below_insn): Likewise for param "insn" and local
1371 (update_data_sets): Likewise for param "insn".
1372 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
1373 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
1374 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
1376 (move_cond_jump): Likewise for param "insn".
1377 (move_cond_jump): Drop use of SET_BND_TO.
1378 (compute_av_set_on_boundaries): Likewise.
1379 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
1380 (update_and_record_unavailable_insns): Strengthen local "bb_end"
1381 from rtx to rtx_insn *.
1382 (maybe_emit_renaming_copy): Likewise for param "insn".
1383 (maybe_emit_speculative_check): Likewise.
1384 (handle_emitting_transformations): Likewise.
1385 (remove_insn_from_stream): Likewise.
1386 (code_motion_process_successors): Strengthen local "succ" from rtx
1389 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1391 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
1392 ilist_t, not _xlist_t;
1393 (ILIST_INSN): Define in terms of new union field "insn".
1394 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
1396 (struct _list_node): Add new field "insn" to the union, of type
1398 (ilist_add): Replace macro with an inline function, requiring an
1400 (ilist_remove): Define this macro directly in terms of
1401 _list_remove, rather than indirectly via _xlist_remove.
1402 (ilist_clear): Likewise, in terms of _list_clear rather than
1404 (ilist_is_in_p): Replace macro with an inline function, requiring
1406 (_list_iter_cond_insn): New function.
1407 (ilist_iter_remove): Define this macro directly in terms of
1408 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
1409 (ilist_iterator): Define directly in terms of _list_iterator
1410 rather than indirectly through _xlist_iterator.
1411 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
1412 than in terms of _FOR_EACH_X.
1413 (FOR_EACH_INSN_1): Likewise.
1415 2014-08-26 Joseph Myers <joseph@codesourcery.com>
1419 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
1420 DECL_HARD_REGISTER and return for invalid register specifications.
1421 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
1422 DECL_HARD_REGISTER, call expand_one_error_var.
1423 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
1424 CC_REGNUM with non-MODE_CC modes.
1425 (arm_regno_class): Return NO_REGS for PC_REGNUM.
1427 2014-08-26 Marek Polacek <polacek@redhat.com>
1430 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
1432 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
1434 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
1435 qi cost; add di cost.
1436 (cortexa57_addrcost_table): Likewise.
1438 2014-08-26 Marek Polacek <polacek@redhat.com>
1441 * expr.c (is_aligning_offset): Remove logical not.
1443 2014-08-26 Marek Polacek <polacek@redhat.com>
1446 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
1447 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
1449 2014-08-26 Richard Biener <rguenther@suse.de>
1451 PR tree-optimization/62175
1452 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1453 expand possibly trapping operations.
1455 2014-08-26 David Malcolm <dmalcolm@redhat.com>
1457 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
1458 "insn" from rtx to rtx_insn *.
1459 (permute_load): Likewise for param "insn".
1460 (permute_store): Likewise.
1461 (handle_special_swappables): Likewise for local "insn".
1462 (replace_swap_with_copy): Likewise for locals "insn" and
1464 (rs6000_analyze_swaps): Likewise for local "insn".
1466 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1468 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
1471 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1473 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
1474 "note_list" from rtx to rtx_insn *.
1475 (BB_NOTE_LIST): Replace this function and...
1476 (SET_BB_NOTE_LIST): ...this function with...
1477 (BB_NOTE_LIST): ...the former macro implementation.
1479 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
1480 local "from_start" from rtx to rtx_insn *. Strengthen param
1481 "to_endp" from rtx * to rtx_insn **.
1483 * haifa-sched.c (concat_note_lists): Likewise.
1484 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
1486 (sel_restore_notes): Likewise.
1487 (move_bb_info): Likewise.
1488 (BB_NOTE_LIST): Delete this function.
1489 (SET_BB_NOTE_LIST): Delete this function.
1490 * sel-sched.c (create_block_for_bookkeeping): Eliminate
1491 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
1493 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1495 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
1496 from rtx * to rtx_insn **.
1497 (reorder2): Likewise.
1498 (dependencies_evaluation_hook): Strengthen params "head", "tail"
1499 from rtx to rtx_insn *.
1501 * doc/tm.texi: Update mechanically for above change to target.def.
1503 * sched-int.h (note_list): Strengthen this variable from rtx to
1505 (remove_notes): Likewise for both params.
1506 (restore_other_notes): Likewise for return type and first param.
1507 (struct ready_list): Strengthen field "vec" from rtx * to
1509 (struct dep_replacement): Strenghten field "insn" from rtx to
1511 (struct deps_desc): Likewise for fields "last_debug_insn",
1513 (struct haifa_sched_info): Likewise for callback field
1514 "can_schedule_ready_p"'s param, for first param of "new_ready"
1515 callback field, for both params of "rank" callback field, for
1516 first field of "print_insn" callback field (with a const), for
1517 both params of "contributes_to_priority" callback, for param
1518 of "insn_finishes_block_p" callback, for fields "prev_head",
1519 "next_tail", "head", "tail", for first param of "add_remove_insn"
1520 callback, for first param of "begin_schedule_ready" callback, for
1521 both params of "begin_move_insn" callback, and for second param
1522 of "advance_target_bb" callback.
1523 (add_dependence): Likewise for params 1 and 2.
1524 (sched_analyze): Likewise for params 2 and 3.
1525 (deps_analyze_insn): Likewise for param 2.
1526 (ready_element): Likewise for return type.
1527 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1528 (try_ready): Strenghten param from rtx to rtx_insn *.
1529 (sched_emit_insn): Likewise for return type.
1530 (record_delay_slot_pair): Likewise for params 1 and 2.
1531 (add_delay_dependencies): Likewise for param.
1532 (contributes_to_priority): Likewise for both params.
1533 (find_modifiable_mems): Likewise.
1535 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
1536 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
1537 "first_older_only_insn" from rtx to rtx_insn *.
1538 (arm_sched_reorder): Strengthen param "ready" from rtx * to
1541 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
1542 "last_scheduled_iter0" from rtx to rtx_insn *.
1543 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
1544 (c6x_sched_reorder_1): Strengthen param "ready" and locals
1545 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1546 "insn" from rtx to rtx_insn *.
1547 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
1549 (c6x_sched_reorder2): Strengthen param "ready" and locals
1550 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
1551 "insn" from rtx to rtx_insn *.
1552 (c6x_variable_issue): Add a checked cast when assigning from insn
1553 to ss.last_scheduled_iter0.
1554 (split_delayed_branch): Strengthen param "insn" and local "i1"
1555 from rtx to rtx_insn *.
1556 (split_delayed_nonbranch): Likewise.
1557 (undo_split_delayed_nonbranch): Likewise for local "insn".
1558 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
1559 "entry_after", "end_packet", "head_insn", "tail_insn",
1560 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
1561 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
1562 to rtx_insn **. Remove now-redundant checked cast on last_insn,
1563 but add a checked cast on loop->start_label. Consolidate calls to
1564 avoid assigning result of gen_spkernel to "insn", now an
1567 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
1568 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
1570 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
1571 rtx_insn **. Strengthen locals "top", "next" from rtx to
1573 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
1574 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
1575 (add_parameter_dependencies): Strengthen params "call", "head" and
1576 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
1577 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
1578 (add_dependee_for_func_arg): Likewise for param "arg" and local
1580 (ix86_dependencies_evaluation_hook): Likewise for params "head",
1581 "tail" and locals "insn", "first_arg".
1583 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
1584 for params "head", "tail" and locals "insn", "next", "next_tail".
1585 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
1586 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
1587 "insn", "lowest", "highest" from rtx to rtx_insn *.
1588 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
1590 (ia64_sched_reorder2): Likewise.
1592 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
1593 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
1594 from rtx * to rtx_insn **.
1595 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
1597 (mep_print_sched_insn): Strengthen param "insn" from rtx to
1599 (mep_sched_reorder): Strengthen param "ready" from rtx * to
1600 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
1603 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
1604 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
1606 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
1607 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
1608 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
1610 (vr4130_reorder): Likewise.
1611 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
1613 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
1615 (mips_sched_reorder): Likewise.
1616 (mips_sched_reorder2): Likewise.
1618 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
1620 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
1621 Strengthen local "tmp" from rtx to rtx_insn *.
1622 (rs6000_sched_reorder2): Likewise.
1624 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
1625 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
1626 (s390_sched_reorder): Strengthen param "ready" from rtx * to
1627 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
1629 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
1630 "tmp2" from rtx to rtx_insn *.
1631 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
1632 Strengthen local "insn" from rtx to rtx_insn *.
1633 (ready_reorder): Strengthen param "ready" from rtx * to
1634 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
1635 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
1636 (sh_reorder2): Likewise.
1638 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
1639 local "insn" from rtx to rtx_insn *.
1641 * haifa-sched.c (note_list): Strengthen this variable from rtx to
1643 (scheduled_insns): Strengthen this variable from vec<rtx> to
1645 (set_modulo_params): Likewise for locals "i1", "i2".
1646 (record_delay_slot_pair): Likewise for params "i1", "i2".
1647 (add_delay_dependencies): Likewise for param "insn".
1648 (cond_clobbered_p): Likewise.
1649 (recompute_todo_spec): Likewise for local "prev".
1650 (last_scheduled_insn): Likewise for this variable.
1651 (nonscheduled_insns_begin): Likewise.
1652 (model_set_excess_costs): Strengthen param "insns" from rtx * to
1654 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
1656 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
1657 Strengthen local "insn" from rtx to rtx_insn *.
1658 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
1659 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
1660 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
1661 (ready_remove_first): Likewise for return type and local "t".
1662 (ready_element): Likewise for return type.
1663 (ready_remove): Likewise for return type and local "t".
1664 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
1665 (check_clobbered_conditions): Strengthen local "x" from rtx to
1666 rtx_insn *, adding a checked cast.
1667 (schedule_insn): Likewise for param "insn".
1668 (remove_notes): Likewise for params "head", "tail" and locals
1669 "next_tail", "insn", "next".
1670 (struct haifa_saved_data): Likewise for fields
1671 "last_scheduled_insn", "nonscheduled_insns_begin".
1672 (save_backtrack_point): Update for change to field "vec" of
1674 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
1676 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
1677 from rtx to rtx_insn *
1678 (resolve_dependencies): Strengthen param "insn" from rtx to
1680 (restore_other_notes): Likewise for return type, for param "head"
1681 and local "note_head".
1682 (undo_all_replacements): Likewise for local "insn".
1683 (first_nonscheduled_insn): Likewise for return type and local "insn".
1684 (queue_to_ready): Likewise for local "insn", adding checked casts.
1685 (early_queue_to_ready): Likewise for local "insn".
1686 (debug_ready_list_1): Strengthen local "p" from rtx * to
1688 (move_insn): Strengthen param "insn" and local "note" from rtx to
1690 (insn_finishes_cycle_p): Likewise for param "insn".
1691 (max_issue): Likewise for local "insn".
1692 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
1694 (commit_schedule): Strengthen param "prev_head" and local "insn"
1695 from rtx to rtx_insn *
1696 (prune_ready_list): Likewise for local "insn".
1697 (schedule_block): Likewise for locals "prev_head", "head", "tail",
1698 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
1699 (set_priorities): Likewise for local "prev_head".
1700 (try_ready): Likewise for param "next".
1701 (fix_tick_ready): Likewise.
1702 (change_queue_index): Likewise.
1703 (sched_extend_ready_list): Update for change to field "vec" of
1705 (generate_recovery_code): Strengthen param "insn" from rtx to
1707 (begin_speculative_block): Likewise.
1708 (create_check_block_twin): Likewise for param "insn" and locals
1709 "label", "check", "twin". Introduce local "check_pat" to avoid
1710 "check" being used as a plain rtx before being used as an insn.
1711 (fix_recovery_deps): Add a checked cast to rtx_insn * when
1712 extracting elements from ready_list.
1713 (sched_remove_insn): Strengthen param "insn" from rtx to
1715 (sched_emit_insn): Likewise for return type.
1716 (ready_remove_first_dispatch): Likewise for return type and local
1719 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
1721 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
1724 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
1725 from rtx to rtx_insn *.
1726 (add_dependence_list): Likewise for param "insn". Add a checked
1728 (add_dependence_list_and_free): Strengthen param "insn" from rtx
1729 to rtx_insn *. Strengthen param "list_p" from rtx * to
1731 (chain_to_prev_insn): Strengthen param "insn" and locals
1732 "prec_nonnote", "i" from rtx to rtx_insn *.
1733 (flush_pending_lists): Likewise for param "insn".
1734 (cur_insn): Likewise for this variable.
1735 (haifa_start_insn): Add a checked cast.
1736 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
1737 (sched_analyze_reg): Likewise for param "insn".
1738 (sched_analyze_1): Likewise.
1739 (sched_analyze_2): Likewise. Add checked casts.
1740 (sched_analyze_insn): Likewise. Also for local "prev".
1741 (deps_analyze_insn): Likewise for param "insn".
1742 (sched_analyze): Likewise for params "head", "tail" and local "insn".
1743 (add_dependence_1): Likewise for params "insn", "elem".
1744 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
1745 (parse_add_or_inc): Likewise for param "insn".
1746 (find_inc): Likewise for local "inc_cand".
1747 (find_modifiable_mems): Likewise for params "head", "tail" and
1748 locals "insn", "next_tail".
1750 * sched-ebb.c (init_ready_list): Likewise for local "insn".
1751 (begin_schedule_ready): Likewise for param "insn".
1752 (begin_move_insn): Likewise for params "insn" and "last".
1753 (ebb_print_insn): Strengthen param "insn" from const_rtx to
1755 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
1756 (ebb_contributes_to_priority): Likewise for params "next", "insn".
1757 (ebb_add_remove_insn): Likewise for param "insn".
1758 (advance_target_bb): Likewise.
1760 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
1762 (check_live): Likewise for param "insn".
1763 (init_ready_list): Likewise for local "insn".
1764 (can_schedule_ready_p): Likewise for param "insn".
1765 (begin_schedule_ready): Likewise.
1766 (new_ready): Likewise for param "next".
1767 (rgn_print_insn): Likewise for param "insn".
1768 (rgn_rank): Likewise for params "insn1", "insn2".
1769 (contributes_to_priority): Likewise for params "next", "insn".
1770 (rgn_insn_finishes_block_p): Likewise for param "insn".
1771 (add_branch_dependences): Likewise for params "head", "tail" and
1772 locals "insn", "last".
1773 (rgn_add_remove_insn): Likewise for param "insn".
1774 (advance_target_bb): Likewise.
1776 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
1777 const_rtx to const rtx_insn *.
1779 * sel-sched-dump.h (sel_print_insn): Likewise.
1781 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
1782 (deps_init_id): Likewise.
1784 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
1785 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
1788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1790 * output.h (final_start_function): Strengthen param 1 from rtx to
1793 * final.c (final_start_function): Likewise, renaming back from
1794 "uncast_first" to "first", and dropping the checked cast from rtx
1797 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1799 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
1800 * final.c (final): Likewise. Rename param back from
1801 "uncast_first" to "first" and eliminate the checked cast from rtx
1804 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1806 * output.h (shorten_branches): Strengthen param from rtx to
1809 * final.c (shorten_branches): Likewise, renaming param back from
1810 "uncast_first" to "first", and dropping the checked cast from rtx
1813 * genattr.c (gen_attr): Likewise when writing out the prototype of
1816 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1818 * sched-int.h (struct haifa_sched_info): Strengthen fields
1819 "prev_head" and "next_tail" from rtx to rtx_insn *.
1821 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1823 * rtl.h (rtx_jump_table_data::get_labels): New method.
1824 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
1825 with use of the new rtx_jump_table_data::get_labels method.
1826 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
1827 to rtx_jump_table_data *. Simplify by using get_labels method.
1828 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
1829 a dyn_cast, introducing local "table", using it to replace
1830 label-lookup logic with a get_labels method call.
1831 (patch_jump_insn): Simplify using get_labels method.
1832 * dwarf2cfi.c (create_trace_edges): Likewise.
1833 * rtlanal.c (label_is_jump_target_p): Likewise.
1835 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1837 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
1840 * emit-rtl.c (unshare_all_rtl_1): Likewise.
1841 (unshare_all_rtl_again): Likewise, also for local "p".
1843 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1845 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
1847 * cfgrtl.c (delete_insn_and_edges): Likewise.
1849 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1851 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
1852 from rtx to rtx_insn *.
1854 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
1856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1858 * function.c (thread_prologue_and_epilogue_insns): Likewise for
1859 locals "returnjump", "epilogue_end", "insn", "next".
1861 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
1862 "returnjump" from rtx * to rtx_insn **.
1863 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
1865 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1867 * basic-block.h (struct edge_def). Strengthen "r" within
1868 union edge_def_insns from rtx to rtx_insn *.
1870 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
1871 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
1873 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
1874 from rtx to rtx_insn *.
1875 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
1877 * postreload-gcse.c (reg_killed_on_edge): Likewise.
1878 (reg_used_on_edge): Likewise.
1879 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
1880 (gt_pch_nx): New overload for rtx_insn *&.
1881 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
1882 from rtx to rtx_insn *.
1884 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1886 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
1887 from rtx to rtx_insn *.
1888 (BB_FOOTER): Replace function with access macro.
1889 (SET_BB_FOOTER): Delete.
1891 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
1893 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
1894 (emit_barrier_after_bb): Likewise.
1895 (record_effective_endpoints): Likewise.
1896 (relink_block_chain): Likewise.
1897 (fixup_fallthru_exit_predecessor): Likewise.
1898 (cfg_layout_duplicate_bb): Likewise.
1899 (cfg_layout_split_block): Likewise.
1900 (cfg_layout_delete_block): Likewise.
1901 (cfg_layout_merge_blocks): Likewise.
1902 (BB_FOOTER): Delete function.
1903 (SET_BB_FOOTER): Delete function.
1904 * combine.c (update_cfg_for_uncondjump): Replace uses of
1905 SET_BB_FOOTER with BB_FOOTER.
1907 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1909 * except.h (struct eh_landing_pad_d): Strengthen field
1910 "landing_pad" from rtx to rtx_code_label *.
1912 * except.c (sjlj_emit_dispatch_table): Likewise for param
1914 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
1916 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1918 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
1919 first param from rtx to rtx_insn *.
1920 * config/xtensa/xtensa.c (struct machine_function): Likewise for
1921 field "set_frame_ptr_insn".
1922 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
1923 "csend" from rtx to rtx_code_label *.
1924 (xtensa_expand_atomic): Likewise for local "csloop".
1925 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
1927 (xtensa_call_tls_desc): Likewise for return type and locals
1928 "call_insn", "insns".
1929 (xtensa_legitimize_tls_address): Likewise for local "insns".
1930 (xtensa_expand_prologue): Likewise for locals "insn", "first".
1932 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1934 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
1935 first param from rtx to rtx_insn *.
1936 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
1939 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1941 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
1942 Strengthen param 1 from rtx to rtx_insn *.
1943 (tilepro_output_cbranch): Likewise.
1944 (tilepro_adjust_insn_length): Likewise.
1945 (tilepro_final_prescan_insn): Likewise for sole param.
1947 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
1948 Likewise for local "last".
1949 (cbranch_predicted_p): Likewise for param "insn".
1950 (tilepro_output_simple_cbranch_with_opcode): Likewise.
1951 (tilepro_output_cbranch_with_opcode): Likewise.
1952 (tilepro_output_cbranch): Likewise.
1953 (frame_emit_load): Likewise for return type and locals "seq",
1955 (emit_sp_adjust): Likewise for return type and local "insn".
1956 (tilepro_expand_epilogue): Likewise for locals "last_insn",
1958 (tilepro_adjust_insn_length): Likewise for param "insn".
1959 (next_insn_to_bundle): Likewise for return type and params
1961 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
1962 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
1964 (match_addli_pcrel): Likewise for param "insn".
1965 (replace_addli_pcrel): Likewise.
1966 (match_auli_pcrel): Likewise.
1967 (replace_auli_pcrel): Likewise.
1968 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
1970 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
1971 "queue", "next_queue", "prev".
1972 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
1973 (tilepro_final_prescan_insn): Likewise for param "insn".
1975 2014-08-25 David Malcolm <dmalcolm@redhat.com>
1977 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
1978 Strengthen param 1 from rtx to rtx_insn *.
1979 (tilegx_output_cbranch): Likewise.
1980 (tilegx_adjust_insn_length): Likewise.
1981 (tilegx_final_prescan_insn): Likewise for sole param.
1983 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
1985 (cbranch_predicted_p): Likewise for param "insn".
1986 (tilegx_output_simple_cbranch_with_opcode): Likewise.
1987 (tilegx_output_cbranch_with_opcode): Likewise.
1988 (tilegx_output_cbranch): Likewise.
1989 (frame_emit_load): Likewise for return type.
1990 (set_frame_related_p): Likewise for locals "seq", "insn".
1991 (emit_sp_adjust): Likewise for return type, and for local "insn".
1992 Introduce local "pat" for use in place of "insn" where the latter
1993 isn't an instruction.
1994 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
1995 from rtx to rtx_insn *.
1996 (tilegx_adjust_insn_length): Likewise for param "insn".
1997 (next_insn_to_bundle): Likewise for return type and params "r" and
1999 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
2001 (replace_insns): Likewise for params "old_insn", "new_insns".
2002 (replace_mov_pcrel_step1): Likewise for param "insn" and local
2004 (replace_mov_pcrel_step2): Likewise.
2005 (replace_mov_pcrel_step3): Likewise.
2006 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
2008 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2009 "queue", "next_queue", "prev".
2010 (tilegx_output_mi_thunk): Likewise for local "insn".
2011 (tilegx_final_prescan_insn): Likewise for param "insn".
2013 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2015 * config/spu/spu.c (frame_emit_store): Strengthen return type from
2017 (frame_emit_load): Likewise.
2018 (frame_emit_add_imm): Likewise, also for local "insn".
2019 (spu_expand_prologue): Likewise for local "insn".
2020 (struct spu_bb_info): Likewise for field "prop_jump".
2021 (emit_nop_for_insn): Likewise for param "insn" and local
2023 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
2025 (spu_emit_branch_hint): Likewise for params "before", "branch" and
2026 locals "hint", "insn".
2027 (get_branch_target): Likewise for param "branch".
2028 (insn_clobbers_hbr): Likewise for param "insn".
2029 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
2030 locals "insn", "before_4", "before_16".
2031 (insert_hbrp): Likewise for local "insn".
2032 (spu_machine_dependent_reorg): Likewise for locals "branch",
2033 "insn", "next", "bbend".
2034 (uses_ls_unit): Likewise for param "insn".
2035 (get_pipe): Likewise.
2036 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
2037 introducing a checked cast.
2038 (spu_sched_adjust_cost): Likewise for params "insn" and
2040 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
2041 (spu_sms_res_mii): Likewise.
2043 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2045 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
2046 from rtx to rtx_insn *.
2047 (output_cbranch): Likewise for param 6.
2048 (output_return): Likewise for param 1.
2049 (output_sibcall): Likewise.
2050 (output_v8plus_shift): Likewise.
2051 (output_v8plus_mult): Likewise.
2052 (output_v9branch): Likewise for param 7.
2053 (output_cbcond): Likewise for param 3.
2055 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
2057 (sparc_legitimize_pic_address): Likewise.
2058 (sparc_emit_call_insn): Likewise.
2059 (emit_save_or_restore_regs): Likewise.
2060 (emit_window_save): Likewise for return type and local "insn".
2061 (sparc_expand_prologue): Likewise for local "insn".
2062 (sparc_flat_expand_prologue): Likewise.
2063 (output_return): Likewise for param "insn".
2064 (output_sibcall): Likewise for param "insn" and local "delay".
2065 (output_ubranch): Likewise for param "insn".
2066 (output_cbranch): Likewise.
2067 (output_cbcond): Likewise.
2068 (output_v9branch): Likewise.
2069 (output_v8plus_shift): Likewise.
2070 (sparc_output_mi_thunk): Likewise for local "insn".
2071 (get_some_local_dynamic_name): Likewise.
2072 (output_v8plus_mult): Likewise for param "insn".
2074 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2076 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
2077 from rtx to rtx_insn *.
2078 (output_branchy_insn): Likewise for param 3.
2079 (output_far_jump): Likewise for param 1.
2080 (final_prescan_insn): Likewise.
2081 (sh_insn_length_adjustment): Likewise for sole param.
2083 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
2084 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
2086 (sh_emit_compare_and_set): Likewise for local "lab".
2087 (output_far_jump): Strengthen param "insn" and local "prev" from
2089 (output_branchy_insn): Likewise for param "insn" and local
2091 (output_ieee_ccmpeq): Likewise for param "insn".
2092 (struct label_ref_list_d): Strengthen field "label" from rtx to
2094 (pool_node): Likewise.
2095 (pool_window_label): Likewise for this global.
2096 (add_constant): Likewise for return type and locals "lab", "new_rtx".
2097 (dump_table): Strengthen params "start", "barrier" and local
2098 "scan" from rtx to rtx_insn *.
2099 (broken_move): Likewise for param "insn".
2100 (untangle_mova): Likewise for params "first_mova" and "new_mova".
2101 Strengthen param "first_mova" from rtx * to rtx_insn **.
2102 (mova_p): Likewise for param "insn".
2103 (fixup_mova): Likewise for param "mova".
2104 (find_barrier): Likewise for return type, params "mova" and
2105 "from", and locals "barrier_before_mova", "found_barrier",
2106 "good_barrier", "orig", "last_symoff", "next". Strengthen local
2107 "label" from rtx to rtx_code_label *.
2108 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
2110 (sh_reorg): Likewise for locals "link", "scan", "barrier".
2111 (split_branches): Likewise for param "first" and local "insn".
2112 (final_prescan_insn): Likewise for param "insn".
2113 (sequence_insn_p): Likewise for locals "prev", "next".
2114 (sh_insn_length_adjustment): Likewise for param "insn".
2115 (sh_can_redirect_branch): Likewise for local "insn".
2116 (find_r0_life_regions): Likewise for locals "end", "insn".
2117 (sh_output_mi_thunk): Likewise for local "insns".
2119 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2121 * config/score/score.c (score_output_mi_thunk): Strengthen local
2122 "insn" from rtx to rtx_insn *.
2123 (score_prologue): Likewise.
2125 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2127 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
2128 1 from rtx to rtx_insn *.
2129 (s390_emit_jump): Likewise for return type.
2130 (s390_emit_call): Likewise.
2131 (s390_load_got): Likewise.
2133 * config/s390/s390.c (last_scheduled_insn): Likewise for this
2135 (s390_match_ccmode): Likewise for param "insn".
2136 (s390_emit_jump): Likewise for return type.
2137 (s390_split_branches): Likewise for local "label".
2138 (struct constant): Strengthen field "label" from rtx to
2140 (struct constant_pool): Likewise for field "label". Strengthen
2141 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
2143 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
2145 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
2146 (s390_end_pool): Likewise.
2147 (s390_dump_pool): Likewise for local "insn".
2148 (s390_mainpool_start): Likewise.
2149 (s390_chunkify_start): Likewise.
2150 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
2151 with insns. Strengthen locals "label", "jump", "barrier", "next",
2152 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
2153 (s390_chunkify_finish): Strengthen local "insn" from rtx to
2155 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
2156 "jump", "label", "next_insn".
2157 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
2158 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
2160 (s390_load_got): Likewise for return type and local "insns".
2161 (s390_save_gprs_to_fprs): Likewise for local "insn".
2162 (s390_restore_gprs_from_fprs): Likewise.
2163 (pass_s390_early_mach::execute): Likewise.
2164 (s390_emit_prologue): Likewise for local "insns".
2165 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
2167 (s390_emit_call): Strengthen return type and local "insn" from
2169 (s390_emit_tpf_eh_return): Likewise for local "insn".
2170 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
2171 "next_insn", introducing locals "s_pat", "rpat" to allow this.
2172 (s390_fix_long_loop_prediction): Likewise for param "insn" and
2174 (s390_non_addr_reg_read_p): Likewise for param "insn".
2175 (find_cond_jump): Likewise for return type and param "insn".
2176 (s390_swap_cmp): Likewise for param "insn".
2177 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
2178 "prev_insn", "next_insn".
2179 (s390_reorg): Likewise for locals "insn", "target".
2180 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
2181 (s390_sched_variable_issue): For now, rename param "insn" to
2182 "uncast_insn", introducing a checked cast.
2183 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
2185 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
2186 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
2188 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2190 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
2191 param from rtx to rtx_insn *.
2192 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
2194 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2196 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
2197 4 from rtx to rtx_insn *.
2198 (rs6000_final_prescan_insn): Likewise for first param.
2199 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
2201 (rs6000_get_some_local_dynamic_name): Likewise.
2202 (output_cbranch): Likewise for param "insn".
2203 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
2204 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
2205 (rs6000_emit_allocate_stack): Likewise for local "insn".
2206 (load_cr_save): Likewise.
2207 (restore_saved_cr): Likewise.
2208 (restore_saved_lr): Likewise.
2209 (emit_cfa_restores): Likewise.
2210 (rs6000_output_function_epilogue): Likewise for locals "insn" and
2211 "deleted_debug_label".
2212 (rs6000_output_mi_thunk): Likewise for local "insn".
2213 (rs6000_final_prescan_insn): Likewise for param "insn".
2215 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2217 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
2218 Strengthen param "insn" from rtx to rtx_insn *.
2219 * config/picochip/picochip.c (picochip_current_prescan_insn):
2220 Likewise for this variable.
2221 (picochip_final_prescan_insn): Likewise for param "insn".
2223 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2225 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
2226 from rtx to rtx_insn *.
2227 (pa_output_indirect_call): Likewise.
2228 (pa_adjust_insn_length): Likewise.
2229 (pa_attr_length_millicode_call): Likewise.
2230 (pa_attr_length_call): Likewise.
2231 (pa_attr_length_indirect_call): Likewise.
2233 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
2235 (pa_attr_length_millicode_call): Likewise.
2236 (pa_attr_length_call): Likewise.
2237 (pa_output_call): Likewise.
2238 (pa_attr_length_indirect_call): Likewise.
2239 (pa_output_indirect_call): Likewise.
2241 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2243 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
2244 Strengthen first param from rtx to rtx_insn *.
2245 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
2248 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2250 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
2251 type from rtx to rtx_insn *.
2252 (mips_expand_call): Likewise.
2253 (mips_adjust_insn_length): Likewise for first param.
2254 (mips_output_conditional_branch): Likewise.
2255 (mips_output_order_conditional_branch): Likewise.
2256 (mips_final_prescan_insn): Likewise.
2258 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
2259 rtx_insn * for the SEQUENCE case.
2260 (SEQ_END): Likewise.
2261 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
2262 (mips_emit_call_insn): Likewise, also for local "insn".
2263 (mips16_gp_pseudo_reg): Likewise for local "scan".
2264 (mips16_build_call_stub): Likewise for return type and for local
2265 "insn". Introduce a new local "pattern" so that "insn" can indeed
2267 (mips_expand_call): Strengthen return type and local "insn" from
2269 (mips_block_move_loop): Strengthen local "label" from rtx to
2271 (mips_expand_synci_loop): Likewise for locals "label",
2273 (mips_set_frame_expr): Strengthen local "insn" from rtx to
2275 (mips16e_collect_argument_saves): Likewise for locals "insn",
2277 (mips_find_gp_ref): Likewise for param of callback for "pred"
2278 param, and for local "insn".
2279 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
2280 (mips_insn_has_flexible_gp_ref_p): Likewise.
2281 (mips_epilogue_emit_cfa_restores): Likewise for return type and
2283 (mips_epilogue_set_cfa): Likewise for local "insn".
2284 (mips_expand_epilogue): Likewise.
2285 (mips_adjust_insn_length): Likewise for param "insn".
2286 (mips_output_conditional_branch): Likewise.
2287 (mips_output_order_conditional_branch): Likewise.
2288 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
2289 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
2290 "falu2_turn_enabled_insn".
2291 (mips_builtin_branch_and_move): Strengthen locals "true_label",
2292 "done_label" from rtx to rtx_code_label *.
2293 (struct mips16_constant): Likewise for field "label".
2294 (mips16_add_constant): Likewise for return type.
2295 (mips16_emit_constants_1): Strengthen return type and param "insn"
2296 from rtx to rtx_insn *.
2297 (mips16_emit_constants): Likewise for param "insn".
2298 (mips16_insn_length): Likewise.
2299 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
2300 to rtx_code_label *.
2301 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
2302 from rtx to rtx_insn *.
2303 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
2304 "jump". Strengthen local "label" from rtx to rtx_code_label *.
2305 (r10k_simplify_address): Strengthen param "insn" and local
2306 "def_insn" from rtx to rtx_insn *.
2307 (r10k_safe_address_p): Strengthen param "insn" from rtx to
2309 (r10k_needs_protection_p_1): Update target type of cast of data
2310 from to rtx to rtx_insn *.
2311 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
2312 rtx * to rtx_insn **.
2313 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
2315 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
2316 (mips_call_expr_from_insn): Likewise for param "insn".
2317 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
2318 (mips_find_pic_call_symbol): Likewise for param "insn".
2319 (mips_annotate_pic_calls): Likewise for local "insn".
2320 (mips_sim_insn): Likewise for this variable.
2321 (struct mips_sim): Likewise for field "insn" within elements of
2323 (mips_sim_wait_reg): Likewise for param "insn".
2324 (mips_sim_wait_regs): Likewise.
2325 (mips_sim_wait_units): Likewise.
2326 (mips_sim_wait_insn): Likewise.
2327 (mips_sim_issue_insn): Likewise.
2328 (mips_sim_finish_insn): Likewise.
2329 (mips_seq_time): Likewise for param "seq" and local "insn".
2330 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
2331 locals "first", "second".
2332 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
2333 "last", "last2", "next".
2334 (mips_avoid_hazard): Likewise for params "after", "insn".
2335 (mips_reorg_process_insns): Likewise for locals "insn",
2336 "last_insn", "subinsn", "next_insn".
2337 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
2338 (mips16_split_long_branches): Likewise for locals "insn" "jump",
2340 (mips_output_mi_thunk): Likewise for local "insn".
2341 (mips_final_prescan_insn): Likewise for param "insn".
2343 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2345 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
2346 Strengthen return type and local "insns" from rtx to rtx_insn *.
2347 (microblaze_legitimize_tls_address): Likewise for local "insns".
2348 (microblaze_block_move_loop): Strengthen local "label" from rtx
2349 to rtx_code_label *.
2350 (microblaze_expand_prologue): Strengthen two locals named "insn"
2351 from rtx to rtx_insn *.
2352 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
2353 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
2354 "insn". Strengthen locals "div_label", "div_end_label" from rtx
2355 to rtx_code_label *.
2357 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2359 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
2360 param from rtx to rtx_insn *.
2361 (mep_reuse_lo): Likewise for third param.
2362 (mep_use_post_modify_p): Likewise for first param.
2363 (mep_core_address_length): Likewise.
2364 (mep_cop_address_length): Likewise.
2365 (mep_final_prescan_insn): Likewise.
2366 (mep_store_data_bypass_p): Likewise for both params.
2367 (mep_mul_hilo_bypass_p): Likewise.
2368 (mep_ipipe_ldc_p): Likewise for param.
2370 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
2371 (mep_rewrite_mult): Likewise.
2372 (mep_rewrite_mulsi3): Likewise.
2373 (mep_rewrite_maddsi3): Likewise.
2374 (mep_reuse_lo_p_1): Likewise.
2375 (mep_reuse_lo_p): Likewise.
2376 (mep_frame_expr): Likewise.
2377 (mep_make_parallel): Likewise for both params.
2378 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
2380 (mep_use_post_modify_p): Likewise for param "insn".
2381 (mep_core_address_length): Likewise.
2382 (mep_cop_address_length): Likewise.
2383 (mep_reg_set_in_function): Likewise for local "insn".
2384 (mep_asm_without_operands_p): Likewise.
2385 (F): Likewise for return type and param "x".
2386 (add_constant): Likewise for local "insn".
2387 (maybe_dead_move): Likewise for return type and local "insn".
2388 (mep_expand_prologue): Likewise for local "insn".
2389 (mep_final_prescan_insn): Likewise for param "insn".
2390 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
2391 "next", "follow", "x".
2392 (mep_insert_repeat_label_last): Likewise for return type, param
2393 "last_insn", and locals "next", "prev". Strengthen param "label"
2394 from rtx to rtx_code_label *.
2395 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
2397 (struct mep_doloop_end): Likewise for fields "insn" and
2399 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
2400 Strengthen local "repeat_label" from rtx to rtx_code_label *.
2401 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
2403 (mep_invert_branch): Likewise for params "insn" and "after".
2404 (mep_reorg_erepeat): Likewise for param "insns" and locals
2405 "insn", "prev", "new_last", "barrier", "user". Strengthen local
2406 "l" from rtx to rtx_code_label *.
2407 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
2408 from rtx to rtx_insn *.
2409 (mep_reorg_addcombine): Likewise for param "insns" and locals
2411 (add_sp_insn_p): Likewise for param "insn".
2412 (mep_reorg_noframe): Likewise for param "insns" and locals
2413 "start_frame_insn", "end_frame_insn", "next".
2414 (mep_reorg): Likewise for local "insns".
2415 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
2417 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
2418 (mep_mul_hilo_bypass_p): Likewise.
2419 (mep_ipipe_ldc_p): Likewise for param "insn".
2420 (mep_make_bundle): Likewise for return type, param "cop" and local
2421 "insn", splitting out the latter into a new local "seq" for when it
2422 is a SEQUENCE rather than an insn.
2423 (core_insn_p): Likewise for param "insn".
2424 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
2425 "last", "first", "note", "prev", "core_insn".
2427 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2429 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
2431 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
2432 (m68k_final_prescan_insn): Likewise for first param.
2434 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
2435 (m68k_set_frame_related): Likewise for param "insn".
2436 (output_btst): Likewise for param "insn".
2437 (m68k_final_prescan_insn): Likewise.
2438 (m68k_move_to_reg): Likewise for local "insn".
2439 (m68k_call_tls_get_addr): Likewise for local "insns".
2440 (m68k_call_m68k_read_tp): Likewise.
2441 (strict_low_part_peephole_ok): Likewise for param "first_insn".
2442 (m68k_output_mi_thunk): Likewise for local "insn".
2444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2446 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
2447 first param from rtx to rtx_insn *.
2448 (iq2000_adjust_insn_length): Likewise.
2449 (iq2000_output_conditional_branch): Likewise.
2450 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
2451 "insn" and local "nop_insn".
2452 (iq2000_annotate_frame_insn): Likewise for param "insn".
2453 (iq2000_expand_prologue): Likewise for both locals "insn".
2454 (iq2000_adjust_insn_length): Likewise for param "insn".
2455 (iq2000_output_conditional_branch): Likewise.
2457 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2459 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
2460 "insns" from rtx to rtx_insn *.
2461 (ia64_emit_cond_move): Likewise for locals "insn", "first".
2462 (struct spill_fill_data): Likewise for field "init_after" and for
2463 elements of array field "prev_insn".
2464 (spill_restore_mem): Likewise for locals "insn", "first".
2465 (do_spill): Likewise for local "insn".
2466 (do_restore): Likewise.
2467 (ia64_expand_prologue): Likewise.
2468 (ia64_expand_epilogue): Likewise.
2469 (emit_insn_group_barriers): Likewise for locals "insn",
2471 (emit_all_insn_group_barriers): Likewise for locals "insn",
2473 (dfa_stop_insn): Likewise for this global.
2474 (dfa_pre_cycle_insn): Likewise.
2475 (ia64_nop): Likewise.
2476 (final_emit_insn_group_barriers): Likewise for locals "insn",
2478 (emit_predicate_relation_info): Likewise for locals "head", "n",
2480 (ia64_reorg): Likewise for local "insn".
2481 (ia64_output_mi_thunk): Likewise.
2482 (expand_vec_perm_interleave_2): Likewise for local "seq".
2484 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2486 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
2487 param 1 "insn" from rtx to rtx_insn *.
2488 (ix86_use_lea_for_mov): Likewise.
2489 (ix86_avoid_lea_for_addr): Likewise.
2490 (ix86_split_lea_for_addr): Likewise.
2491 (ix86_lea_for_add_ok): Likewise.
2492 (ix86_output_call_insn): Likewise.
2494 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
2495 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
2496 (ix86_output_function_epilogue): Likewise for locals "insn",
2497 "deleted_debug_label".
2498 (legitimize_tls_address): Likewise for local "insn".
2499 (get_some_local_dynamic_name): Likewise.
2500 (increase_distance): Likewise for params "prev", "next".
2501 (distance_non_agu_define_in_bb): Likewise for params "insn",
2502 "start" and locals "prev", "next".
2503 (distance_non_agu_define): Likewise for param "insn".
2504 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
2505 locals "next", "prev".
2506 (distance_agu_use): Likewise for param "insn".
2507 (ix86_lea_outperforms): Likewise.
2508 (ix86_ok_to_clobber_flags): Likewise.
2509 (ix86_avoid_lea_for_add): Likewise.
2510 (ix86_use_lea_for_mov): Likewise.
2511 (ix86_avoid_lea_for_addr): Likewise.
2512 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
2513 (ix86_split_lea_for_addr): Likewise for param "insn".
2514 (ix86_lea_for_add_ok): Likewise for param "insn".
2515 (ix86_expand_carry_flag_compare): Likewise for local
2517 (ix86_expand_int_movcc): Likewise.
2518 (ix86_output_call_insn): Likewise for param "insn".
2519 (ix86_output_call_insn): Likewise for local "i".
2520 (x86_output_mi_thunk): Introduce local "insn", using it in place
2521 of "tmp" when dealing with insns.
2522 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
2524 (ix86_pad_returns): Likewise for locals "ret", "prev".
2525 (ix86_count_insn_bb): Likewise for local "insn".
2526 (ix86_pad_short_function): Likewise for locals "ret", "insn".
2527 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
2528 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
2529 (expand_vec_perm_interleave2): Likewise for local "seq".
2530 (expand_vec_perm_vperm2f128_vblend): Likewise.
2531 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
2532 call to for_each_rtx with for_each_rtx_in_insn.
2534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2536 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
2537 "label" from rtx to rtx_code_label *.
2538 (ix86_expand_prologue): Likewise.
2539 (ix86_expand_split_stack_prologue): Likewise for locals "label",
2541 (ix86_split_idivmod): Likewise for locals "end_label" and
2543 (ix86_expand_branch): Likewise for local "label2".
2544 (ix86_expand_aligntest): Likewise for return type and local "label".
2545 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
2547 (expand_movmem_epilogue): Likewise for the various locals named
2549 (expand_setmem_epilogue): Likewise.
2550 (expand_small_movmem_or_setmem): Likewise for local "label".
2551 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2552 Strengthen param "done_label" from rtx * to rtx_code_label **.
2553 Strengthen locals "loop_label" and "label" from rtx to
2555 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
2556 Likewise for locals "loop_label", "label".
2557 (ix86_expand_set_or_movmem): Likewise for locals "label",
2558 "jump_around_label", "hot_label".
2559 (ix86_expand_strlensi_unroll_1): Likewise for locals
2560 "align_2_label", align_3_label", "align_4_label", "end_0_label",
2562 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
2563 (void ix86_emit_i387_log1p): Likewise for locals "label1",
2564 "label2", "jump_label".
2565 (ix86_expand_sse_compare_and_jump): Likewise for return type and
2567 (ix86_expand_lfloorceil): Likewise for local "label".
2568 (ix86_expand_rint): Likewise.
2569 (ix86_expand_floorceildf_32): Likewise.
2570 (ix86_expand_floorceil): Likewise.
2571 (ix86_expand_rounddf_32): Likewise.
2572 (ix86_expand_trunc): Likewise.
2573 (ix86_expand_truncdf_32): Likewise.
2574 (ix86_expand_round): Likewise.
2576 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2578 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
2579 first param from rtx to rtx_insn *.
2580 (h8300_insn_length_from_table): Likewise.
2581 * config/h8300/h8300.c (F): Likewise for return type and param
2583 (Fpa): Add a checked cast to rtx_insn *.
2584 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
2586 (final_prescan_insn): Likewise for param "insn".
2587 (h8300_binary_length): Likewise.
2588 (h8300_insn_length_from_table): Likewise.
2590 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2592 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
2593 Strengthen first param "insn" from rtx to rtx_insn *.
2595 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
2597 (frame_insn): Likewise for return type. Introduce local "insn"
2598 for use in place of local "x" for use as an rtx_insn *.
2599 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
2600 (epiphany_expand_prologue): Likewise for local "insn".
2601 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
2602 * config/epiphany/resolve-sw-modes.c
2603 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
2606 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2608 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
2609 param from rtx to rtx_insn *.
2610 (c6x_final_prescan_insn): Likewise for first param.
2612 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
2613 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
2614 (c6x_expand_compare): Strengthen local "insns" from rtx to
2616 (c6x_get_unit_specifier): Likewise for param "insn".
2617 (c6x_print_unit_specifier_field): Likewise.
2618 (c6x_final_prescan_insn): Likewise.
2619 (emit_add_sp_const): Likewise for local "insn".
2620 (c6x_expand_prologue): Likewise.
2622 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2624 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
2625 param 1 from rtx to rtx_insn *.
2626 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
2627 the various locals named "insn".
2628 (expand_epilogue_reg_restore): Likewise.
2629 (frame_related_constant_load): Likewise.
2630 (add_to_reg): Likewise.
2631 (emit_link_insn): Likewise.
2632 (do_link): Likewise.
2633 (expand_interrupt_handler_prologue): Likewise.
2634 (branch_dest): Likewise for param "branch".
2635 (asm_conditional_branch): Likewise for param "insn".
2636 (gen_one_bundle): Likewise for elements of param "slot" and local
2638 (bfin_gen_bundles): Likewise for locals "insn", "next" and
2639 elements of local "slot".
2640 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
2641 "queue", "next_queue", "prev".
2642 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
2643 (add_sched_insns_for_speculation): Likewise for local "insn".
2645 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2647 * config/avr/avr-protos.h (output_movqi): Strengthen first param
2648 from rtx to rtx_insn *.
2649 (output_movhi): Likewise.
2650 (output_movsisf): Likewise.
2651 (avr_out_tstsi): Likewise.
2652 (avr_out_tsthi): Likewise.
2653 (avr_out_tstpsi): Likewise.
2654 (avr_out_compare): Likewise.
2655 (avr_out_compare64): Likewise.
2656 (avr_out_movpsi): Likewise.
2657 (ashlqi3_out): Likewise.
2658 (ashlhi3_out): Likewise.
2659 (ashlsi3_out): Likewise.
2660 (ashrqi3_out): Likewise.
2661 (ashrhi3_out): Likewise.
2662 (ashrsi3_out): Likewise.
2663 (lshrqi3_out): Likewise.
2664 (lshrhi3_out): Likewise.
2665 (lshrsi3_out): Likewise.
2666 (avr_out_ashlpsi3): Likewise.
2667 (avr_out_ashrpsi3): Likewise.
2668 (avr_out_lshrpsi3): Likewise.
2669 (avr_out_fract): Likewise.
2670 (avr_out_sbxx_branch): Likewise.
2671 (avr_out_round): Likewise.
2672 (avr_out_xload): Likewise.
2673 (avr_out_movmem): Likewise.
2674 (adjust_insn_length): Likewise.
2675 (avr_out_lpm): Likewise.
2676 (reg_unused_after): Likewise.
2677 (_reg_unused_after): Likewise.
2678 (avr_jump_mode): Likewise for second param.
2679 (jump_over_one_insn): Likewise for first param.
2680 (avr_final_prescan_insn): Likewise.
2681 (out_shift_with_cnt): Likewise for second param.
2683 * config/avr/avr.c (get_sequence_length): Likewise for param
2684 "insns" and local "insn".
2685 (emit_push_byte): Likewise for local "insn".
2686 (emit_push_sfr): Likewise.
2687 (avr_prologue_setup_frame): Likewise for locals "insn",
2688 "fp_plus_insns", "sp_plus_insns".
2689 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
2691 (avr_jump_mode): Likewise for param "insn".
2692 (avr_final_prescan_insn): Likewise.
2693 (avr_find_unused_d_reg): Likewise.
2694 (avr_out_lpm_no_lpmx): Likewise.
2695 (avr_out_lpm): Likewise.
2696 (avr_out_xload): Likewise.
2697 (output_movqi): Likewise.
2698 (output_movhi): Likewise.
2699 (out_movqi_r_mr): Likewise.
2700 (out_movhi_r_mr): Likewise.
2701 (out_movsi_r_mr): Likewise.
2702 (out_movsi_mr_r): Likewise.
2703 (output_movsisf): Likewise.
2704 (avr_out_load_psi): Likewise.
2705 (avr_out_store_psi): Likewise.
2706 (avr_out_movpsi): Likewise.
2707 (out_movqi_mr_r): Likewise.
2708 (avr_out_movhi_mr_r_xmega): Likewise.
2709 (out_movhi_mr_r): Likewise.
2710 (compare_condition): Likewise for param "insn" and local "next".
2711 (compare_sign_p): Likewise for param "insn".
2712 (compare_diff_p): Likewise.
2713 (compare_eq_p): Likewise.
2714 (avr_out_compare): Likewise.
2715 (avr_out_compare64): Likewise.
2716 (avr_out_tsthi): Likewise.
2717 (avr_out_tstpsi): Likewise.
2718 (avr_out_tstsi): Likewise.
2719 (out_shift_with_cnt): Likewise.
2720 (ashlqi3_out): Likewise.
2721 (ashlhi3_out): Likewise.
2722 (avr_out_ashlpsi3): Likewise.
2723 (ashlsi3_out): Likewise.
2724 (ashrqi3_out): Likewise.
2725 (ashrhi3_out): Likewise.
2726 (avr_out_ashrpsi3): Likewise.
2727 (ashrsi3_out): Likewise.
2728 (lshrqi3_out): Likewise.
2729 (lshrhi3_out): Likewise.
2730 (avr_out_lshrpsi3): Likewise.
2731 (lshrsi3_out): Likewise.
2732 (avr_out_fract): Likewise.
2733 (avr_out_round): Likewise.
2734 (avr_adjust_insn_length): Likewise.
2735 (reg_unused_after): Likewise.
2736 (_reg_unused_after): Likewise.
2737 (avr_compare_pattern): Likewise.
2738 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
2739 and locals "branch1", "branch2", "insn2", "jump".
2740 (avr_reorg): Likewise for local "insn".
2741 (avr_2word_insn_p): Likewise for param "insn".
2742 (jump_over_one_insn_p): Likewise.
2743 (avr_out_sbxx_branch): Likewise.
2744 (avr_out_movmem): Likewise.
2746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2748 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
2749 param from rtx to rtx_insn *.
2750 (thumb1_final_prescan_insn): Likewise.
2751 (thumb2_final_prescan_insn): Likewise.
2753 * config/arm/arm.c (emit_set_insn): Strengthen return type from
2755 (struct minipool_node): Likewise for field "insn".
2756 (dump_minipool): Likewise for param "scan".
2757 (create_fix_barrier): Likewise for local "from". Strengthen local
2758 "label" from rtx to rtx_code_label *.
2759 (push_minipool_barrier): Strengthen param "insn" from rtx to
2761 (push_minipool_fix): Likewise.
2762 (note_invalid_constants): Likewise.
2763 (thumb2_reorg): Likewise for local "insn".
2764 (arm_reorg): Likewise.
2765 (thumb2_final_prescan_insn): Likewise for param
2766 "insn" and local "first_insn".
2767 (arm_final_prescan_insn): Likewise for param "insn" and locals
2768 "start_insn", "this_insn".
2769 (arm_debugger_arg_offset): Likewise for param "insn".
2770 (thumb1_emit_multi_reg_push): Likewise for return type and local
2772 (thumb1_final_prescan_insn): Likewise for param "insn".
2773 (thumb_far_jump_used_p): Likewise for local "insn".
2774 (thumb1_expand_prologue): Likewise.
2775 (arm_expand_epilogue_apcs_frame): Likewise.
2776 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
2777 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
2778 from rtx to rtx_code_label *.
2779 (arm_split_atomic_op): Likewise for local "label".
2780 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
2782 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2784 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
2785 first param from rtx to rtx_insn *.
2786 (arc_verify_short): Likewise.
2787 (arc_short_long): Likewise.
2788 (arc_need_delay): Likewise.
2790 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
2792 (arc_ccfsm_advance): Likewise for param "insn" and locals
2793 "start_insn", "this_insn".
2794 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
2795 (arc_ccfsm_post_advance): Likewise for param "insn".
2796 (arc_next_active_insn): Likewise for return type and param "insn".
2797 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
2798 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
2799 (output_short_suffix): Likewise for local "insn".
2800 (arc_final_prescan_insn): Likewise for param "insn". Remove
2801 now-redundant checked cast.
2802 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
2803 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
2804 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
2805 for use where lc_set became an insn.
2806 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
2808 (arc_get_insn_variants): Likewise for local "prev".
2809 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
2811 (arc_predicate_delay_insns): Likewise for local "insn".
2812 (arc_pad_return): Likewise for local "prev". For now, add a
2813 checked cast when extracting the insn from "final_sequence".
2814 (arc_short_long): Likewise for param "insn".
2815 (arc_need_delay): Likewise for param "insn" and local "next".
2816 (arc_label_align): Likewise for locals "prev", "next".
2818 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2820 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
2821 "insn" from rtx to rtx_insn *.
2822 (alpha_gp_save_rtx): Likewise for local "seq".
2823 (alpha_instantiate_decls): Likewise for local "top".
2824 (get_some_local_dynamic_name): Likewise for local "insn".
2825 (alpha_does_function_need_gp): Likewise.
2826 (set_frame_related_p): Likewise for return type and for locals
2828 (emit_frame_store_1): Likewise for local "insn".
2829 (alpha_expand_prologue): Likewise for locals "insn", "seq".
2830 (alpha_end_function): Likewise for local "insn".
2831 (alpha_output_mi_thunk_osf): Likewise.
2832 (alphaev4_insn_pipe): Likewise for param "insn".
2833 (alphaev5_insn_pipe): Likewise.
2834 (alphaev4_next_group): Likewise for return type and param 1
2836 (alphaev5_next_group): Likewise.
2837 (alpha_align_insns_1): Likewise for return type and param 1 of
2838 callback param "next_group", and for locals "i", "next", "prev",
2839 "where", "where2", "insn".
2841 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
2843 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
2844 rather than modifying the stmt.
2846 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2848 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
2849 cgraph_state conversion.
2851 2014-08-25 David Malcolm <dmalcolm@redhat.com>
2853 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2854 Strengthen local "insns" from rtx to rtx_insn *.
2855 (aarch64_set_frame_expr): Likewise for local "insn".
2856 (aarch64_save_or_restore_fprs): Likewise.
2857 (aarch64_save_or_restore_callee_save_registers): Likewise.
2858 (aarch64_expand_prologue): Likewise.
2859 (aarch64_expand_epilogue): Likewise.
2860 (aarch64_output_mi_thunk): Likewise.
2861 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
2862 "label2" from rtx to rtx_code_label *.
2863 (aarch64_split_atomic_op): Likewise for local "label".
2865 2014-08-25 Martin Liska <mliska@suse.cz>
2867 * cgraph.h (symtab_node):
2868 (bool needed_p (void)): created from decide_is_symbol_needed
2869 (bool referred_to_p (void)): created from referred_to_p
2870 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
2871 * cgraph.h (cgraph_node):
2872 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
2873 (void expand (void)): created from expand_function
2874 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
2875 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
2876 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
2877 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
2878 * cgraph.h (varpool_node):
2879 (static void add (tree decl): created from varpool_add_new_variable
2880 * cgraph.h (cgraph_edge):
2882 (void remove_caller (void)): created from cgraph_edge_remove_caller
2883 (void remove_callee (void)): created from cgraph_edge_remove_callee
2884 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
2885 created from cgraph_set_call_stmt
2886 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
2887 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
2888 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
2889 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
2890 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
2891 created from cgraph_speculative_call_info
2892 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
2893 int freq_scale, bool update_original)): created from cgraph_clone_edge
2894 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
2895 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
2896 (bool recursive_p (void)): created from cgraph_edge_recursive_p
2897 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
2898 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
2899 (static void rebuild_references (void)): created from cgraph_rebuild_references
2900 * cgraph.h (symbol_table):
2901 (create_reference): renamed from add_reference
2902 (maybe_create_reference): renamed from maybe_add_reference
2903 (void register_symbol (symtab_node *node)): new function
2904 (void clear_asm_symbols (void)): new function
2905 (void unregister (symtab_node *node)): new function
2906 (void release_symbol (cgraph_node *node, int uid)): new function
2907 (cgraph_node * allocate_cgraph_symbol (void)): new function
2908 (void initialize (void)): created from cgraph_init
2909 (symtab_node *first_symbol (void)):new function
2910 (asm_node *first_asm_symbol (void)):new function
2911 (symtab_node *first_defined_symbol (void)):new function
2912 (varpool_node *first_variable (void)):new function
2913 (varpool_node *next_variable (varpool_node *node)):new function
2914 (varpool_node *first_static_initializer (void)):new function
2915 (varpool_node *next_static_initializer (varpool_node *node)):new function
2916 (varpool_node *first_defined_variable (void)):new function
2917 (varpool_node *next_defined_variable (varpool_node *node)):new function
2918 (cgraph_node *first_defined_function (void)):new function
2919 (cgraph_node *next_defined_function (cgraph_node *node)):new function
2920 (cgraph_node *first_function (void)):new function
2921 (cgraph_node *next_function (cgraph_node *node)):new function
2922 (cgraph_node *first_function_with_gimple_body (void)):new function
2923 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
2924 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
2925 created from symtab_remove_unreachable_nodes
2926 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
2927 (void process_new_functions (void)): created from cgraph_process_new_functions
2928 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
2929 (bool output_variables (void)): created from varpool_node::output_variables
2930 (void output_asm_statements (void)): created from output_asm_statements
2931 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
2932 (void compile (void)): created from compile
2933 (void output_weakrefs (void)): created from output_weakrefs
2934 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
2935 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
2936 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
2937 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
2938 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
2939 created from cgraph_next_function_with_gimple_body
2940 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
2941 created from cgraph_remove_edge_removal_hook
2942 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
2943 created from cgraph_add_node_removal_hook
2944 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
2945 created from cgraph_remove_node_removal_hook
2946 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
2947 created from varpool_add_node_removal_hook
2948 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
2949 created from varpool_remove_node_removal_hook
2950 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
2951 created from cgraph_add_function_insertion_hook
2952 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
2953 created from cgraph_remove_function_insertion_hook
2954 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
2955 created from varpool_add_variable_insertion_hook
2956 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
2957 created from varpool_remove_variable_insertion_hook
2958 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
2959 created from cgraph_add_edge_duplication_hook
2960 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
2961 created from cgraph_remove_edge_duplication_hook
2962 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
2963 created from cgraph_add_node_duplication_hook
2964 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
2965 created from cgraph_remove_node_duplication_hook
2966 (void call_edge_removal_hooks (cgraph_edge *e)):
2967 created from cgraph_call_edge_removal_hooks
2968 (void call_cgraph_insertion_hooks (cgraph_node *node)):
2969 created from call_function_insertion_hooks
2970 (void call_cgraph_removal_hooks (cgraph_node *node)):
2971 created from cgraph_call_node_removal_hooks
2972 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
2973 created from cgraph_node::call_duplication_hooks
2974 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
2975 created from cgraph_call_edge_duplication_hooks
2976 (void call_varpool_removal_hooks (varpool_node *node)):
2977 created from varpool_call_node_removal_hooks
2978 (void call_varpool_insertion_hooks (varpool_node *node)):
2979 created from varpool_call_variable_insertion_hooks
2980 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
2981 created from insert_to_assembler_name_hash
2982 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
2983 created from unlink_from_assembler_name_hash
2984 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
2985 created from symtab_prevail_in_asm_name_hash
2986 (void symtab_initialize_asm_name_hash (void)):
2987 created from symtab_initialize_asm_name_hash
2988 (void change_decl_assembler_name (tree decl, tree name)):
2989 created from change_decl_assembler_name
2990 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
2991 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
2992 created from decl_assembler_name_hash
2993 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
2994 created from decl_assembler_name_equal
2995 (static hashval_t hash_node_by_assembler_name (const void *p)):
2996 created from hash_node_by_assembler_name
2997 (static int eq_assembler_name (const void *p1, const void *p2)):
2998 created from eq_assembler_name
3000 2014-08-25 Marek Polacek <polacek@redhat.com>
3002 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
3004 2014-08-25 Petr Murzin <petr.murzin@intel.com>
3006 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
3007 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
3008 SWI1248_AVX512BW mode iterator.
3010 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
3013 * config/sh/predicates.md (general_extend_operand): Disable
3014 TRUNCATE before reload completes.
3016 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
3018 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
3020 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
3023 * config/sh/sh.opt (musermode): Allow negative form.
3024 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
3025 targets that don't support it.
3026 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
3027 Document -mno-usermode option.
3029 2014-08-24 Kito Cheng <kito@0xlab.org>
3031 * system.h (CALLER_SAVE_PROFITABLE): Poison.
3032 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
3033 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
3034 * doc/tm.texi: Regenerate.
3036 2014-08-24 Kito Cheng <kito@0xlab.org>
3038 * ira.c: Fix typo in comment.
3040 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
3042 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
3043 Deprecate c++1y. Change language to reflect greater confidence in C++14.
3045 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
3048 * config/pa/pa.c (pa_output_function_epilogue): Don't set
3049 last_address when the current function is a thunk.
3050 (pa_asm_output_mi_thunk): When we don't have named sections or they
3051 are not being used, check that thunk can reach the stub table with a
3054 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3056 * web.c (union_match_dups): Strengthen param "insn" from rtx to
3058 (pass_web::execute): Likewise for local "insn".
3060 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3062 * var-tracking.c (struct micro_operation_def): Strengthen field
3063 "insn" from rtx to rtx_insn *.
3064 (struct emit_note_data_def): Likewise.
3065 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
3066 (vt_stack_adjustments): Likewise for local "insn".
3067 (adjust_insn): Likewise for param "insn".
3068 (val_store): Likewise.
3069 (val_resolve): Likewise.
3070 (struct count_use_info): Likewise for field "insn".
3071 (log_op_type): Likewise for param "insn".
3072 (reverse_op): Likewise.
3073 (prepare_call_arguments): Likewise.
3074 (add_with_sets): The initial param takes an insn, but we can't
3075 yet strengthen it from rtx to rtx_insn * since it's used as a
3076 cselib_record_sets_hook callback. For now rename initial param
3077 from "insn" to "uncast_insn", and introduce a local "insn" of
3078 the stronger rtx_insn * type, with a checked cast.
3079 (compute_bb_dataflow): Strengthen local "insn" from rtx to
3081 (emit_note_insn_var_location): Likewise.
3082 (emit_notes_for_changes): Likewise.
3083 (emit_notes_for_differences): Likewise.
3084 (next_non_note_insn_var_location): Likewise for return type and
3086 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
3087 (vt_initialize): Likewise for local "insn".
3088 (delete_debug_insns): Likewise for locals "insn" and "next".
3090 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3092 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
3094 (mark_constant_pool): Likewise for local "insn".
3096 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3098 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
3100 (dead_debug_promote_uses): Likewise.
3101 (dead_debug_insert_temp): Likewise.
3103 2014-08-23 David Malcolm <dmalcolm@redhat.com>
3105 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
3106 from const_rtx to const rtx_insn *.
3107 (store_killed_after): Likewise. Strengthen locals "last", "act"
3108 from rtx to rtx_insn *.
3109 (store_killed_before): Strengthen param "insn" from const_rtx to
3110 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
3111 (find_moveable_store): Strengthen param "insn" from rtx to
3113 (compute_store_table): Likewise for local "insn".
3114 (insert_insn_start_basic_block): Likewise for param "insn" and
3115 locals "prev", "before", "insn".
3116 (insert_store): For now, add a checked cast to rtx_insn * on the
3117 result of gen_move_insn.
3118 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
3120 (replace_store_insn): Likewise. For now, add a checked cast to
3121 rtx_insn * on the result of gen_move_insn.
3123 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3125 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
3127 (expand_sjlj_dispatch_table): Likewise.
3129 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3131 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
3132 "insn" from rtx to rtx_insn *.
3134 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3136 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
3137 "insn" from rtx to rtx_insn *.
3138 (dup_block_and_redirect): Likewise for param 3 "before".
3140 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
3141 from rtx to rtx_insn *.
3142 (move_insn_for_shrink_wrap): Likewise.
3143 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
3144 (dup_block_and_redirect): Likewise for param "before" and local
3146 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
3148 (convert_to_simple_return): Likewise for local "start".
3150 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
3151 Strengthen local "insn" from rtx to rtx_insn *, for use when
3152 invoking requires_stack_frame_p.
3154 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3156 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
3158 (speculate_expr): Likewise for locals "orig_insn_rtx",
3160 (eq_transformed_insns): Likewise for locals "i1", "i2".
3161 (check_for_new_jump): Likewise for return type and local "end".
3162 (find_new_jump): Likewise for return type and local "jump".
3163 (sel_split_edge): Likewise for local "jump".
3164 (sel_create_recovery_block): Likewise.
3165 (sel_redirect_edge_and_branch_force): Likewise.
3166 (sel_redirect_edge_and_branch): Likewise.
3168 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3170 * sel-sched.c (substitute_reg_in_expr): Strengthen local
3171 "new_insn" from rtx to rtx_insn *.
3172 (create_insn_rtx_with_rhs): Likewise for return type and for local
3174 (create_insn_rtx_with_lhs): Likewise.
3175 (create_speculation_check): Likewise for local "insn_rtx".
3176 (implicit_clobber_conflict_p): Likewise for local "insn".
3177 (get_expr_cost): Likewise.
3178 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
3179 (move_cond_jump): Likewise for locals "next", "prev", "link",
3180 "head", "from", "to".
3182 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3184 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
3185 "next" from rtx to rtx_insn *.
3186 (find_conditional_protection): Likewise for local "next".
3187 (is_conditionally_protected): Likewise for local "insn1".
3188 (is_pfree): Likewise for locals "insn1", "insn2".
3190 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3192 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
3193 from rtx to rtx_insn *.
3195 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
3196 locals "insn1", "insn2" from rtx to rtx_insn *.
3197 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
3198 locals "insn", "prev", "last_jump", "next_tail".
3199 (schedule_ebb): Likewise for params "head", "tail".
3200 (schedule_ebbs): Likewise for locals "tail", "head".
3202 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
3203 to rtx_insn on "last_insn" in one of the invocations of
3206 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3208 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
3209 "elem", "insn" from rtx to rtx_insn *.
3210 (change_spec_dep_to_hard): Likewise.
3211 (get_back_and_forw_lists): Likewise for local "con".
3212 (sd_add_dep): Likewise for locals "elem", "insn".
3213 (sd_resolve_dep): Likewise for locals "pro", "con".
3214 (sd_unresolve_dep): Likewise.
3215 (sd_delete_dep): Likewise.
3216 (chain_to_prev_insn): Likewise for local "pro".
3217 (find_inc): Likewise for locals "pro", "con".
3219 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3221 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
3223 (reg_set_between_p): Strengthen local "insn" from const_rtx to
3225 (modified_between_p): Strengthen local "insn" from rtx to
3227 (remove_reg_equal_equiv_notes_for_regno): Likewise.
3228 (keep_with_call_p): Strengthen local "i2" from const_rtx to
3231 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3233 * resource.c (next_insn_no_annul): Strengthen local "next" from
3235 (mark_referenced_resources): Likewise for local "insn".
3237 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3239 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
3241 (find_reloads): Likewise for param 1.
3242 (subst_reloads): Likewise for sole param.
3243 (find_equiv_reg): Likwise for param 2.
3244 (regno_clobbered_p): Likwise for param 2.
3245 (reload): Likewise for param 1.
3247 * caller-save.c (save_call_clobbered_regs): Strengthen local
3248 "insn" from rtx to rtx_insn *.
3249 (insert_one_insn): Likewise for local "insn".
3251 * reload.c (this_insn): Likewise for this global.
3252 (find_reloads): Likewise for param "insn".
3253 (find_reloads_toplev): Likewise.
3254 (find_reloads_address): Likewise.
3255 (subst_reg_equivs): Likewise.
3256 (update_auto_inc_notes): Likewise.
3257 (find_reloads_address_1): Likewise.
3258 (find_reloads_subreg_address): Likewise.
3259 (subst_reloads): Likewise.
3260 (find_equiv_reg): Likewise, also for local "p".
3261 (regno_clobbered_p): Likewise for param "insn".
3263 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
3265 (spill_reg_store): Likewise for the elements of this array.
3266 (remove_init_insns): Likewise for local "equiv_insn".
3267 (will_delete_init_insn_p): Likewise for param "insn".
3268 (reload): Likewise for param ""first" and local "insn".
3269 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
3271 (calculate_elim_costs_all_insns): Likewise.
3272 (delete_caller_save_insns): Likewise.
3273 (spill_failure): Likewise for param "insn".
3274 (delete_dead_insn): Likewise.
3275 (set_label_offsets): Likewise.
3276 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
3278 (elimination_costs_in_insn): Likewise for param "insn".
3279 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
3280 when referring to an insn.
3281 (set_initial_label_offsets): Likewise.
3282 (set_offsets_for_label): Strengthen param "insn" from rtx to
3284 (init_eliminable_invariants): Likewise for param "first" and local
3286 (fixup_eh_region_note): Likewise for param "insn".
3287 (reload_as_needed): Likewise for locals "prev", "insn",
3288 "old_next", "old_prev", "next".
3289 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
3291 (reload_inheritance_insn): Strengthen elements of this array from
3293 (failed_reload): Likewise for param "insn".
3294 (choose_reload_regs): Likewise for local "insn". Replace use of
3295 NULL_RTX with NULL when referring to an insn.
3296 (input_reload_insns): Strengthen elements of this array from rtx
3298 (other_input_address_reload_insns): Likewise for this global.
3299 (other_input_reload_insns): Likewise for this global.
3300 (input_address_reload_insns): Likwise for the elements of this
3302 (inpaddr_address_reload_insns): Likwise for the elements of this
3304 (output_reload_insns): Likewise for the elements of this array.
3305 (output_address_reload_insns): Likewise for the elements of this
3307 (outaddr_address_reload_insns): Likewise for the elements of this
3309 (operand_reload_insns): Likewise for this global.
3310 (other_operand_reload_insns): Likewise for this global.
3311 (other_output_reload_insns): Likewise for the elements of this
3313 (new_spill_reg_store): Likewise for the elements of this
3315 (emit_input_reload_insns): Likewise for locals "insn", "temp".
3316 Strengthen local "where" from rtx * to rtx_insn **.
3317 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
3318 from rtx to rtx_insn *.
3319 (do_input_reload): Likewise for local "insn".
3320 (do_output_reload): Likewise for local "insn".
3321 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
3322 (emit_insn_if_valid_for_reload): Likewise for return type and local
3323 "last". Add checked cast to rtx_insn when returning "insn" since
3324 this has been through emit_insn.
3325 (gen_reload): Strengthen return type and locals "last", "insn", "set"
3326 from rtx to rtx_insn *. Add checked cast to rtx_insn when
3327 returning "insn" since it's been through
3328 emit_insn_if_valid_for_reload at this point.
3329 (delete_output_reload): Strengthen param "insn" and locals
3330 "output_reload_insn", "i2" from rtx to rtx_insn *.
3331 (delete_address_reloads): Likewise for params "dead_insn",
3332 "current_insn" and locals "prev", "next".
3333 (delete_address_reloads_1): Likewise for params "dead_insn",
3334 "current_insn" and locals "prev", "i2".
3335 (inc_for_reload): Likewise for locals "last", "add_insn".
3336 (add_auto_inc_notes): Strengthen param "insn" from rtx to
3339 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
3340 param of this duplicate of the prototype from reload.h
3342 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3344 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
3346 (regstat_bb_compute_calls_crossed): Likewise.
3348 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3350 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
3352 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
3354 (regrename_analyze): Strengthen local "insn" from rtx to
3356 (scan_rtx_reg): Likewise for param "insn".
3357 (scan_rtx_address): Likewise.
3358 (scan_rtx): Likewise.
3359 (restore_operands): Likewise.
3360 (record_out_operands): Likewise.
3361 (build_def_use): Likewise for local "insn". Replace use of
3362 NULL_RTX with NULL when dealing with an insn.
3364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3366 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
3367 * reginfo.c (reg_scan): Likewise, also for local "insn".
3368 (reg_scan_mark_refs): Likewise for param "insn".
3369 (init_subregs_of_mode): Likewise for local "insn".
3371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3373 * regcprop.c (struct queued_debug_insn_change): Strengthen field
3374 "insn" from rtx to rtx_insn *.
3375 (replace_oldest_value_reg): Likewise for param "insn".
3376 (replace_oldest_value_addr): Likewise.
3377 (replace_oldest_value_mem): Likewise.
3378 (apply_debug_insn_changes): Likewise for local "last_insn".
3379 (copyprop_hardreg_forward_1): Likewise for local "insn".
3381 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3383 * reg-stack.c (next_flags_user): Strengthen return type and param
3384 "insn" from rtx to rtx_insn *.
3385 (straighten_stack): Likewise for param "insn".
3386 (check_asm_stack_operands): Likewise.
3387 (remove_regno_note): Likewise.
3388 (emit_pop_insn): Likewise for return type, param "insn", local
3390 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
3391 "limit" from rtx to rtx_insn *.
3392 (swap_to_top): Likewise for param "insn".
3393 (move_for_stack_reg): Likewise.
3394 (move_nan_for_stack_reg): Likewise.
3395 (swap_rtx_condition): Likewise.
3396 (compare_for_stack_reg): Likewise.
3397 (subst_all_stack_regs_in_debug_insn): Likewise.
3398 (subst_stack_regs_pat): Likewise, and local "insn2".
3399 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
3401 (subst_stack_regs): Likewise.
3402 (change_stack): Likewise.
3403 (convert_regs_1): Likewise for locals "insn", "next".
3405 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3407 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
3409 (combine_set_extension): Likewise for param "curr_insn".
3410 (transform_ifelse): Likewise for param "def_insn".
3411 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
3412 from vec<rtx> * to vec<rtx_insn *> *.
3413 (is_cond_copy_insn): Likewise for param "insn".
3414 (struct ext_state): Strengthen the four vec fields from vec<rtx>
3416 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
3417 local "def_insn" from rtx to rtx_insn *.
3418 (get_sub_rtx): Likewise for param "def_insn".
3419 (merge_def_and_ext): Likewise.
3420 (combine_reaching_defs): Likewise.
3421 (add_removable_extension): Likewise for param "insn".
3422 (find_removable_extensions): Likewise for local "insn".
3423 (find_and_remove_re): Likewise for locals "curr_insn" and
3424 "def_insn". Strengthen locals "reinsn_del_list" and
3425 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
3427 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3429 * recog.c (split_insn): Strengthen param "insn" and locals
3430 "first", "last" from rtx to rtx_insn *.
3431 (split_all_insns): Likewise for locals "insn", "next".
3432 (split_all_insns_noflow): Likewise.
3434 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3436 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
3438 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3439 (debug_rtx_find): Likewise for param 1 "x".
3441 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
3442 const_rtx to const rtx_insn *. Likewise for local "insn".
3443 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
3444 (debug_rtx_find): Likewise for param 1 "x".
3445 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
3446 from const_rtx to const rtx_insn * within the appropriate cases of
3447 the switch statement.
3449 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
3450 Strengthen local "insns" from rtx to rtx_insn * since this is
3451 passed to a call to debug_rtx_list.
3453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3455 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
3458 * function.c (stack_protect_epilogue): Add checked cast to
3459 rtx_insn for now when invoking predict_insn_def.
3461 * predict.c (predict_insn): Strengthen param "insn" from rtx to
3463 (predict_insn_def): Likewise.
3464 (rtl_predict_edge): Likewise for local "last_insn".
3465 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
3467 (combine_predictions_for_insn): Strengthen param "insn" from rtx
3469 (bb_estimate_probability_locally): Likewise for local "last_insn".
3470 (expensive_function_p): Likewise for local "insn".
3472 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
3473 local "jmp", since this is used when invoking predict_insn_def.
3475 2014-08-22 Marek Polacek <polacek@redhat.com>
3478 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
3480 2014-08-22 Marek Polacek <polacek@redhat.com>
3483 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
3484 a comparison in parens.
3485 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
3488 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3490 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
3493 * cprop.c (fis_get_condition): Likewise.
3495 * postreload.c (reload_cse_regs): Likewise for param "first".
3496 (reload_cse_simplify): Likewise for param "insn".
3497 (reload_cse_regs_1): Likewise for local "insn".
3498 (reload_cse_simplify_set): Likewise for param "insn".
3499 (reload_cse_simplify_operands): Likewise.
3500 (struct reg_use): Likewise for field "insn".
3501 (reload_combine_purge_insn_uses): Likewise for param "insn".
3502 (fixup_debug_insns): Likewise for params "from", "to" and local
3504 (try_replace_in_use): Likewise for local "use_insn".
3505 (reload_combine_recognize_const_pattern): Likewise for param
3506 "insn" and locals "add_moved_after_insn", "use_insn".
3507 (reload_combine_recognize_pattern): Likewise for param "insn" and
3509 (reload_combine): Likewise for locals "insn", "prev".
3510 (reload_combine_note_use): Likewise for param "insn".
3511 (move2add_use_add2_insn): Likewise.
3512 (move2add_use_add3_insn): Likewise.
3513 (reload_cse_move2add): Likewise, also for local "next".
3514 (move2add_note_store): Likewise for local "insn".
3516 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3518 * postreload-gcse.c (struct occr): Strengthen field "insn" from
3520 (struct unoccr): Likewise.
3521 (struct modifies_mem): Likewise.
3522 (alloc_mem): Likewise for local "insn".
3523 (insert_expr_in_table): Likewise for param "insn".
3524 (dump_expr_hash_table_entry): Likewise for local "insn".
3525 (oprs_unchanged_p): Likewise for param "insn".
3526 (load_killed_in_block_p): Likewise for local "setter".
3527 (record_last_reg_set_info): Likewise for param "insn".
3528 (record_last_reg_set_info_regno): Likewise.
3529 (record_last_mem_set_info): Likewise.
3530 (record_last_set_info): Likewise for local "last_set_insn".
3531 (record_opr_changes): Likewise for param "insn".
3532 (hash_scan_set): Likewise.
3533 (compute_hash_table): Likewise for local "insn".
3534 (get_avail_load_store_reg): Likewise for param "insn".
3535 (eliminate_partially_redundant_load): Likewise, also for locals
3536 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
3538 (eliminate_partially_redundant_loads): Likewise for local "insn".
3540 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3542 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
3544 (expand_binop): Likewise for locals "entry_last", "last", "insns"
3545 (expand_twoval_unop): Likewise for locals entry_last", "last".
3546 (expand_twoval_binop): Likewise.
3547 (expand_twoval_binop_libfunc): Likewise for local "insns".
3548 (widen_leading): Likewise for local "last".
3549 (expand_doubleword_clz): Likewise for local "seq". Strengthen
3550 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
3551 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
3552 (expand_parity): Likewise for locals "last" and "seq".
3553 (expand_ffs): Likewise for local "seq". Strengthen local
3554 "nonzero_label" from rtx to rtx_code_label *.
3555 (expand_absneg_bit): Strengthen local "insns" from rtx to
3557 (expand_unop_direct): Likewise for local "last".
3558 (expand_unop): Likewise for locals "last", "insns".
3559 (expand_abs_nojump): Likewise for local "last".
3560 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
3561 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
3563 (expand_copysign_absneg): Strengthen local "label" from rtx to
3565 (expand_copysign_bit): Strengthen local "insns" from rtx to
3567 (struct no_conflict_data): Likewise for fields "first", "insn".
3568 (emit_libcall_block_1): Likewise for param "insns" and locals
3569 "next", "last", "insn".
3570 (emit_libcall_block): For now, add a checked cast to rtx_insn *
3571 on "insns" when invoking emit_libcall_block_1. Ultimately we
3572 want to strengthen insns itself.
3573 (prepare_cmp_insn): Strengthen local "last" from rtx to
3575 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
3576 (prepare_float_lib_cmp): Likewise for local "insns".
3577 (emit_conditional_move): Likewise for local "last".
3578 (emit_conditional_add): Likewise.
3579 (have_sub2_insn): Likewise for local "seq".
3580 (expand_float): Likewise for local "insns". Strengthen locals
3581 "label", "neglabel" from rtx to rtx_code_label *.
3582 (expand_fix): Likewise for locals "last", "insn", "insns" (to
3583 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
3584 (expand_fixed_convert): Likewise for local "insns" (to
3586 (expand_sfix_optab): Likewise for local "last".
3587 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
3588 to rtx_code_label *.
3589 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
3590 from rtx to rtx_insn *.
3591 (expand_atomic_fetch_op): Likewise for local "insn".
3592 (maybe_legitimize_operand_same_code): Likewise for local "last".
3593 (maybe_legitimize_operands): Likewise.
3595 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3597 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
3598 "insn" from rtx to rtx_insn *.
3599 (ps_rtl_insn): Likewise for return type.
3600 (doloop_register_get): Likewise for params "head", "tail" and
3601 locals "insn", "first_insn_not_to_check".
3602 (schedule_reg_move): Likewise for local "this_insn".
3603 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
3604 of gen_move_insn for now.
3605 (reset_sched_times): Strengthen local "insn" from rtx to
3607 (permute_partial_schedule): Likewise.
3608 (duplicate_insns_of_cycles): Likewise for local "u_insn".
3609 (dump_insn_location): Likewise for param "insn".
3610 (loop_canon_p): Likewise for local "insn".
3611 (sms_schedule): Likewise.
3612 (print_partial_schedule): Likewise.
3613 (ps_has_conflicts): Likewise.
3615 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3617 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
3618 "tailp" from rtx * to rtx_insn **.
3620 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
3621 from rtx to rtx_insn *.
3622 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
3623 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
3624 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
3626 * modulo-sched.c (const_iteration_count): Strengthen return type
3627 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
3628 use of NULL_RTX with NULL when working with insns.
3629 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
3631 (sms_schedule): Likewise.
3632 * sched-rgn.c (init_ready_list): Likewise, also for locals
3633 "src_head" and "src_next_tail".
3634 (compute_block_dependences): Likewise.
3635 (free_block_dependencies): Likewise.
3636 (debug_rgn_dependencies): Likewise.
3637 (free_rgn_deps): Likewise.
3638 (compute_priorities): Likewise.
3639 (schedule_region): Likewise.
3640 * sel-sched.c (find_ebb_boundaries): Likewise.
3642 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
3643 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
3645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3647 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
3648 from rtx to rtx_insn *.
3649 (new_seginfo): Likewise for param "insn".
3650 (create_pre_exit): Likewise for locals "last_insn",
3651 "before_return_copy", "return_copy".
3652 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
3655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3657 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
3658 from rtx to rtx_insn *.
3659 (lra_push_insn): Likewise for 1st param.
3660 (lra_push_insn_and_update_insn_regno_info): Likewise.
3661 (lra_pop_insn): Likewise for return type.
3662 (lra_invalidate_insn_data): Likewise for 1st param.
3663 (lra_set_insn_deleted): Likewise.
3664 (lra_delete_dead_insn): Likewise.
3665 (lra_process_new_insns): Likewise for first 3 params.
3666 (lra_set_insn_recog_data): Likewise for 1st param.
3667 (lra_update_insn_recog_data): Likewise.
3668 (lra_set_used_insn_alternative): Likewise.
3669 (lra_invalidate_insn_regno_info): Likewise.
3670 (lra_update_insn_regno_info): Likewise.
3671 (lra_former_scratch_operand_p): Likewise.
3672 (lra_eliminate_regs_1): Likewise.
3673 (lra_get_insn_recog_data): Likewise.
3675 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
3678 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
3680 (substitute_within_insn): New.
3681 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
3682 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
3683 Replace call to "substitute" with call to substitute_within_insn.
3685 * lra-constraints.c (curr_insn): Strengthen from rtx to
3687 (get_equiv_with_elimination): Likewise for param "insn".
3688 (match_reload): Strengthen params "before" and "after" from rtx *
3690 (emit_spill_move): Likewise for return type. Add a checked cast
3691 to rtx_insn * on result of gen_move_insn for now.
3692 (check_and_process_move): Likewise for local "before". Replace
3693 NULL_RTX with NULL when referring to insns.
3694 (process_addr_reg): Strengthen params "before" and "after" from
3695 rtx * to rtx_insn **.
3696 (insert_move_for_subreg): Likewise.
3697 (simplify_operand_subreg): Strengthen locals "before" and "after"
3698 from rtx to rtx_insn *.
3699 (process_address_1): Strengthen params "before" and "after" from
3700 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
3702 (process_address): Strengthen params "before" and "after" from
3703 rtx * to rtx_insn **.
3704 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
3705 (curr_insn_transform): Strengthen locals "before" and "after"
3706 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
3708 (loc_equivalence_callback): Update cast of "data", changing
3709 resulting type from rtx to rtx_insn *.
3710 (substitute_pseudo_within_insn): New.
3711 (inherit_reload_reg): Strengthen param "insn" from rtx to
3712 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
3713 NULL when referring to insns. Add a checked cast to rtx_insn *
3714 when using usage_insn to invoke lra_update_insn_regno_info.
3715 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
3716 likewise for locals "restore", "save". Add checked casts to
3717 rtx_insn * when using usage_insn to invoke
3718 lra_update_insn_regno_info and lra_process_new_insns. Replace
3719 NULL_RTX with NULL when referring to insns.
3720 (split_if_necessary): Strengthen param "insn" from rtx to
3722 (update_ebb_live_info): Likewise for params "head", "tail" and local
3724 (get_last_insertion_point): Likewise for return type and local "insn".
3725 (get_live_on_other_edges): Likewise for local "last".
3726 (inherit_in_ebb): Likewise for params "head", "tail" and locals
3727 "prev_insn", "next_insn", "restore".
3728 (remove_inheritance_pseudos): Likewise for local "prev_insn".
3729 (undo_optional_reloads): Likewise for local "insn".
3731 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
3733 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
3735 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
3737 (spill_pseudos): Likewise for local "insn".
3738 (init_elimination): Likewise.
3739 (process_insn_for_elimination): Likewise for param "insn".
3741 * lra-lives.c (curr_insn): Likewise.;
3743 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
3744 (remove_pseudos): Likewise for param "insn".
3745 (spill_pseudos): Likewise for local "insn".
3746 (lra_final_code_change): Likewise for locals "insn", "curr".
3748 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
3749 (lra_set_insn_deleted): Likewise.
3750 (lra_delete_dead_insn): Likewise, and for local "prev".
3751 (new_insn_reg): Likewise for param "insn".
3752 (lra_set_insn_recog_data): Likewise.
3753 (lra_update_insn_recog_data): Likewise.
3754 (lra_set_used_insn_alternative): Likewise.
3755 (get_insn_freq): Likewise.
3756 (invalidate_insn_data_regno_info): Likewise.
3757 (lra_invalidate_insn_regno_info): Likewise.
3758 (lra_update_insn_regno_info): Likewise.
3759 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
3761 (lra_push_insn_1): Strengthen param "insn" from rtx to
3763 (lra_push_insn): Likewise.
3764 (lra_push_insn_and_update_insn_regno_info): Likewise.
3765 (lra_pop_insn): Likewise for return type and local "insn".
3766 (push_insns): Likewise for params "from", "to", and local "insn".
3767 (setup_sp_offset): Likewise for params "from", "last" and locals
3769 (lra_process_new_insns): Likewise for params "insn", "before",
3770 "after" and local "last".
3771 (struct sloc): Likewise for field "insn".
3772 (lra_former_scratch_operand_p): Likewise for param "insn".
3773 (remove_scratches): Likewise for locals "insn", "last".
3774 (check_rtl): Likewise for local "insn".
3775 (add_auto_inc_notes): Likewise for param "insn".
3776 (update_inc_notes): Likewise for local "insn".
3777 (lra): Replace NULL_RTX with NULL when referring to insn.
3779 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3781 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
3783 (resolve_reg_notes): Likewise.
3784 (resolve_simple_move): Likewise for return type, param "insn", and
3785 locals "insns", "minsn".
3786 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
3787 (resolve_use): Likewise.
3788 (resolve_debug): Likewise.
3789 (find_decomposable_shift_zext): Likewise.
3790 (resolve_shift_zext): Likewise for return type, param "insn", and
3791 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
3792 (decompose_multiword_subregs): Likewise for local "insn",
3793 "orig_insn", "decomposed_shift", "end".
3795 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3797 * basic-block.h (basic_block split_edge_and_insert): Strengthen
3798 param "insns" from rtx to rtx_insn *.
3800 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
3802 (struct iv_to_split): Likewise.
3803 (loop_exit_at_end_p): Likewise for local "insn".
3804 (split_edge_and_insert): Likewise for param "insns".
3805 (compare_and_jump_seq): Likewise for return type, param "cinsn",
3806 and locals "seq", "jump".
3807 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
3808 "branch_code"; update invocations of compare_and_jump_seq to
3809 eliminate NULL_RTX in favor of NULL.
3810 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
3812 (reset_debug_uses_in_loop): Likewise.
3813 (analyze_insn_to_expand_var): Likewise for param "insn".
3814 (analyze_iv_to_split_insn): Likewise.
3815 (analyze_insns_in_loop): Likewise for local "insn".
3816 (insert_base_initialization): Likewise for param
3817 "insn" and local "seq".
3818 (split_iv): Likewise for param "insn" and local "seq".
3819 (expand_var_during_unrolling): Likewise for param "insn".
3820 (insert_var_expansion_initialization): Likewise for local "seq".
3821 (combine_var_copies_in_loop_exit): Likewise.
3822 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
3824 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
3825 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
3828 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3830 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
3832 (iv_analyze_result): Likewise.
3833 (iv_analyze_expr): Likewise.
3836 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
3837 local "def_insn" from rtx to rtx_insn *.
3838 (get_biv_step_1): Likewise for local "insn".
3839 (iv_analyze_expr): Likewise for param "insn".
3840 (iv_analyze_def): Likewise for local "insn".
3841 (iv_analyze_op): Likewise for param "insn".
3842 (iv_analyze): Likewise.
3843 (iv_analyze_result): Likewise.
3845 (suitable_set_for_replacement): Likewise.
3846 (simplify_using_initial_values): Likewise for local "insn".
3847 (iv_number_of_iterations): Likewise for param "insn".
3848 (check_simple_exit): Add checked cast to rtx_insn when invoking
3849 iv_number_of_iterations for now (until get_condition is
3852 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
3853 "insn" from rtx to rtx_insn *.
3854 (analyze_insns_in_loop): Likewise for local "insn".
3856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3858 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
3860 (struct invariant): Likewise.
3861 (hash_invariant_expr_1): Likewise for param "insn".
3862 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
3863 (find_exits): Likewise for local "insn".
3864 (create_new_invariant): Likewise for param "insn".
3865 (check_dependencies): Likewise.
3866 (find_invariant_insn): Likewise.
3867 (record_uses): Likewise.
3868 (find_invariants_insn): Likewise.
3869 (find_invariants_bb): Likewise for local "insn".
3870 (get_pressure_class_and_nregs): Likewise for param "insn".
3871 (calculate_loop_reg_pressure): Likewise for local "insn".
3873 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3875 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
3877 (add_test): Likewise for locals "seq", "jump".
3878 (doloop_modify): Likewise for locals "sequence", "jump_insn".
3880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3882 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
3884 (rebuild_jump_labels_chain): Likewise for param "chain".
3886 * cfgexpand.c (pass_expand::execute): Add checked cast to
3887 rtx_insn * when calling rebuild_jump_labels_chain in region where
3888 we know e->insns.r is non-NULL.
3890 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
3892 (rebuild_jump_labels): Likewise.
3893 (rebuild_jump_labels_chain): Likewise for param "chain".
3894 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
3895 (init_label_info): Likewise for param "f".
3896 (maybe_propagate_label_ref): Likewise for params "jump_insn",
3897 "prev_nonjump_insn".
3898 (mark_all_labels): Likewise for param "f" and locals "insn",
3899 "prev_nonjump_insn".
3901 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3903 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
3904 from rtx to rtx_insn *insn.
3905 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
3906 (ira_add_allocno_copy): Likewise.
3907 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
3909 (ira_create_copy): Likewise.
3910 (ira_add_allocno_copy): Likewise.
3911 (create_bb_allocnos): Likewise for local "insn".
3912 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
3913 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
3914 process_regs_for_copy for rtx_insn * param.
3915 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
3916 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
3917 process_regs_for_copy for rtx_insn * param.
3918 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
3919 * ira-costs.c (record_reg_classes): Likewise for param "insn".
3920 (record_operand_costs): Likewise.
3921 (scan_one_insn): Likewise for return type, and for param "insn".
3922 (process_bb_for_costs): Likewise for local "insn".
3923 (process_bb_node_for_hard_reg_moves): Likewise.
3924 * ira-emit.c (struct move): Likewise for field "insn".
3925 (create_move): Eliminate use of NULL_RTX when dealing with an
3927 (emit_move_list): Strengthen return type and locals "result",
3928 "insn" from rtx to rtx_insn *insn.
3929 (emit_moves): Likewise for locals "insns", "tmp".
3930 (ira_emit): Likewise for local "insn".
3931 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
3933 (find_call_crossed_cheap_reg): Likewise.
3934 (process_bb_node_lives): Likewise for local "insn".
3935 * ira.c (decrease_live_ranges_number): Likewise.
3936 (compute_regs_asm_clobbered): Likewise.
3937 (build_insn_chain): Likewise.
3938 (find_moveable_pseudos): Likewise, also locals "def_insn",
3939 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
3940 to rtx_insn **. Add a checked cast when assigning from
3941 "closest_use" into closest_uses array in a region where we know
3942 it's a non-NULL insn.
3943 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
3945 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
3946 "last_interesting_insn", "uin".
3947 (move_unallocated_pseudos): Likewise for locals "def_insn",
3948 "move_insn", "newinsn".
3950 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3952 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
3953 Strengthen locals "done_label", "do_error" from rtx to
3955 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
3956 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
3958 (ubsan_expand_si_overflow_neg_check): Likewise for locals
3959 "done_label", "do_error" to rtx_code_label * and local "last" to
3961 (ubsan_expand_si_overflow_mul_check): Likewise for locals
3962 "done_label", "do_error", "large_op0", "small_op0_large_op1",
3963 "one_small_one_large", "both_ops_large", "after_hipart_neg",
3964 "after_lopart_neg", "do_overflow", "hipart_different" to
3965 rtx_code_label * and local "last" to rtx_insn *.
3967 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3969 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
3970 "insn" and "move_insn" from rtx to rtx_insn *.
3972 2014-08-22 David Malcolm <dmalcolm@redhat.com>
3974 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
3976 (cheap_bb_rtx_cost_p): Likewise.
3977 (first_active_insn): Likewise for return type and local "insn".
3978 (last_active_insn): Likewise for return type and locals "insn",
3980 (struct noce_if_info): Likewise for fields "jump", "insn_a",
3982 (end_ifcvt_sequence): Likewise for return type and locals "insn",
3984 (noce_try_move): Likewise for local "seq".
3985 (noce_try_store_flag): Likewise.
3986 (noce_try_store_flag_constants): Likewise.
3987 (noce_try_addcc): Likewise.
3988 (noce_try_store_flag_mask): Likewise.
3989 (noce_try_cmove): Likewise.
3990 (noce_try_minmax): Likewise.
3991 (noce_try_abs): Likewise.
3992 (noce_try_sign_mask): Likewise.
3993 (noce_try_bitop): Likewise.
3994 (noce_can_store_speculate_p): Likewise for local "insn".
3995 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
3997 (check_cond_move_block): Likewise for local "insn".
3998 (cond_move_convert_if_block): Likewise.
3999 (cond_move_process_if_block): Likewise for locals "seq",
4001 (noce_find_if_block): Likewise for local "jump".
4002 (merge_if_block): Likewise for local "last".
4003 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
4004 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
4005 (block_has_only_trap): Likewise for return type and local "trap".
4006 (find_if_case_1): Likewise for local "jump".
4007 (dead_or_predicable): Likewise for locals "head", "end", "jump",
4010 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4012 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
4013 "last_insn", "loop_end" from rtx to rtx_insn *.
4015 * hw-doloop.c (scan_loop): Likewise for local "insn".
4016 (discover_loop): Likewise for param "tail_insn".
4017 (discover_loops): Likewise for local "tail".
4019 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
4020 cast to rtx_insn * when assigning from an rtx local to a
4021 hwloop_info's "last_insn" field.
4023 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4025 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
4026 (add_delay_dependencies): Strengthen local "pro" from rtx to
4028 (recompute_todo_spec): Likewise.
4029 (dep_cost_1): Likewise for locals "insn", "used".
4030 (schedule_insn): Likewise for local "dbg".
4031 (schedule_insn): Likewise for locals "pro", "next".
4032 (unschedule_insns_until): Likewise for local "con".
4033 (restore_pattern): Likewise for local "next".
4034 (estimate_insn_tick): Likewise for local "pro".
4035 (resolve_dependencies): Likewise for local "next".
4036 (fix_inter_tick): Likewise.
4037 (fix_tick_ready): Likewise for local "pro".
4038 (add_to_speculative_block): Likewise for locals "check", "twin",
4040 (sched_extend_bb): Likewise for locals "end", "insn".
4041 (init_before_recovery): Likewise for local "x".
4042 (sched_create_recovery_block): Likewise for local "barrier".
4043 (create_check_block_twin): Likewise for local "pro".
4044 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
4046 (unlink_bb_notes): Update for change to type of bb_header.
4047 Strengthen locals "prev", "label", "note", "next" from rtx to
4049 (clear_priorities): Likewise for local "pro".
4051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4053 * gcse.c (struct occr): Strengthen field "insn" from rtx to
4055 (test_insn): Likewise for this global.
4056 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
4058 (oprs_anticipatable_p): Likewise.
4059 (oprs_available_p): Likewise.
4060 (insert_expr_in_table): Strengthen param "insn" from rtx to
4062 (hash_scan_set): Likewise.
4063 (hash_scan_clobber): Likewise.
4064 (hash_scan_call): Likewise.
4065 (hash_scan_insn): Likewise.
4066 (compute_hash_table_work): Likewise for local "insn".
4067 (process_insert_insn): Likewise for return type and local "pat".
4068 (insert_insn_end_basic_block): Likewise for locals "new_insn",
4069 "pat", "pat_end", "maybe_cc0_setter".
4070 (pre_edge_insert): Likewise for local "insn".
4071 (pre_insert_copy_insn): Likewise for param "insn".
4072 (pre_insert_copies): Likewise for local "insn".
4073 (struct set_data): Likewise for field "insn".
4074 (single_set_gcse): Likewise for param "insn".
4075 (gcse_emit_move_after): Likewise.
4076 (pre_delete): Likewise for local "insn".
4077 (update_bb_reg_pressure): Likewise for param "from" and local
4079 (should_hoist_expr_to_dom): Likewise for param "from".
4080 (hoist_code): Likewise for local "insn".
4081 (get_pressure_class_and_nregs): Likewise for param "insn".
4082 (calculate_bb_reg_pressure): Likewise for local "insn".
4083 (compute_ld_motion_mems): Likewise.
4085 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4087 * genpeep.c (main): Rename param back from "uncast_ins1" to
4088 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
4091 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
4093 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
4096 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
4097 documentation to state it is only for VSX operations.
4099 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
4100 constraint only active if VSX.
4102 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
4103 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
4106 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4108 * fwprop.c (single_def_use_dom_walker::before_dom_children):
4109 Strengthen local "insn" from rtx to rtx_insn *.
4110 (use_killed_between): Likewise for param "target_insn".
4111 (all_uses_available_at): Likewise for param "target_insn" and
4113 (update_df_init): Likewise for params "def_insn", "insn".
4114 (update_df): Likewise for param "insn".
4115 (try_fwprop_subst): Likewise for param "def_insn" and local
4117 (free_load_extend): Likewise for param "insn".
4118 (forward_propagate_subreg): Likewise for param "def_insn" and
4120 (forward_propagate_asm): Likewise for param "def_insn" and local
4122 (forward_propagate_and_simplify): Likewise for param "def_insn"
4123 and local "use_insn".
4124 (forward_propagate_into): Likewise for locals "def_insn" and
4127 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4129 * function.c (emit_initial_value_sets): Strengthen local "seq"
4130 from rtx to rtx_insn *.
4131 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
4133 (instantiate_virtual_regs): Likewise for local "insn".
4134 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
4135 (reorder_blocks_1): Likewise for param "insns" and local "insn".
4136 (expand_function_end): Likewise for locals "insn" and "seq".
4137 (epilogue_done): Likewise for local "insn".
4138 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
4140 (reposition_prologue_and_epilogue_notes): Likewise for locals
4141 "insn", "last", "note", "first".
4142 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
4143 (pass_match_asm_constraints::execute): Likewise for local "insn".
4145 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4147 * output.h (final_scan_insn): Strengthen return type from rtx to
4149 (final_forward_branch_p): Likewise for param.
4150 (current_output_insn): Likewise for this global.
4152 * final.c (rtx debug_insn): Likewise for this variable.
4153 (current_output_insn): Likewise.
4154 (get_attr_length_1): Rename param "insn" to "uncast_insn",
4155 adding "insn" back in as an rtx_insn * with a checked cast, so
4156 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
4158 (compute_alignments): Strengthen local "label" from rtx to
4160 (shorten_branches): Rename param from "first" to "uncast_first",
4161 introducing a new local rtx_insn * "first" using a checked cast to
4162 effectively strengthen "first" from rtx to rtx_insn * without
4163 affecting the type signature. Strengthen locals "insn", "seq",
4164 "next", "label" from rtx to rtx_insn *.
4165 (change_scope): Strengthen param "orig_insn" and local "insn" from
4167 (final_start_function): Rename param from "first" to "uncast_first",
4168 introducing a new local rtx_insn * "first" using a checked cast to
4169 effectively strengthen "first" from rtx to rtx_insn * without
4170 affecting the type signature. Strengthen local "insn" from rtx to
4172 (dump_basic_block_info): Strengthen param "insn" from rtx to
4174 (final): Rename param from "first" to "uncast_first",
4175 introducing a new local rtx_insn * "first" using a checked cast to
4176 effectively strengthen "first" from rtx to rtx_insn * without
4177 affecting the type signature. Strengthen locals "insn", "next"
4178 from rtx to rtx_insn *.
4179 (output_alternate_entry_point): Strengthen param "insn" from rtx to
4181 (call_from_call_insn): Strengthen param "insn" from rtx to
4183 (final_scan_insn): Rename param from "insn" to "uncast_insn",
4184 introducing a new local rtx_insn * "insn" using a checked cast to
4185 effectively strengthen "insn" from rtx to rtx_insn * without
4186 affecting the type signature. Strengthen return type and locals
4187 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
4188 now-redundant checked cast to rtx_insn * from both invocations of
4189 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
4190 introducing a local "call_insn" for use when invoking
4191 call_from_call_insn.
4192 (notice_source_line): Strengthen param "insn" from rtx to
4194 (leaf_function_p): Likewise for local "insn".
4195 (final_forward_branch_p): Likewise.
4196 (leaf_renumber_regs): Likewise for param "first".
4197 (rest_of_clean_state): Likewise for locals "insn" and "next".
4198 (self_recursive_call_p): Likewise for param "insn".
4199 (collect_fn_hard_reg_usage): Likewise for local "insn".
4200 (get_call_fndecl): Likewise for param "insn".
4201 (get_call_cgraph_rtl_info): Likewise.
4202 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
4203 introducing a new local rtx_insn * "insn" using a checked cast to
4204 effectively strengthen "insn" from rtx to rtx_insn * without
4205 affecting the type signature.
4207 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
4208 cast when assigning from param "insn" to current_output_insn.
4209 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
4210 so that we can assign it back to current_output_insn.
4212 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4214 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
4215 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
4216 atmxt540s and atmxt540sreva devices.
4217 * config/avr/avr-tables.opt: Regenerate.
4218 * config/avr/t-multilib: Regenerate.
4219 * doc/avr-mmcu.texi: Regenerate.
4221 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4223 * expr.c (convert_move): Strengthen local "insns" from rtx to
4225 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
4226 "top_label" from rtx to rtx_code_label *.
4227 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
4229 (emit_single_push_insn): Likewise for locals "prev", "last".
4230 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
4231 to rtx_code_label *.
4232 (store_constructor): Likewise for locals "loop_start", "loop_end".
4233 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
4235 (expand_expr_real_2): Likewise.
4236 (expand_expr_real_1): Strengthen local "label" from rtx to
4239 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4241 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
4242 from rtx to rtx_insn *.
4243 (store_bit_field_1): Likewise.
4244 (extract_bit_field_1): Likewise.
4245 (expand_mult_const): Likewise for local "insns".
4246 (expmed_mult_highpart): Strengthen local "label" from rtx to
4248 (expand_smod_pow2): Likewise.
4249 (expand_sdiv_pow2): Likewise.
4250 (expand_divmod): Strengthen locals "last", "insn" from rtx to
4251 rtx_insn *. Strengthen locals "label", "label1", "label2",
4252 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
4253 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
4254 (emit_store_flag): Likewise.
4255 (emit_store_flag_force): Strengthen local "label" from rtx to
4257 (do_cmp_and_jump): Likewise for param "label".
4259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4261 * explow.c (force_reg): Strengthen local "insn" from rtx to
4263 (adjust_stack_1): Likewise.
4264 (allocate_dynamic_stack_space): Likewise. Strengthen locals
4265 "final_label", "available_label", "space_available" from rtx to
4267 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
4268 (anti_adjust_stack_and_probe): Likewise.
4270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4272 * except.h (sjlj_emit_function_exit_after): Strengthen param
4273 "after" from rtx to rtx_insn *. This is only called with
4274 result of get_last_insn (in function.c) so type-change should be
4277 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
4278 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
4279 to rtx_insn *. These fields are only used from except.c so this
4280 type-change should be self-contained to this patch.
4282 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
4283 local "last" from rtx to rtx_insn *.
4284 (dw2_build_landing_pads): Likewise for local "seq".
4285 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
4286 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
4287 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
4289 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
4291 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
4292 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
4293 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
4294 referring to an insn. Strengthen local "dispatch_label" from
4295 rtx to rtx_code_label *.
4296 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
4298 (expand_eh_return): Strengthen local "around_label" from
4299 rtx to rtx_code_label *.
4300 (convert_to_eh_region_ranges): Strengthen locals "iter",
4301 "last_action_insn", "first_no_action_insn",
4302 "first_no_action_insn_before_switch",
4303 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
4305 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4307 * dwarf2out.c (last_var_location_insn): Strengthen this variable
4308 from rtx to rtx_insn *.
4309 (cached_next_real_insn): Likewise.
4310 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
4312 (dwarf2out_var_location): Strengthen locals "next_real",
4313 "next_note", "expected_next_loc_note", "last_start", "insn" from
4316 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4318 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
4319 from rtx to rtx_insn *.
4320 (create_pseudo_cfg): Likewise for local "insn".
4322 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4324 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
4325 from rtx to rtx_insn *.
4326 (df_bb_regno_last_def_find): Likewise.
4328 * df-problems.c (df_rd_bb_local_compute): Likewise.
4329 (df_lr_bb_local_compute): Likewise.
4330 (df_live_bb_local_compute): Likewise.
4331 (df_chain_remove_problem): Likewise.
4332 (df_chain_create_bb): Likewise.
4333 (df_word_lr_bb_local_compute): Likewise.
4334 (df_remove_dead_eq_notes): Likewise for param "insn".
4335 (df_note_bb_compute): Likewise for local "insn".
4336 (simulate_backwards_to_point): Likewise.
4337 (df_md_bb_local_compute): Likewise.
4339 * df-scan.c (df_scan_free_bb_info): Likewise.
4340 (df_scan_start_dump): Likewise.
4341 (df_scan_start_block): Likewise.
4342 (df_install_ref_incremental): Likewise for local "insn".
4343 (df_insn_rescan_all): Likewise.
4344 (df_reorganize_refs_by_reg_by_insn): Likewise.
4345 (df_reorganize_refs_by_insn_bb): Likewise.
4346 (df_recompute_luids): Likewise.
4347 (df_bb_refs_record): Likewise.
4348 (df_update_entry_exit_and_calls): Likewise.
4349 (df_bb_verify): Likewise.
4351 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4353 * ddg.h (struct ddg_node): Strengthen fields "insn" and
4354 "first_note" from rtx to rtx_insn *.
4355 (get_node_of_insn): Likewise for param 2 "insn".
4356 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4358 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
4360 (mem_write_insn_p): Likewise.
4361 (mem_access_insn_p): Likewise.
4362 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
4363 (def_has_ccmode_p): Likewise for param "insn".
4364 (add_cross_iteration_register_deps): Likewise for locals
4365 "def_insn" and "use_insn".
4366 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
4367 (build_intra_loop_deps): Likewise for local "src_insn".
4368 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
4370 (get_node_of_insn): Likewise for param "insn".
4372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4374 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
4375 (deletable_insn_p): Strengthen param "insn" from rtx to
4376 rtx_insn *. Add checked cast to rtx_call_insn when invoking
4377 find_call_stack_args, since this is guarded by CALL_P (insn).
4378 (marked_insn_p): Strengthen param "insn" from rtx to
4380 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
4381 invoking find_call_stack_args, since this is guarded by
4383 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
4384 rtx_insn *; we know this is an insn since this was called by
4386 (mark_nonreg_stores_2): Likewise.
4387 (mark_nonreg_stores): Strengthen param "insn" from rtx to
4389 (find_call_stack_args): Strengthen param "call_insn" from rtx to
4390 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
4392 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
4393 from rtx to rtx_insn *.
4394 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
4396 (delete_unmarked_insns): Likewise for locals "insn", "next".
4397 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
4398 (mark_reg_dependencies): Likewise for param "insn".
4399 (rest_of_handle_ud_dce): Likewise for local "insn".
4400 (word_dce_process_block): Likewise.
4401 (dce_process_block): Likewise.
4403 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4405 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
4406 from rtx to rtx_insn *.
4407 (struct change_cc_mode_args): Likewise for field "insn".
4408 (this_insn): Strengthen from rtx to rtx_insn *.
4409 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
4411 (validate_canon_reg): Strengthen param "insn" from rtx to
4413 (canon_reg): Likewise.
4414 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
4416 (record_jump_equiv): Strengthen param "insn" from rtx to
4418 (try_back_substitute_reg): Likewise, also for locals "prev",
4420 (find_sets_in_insn): Likewise for param "insn".
4421 (canonicalize_insn): Likewise.
4422 (cse_insn): Likewise. Add a checked cast.
4423 (invalidate_from_clobbers): Likewise for param "insn".
4424 (invalidate_from_sets_and_clobbers): Likewise.
4425 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
4427 (cse_prescan_path): Strengthen local "insn" from rtx to
4429 (cse_extended_basic_block): Likewise for locals "insn" and
4431 (cse_main): Likewise for param "f".
4432 (check_for_label_ref): Likewise for local "insn".
4433 (set_live_p): Likewise for second param ("insn").
4434 (insn_live_p): Likewise for first param ("insn") and for local
4436 (cse_change_cc_mode_insn): Likewise for first param "insn".
4437 (cse_change_cc_mode_insns): Likewise for first and second params
4439 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
4441 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
4444 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4445 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4446 Anna Tikhonova <anna.tikhonova@intel.com>
4447 Ilya Tocar <ilya.tocar@intel.com>
4448 Andrey Turetskiy <andrey.turetskiy@intel.com>
4449 Ilya Verbin <ilya.verbin@intel.com>
4450 Kirill Yukhin <kirill.yukhin@intel.com>
4451 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4453 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
4455 * config/i386/sse.md
4456 (define_mode_iterator VI248_AVX2): Delete.
4457 (define_mode_iterator VI2_AVX2_AVX512BW): New.
4458 (define_mode_iterator VI48_AVX2): Ditto.
4459 (define_insn <shift_insn><mode>3): Delete.
4460 (define_insn "<shift_insn><mode>3<mask_name>" with
4461 VI2_AVX2_AVX512BW): New.
4462 (define_insn "<shift_insn><mode>3<mask_name>" with
4465 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4467 Anna Tikhonova <anna.tikhonova@intel.com>
4468 Ilya Tocar <ilya.tocar@intel.com>
4469 Andrey Turetskiy <andrey.turetskiy@intel.com>
4470 Ilya Verbin <ilya.verbin@intel.com>
4471 Kirill Yukhin <kirill.yukhin@intel.com>
4472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4474 * config/i386/sse.md
4475 (define_mode_iterator VI4F_BRCST32x2): New.
4476 (define_mode_attr 64x2_mode): Ditto.
4477 (define_mode_attr 32x2mode): Ditto.
4478 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
4479 with VI4F_BRCST32x2): Ditto.
4480 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
4481 with V16FI mode iterator): Ditto.
4482 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4484 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
4485 with VI8F_BRCST64x2): Ditto.
4487 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
4488 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4489 Anna Tikhonova <anna.tikhonova@intel.com>
4490 Ilya Tocar <ilya.tocar@intel.com>
4491 Andrey Turetskiy <andrey.turetskiy@intel.com>
4492 Ilya Verbin <ilya.verbin@intel.com>
4493 Kirill Yukhin <kirill.yukhin@intel.com>
4494 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4496 * config/i386/sse.md
4497 (define_mode_iterator VI8_AVX512VL): New.
4498 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
4500 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
4502 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
4503 (define_mode_iterator V48_AVX512VL): New.
4504 (define_mode_iterator V12_AVX512VL): Ditto.
4505 (define_insn <avx512>_load<mode>_mask): Split into two similar
4506 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
4507 Refactor output template.
4508 (define_insn "<avx512>_store<mode>_mask"): Ditto.
4510 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4512 * cprop.c (struct occr): Strengthen field "insn" from rtx to
4514 (reg_available_p): Likewise for param "insn".
4515 (insert_set_in_table): Likewise.
4516 (hash_scan_set): Likewise.
4517 (hash_scan_insn): Likewise.
4518 (make_set_regs_unavailable): Likewise.
4519 (compute_hash_table_work): Likewise for local "insn".
4520 (reg_not_set_p): Strengthen param "insn" from const_rtx to
4522 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
4523 (try_replace_reg): Likewise.
4524 (find_avail_set): Likewise.
4525 (cprop_jump): Likewise for params "setcc", "jump".
4526 (constprop_register): Likewise for param "insn".
4527 (cprop_insn): Likewise.
4528 (do_local_cprop): Likewise.
4529 (local_cprop_pass): Likewise for local "insn".
4530 (bypass_block): Likewise for params "setcc" and "jump".
4531 (bypass_conditional_jumps): Likewise for locals "setcc" and
4533 (one_cprop_pass): Likewise for local "insn".
4535 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4537 * compare-elim.c (struct comparison_use): Strengthen field "insn"
4538 from rtx to rtx_insn *.
4539 (struct comparison): Likewise, also for field "prev_clobber".
4540 (conforming_compare): Likewise for param "insn".
4541 (arithmetic_flags_clobber_p): Likewise.
4542 (find_flags_uses_in_insn): Likewise.
4543 (find_comparison_dom_walker::before_dom_children): Likewise for
4544 locals "insn", "next", "last_clobber".
4545 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
4547 2014-08-22 David Malcolm <dmalcolm@redhat.com>
4549 * combine-stack-adj.c (struct csa_reflist): Strengthen field
4550 "insn" from rtx to rtx_insn *.
4551 (single_set_for_csa): Likewise for param "insn".
4552 (record_one_stack_ref): Likewise.
4553 (try_apply_stack_adjustment): Likewise.
4554 (struct record_stack_refs_data): Likewise for field "insn".
4555 (maybe_move_args_size_note): Likewise for params "last" and "insn".
4556 (prev_active_insn_bb): Likewise for return type and param "insn".
4557 (next_active_insn_bb): Likewise.
4558 (force_move_args_size_note): Likewise for params "prev" and "last"
4559 and locals "test", "next_candidate", "prev_candidate".
4560 (combine_stack_adjustments_for_block): Strengthen locals
4561 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
4564 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4566 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
4567 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
4568 (subst_insn): Likewise for this variable.
4569 (added_links_insn): Likewise.
4570 (struct insn_link): Likewise for field "insn".
4571 (alloc_insn_link): Likewise for param "insn".
4572 (struct undobuf): Likewise for field "other_insn".
4573 (find_single_use): Likewise for param "insn" and local "next".
4574 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
4575 (delete_noop_moves): Likewise for locals "insn", "next".
4576 (create_log_links): Likewise for locals "insn", "use_insn".
4577 Strengthen local "next_use" from rtx * to rtx_insn **.
4578 (insn_a_feeds_b): Likewise for params "a", "b".
4579 (combine_instructions): Likewise for param "f" and locals "insn",
4580 "next", "prev", "first", "last_combined_insn", "link", "link1",
4581 "temp". Replace use of NULL_RTX with NULL when referring to
4583 (setup_incoming_promotions): Likewise for param "first"
4584 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
4585 (can_combine_p): Likewise for params "insn", "i3", "pred",
4586 "pred2", "succ", "succ2" and for local "p".
4587 (combinable_i3pat): Likewise for param "i3".
4588 (cant_combine_insn_p): Likewise for param "insn".
4589 (likely_spilled_retval_p): Likewise.
4590 (adjust_for_new_dest): Likewise.
4591 (update_cfg_for_uncondjump): Likewise, also for local "insn".
4592 (try_combine): Likewise for return type and for params "i3", "i2",
4593 "i1", "i0", "last_combined_insn", and for locals "insn",
4594 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
4595 "i0_insn". Eliminate local "tem" in favor of new locals
4596 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
4597 checked cast for now to rtx_insn * on the return type of
4598 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
4600 (find_split_point): Strengthen param "insn" from rtx to
4602 (simplify_set): Likewise for local "other_insn".
4603 (recog_for_combine): Likewise for param "insn".
4604 (record_value_for_reg): Likewise.
4605 (record_dead_and_set_regs_1): Likewise for local
4607 (record_dead_and_set_regs): Likewise for param "insn".
4608 (record_promoted_value): Likewise.
4609 (check_promoted_subreg): Likewise.
4610 (get_last_value_validate): Likewise.
4611 (reg_dead_at_p): Likewise.
4612 (move_deaths): Likewise for param "to_insn".
4613 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
4614 and locals "place", "place2", "cc0_setter". Eliminate local "tem
4615 in favor of new locals "tem_note" and "tem_insn", the latter being
4617 (distribute_links): Strengthen locals "place", "insn" from rtx to
4620 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4622 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
4624 (can_delete_label_p): Require a const rtx_code_label * rather than
4626 (delete_insn): Add checked cast to rtx_code_label * when we know
4627 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
4629 (delete_insn_chain): Strengthen locals "prev" and "current" from
4630 rtx to rtx_insn *. Add a checked cast when assigning from
4631 "finish" (strengthening the params will come later). Add a
4632 checked cast to rtx_note * in region where we know
4634 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
4636 (compute_bb_for_insn): Likewise.
4637 (free_bb_for_insn): Likewise for local "insn".
4638 (compute_bb_for_insn): Likewise.
4639 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
4640 local "insn" from rtx to rtx_insn *
4641 (flow_active_insn_p): Require a const rtx_insn * rather than a
4643 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
4645 (can_fallthru): Likewise for locals "insn" and "insn2".
4646 (bb_note): Likewise for local "note".
4647 (first_insn_after_basic_block_note): Likewise for local "note" and
4649 (rtl_split_block): Likewise for locals "insn" and "next".
4650 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
4652 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
4653 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
4655 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
4656 them), "kill_from", "barrier", "new_insn".
4657 (patch_jump_insn): Likewise for params "insn", "old_label".
4658 (redirect_branch_edge): Likewise for locals "old_label", "insn".
4659 (force_nonfallthru_and_redirect): Likewise for locals "insn",
4660 "old_label", "new_label".
4661 (rtl_tidy_fallthru_edge): Likewise for local "q".
4662 (rtl_split_edge): Likewise for locals "before", "last".
4663 (commit_one_edge_insertion): Likewise for locals "before",
4664 "after", "insns", "tmp", "last", adding a checked cast where
4665 currently necessary.
4666 (commit_edge_insertions): Likewise.
4667 (rtl_dump_bb): Likewise for locals "insn", "last".
4668 (print_rtl_with_bb): Likewise for local "x".
4669 (rtl_verify_bb_insns): Likewise for local "x".
4670 (rtl_verify_bb_pointers): Likewise for local "insn".
4671 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
4673 (rtl_verify_fallthru): Likewise for local "insn".
4674 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
4675 (purge_dead_edges): Likewise for local "insn".
4676 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
4677 (skip_insns_after_block): Likewise for return type and for locals
4678 "insn", "last_insn", "next_head", "prev".
4679 (record_effective_endpoints): Likewise for locals "next_insn",
4681 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
4682 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
4683 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
4684 (duplicate_insn_chain): For now, add checked cast from rtx to
4685 rtx_insn * when returning insn.
4686 (cfg_layout_duplicate_bb): Likewise for local "insn".
4687 (cfg_layout_delete_block): Likewise for locals "insn", "next",
4689 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
4690 (rtl_block_empty_p): Likewise.
4691 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
4692 "split_point", "last".
4693 (rtl_block_ends_with_call_p): Likewise for local "insn".
4694 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
4696 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
4697 "split_at_insn" from rtx to rtx_insn *.
4698 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
4699 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
4700 to const rtx_insn *.
4701 (rtl_account_profile_record): Likewise.
4703 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4705 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
4707 (average_num_loop_insns): Likewise.
4708 (init_set_costs): Likewise for local "seq".
4709 (seq_cost): Likewise for param "seq", from const_rtx to const
4712 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4714 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
4717 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4719 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
4720 "f1" and "f2" from rtx * to rtx_insn **.
4721 (flow_find_head_matching_sequence): Likewise.
4723 * cfgcleanup.c (try_simplify_condjump): Strengthen local
4724 "cbranch_insn" from rtx to rtx_insn *.
4725 (thread_jump): Likewise for local "insn".
4726 (try_forward_edges): Likewise for local "last".
4727 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
4728 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
4730 (can_replace_by): Likewise for params "i1", "i2".
4731 (old_insns_match_p): Likewise.
4732 (merge_notes): Likewise.
4733 (walk_to_nondebug_insn): Likewise for param "i1".
4734 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
4735 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
4736 "afterlast1", "afterlast2" from rtx to rtx_insn *.
4737 (flow_find_head_matching_sequence): Strengthen params "f1" and
4738 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
4739 "last1", "last2", "beforelast1", "beforelast2" from rtx to
4741 (outgoing_edges_match): Likewise for locals "last1", "last2".
4742 (try_crossjump_to_edge): Likewise for local "insn".
4743 Replace call to for_each_rtx with for_each_rtx_in_insn.
4745 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
4746 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
4747 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
4748 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
4749 (try_optimize_cfg): Strengthen local "last" from rtx to
4751 (delete_dead_jumptables): Likewise for locals "insn", "next",
4754 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
4755 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
4756 "rtx else_first_tail", to reflect the basic-block.h changes above.
4758 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4760 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
4762 (purge_dead_tablejump_edges): Likewise.
4763 (find_bb_boundaries): Likewise for locals "insn", "end",
4764 "flow_transfer_insn".
4766 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4768 * caller-save.c (save_call_clobbered_regs): Strengthen locals
4769 "ins" and "prev" from rtx to rtx_insn *.
4771 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4773 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
4775 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
4776 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
4778 (load_register_parameters): Likewise for local "before_arg".
4779 (check_sibcall_argument_overlap): Likewise for param "insn".
4780 (expand_call): Likewise for locals "normal_call_insns",
4781 "tail_call_insns", "insns", "before_call", "after_args",
4782 "before_arg", "last", "prev". Strengthen one of the "last" from
4783 rtx to rtx_call_insn *.
4784 (fixup_tail_calls): Strengthen local "insn" from rtx to
4786 (emit_library_call_value_1): Likewise for locals "before_call" and
4789 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4791 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
4792 and "last" from rtx to rtx_insn *.
4793 (expand_builtin_nonlocal_goto): Likewise for local "insn".
4794 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
4796 (expand_errno_check): Strengthen local "lab" from rtx to
4798 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
4800 (expand_builtin_mathfn_2): Likewise.
4801 (expand_builtin_mathfn_ternary): Likewise.
4802 (expand_builtin_mathfn_3): Likewise.
4803 (expand_builtin_interclass_mathfn): Likewise for local "last".
4804 (expand_builtin_int_roundingfn): Likewise for local "insns".
4805 (expand_builtin_int_roundingfn_2): Likewise.
4806 (expand_builtin_strlen): Likewise for local "before_strlen".
4807 (expand_builtin_strncmp): Likewise for local "seq".
4808 (expand_builtin_signbit): Likewise for local "last".
4809 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
4810 from rtx to rtx_code_label *.
4811 (expand_stack_restore): Strengthen local "prev" from rtx to
4814 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4816 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
4818 (struct btr_def_s): Likewise.
4819 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
4821 (add_btr_def): Likewise.
4822 (new_btr_user): Likewise.
4823 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
4825 (link_btr_uses): Likewise.
4826 (move_btr_def): Likewise for locals "insp", "old_insn",
4827 "new_insn". Add checked cast to rtx_insn * for now on result of
4829 (can_move_up): Strengthen param "insn" from const_rtx to
4832 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4834 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
4836 (get_uncond_jump_length): Likewise for locals "label", "jump".
4837 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
4839 (add_labels_and_missing_jumps): Likewise for local "new_jump".
4840 (fix_up_fall_thru_edges): Likewise for local "old_jump".
4841 (find_jump_block): Likewise for local "insn".
4842 (fix_crossing_conditional_branches): Likewise for locals
4843 "old_jump", "new_jump".
4844 (fix_crossing_unconditional_branches): Likewise for locals
4845 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
4846 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
4848 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4850 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
4852 (struct mem_insn): Likewise for field "insn".
4853 (reg_next_use): Strengthen from rtx * to rtx_insn **.
4854 (reg_next_inc_use): Likewise.
4855 (reg_next_def): Likewise.
4856 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
4857 from rtx to rtx_insn *.
4858 (move_insn_before): Likewise for param "next_insn" and local "insns".
4859 (attempt_change): Likewise for local "mov_insn".
4860 (try_merge): Likewise for param "last_insn".
4861 (get_next_ref): Likewise for return type and local "insn".
4862 Strengthen param "next_array" from rtx * to rtx_insn **.
4863 (parse_add_or_inc): Strengthen param "insn" from rtx to
4865 (find_inc): Likewise for locals "insn" and "other_insn" (three of
4867 (merge_in_block): Likewise for locals "insn", "curr",
4869 (pass_inc_dec::execute): Update allocations of the arrays to
4870 reflect the stronger types.
4872 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4874 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
4875 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
4876 from rtx to rtx_code_label *.
4878 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4880 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
4883 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
4885 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
4886 generated a warning and prevented bootstrapping the compiler.
4888 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4890 * rtl.h (delete_related_insns): Strengthen return type from rtx to
4893 * jump.c (delete_related_insns): Likewise, also for locals "next"
4896 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4898 * genautomata.c (output_internal_insn_latency_func): When writing
4899 the function "internal_insn_latency" to insn-automata.c,
4900 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
4901 allowing the optional guard function of (define_bypass) clauses to
4902 expect a pair of rtx_insn *, rather than a pair of rtx.
4903 (output_insn_latency_func): When writing the function
4904 "insn_latency", add an "uncast_" prefix to params "insn" and
4905 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
4906 using checked casts from the params, thus enabling the above
4907 change to the generated "internal_insn_latency" function.
4909 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
4911 PR tree-optimization/62091
4912 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
4913 handle correctly arrays.
4914 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
4916 (record_known_type): Walk into inner type.
4917 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
4918 condition on no type changes.
4920 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4922 * genattrtab.c (write_attr_get): Within the generated get_attr_
4923 functions, rename param "insn" to "uncast_insn" and reintroduce
4924 "insn" as an local rtx_insn * using a checked cast, so that "insn"
4925 is an rtx_insn * within insn-attrtab.c
4927 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4929 * output.h (peephole): Strengthen return type from rtx to
4931 * rtl.h (delete_for_peephole): Likewise for both params.
4932 * genpeep.c (main): In generated "peephole" function, strengthen
4933 return type and local "insn" from rtx to rtx_insn *. For now,
4934 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
4935 rtx_insn *, with a checked cast.
4936 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
4937 locals "insn", "next", "prev" from rtx to rtx_insn *.
4939 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
4941 PR tree-optimization/62112
4942 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
4943 * gimple-iterator.h (gsi_replace): Return bool.
4944 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
4945 moved from ref_may_alias_global_p.
4946 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
4948 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
4949 (stmt_kills_ref_p_1): Rename...
4950 (stmt_kills_ref_p): ... to this.
4951 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
4952 stmt_kills_ref_p): Declare.
4953 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
4954 Move the self-assignment case...
4955 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
4957 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4959 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
4961 * emit-rtl.c (try_split): Likewise, also for locals "before" and
4962 "after". For now, don't strengthen param "trial", which requires
4963 adding checked casts when returning it.
4965 2014-08-21 David Malcolm <dmalcolm@redhat.com>
4967 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
4968 "label" from rtx to rtx_code_label *. Strengthen param 1 of
4969 "var_location" hook from rtx to rtx_insn *.
4970 (debug_nothing_rtx): Delete in favor of...
4971 (debug_nothing_rtx_code_label): New prototype.
4972 (debug_nothing_rtx_rtx): Delete unused prototype.
4973 (debug_nothing_rtx_insn): New prototype.
4975 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
4976 invoking debug_hooks->var_location (in two places, one in a NOTE
4977 case of a switch statement, the other guarded by a CALL_P
4978 conditional. Add checked cast to rtx_code_label * when invoking
4979 debug_hooks->label (within CODE_LABEL case of switch statement).
4981 * dbxout.c (dbx_debug_hooks): Update "label" hook from
4982 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
4983 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
4984 (xcoff_debug_hooks): Likewise.
4985 * debug.c (do_nothing_debug_hooks): Likewise.
4986 (debug_nothing_rtx): Delete in favor of...
4987 (debug_nothing_rtx_insn): New function.
4988 (debug_nothing_rtx_rtx): Delete unused function.
4989 (debug_nothing_rtx_code_label): New function.
4990 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
4991 debug_nothing_rtx to debug_nothing_rtx_code_label.
4992 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
4994 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
4995 debug_nothing_rtx to debug_nothing_rtx_insn.
4996 (sdbout_label): Strengthen param "insn" from rtx to
4998 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
4999 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
5000 "var_location" hook from debug_nothing_rtx to
5001 debug_nothing_rtx_insn.
5003 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5005 * recog.h (insn_output_fn): Update this function typedef to match
5006 the changes below to the generated output functions, strengthening
5007 the 2nd param from rtx to rtx_insn *.
5009 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
5010 insn when invoking an output function, to match the new signature
5011 of insn_output_fn with a stronger second param.
5013 * genconditions.c (write_header): In the generated code for
5014 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
5015 to match the other changes in this patch.
5017 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
5018 the generated "gen_" functions from rtx to rtx_insn * within their
5021 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
5022 the subfunctions within the generated "recog_", "split", "peephole2"
5023 function trees from rtx to rtx_insn *. For now, the top-level
5024 generated functions ("recog", "split", "peephole2") continue to
5025 take a plain rtx for "insn", to avoid introducing dependencies on
5026 other patches. Rename this 2nd param from "insn" to
5027 "uncast_insn", and reintroduce "insn" as a local variable of type
5028 rtx_insn *, initialized at the top of the generated function with
5029 a checked cast on "uncast_insn".
5030 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
5031 the generated "gen_" functions from rtx to rtx_insn * within their
5034 * genoutput.c (process_template): Strengthen the 2nd param within
5035 the generated "output_" functions "insn" from rtx to rtx_insn *.
5037 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5039 * tree-profile.c (tree_profiling): Skip external functions
5040 when doing coverage instrumentation.
5041 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
5043 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5045 * config/rs6000/altivec.h (vec_cpsgn): New #define.
5046 (vec_mergee): Likewise.
5047 (vec_mergeo): Likewise.
5048 (vec_cntlz): Likewise.
5049 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
5050 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
5051 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
5053 * doc/extend.texi: Document various forms of vec_cpsgn,
5054 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
5055 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
5056 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
5057 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
5058 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
5060 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5062 * config/rs6000/rs6000.c (context.h): New include.
5063 (tree-pass.h): Likewise.
5064 (make_pass_analyze_swaps): New decl.
5065 (rs6000_option_override): Register pass_analyze_swaps.
5066 (swap_web_entry): New subsclass of web_entry_base (df.h).
5067 (special_handling_values): New enum.
5068 (union_defs): New function.
5069 (union_uses): Likewise.
5070 (insn_is_load_p): Likewise.
5071 (insn_is_store_p): Likewise.
5072 (insn_is_swap_p): Likewise.
5073 (rtx_is_swappable_p): Likewise.
5074 (insn_is_swappable_p): Likewise.
5075 (chain_purpose): New enum.
5076 (chain_contains_only_swaps): New function.
5077 (mark_swaps_for_removal): Likewise.
5078 (swap_const_vector_halves): Likewise.
5079 (adjust_subreg_index): Likewise.
5080 (permute_load): Likewise.
5081 (permute_store): Likewise.
5082 (handle_special_swappables): Likewise.
5083 (replace_swap_with_copy): Likewise.
5084 (dump_swap_insn_table): Likewise.
5085 (rs6000_analyze_swaps): Likewise.
5086 (pass_data_analyze_swaps): New pass_data.
5087 (pass_analyze_swaps): New rtl_opt_pass.
5088 (make_pass_analyze_swaps): New function.
5089 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
5091 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5093 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
5094 type from rtx to rtx_insn *.
5095 (create_copy_of_insn_rtx): Likewise.
5096 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
5097 (create_copy_of_insn_rtx): Likewise, also for local "res".
5099 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5101 * rtl.h (find_first_parameter_load): Strengthen return type from
5103 * rtlanal.c (find_first_parameter_load): Strengthen return type
5104 from rtx to rtx_insn *. Add checked cast for now, to postpone
5105 strengthening the params.
5107 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5110 * diagnostic.c: Set default caret.
5111 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
5113 * diagnostic.h (struct diagnostic_context):
5115 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5117 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
5118 (sel_bb_head): Strengthen return type insn_t (currently just an
5120 (sel_bb_end): Likewise.
5122 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
5123 (sel_bb_head): Strengthen return type and local "head" from
5124 insn_t (currently just an rtx) to rtx_insn *.
5125 (sel_bb_end): Likewise for return type.
5126 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
5129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
5131 * basic-block.h (get_last_bb_insn): Strengthen return type from
5133 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
5136 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5139 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
5141 (diagnostic_report_diagnostic): ... from here.
5142 * toplev.c (general_init): Move code to c-family.
5144 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5146 * df.h (web_entry_base): Replace existing struct web_entry with a
5147 new class web_entry_base with only the predecessor member.
5148 (unionfind_root): Remove declaration and move to class member.
5149 (unionfind_union): Remove declaration and move to friend
5151 (union_defs): Remove declaration.
5152 * web.c (web_entry_base::unionfind_root): Modify to be member
5153 function and adjust accessors.
5154 (unionfind_union): Modify to be friend function and adjust
5156 (web_entry): New subclass of web_entry_base containing the reg
5158 (union_match_dups): Modify for struct -> class changes.
5159 (union_defs): Likewise.
5160 (entry_register): Likewise.
5161 (pass_web::execute): Likewise.
5163 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
5165 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
5166 builtin define __VEC_ELEMENT_REG_ORDER__.
5168 2014-08-20 Martin Jambor <mjambor@suse.cz>
5169 Wei Mi <wmi@google.com>
5173 * tree-ssa-operands.c (update_stmt_operands): Remove
5174 MODIFIED_NORETURN_CALLS.
5175 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
5176 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
5177 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
5178 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
5179 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
5180 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
5181 (gimple_call_set_ctrl_altering): New func.
5182 (gimple_call_ctrl_altering_p): Ditto.
5183 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
5184 (make_blocks): Use gimple_call_initialize_ctrl_altering.
5185 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
5186 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
5187 remove MODIFIED_NORETURN_CALLS.
5189 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5191 * coverage.c (coverage_compute_profile_id): Return non-0;
5192 also handle symbols with unique name.
5193 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
5195 2014-08-20 Steve Ellcey <sellcey@mips.com>
5198 * doc/sourcebuild.texi (non_strict_align): New.
5200 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
5202 * cgraphunit.c (ipa_passes, compile): Reshedule
5203 symtab_remove_unreachable_nodes passes; update comments.
5204 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
5205 TODO_remove_functions before the pass; the functions ought to be
5207 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
5208 TODO_remove_functions.
5209 * passes.c (pass_data_early_local_passes): Do not schedule function
5211 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
5213 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5216 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
5217 before setting the option.
5218 * diagnostic.c (diagnostic_classify_diagnostic): Record
5219 command-line status.
5221 2014-08-20 Richard Biener <rguenther@suse.de>
5224 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
5225 to build uint{16,32,64}_type_node.
5227 2014-08-20 Terry Guo <terry.guo@arm.com>
5229 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
5230 with immediate_operand.
5232 2014-08-20 David Malcolm <dmalcolm@redhat.com>
5234 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
5235 "insn" from an as_a to a safe_as_a, for the case when "insn" is
5238 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5240 PR preprocessor/51303
5241 * incpath.c (remove_duplicates): Use cpp_warning.
5243 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5247 * doc/options.texi (CPP): Document it.
5248 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
5249 * optc-gen.awk: Handle CPP.
5250 * opth-gen.awk: Likewise.
5252 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5254 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
5256 (duplicate_insn_chain): Likewise.
5257 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
5258 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
5259 checked cast for now (until we can strengthen the params in the
5261 (duplicate_insn_chain): Likewise.
5263 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5265 * rtl.h (next_cc0_user): Strengthen return type from rtx to
5267 (prev_cc0_setter): Likewise.
5269 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
5270 rtx_insn *, adding checked casts for now as necessary.
5271 (prev_cc0_setter): Likewise.
5273 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5275 * expr.h (emit_move_insn): Strengthen return type from rtx to
5277 (emit_move_insn_1): Likewise.
5278 (emit_move_complex_push): Likewise.
5279 (emit_move_complex_parts): Likewise.
5281 * expr.c (emit_move_via_integer): Strengthen return type from rtx
5282 to rtx_insn *. Replace use of NULL_RTX with NULL when working
5284 (emit_move_complex_push): Strengthen return type from rtx to
5286 (emit_move_complex): Likewise, also for local "ret".
5287 (emit_move_ccmode): Likewise.
5288 (emit_move_multi_word): Likewise for return type and locals
5290 (emit_move_insn_1): Likewise for return type and locals "result",
5292 (emit_move_insn): Likewise for return type and local "last_insn".
5293 (compress_float_constant): Likewise.
5295 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5297 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
5298 from rtx to rtx_insn *.
5300 * rtl.h (emit_insn_before): Likewise.
5301 (emit_insn_before_noloc): Likewise.
5302 (emit_insn_before_setloc): Likewise.
5303 (emit_jump_insn_before): Likewise.
5304 (emit_jump_insn_before_noloc): Likewise.
5305 (emit_jump_insn_before_setloc): Likewise.
5306 (emit_call_insn_before): Likewise.
5307 (emit_call_insn_before_noloc): Likewise.
5308 (emit_call_insn_before_setloc): Likewise.
5309 (emit_debug_insn_before): Likewise.
5310 (emit_debug_insn_before_noloc): Likewise.
5311 (emit_debug_insn_before_setloc): Likewise.
5312 (emit_label_before): Likewise.
5313 (emit_insn_after): Likewise.
5314 (emit_insn_after_noloc): Likewise.
5315 (emit_insn_after_setloc): Likewise.
5316 (emit_jump_insn_after): Likewise.
5317 (emit_jump_insn_after_noloc): Likewise.
5318 (emit_jump_insn_after_setloc): Likewise.
5319 (emit_call_insn_after): Likewise.
5320 (emit_call_insn_after_noloc): Likewise.
5321 (emit_call_insn_after_setloc): Likewise.
5322 (emit_debug_insn_after): Likewise.
5323 (emit_debug_insn_after_noloc): Likewise.
5324 (emit_debug_insn_after_setloc): Likewise.
5325 (emit_label_after): Likewise.
5326 (emit_insn): Likewise.
5327 (emit_debug_insn): Likewise.
5328 (emit_jump_insn): Likewise.
5329 (emit_call_insn): Likewise.
5330 (emit_label): Likewise.
5331 (gen_clobber): Likewise.
5332 (emit_clobber): Likewise.
5333 (gen_use): Likewise.
5334 (emit_use): Likewise.
5337 (emit_barrier_before): Strengthen return type from rtx to
5339 (emit_barrier_after): Likewise.
5340 (emit_barrier): Likewise.
5342 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
5343 from rtx to rtx_insn *. Add checked casts for now when converting
5344 "last" from rtx to rtx_insn *.
5345 (emit_insn_before_noloc): Likewise for return type.
5346 (emit_jump_insn_before_noloc): Likewise.
5347 (emit_call_insn_before_noloc): Likewise.
5348 (emit_debug_insn_before_noloc): Likewise.
5349 (emit_barrier_before): Strengthen return type and local "insn"
5350 from rtx to rtx_barrier *.
5351 (emit_label_before): Strengthen return type from rtx to
5352 rtx_insn *. Add checked cast for now when returning param
5353 (emit_pattern_after_noloc): Strengthen return type from rtx to
5354 rtx_insn *. Add checked casts for now when converting "last" from
5356 (emit_insn_after_noloc): Strengthen return type from rtx to
5358 (emit_jump_insn_after_noloc): Likewise.
5359 (emit_call_insn_after_noloc): Likewise.
5360 (emit_debug_insn_after_noloc): Likewise.
5361 (emit_barrier_after): Strengthen return type from rtx to
5363 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
5364 Add checked cast for now when converting "label" from rtx to
5366 (emit_pattern_after_setloc): Strengthen return type from rtx to
5367 rtx_insn *. Add checked casts for now when converting "last" from
5369 (emit_pattern_after): Strengthen return type from rtx to
5371 (emit_insn_after_setloc): Likewise.
5372 (emit_insn_after): Likewise.
5373 (emit_jump_insn_after_setloc): Likewise.
5374 (emit_jump_insn_after): Likewise.
5375 (emit_call_insn_after_setloc): Likewise.
5376 (emit_call_insn_after): Likewise.
5377 (emit_debug_insn_after_setloc): Likewise.
5378 (emit_debug_insn_after): Likewise.
5379 (emit_pattern_before_setloc): Likewise. Add checked casts for now
5380 when converting "last" from rtx to rtx_insn *.
5381 (emit_pattern_before): Strengthen return type from rtx to
5383 (emit_insn_before_setloc): Likewise.
5384 (emit_insn_before): Likewise.
5385 (emit_jump_insn_before_setloc): Likewise.
5386 (emit_jump_insn_before): Likewise.
5387 (emit_call_insn_before_setloc): Likewise.
5388 (emit_call_insn_before): Likewise.
5389 (emit_debug_insn_before_setloc): Likewise.
5390 (emit_debug_insn_before): Likewise.
5391 (emit_insn): Strengthen return type and locals "last", "insn",
5392 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
5393 within cases where we know we have an insn.
5394 (emit_debug_insn): Likewise.
5395 (emit_jump_insn): Likewise.
5396 (emit_call_insn): Strengthen return type and local "insn" from rtx
5398 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
5399 a checked cast to rtx_insn * for now on "label".
5400 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
5401 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
5402 (emit_use): Likewise.
5403 (gen_use): Likewise, also for local "seq".
5404 (emit): Likewise for return type and local "insn".
5405 (rtx_insn): Likewise for return type and local "new_rtx".
5407 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
5408 from rtx to rtx_barrier *.
5410 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
5411 changed return type from rtx to rtx_insn *, we must update
5412 "emit_fn" type, and this in turn means updating...
5413 (frame_insn): ...this. Strengthen return type from rtx to
5414 rtx_insn *. Introduce a new local "insn" of the appropriate type.
5416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5418 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
5419 rtx to rtx_jump_table_data *. Also for local.
5420 * rtl.h (emit_jump_table_data): Likewise.
5422 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5424 * basic-block.h (create_basic_block_structure): Strengthen third
5425 param "bb_note" from rtx to rtx_note *.
5426 * rtl.h (emit_note_before): Strengthen return type from rtx to
5428 (emit_note_after): Likewise.
5429 (emit_note): Likewise.
5430 (emit_note_copy): Likewise. Also, strengthen param similarly.
5431 * function.h (struct rtl_data): Strengthen field
5432 "x_stack_check_probe_note" from rtx to rtx_note *.
5434 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
5435 from rtx to rtx_note *.
5436 * cfgrtl.c (create_basic_block_structure): Strengthen third param
5437 "bb_note" from rtx to rtx_note *.
5438 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
5439 when calling emit_note_copy.
5440 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
5442 (emit_note_after): Likewise.
5443 (emit_note_before): Likewise.
5444 (emit_note_copy): Likewise. Also, strengthen param similarly.
5445 (emit_note): Likewise.
5446 * except.c (emit_note_eh_region_end): Likewise for return type.
5447 Strengthen local "next" from rtx to rtx_insn *.
5448 (convert_to_eh_region_ranges): Strengthen local "note"
5449 from rtx to rtx_note *.
5450 * final.c (change_scope): Likewise.
5451 (reemit_insn_block_notes): Likewise, for both locals named "note".
5452 Also, strengthen local "insn" from rtx to rtx_insn *.
5453 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
5455 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
5456 strengthen local "seq" from rtx to rtx_insn *.
5457 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
5459 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
5461 (get_bb_note_from_pool): Strengthen return type from rtx to
5463 (sel_create_basic_block): Strengthen local "new_bb_note" from
5464 insn_t to rtx_note *.
5465 * var-tracking.c (emit_note_insn_var_location): Strengthen local
5466 "note" from rtx to rtx_note *.
5467 (emit_notes_in_bb): Likewise.
5469 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5471 * function.h (struct rtl_data): Strengthen field
5472 "x_parm_birth_insn" from rtx to rtx_insn *.
5473 * function.c (struct assign_parm_data_all): Strengthen fields
5474 "first_conversion_insn" and "last_conversion_insn" from rtx to
5477 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5479 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
5480 to rtx_insn *; also for local "var_end_seq".
5481 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
5482 (maybe_cleanup_end_of_block): Likewise for param "last" and local
5484 (expand_gimple_cond): Likewise for locals "last2" and "last".
5485 (mark_transaction_restart_calls): Likewise for local "insn".
5486 (expand_gimple_stmt): Likewise for return type and locals "last"
5488 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
5489 (avoid_complex_debug_insns): Likewise for param "insn".
5490 (expand_debug_locations): Likewise for locals "insn", "last",
5491 "prev_insn" and "insn2".
5492 (expand_gimple_basic_block): Likewise for local "last".
5493 (construct_exit_block): Likewise for locals "head", "end",
5495 (pass_expand::execute): Likewise for locals "var_seq",
5496 "var_ret_seq", "next".
5498 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5500 * asan.h (asan_emit_stack_protection): Strengthen return type from
5502 * asan.c (asan_emit_stack_protection): Likewise. Add local
5503 "insns" to hold the return value.
5505 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5507 * basic-block.h (bb_note): Strengthen return type from rtx to
5509 * sched-int.h (bb_note): Likewise.
5510 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
5512 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5514 * rtl.h (make_insn_raw): Strengthen return type from rtx to
5517 * emit-rtl.c (make_insn_raw): Strengthen return type and local
5518 "insn" from rtx to rtx_insn *.
5519 (make_debug_insn_raw): Strengthen return type from rtx to
5520 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
5521 (make_jump_insn_raw): Strengthen return type from rtx to
5522 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
5523 (make_call_insn_raw): Strengthen return type from rtx to
5524 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
5525 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
5526 callback from rtx to rtx_insn *; likewise for local "insn" and
5527 "next", adding a checked cast to rtx_insn in the relevant cases of
5528 the switch statement.
5529 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
5530 callback from rtx to rtx_insn *.
5531 (emit_pattern_after_setloc): Likewise.
5532 (emit_pattern_after): Likewise.
5533 (emit_pattern_before_setloc): Likewise.
5534 (emit_pattern_before): Likewise.
5536 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5538 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
5540 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
5541 accepting an rtx_insn *.
5542 (last_call_insn): Strengthen return type from rtx to
5545 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5547 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
5548 "insns" from rtx to rtx_insn *.
5549 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
5550 locals "insn" and "prev".
5552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5554 * rtl.h (tablejump_p): Strengthen third param from rtx * to
5555 rtx_jump_table_data **.
5557 * cfgbuild.c (make_edges): Introduce local "table", using it in
5558 place of "tmp" for jump table data.
5559 (find_bb_boundaries): Strengthen local "table" from rtx to
5560 rtx_jump_table_data *.
5561 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5562 (outgoing_edges_match): Likewise for locals "table1" and "table2".
5563 (try_crossjump_to_edge): Likewise.
5564 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
5566 (patch_jump_insn): Introduce local "table", using it in place of
5567 "tmp" for jump table data.
5568 (force_nonfallthru_and_redirect): Introduce local "table", so that
5569 call to tablejump_p can receive an rtx_jump_table_data **. Update
5570 logic around the call to overwrite "note" appropriately if
5571 tablejump_p returns non-zero.
5572 (get_last_bb_insn): Introduce local "table", using it in place of
5573 "tmp" for jump table data.
5574 * dwarf2cfi.c (create_trace_edges): Likewise.
5576 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
5577 from rtx to rtx_jump_table_data *.
5578 (create_fix_barrier): Strengthen local "tmp" from rtx to
5579 rtx_jump_table_data *.
5580 (arm_reorg): Likewise for local "table".
5582 * config/s390/s390.c (s390_chunkify_start): Likewise.
5584 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
5586 * jump.c (delete_related_insns): Strengthen local "lab_next" from
5587 rtx to rtx_jump_table_data *.
5589 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
5590 rtx_jump_table_data **. Add a checked cast when writing through
5591 the pointer: we know there that local "table" is non-NULL and that
5592 JUMP_TABLE_DATA_P (table) holds.
5593 (label_is_jump_target_p): Introduce local "table", using it in
5594 place of "tmp" for jump table data.
5596 2014-08-19 Marek Polacek <polacek@redhat.com>
5599 * doc/invoke.texi: Document -Wbool-compare.
5601 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5603 * rtl.h (entry_of_function): Strengthen return type from rtx to
5605 * cfgrtl.c (entry_of_function): Likewise.
5607 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5609 * emit-rtl.h (get_insns): Strengthen return type from rtx to
5610 rtx_insn *, adding a checked cast for now.
5611 (get_last_insn): Likewise.
5613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5615 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
5618 * emit-rtl.c (gen_label_rtx): Likewise.
5620 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5622 * rtl.h (previous_insn): Strengthen return type from rtx to
5624 (next_insn): Likewise.
5625 (prev_nonnote_insn): Likewise.
5626 (prev_nonnote_insn_bb): Likewise.
5627 (next_nonnote_insn): Likewise.
5628 (next_nonnote_insn_bb): Likewise.
5629 (prev_nondebug_insn): Likewise.
5630 (next_nondebug_insn): Likewise.
5631 (prev_nonnote_nondebug_insn): Likewise.
5632 (next_nonnote_nondebug_insn): Likewise.
5633 (prev_real_insn): Likewise.
5634 (next_real_insn): Likewise.
5635 (prev_active_insn): Likewise.
5636 (next_active_insn): Likewise.
5638 * emit-rtl.c (next_insn): Strengthen return type from rtx to
5639 rtx_insn *, adding a checked cast.
5640 (previous_insn): Likewise.
5641 (next_nonnote_insn): Likewise.
5642 (next_nonnote_insn_bb): Likewise.
5643 (prev_nonnote_insn): Likewise.
5644 (prev_nonnote_insn_bb): Likewise.
5645 (next_nondebug_insn): Likewise.
5646 (prev_nondebug_insn): Likewise.
5647 (next_nonnote_nondebug_insn): Likewise.
5648 (prev_nonnote_nondebug_insn): Likewise.
5649 (next_real_insn): Likewise.
5650 (prev_real_insn): Likewise.
5651 (next_active_insn): Likewise.
5652 (prev_active_insn): Likewise.
5654 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
5655 param "stepfunc" so that it returns an rtx_insn * rather than an
5656 rtx, to track the change to prev_nonnote_insn_bb, which is the
5657 only function this is called with.
5658 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
5660 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
5662 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
5665 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5667 * coretypes.h (class rtx_debug_insn): Add forward declaration.
5668 (class rtx_nonjump_insn): Likewise.
5669 (class rtx_jump_insn): Likewise.
5670 (class rtx_call_insn): Likewise.
5671 (class rtx_jump_table_data): Likewise.
5672 (class rtx_barrier): Likewise.
5673 (class rtx_code_label): Likewise.
5674 (class rtx_note): Likewise.
5676 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
5677 adding the invariant DEBUG_INSN_P (X).
5678 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
5679 the invariant NONJUMP_INSN_P (X).
5680 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
5681 the invariant JUMP_P (X).
5682 (class rtx_call_insn): New, a subclass of rtx_insn, adding
5683 the invariant CALL_P (X).
5684 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
5685 invariant JUMP_TABLE_DATA_P (X).
5686 (class rtx_barrier): New, a subclass of rtx_insn, adding the
5687 invariant BARRIER_P (X).
5688 (class rtx_code_label): New, a subclass of rtx_insn, adding
5689 the invariant LABEL_P (X).
5690 (class rtx_note): New, a subclass of rtx_insn, adding
5691 the invariant NOTE_P(X).
5692 (is_a_helper <rtx_debug_insn *>::test): New.
5693 (is_a_helper <rtx_nonjump_insn *>::test): New.
5694 (is_a_helper <rtx_jump_insn *>::test): New.
5695 (is_a_helper <rtx_call_insn *>::test): New.
5696 (is_a_helper <rtx_jump_table_data *>::test): New functions,
5697 overloaded for both rtx and rtx_insn *.
5698 (is_a_helper <rtx_barrier *>::test): New.
5699 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
5700 for both rtx and rtx_insn *.
5701 (is_a_helper <rtx_note *>::test): New.
5703 2014-08-19 Marek Polacek <polacek@redhat.com>
5705 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
5706 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5707 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
5708 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
5710 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5712 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
5713 rtx_insn *. To help with transition, for now, convert from an
5714 access macro into a pair of functions: BND_TO, returning an
5716 (SET_BND_TO): New function, for use where BND_TO is used as an
5719 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
5721 (BND_TO): New function, adding a checked cast.
5722 (SET_BND_TO): New function.
5724 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
5726 (compute_av_set_on_boundaries): Likewise.
5728 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5730 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
5731 destination if it is used in source.
5732 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
5733 (*popcount<mode>2_falsedep_1): Likewise.
5735 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
5738 * configure.ac: Set install_gold_as_default to no first.
5739 * configure: Regenerated.
5741 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5743 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
5744 "note_list" field will eventually be an rtx_insn *. To help with
5745 transition, for now, convert from an access macro into a pair of
5746 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
5747 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
5750 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
5751 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
5753 * sel-sched-ir.c (init_bb): Likewise.
5754 (sel_restore_notes): Likewise.
5755 (move_bb_info): Likewise.
5756 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
5757 (SET_BB_NOTE_LIST): New function.
5759 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5761 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
5762 field will eventually be an rtx_insn *. To help with transition,
5763 for now, convert from an access macro into a pair of functions:
5764 VINSN_INSN_RTX, returning an rtx_insn *, and...
5765 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
5766 is used as an lvalue.
5768 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
5769 SET_VINSN_INSN_RTX where it's used as an lvalue.
5770 (VINSN_INSN_RTX): New function.
5771 (SET_VINSN_INSN_RTX): New function.
5773 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5775 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
5776 eventually be rtx_insn *, but to help with transition, for now,
5777 convert from an access macro into a pair of functions: DEP_PRO
5778 returning an rtx_insn * and...
5779 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
5780 lvalue, returning an rtx&.
5781 (DEP_CON): Analogous changes to DEP_PRO above.
5782 (SET_DEP_CON): Likewise.
5784 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
5785 an lvalue to SET_DEP_CON.
5786 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
5787 (sd_copy_back_deps): Likewise for DEP_CON.
5788 (DEP_PRO): New function, adding a checked cast for now.
5789 (DEP_CON): Likewise.
5790 (SET_DEP_PRO): New function.
5791 (SET_DEP_CON): Likewise.
5793 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5795 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
5796 (extra_options): Add i386/cygwin.opt.
5797 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
5798 (CPP_SPEC): Accept -pthread.
5800 (GOMP_SELF_SPECS): Update comment.
5801 * config/i386/cygwin.opt: New file for -pthread flag.
5803 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5805 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
5806 * df.h (DF_REF_INSN): Convert from a macro to a function, so
5807 that we can return an rtx_insn *.
5809 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
5811 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
5812 when building executables, not DLLs. Add --large-address-aware
5813 under the same conditions.
5814 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
5815 when building executables, not DLLs. Add --large-address-aware
5816 under the same conditions when using -m32.
5818 * config/i386/cygwin-stdint.h: Throughout, make type
5819 definitions dependent on target architecture, not host.
5821 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5823 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
5824 the return type from rtx to rtx_insn *, which will enable various
5825 conversions in followup patches. For now this is is done by a
5827 (NEXT_INSN): Likewise.
5828 (SET_PREV_INSN): Convert to an inline function. This is intended
5829 for use as an lvalue, and so returns an rtx& to allow in-place
5831 (SET_NEXT_INSN): Likewise.
5833 2014-07-08 Mark Wielaard <mjw@redhat.com>
5836 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
5838 2014-08-19 Marek Polacek <polacek@redhat.com>
5841 * cgraphunit.c (handle_alias_pairs): Fix condition.
5843 2014-08-19 Richard Biener <rguenther@suse.de>
5845 * gimple-fold.c (fold_gimple_assign): Properly build a
5846 null-pointer constant when devirtualizing addresses.
5848 2014-07-07 Mark Wielaard <mjw@redhat.com>
5850 * dwarf2out.c (decl_quals): New function.
5851 (modified_type_die): Take one cv_quals argument instead of two,
5852 one for const and one for volatile.
5853 (add_type_attribute): Likewise.
5854 (generic_parameter_die): Call add_type_attribute with one modifier
5856 (base_type_for_mode): Likewise.
5857 (add_bounds_info): Likewise.
5858 (add_subscript_info): Likewise.
5859 (gen_array_type_die): Likewise.
5860 (gen_descr_array_type_die): Likewise.
5861 (gen_entry_point_die): Likewise.
5862 (gen_enumeration_type_die): Likewise.
5863 (gen_formal_parameter_die): Likewise.
5864 (gen_subprogram_die): Likewise.
5865 (gen_variable_die): Likewise.
5866 (gen_const_die): Likewise.
5867 (gen_field_die): Likewise.
5868 (gen_pointer_type_die): Likewise.
5869 (gen_reference_type_die): Likewise.
5870 (gen_ptr_to_mbr_type_die): Likewise.
5871 (gen_inheritance_die): Likewise.
5872 (gen_subroutine_type_die): Likewise.
5873 (gen_typedef_die): Likewise.
5874 (force_type_die): Likewise.
5876 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5878 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
5880 * configure: Regenerate.
5882 2014-08-19 Richard Biener <rguenther@suse.de>
5884 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
5885 DECL_EXTERNALs in BLOCKs as non-references.
5886 * tree-streamer-out.c (streamer_write_chain): Likewise.
5888 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
5889 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5890 Anna Tikhonova <anna.tikhonova@intel.com>
5891 Ilya Tocar <ilya.tocar@intel.com>
5892 Andrey Turetskiy <andrey.turetskiy@intel.com>
5893 Ilya Verbin <ilya.verbin@intel.com>
5894 Kirill Yukhin <kirill.yukhin@intel.com>
5895 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5897 * config/i386/sse.md
5898 (define_mode_iterator VI48_AVX512F): Delete.
5899 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
5900 (define_mode_iterator VI2_AVX512VL): Ditto.
5901 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
5904 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
5906 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
5907 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
5908 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5909 with VI48_AVX512F_AVX512VL): New.
5910 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
5911 with VI2_AVX512VL): Ditto.
5913 2014-08-19 Marek Polacek <polacek@redhat.com>
5915 * doc/invoke.texi: Document -Wc99-c11-compat.
5917 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5919 * rtl.h (PREV_INSN): Split macro in two: the existing one,
5921 (SET_PREV_INSN): New macro, for use as an lvalue.
5922 (NEXT_INSN, SET_NEXT_INSN): Likewise.
5924 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
5925 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
5926 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5927 (fixup_abnormal_edges): Likewise.
5928 (unlink_insn_chain): Likewise.
5929 (fixup_reorder_chain): Likewise.
5930 (cfg_layout_delete_block): Likewise.
5931 (cfg_layout_merge_blocks): Likewise.
5932 * combine.c (update_cfg_for_uncondjump): Likewise.
5933 * emit-rtl.c (link_insn_into_chain): Likewise.
5934 (remove_insn): Likewise.
5935 (delete_insns_since): Likewise.
5936 (reorder_insns_nobb): Likewise.
5937 (emit_insn_after_1): Likewise.
5938 * final.c (rest_of_clean_state): Likewise.
5939 (final_scan_insn): Likewise.
5940 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
5941 * haifa-sched.c (concat_note_lists): Likewise.
5942 (remove_notes): Likewise.
5943 (restore_other_notes): Likewise.
5944 (move_insn): Likewise.
5945 (unlink_bb_notes): Likewise.
5946 (restore_bb_notes): Likewise.
5947 * jump.c (delete_for_peephole): Likewise.
5948 * optabs.c (emit_libcall_block_1): Likewise.
5949 * reorg.c (emit_delay_sequence): Likewise.
5950 (fill_simple_delay_slots): Likewise.
5951 * sel-sched-ir.c (sel_move_insn): Likewise.
5952 (sel_remove_insn): Likewise.
5953 (get_bb_note_from_pool): Likewise.
5954 * sel-sched.c (move_nop_to_previous_block): Likewise.
5956 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
5957 * config/c6x/c6x.c (gen_one_bundle): Likewise.
5958 (c6x_gen_bundles): Likewise.
5959 (hwloop_optimize): Likewise.
5960 * config/frv/frv.c (frv_function_prologue): Likewise.
5961 (frv_register_nop): Likewise.
5962 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
5963 (ia64_reorg): Likewise.
5964 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
5965 (mep_make_bundle): Likewise.
5966 (mep_bundle_insns): Likewise.
5967 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
5968 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
5969 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
5971 2014-08-19 David Malcolm <dmalcolm@redhat.com>
5973 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
5974 return type from rtx to rtx_insn *.
5976 (BB_HEADER): Likewise.
5977 (BB_FOOTER): Likewise.
5978 (SET_BB_HEAD): Convert to a function.
5979 (SET_BB_END): Likewise.
5980 (SET_BB_HEADER): Likewise.
5981 (SET_BB_FOOTER): Likewise.
5983 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
5984 Strengthen the return type from rtx to rtx_insn *. For now, this
5985 is done by adding a checked cast, but this will eventually
5986 become a field lookup.
5988 (BB_HEADER): Likewise.
5989 (BB_FOOTER): Likewise.
5990 (SET_BB_HEAD): New function, from macro of same name. This is
5991 intended for use as an lvalue, and so returns an rtx& to allow
5992 in-place modification.
5993 (SET_BB_END): Likewise.
5994 (SET_BB_HEADER): Likewise.
5995 (SET_BB_FOOTER): Likewise.
5997 2014-08-18 David Malcolm <dmalcolm@redhat.com>
5999 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
6001 (SET_BB_HEAD): New macro, for use as a lvalue.
6002 (BB_END, SET_BB_END): Likewise.
6003 (BB_HEADER, SET_BB_HEADER): Likewise.
6004 (BB_FOOTER, SET_BB_FOOTER): Likewise.
6006 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
6007 of BB_* macros into SET_BB_* macros.
6008 (fix_crossing_unconditional_branches): Likewise.
6009 * caller-save.c (save_call_clobbered_regs): Likewise.
6010 (insert_one_insn): Likewise.
6011 * cfgbuild.c (find_bb_boundaries): Likewise.
6012 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
6013 (outgoing_edges_match): Likewise.
6014 (try_optimize_cfg): Likewise.
6015 * cfgexpand.c (expand_gimple_cond): Likewise.
6016 (expand_gimple_tailcall): Likewise.
6017 (expand_gimple_basic_block): Likewise.
6018 (construct_exit_block): Likewise.
6019 * cfgrtl.c (delete_insn): Likewise.
6020 (create_basic_block_structure): Likewise.
6021 (rtl_delete_block): Likewise.
6022 (rtl_split_block): Likewise.
6023 (emit_nop_for_unique_locus_between): Likewise.
6024 (rtl_merge_blocks): Likewise.
6025 (block_label): Likewise.
6026 (try_redirect_by_replacing_jump): Likewise.
6027 (emit_barrier_after_bb): Likewise.
6028 (fixup_abnormal_edges): Likewise.
6029 (record_effective_endpoints): Likewise.
6030 (relink_block_chain): Likewise.
6031 (fixup_reorder_chain): Likewise.
6032 (fixup_fallthru_exit_predecessor): Likewise.
6033 (cfg_layout_duplicate_bb): Likewise.
6034 (cfg_layout_split_block): Likewise.
6035 (cfg_layout_delete_block): Likewise.
6036 (cfg_layout_merge_blocks): Likewise.
6037 * combine.c (update_cfg_for_uncondjump): Likewise.
6038 * emit-rtl.c (add_insn_after): Likewise.
6039 (remove_insn): Likewise.
6040 (reorder_insns): Likewise.
6041 (emit_insn_after_1): Likewise.
6042 * haifa-sched.c (get_ebb_head_tail): Likewise.
6043 (restore_other_notes): Likewise.
6044 (move_insn): Likewise.
6045 (sched_extend_bb): Likewise.
6046 (fix_jump_move): Likewise.
6047 * ifcvt.c (noce_process_if_block): Likewise.
6048 (dead_or_predicable): Likewise.
6049 * ira.c (update_equiv_regs): Likewise.
6050 * reg-stack.c (change_stack): Likewise.
6051 * sel-sched-ir.c (sel_move_insn): Likewise.
6052 * sel-sched.c (move_nop_to_previous_block): Likewise.
6054 * config/c6x/c6x.c (hwloop_optimize): Likewise.
6055 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
6057 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6059 * rtl.h (for_each_rtx_in_insn): New function.
6060 * rtlanal.c (for_each_rtx_in_insn): Likewise.
6062 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6064 * coretypes.h (class rtx_insn): Add forward declaration.
6066 * rtl.h: Include is-a.h.
6067 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
6068 workaround to ensure gengtype knows inheritance is occurring,
6069 whilst continuing to use the pre-existing special-casing for
6071 (class rtx_insn): New subclass of rtx_def, adding the
6072 invariant that we're dealing with something we can sanely use
6073 INSN_UID, NEXT_INSN, PREV_INSN on.
6074 (is_a_helper <rtx_insn *>::test): New.
6075 (is_a_helper <const rtx_insn *>::test): New.
6077 2014-08-18 David Malcolm <dmalcolm@redhat.com>
6079 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
6081 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6083 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
6086 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
6088 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
6089 to BUILT_IN_UNREACHABLE.
6091 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
6094 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
6096 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
6097 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
6098 (ffs<mode>2): Do not expand with tzcnt for
6099 TARGET_AVOID_FALSE_DEP_FOR_BMI.
6100 (ffssi2_no_cmove): Ditto.
6101 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
6102 (ctz<mode>2): New expander.
6103 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
6104 (*ctz<mode>2_falsedep): New insn.
6105 (*ctz<mode>2): Rename from ctz<mode>2.
6106 (clz<mode>2_lzcnt): New expander.
6107 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
6108 (*clz<mode>2_lzcnt_falsedep): New insn.
6109 (*clz<mode>2): Rename from ctz<mode>2.
6110 (popcount<mode>2): New expander.
6111 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
6112 (*popcount<mode>2_falsedep): New insn.
6113 (*popcount<mode>2): Rename from ctz<mode>2.
6114 (*popcount<mode>2_cmp): Remove.
6115 (*popcountsi2_cmp_zext): Ditto.
6117 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
6119 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
6120 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
6121 * config/microblaze/microblaze.h
6122 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
6124 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
6127 * configure.ac: Set install_gold_as_default to no for
6129 * configure: Regenerated.
6131 2014-08-18 Roman Gareev <gareevroman@gmail.com>
6133 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
6134 * config.in: Add undef of HAVE_isl.
6135 * configure: Regenerate.
6136 * configure.ac: Add definition of HAVE_isl.
6137 * graphite-blocking.c: Add checking of HAVE_isl.
6138 * graphite-dependences.c: Likewise.
6139 * graphite-interchange.c: Likewise.
6140 * graphite-isl-ast-to-gimple.c: Likewise.
6141 * graphite-optimize-isl.c: Likewise.
6142 * graphite-poly.c: Likewise.
6143 * graphite-scop-detection.c: Likewise.
6144 * graphite-sese-to-poly.c: Likewise.
6145 * graphite.c: Likewise.
6146 * toplev.c: Replace the checking of HAVE_cloog with the checking
6149 2014-08-18 Richard Biener <rguenther@suse.de>
6151 PR tree-optimization/62090
6152 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
6153 (fold_builtin_3): Do not fold snprintf.
6154 (fold_builtin_4): Likewise.
6155 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
6156 moved from builtins.c.
6157 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
6158 (gimple_fold_builtin): Do not fold sprintf here.
6160 2014-08-18 Richard Biener <rguenther@suse.de>
6162 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
6164 (maybe_canonicalize_mem_ref_addr): ... this function.
6165 (fold_stmt_1): Apply it here before all simplification.
6167 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
6170 * cgraph.h (cgraph_node::create_indirect_edge): Add
6171 compute_indirect_info param.
6172 * cgraph.c (cgraph_node::create_indirect_edge): Compute
6173 indirect_info only when it is required.
6174 * cgraphclones.c (cgraph_clone_edge): Do not recompute
6175 indirect_info fore cloned indirect edge.
6177 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6178 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6179 Anna Tikhonova <anna.tikhonova@intel.com>
6180 Ilya Tocar <ilya.tocar@intel.com>
6181 Andrey Turetskiy <andrey.turetskiy@intel.com>
6182 Ilya Verbin <ilya.verbin@intel.com>
6183 Kirill Yukhin <kirill.yukhin@intel.com>
6184 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6186 * config/i386/sse.md
6187 (define_mode_iterator VI8_AVX2_AVX512BW): New.
6188 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
6190 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6192 Anna Tikhonova <anna.tikhonova@intel.com>
6193 Ilya Tocar <ilya.tocar@intel.com>
6194 Andrey Turetskiy <andrey.turetskiy@intel.com>
6195 Ilya Verbin <ilya.verbin@intel.com>
6196 Kirill Yukhin <kirill.yukhin@intel.com>
6197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6199 * config/i386/sse.md
6200 (define_mode_iterator VF1_AVX512VL): New.
6201 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
6202 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
6205 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6206 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6207 Anna Tikhonova <anna.tikhonova@intel.com>
6208 Ilya Tocar <ilya.tocar@intel.com>
6209 Andrey Turetskiy <andrey.turetskiy@intel.com>
6210 Ilya Verbin <ilya.verbin@intel.com>
6211 Kirill Yukhin <kirill.yukhin@intel.com>
6212 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6214 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
6215 * config/i386/i386.md
6216 (define_code_iterator any_float): New.
6217 (define_code_attr floatsuffix): New.
6218 * config/i386/sse.md
6219 (define_mode_iterator VF1_128_256VL): New.
6220 (define_mode_iterator VF2_512_256VL): New.
6221 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
6223 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
6224 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
6226 (define_mode_attr qq2pssuff): New.
6227 (define_mode_attr sselongvecmode): New.
6228 (define_mode_attr sselongvecmodelower): New.
6229 (define_mode_attr sseintvecmode3): New.
6230 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
6232 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
6233 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
6234 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
6235 (define_insn "ufloatv2siv2df2<mask_name>"): New.
6237 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6238 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6239 Anna Tikhonova <anna.tikhonova@intel.com>
6240 Ilya Tocar <ilya.tocar@intel.com>
6241 Andrey Turetskiy <andrey.turetskiy@intel.com>
6242 Ilya Verbin <ilya.verbin@intel.com>
6243 Kirill Yukhin <kirill.yukhin@intel.com>
6244 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6246 * config/i386/sse.md
6247 (define_mode_iterator VF2_AVX512VL): New.
6248 (define_mode_attr sseintvecmode2): New.
6249 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
6250 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
6251 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
6253 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
6255 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6257 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
6260 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6261 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6262 Anna Tikhonova <anna.tikhonova@intel.com>
6263 Ilya Tocar <ilya.tocar@intel.com>
6264 Andrey Turetskiy <andrey.turetskiy@intel.com>
6265 Ilya Verbin <ilya.verbin@intel.com>
6266 Kirill Yukhin <kirill.yukhin@intel.com>
6267 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6269 * config/i386/i386.md
6270 (define_insn "*movoi_internal_avx"): Add evex version.
6271 (define_insn "*movti_internal"): Ditto.
6273 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6274 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6275 Anna Tikhonova <anna.tikhonova@intel.com>
6276 Ilya Tocar <ilya.tocar@intel.com>
6277 Andrey Turetskiy <andrey.turetskiy@intel.com>
6278 Ilya Verbin <ilya.verbin@intel.com>
6279 Kirill Yukhin <kirill.yukhin@intel.com>
6280 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6282 * config/i386/i386.md
6283 (define_attr "isa"): Add avx512dq, noavx512dq.
6284 (define_attr "enabled"): Ditto.
6285 * config/i386/sse.md
6286 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
6288 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
6289 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6290 Anna Tikhonova <anna.tikhonova@intel.com>
6291 Ilya Tocar <ilya.tocar@intel.com>
6292 Andrey Turetskiy <andrey.turetskiy@intel.com>
6293 Ilya Verbin <ilya.verbin@intel.com>
6294 Kirill Yukhin <kirill.yukhin@intel.com>
6295 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6297 * config/i386/i386.c
6298 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
6299 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
6300 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
6301 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
6302 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
6303 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
6304 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
6305 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
6306 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
6307 * config/i386/sse.md
6308 (define_mode_iterator VMOVE): Allow V4TI mode.
6309 (define_mode_iterator V_AVX512VL): New.
6310 (define_mode_iterator V): New handling for AVX512VL.
6311 (define_insn "avx512f_load<mode>_mask"): Delete.
6312 (define_insn "<avx512>_load<mode>_mask"): New.
6313 (define_insn "avx512f_store<mode>_mask"): Delete.
6314 (define_insn "<avx512>_store<mode>_mask"): New.
6317 2014-08-18 Yury Gribov <y.gribov@samsung.com>
6320 * asan.c (instrument_derefs): Fix bitfield check.
6322 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6324 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
6325 * config/rs6000/htm.md (ttest): Remove clobber.
6326 * config/rs6000/predicates.md (any_mask_operand): New predicate.
6327 (and_operand): Reformat.
6328 (and_2rld_operand): New predicate.
6329 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
6331 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
6332 parameter. Handle AND directly.
6333 (rs6000_split_logical_di): Remove last parameter.
6334 (rs6000_split_logical): Remove last parameter. Remove obsolete
6336 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
6337 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
6338 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
6339 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
6340 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
6341 and 5 anonymous splitters): Delete.
6342 (and<mode>3): New expander.
6343 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
6344 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
6345 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
6346 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
6347 (floatdisf2_internal1): Remove clobbers.
6348 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
6349 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
6350 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
6351 (and<mode>3 for BOOL_128): Remove clobber.
6352 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
6353 rs6000_split_logical.
6354 (*bool<mode>3_internal for BOOL_128): Adjust call of
6355 rs6000_split_logical.
6356 (*boolc<mode>3_internal1 for BOOL_128,
6357 *boolc<mode>3_internal2 for BOOL_128,
6358 *boolcc<mode>3_internal1 for BOOL_128,
6359 *boolcc<mode>3_internal2 for BOOL_128,
6360 *eqv<mode>3_internal1 for BOOL_128,
6361 *eqv<mode>3_internal2 for BOOL_128,
6362 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
6363 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
6365 (*vec_reload_and_reg_<mptrsize>): Delete.
6367 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6369 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
6370 and split, *boolccsi3_internal3 and split): Delete.
6371 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
6372 *boolccdi3_internal3 and split): Delete.
6373 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
6374 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
6376 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6378 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
6379 and split, *boolcsi3_internal3 and split): Delete.
6380 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
6381 *boolcdi3_internal3 and split): Delete.
6382 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
6384 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
6386 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
6387 <'u'>: Also support printing the low-order 16 bits.
6388 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
6389 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
6390 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
6391 *booldi3_internal3 and split): Delete.
6392 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
6393 *bool<mode>3_dot2): New.
6394 (two anonymous define_splits for non_logical_cint_operand): Merge.
6396 2014-08-17 Marek Polacek <polacek@redhat.com>
6397 Manuel López-Ibáñez <manu@gcc.gnu.org>
6400 * diagnostic.c (adjust_line): Add gcc_checking_assert.
6401 (diagnostic_show_locus): Don't print caret diagnostic
6402 if a column is larger than the line_width.
6404 2014-08-17 Roman Gareev <gareevroman@gmail.com>
6406 * common.opt: Make the ISL AST generator to be the main code generator
6409 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
6411 * wide-int.h (generic_wide_int): Declare as class instead of struct.
6413 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
6416 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
6418 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
6419 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
6420 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
6422 * config/pa/pa.md (begin_brtab): Delete insn.
6423 (end_brtab): Likewise.
6425 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
6427 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
6429 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
6431 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
6432 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
6433 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
6434 (get_dynamic_type): Remove.
6435 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
6436 (clear_speculation): Bring to ipa-deivrt.h
6437 (get_class_context): Rename to ...
6438 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
6439 (contains_type_p): Update.
6440 (get_dynamic_type): Rename to ...
6441 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
6442 (possible_polymorphic_call_targets): UPdate.
6443 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
6444 * ipa-prop.c (ipa_analyze_call_uses): Update.
6446 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
6448 * doc/invoke.texi (SH options): Document missing processor variant
6449 options. Remove references to Hitachi. Undocument deprecated mspace
6452 2014-08-15 Jason Merrill <jason@redhat.com>
6454 * tree.c (type_hash_canon): Uncomment assert.
6456 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6458 * input.h (in_system_header_at): Add comment.
6460 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6463 * diagnostic.c (build_message_string): Make it extern.
6464 * diagnostic.h (build_message_string): Make it extern.
6466 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
6468 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
6469 load/store from/to non-floating class pseudo.
6471 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
6473 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
6475 2014-08-15 Richard Biener <rguenther@suse.de>
6477 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
6478 (get_constraint_for_ssa_var): Remove dead code.
6479 (get_constraint_for_1): Adjust.
6480 (find_what_var_points_to): Likewise.
6481 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
6483 2014-08-15 Ilya Tocar <tocarip@gmail.com>
6486 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
6487 (_mm512_mask_cmpge_epu32_mask): Ditto.
6488 (_mm512_cmpge_epu32_mask): Ditto.
6489 (_mm512_mask_cmpge_epi64_mask): Ditto.
6490 (_mm512_cmpge_epi64_mask): Ditto.
6491 (_mm512_mask_cmpge_epu64_mask): Ditto.
6492 (_mm512_cmpge_epu64_mask): Ditto.
6493 (_mm512_mask_cmple_epi32_mask): Ditto.
6494 (_mm512_cmple_epi32_mask): Ditto.
6495 (_mm512_mask_cmple_epu32_mask): Ditto.
6496 (_mm512_cmple_epu32_mask): Ditto.
6497 (_mm512_mask_cmple_epi64_mask): Ditto.
6498 (_mm512_cmple_epi64_mask): Ditto.
6499 (_mm512_mask_cmple_epu64_mask): Ditto.
6500 (_mm512_cmple_epu64_mask): Ditto.
6501 (_mm512_mask_cmplt_epi32_mask): Ditto.
6502 (_mm512_cmplt_epi32_mask): Ditto.
6503 (_mm512_mask_cmplt_epu32_mask): Ditto.
6504 (_mm512_cmplt_epu32_mask): Ditto.
6505 (_mm512_mask_cmplt_epi64_mask): Ditto.
6506 (_mm512_cmplt_epi64_mask): Ditto.
6507 (_mm512_mask_cmplt_epu64_mask): Ditto.
6508 (_mm512_cmplt_epu64_mask): Ditto.
6509 (_mm512_mask_cmpneq_epi32_mask): Ditto.
6510 (_mm512_mask_cmpneq_epu32_mask): Ditto.
6511 (_mm512_cmpneq_epu32_mask): Ditto.
6512 (_mm512_mask_cmpneq_epi64_mask): Ditto.
6513 (_mm512_cmpneq_epi64_mask): Ditto.
6514 (_mm512_mask_cmpneq_epu64_mask): Ditto.
6515 (_mm512_cmpneq_epu64_mask): Ditto.
6516 (_mm512_castpd_ps): Ditto.
6517 (_mm512_castpd_si512): Ditto.
6518 (_mm512_castps_pd): Ditto.
6519 (_mm512_castps_si512): Ditto.
6520 (_mm512_castsi512_ps): Ditto.
6521 (_mm512_castsi512_pd): Ditto.
6522 (_mm512_castpd512_pd128): Ditto.
6523 (_mm512_castps512_ps128): Ditto.
6524 (_mm512_castsi512_si128): Ditto.
6525 (_mm512_castpd512_pd256): Ditto.
6526 (_mm512_castps512_ps256): Ditto.
6527 (_mm512_castsi512_si256): Ditto.
6528 (_mm512_castpd128_pd512): Ditto.
6529 (_mm512_castps128_ps512): Ditto.
6530 (_mm512_castsi128_si512): Ditto.
6531 (_mm512_castpd256_pd512): Ditto.
6532 (_mm512_castps256_ps512): Ditto.
6533 (_mm512_castsi256_si512): Ditto.
6534 (_mm512_cmpeq_epu32_mask): Ditto.
6535 (_mm512_mask_cmpeq_epu32_mask): Ditto.
6536 (_mm512_mask_cmpeq_epu64_mask): Ditto.
6537 (_mm512_cmpeq_epu64_mask): Ditto.
6538 (_mm512_cmpgt_epu32_mask): Ditto.
6539 (_mm512_mask_cmpgt_epu32_mask): Ditto.
6540 (_mm512_mask_cmpgt_epu64_mask): Ditto.
6541 (_mm512_cmpgt_epu64_mask): Ditto.
6542 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
6543 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
6544 * config/i386/i386.c (enum ix86_builtins): Add
6545 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
6546 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
6547 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
6548 (bdesc_args): Add __builtin_ia32_si512_256si,
6549 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
6550 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
6551 __builtin_ia32_pd512_pd.
6552 (ix86_expand_args_builtin): Handle new FTYPEs.
6553 * config/i386/sse.md (castmode): Add 512-bit modes.
6554 (AVX512MODE2P): New.
6555 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
6556 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
6558 2014-08-15 Richard Biener <rguenther@suse.de>
6560 * fold-const.c (tree_swap_operands_p): Put all constants
6561 last, also strip sign-changing NOPs when considering further
6562 canonicalization. Canonicalize also when optimizing for size.
6564 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6566 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
6567 one_match > zero_match case to just before simple_sequence.
6569 2014-08-15 Richard Biener <rguenther@suse.de>
6571 * data-streamer.h (streamer_string_index, string_for_index):
6573 * data-streamer-out.c (streamer_string_index): Make static.
6574 * data-streamer-in.c (string_for_index): Likewise.
6575 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
6576 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
6578 2014-08-15 Richard Biener <rguenther@suse.de>
6580 PR tree-optimization/62031
6581 * tree-data-ref.c (dr_analyze_indices): Do not set
6582 DR_UNCONSTRAINED_BASE.
6583 (dr_may_alias_p): All indirect accesses have to go the
6584 formerly DR_UNCONSTRAINED_BASE path.
6585 * tree-data-ref.h (struct indices): Remove
6586 unconstrained_base member.
6587 (DR_UNCONSTRAINED_BASE): Remove.
6589 2014-08-15 Jakub Jelinek <jakub@redhat.com>
6592 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
6593 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
6594 in OMP_CLAUSE_MAP in some outer target region.
6596 2014-08-15 Bin Cheng <bin.cheng@arm.com>
6598 * tree-ssa-loop-ivopts.c (ivopts_data): New field
6599 name_expansion_cache.
6600 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
6601 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
6602 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
6603 (difference_cannot_overflow_p): New parameter. Use affine
6604 expansion for equality check.
6605 (iv_elimination_compare_lt): Pass new argument.
6607 2014-08-14 DJ Delorie <dj@redhat.com>
6609 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
6610 variables to the accumulator.
6612 * config/rl78/predicates.md (rl78_near_mem_operand): New.
6613 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
6614 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
6617 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
6618 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
6619 (umulqihi3_virt): Likewise.
6620 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
6621 (umulqihi3_real): Likewise.
6623 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
6625 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6627 PR tree-optimization/62091
6628 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
6629 function_entry_reached.
6630 (walk_aliased_vdefs): Clear it here.
6631 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
6633 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
6635 * ipa-utils.h (compare_virtual_tables): Declare.
6636 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
6638 2014-08-14 Marek Polacek <polacek@redhat.com>
6641 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
6642 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
6644 2014-08-14 Tom de Vries <tom@codesourcery.com>
6646 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
6648 2014-08-14 Tom de Vries <tom@codesourcery.com>
6650 PR rtl-optimization/62004
6651 PR rtl-optimization/62030
6652 * ifcvt.c (rtx_interchangeable_p): New function.
6653 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
6654 * emit-rtl.h (mem_attrs_eq_p): Declare.
6656 2014-08-14 Roman Gareev <gareevroman@gmail.com>
6658 * graphite-scop-detection.c:
6659 Add inclusion of cp-tree.h.
6660 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
6661 in case they are pointers to object types
6663 2014-08-14 Richard Biener <rguenther@suse.de>
6665 * BASE-VER: Change to 5.0.0
6667 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6668 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6669 Anna Tikhonova <anna.tikhonova@intel.com>
6670 Ilya Tocar <ilya.tocar@intel.com>
6671 Andrey Turetskiy <andrey.turetskiy@intel.com>
6672 Ilya Verbin <ilya.verbin@intel.com>
6673 Kirill Yukhin <kirill.yukhin@intel.com>
6674 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6676 * config/i386/sse.md (define_mode_attr avx512): New.
6677 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
6679 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
6680 (define_mode_attr ssse3_avx2): Ditto.
6681 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
6682 (define_mode_attr avx2_avx512bw): New.
6683 (define_mode_attr ssedoublemodelower): New.
6684 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
6686 (define_mode_attr ssebytemode): Allow V8DI modes.
6687 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
6688 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
6689 (define_mode_attr ssePSmode2): New.
6690 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
6692 (define_mode_attr dbpsadbwmode): New.
6693 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
6694 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
6695 (vi8_sse4_1_avx2_avx512): New.
6696 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
6698 (define_mode_attr blendbits): Move before its immediate use.
6700 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6701 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6702 Anna Tikhonova <anna.tikhonova@intel.com>
6703 Ilya Tocar <ilya.tocar@intel.com>
6704 Andrey Turetskiy <andrey.turetskiy@intel.com>
6705 Ilya Verbin <ilya.verbin@intel.com>
6706 Kirill Yukhin <kirill.yukhin@intel.com>
6707 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6709 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
6710 * config/i386/subst.md
6711 (define_mode_iterator SUBST_V): Update.
6712 (define_mode_iterator SUBST_A): Ditto.
6713 (define_subst_attr "mask_operand7"): New.
6714 (define_subst_attr "mask_operand10"): New.
6715 (define_subst_attr "mask_operand_arg34") : New.
6716 (define_subst_attr "mask_expand_op3"): New.
6717 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
6718 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
6719 (define_subst_attr "mask_avx512vl_condition"): New.
6720 (define_subst_attr "round_mask_operand4"): Ditto.
6721 (define_subst_attr "round_mask_scalar_op3"): Delete.
6722 (define_subst_attr "round_mask_op4"): New.
6723 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
6725 (define_subst_attr "round_modev8sf_condition"): New.
6726 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
6728 (define_subst_attr "round_saeonly_mask_operand4"): New.
6729 (define_subst_attr "round_saeonly_mask_op4"): New.
6730 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
6731 V8DImode, V16SImode.
6732 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
6733 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
6734 (define_subst_attr "mask_expand4_args"): New.
6735 (define_subst "mask_expand4"): New.
6737 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6739 Anna Tikhonova <anna.tikhonova@intel.com>
6740 Ilya Tocar <ilya.tocar@intel.com>
6741 Andrey Turetskiy <andrey.turetskiy@intel.com>
6742 Ilya Verbin <ilya.verbin@intel.com>
6743 Kirill Yukhin <kirill.yukhin@intel.com>
6744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6746 * config/i386/i386.md
6747 (define_attr "isa"): Add avx512bw,noavx512bw.
6748 (define_attr "enabled"): Ditto.
6749 (define_split): Add 32/64-bit mask logic.
6750 (define_insn "*k<logic>qi"): New.
6751 (define_insn "*k<logic>hi"): New.
6752 (define_insn "*anddi_1"): Add mask version.
6753 (define_insn "*andsi_1"): Ditto.
6754 (define_insn "*<code><mode>_1"): Ditto.
6755 (define_insn "*<code>hi_1"): Ditto.
6756 (define_insn "kxnor<mode>"): New.
6757 (define_insn "kunpcksi"): New.
6758 (define_insn "kunpckdi"): New.
6759 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
6760 (define_insn "*one_cmplhi2_1"): Ditto.
6762 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
6763 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6764 Anna Tikhonova <anna.tikhonova@intel.com>
6765 Ilya Tocar <ilya.tocar@intel.com>
6766 Andrey Turetskiy <andrey.turetskiy@intel.com>
6767 Ilya Verbin <ilya.verbin@intel.com>
6768 Kirill Yukhin <kirill.yukhin@intel.com>
6769 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6771 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
6774 2014-08-14 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 (print_reg): Сorrectly print 64-bit mask
6785 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
6786 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
6787 xmm/ymm16+ when availble.
6788 * config/i386/i386.h
6789 (HARD_REGNO_NREGS): Add mask regs.
6790 (VALID_AVX512F_REG_MODE): Ditto.
6791 (VALID_AVX512F_REG_MODE) : Define.
6792 (VALID_MASK_AVX512BW_MODE): Ditto.
6793 (reg_class) (MASK_REG_P(X)): Define.
6794 * config/i386/i386.md: Do not split long moves with mask register,
6795 use kmovb if avx512bw is availible.
6796 (movdi_internal): Handle mask registers.
6798 2014-08-14 Richard Biener <rguenther@suse.de>
6800 PR tree-optimization/62081
6801 * tree-ssa-loop.c (pass_fix_loops): New pass.
6802 (pass_tree_loop::gate): Do not fixup loops here.
6803 * tree-pass.h (make_pass_fix_loops): Declare.
6804 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
6806 2014-08-14 Richard Biener <rguenther@suse.de>
6808 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
6809 (type_hash_canon): ... this and avoid 2nd lookup for the add.
6811 2014-08-14 Richard Biener <rguenther@suse.de>
6813 PR tree-optimization/62090
6814 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
6815 (fold_builtin_2): Do not fold sprintf.
6816 (fold_builtin_3): Likewise.
6817 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
6818 moved from builtins.c.
6819 (gimple_fold_builtin): Fold sprintf.
6821 2014-08-14 Richard Biener <rguenther@suse.de>
6823 PR rtl-optimization/62079
6824 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
6827 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6829 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
6830 current_function_decl.
6832 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
6834 * cgraph.c (cgraph_node::function_symbol): Fix wrong
6835 cgraph_function_node to cgraph_node::function_symbol
6838 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
6840 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
6841 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
6843 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
6845 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
6848 2014-08-13 Roman Gareev <gareevroman@gmail.com>
6850 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
6853 2014-08-12 Jakub Jelinek <jakub@redhat.com>
6856 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
6857 any registers that are used in mem_insn.
6859 2014-08-12 Steve Ellcey <sellcey@mips.com>
6861 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
6863 2014-08-12 Steve Ellcey <sellcey@mips.com>
6865 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
6866 (MULTILIB_DIRNAMES): Ditto.
6867 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
6868 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
6869 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
6870 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
6871 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
6872 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
6874 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6877 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
6878 of __ARM_SIZEOF_WCHAR_T.
6880 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6883 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
6884 Remove unnecessary attributes.
6886 2014-08-12 Yury Gribov <y.gribov@samsung.com>
6888 * internal-fn.c (init_internal_fns): Fix off-by-one.
6890 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
6891 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6892 Anna Tikhonova <anna.tikhonova@intel.com>
6893 Ilya Tocar <ilya.tocar@intel.com>
6894 Andrey Turetskiy <andrey.turetskiy@intel.com>
6895 Ilya Verbin <ilya.verbin@intel.com>
6896 Kirill Yukhin <kirill.yukhin@intel.com>
6897 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6899 * config/i386/i386.c (standard_sse_constant_opcode): Use
6900 vpxord/vpternlog if avx512 is availible.
6902 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
6905 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
6906 bitfields, that is when size doesn't match the size of type or the
6907 size of the constructor.
6909 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
6911 * config/rs6000/constraints.md (wh constraint): New constraint,
6912 for FP registers if direct move is available.
6913 (wi constraint): New constraint, for VSX/FP registers that can
6914 handle 64-bit integers.
6915 (wj constraint): New constraint for VSX/FP registers that can
6916 handle 64-bit integers for direct moves.
6917 (wk constraint): New constraint for VSX/FP registers that can
6918 handle 64-bit doubles for direct moves.
6919 (wy constraint): Make documentation match implementation.
6921 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
6922 scalar_in_vmx_p field to simplify tests of whether SFmode or
6923 DFmode can go in the Altivec registers.
6924 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
6925 (rs6000_setup_reg_addr_masks): Likewise.
6926 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
6927 field, and wh/wi/wj/wk constraints.
6928 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
6929 the wh/wi/wj/wk constraints.
6930 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
6931 upper registers, prefer VSX registers unless the operation is a
6932 memory operation with REG+OFFSET addressing.
6934 * config/rs6000/vsx.md (VSr mode attribute): Add support for
6935 DImode. Change SFmode to use ww constraint instead of d to allow
6936 SF registers in the upper registers.
6939 (VSr5): Fix thinko in comment.
6940 (VSa): New mode attribute that is an alternative to wa, that
6941 returns the VSX register class that a mode can go in, but may not
6942 be the preferred register class.
6943 (VS_64dm): New mode attribute for appropriate register classes for
6944 referencing 64-bit elements of vectors for direct moves and normal
6946 (VS_64reg): Likewise.
6947 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
6948 register allocator to only registers the data type can handle.
6949 (vsx_le_perm_load_<mode>): Likewise.
6950 (vsx_le_perm_store_<mode>): Likewise.
6951 (vsx_xxpermdi2_le_<mode>): Likewise.
6952 (vsx_xxpermdi4_le_<mode>): Likewise.
6953 (vsx_lxvd2x2_le_<mode>): Likewise.
6954 (vsx_lxvd2x4_le_<mode>): Likewise.
6955 (vsx_stxvd2x2_le_<mode>): Likewise.
6956 (vsx_add<mode>3): Likewise.
6957 (vsx_sub<mode>3): Likewise.
6958 (vsx_mul<mode>3): Likewise.
6959 (vsx_div<mode>3): Likewise.
6960 (vsx_tdiv<mode>3_internal): Likewise.
6961 (vsx_fre<mode>2): Likewise.
6962 (vsx_neg<mode>2): Likewise.
6963 (vsx_abs<mode>2): Likewise.
6964 (vsx_nabs<mode>2): Likewise.
6965 (vsx_smax<mode>3): Likewise.
6966 (vsx_smin<mode>3): Likewise.
6967 (vsx_sqrt<mode>2): Likewise.
6968 (vsx_rsqrte<mode>2): Likewise.
6969 (vsx_tsqrt<mode>2_internal): Likewise.
6970 (vsx_fms<mode>4): Likewise.
6971 (vsx_nfma<mode>4): Likewise.
6972 (vsx_eq<mode>): Likewise.
6973 (vsx_gt<mode>): Likewise.
6974 (vsx_ge<mode>): Likewise.
6975 (vsx_eq<mode>_p): Likewise.
6976 (vsx_gt<mode>_p): Likewise.
6977 (vsx_ge<mode>_p): Likewise.
6978 (vsx_xxsel<mode>): Likewise.
6979 (vsx_xxsel<mode>_uns): Likewise.
6980 (vsx_copysign<mode>3): Likewise.
6981 (vsx_float<VSi><mode>2): Likewise.
6982 (vsx_floatuns<VSi><mode>2): Likewise.
6983 (vsx_fix_trunc<mode><VSi>2): Likewise.
6984 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
6985 (vsx_x<VSv>r<VSs>i): Likewise.
6986 (vsx_x<VSv>r<VSs>ic): Likewise.
6987 (vsx_btrunc<mode>2): Likewise.
6988 (vsx_b2trunc<mode>2): Likewise.
6989 (vsx_floor<mode>2): Likewise.
6990 (vsx_ceil<mode>2): Likewise.
6991 (vsx_<VS_spdp_insn>): Likewise.
6992 (vsx_xscvspdp): Likewise.
6993 (vsx_xvcvspuxds): Likewise.
6994 (vsx_float_fix_<mode>2): Likewise.
6995 (vsx_set_<mode>): Likewise.
6996 (vsx_extract_<mode>_internal1): Likewise.
6997 (vsx_extract_<mode>_internal2): Likewise.
6998 (vsx_extract_<mode>_load): Likewise.
6999 (vsx_extract_<mode>_store): Likewise.
7000 (vsx_splat_<mode>): Likewise.
7001 (vsx_xxspltw_<mode>): Likewise.
7002 (vsx_xxspltw_<mode>_direct): Likewise.
7003 (vsx_xxmrghw_<mode>): Likewise.
7004 (vsx_xxmrglw_<mode>): Likewise.
7005 (vsx_xxsldwi_<mode>): Likewise.
7006 (vsx_xscvdpspn): Tighten constraints to only use register classes
7008 (vsx_xscvspdpn): Likewise.
7009 (vsx_xscvdpspn_scalar): Likewise.
7011 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
7012 wj, and wk constraints.
7013 (GPR_REG_CLASS_P): New helper macro for register classes targeting
7014 general purpose registers.
7016 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
7018 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
7019 DImode instead of wm. Use wk constraint for direct move of DFmode
7021 (extendsidi2_lfiwax): Likewise.
7024 (movdi_internal64): Likewise.
7026 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
7027 wk constraints. Make the wy constraint documentation match them
7030 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
7032 Replacement of isl_int by isl_val
7033 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
7034 (compute_bounds_for_param): use isl_val instead of isl_int
7035 (compute_bounds_for_loop): likewise
7036 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
7037 (build_linearized_memory_access): use isl_val instead of isl_int
7038 (pdr_stride_in_loop): likewise
7039 * graphite-optimize-isl.c:
7040 (getPrevectorMap): use isl_val instead of isl_int
7042 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
7043 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
7044 (extern the_isl_ctx): declare
7045 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
7046 (extract_affine_gmp): likewise
7048 (build_loop_iteration_domains): likewise
7049 (add_param_constraints): likewise
7051 2014-08-11 Richard Biener <rguenther@suse.de>
7053 PR tree-optimization/62075
7054 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
7055 handle uses in patterns.
7057 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7058 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7059 Anna Tikhonova <anna.tikhonova@intel.com>
7060 Ilya Tocar <ilya.tocar@intel.com>
7061 Andrey Turetskiy <andrey.turetskiy@intel.com>
7062 Ilya Verbin <ilya.verbin@intel.com>
7063 Kirill Yukhin <kirill.yukhin@intel.com>
7064 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7066 * common/config/i386/i386-common.c
7067 (OPTION_MASK_ISA_AVX512VL_SET): Define.
7068 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
7069 (ix86_handle_option): Handle OPT_mavx512vl.
7070 * config/i386/cpuid.h (bit_AVX512VL): Define.
7071 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
7072 set -mavx512vl accordingly.
7073 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7074 OPTION_MASK_ISA_AVX512VL.
7075 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
7076 (ix86_option_override_internal): Define PTA_AVX512VL, handle
7077 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
7078 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
7079 * config/i386/i386.h (TARGET_AVX512VL): Define.
7080 (TARGET_AVX512VL_P(x)): Ditto.
7081 * config/i386/i386.opt: Add mavx512vl.
7083 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
7085 PR tree-optimization/62073
7086 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
7089 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
7090 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7091 Anna Tikhonova <anna.tikhonova@intel.com>
7092 Ilya Tocar <ilya.tocar@intel.com>
7093 Andrey Turetskiy <andrey.turetskiy@intel.com>
7094 Ilya Verbin <ilya.verbin@intel.com>
7095 Kirill Yukhin <kirill.yukhin@intel.com>
7096 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7098 * common/config/i386/i386-common.c
7099 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
7100 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
7101 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
7102 (ix86_handle_option): Handle OPT_mavx512bw.
7103 * config/i386/cpuid.h (bit_AVX512BW): Define.
7104 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
7105 set -mavx512bw accordingly.
7106 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7107 OPTION_MASK_ISA_AVX512BW.
7108 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
7109 (ix86_option_override_internal): Define PTA_AVX512BW, handle
7110 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
7111 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
7112 * config/i386/i386.h (TARGET_AVX512BW): Define.
7113 (TARGET_AVX512BW_P(x)): Ditto.
7114 * config/i386/i386.opt: Add mavx512bw.
7116 2014-08-11 Richard Biener <rguenther@suse.de>
7118 PR tree-optimization/62070
7119 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
7120 Remove SSA checking.
7122 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7124 * asan.c (asan_check_flags): New enum.
7125 (build_check_stmt_with_calls): Removed function.
7126 (build_check_stmt): Split inlining logic to
7127 asan_expand_check_ifn.
7128 (instrument_derefs): Rename parameter.
7129 (instrument_mem_region_access): Rename parameter.
7130 (instrument_strlen_call): Likewise.
7131 (asan_expand_check_ifn): New function.
7132 (asan_instrument): Remove old code.
7133 (pass_sanopt::execute): Change handling of
7134 asan-instrumentation-with-call-threshold.
7135 (asan_clear_shadow): Fix formatting.
7136 (asan_function_start): Likewise.
7137 (asan_emit_stack_protection): Likewise.
7138 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
7140 * internal-fn.c (expand_ASAN_CHECK): New function.
7141 * internal-fn.def (ASAN_CHECK): New internal function.
7142 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
7144 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
7145 * tree.c: Small comment fix.
7147 2014-08-11 Yury Gribov <y.gribov@samsung.com>
7149 * gimple.c (gimple_call_fnspec): Support internal functions.
7150 (gimple_call_return_flags): Use const.
7151 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
7152 * internal-fn.def: Add fnspec information.
7153 * internal-fn.h (internal_fn_fnspec): New function.
7154 (init_internal_fns): Declare new function.
7155 * internal-fn.c (internal_fn_fnspec_array): New global variable.
7156 (init_internal_fns): New function.
7157 * tree-core.h: Update macro call.
7158 * tree.c (build_common_builtin_nodes): Initialize internal fns.
7160 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
7162 * lto-streamer.h (struct output_block::symbol): Change from
7163 struct symtab_node to plain symtab_node.
7164 (referenced_from_this_partition_p): Change first parameter
7165 from struct symtab_node to plain symtab_node.
7167 2014-08-10 Marek Polacek <polacek@redhat.com>
7170 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
7172 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
7174 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
7175 DECL correctly; do not give up on types in static storage.
7177 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
7179 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
7181 2014-08-09 Roman Gareev <gareevroman@gmail.com>
7183 * graphite-isl-ast-to-gimple.c:
7184 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
7186 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
7188 2014-08-08 Guozhi Wei <carrot@google.com>
7190 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
7192 2014-08-08 Cary Coutant <ccoutant@google.com>
7194 * dwarf2out.c (get_skeleton_type_unit): Remove.
7195 (output_skeleton_debug_sections): Remove skeleton type units.
7196 (output_comdat_type_unit): Likewise.
7197 (dwarf2out_finish): Likewise.
7199 2014-08-07 Yi Yang <ahyangyi@google.com>
7201 * predict.c (expr_expected_value_1): Remove the redundant assignment.
7203 2014-08-08 Richard Biener <rguenther@suse.de>
7205 * lto-streamer.h (struct lto_input_block): Make it a class
7207 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
7208 (struct lto_function_header, struct lto_simple_header,
7209 struct lto_simple_header_with_strings,
7210 struct lto_decl_header, struct lto_function_header): Make
7211 a simple inheritance hieararchy. Remove unused fields.
7212 (struct lto_asm_header): Remove.
7213 * lto-streamer-out.c (produce_asm): Adjust.
7214 (lto_output_toplevel_asms): Likewise.
7215 (produce_asm_for_decls): Likewise.
7216 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
7217 * data-streamer-in.c (string_for_index): Likewise.
7218 * ipa-inline-analysis.c (inline_read_section): Likewise.
7219 * ipa-prop.c (ipa_prop_read_section): Likewise.
7220 (read_replacements_section): Likewise.
7221 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
7222 * lto-section-in.c (lto_create_simple_input_block): Likewise.
7223 (lto_destroy_simple_input_block): Likewise.
7224 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
7225 (lto_input_toplevel_asms): Likewise.
7227 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
7228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7229 Anna Tikhonova <anna.tikhonova@intel.com>
7230 Ilya Tocar <ilya.tocar@intel.com>
7231 Andrey Turetskiy <andrey.turetskiy@intel.com>
7232 Ilya Verbin <ilya.verbin@intel.com>
7233 Kirill Yukhin <kirill.yukhin@intel.com>
7234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7236 * common/config/i386/i386-common.c
7237 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
7238 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
7239 (ix86_handle_option): Handle OPT_mavx512dq.
7240 * config/i386/cpuid.h (bit_AVX512DQ): Define.
7241 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
7242 set -mavx512dq accordingly.
7243 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
7244 OPTION_MASK_ISA_AVX512DQ.
7245 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
7246 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
7247 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
7248 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
7249 * config/i386/i386.h (TARGET_AVX512DQ): Define.
7250 (TARGET_AVX512DQ_P(x)): Ditto.
7251 * config/i386/i386.opt: Add mavx512dq.
7253 2014-08-08 Richard Biener <rguenther@suse.de>
7255 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
7256 target_percent, target_percent_s): Export.
7257 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
7258 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
7259 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
7260 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
7261 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
7262 Move to gimple-fold.c.
7263 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
7265 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
7266 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
7267 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
7268 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
7269 (rewrite_call_expr_array): Remove.
7270 (fold_builtin_sprintf_chk): Likewise.
7271 (fold_builtin_snprintf_chk): Likewise.
7272 (fold_builtin_varargs): Remove handling of sprintf_chk,
7273 vsprintf_chk, snprintf_chk and vsnprintf_chk.
7274 (gimple_fold_builtin_sprintf_chk): Remove.
7275 (gimple_fold_builtin_snprintf_chk): Likewise.
7276 (gimple_fold_builtin_varargs): Likewise.
7277 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
7278 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
7279 * gimple.c (gimple_seq_add_seq_without_update): New function.
7280 * gimple.h (gimple_seq_add_seq_without_update): Declare.
7281 * gimple-fold.c: Include output.h.
7282 (gsi_replace_with_seq_vops): New function, split out from ...
7283 (gimplify_and_update_call_from_tree): ... here.
7284 (replace_call_with_value): New function.
7285 (replace_call_with_call_and_fold): Likewise.
7286 (var_decl_component_p): Moved from builtins.c.
7287 (gimple_fold_builtin_memory_op): Moved from builtins.c
7288 fold_builtin_memory_op and rewritten to GIMPLE.
7289 (gimple_fold_builtin_memset): Likewise.
7290 (gimple_fold_builtin_strcpy): Likewise.
7291 (gimple_fold_builtin_strncpy): Likewise.
7292 (gimple_fold_builtin_strcat): Likewise.
7293 (gimple_fold_builtin_fputs): Likewise.
7294 (gimple_fold_builtin_memory_chk): Likewise.
7295 (gimple_fold_builtin_stxcpy_chk): Likewise.
7296 (gimple_fold_builtin_stxncpy_chk): Likewise.
7297 (gimple_fold_builtin_snprintf_chk): Likewise.
7298 (gimple_fold_builtin_sprintf_chk): Likewise.
7299 (gimple_fold_builtin_strlen): New function.
7300 (gimple_fold_builtin_with_strlen): New function split out from
7301 gimple_fold_builtin.
7302 (gimple_fold_builtin): Change signature and handle
7303 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
7304 here. Call gimple_fold_builtin_with_strlen.
7305 (gimple_fold_call): Adjust.
7307 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7309 * calls.c (precompute_arguments): Check
7310 promoted_for_signed_and_unsigned_p and set the promoted mode.
7311 (promoted_for_signed_and_unsigned_p): New function.
7312 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
7313 and set the promoted mode.
7314 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
7315 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
7316 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
7319 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
7321 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
7322 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7323 (expand_call): Likewise.
7324 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
7325 to get promoted mode.
7326 * combine.c (record_promoted_value): Skip > 0 comparison with
7327 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
7328 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
7329 of SUBREG_PROMOTED_UNSIGNED_P.
7330 (convert_modes): Likewise.
7331 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
7332 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
7333 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
7334 SUBREG_PROMOTED_UNSIGNED_SET.
7335 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
7336 instead of SUBREG_PROMOTED_UNSIGNED_SET.
7337 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
7338 SUBREG_PROMOTED_SET.
7339 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
7340 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
7341 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
7342 of SUBREG_PROMOTED_UNSIGNED_P.
7343 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
7344 (SUBREG_PROMOTED_SET): New define.
7345 (SUBREG_PROMOTED_GET): Likewise.
7346 (SUBREG_PROMOTED_SIGN): Likewise.
7347 (SUBREG_PROMOTED_SIGNED_P): Likewise.
7348 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
7349 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
7350 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
7351 instead of SUBREG_PROMOTED_UNSIGNED_GET.
7352 (nonzero_bits1): Skip > 0 comparison with the results as
7353 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
7354 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
7355 of !SUBREG_PROMOTED_UNSIGNED_P.
7356 * simplify-rtx.c (simplify_unary_operation_1): Use new
7357 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
7358 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
7359 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
7360 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
7362 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
7364 * ipa-devirt.c: Include gimple-pretty-print.h
7365 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
7367 (decl_maybe_in_construction_p): Fix conditional on cdtor check
7368 (get_polymorphic_call_info): Fix return value
7369 (type_change_info): New sturcture based on ipa-prop
7371 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
7372 based on ipa-prop variant.
7373 (extr_type_from_vtbl_ptr_store): New function
7374 based on ipa-prop variant.
7375 (record_known_type): New function.
7376 (check_stmt_for_type_change): New function.
7377 (get_dynamic_type): New function.
7378 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
7379 * tree-ssa-pre.c: ipa-utils.h
7380 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
7381 machinery; sanity check with ipa-prop devirtualization.
7382 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
7385 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7387 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
7388 * alias.c, cfgexpand.c, cgraphbuild.c,
7389 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
7390 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
7391 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
7392 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
7393 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
7394 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7395 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
7396 dse.c, except.c, gengtype.c, gimple-expr.c,
7397 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
7398 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
7399 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
7400 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
7401 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
7402 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
7404 * pointer-set.c: Remove file.
7405 * pointer-set.h: Remove file.
7407 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7409 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
7410 * config/arm/types.md (f_sels, f_seld): Delete.
7412 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7414 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
7415 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
7416 (aarch64_movdi_<mode>high): Likewise.
7417 (aarch64_mov<mode>high_di): Likewise.
7418 (aarch64_movdi_<mode>low): Likewise.
7419 (aarch64_mov<mode>low_di): Likewise.
7420 (aarch64_movtilow_tilow): Likewise.
7421 Add comment explaining usage of fp,simd attributes and of
7422 TARGET_FLOAT and TARGET_SIMD.
7424 2014-08-07 Ian Bolton <ian.bolton@arm.com>
7425 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7427 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
7428 Use MOVN when one of the half-words is 0xffff.
7430 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7432 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
7434 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7436 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
7437 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
7438 (rfs_str): String corresponding to RFS_* constants.
7439 (rank_for_schedule_stats_t): New typedef.
7440 (rank_for_schedule_stats): New static variable.
7441 (rfs_result): New static function.
7442 (rank_for_schedule): Track statistics for deciding heuristics.
7443 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
7445 (ready_sort): Use them for debug printouts.
7446 (schedule_block): Init statistics state. Print statistics on
7447 rank_for_schedule decisions.
7449 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
7451 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
7453 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
7455 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
7458 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
7460 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
7461 function to not conflict.
7462 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
7463 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
7464 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
7465 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
7466 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
7469 2014-08-07 Marek Polacek <polacek@redhat.com>
7471 * fold-const.c (fold_binary_loc): Add folding of
7472 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
7474 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
7476 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
7477 instead of type size.
7478 (ASM_FINISH_DECLARE_OBJECT): Likewise.
7480 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
7482 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
7483 (*thumb1_movqi_insn): Likewise.
7484 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
7486 2014-08-07 Tom de Vries <tom@codesourcery.com>
7488 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7489 (glibc_2_11_or_earlier): Remove effective-target keywords.
7491 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7493 * config/arm/arm.c (bdesc_2arg): Fix typo.
7494 (arm_atomic_assign_expand_fenv): Remove The default implementation.
7496 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
7498 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
7500 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
7503 * haifa-sched.c (advance_one_cycle): Fix dump.
7504 (schedule_block): Don't advance cycle if we are already at the
7505 beginning of the cycle.
7507 2014-08-06 Martin Jambor <mjambor@suse.cz>
7510 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
7512 2014-08-06 Richard Biener <rguenther@suse.de>
7515 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
7517 (lto_input_tree): Pop SCCs here.
7519 2014-08-06 Richard Biener <rguenther@suse.de>
7521 PR tree-optimization/61320
7522 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
7523 handle misaligned loads.
7525 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
7527 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
7528 (aarch64_expand_vec_perm_const): Check for dup before zip.
7530 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7532 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
7533 CONST_INT_P instead of GET_CODE and compare.
7534 (aarch64_select_cc_mode): Likewise.
7535 (aarch64_print_operand): Likewise.
7536 (aarch64_rtx_costs): Likewise.
7537 (aarch64_simd_valid_immediate): Likewise.
7538 (aarch64_simd_check_vect_par_cnst_half): Likewise.
7539 (aarch64_simd_emit_pair_result_insn): Likewise.
7541 2014-08-05 David Malcolm <dmalcolm@redhat.com>
7543 * gdbhooks.py (find_gcc_source_dir): New helper function.
7544 (class PassNames): New class, locating and parsing passes.def.
7545 (class BreakOnPass): New command "break-on-pass".
7547 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
7549 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
7552 2014-08-05 Richard Biener <rguenther@suse.de>
7554 PR rtl-optimization/61672
7555 * emit-rtl.h (mem_attrs_eq_p): Declare.
7556 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
7557 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
7558 * cfgcleanup.c (merge_memattrs): Likewise.
7561 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7563 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
7564 rather than singleton vectors.
7565 (vqdmlsls_lane_s32): Likewise.
7567 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7569 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
7570 Use VSDQ_HSI mode iterator.
7571 (aarch64_sqrdmulh_laneq<mode>): Likewise.
7572 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
7573 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
7574 Use BUILTIN_VDQHS macro.
7575 (sqrdmulh_laneq): Likewise.
7576 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
7577 (vqdmlals_laneq_s32): Likewise.
7578 (vqdmlslh_laneq_s16): Likewise.
7579 (vqdmlsls_laneq_s32): Likewise.
7580 (vqdmulhh_laneq_s16): Likewise.
7581 (vqdmulhs_laneq_s32): Likewise.
7582 (vqrdmulhh_laneq_s16): Likewise.
7583 (vqrdmulhs_laneq_s32): Likewise.
7585 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7587 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
7588 (vmuld_laneq_f64): Likewise.
7589 (vmuls_laneq_f32): Likewise.
7590 (vmul_n_f64): Likewise.
7591 (vmuld_lane_f64): Reimplement in C.
7592 (vmuls_lane_f32): Likewise.
7594 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7596 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
7598 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
7600 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7602 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
7603 (rbitsi2): Likewise.
7604 (*arm_rev): Set predicable and predicable_short_it attributes.
7606 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7608 * convert.c (convert_to_integer): Guard transformation to lrint by
7611 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
7613 * config/aarch64/aarch64-builtins.c
7614 (aarch64_simd_builtin_type_mode): Delete.
7615 (v8qi_UP): Remap to V8QImode.
7616 (v4hi_UP): Remap to V4HImode.
7617 (v2si_UP): Remap to V2SImode.
7618 (v2sf_UP): Remap to V2SFmode.
7619 (v1df_UP): Remap to V1DFmode.
7620 (di_UP): Remap to DImode.
7621 (df_UP): Remap to DFmode.
7622 (v16qi_UP):V16QImode.
7623 (v8hi_UP): Remap to V8HImode.
7624 (v4si_UP): Remap to V4SImode.
7625 (v4sf_UP): Remap to V4SFmode.
7626 (v2di_UP): Remap to V2DImode.
7627 (v2df_UP): Remap to V2DFmode.
7628 (ti_UP): Remap to TImode.
7629 (ei_UP): Remap to EImode.
7630 (oi_UP): Remap to OImode.
7631 (ci_UP): Map to CImode.
7632 (xi_UP): Remap to XImode.
7633 (si_UP): Remap to SImode.
7634 (sf_UP): Remap to SFmode.
7635 (hi_UP): Remap to HImode.
7636 (qi_UP): Remap to QImode.
7637 (aarch64_simd_builtin_datum): Make mode a machine_mode.
7638 (VAR1): Build builtin name.
7639 (aarch64_init_simd_builtins): Remove dead code.
7641 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7643 * graphite-isl-ast-to-gimple.c:
7644 (set_options): New function.
7645 (scop_to_isl_ast): Add calling of set_options.
7647 2014-08-05 Jakub Jelinek <jakub@redhat.com>
7649 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
7650 (analyze_iv_to_split_insn): Don't initialize them.
7651 (get_ivts_expr): Removed.
7652 (allocate_basic_variable, insert_base_initialization): Use
7653 SET_SRC instead of *get_ivts_expr.
7654 (split_iv): Use &SET_SRC instead of get_ivts_expr.
7656 2014-08-05 Roman Gareev <gareevroman@gmail.com>
7658 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
7659 (translate_isl_ast_for_loop): Add checking of the
7660 flag_loop_parallelize_all.
7661 (ast_build_before_for): New function.
7662 (scop_to_isl_ast): Add checking of the
7663 flag_loop_parallelize_all.
7664 * graphite-dependences.c: Move the defenition of the
7665 scop_get_dependences from graphite-optimize-isl.c to this file.
7666 (apply_schedule_on_deps): Add checking of the ux's emptiness.
7667 (carries_deps): Add checking of the x's value.
7668 * graphite-optimize-isl.c: Move the defenition of the
7669 scop_get_dependences to graphite-dependences.c.
7670 * graphite-poly.h: Add declarations of scop_get_dependences
7673 2014-08-04 Rohit <rohitarulraj@freescale.com>
7676 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
7678 (alt_reg_names): Likewise.
7679 (rs6000_dwarf_register_span): For SPE high registers, replace
7680 dwarf register numbers with GCC hard register numbers.
7681 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
7682 (rs6000_dbx_register_number): For SPE high registers, return dwarf
7683 register number for the corresponding GCC hard register number.
7684 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
7685 newly added GCC hard register numbers for SPE high registers.
7686 (DWARF_FRAME_REGISTERS): Likewise.
7687 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
7688 (DWARF_FRAME_REGNUM): Likewise.
7689 (FIXED_REGISTERS): Likewise.
7690 (CALL_USED_REGISTERS): Likewise.
7691 (CALL_REALLY_USED_REGISTERS): Likewise.
7692 (REG_ALLOC_ORDER): Likewise.
7693 (enum reg_class): Likewise.
7694 (REG_CLASS_NAMES): Likewise.
7695 (REG_CLASS_CONTENTS): Likewise.
7696 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
7698 2014-08-04 Richard Biener <rguenther@suse.de>
7700 * gimple-fold.h (gimple_fold_builtin): Remove.
7701 * gimple-fold.c (gimple_fold_builtin): Make static.
7702 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
7703 fold_stmt, not gimple_fold_builtin.
7705 2014-08-04 Martin Liska <mliska@suse.cz>
7707 * cgraph.h (csi_end_p): Removed.
7708 (csi_next): Likewise.
7709 (csi_node): Likewise.
7710 (csi_start): Likewise.
7711 (cgraph_node_in_set_p): Likewise.
7712 (cgraph_node_set_size): Likewise.
7713 (vsi_end_p): Likewise.
7714 (vsi_next): Likewise.
7715 (vsi_node): Likewise.
7716 (vsi_start): Likewise.
7717 (varpool_node_set_size): Likewise.
7718 (cgraph_node_set_nonempty_p): Likewise.
7719 (varpool_node_set_nonempty_p): Likewise.
7720 * cgraphunit.c (cgraph_process_new_functions): vec replaces
7722 * ipa-inline-transform.c: Likewise.
7723 * ipa-utils.c (cgraph_node_set_new): Removed.
7724 (cgraph_node_set_add): Likewise.
7725 (cgraph_node_set_remove): Likewise.
7726 (cgraph_node_set_find): Likewise.
7727 (dump_cgraph_node_set): Likewise.
7728 (debug_cgraph_node_set): Likewise.
7729 (free_cgraph_node_set): Likewise.
7730 (varpool_node_set_new): Likewise.
7731 (varpool_node_set_add): Likewise.
7732 (varpool_node_set_remove): Likewise.
7733 (varpool_node_set_find): Likewise.
7734 (dump_varpool_node_set): Likewise.
7735 (free_varpool_node_set): Likewise.
7736 (debug_varpool_node_set): Likewise.
7737 * tree-emutls.c (struct tls_var_data):
7738 (emutls_index): Removed.
7739 (emutls_decl): Likewise.
7740 (gen_emutls_addr): Function implementation uses newly added
7741 hash_map<varpool_node *, tls_var_data>.
7742 (clear_access_vars): Likewise.
7743 (create_emultls_var): Likewise.
7744 (ipa_lower_emutls): Likewise.
7745 (reset_access): New function.
7747 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7749 * config/i386/i386.c (ix86_option_override_internal): Add
7750 PTA_RDRND and PTA_MOVBE for bdver4.
7752 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7753 James Greenhalgh <james.greenhalgh@arm.com>
7755 * doc/md.texi (clrsb): Document.
7756 (clz): Change reference to x into operand 1.
7758 (popcount): Likewise.
7760 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7763 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
7764 move to subtarget in serial version if result is ignored.
7766 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7767 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7769 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
7770 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
7771 (sched_analyze_insn): Update use of try_group_insn to
7772 sched_macro_fuse_insns.
7773 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
7774 arguments that are not conditional jumps.
7776 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
7778 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
7779 family information. Handle BTVER2 cpu with cpuid family value.
7781 2014-08-04 Tom de Vries <tom@codesourcery.com>
7783 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
7784 (glibc_2_11_or_earlier): Document effective-target keywords.
7786 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7788 * ipa-devirt.c (odr_type_warn_count): Add type.
7789 (possible_polymorphic_call_targets): Set it.
7790 (ipa_devirt): Use it.
7792 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
7794 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
7796 * ipa-devirt.c: Include hash-map.h
7797 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
7798 (clear_speculation): Break out of ...
7799 (get_class_context): ... here; speed up handling obviously useless
7801 (odr_type_warn_count, decl_warn_count): New structures.
7802 (final_warning_record): New structure.
7803 (final_warning_records): New static variable.
7804 (possible_polymorphic_call_targets): Cleanup handling of
7805 speculative info; do not build speculation when user do not care;
7806 record info about warnings when asked for.
7807 (add_decl_warning): New function.
7808 (type_warning_cmp): New function.
7809 (decl_warning_cmp): New function.
7810 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
7811 (gate): Enable pass when warnings are requested.
7812 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
7815 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7817 * hash-map.h (default_hashmap_traits::mark_key_deleted):
7819 (hash_map::remove): New method.
7820 (hash_map::traverse): New method.
7821 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
7822 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
7823 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
7824 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
7825 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
7826 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
7829 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
7831 * hash-set.h: new File.
7832 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
7833 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
7834 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
7835 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
7836 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
7837 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
7838 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
7839 varpool.c: Use hash_set instead of pointer_set.
7841 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
7843 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
7845 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7847 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
7848 for frame access when strict_p is false.
7850 2014-08-01 Renlin Li <renlin.li@arm.com>
7851 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7853 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
7854 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
7855 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
7857 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
7859 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
7860 aarch64_mem_pair_offset.
7862 2014-08-01 Jiong Wang <jiong.wang@arm.com>
7864 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
7866 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
7867 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
7869 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
7871 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
7873 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
7876 * cgraphunit.c (analyze_functions): Use get_create rather than get
7877 for decls which are clones of abstract functions.
7879 2014-08-01 Martin Liska <mliska@suse.cz>
7881 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
7882 * ipa-prop.h (count_formal_params): Global function created from static.
7883 * ipa-prop.c (count_formal_params): Likewise.
7884 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
7885 profiles for semantically equivalent functions.
7886 * passes.c (do_per_function): If we load body of a function
7887 during WPA, this condition should behave same.
7888 * varpool.c (ctor_for_folding): More tolerant assert for variable
7889 aliases created during WPA.
7891 2014-08-01 Martin Liska <mliska@suse.cz>
7893 * doc/invoke.texi (Options That Control Optimization): Documentation
7894 for -foptimize-strlen introduced. Optimization levels default options
7897 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7899 * opts.c (common_handle_option): Handle -fsanitize=alignment.
7900 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
7901 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
7903 * stor-layout.h (min_align_of_type): New prototype.
7904 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
7905 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
7907 * ubsan.c: Include builtins.h.
7908 (ubsan_expand_bounds_ifn): Change return type to bool,
7910 (ubsan_expand_null_ifn): Change return type to bool, change
7911 argument to gimple_stmt_iterator *. Handle both null and alignment
7912 sanitization, take type from ckind argument's type rather than
7914 (instrument_member_call): Removed.
7915 (instrument_mem_ref): Remove t argument, add mem and base arguments.
7916 Handle both null and alignment sanitization, don't say whole
7917 struct access is member access. Build 3 argument IFN_UBSAN_NULL
7918 call instead of 2 argument.
7919 (instrument_null): Adjust instrument_mem_ref caller. Don't
7920 instrument calls here.
7921 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
7923 * stor-layout.c (min_align_of_type): New function.
7924 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
7925 Or it into SANITIZE_UNDEFINED.
7926 * doc/invoke.texi (-fsanitize=alignment): Document.
7928 2014-07-31 Andi Kleen <ak@linux.intel.com>
7930 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
7932 2014-07-31 Andi Kleen <ak@linux.intel.com>
7934 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
7936 (vn_reference_compute_hash): Dito.
7937 (vn_nary_op_compute_hash): Dito.
7938 (vn_phi_compute_hash): Dito.
7939 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
7941 2014-07-31 Andi Kleen <ak@linux.intel.com>
7943 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
7944 Rename to inchash:add_expr_commutative. Convert to inchash.
7945 (iterative_hash_hashable_expr): Rename to
7946 inchash:add_hashable_expr. Convert to inchash.
7947 (avail_expr_hash): Dito.
7949 2014-07-31 Andi Kleen <ak@linux.intel.com>
7951 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
7954 2014-07-31 Andi Kleen <ak@linux.intel.com>
7956 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
7958 2014-07-31 Andi Kleen <ak@linux.intel.com>
7960 * Makefile.in (OBJS): Add rtlhash.o
7961 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
7962 (loc_checksum): Dito.
7963 (loc_checksum_ordered): Dito.
7964 (hash_loc_operands): Dito.
7966 (hash_loc_list): Dito.
7967 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
7968 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
7969 * rtlhash.c: New file.
7970 * rtlhash.h: New file.
7972 2014-07-31 Andi Kleen <ak@linux.intel.com>
7974 * inchash.h (inchash): Change inchash class to namespace.
7975 (class hash): ... Rename from inchash.
7976 (add_object): Move from macro to class template.
7977 * lto-streamer-out.c (hash_tree): Change inchash
7979 * tree.c (build_type_attribute_qual_variant): Dito.
7980 (type_hash_list): Dito.
7981 (attribute_hash_list): Dito.
7982 (iterative_hstate_expr): Rename to inchash::add_expr
7983 (build_range_type_1): Change inchash to inchash::hash
7984 and use hash::add_expr.
7985 (build_array_type_1): Dito.
7986 (build_function_type): Dito
7987 (build_method_type_directly): Dito.
7988 (build_offset_type): Dito.
7989 (build_complex_type): Dito.
7990 (make_vector_type): Dito.
7991 * tree.h (iterative_hash_expr): Dito.
7993 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
7995 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
7997 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
7999 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
8000 correct alphabetical position.
8001 (vpaddd_f64): Rewrite using builtins.
8002 (vpaddd_s64): Move to correct alphabetical position.
8005 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
8008 * config/sh/sh.c (sh_legitimate_address_p,
8009 sh_legitimize_reload_address): Handle reg+reg address modes when
8010 ALLOW_INDEXED_ADDRESS is false.
8011 * config/sh/predicates.md (general_movsrc_operand,
8012 general_movdst_operand): Likewise.
8014 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8016 * config/aarch64/aarch64-builtins.c
8017 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
8020 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
8022 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
8023 the generated mask based on BYTES_BIG_ENDIAN.
8024 (aarch64_simd_check_vect_par_cnst_half): New.
8025 * config/aarch64/aarch64-protos.h
8026 (aarch64_simd_check_vect_par_cnst_half): New.
8027 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
8028 the check out to aarch64_simd_check_vect_par_cnst_half.
8029 (vect_par_cnst_lo_half): Likewise.
8030 * config/aarch64/aarch64-simd.md
8031 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
8032 (move_hi_quad_<mode>): Always generate a low mask.
8034 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8036 * doc/invoke.texi (AVR Options): Add documentation about
8037 __AVR_DEVICE_NAME__ built-in macro.
8039 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
8042 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
8043 constraints are satisfied.
8044 (<shift>di3_neon): Likewise.
8046 2014-07-31 Richard Biener <rguenther@suse.de>
8048 PR tree-optimization/61964
8049 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
8050 by structural equality.
8052 2014-07-31 Yury Gribov <y.gribov@samsung.com>
8054 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
8055 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
8056 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
8058 * gcc.c (sanitize_spec_function): Support new option.
8059 (SANITIZER_SPEC): Remove now redundant check.
8060 * opts.c (common_handle_option): Support new option.
8061 (finish_options): Check for incompatibilities.
8062 * toplev.c (process_options): Split userspace-specific checks.
8064 2014-07-31 Richard Biener <rguenther@suse.de>
8066 * lto-streamer.h (struct output_block): Remove global.
8067 (struct data_in): Remove labels, num_named_labels and
8069 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
8070 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
8072 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
8075 * common.opt (-Wreturn-local-addr): Moved from c.opt.
8076 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
8077 (isolate_path): New argument to avoid inserting a trap.
8078 (find_implicit_erroneous_behaviour): Handle returning the address
8079 of a local variable.
8080 (find_explicit_erroneous_behaviour): Likewise.
8082 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
8085 * toplev.c (init_random_seed): Move piece of code never called to
8087 (set_random_seed): see above.
8089 2014-07-31 Tom de Vries <tom@codesourcery.com>
8091 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
8093 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
8095 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
8096 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
8098 2014-07-31 Richard Biener <rguenther@suse.de>
8100 * data-streamer.h (streamer_write_data_stream): Declare here,
8102 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
8103 * lto-cgraph.c (lto_output_node): Adjust.
8104 (lto_output_varpool_node): Likewise.
8105 * data-streamer-out.c (streamer_string_index): Likewise.
8106 (streamer_write_data_stream, lto_append_block): Move from ...
8107 * lto-section-out.c (lto_output_data_stream,
8108 lto_append_block): ... here.
8110 2014-07-30 Mike Stump <mikestump@comcast.net>
8112 * configure.ac: Also check for popen.
8113 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
8114 * configure: Regenerate.
8115 * config.in: Regenerate.
8117 2014-07-30 Martin Jambor <mjambor@suse.cz>
8119 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
8120 parameter to gimple.
8122 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8124 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
8125 address as second parameter to __tpf_eh_return routine.
8127 2014-07-30 Jiong Wang <jiong.wang@arm.com>
8129 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
8132 2014-07-30 Tom Tromey <tromey@redhat.com>
8135 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
8136 * doc/extend.texi (Type Attributes): Document designated_init
8139 2014-07-30 Roman Gareev <gareevroman@gmail.com>
8141 * graphite-isl-ast-to-gimple.c:
8142 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
8143 (gcc_expression_from_isl_expression): Pass type to
8144 gcc_expression_from_isl_ast_expr_id.
8146 2014-07-30 Richard Biener <rguenther@suse.de>
8148 * lto-streamer.h (lto_write_data): New function.
8149 * langhooks.c (lhd_append_data): Do not free block.
8150 * lto-section-out.c (lto_write_data): New function writing
8151 raw data to the current section.
8152 (lto_write_stream): Adjust for langhook semantic change.
8153 (lto_destroy_simple_output_block): Write header directly.
8154 * lto-opts.c (lto_write_options): Write options directly.
8155 * lto-streamer-out.c (produce_asm): Write heaeder directly.
8156 (lto_output_toplevel_asms): Likewise.
8157 (copy_function_or_variable): Copy data directly.
8158 (write_global_references): Output index table directly.
8159 (lto_output_decl_state_refs): Likewise.
8160 (write_symbol): Write data directly.
8161 (produce_symtab): Adjust.
8162 (produce_asm_for_decls): Output header and refs directly.
8164 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8166 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
8167 to speculative_targets
8168 (get_class_context): Fix handling of contextes without outer type;
8169 avoid matching non-polymorphic types in LTO.
8170 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
8171 parameter to speculative_targetsp; handle speculation.
8172 (dump_possible_polymorphic_call_targets): Update dumping.
8174 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
8176 * common.opt (Wodr): Enable by default.
8178 2014-07-29 Olivier Hainque <hainque@adacore.com>
8180 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
8182 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
8185 * gengtype.c (strtoken): New function.
8186 (create_user_defined_type): Replace strtok with strtoken.
8188 2014-07-29 Nathan Sidwell <nathan@acm.org>
8190 * gcov-io.c (gcov_var): Make hidden.
8191 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
8192 (gcov_do_dump): Declare.
8193 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
8195 2014-07-29 Martin Jambor <mjambor@suse.cz>
8197 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
8198 parameter to gimple.
8199 (sra_modify_assign): Likewise.
8201 2014-07-29 Richard Biener <rguenther@suse.de>
8204 * expr.c (expand_expr_real_2): Revert last change.
8206 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8208 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
8209 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
8210 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
8212 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
8213 (contains_type_p): Forward declare.
8214 (polymorphic_call_target_hasher::hash): Hash speculative info.
8215 (polymorphic_call_target_hasher::equal): Compare speculative info.
8216 (get_class_context): Handle speuclation.
8217 (contains_type_p): Update.
8218 (get_polymorphic_call_info_for_decl): Update.
8219 (walk_ssa_copies): Break out from ...
8220 (get_polymorphic_call_info): ... here; set speculative context
8222 * ipa-prop.c (ipa_write_indirect_edge_info,
8223 ipa_read_indirect_edge_info): Stream speculative context.
8224 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
8225 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
8226 SPECULATIVE_MAYBE_DERIVED_TYPE).
8227 (possible_polymorphic_call_targets overriders): Update.
8228 (dump_possible_polymorphic_call_targets overriders): Update.
8229 (dump_possible_polymorphic_call_target_p overriders): Update.
8231 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
8233 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
8234 ipa-devirt path; fix thinko there.
8236 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
8238 * config/i386/i386.c (ix86_return_in_memory): Replace one
8239 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
8241 2014-07-28 Marek Polacek <polacek@redhat.com>
8243 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
8245 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
8247 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
8248 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
8249 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
8250 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8251 (USE_LD_AS_NEEDED): Likewise.
8252 (ASM_APP_ON): Likewise.
8253 (ASM_APP_OFF): Likewise.
8254 (TARGET_POSIX_IO): Likewise.
8255 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
8256 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
8257 (USE_LD_AS_NEEDED): Likewise.
8258 (ASM_APP_ON): Likewise.
8259 (ASM_APP_OFF): Likewise.
8260 (TARGET_POSIX_IO): Likewise.
8262 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
8265 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
8266 operators other than the equality operators.
8268 2014-07-28 Richard Biener <rguenther@suse.de>
8271 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
8272 sure to register SImode ones, not only >= word_mode ones.
8273 * expr.c (expand_expr_real_2): When expanding -ftrapv
8274 binops do not use OPTAB_LIB_WIDEN.
8276 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
8279 * tree-outof-ssa.c (insert_partition_copy_on_edge)
8280 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
8281 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
8282 inserting them in the insn stream.
8284 2014-07-28 Marek Polacek <polacek@redhat.com>
8287 * common.opt (Wodr): Add Var.
8289 2014-07-28 Richard Biener <rguenther@suse.de>
8291 PR tree-optimization/61921
8292 * tree-ssa-structalias.c (create_variable_info_for_1): Check
8293 if there is a varpool node before dereferencing it.
8295 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8297 * graphite-sese-to-poly.c:
8298 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
8299 id of the pbb), which contains pointer to the pbb1.
8301 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
8303 2014-07-28 Roman Gareev <gareevroman@gmail.com>
8305 * graphite-isl-ast-to-gimple.c:
8306 (graphite_create_new_guard): New function.
8307 (translate_isl_ast_node_if): New function.
8308 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
8310 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
8312 2014-07-27 Anthony Green <green@moxielogic.com>
8314 * config.gcc: Add moxie-*-moxiebox* configuration.
8315 * config/moxie/moxiebox.h: New file.
8317 2014-07-26 Andrew Pinski <apinski@cavium.com>
8319 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
8320 from the read only register.
8322 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8324 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
8325 as the allocation class if it isn't likely to be spilled.
8327 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
8329 * rtl.h (tls_referenced_p): Declare.
8330 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
8331 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
8332 (mips_cannot_force_const_mem): Use tls_referenced_p.
8333 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
8334 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
8335 instead of pa_tls_referenced_p.
8336 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
8337 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
8338 (pa_legitimate_constant_p): Likewise.
8339 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
8340 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
8341 (rs6000_cannot_force_const_mem, rs6000_emit_move)
8342 (rs6000_address_for_altivec): Use tls_referenced_p instead of
8343 rs6000_tls_referenced_p.
8344 (rs6000_tls_symbol_ref_1): Delete.
8346 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
8349 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8350 Optimize inverse of a VEC_CONCAT.
8352 2014-07-25 Xinliang David Li <davidxl@google.com>
8354 * params.def: New parameter.
8355 * coverage.c (get_coverage_counts): Check new flag.
8356 (coverage_compute_profile_id): Check new flag.
8357 (coverage_begin_function): Check new flag.
8358 (coverage_end_function): Check new flag.
8359 * value-prof.c (coverage_node_map_initialized_p): New function.
8360 (init_node_map): Populate map with all functions.
8361 * doc/invoke.texi: Document new parameter.
8363 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
8364 Richard Biener <rguenther@suse.de>
8366 * lto-streamer-out.c (struct sccs): Turn to ...
8367 (class DFS): ... this one; refactor the DFS walk so it can
8368 be re-done on per-SCC basis.
8369 (DFS::DFS): New constructor.
8370 (DFS::~DFS): New destructor.
8371 (hash_tree): Add new MAP argument holding in-SCC hash values;
8372 remove POINTER_TYPE hashing hack.
8373 (scc_entry_compare): Rename to ...
8374 (DFS::scc_entry_compare): ... this one.
8375 (hash_scc): Rename to ...
8376 (DFS::hash_scc): ... this one; pass output_block instead
8377 of streamer_cache; work harder to get unique and stable SCC
8379 (DFS_write_tree): Rename to ...
8380 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
8381 (lto_output_tree): Update.
8383 2014-07-25 Andi Kleen <ak@linux.intel.com>
8385 * lto-streamer-out.c (hash_tree): Convert to inchash.
8387 2014-07-25 Andi Kleen <ak@linux.intel.com>
8389 * tree.c (build_type_attribute_qual_variant): Use inchash.
8390 (type_hash_list): Dito.
8391 (attribute_hash_list): Dito
8392 (iterative_hstate_expr): Dito.
8393 (iterative_hash_expr): Dito.
8394 (build_range_type_1): Dito.
8395 (build_array_type_1): Dito.
8396 (build_function_type): Dito.
8397 (build_method_type_directly): Dito.
8398 (build_offset_type): Dito.
8399 (build_complex_type): Dito.
8400 (make_vector_type): Dito.
8401 * tree.h (iterative_hash_expr): Add compat wrapper.
8402 (iterative_hstate_expr): Add.
8404 2014-07-25 Andi Kleen <ak@linux.intel.com>
8406 * Makefile.in (OBJS): Add inchash.o.
8407 (PLUGIN_HEADERS): Add inchash.h.
8408 * ipa-devirt.c: Include inchash.h.
8409 * lto-streamer-out.c: Dito.
8410 * tree-ssa-dom.c: Dito.
8411 * tree-ssa-pre.c: Dito.
8412 * tree-ssa-sccvn.c: Dito.
8413 * tree-ssa-tail-merge.c: Dito.
8415 * tree.c (iterative_hash_hashval_t): Move to ...
8416 (iterative_hash_host_wide_int): Move to ...
8417 * inchash.c: Here. New file.
8418 * tree.h (iterative_hash_hashval_t): Move to ...
8419 (iterative_hash_host_wide_int): Move to ...
8420 * inchash.h: Here. New file.
8422 2014-07-25 Richard Biener <rguenther@suse.de>
8426 * fold-const.c (native_encode_int): Add and handle offset
8427 parameter to do partial encodings of expr.
8428 (native_encode_fixed): Likewise.
8429 (native_encode_real): Likewise.
8430 (native_encode_complex): Likewise.
8431 (native_encode_vector): Likewise.
8432 (native_encode_string): Likewise.
8433 (native_encode_expr): Likewise.
8434 * fold-const.c (native_encode_expr): Add offset parameter
8436 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
8437 (fold_ctor_reference): Handle all reads from tcc_constant
8440 2014-07-25 Richard Biener <rguenther@suse.de>
8442 * tree-inline.c (estimate_move_cost): Mark speed_p argument
8445 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8447 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
8449 2014-07-24 Kyle McMartin <kyle@redhat.com>
8451 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
8453 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8455 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
8457 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
8459 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
8460 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
8461 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
8463 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8465 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
8466 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
8467 aggregate types. Instead, *all* aggregate types, except for single-
8468 element or homogeneous float/vector aggregates, are quadword-aligned
8469 if required by their type alignment. Issue -Wpsabi note when a type
8470 is now treated differently than before.
8472 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8474 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
8475 does not fit fully into floating-point registers, and there is still
8476 space in the register parameter area, use GPRs to pass those parts
8477 of the argument. Issue -Wpsabi note if any parameter is now treated
8478 differently than before.
8479 (rs6000_arg_partial_bytes): Update.
8481 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
8483 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
8485 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8487 * rtl.h (target_rtl): Remove lang_dependent_initialized.
8488 * toplev.c (initialize_rtl): Don't use it. Move previously
8489 "language-dependent" calls to...
8490 (backend_init): ...here.
8491 (lang_dependent_init_target): Don't set lang_dependent_initialized.
8492 Assert that RTL initialization hasn't happend yet.
8494 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8496 PR rtl-optimization/61629
8497 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
8498 they have already been initialized.
8500 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
8503 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
8504 DECL_INCOMING_RTL and entry_parm.
8505 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
8506 * calls.c (load_register_parameters): Likewise argument values.
8507 (emit_library_call_value_1, store_one_arg): Likewise argument
8509 * config/i386/i386.c (assign_386_stack_local): Likewise the local
8511 * explow.c (validize_mem): Modify the argument in-place.
8513 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8515 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
8516 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
8518 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8520 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
8521 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
8523 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8525 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
8526 (aarch64_save_callee_saves): New parameter "skip_wb".
8527 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
8529 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8531 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
8533 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
8535 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8537 * graphite-isl-ast-to-gimple.c:
8538 (graphite_create_new_loop): Add calling of isl_id_free to properly
8539 decrement reference counts.
8541 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
8543 2014-07-24 Martin Liska <mliska@suse.cz>
8544 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
8546 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
8547 (rs6000_code_end): Likewise.
8549 2014-07-24 Martin Liska <mliska@suse.cz>
8551 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
8552 symtab_node funtion used.
8553 (rs6000_xcoff_declare_object_name): Likewise.
8555 2014-07-24 Martin Liska <mliska@suse.cz>
8557 * cgraphunit.c (compile): Correct function used.
8559 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8561 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
8564 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
8567 * varasm.c (bss_initializer_p): Handle offlined ctors.
8568 (align_variable, get_variable_align): Likewise.
8569 (make_decl_one_only): Likewise.
8570 (default_binds_local_p_1): Likewise.
8571 (decl_binds_to_current_def_p): Likewise.
8572 (get_variable_section): Get constructor if it is offlined.
8573 (assemble_variable_contents): Sanity check that the caller
8574 streamed in the ctor in LTO.
8576 2014-07-24 Roman Gareev <gareevroman@gmail.com>
8578 * graphite-isl-ast-to-gimple.c:
8579 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
8580 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
8581 isl_ast_op_pdiv_r to the different case.
8583 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
8585 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8588 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
8589 when flag_errno_math is on.
8591 2014-07-24 Martin Liska <mliska@suse.cz>
8593 * cgraph.h (varpool_node):
8594 (availability get_availability (void)):
8595 created from cgraph_variable_initializer_availability
8596 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
8597 created from: cgraph_variable_initializer_availability
8598 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
8599 (void finalize_named_section_flags (void)):
8600 created from varpool_finalize_named_section_flags
8601 (bool assemble_decl (void)): created from varpool_assemble_decl
8602 (void analyze (void)): created from varpool_analyze_node
8603 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
8604 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
8605 (void remove_initializer (void)): created from varpool_remove_initializer
8606 (tree get_constructor (void)): created from varpool_get_constructor
8607 (bool externally_visible_p (void)): created from varpool_externally_visible_p
8608 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
8609 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
8610 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
8611 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
8612 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
8613 (static bool output_variables (void)): created from varpool_output_variables
8614 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
8615 created from varpool_extra_name_alias
8616 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
8617 (static void dump_varpool (FILE *f)): created from dump_varpool
8618 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
8619 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
8620 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
8621 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
8622 (void assemble_aliases (void)): created from assemble_aliases
8624 2014-07-24 Martin Liska <mliska@suse.cz>
8626 * cgraph.h (symtab_node):
8627 (void register_symbol (void)): created from symtab_register_node
8628 (void remove (void)): created from symtab_remove_node
8629 (void dump (FILE *f)): created from dump_symtab_node
8630 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
8631 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
8632 (struct ipa_ref *add_reference (symtab_node *referred_node,
8633 enum ipa_ref_use use_type)): created from add_reference
8634 (struct ipa_ref *add_reference (symtab_node *referred_node,
8635 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
8636 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
8637 gimple stmt)): created from maybe_add_reference
8638 (bool semantically_equivalent_p (symtab_node *target)): created from
8639 symtab_semantically_equivalent_p
8640 (void remove_from_same_comdat_group (void)): created from
8641 remove_from_same_comdat_group
8642 (void add_to_same_comdat_group (symtab_node *old_node)): created from
8643 symtab_add_to_same_comdat_group
8644 (void dissolve_same_comdat_group_list (void)): created from
8645 symtab_dissolve_same_comdat_group_list
8646 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
8647 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
8648 created from symtab_alias_ultimate_target
8649 (inline symtab_node *next_defined_symbol (void)): created from
8650 symtab_next_defined_symbol
8651 (bool resolve_alias (symtab_node *target)): created from
8652 symtab_resolve_alias
8653 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
8654 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
8655 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
8656 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
8657 (void set_section (const char *section)): created from set_section_1
8658 (enum availability get_availability (void)): created from symtab_node_availability
8659 (void make_decl_local (void)): created from symtab_make_decl_local
8660 (bool real_symbol_p (void)): created from symtab_read_node
8661 (can_be_discarded_p (void)): created from symtab_can_be_discarded
8662 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
8663 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
8664 symtab_in_same_comdat_p;
8665 (bool address_taken_from_non_vtable_p (void)): created from
8666 address_taken_from_non_vtable_p
8667 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
8668 (static void dump_table (FILE *)): created from dump_symtab
8669 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
8670 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
8671 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
8672 symtab_used_from_object_file_p
8673 (void dump_base (FILE *)): created from dump_symtab_base
8674 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
8675 (void unregister (void)): created from symtab_unregister_node
8676 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
8677 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
8678 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
8679 symtab_nonoverwritable_alias_1
8680 * cgraph.h (cgraph_node):
8681 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
8682 created from cgraph_remove_node_and_inline_clones
8683 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
8684 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
8685 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
8686 (cgraph_node *function_symbol (enum availability *avail = NULL)):
8687 created from cgraph_function_node
8688 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
8689 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
8690 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
8691 created from cgraph_create_clone
8692 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
8693 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
8694 created from cgraph_create_virtual_clone
8695 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
8696 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
8697 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
8698 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
8699 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
8700 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
8701 created from cgraph_function_version_info
8702 (struct cgraph_function_version_info *insert_new_function_version (void)):
8703 created from insert_new_cgraph_node_version
8704 (struct cgraph_function_version_info *function_version (void)): created from
8705 get_cgraph_node_version
8706 (void analyze (void)): created from analyze_function
8707 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
8708 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
8709 tree real_alias) cgraph_add_thunk
8710 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
8711 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
8712 created from cgraph_function_or_thunk_node
8713 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
8714 created from expand_thunk
8715 (void reset (void)): created from cgraph_reset_node
8716 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
8717 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
8718 (void remove (void)): created from cgraph_remove_node
8719 (void dump (FILE *f)): created from dump_cgraph_node
8720 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
8721 (bool get_body (void)): created from cgraph_get_body
8722 (void release_body (void)): created from cgraph_release_function_body
8723 (void unnest (void)): created from cgraph_unnest_node
8724 (void make_local (void)): created from cgraph_make_node_local
8725 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
8726 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
8727 gcov_type count, int freq)): created from cgraph_create_edge
8728 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
8729 gcov_type count, int freq)): created from cgraph_create_indirect_edge
8730 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
8731 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
8732 created from cgraph_create_edge_including_clones
8733 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
8734 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
8735 (void remove_callers (void)): created from cgraph_node_remove_callers
8736 (void remove_callees (void)): created from cgraph_node_remove_callees
8737 (enum availability get_availability (void)): created from cgraph_function_body_availability
8738 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
8739 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
8740 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
8741 (void call_duplication_hooks (cgraph_node *node2)): created from
8742 cgraph_call_node_duplication_hooks
8743 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
8744 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
8745 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
8746 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
8747 (void call_function_insertion_hooks (void)):
8748 created from cgraph_call_function_insertion_hooks
8749 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
8750 (bool local_p (void)): created from cgraph_local_node
8751 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
8752 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
8753 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
8754 (inline bool only_called_directly_or_aliased_p (void)):
8755 created from cgraph_only_called_directly_or_aliased_p
8756 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
8757 created from cgraph_will_be_removed_from_program_if_no_direct_calls
8758 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
8759 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
8760 (bool can_remove_if_no_direct_calls_p (void)):
8761 created from cgraph_can_remove_if_no_direct_calls_p
8762 (inline bool has_gimple_body_p (void)):
8763 created from cgraph_function_with_gimple_body_p
8764 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
8765 (static void dump_cgraph (FILE *f)): created from dump_cgraph
8766 (static inline void debug_cgraph (void)): created from debug_cgraph
8767 (static void record_function_versions (tree decl1, tree decl2)):
8768 created from record_function_versions
8769 (static void delete_function_version (tree decl)):
8770 created from delete_function_version
8771 (static void add_new_function (tree fndecl, bool lowered)):
8772 created from cgraph_add_new_function
8773 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
8774 (static cgraph_node * create (tree decl)): created from cgraph_create_node
8775 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
8776 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
8777 (static cgraph_node *get_for_asmname (tree asmname)):
8778 created from cgraph_node_for_asm
8779 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
8780 created from cgraph_same_body_alias
8781 (static bool used_from_object_file_p_worker (cgraph_node *node,
8782 void *): new function
8783 (static bool non_local_p (cgraph_node *node, void *)):
8784 created from cgraph_non_local_node_p_1
8785 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
8786 created from verify_cgraph
8787 (static bool make_local (cgraph_node *node, void *)):
8788 created from cgraph_make_node_local
8789 (static cgraph_node *create_alias (tree alias, tree target)):
8790 created from cgraph_create_function_alias
8791 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
8792 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
8793 created from cgraph_create_edge_1
8794 * cgraph.h (varpool_node):
8795 (void remove (void)): created from varpool_remove_node
8796 (void dump (FILE *f)): created from dump_varpool_node
8798 2014-07-24 Richard Biener <rguenther@suse.de>
8801 * tree-ssa-structalias.c (create_variable_info_for_1):
8802 Use varpool_get_constructor.
8803 (create_variable_info_for): Likewise.
8805 2014-07-24 Jiong Wang <jiong.wang@arm.com>
8807 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
8808 subtract outgoing area size when restoring stack_pointer_rtx.
8810 2014-07-24 Nick Clifton <nickc@redhat.com>
8812 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
8813 that operations are taking place in parallel.
8814 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
8816 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
8818 * omp-low.c (extract_omp_for_data): Add missing break statement.
8820 2014-07-24 Richard Biener <rguenther@suse.de>
8822 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
8823 * tree-inline.c (estimate_move_cost): Add speed_p parameter
8824 and adjust MOVE_RATIO query accordingly.
8825 (estimate_num_insns): Adjust callers.
8826 * ipa-prop.c (ipa_populate_param_decls): Likewise.
8827 * ipa-cp.c (gather_context_independent_values,
8828 estimate_local_effects): Likewise.
8829 * ipa-split.c (consider_split): Likewise.
8831 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
8833 * config/i386/driver-i386.c: Remove names of unused arguments and
8834 unnecessary unused attributes.
8835 * config/i386/host-mingw32.c: Likewise.
8836 * config/i386/i386.c: Likewise.
8837 * config/i386/winnt-stubs.c: Likewise.
8838 * config/i386/winnt.c: Likewise.
8840 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8842 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
8843 (aarch64_gen_loadwb_pair): New helper function.
8844 (aarch64_expand_epilogue): Simplify code using new helper functions.
8845 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
8847 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8849 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
8850 (aarch64_gen_storewb_pair): New helper function.
8851 (aarch64_expand_prologue): Simplify code using new helper functions.
8852 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
8854 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8856 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
8857 Rename to aarch64_save_callee_saves, remove restore code.
8858 (aarch64_restore_callee_saves): New function.
8860 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8862 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
8863 (aarch64_save_callee_saves): New function to handle reg save
8864 for both core and vectore regs.
8866 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8868 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
8869 (aarch64_gen_store_pair): New helper function.
8870 (aarch64_save_or_restore_callee_save_registers)
8871 (aarch64_save_or_restore_fprs): Use new helper functions.
8873 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8875 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
8876 (aarch64_save_or_restore_callee_save_registers)
8877 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
8879 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8881 * config/aarch64/aarch64.c
8882 (aarch64_save_or_restore_callee_save_registers)
8883 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
8885 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8887 * config/aarch64/aarch64.c
8888 (aarch64_save_or_restore_callee_save_registers)
8889 (aarch64_save_or_restore_fprs): Remove 'increment'.
8891 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8893 * config/aarch64/aarch64.c
8894 (aarch64_save_or_restore_callee_save_registers)
8895 (aarch64_save_or_restore_fprs): Use register offset in
8896 cfun->machine->frame.reg_offset.
8898 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8900 * config/aarch64/aarch64.c
8901 (aarch64_save_or_restore_callee_save_registers)
8902 (aarch64_save_or_restore_fprs): Remove base_rtx.
8904 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8906 * config/aarch64/aarch64.c
8907 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
8908 to 'start_offset'. Remove local variable 'start_offset'.
8910 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8912 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
8913 type to HOST_WIDE_INT.
8915 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8917 * config/aarch64/aarch64.c (aarch64_expand_prologue)
8918 (aarch64_save_or_restore_fprs)
8919 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
8921 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8923 * config/arm/t-rtems-eabi: Add
8924 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
8925 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
8926 mbig-endian/mthumb/march=armv7-r, and
8927 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
8930 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
8931 Chris Johns <chrisj@rtems.org>
8932 Joel Sherrill <joel.sherrill@oarcorp.com>
8934 * config.gcc: Add nios2-*-rtems*.
8935 * config/nios2/rtems.h: New file.
8936 * gcc/config/nios2/t-rtems: New file.
8938 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
8941 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
8942 constant numbers, not general constants.
8943 (rs6000_expand_vector_init): Ditto.
8945 2014-07-23 Nathan Sidwell <nathan@acm.org>
8947 * gcov-tool.c (gcov_list): Declare here.
8948 (set_gcov_list): Remove.
8949 (gcov_output_files): Set gcov_list directly.
8951 2014-07-23 Host Schirmeier <horst@schirmeier.com>
8953 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
8955 2014-07-23 Jiong Wang <jiong.wang@arm.com>
8957 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
8958 callee-saved registers are available for padding purpose
8959 and r3 is not mandatory, then prefer use those callee-saved
8962 2014-07-23 Richard Biener <rguenther@suse.de>
8964 * params.def (PARAM_MAX_COMBINE_INSNS): New.
8965 * combine.c: Include statistics.h and params.h.
8966 (combine_instructions): Guard three and four insn combines
8967 with max-combine-insns value. Record statistics for combines
8969 * doc/invoke.texi (max-combine-insns): Document new param.
8971 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8973 * graphite-isl-ast-to-gimple.c:
8974 (translate_isl_ast_node_block): New function.
8975 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
8977 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
8978 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
8980 2014-07-23 Roman Gareev <gareevroman@gmail.com>
8982 * graphite-isl-ast-to-gimple.c:
8983 (get_max_schedule_dimensions): New function.
8984 (extend_schedule): Likewise.
8985 (generate_isl_schedule): Add calling of extend_schedule and
8986 get_max_schedule_dimensions.
8988 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8990 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
8991 (case UNSPEC): Handle UNSPEC_RBIT.
8993 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8995 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
8996 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
8998 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9000 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
9002 2014-07-22 Roman Gareev <gareevroman@gmail.com>
9004 * graphite-isl-ast-to-gimple.c:
9005 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
9007 (build_iv_mapping): New function.
9008 (translate_isl_ast_node_user): Likewise.
9009 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
9011 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
9012 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
9013 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
9015 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9018 * config/arm/arm.md (setmem): New pattern.
9019 * config/arm/arm-protos.h (struct tune_params): New fields.
9020 (arm_gen_setmem): New prototype.
9021 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
9022 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9023 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9024 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
9025 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
9026 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
9027 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
9028 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9029 (arm_const_inline_cost): New function.
9030 (arm_block_set_max_insns): New function.
9031 (arm_block_set_non_vect_profit_p): New function.
9032 (arm_block_set_vect_profit_p): New function.
9033 (arm_block_set_unaligned_vect): New function.
9034 (arm_block_set_aligned_vect): New function.
9035 (arm_block_set_unaligned_non_vect): New function.
9036 (arm_block_set_aligned_non_vect): New function.
9037 (arm_block_set_vect, arm_gen_setmem): New functions.
9039 2014-07-21 Bin Cheng <bin.cheng@arm.com>
9041 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
9043 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
9046 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
9047 out of #ifdef __OPTIMIZE__.
9049 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9051 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
9052 different trapping status if -fnon-call-exceptions is enabled.
9054 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
9056 * expr.c (store_field): Handle VOIDmode for calls that return values
9057 in multiple locations.
9059 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9061 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
9062 (altivec_vsldoi_<mode>): Likewise.
9064 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9066 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
9067 to the number of characters in the line.
9069 2014-07-20 Roman Gareev <gareevroman@gmail.com>
9071 * graphite-isl-ast-to-gimple.c: Add using of
9072 build_nonstandard_integer_type instead of int128_integer_type_node.
9074 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
9076 * toplev.c (output_stack_usage): Adjust the location of the warning.
9078 2014-07-19 Daniel Cederman <cederman@gaisler.com>
9080 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
9081 (*membar_storeload): Disable for LEON3.
9083 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9085 PR rtl-optimization/61461
9086 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
9088 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
9091 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
9092 Fix instruction constraint.
9093 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
9095 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
9097 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
9099 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
9101 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
9102 GNU coding standards.
9103 (nds32_register_move_cost): Likewise.
9104 (nds32_memory_move_cost): Likewise.
9105 (nds32_address_cost): Likewise.
9107 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
9109 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
9111 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
9113 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
9114 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
9115 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
9116 (HAVE_sync_compare_and_swapqi): Define.
9117 (HAVE_sync_compare_and_swaphi): Likewise.
9118 (HAVE_sync_compare_and_swapsi): Likewise.
9120 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
9122 * config/mips/p5600.md: Add missing cpu tests.
9124 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9126 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
9127 (vmla_f64): Likewise.
9128 (vfms_f64): Likewise.
9129 (vmls_f64): Likewise.
9131 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9133 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
9134 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
9136 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9138 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
9139 (vmlal_high_lane_s32): Likewise.
9140 (vmlal_high_lane_u16): Likewise.
9141 (vmlal_high_lane_u32): Likewise.
9142 (vmlsl_high_lane_s16): Likewise.
9143 (vmlsl_high_lane_s32): Likewise.
9144 (vmlsl_high_lane_u16): Likewise.
9145 (vmlsl_high_lane_u32): Likewise.
9147 2014-07-17 Terry Guo <terry.guo@arm.com>
9149 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
9150 (alus_reg): Renamed to alus_sreg.
9151 * config/arm/arm-fixed.md: Change type of non-dsp instructions
9152 from alu_reg to alu_sreg. Change type of dsp instructions from
9153 alu_reg to alu_dsp_reg.
9154 * config/arm/thumb1.md: Likewise.
9155 * config/arm/thumb2.md: Likewise.
9156 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
9157 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
9158 with alu_sreg and alus_sreg.
9159 * config/arm/arm1026ejs.md (alu_op): Likewise.
9160 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9161 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9162 * config/arm/fa526.md (526_alu_op): Likewise.
9163 * config/arm/fa606te.md (606te_alu_op): Likewise.
9164 * config/arm/fa626te.md (626te_alu_op): Likewise.
9165 * config/arm/fa726te.md (726te_alu_op): Likewise.
9166 * config/arm/fmp626.md (mp626_alu_op): Likewise.
9167 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
9168 alu_sreg, alu_dsp_reg and alus_sreg.
9169 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9170 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9171 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9172 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
9173 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9174 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9175 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9176 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9177 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
9178 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
9179 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
9180 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
9181 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
9182 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
9183 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
9184 alus_reg to alus_sreg.
9186 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
9188 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
9191 2014-07-17 Richard Biener <rguenther@suse.de>
9193 PR rtl-optimization/61801
9194 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
9195 don't set reg_pending_barrier if it appears in a debug-insn.
9197 2014-07-16 DJ Delorie <dj@redhat.com>
9199 * config/rx/rx.c (rx_option_override): Fix alignment values.
9200 (rx_align_for_label): Likewise.
9202 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
9205 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
9206 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9207 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
9209 (cris_print_index, cris_print_operand, cris_constant_index_p)
9210 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
9211 (cris_address_cost): Ditto last CONSTANT_P.
9212 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
9213 callers changed. Yield cris_offsettable_symbol for non-PIC
9214 constant symbolic expressions including labels. Yield cris_unspec
9216 (cris_expand_pic_call_address): New parameter MARKERP. Set its
9217 target to pic_offset_table_rtx for calls that will likely go
9218 through PLT, const0_rtx when they can't. All callers changed.
9219 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
9220 symbolic expressions to be PICified. Remove second, redundant,
9221 assert on can_create_pseudo_p returning non-zero. Use
9222 replace_equiv_address_nv, not replace_equiv_address, for final
9224 * config/cris/cris.md ("movsi"): Move variable t to pattern
9225 toplevel. Adjust assert for new cris_symbol_type member. Use
9226 CONSTANT_P instead of CONSTANT_ADDRESS_P.
9227 ("*movsi_internal") <case 9>: Make check for valid unspec operands
9229 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
9230 ("call", "call_value"): Use second incoming operand as a marker
9231 for pic-offset-table-register being used.
9232 ("*expanded_call_non_v32", "*expanded_call_v32")
9233 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
9234 second incoming operand to CALL, match cris_call_type_marker.
9235 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
9236 ("*expanded_call_side"): Ditto. Fix typo in comment.
9237 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
9239 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
9240 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
9241 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
9242 users changed. Add members cris_offsettable_symbol and cris_unspec.
9243 (cris_symbol_type): Rename from cris_pic_symbol_type.
9244 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
9246 * config/cris/cris-protos.h (cris_symbol_type_of,
9247 cris_expand_pic_call_address): Adjust prototypes.
9248 (cris_legitimate_constant_p): New prototype.
9250 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
9251 an existing tmake_file. Don't add t-slibgcc and t-linux.
9253 2014-07-17 Jason Merrill <jason@redhat.com>
9256 * symtab.c (symtab_remove_from_same_comdat_group): Also
9257 set_comdat_group to NULL_TREE.
9258 (verify_symtab): Fix diagnostic.
9260 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
9263 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
9265 2014-07-16 Dodji Seketeli <dodji@redhat.com>
9267 Support location tracking for built-in macro tokens
9268 * input.h (is_location_from_builtin_token): New function declaration.
9269 * input.c (is_location_from_builtin_token): New function definition.
9270 * toplev.c (general_init): Tell libcpp what the pre-defined
9271 spelling location for built-in tokens is.
9273 2014-07-16 Jakub Jelinek <jakub@redhat.com>
9275 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
9276 on the FUNCTION_DECL.
9278 2014-07-16 Richard Biener <rguenther@suse.de>
9281 * doc/extend.texi (always_inline): Clarify.
9283 2014-07-15 Eric Christopher <echristo@gmail.com>
9285 * doc/invoke.texi (Link Options): Document -z option.
9287 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
9289 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
9290 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
9292 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
9294 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
9296 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
9298 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
9299 varpool_assemble_decl.
9300 * varpool.c (varpool_assemble_decl): Assert that node->definition is
9303 2014-07-15 Michael Matz <matz@suse.de>
9305 PR rtl-optimization/61772
9306 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
9308 2014-07-15 Richard Biener <rguenther@suse.de>
9310 * opts.c (default_options_table): Disable bit-ccp at -Og.
9312 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9314 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
9316 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
9318 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
9319 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
9320 call langhook for unknown declaration.
9321 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
9322 * tree.h (DECL_ARGUMENTS): Update.
9323 * print-tree.c (print_node): Update.
9324 * tree-core.h (tree_decl_non_common): Remove arguments.
9325 (tree_function_decl): Add arguments.
9327 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
9329 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
9331 2014-07-14 Richard Biener <rguenther@suse.de>
9333 PR tree-optimization/61779
9334 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
9335 simplifying a condition.
9337 2014-07-14 Richard Biener <rguenther@suse.de>
9339 * builtins.c (c_strlen): Make only_value == 2 really only
9340 affect warning generation.
9342 2014-07-14 Richard Biener <rguenther@suse.de>
9344 PR tree-optimization/61757
9345 PR tree-optimization/61783
9346 PR tree-optimization/61787
9347 * tree-ssa-dom.c (record_equality): Revert canonicalization
9348 change and add comment.
9349 (propagate_rhs_into_lhs): Revert previous fix, removing
9350 loop depth restriction again.
9352 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9354 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
9355 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9356 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9357 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
9358 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9359 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9360 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
9362 2014-07-14 Richard Biener <rguenther@suse.de>
9364 * cgraph.h (decl_in_symtab_p): Make inline.
9366 2014-07-14 Jakub Jelinek <jakub@redhat.com>
9369 * doc/invoke.texi (-Wmemset-transposed-args): Document.
9372 * config/i386/i386.c (classify_argument): Don't merge classes above
9375 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
9377 * cgraph.h (symtab_node): Add nonzero_address.
9378 (decl_in_symtab_p): Break out from ...
9379 (symtab_get_node): ... here.
9380 * fold-const.c: Include cgraph.h
9381 (tree_single_nonzero_warnv_p): Use symtab to determine
9382 if symbol is non-zero.
9383 * symtab.c (symtab_node::nonzero_address): New method.
9385 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9387 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
9388 forgotten in previous commit.
9390 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9392 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
9394 * ipa-devirt.c: Include stor-layout.h and intl.h
9395 (odr_subtypes_equivalent_p): New function.
9396 (warn_odr): New function.
9397 (warn_type_mismatch): New function.
9398 (odr_types_equivalent_p): New function.
9399 (add_type_duplicate): Use it.
9400 * common.opt (Wodr): New flag.
9401 * doc/invoke.texi (Wodr): Document new warning.
9403 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
9405 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
9406 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
9407 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
9408 (varpool_get_constructor): Push CTORS_IN timevar.
9409 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
9411 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
9413 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
9414 Remove VOID_FTYPE_PUSHORT.
9415 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
9416 Change code to USHORT_FTYPE_VOID.
9417 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
9418 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
9419 (ix86_atomic_assign_expand_fenv): Update for
9420 __builtin_ia32_fnstsw changes.
9421 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
9422 (fnstsw): Change operand 0 to nonimmediate operand.
9424 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9426 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
9427 (varpool_get_constructor): New function.
9428 (varpool_ctor_useable_for_folding_p): Break out from ...
9429 (ctor_for_folding): ... here; use varpool_get_constructor.
9430 (varpool_assemble_decl): Likewise.
9431 * lto-streamer.h (struct output_block): Turn cgraph_node
9433 (lto_input_variable_constructor): Declare.
9434 * ipa-visibility.c (function_and_variable_visibility): Use
9435 varpool_get_constructor.
9436 * cgraph.h (varpool_get_constructor): Declare.
9437 (varpool_ctor_useable_for_folding_p): New function.
9438 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
9439 parameter; return error_mark_node for non-trivial constructors.
9440 (lto_write_tree_1, DFS_write_tree): Update use of
9441 get_symbol_initial_value.
9442 (output_function): Update initialization of symbol.
9443 (output_constructor): New function.
9444 (copy_function): Rename to ..
9445 (copy_function_or_variable): ... this one; handle vars too.
9446 (lto_output): Output variable sections.
9447 * lto-streamer-in.c (input_constructor): New function.
9448 (lto_read_body): Rename from ...
9449 (lto_read_body_or_constructor): ... this one; handle vars too.
9450 (lto_input_variable_constructor): New function.
9451 * ipa-prop.c (ipa_prop_write_jump_functions,
9452 ipa_prop_write_all_agg_replacement): Update.
9453 * lto-cgraph.c (compute_ltrans_boundary): Use it.
9454 (output_cgraph_opt_summary): Set symbol to NULL.
9456 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9458 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
9459 non-polymorphic types.
9460 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
9461 * ipa-devirt.c (types_same_for_odr): Do not explode when one
9462 of types is not polymorphic.
9464 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
9466 * lra-constraints.c (remove_inheritance_pseudos): Process
9467 destination pseudo too.
9469 2014-07-11 Rong Xu <xur@google.com>
9471 * gcov-tool.c (gcov_output_files): Fix build error introduced in
9474 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
9476 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
9477 * config/avr/avr-devices.c (AVR_MCU): Same.
9478 (avr_mcu_types): add text start value to end of device list.
9479 * config/avr/avr-mcus.def: Add text section start for all devices.
9480 (ata5782): Add new avr5 device.
9482 * config/avr/avr-tables.opt: Regenerate.
9483 * config/avr/avr.h: Add declaration for text section start handler.
9484 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
9486 (LINK_SPEC): Include text section start handler to linker spec.
9487 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
9488 pass -Ttext option to linker if the text section start for the device
9490 * config/avr/t-multilib: Regenerate.
9491 * doc/avr-mmcu.texi: Regenerate.
9493 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
9495 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
9496 * config/rs6000/aix52.h (LINK_SPEC): Same.
9497 * config/rs6000/aix53.h (LINK_SPEC): Same.
9498 * config/rs6000/aix61.h (LINK_SPEC): Same.
9499 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
9501 2014-07-11 Roman Gareev <gareevroman@gmail.com>
9503 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
9504 (graphite_verify): New function.
9505 (ivs_params_clear): New function.
9506 (gcc_expression_from_isl_ast_expr_id): New function.
9507 (gcc_expression_from_isl_expr_int): New function.
9508 (binary_op_to_tree): New function.
9509 (ternary_op_to_tree): New function.
9510 (unary_op_to_tree): New function.
9511 (nary_op_to_tree): New function.
9512 (gcc_expression_from_isl_expr_op): New function.
9513 (gcc_expression_from_isl_expression): New function.
9514 (graphite_create_new_loop): New function.
9515 (translate_isl_ast_for_loop): New function.
9516 (get_upper_bound): New function.
9517 (graphite_create_new_loop_guard): New function.
9518 (translate_isl_ast_node_for): New function.
9519 (translate_isl_ast): New function.
9520 (add_parameters_to_ivs_params): New function.
9521 (scop_to_isl_ast): New parameter ip.
9522 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
9524 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
9526 * config/xtensa/predicates.md (call expander): Update for
9527 DECL_SECTION_NAME being string.
9529 2014-07-11 Richard Biener <rguenther@suse.de>
9532 * builtins.c (fold_builtin_memory_op): Inline memory moves that
9533 can be implemented with a single load followed by a single store.
9534 (c_strlen): Only warn when only_value is not 2.
9536 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
9538 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
9540 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
9543 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
9544 (*movhi_bytes): Likewise.
9545 (*arm_movqi_insn): Likewise.
9547 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
9550 * config/alpha/alpha.c: Include tree-pass.h, context.h
9552 (pass_data_handle_trap_shadows): New pass.
9553 (pass_handle_trap_shadows::gate): New pass gate function.
9554 (make_pass_handle_trap_shadows): New function.
9555 (rest_of_handle_trap_shadows): Ditto.
9557 (alpha_align_insns_1): Rename from alpha_align_insns.
9558 (pass_data_align_insns): New pass.
9559 (pass_align_insns::gate): New pass gate function.
9560 (make_pass_aling_insns): New function.
9561 (rest_of_align_insns): Ditto.
9562 (alpha_align_insns): Ditto.
9564 (alpha_option_override): Declare handle_trap_shadows info
9565 and align_insns_info. Register handle_trap_shadows and align_insns
9567 (alpha_reorg): Do not call alpha_trap_shadows and
9568 alpha_align_insn from here.
9570 (alpha_pad_function_end): Do not skip BARRIERs.
9572 2014-07-10 Rong Xu <xur@google.com>
9574 Add gcov-tool: an offline gcda profile processing tool support.
9575 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
9576 (gcov_is_error): Ditto.
9577 (gcov_read_string): Ditto.
9578 (gcov_read_sync): Ditto.
9579 * gcov-io.h: Move counter defines to gcov-counter.def.
9580 * gcov-dump.c (tag_counters): Use gcov-counter.def.
9581 * coverage.c: Ditto.
9582 * gcov-tool.c: Offline gcda profile processing tool.
9583 (unlink_gcda_file): Remove one gcda file.
9584 (unlink_profile_dir): Remove gcda files from the profile path.
9585 (gcov_output_files): Output gcda files to an output dir.
9586 (profile_merge): Merge two profiles in directory.
9587 (print_merge_usage_message): Print merge usage.
9588 (merge_usage): Print merge usage and exit.
9589 (do_merge): Driver for profile merge sub-command.
9590 (profile_rewrite): Rewrite profile.
9591 (print_rewrite_usage_message): Print rewrite usage.
9592 (rewrite_usage): Print rewrite usage and exit.
9593 (do_rewrite): Driver for profile rewrite sub-command.
9594 (print_usage): Print gcov-info usage and exit.
9595 (print_version): Print gcov-info version.
9596 (process_args): Process arguments.
9597 (main): Main routine for gcov-tool.
9598 * Makefile.in: Build and install gcov-tool.
9599 * gcov-counter.def: New file split from gcov-io.h.
9600 * doc/gcc.texi: Include gcov-tool.texi.
9601 * doc/gcov-tool.texi: Document for gcov-tool.
9603 2014-07-10 Richard Biener <rguenther@suse.de>
9605 PR tree-optimization/61757
9606 * tree-ssa-dom.c (loop_depth_of_name): Restore.
9607 (propagate_rhs_into_lhs): Revert part of last change.
9609 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
9611 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
9614 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
9617 * function.c (allocate_struct_function): Revert r188667 change.
9619 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
9621 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
9623 * doc/install.texi: Remove links to defunct package providers for
9626 2014-07-09 Tom de Vries <tom@codesourcery.com>
9628 * final.c (get_call_fndecl): Declare.
9629 (self_recursive_call_p): New function.
9630 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
9632 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9634 * ipa-devirt.c (record_node): Walk through aliases.
9636 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9638 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
9640 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9643 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
9645 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9647 * ipa-visibility.c (function_and_variable_visibility): Remove
9648 temporary hack disabling local aliases on AIX.
9650 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9652 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
9653 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
9655 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9657 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
9658 * rs6000/rs6000.c: Inline output of .set instruction.
9659 (declare_alias_data): New struct.
9660 (rs6000_declare_alias): New function.
9661 (rs6000_xcoff_declare_function_name): Use it.
9662 (rs6000_xcoff_declare_object_name): New function.
9663 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
9664 (ASM_OUTPUT_DEF): Turn to empty definition.
9666 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9669 * hash-table.h: use hash_table::value_type instead of
9670 Descriptor::value_type in the return types of several methods.
9672 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9674 * tree-pass.h (pass_data): Remove has_execute member.
9675 * passes.c (execute_one_pass): Don't check pass->has_execute.
9676 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9677 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9678 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9679 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9680 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9681 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9682 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9683 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9684 gimple-low.c, gimple-ssa-isolate-paths.c,
9685 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9686 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
9687 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
9688 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
9689 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
9690 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9691 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
9692 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
9693 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
9694 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
9695 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
9696 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
9697 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9698 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9699 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9700 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9701 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9702 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9703 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9704 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9705 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9706 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9707 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
9708 web.c: Remove initializer for pass_data::has_execute.
9710 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
9712 * graphite-htab.h: Use hash_map instead of hash_table.
9713 * graphite-clast-to-gimple.c: Adjust.
9714 * passes.c: Use hash_map instead of hash_table.
9716 * sese.h: Remove now unused code.
9718 2014-07-08 Sriraman Tallam <tmsriram@google.com>
9721 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
9724 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9726 PR rtl-optimization/61673
9727 * combine.c (simplify_comparison): Test just mode's sign bit
9728 in tmode rather than the sign bit and any bits above it.
9730 2014-07-08 Roman Gareev <gareevroman@gmail.com>
9732 * graphite-isl-ast-to-gimple.c (generate_isl_context):
9733 Add __isl_give to the declaration.
9734 (generate_isl_schedule): Likewise.
9735 (scop_to_isl_ast): Likewise.
9737 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9739 * config/arm/arm.c (cortexa5_extra_costs): New table.
9740 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
9742 2014-07-08 Jakub Jelinek <jakub@redhat.com>
9744 PR tree-optimization/61725
9745 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
9746 range, use range_includes_zerop_p instead of integer_zerop on
9747 vr0->min, only use log2 of max if min is not negative.
9749 2014-07-08 Richard Biener <rguenther@suse.de>
9751 * tree-ssa-dom.h (loop_depth_of_name): Remove.
9752 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
9753 restriction on loop depth difference.
9754 (record_equality): Likewise.
9755 (propagate_rhs_into_lhs): Likewise. Simplify condition.
9756 (loop_depth_of_name): Remove.
9757 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
9758 restriction on loop depth difference.
9759 (init_copy_prop): Likewise.
9761 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
9763 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
9765 (walk_aliased_vdefs): Likewise.
9766 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
9767 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
9768 (detect_type_change_from_memory_writes): Check if entry was reached.
9770 2014-07-08 Richard Biener <rguenther@suse.de>
9772 PR tree-optimization/61681
9773 * tree-ssa-structalias.c (find_what_var_points_to): Expand
9774 NONLOCAL inside ESCAPED.
9776 2014-07-08 Richard Biener <rguenther@suse.de>
9778 PR tree-optimization/61680
9779 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9780 Handle properly all read-write dependences with group accesses.
9782 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
9784 PR tree-optimization/61576
9785 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
9786 block containing reduction statement is predecessor of phi basi block.
9788 2014-07-08 Marek Polacek <polacek@redhat.com>
9791 * fold-const.c (round_up_loc): Change the parameter type.
9793 * fold-const.h (round_up_loc): Adjust declaration.
9794 * stor-layout.c (finalize_record_size): Check for too large types.
9796 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
9798 * symtab.c: Include calls.h.
9799 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
9801 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
9803 * config/rs6000/rs6000.c (output_vec_const_move): Handle
9804 little-endian code generation.
9805 * config/rs6000/spe.md (spe_evmergehi): Rename to...
9806 (vec_perm00_v2si): ... this. Handle little-endian code generation.
9807 (spe_evmergehilo): Rename to...
9808 (vec_perm01_v2si): ... this. Handle little-endian code generation.
9809 (spe_evmergelo): Rename to...
9810 (vec_perm11_v2si): ... this. Handle little-endian code generation.
9811 (spe_evmergelohi): Rename to...
9812 (vec_perm10_v2si): ... this. Handle little-endian code generation.
9813 (spe_evmergehi, spe_evmergehilo): New expanders.
9814 (spe_evmergelo, spe_evmergelohi): Likewise.
9815 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
9816 (*frob_tf_ti): Likewise.
9817 (*frob_<mode>_di_2): Likewise.
9818 (*frob_tf_di_8_2): Likewise.
9819 (*frob_di_<mode>): Likewise.
9820 (*frob_ti_tf): Likewise.
9821 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
9822 (*frob_ti_<mode>_8_2): Likewise.
9823 (*frob_ti_tf_2): Likewise.
9824 (mov_si<mode>_e500_subreg0): Rename to...
9825 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
9827 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
9828 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
9829 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
9830 the big endianness only.
9831 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
9832 (*mov_si<mode>_e500_subreg0_2): Rename to...
9833 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
9834 big big endianness only.
9835 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
9836 (*mov_si<mode>_e500_subreg4): Rename to...
9837 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
9839 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
9840 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
9841 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
9842 the big endianness only.
9843 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
9845 (*mov_si<mode>_e500_subreg4_2): Rename to...
9846 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
9848 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
9849 (*mov_sitf_e500_subreg8): Rename to...
9850 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
9852 (*mov_sitf_e500_subreg8_le): New instruction pattern.
9853 (*mov_sitf_e500_subreg8_2): Rename to...
9854 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
9856 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
9857 (*mov_sitf_e500_subreg12): Rename to...
9858 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
9860 (*mov_sitf_e500_subreg12_le): New instruction pattern.
9861 (*mov_sitf_e500_subreg12_2): Rename to...
9862 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
9864 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
9866 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
9868 * asan.c (instrument_strlen_call): Do not instrument first byte
9869 in strlen if already instrumented.
9871 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9873 * config/arm/arm.opt (mwords-little-endian): Delete.
9874 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
9875 of TARGET_LITTLE_WORDS.
9876 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
9877 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
9879 * doc/invoke.texi: Remove references to -mwords-little-endian.
9881 2014-07-07 Jakub Jelinek <jakub@redhat.com>
9883 * expmed.c (struct init_expmed_rtl): Change all fields but
9884 pow2 and cint from struct rtx_def to rtx.
9885 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
9886 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
9889 2014-07-06 Marek Polacek <polacek@redhat.com>
9892 * doc/invoke.texi: Document -Wsizeof-array-argument.
9894 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
9896 * wide-int.h (wide_int_storage): Change declaration from struct
9899 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
9901 * cgraph.c (cgraph_create_indirect_edge): Update call of
9902 get_polymorphic_call_info.
9903 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
9904 (possible_polymorphic_call_targets): Add parameter call.
9905 (decl_maybe_in_construction_p): New predicate.
9906 (get_polymorphic_call_info): Add parameter call;
9907 use decl_maybe_in_construction_p.
9908 * gimple-fold.c (fold_gimple_assign): Update use of
9909 possible_polymorphic_call_targets.
9910 (gimple_fold_call): Likewise.
9911 * ipa-prop.c: Inlcude calls.h
9912 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
9913 (param_type_may_change_p): New predicate.
9914 (detect_type_change_from_memory_writes): Break out from ...
9915 (detect_type_change): ... this one; use param_type_may_change_p.
9916 (detect_type_change_ssa): Use param_type_may_change_p.
9917 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
9919 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
9922 * config/arm/arm-protos.h (arm_legitimate_address_p,
9923 arm_is_constant_pool_ref): Add prototypes.
9924 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
9925 (arm_is_constant_pool_ref) New function.
9926 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
9927 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
9928 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
9929 operand. Remove pool_range and neg_pool_range attributes.
9930 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
9931 pool_range and neg_pool_range attributes.
9932 * config/arm/constraints.md (Uh): New constraint.
9933 (Uq): Don't allow constant pool references.
9935 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
9937 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
9938 (move_lo_quad_internal_be_<mode>): Likewise.
9939 (move_lo_quad_<mode>): Convert to define_expand.
9940 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
9941 (aarch64_simd_move_hi_quad_be_<mode>): New.
9942 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
9943 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
9944 (aarch64_combinez_be<mode>): New.
9945 (aarch64_combine<mode>): Convert to define_expand.
9946 (aarch64_combine_internal<mode>): New.
9947 (aarch64_simd_combine<mode>): Remove bogus RTL description.
9949 2014-07-04 Tom de Vries <tom@codesourcery.com>
9951 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
9952 combination of earlyclobber and read/write modifiers.
9954 2014-07-04 Tom de Vries <tom@codesourcery.com>
9956 * config/aarch64/aarch64-simd.md
9957 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
9959 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
9962 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
9964 2014-07-04 Jakub Jelinek <jakub@redhat.com>
9967 * cgraphunit.c (expand_thunk): Call free_dominance_info.
9969 PR tree-optimization/61684
9970 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
9971 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
9973 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9974 Kito Cheng <kito@0xlab.org>
9975 Monk Chiang <sh.chiang04@gmail.com>
9977 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
9978 (nds32_symbol_load_store_p): Move to ...
9979 (nds32_fp_as_gp_check_available): Move to ...
9980 * config/nds32/nds32-fp-as-gp.c: ... here.
9981 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
9984 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9985 Kito Cheng <kito@0xlab.org>
9986 Monk Chiang <sh.chiang04@gmail.com>
9988 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
9989 (nds32_expand_store_multiple): Move to ...
9990 (nds32_expand_movmemqi): Move to ...
9991 * config/nds32/nds32-memory-manipulation.c: ... here.
9993 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
9994 Kito Cheng <kito@0xlab.org>
9995 Monk Chiang <sh.chiang04@gmail.com>
9997 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
9998 (nds32_output_casesi_pc_relative): Move to ...
9999 (nds32_output_casesi): Move to ...
10000 (nds32_mem_format): Move to ...
10001 (nds32_output_16bit_store): Move to ...
10002 (nds32_output_16bit_load): Move to ...
10003 (nds32_output_32bit_store): Move to ...
10004 (nds32_output_32bit_load): Move to ...
10005 (nds32_output_32bit_load_s): Move to ...
10006 (nds32_output_stack_push): Move to ...
10007 (nds32_output_stack_pop): Move to ...
10008 * config/nds32/nds32-md-auxiliary.c: ... here.
10010 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10011 Ling-Hua Tseng <uranus@tinlans.org>
10013 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
10014 the purpose of this file.
10016 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10017 Kito Cheng <kito@0xlab.org>
10018 Monk Chiang <sh.chiang04@gmail.com>
10020 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
10021 (nds32_address_cost): Move implementation to ...
10022 * config/nds32/nds32-cost.c: ... here.
10023 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
10024 (nds32_address_cost_impl): Declare.
10026 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10027 Kito Cheng <kito@0xlab.org>
10028 Monk Chiang <sh.chiang04@gmail.com>
10030 * config/nds32/nds32.c
10031 (nds32_consecutive_registers_load_store_p): Move to ...
10032 (nds32_valid_multiple_load_store): Move to ...
10033 (nds32_valid_stack_push_pop): Move to ...
10034 (nds32_can_use_bclr_p): Move to ...
10035 (nds32_can_use_bset_p): Move to ...
10036 (nds32_can_use_btgl_p): Move to ...
10037 (nds32_can_use_bitci_p): Move to ...
10038 * config/nds32/nds32-predicates.c: ... here.
10040 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10041 Kito Cheng <kito@0xlab.org>
10042 Monk Chiang <sh.chiang04@gmail.com>
10044 * config/nds32/nds32.c
10045 (nds32_expand_builtin_null_ftype_reg): Move to ...
10046 (nds32_expand_builtin_reg_ftype_imm): Move to ...
10047 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
10048 (nds32_init_builtins): Move implementation to ...
10049 (nds32_expand_builtin): Move implementation to ...
10050 * config/nds32/nds32-intrinsic.c: ... here.
10051 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
10052 (nds32_expand_builtin_impl): Declare.
10054 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10055 Kito Cheng <kito@0xlab.org>
10056 Monk Chiang <sh.chiang04@gmail.com>
10058 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
10059 (nds32_emit_section_tail_template): Move to ...
10060 (nds32_emit_isr_jmptbl_section): Move to ...
10061 (nds32_emit_isr_vector_section): Move to ...
10062 (nds32_emit_isr_reset_conten): Move to ...
10063 (nds32_check_isr_attrs_conflict): Move to ...
10064 (nds32_construct_isr_vectors_information): Move to ...
10065 (nds32_asm_file_start): Move implementation to ...
10066 (nds32_asm_file_end): Move implementation to ...
10067 * config/nds32/nds32-isr.c: ... here.
10068 * config/nds32/nds32-protos.h
10069 (nds32_check_isr_attrs_conflict): Declare.
10070 (nds32_construct_isr_vectors_information): Declare.
10071 (nds32_asm_file_start_for_isr): Declare.
10072 (nds32_asm_file_end_for_isr): Declare.
10074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
10075 Kito Cheng <kito@0xlab.org>
10076 Monk Chiang <sh.chiang04@gmail.com>
10078 * config.gcc (nds32*): Add new modules to extra_objs.
10079 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
10080 (nds32be-*-*): Likewise.
10081 * config/nds32/nds32-cost.c: New file.
10082 * config/nds32/nds32-fp-as-gp.c: New file.
10083 * config/nds32/nds32-intrinsic.c: New file.
10084 * config/nds32/nds32-isr.c: New file.
10085 * config/nds32/nds32-md-auxiliary.c: New file.
10086 * config/nds32/nds32-memory-manipulation.c: New file.
10087 * config/nds32/nds32-pipelines-auxiliary.c: New file.
10088 * config/nds32/nds32-predicates.c: New file.
10089 * config/nds32/t-nds32: New file.
10091 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10093 PR tree-optimization/61682
10094 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
10095 using cases and when one of the operands is equal to 1.
10097 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
10099 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
10100 ashr<mode>3): Correct mode of operands[2].
10101 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
10102 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
10103 Correct mode of operands[2]. Fix split condition.
10105 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
10107 * arm.md (arch): Add armv6_or_vfpv3.
10108 (arch_enabled): Add test for the above.
10109 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
10111 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
10113 2014-07-03 Jakub Jelinek <jakub@redhat.com>
10115 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
10116 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
10117 HWI 1 and negate the unsigned value.
10118 * expmed.c (expand_sdiv_pow2): For modes wider than word always
10119 use AND instead of shift.
10120 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
10122 2014-07-03 Marek Polacek <polacek@redhat.com>
10124 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
10125 (-fsanitize=float-divide-by-zero): Move to the table with
10126 -fsanitize=undefined suboptions.
10127 (-fsanitize=float-cast-overflow): Likewise.
10129 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
10131 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
10132 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
10135 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10137 * loop-invariant.c (struct invariant): Add a new member: eqno;
10138 (find_identical_invariants): Update eqno;
10139 (create_new_invariant): Init eqno;
10140 (get_inv_cost): Compute comp_cost with eqno;
10142 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
10144 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
10145 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
10146 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
10147 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
10148 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
10150 2014-07-02 Christian Bruel <christian.bruel@st.com>
10154 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
10155 (make_preds_opaque): Delete.
10156 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
10157 (commit_mode_sets): New function.
10158 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
10159 Process all modes at once.
10160 * basic-block.h (pre_edge_lcm_avs): Declare.
10161 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
10162 Call clear_aux_for_edges. Fix comments.
10163 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
10164 (pre_edge_rev_lcm): Idem.
10165 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
10167 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
10168 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
10170 * config/i386/i386.c (x96_emit_mode_set): Idem.
10171 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
10172 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
10173 (fpscr_toggle) Disallow from delay slot.
10174 * target.def (emit_mode_set): Add prev_mode parameter.
10175 * doc/tm.texi: Regenerate.
10177 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10179 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
10182 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10184 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
10185 vtable_pointer_value_to_vtable): Constify.
10186 (contains_polymorphic_type_p): Declare.
10187 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
10188 vtable_pointer_value_to_vtable): Constify.
10189 (contains_polymorphic_type_p): New predicate.
10190 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
10192 (ipa_set_ancestor_jf): Likewise.
10193 (detect_type_change): Return false in easy cases.
10194 (compute_complex_assign_jump_func): Require type to contain
10196 (compute_known_type_jump_func): Likewise.
10198 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
10200 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
10202 (type_in_anonymous_namespace_p): Constify argument.
10203 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
10204 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
10205 (main_odr_variant): New function.
10206 (hash_type_name): Make static; update assert; do not ICE on
10208 (types_same_for_odr): Bring here from tree.c; simplify and remove
10209 old structural comparing code that doesn't work for templates.
10210 (odr_hasher::equal): Update assert.
10211 (add_type_duplicate): Return true when bases should be computed;
10212 replace incomplete loader by complete; do not output duplicated
10213 warnings; do not ICE on non-records; set odr_violated flag.
10214 (get_odr_type): Be ready to replace incomplete type by complete
10215 one; work on ODR variants instead of main variants; reorder item
10216 in array so bases have still smaller indexes.
10217 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
10218 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
10220 2014-07-01 Cary Coutant <ccoutant@google.com>
10222 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
10224 (resolve_addr_in_expr): When replacing the rtx in a location list
10225 entry, get a new address table entry.
10226 (dwarf2out_finish): Call index_location_lists even if there are no
10227 addr_index_table entries yet.
10229 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10231 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
10232 change for not being obvious.
10234 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
10236 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
10239 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10241 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
10242 (vcagt_f64): Likewise.
10243 (vcale_f64): Likewise.
10244 (vcaled_f64): Likewise.
10245 (vcales_f32): Likewise.
10246 (vcalt_f64): Likewise.
10247 (vcaltd_f64): Likewise.
10248 (vcalts_f32): Likewise.
10250 2014-07-01 Marek Polacek <polacek@redhat.com>
10252 * doc/invoke.texi: Document -Wint-conversion.
10254 2014-07-01 Marek Polacek <polacek@redhat.com>
10257 * doc/invoke.texi: Document -Wincompatible-pointer-types.
10259 2014-07-01 Martin Liska <mliska@suse.cz>
10261 IPA REF alias refactoring
10262 * cgraph.h (iterate_direct_aliases): New function.
10263 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
10264 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
10265 FOR_EACH_ALIAS added.
10266 (cgraph_for_node_and_aliases): Likewise.
10267 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
10268 * ipa-inline.c (reset_edge_caches): Likewise.
10269 (update_caller_keys): Likewise.
10270 * trans-mem.c (ipa_tm_execute): Likewise.
10271 *varpool.c (varpool_analyze_node): Likewise.
10272 (varpool_for_node_and_aliases): Likewise.
10273 * ipa-ref.h (first_alias): New function.
10274 (last_alias): Likewise.
10275 (has_aliases_p): Likewise.
10276 * ipa-ref.c (ipa_ref::remove_reference): Removal function
10277 is sensitive to IPA_REF_ALIASes.
10278 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
10279 are put at the beginning of the list.
10280 (symtab_node::iterate_direct_aliases): New function.
10282 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10285 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10287 (write_ts_type_common_tree_pointers): Do not stream fields not set
10288 for incomplete types; do not stream duplicated fields for variants;
10289 sanity check that variant and type match.
10290 (write_ts_type_non_common_tree_pointers): Likewise.
10291 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10292 TYPE_SIZE whether type is complete.
10293 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10294 write_ts_type_common_tree_pointers
10295 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10297 2014-06-30 Joseph Myers <joseph@codesourcery.com>
10299 * var-tracking.c (add_stores): Return instead of asserting if old
10300 and new values for conditional store are the same.
10302 2014-06-30 Richard Henderson <rth@redhat.com>
10306 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
10307 the cfg if there were any changes.
10308 * passes.def: Revert move of peephole2 after reorder_blocks;
10309 move duplicate_computed_gotos before peephole2.
10311 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
10313 * except.c (emit_note_eh_region_end): New helper function.
10314 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
10315 emit EH_REGION_END note.
10316 * jump.c (cleanup_barriers): Do not split a call and its
10317 corresponding CALL_ARG_LOCATION note.
10319 2014-06-30 Jeff Law <law@redhat.com>
10321 PR tree-optimization/61607
10322 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
10323 deeper into the SSA_NAME_VALUE chain.
10325 2014-06-30 Marek Polacek <polacek@redhat.com>
10327 * convert.c (convert_to_integer): Don't instrument conversions if the
10328 function has no_sanitize_undefined attribute.
10329 * ubsan.c: Don't run the ubsan pass if the function has
10330 no_sanitize_undefined attribute.
10332 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10334 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
10335 -fsanitize=undefined suboptions.
10337 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
10339 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
10340 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
10341 against bigendian and adjust indices.
10343 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10345 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
10347 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
10350 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
10351 Add alternative; make early clobber. Adjust both split patterns
10352 to use operand 0 as the working register.
10354 2014-06-30 Jakub Jelinek <jakub@redhat.com>
10356 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
10357 as ira_object_id_map might be NULL, or 1.
10359 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10361 * loop-invariant.c (get_inv_cost): Handle register class.
10362 (gain_for_invariant): Check the register pressure of the inv
10363 and its overlapped register class, other than all.
10365 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
10367 * doc/invoke.texi (Optimize Options): Fix descriptions of
10368 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
10370 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
10372 * doc/extend.texi (Function Attributes): Update 'naked' attribute
10375 2014-06-29 Tobias Grosser <tobias@grosser.es>
10378 * graphite-isl-ast-to-gimple.c: Add missing guards.
10380 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10382 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
10383 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
10384 * flag-types.h: Add new enum fgraphite_generator.
10385 * graphite-isl-ast-to-gimple.c: New.
10386 * graphite-isl-ast-to-gimple.h: New.
10387 * graphite.c (graphite_transform_loops): Add choice of Graphite
10388 code generator, which depends on flag_graphite_code_gen.
10390 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10392 * graphite-dependences.c (subtract_commutative_associative_deps):
10393 Add NULL checking of the following variables: must_raw_no_source,
10394 may_raw_no_source, must_war_no_source, may_war_no_source,
10395 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
10396 must_war, may_war, must_waw, may_waw.
10398 2014-06-29 Roman Gareev <gareevroman@gmail.com>
10400 * graphite-clast-to-gimple.c: gloog is renamed to
10401 graphite_regenerate_ast_cloog. gloog_error is renamed to
10402 graphite_regenerate_error.
10403 * graphite-clast-to-gimple.h: The definition of the struct
10404 bb_pbb_def is moved to graphite-htab.h.
10405 Add inclusion of the hash-table.h.
10406 * graphite-htab.h: The declaration of the function gloog is moved
10407 to graphite-clast-to-gimple.h and renamed to
10408 graphite_regenerate_ast_cloog.
10409 * graphite.c (graphite_transform_loops): gloog is renamed
10410 to graphite_regenerate_ast_cloog.
10412 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10414 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
10416 (write_ts_type_common_tree_pointers): Do not stream fields not set
10417 for incomplete types; do not stream duplicated fields for variants;
10418 sanity check that variant and type match.
10419 (write_ts_type_non_common_tree_pointers): Likewise.
10420 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
10421 TYPE_SIZE whether type is complete.
10422 (lto_input_ts_type_common_tree_pointers): Do same changes as in
10423 write_ts_type_common_tree_pointers
10424 (lto_input_ts_type_non_common_tree_pointers): Likewise.
10426 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10428 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
10430 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10432 * tree-inline.c (remap_type_1): Do not duplicate fields
10433 that are shared in between type and its main variant.
10435 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10437 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
10439 (ipa_set_ancestor_jf) Likewise.
10440 (check_stmt_for_type_change): Check that we work on main variant.
10441 (detect_type_change): Look into main variant.
10442 (compute_known_type_jump_func): Check that main variant has BINFO.
10444 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10446 * ipa-devirt.c (set_type_binfo): New function.
10447 (add_type_duplicate): Use it.
10448 (get_odr_type): Sanity check that binfos points to main variants.
10449 (get_class_context): Be sure the context's outer_type is main variant.
10450 (contains_type_p): Walk main variant.
10451 (get_polymorphic_call_info_for_decl): Set outer_type to be
10453 (get_polymorphic_call_info): Likewise.
10454 (possible_polymorphic_call_targets): Sanity check that we operate
10457 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
10459 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
10461 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10463 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
10464 accidental change due to wide-int branch merge.
10466 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10468 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
10469 compressed debug support.
10470 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
10471 * configure: Regenerate.
10472 * config.in: Regenerate.
10473 * common.opt (compressed_debug_sections): New enum.
10474 (gz, gz=): New options.
10475 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
10476 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
10477 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
10478 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
10479 LINK_COMPRESS_DEBUG_SPEC.
10480 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
10481 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
10482 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
10483 (Debugging Options): Document -gz[=type].
10485 2014-06-27 Martin Jambor <mjambor@suse.cz>
10488 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
10489 args_to_skip, use those from node instead. Copy args_to_skip and
10490 combined_args_to_skip from node to the new thunk.
10491 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
10492 (cgraph_create_virtual_clone): Moved computation of
10493 combined_args_to_skip...
10494 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
10496 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
10498 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
10499 redundant diagnostic machinary.
10501 2014-06-27 Richard Biener <rguenther@suse.de>
10503 * tree-ssa-math-opts.c (bswap_replace): Fix
10504 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
10506 2014-06-27 Martin Liska <mliska@suse.cz>
10508 * gimple.h (gimple_location_safe): New function introduced.
10509 * cgraphunit.c (walk_polymorphic_call_targets): Usage
10510 of gimple_location_safe replaces gimple_location.
10511 (gimple_fold_call): Likewise.
10512 * ipa-devirt.c (ipa_devirt): Likewise.
10513 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10514 * ipa.c (walk_polymorphic_call_targets): Likewise.
10515 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
10517 2014-06-27 Jakub Jelinek <jakub@redhat.com>
10519 PR tree-optimization/57233
10520 PR tree-optimization/61299
10521 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
10523 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
10524 would be lowered to scalar shifts, check if corresponding
10525 shifts and vector BIT_IOR_EXPR are supported and don't lower
10526 or lower just to narrower vector type in that case.
10527 * expmed.c (expand_shift_1): Fix up handling of vector
10528 shifts and rotates.
10530 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
10533 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
10535 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
10537 * doc/invoke.texi (-fsemantic-interposition): Document.
10538 * common.opt (fsemantic-interposition): New flag.
10539 * varasm.c (decl_replaceable_p): Use it.
10541 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10544 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
10545 extraction other than index 3.
10547 2014-06-26 Teresa Johnson <tejohnson@google.com>
10549 * doc/invoke.texi: Fix typo.
10550 * dumpfile.c: Add support for documented -fdump-* options
10551 optimized/missed/note/optall.
10553 2014-06-26 Martin Jambor <mjambor@suse.cz>
10555 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
10556 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
10557 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
10558 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
10559 * opts.c (default_options_optimization): Set
10560 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
10561 * doc/invoke.texi (allow-load-data-races)
10562 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
10563 (allow-store-data-races): Document the new default.
10565 2014-06-26 Martin Jambor <mjambor@suse.cz>
10567 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
10568 renamed to ipa_impossible_devirt_target. Fix typo.
10569 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
10570 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
10571 ipa_impossible_devirt_target.
10573 2014-06-26 Richard Biener <rguenther@suse.de>
10575 PR tree-optimization/61607
10576 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
10577 explaining why we restrict copies on loop depth.
10578 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10580 (record_equivalences_from_phis): Instead add it here.
10582 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
10584 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
10585 (LTO_WRAPPER_OBJS): New variable.
10586 (lto-wrapper$(exeext)): Use it.
10587 * collect2.c: Include "collect-utils.h".
10588 (verbose, debug): Remove variables.
10589 (at_file_supplied): No longer static.
10590 (tool_name): New variable.
10591 (do_wait, fork_execute, maybe_unlink): Don't declare.
10592 (tool_cleanup): No longer static.
10593 (notice): Remove function.
10594 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
10595 fork_execute calls.
10596 (collect_wait, do_wait, collect_execute): Remove functions.
10597 (maybe_unlink): No longer static.
10598 * collect2.h (verbose, debug): Don't declare.
10599 (at_file_supplied): Declare.
10600 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
10602 (collect_execute): Replace with implementation from collect2, plus a
10603 new arg use_atfile. All callers changed.
10604 (collect_wait): Replace with implementation from collect2.
10605 (maybe_unlink_file): Remove function.
10606 (fork_execute): Replace with implementation from collect2, plus a
10607 new arg use_atfile. All callers changed.
10608 (do_wait): Add call to utils_cleanup to the error path.
10609 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
10610 (tool_cleanup): Adjust declarations.
10611 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
10612 * tlink.c: Include "collect-utils.h".
10613 (tlink_execute): New arg use_atfile. All callers changed.
10614 (tlink_init, tlink_execute): Remove declarations.
10616 * collect-utils.c (save_temps): New variable.
10617 (do_wait): Use it instead of debug. Use fatal_error.
10618 * collect-utils.h (save_temps): Declare.
10619 * collect2.c (verbose): Rename from vflag. All uses changed.
10620 (tool_cleanup): New function, copied from collect_atexit.
10621 (collect_atexit, handler): Just call it.
10622 * collect2.h (verbose): Declaration renamed from vflag.
10623 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
10626 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
10627 (lto-wrapper$(exeext)): Link with collect-utils.o.
10628 * collect-utils.c: New file.
10629 * collect-utils.h: New file.
10630 * lto-wrapper.c: Include "collect-utils.h".
10631 (args_name): Delete variable.
10632 (tool_name): New variable.
10633 (tool_cleanup): New function.
10634 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
10635 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
10636 (fork_execute): Remove functions.
10638 2014-06-26 Nick Clifton <nickc@redhat.com>
10640 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
10642 * doc/extend.texi (Function Attributes): Fix typo in description
10643 of RX vector attribute.
10645 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
10647 * config.gcc (supported_defaults): Error when passing either
10648 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
10650 2014-06-26 Richard Biener <rguenther@suse.de>
10652 * tree-ssa-dom.c (cprop_operand): Remove restriction on
10653 propagating volatile pointers.
10655 2014-06-26 Richard Biener <rguenther@suse.de>
10657 PR tree-optimization/61607
10658 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
10659 loop if we redirected its latch edge.
10660 (thread_block_1): Do not cancel loops prematurely.
10662 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
10664 * toplev.c (backend_init_target): Move init_emit_regs and
10666 (backend_init) ... here; skip ira_init_once and backend_init_target.
10667 (target_reinit) ... and here; clear
10668 this_target_rtl->lang_dependent_initialized.
10669 (lang_dependent_init_target): Clear
10670 this_target_rtl->lang_dependent_initialized;
10671 break out rtl initialization to ...
10672 (initialize_rtl): ... here; call also backend_init_target
10674 * toplev.h (initialize_rtl): New function.
10675 * function.c: Include toplev.h
10676 (init_function_start): Call initialize_rtl.
10677 * rtl.h (target_rtl): Add target_specific_initialized,
10678 lang_dependent_initialized.
10680 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
10681 Jakub Jelinek <jakub@redhat.com>
10683 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
10685 2014-06-25 Tom de Vries <tom@codesourcery.com>
10687 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
10689 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
10691 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
10692 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
10693 Issue a strict overflow warning if appropriate.
10695 2014-06-25 Martin Liska <mliska@suse.cz>
10697 IPA REF refactoring
10698 * Makefile.in: Removed header file (ipa-ref-inline.h).
10699 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
10701 (cgraph_speculative_call_info): Likewise.
10702 (cgraph_for_node_thunks_and_aliases): Likewise.
10703 (cgraph_for_node_and_aliases): Likewise.
10704 (verify_cgraph_node): Likewise.
10705 * cgraph.h: Batch of IPA REF functions become member functions of
10706 symtab_node: add_reference, maybe_add_reference, clone_references,
10707 clone_referring, clone_reference, find_reference,
10708 remove_stmt_references, remove_all_references,
10709 remove_all_referring, dump_references, dump_referring,
10710 has_alias_p, iterate_reference, iterate_referring.
10711 * cgraphbuild.c (record_reference): New IPA REF function used.
10712 (record_type_list): Likewise.
10713 (record_eh_tables): Likewise.
10714 (mark_address): Likewise.
10715 (mark_load): Likewise.
10716 (mark_store): Likewise.
10717 (pass_build_cgraph_edges): Likewise.
10718 (rebuild_cgraph_edge): Likewise.
10719 (cgraph_rebuild_references): Likewise.
10720 (pass_remove_cgraph_callee_edges): Likewise.
10721 * cgraphclones.c (cgraph_clone_node): Likewise.
10722 (cgraph_create_virtual_clone): Likewise.
10723 (cgraph_materialize_clone): Likewise.
10724 (cgraph_materialize_all_clones): Likewise.
10725 * cgraphunit.c (cgraph_reset_node): Likewise.
10726 (cgraph_reset_node): Likewise.
10727 (analyze_function): Likewise.
10728 (assemble_thunks_and_aliases): Likewise.
10729 (expand_function): Likewise.
10730 * ipa-comdats.c (propagate_comdat_group): Likewise.
10731 (enqueue_references): Likewise.
10732 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
10733 (create_specialized_node): Likewise.
10734 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
10735 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
10736 * ipa-inline.c (reset_edge_caches): Likewise.
10737 (update_caller_keys): Likewise.
10738 (execute): Likewise.
10739 * ipa-prop.c (remove_described_reference): Likewise.
10740 (propagate_controlled_uses): Likewise.
10741 (ipa_edge_duplication_hook): Likewise.
10742 (ipa_modify_call_arguments): Likewise.
10743 * ipa-pure-const.c (propagate_pure_const): Likewise.
10744 * ipa-ref-inline.h: Header file removed, functions moved
10745 to symtab_node class.
10746 * ipa-ref.c (remove_reference): New class member function.
10747 (cannot_lead_to_return): New class member function.
10748 (referring_ref_list): Likewise.
10749 (referred_ref_list): Likewise.
10750 Rest of functions moved to symtab_node class.
10751 * ipa-ref.h: New member functions remove_reference,
10752 cannot_lead_to_return, referring_ref_list, referred_ref_list added
10754 ipa_ref_list class has new member functions: first_reference,
10755 first_referring, clear, nreferences.
10756 * ipa-reference.c (analyze_function): New IPA REF function used.
10757 (write_node_summary_p): Likewise.
10758 (ipa_reference_write_optimization_summary): Likewise.
10759 * ipa-split.c (split_function): Likewise.
10760 * ipa-utils.c (ipa_reverse_postorder): Likewise.
10761 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
10762 (function_and_variable_visibility): Likewise.
10763 * ipa.c (has_addr_references_p): Likewise.
10764 (process_references): Argument type changed.
10765 (symtab_remove_unreachable_nodes): New IPA REF function used.
10766 (process_references): Likewise.
10767 (set_writeonly_bit): Likewise.
10768 * lto-cgraph.c: Implementation of new symtab_node member functions
10769 that uses new IPA REF functions.
10770 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
10772 * lto-streamer-out.c (output_symbol_p): Likewise.
10773 * lto-streamer.h (referenced_from_this_partition_p): Argument type
10775 * symtab.c: Implementation of new IPA REF API.
10776 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
10777 (ipa_tm_create_version): Likewise.
10778 (ipa_tm_execute): Likewise.
10779 * tree-emutls.c (gen_emutls_addr): Likewise.
10780 * tree-inline.c (copy_bb): Likewise.
10781 (delete_unreachable_blocks_update_callgraph): Likewise.
10782 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
10783 (varpool_for_node_and_aliases): Likewise.
10785 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10787 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
10789 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
10792 * fold-const.c (fold_checksum_tree): Use a hash_table of const
10793 tree_node * instead of tree_node *.
10795 (print_fold_checksum): Likewise.
10796 (fold_check_failed): Likewise.
10797 (debug_fold_checksum): Likewise.
10798 (fold_build1_stat_loc): Likewise.
10799 (fold_build2_stat_loc): Likewise.
10800 (fold_build3_stat_loc): Likewise.
10801 (fold_build_call_array_loc): Likewise.
10803 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
10805 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
10806 implementation with call to...
10807 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
10809 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
10812 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
10814 PR tree-optimization/57742
10815 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
10816 after replacing the statement.
10818 2014-06-25 Nick Clifton <nickc@redhat.com>
10820 * config/v850/v850.c (GHS_default_section_names): Change to const
10822 (GHS_current_section_names): Likewise.
10823 (v850_insert_attributes): Do not build strings, just assign the
10824 names directly. Change the type of 'chosen_section' to const
10826 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
10827 directly to the array entry.
10828 * config/v850/v850.h (GHS_default_section_names): Change to const
10830 (GHS_current_section_names): Likewise.
10832 2014-06-25 Jakub Jelinek <jakub@redhat.com>
10834 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
10835 (LANG_HOOKS_DECLS): Add it.
10836 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
10838 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
10839 * langhooks.h (struct lang_hooks_for_decls): Add
10840 omp_clause_linear_ctor hook.
10841 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
10842 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
10843 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
10844 combined simd loop use omp_clause_linear_ctor hook.
10846 2014-06-24 Cong Hou <congh@google.com>
10848 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
10849 pattern recognition.
10850 (type_conversion_p): PROMOTION is true if it's a type promotion
10851 conversion, and false otherwise. Return true if the given expression
10852 is a type conversion one.
10853 * tree-vectorizer.h: Adjust the number of patterns.
10854 * tree.def: Add SAD_EXPR.
10855 * optabs.def: Add sad_optab.
10856 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
10857 * expr.c (expand_expr_real_2): Likewise.
10858 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
10859 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10860 * optabs.c (optab_for_tree_code): Likewise.
10861 * tree-cfg.c (estimate_operator_cost): Likewise.
10862 * tree-ssa-operands.c (get_expr_operands): Likewise.
10863 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
10864 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
10865 * doc/generic.texi: Add document for SAD_EXPR.
10866 * doc/md.texi: Add document for ssad and usad.
10868 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10870 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
10871 qualification in cast.
10873 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
10875 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
10876 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
10877 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
10878 (tree_function_decl): ... here.
10879 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
10880 streaming of vindex to ...
10881 (write_ts_function_decl_tree_pointers): ... here.
10882 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
10883 Do not stream DECL_VINDEX.
10884 (lto_input_ts_function_decl_tree_pointers): Stream it here.
10886 2014-06-24 Catherine Moore <clm@codesourcery.com>
10887 Sandra Loosemore <sandra@codesourcery.com>
10889 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
10890 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
10891 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
10893 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10895 * doc/invoke.texi (Warning Options): Remove duplicated
10896 -Wmaybe-uninitialized.
10898 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
10900 PR tree-optimization/57742
10901 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
10902 (handle_builtin_malloc, handle_builtin_memset): New functions.
10903 (strlen_optimize_stmt): Call them.
10904 * passes.def: Move strlen after loop+dom but before vrp.
10906 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10909 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
10910 model family 6 CPU with has_longmode never use a CPU without
10913 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
10916 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
10919 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10921 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
10922 * dominance.c (iterate_fix_dominators): Use hash_map instead of
10924 * hash-map.h: New file.
10925 * ipa-comdats.c: Use hash_map instead of pointer_map.
10927 * lto-section-out.c: Adjust.
10928 * lto-streamer.h: Replace pointer_map with hash_map.
10929 * symtab.c (verify_symtab): Likewise.
10930 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
10931 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
10932 * tree-streamer.h: Likewise.
10933 * tree-streamer.c: Adjust.
10934 * pointer-set.h: Remove pointer_map.
10936 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10938 * hash-table.h: Add a template arg to choose between storing values
10939 and storing pointers to values, and then provide partial
10940 specializations for both.
10941 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
10942 should store, not the type values should point to.
10943 * tree-into-ssa.c (var_info_hasher): Likewise.
10944 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
10945 * tree-complex.c: Adjust.
10946 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
10947 table instead of int_tree_map *.
10948 * tree-parloops.c: Adjust.
10949 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
10950 type is being stored.
10951 * tree-vectorizer.c: Adjust.
10953 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
10955 * hash-table.h: Remove a layer of indirection from hash_table so that
10956 it contains the hash table's data instead of a pointer to the data.
10957 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
10958 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
10959 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
10960 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
10961 fold-const.c, gcse.c, ggc-common.c,
10962 gimple-ssa-strength-reduction.c, gimplify.c,
10963 graphite-clast-to-gimple.c, graphite-dependences.c,
10964 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
10965 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
10966 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
10967 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
10968 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
10969 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
10970 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
10971 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
10972 tree-ssa-live.c, tree-ssa-loop-im.c,
10973 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
10974 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
10975 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
10976 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
10977 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
10978 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
10979 vtable-verify.c, vtable-verify.h: Adjust.
10981 2014-06-24 Richard Biener <rguenther@suse.de>
10983 PR tree-optimization/61572
10984 * tree-ssa-sink.c (statement_sink_location): Do not sink
10985 loads from hard registers.
10987 2014-06-24 Jakub Jelinek <jakub@redhat.com>
10989 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
10990 not mentioned in clauses use private clause if the iterator is
10991 declared in #pragma omp for simd, and when adding lastprivate
10992 instead, add it to the outer #pragma omp for too. Diagnose
10993 if the variable is private in outer context. For simd collapse > 1
10994 loops, replace all iterators with temporaries.
10995 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
10996 same even in collapse > 1 loops.
10998 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
10999 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
11001 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
11002 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
11004 (gimplify_adjust_omp_clauses): Likewise.
11005 * omp-low.c (lower_rec_simd_input_clauses,
11006 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
11007 safelen the same as safelen(1).
11008 * tree-nested.c (convert_nonlocal_omp_clauses,
11009 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
11010 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
11011 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
11012 Fixup handling of GIMPLE_OMP_TARGET.
11013 (convert_tramp_reference_stmt, convert_gimple_call): Handle
11016 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
11018 PR tree-optimization/61554
11019 * tree-ssa-propagate.c: Include "bitmap.h".
11020 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
11021 properly update constructor/destructor.
11022 (substitute_and_fold_dom_walker::before_dom_children):
11023 Remove call to gimple_purge_dead_eh_edges, add bb->index to
11024 need_eh_cleaup instead.
11025 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
11028 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11030 * varpool.c (dump_varpool_node): Dump used_by_single_function.
11031 * tree-pass.h (make_pass_ipa_single_use): New pass.
11032 * cgraph.h (used_by_single_function): New flag.
11033 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
11035 * passes.def (pass_ipa_single_use): Scedule.
11036 * ipa.c (BOTTOM): New macro.
11037 (meet): New function
11038 (propagate_single_user): New function.
11039 (ipa_single_use): New function.
11040 (pass_data_ipa_single_use): New pass.
11041 (pass_ipa_single_use): New pass.
11042 (pass_ipa_single_use::gate): New gate.
11043 (make_pass_ipa_single_use): New function.
11045 2014-06-23 Kai Tietz <ktietz@redhat.com>
11048 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
11049 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
11051 2014-06-23 Richard Biener <rguenther@suse.de>
11053 * tree-ssa-loop.c (gate_loop): New function.
11054 (pass_tree_loop::gate): Call it.
11055 (pass_data_tree_no_loop, pass_tree_no_loop,
11056 make_pass_tree_no_loop): New.
11057 * tree-vectorizer.c: Include tree-scalar-evolution.c
11058 (pass_slp_vectorize::execute): Initialize loops and SCEV if
11060 (pass_slp_vectorize::clone): New method.
11061 * timevar.def (TV_TREE_NOLOOP): New.
11062 * tree-pass.h (make_pass_tree_no_loop): Declare.
11063 * passes.def (pass_tree_no_loop): New pass group with
11066 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
11069 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
11070 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
11072 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11074 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
11075 "yes" where needed.
11077 2014-06-23 Alan Modra <amodra@gmail.com>
11080 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
11081 to zero on debug statements.
11083 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11086 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
11087 Ignore third operand if present by marking qualifier_internal.
11089 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
11091 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
11093 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
11094 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
11095 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
11096 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
11097 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
11098 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
11099 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
11100 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
11101 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
11102 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
11103 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
11104 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
11105 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
11106 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
11107 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
11108 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
11109 logic in GCC vector extensions
11111 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
11112 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
11113 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
11114 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
11115 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
11116 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
11117 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
11118 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
11119 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
11120 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
11122 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
11124 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
11127 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
11128 (vget_low_s64): Use __GET_LOW macro.
11129 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
11130 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
11131 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
11132 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
11133 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
11135 (vcombine_s64): Use GCC vector extensions; remove cast.
11136 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
11137 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
11138 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
11139 Fix type signature; remove cast.
11141 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
11144 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
11146 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
11148 (BUILTIN_VD1): New.
11149 (BUILTIN_VD_RE): Remove.
11150 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
11151 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
11152 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
11153 variant but not df.
11154 (vreinterpretv1df*, vreinterpret*v1df): New.
11155 (vreinterpretdf*, vreinterpret*df): Remove.
11156 * config/aarch64/aarch64-simd.md (aarch64_create,
11157 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
11158 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
11160 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
11161 (vcreate_f64): Remove cast, use v1df builtin.
11162 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
11163 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
11164 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
11165 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
11166 vmov_n_f64, vst1_f64): Use gcc vector extensions.
11167 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
11168 add range check using __builtin_aarch64_im_lane_boundsi.
11169 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
11170 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
11171 type signature, use gcc vector extensions.
11172 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
11173 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
11174 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
11175 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
11176 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
11177 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
11178 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
11179 vreinterpret_u64_f64): Use v1df builtin not df.
11181 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
11183 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
11186 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
11188 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
11191 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11193 * loop-invariant.c (pre_check_invariant_p): New function.
11194 (find_invariant_insn): Call pre_check_invariant_p.
11196 2014-06-22 Richard Henderson <rth@redhat.com>
11199 * compare-elim.c (struct comparison): Add eh_note.
11200 (find_comparison_dom_walker::before_dom_children): Don't eliminate
11201 a redundant comparison in a different EH region. Purge EH edges if
11204 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11206 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
11207 (var_shift): Use it.
11208 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
11209 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
11210 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
11211 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
11212 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
11213 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
11214 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
11215 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
11216 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
11217 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
11218 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
11219 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
11220 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
11221 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
11222 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
11223 *rotldi3_internal15be): Use the new attribute. Merge register and
11224 integer alternatives.
11226 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11228 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
11229 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
11230 split, *ashrdi3_internal3 and split): Delete, merge into...
11231 (ashr<mode>3): New expander.
11232 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
11233 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
11235 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11237 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
11238 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
11239 *rotldi3_internal3 and split): Delete, merge into...
11240 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
11241 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
11242 Use "rotlw" extended mnemonic.
11244 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11246 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
11247 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
11248 and split, *ashldi3_internal3 and split): Delete, merge into...
11249 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
11250 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
11252 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11254 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
11255 (lshrsi3, two anonymous define_insns and define_splits,
11256 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
11257 *lshrdi3_internal3 and split): Delete, merge into...
11258 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
11259 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
11261 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
11263 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
11264 Remove "O" alternative.
11266 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
11268 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
11269 (mips_move_from_gpr_cost): Likewise.
11270 (mips_register_move_cost): Update accordingly.
11271 (mips_secondary_reload_class): Remove name of in_p.
11273 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
11276 * config/i386/i386.md (x86_64_shrd, x86_shrd,
11277 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
11279 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11281 * config/nios2/nios2.c: Include "builtins.h".
11283 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11285 * cgraph.h (tls_model_names): New variable.
11286 * print-tree.c (print_node): Simplify.
11287 * varpool.c (tls_model_names): New variable.
11288 (dump_varpool_node): Output tls model.
11290 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11292 * ipa-visibility.c (function_and_variable_visibility): Disable
11293 temporarily local aliases for some targets.
11295 2014-06-20 Marek Polacek <polacek@redhat.com>
11297 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
11298 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
11299 into SANITIZE_UNDEFINED.
11300 * doc/invoke.texi: Describe -fsanitize=bounds.
11301 * gimplify.c (gimplify_call_expr): Add gimplification of internal
11302 functions created in the FEs.
11303 * internal-fn.c: Move "internal-fn.h" after "tree.h".
11304 (expand_UBSAN_BOUNDS): New function.
11305 * internal-fn.def (UBSAN_BOUNDS): New internal function.
11306 * internal-fn.h: Don't define internal functions here.
11307 * opts.c (common_handle_option): Add -fsanitize=bounds.
11308 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
11309 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
11310 * tree-core.h: Define internal functions here.
11311 (struct tree_base): Add ifn field.
11312 * tree-pretty-print.c: Include "internal-fn.h".
11313 (dump_generic_node): Handle functions without CALL_EXPR_FN.
11314 * tree.c (get_callee_fndecl): Likewise.
11315 (build_call_expr_internal_loc): New function.
11316 * tree.def (CALL_EXPR): Update description.
11317 * tree.h (CALL_EXPR_IFN): Define.
11318 (build_call_expr_internal_loc): Declare.
11319 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
11321 (ubsan_type_descriptor): Change bool parameter to enum
11322 ubsan_print_style. Adjust the code. Add handling of
11324 (ubsan_expand_bounds_ifn): New function.
11325 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
11326 (ubsan_build_overflow_builtin): Likewise.
11327 (instrument_bool_enum_load): Likewise.
11328 (ubsan_instrument_float_cast): Likewise.
11329 * ubsan.h (enum ubsan_print_style): New enum.
11330 (ubsan_expand_bounds_ifn): Declare.
11331 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
11333 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
11335 * config/rs6000/rs6000.md: Append `DONE' to preparation
11336 statements of `bswap' pattern splitters.
11338 2014-06-20 Tom de Vries <tom@codesourcery.com>
11340 * target.def (call_fusage_contains_non_callee_clobbers): Update
11342 * doc/tm.texi: Regenerate.
11344 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11345 Max Ostapenko <m.ostapenko@partner.samsung.com>
11348 * asan.c (instrument_strlen_call): Fixed instrumentation of
11351 2014-06-20 Martin Jambor <mjambor@suse.cz>
11354 * ipa-prop.c (impossible_devirt_target): New function.
11355 (try_make_edge_direct_virtual_call): Use it, also instead of
11358 2014-06-20 Yury Gribov <y.gribov@samsung.com>
11359 Max Ostapenko <m.ostapenko@partner.samsung.com>
11362 * asan.c (build_check_stmt): Add condition.
11364 2014-06-20 Martin Jambor <mjambor@suse.cz>
11367 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
11370 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11372 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
11374 (VCONQ): Make comment more helpful.
11376 * config/aarch64/aarch64-simd.md
11377 (aarch64_sqdmulh_lane<mode>):
11378 Use VCOND for operands 2. Update lane checking and flipping logic.
11379 (aarch64_sqrdmulh_lane<mode>): Likewise.
11380 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
11381 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
11382 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
11383 attribute of operand 3 to VCOND.
11384 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
11385 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
11386 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
11387 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
11388 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
11389 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
11391 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
11392 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
11393 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
11394 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
11395 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
11396 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
11397 operand to VCOND. Update lane flipping and bounds checking logic.
11398 (aarch64_sqdmlal2_lane<mode>): Likewise.
11399 (aarch64_sqdmlsl_lane<mode>): Likewise.
11400 (aarch64_sqdmull_lane<mode>): Likewise.
11401 (aarch64_sqdmull2_lane<mode>): Likewise.
11402 (aarch64_sqdmlal_laneq<mode>):
11403 Replace VCON usage with VCONQ.
11404 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
11405 (aarch64_sqdmlal2_laneq<mode>): Emit
11406 aarch64_sqdmlal2_laneq<mode>_internal insn.
11407 Replace VCON with VCONQ.
11408 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
11409 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
11410 (aarch64_sqdmull_laneq<mode>): Emit
11411 aarch64_sqdmull_laneq<mode>_internal insn.
11412 Replace VCON with VCONQ.
11413 (aarch64_sqdmull2_laneq<mode>): Emit
11414 aarch64_sqdmull2_laneq<mode>_internal insn.
11415 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
11416 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
11417 of 3rd argument to int16x4_t.
11418 (vqdmlalh_lane_s16): Likewise.
11419 (vqdmlslh_lane_s16): Likewise.
11420 (vqdmull_high_lane_s16): Likewise.
11421 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
11422 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
11423 (vqdmlsl_lane_s16): Likewise.
11424 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
11425 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
11426 (vqdmlals_lane_s32): Likewise.
11427 (vqdmlsls_lane_s32): Likewise.
11428 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
11429 (vqdmulls_lane_s32): Likewise.
11430 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
11431 (vqdmlsl_lane_s32): Likewise.
11432 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
11433 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
11434 (vqrdmulhh_lane_s16): Likewise.
11435 (vqdmlsl_high_lane_s16): Likewise.
11436 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
11437 (vqdmlsl_high_lane_s32): Likewise.
11438 (vqrdmulhs_lane_s32): Likewise.
11440 2014-06-20 Tom de Vries <tom@codesourcery.com>
11442 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
11443 get_call_reg_set_usage.
11445 2014-06-20 Tom de Vries <tom@codesourcery.com>
11447 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
11448 it contains all call_used_regs.
11450 2014-06-20 Tom de Vries <tom@codesourcery.com>
11452 * final.c (collect_fn_hard_reg_usage): Add and use variable
11453 function_used_regs.
11455 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
11457 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
11458 (set_init_priority, get_init_priority, set_fini_priority,
11459 get_fini_priority): New methods.
11460 * tree.c (init_priority_for_decl): Remove.
11461 (init_ttree): Do not initialize init priority.
11462 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
11463 (decl_priority_info): Remove.
11464 (decl_init_priority_insert): Rewrite.
11465 (decl_fini_priority_insert): Rewrite.
11466 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
11467 tree_priority_map_marked_p): Remove.
11468 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
11469 * lto-streamer-out.c (hash_tree): Do not hash priorities.
11470 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
11471 not output priorities.
11472 (pack_ts_function_decl_value_fields): Likewise.
11473 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11474 not input priorities.
11475 (unpack_ts_function_decl_value_fields): Likewise.
11476 * symtab.c (symbol_priority_map): Declare.
11477 (init_priority_hash): Declare.
11478 (symtab_unregister_node): Unregister from priority hash, too.
11479 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
11481 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
11482 (symbol_priority_info): New function.
11483 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
11485 * tree-core.h (tree_priority_map): Remove.
11487 2014-06-20 Jakub Jelinek <jakub@redhat.com>
11489 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
11490 0xff to uint64_t before shifting it up.
11492 2014-06-20 Julian Brown <julian@codesourcery.com>
11493 Chung-Lin Tang <cltang@codesourcery.com>
11495 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
11496 TARGET_THUMB1_ONLY. Add comments.
11498 2014-06-19 Tom de Vries <tom@codesourcery.com>
11500 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
11501 return type to void.
11502 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
11504 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11506 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
11507 as "move", from depends_on.
11509 2014-06-19 Terry Guo <terry.guo@arm.com>
11511 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
11514 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
11516 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
11518 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
11520 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
11523 * config/sh/sh.c (prepare_move_operands): Don't process TLS
11524 addresses here if reload in progress or completed.
11526 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11528 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
11529 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
11530 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
11531 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
11532 (mips_register_priority): New function that implements the target
11533 hook TARGET_REGISTER_PRIORITY.
11534 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
11535 (mips_lra_p): Likewise for TARGET_LRA_P.
11536 (TARGET_REGISTER_PRIORITY): Define macro.
11537 (TARGET_SPILL_CLASS): Likewise.
11538 (TARGET_LRA_P): Likewise.
11539 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
11541 (REG_CLASS_NAMES): Likewise.
11542 (REG_CLASS_CONTENTS): Likewise.
11543 (BASE_REG_CLASS): Use M16_SP_REGS.
11544 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
11545 New set attribute to enable alternatives depending on the register
11547 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
11548 (*lea64): Disable pattern for MIPS16.
11549 * config/mips/mips.opt (mlra): New option.
11551 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
11553 * lra-constraints.c (base_to_reg): New function.
11554 (process_address): Use new function.
11556 2014-06-18 Tom de Vries <tom@codesourcery.com>
11558 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
11559 * config/aarch64/aarch64.c
11560 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
11561 (aarch64_emit_call_insn): New function.
11562 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
11564 * config/aarch64/aarch64.md (define_expand "call_internal")
11565 (define_expand "call_value_internal", define_expand "sibcall_internal")
11566 (define_expand "sibcall_value_internal"): New.
11567 (define_expand "call", define_expand "call_value")
11568 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
11569 expand variant and aarch64_emit_call_insn.
11571 2014-06-18 Radovan Obradovic <robradovic@mips.com>
11572 Tom de Vries <tom@codesourcery.com>
11574 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
11575 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
11577 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
11578 clobbers to CALL_INSN_FUNCTION_USAGE.
11579 (define_expand "sibcall_internal")
11580 (define_expand "sibcall_value_internal"): New.
11581 (define_expand "call", define_expand "call_value"): Add argument to
11582 arm_emit_call_insn.
11583 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
11584 (define_expand "sibcall_value"): Use sibcall_value_internal and
11585 arm_emit_call_insn.
11587 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11589 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
11591 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11593 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
11596 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11598 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
11599 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
11600 annotations. Fix DWARF information.
11602 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11604 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
11605 __udivmoddi4, and fixups for negative operands.
11607 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11609 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
11611 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11613 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
11616 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11618 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
11621 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11623 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
11624 describing register usage on function entry and exit.
11626 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11628 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
11629 (__aeabi_ldivmod): Fix whitespace.
11631 2014-06-18 Andreas Schwab <schwab@suse.de>
11633 * doc/md.texi (Standard Names): Use @itemx for grouped items.
11634 Remove blank line after @item.
11636 2014-06-18 Richard Henderson <rth@redhat.com>
11639 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
11641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
11643 * config/arm/arm.c (neon_vector_mem_operand): Allow register
11644 POST_MODIFY for neon loads and stores.
11645 (arm_print_operand): Output post-index register for neon loads and
11648 2014-06-18 Richard Biener <rguenther@suse.de>
11650 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
11652 2014-06-18 Richard Biener <rguenther@suse.de>
11654 * tree-pass.h (make_pass_dce_loop): Remove.
11655 * passes.def: Replace pass_dce_loop with pass_dce.
11656 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
11657 changed free niter estimates and reset the scev cache.
11658 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
11659 make_pass_dce_loop): Remove.
11660 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
11661 (fini_copy_prop): Return whether something changed. Always
11662 let substitute_and_fold perform DCE and free niter estimates
11663 and reset the scev cache if so.
11664 (execute_copy_prop): If sth changed schedule cleanup-cfg.
11665 (pass_data_copy_prop): Do not unconditionally schedule
11666 cleanup-cfg or update-ssa.
11668 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
11670 PR tree-optimization/61518
11671 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
11672 reduction var is used in reduction stmt or phi-function only.
11674 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11676 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
11678 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
11680 PR tree-optimization/61517
11681 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
11682 whose rhs's first tree is the source expression instead of the
11684 (find_bswap_or_nop): Likewise.
11685 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
11686 gimple stmt whose rhs's first tree is the source. In the memory source
11687 case, move the stmt to be replaced close to one of the original load to
11688 avoid the problem of a store between the load and the stmt's original
11690 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
11693 2014-06-18 Andreas Schwab <schwab@suse.de>
11695 PR rtl-optimization/54555
11696 * postreload.c (move2add_use_add2_insn): Substitute
11697 STRICT_LOW_PART only if it is cheaper.
11699 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
11701 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
11702 Do not use unspec as call operand. Use memory_operand instead of
11703 memory_nox32_operand and add "m" operand constraint. Disable
11704 pattern for TARGET_X32.
11705 (*sibcall_pop_memory): Ditto.
11706 (*sibcall_value_memory): Ditto.
11707 (*sibcall_value_pop_memory): Ditto.
11708 (sibcall peepholes): Merge SImode and DImode patterns using
11709 W mode iterator. Use memory_operand instead of memory_nox32_operand.
11710 Disable pattern for TARGET_X32. Check if eliminated register is
11711 really dead after call insn. Generate call RTX without unspec operand.
11712 (sibcall_value peepholes): Ditto.
11713 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
11714 instead of memory_nox32_operand. Check if eliminated register is
11715 really dead after call insn. Generate call RTX without unspec operand.
11716 (sibcall_value_pop peepholes): Ditto.
11717 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
11719 2014-06-18 Terry Guo <terry.guo@arm.com>
11722 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
11725 2014-06-18 Olivier Hainque <hainque@adacore.com>
11727 * tree-core.h (tree_block): Add an "end_locus" field, allowing
11728 memorization of the end of block source location.
11729 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
11730 * gimplify.c (gimplify_bind_expr): Propagate the block start and
11731 end source location info we have on the block entry/exit code we
11734 2014-06-18 Richard Biener <rguenther@suse.de>
11736 * common.opt (fssa-phiopt): New option.
11737 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
11739 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
11740 * doc/invoke.texi (-fssa-phiopt): Document.
11742 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11744 * genattrtab.c (n_bypassed): New variable.
11745 (process_bypasses): Initialise n_bypassed.
11746 Count number of bypassed reservations.
11747 (make_automaton_attrs): Allocate space for bypassed reservations
11748 rather than number of bypasses.
11750 2014-06-18 Richard Biener <rguenther@suse.de>
11752 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
11753 we propagated anything.
11754 (substitute_and_fold_dom_walker::before_dom_children): Something
11755 changed if we propagated into PHI arguments.
11756 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
11759 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
11761 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
11763 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
11764 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
11765 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
11766 Introduces alternative way of loads group permutaions.
11767 (vect_transform_grouped_load): Try alternative way of permutations.
11769 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11771 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
11772 changed in ORT_TARGET region, don't jump to do_outer.
11773 (struct gimplify_adjust_omp_clauses_data): New type.
11774 (gimplify_adjust_omp_clauses_1): Adjust for data being
11775 a struct gimplify_adjust_omp_clauses_data pointer instead
11776 of tree *. Pass pre_p as a new argument to
11777 lang_hooks.decls.omp_finish_clause hook.
11778 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
11779 splay_tree_foreach to pass both list_p and pre_p.
11780 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
11781 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
11782 gimplify_adjust_omp_clauses callers.
11783 * langhooks.c (lhd_omp_finish_clause): New function.
11784 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
11785 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
11786 * langhooks.h (struct lang_hooks_for_decls): Add a new
11787 gimple_seq * argument to omp_finish_clause hook.
11788 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
11789 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
11790 (scan_omp_parallel, lower_omp_for): When adding
11791 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
11792 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
11793 * tree-nested.c (convert_nonlocal_omp_clauses,
11794 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
11795 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
11797 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
11799 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
11800 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
11802 2014-06-17 Xinliang David Li <davidxl@google.com>
11804 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
11805 * passes.c (pass_init_dump_file): Do not set initialize
11806 flag to false unconditionally.
11808 2014-06-17 Richard Biener <rguenther@suse.de>
11810 * genopinit.c (main): Use vec<>::qsort method.
11811 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
11813 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
11815 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
11817 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
11818 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
11819 (mips_move_to_gpr_cost): Remove ST_REGS case.
11820 (mips_move_from_gpr_cost): Likewise.
11821 (mips_register_move_cost): Likewise.
11822 (mips_secondary_reload_class): Likewise.
11824 2014-06-17 Richard Biener <rguenther@suse.de>
11826 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
11827 (pass_all_optimizations): Move 3rd copy-prop pass from after
11828 fre to before ifcombine/phiopt.
11830 2014-06-17 Richard Biener <rguenther@suse.de>
11832 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
11833 and allow all blocks to be forwarders.
11835 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
11838 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
11839 variable 'size'; calculate 'size' right in the front; use
11840 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
11841 pcum->aapcs_stack_words.
11843 2014-06-17 Nick Clifton <nickc@redhat.com>
11845 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
11846 (umulhi3, mulsidi3, umulsidi3): Likewise.
11848 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
11850 PR middle-end/61508
11851 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
11852 check for section name.
11854 2014-06-17 Richard Biener <rguenther@suse.de>
11856 * tree-ssa-propagate.c: Include domwalk.h.
11857 (substitute_and_fold): Outline main worker into a domwalker ...
11858 (substitute_and_fold_dom_walker::before_dom_children): ... here.
11859 Schedule stmts we can fully propagate for removal. Remove
11861 (substitute_and_fold): Apply a dominator walk to perform
11862 substitution. Process stmts scheduled for removal here.
11864 2014-06-17 Richard Biener <rguenther@suse.de>
11866 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
11867 of PHI node moving.
11869 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
11871 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
11872 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
11873 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
11874 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
11875 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
11877 (get_fpscr) : Likewise.
11879 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11881 PR rtl-optimization/61325
11882 * lra-constraints.c (valid_address_p): Add forward declaration.
11883 (simplify_operand_subreg): Check address validity before and after
11884 alter_reg of memory subreg.
11886 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
11888 * config/i386/i386.c (decide_alg): Correctly handle
11889 maximum size of stringop algorithm.
11891 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11893 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
11895 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
11897 PR rtl-optimization/61522
11898 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
11900 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
11903 * symtab.c (symtab_node::reset_section): New method.
11904 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
11906 * cgraph.h (reset_section): Declare.
11907 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
11908 do not consider comdat locals.
11909 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
11911 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
11912 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
11913 reset sections of symbols dragged out of the comdats.
11914 (function_and_variable_visibility): Reset sections of
11917 2014-06-16 Richard Biener <rguenther@suse.de>
11919 PR tree-optimization/61482
11920 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
11921 [-INF(OVF), +INF(OVF)] range.
11923 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11925 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
11926 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
11927 handling 32-bit multiplication.
11929 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
11931 PR middle-end/61430
11932 * lra-lives.c (process_bb_lives): Skip creating copy during
11933 insn scan when src/dest has constrained to same regno.
11935 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11937 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
11938 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
11940 2014-06-16 Yury Gribov <y.gribov@samsung.com>
11942 * asan.c (check_func): New function.
11943 (maybe_create_ssa_name): Likewise.
11944 (build_check_stmt_with_calls): Likewise.
11945 (use_calls_p): Likewise.
11946 (report_error_func): Change interface.
11947 (build_check_stmt): Allow non-integer lengths; add support
11949 (asan_instrument): Likewise.
11950 (instrument_mem_region_access): Moved code to build_check_stmt.
11951 (instrument_derefs): Likewise.
11952 (instrument_strlen_call): Likewise.
11953 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
11954 * doc/invoke.texi: Describe new parameter.
11955 * params.def: Define new parameter.
11956 * params.h: Likewise.
11957 * sanitizer.def: Describe new builtins.
11959 2014-06-16 Richard Biener <rguenther@suse.de>
11961 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
11962 Make all defs available at the end.
11963 (eliminate): If we remove a PHI node schedule cfg-cleanup.
11965 2014-06-18 Jakub Jelinek <jakub@redhat.com>
11968 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
11970 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11973 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
11974 initialization. Replace remaining use of uid.
11976 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
11978 * c-family/c-common.c (handle_tls_model_attribute): Use
11979 set_decl_tls_model.
11980 * c-family/c-common.c (handle_tls_model_attribute): Use
11981 set_decl_tls_model.
11982 * cgraph.h (struct varpool_node): Add tls_model.
11983 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
11984 * tree.h (DECL_TLS_MODEL): Update.
11985 (DECL_THREAD_LOCAL_P): Check that variable is static.
11986 (decl_tls_model): Declare.
11987 (set_decl_tls_model): Declare.
11988 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
11989 set symbol prorperties.
11990 (get_emutls_init_templ_addr): Cleanup.
11991 (new_emutls_decl): Update.
11992 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
11993 (lto_input_varpool_node): Likewise.
11994 * lto-streamer-out.c (hash_tree): Likewise.
11995 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
11996 not stream DECL_TLS_MODEL.
11997 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
11998 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
12000 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12002 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
12004 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12006 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
12007 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
12009 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
12010 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
12011 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
12012 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
12013 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
12014 (df_get_artificial_defs, df_get_artificial_uses)
12015 (df_single_def, df_single_use): Update accordingly.
12016 (df_refs_chain_dump): Take the first element in a linked list as
12017 parameter, rather than a pointer to an array of pointers.
12018 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
12019 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
12020 (df_chain_create_bb_process_use): Likewise.
12021 (df_md_bb_local_compute_process_def): Likewise.
12022 * fwprop.c (process_defs, process_uses): Likewise.
12023 (register_active_defs, update_uses): Likewise.
12024 (forward_propagate_asm): Update for new df_ref linking.
12025 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
12026 (df_null_ref_rec, df_null_mw_rec): Likewise.
12027 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
12029 (df_scan_free_bb_info): Remove check for null artificial_defs.
12030 (df_install_ref_incremental): Adjust for new df_ref linking.
12031 Use a single-element insertion rather than a full sort.
12032 (df_ref_chain_delete_du_chain): Take the first element
12033 in a linked list as parameter, rather than a pointer to an array of
12035 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
12036 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
12037 (df_insn_info_delete): Remove check for null defs and call to
12038 df_scan_free_mws_vec.
12039 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
12040 null rather than df_null_*_rec.
12041 (df_insn_rescan_debug_internal): Likewise, and update null
12042 checks in the same way. Remove check for null defs.
12043 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
12044 Move a single element rather doing a full sort.
12045 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
12047 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
12048 Initialize df_ref and df_mw_hardreg lists to null rather than
12050 (df_ref_compare): Take df_refs as parameter, transferring the
12051 old interface to...
12052 (df_ref_ptr_compare): ...this new function.
12053 (df_sort_and_compress_refs): Update accordingly.
12054 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
12055 old interface to...
12056 (df_mw_ptr_compare): ...this new function.
12057 (df_sort_and_compress_mws): Update accordingly.
12058 (df_install_refs, df_install_mws): Return a linked list rather than
12059 an array of pointers.
12060 (df_refs_add_to_chains): Assert that old lists are empty rather
12062 (df_insn_refs_verify): Don't handle null defs speciailly.
12063 * web.c (union_match_dups): Update for new df_ref linking.
12065 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12067 * df.h (df_ref_create, df_ref_remove): Delete.
12068 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
12069 (df_ref_remove): Likewise.
12071 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12073 * df.h (df_single_def, df_single_use): New functions.
12074 * ira.c (find_moveable_pseudos): Use them.
12076 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12078 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
12079 * df-problems.c (df_note_bb_compute): Use it.
12080 * regstat.c (regstat_bb_compute_ri): Likewise.
12082 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12084 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
12085 * cse.c (cse_extended_basic_block): Use them.
12086 * dce.c (mark_artificial_use): Likewise.
12087 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
12088 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12089 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
12090 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
12091 (df_simulate_initialize_backwards): Likewise.
12092 (df_simulate_finalize_backwards): Likewise.
12093 (df_simulate_initialize_forwards): Likewise.
12094 (df_md_simulate_artificial_defs_at_top): Likewise.
12095 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12096 * regrename.c (init_rename_info): Likewise.
12097 * regstat.c (regstat_bb_compute_ri): Likewise.
12098 (regstat_bb_compute_calls_crossed): Likewise.
12100 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
12102 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
12103 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
12104 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
12105 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
12106 * combine.c (create_log_links): Likewise.
12107 * compare-elim.c (find_flags_uses_in_insn): Likewise.
12108 (try_eliminate_compare): Likewise.
12109 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
12110 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
12111 (remove_reg_equal_equiv_notes_for_defs): Likewise.
12112 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
12113 (word_dce_process_block, dce_process_block): Likewise.
12114 * ddg.c (def_has_ccmode_p): Likewise.
12115 * df-core.c (df_bb_regno_first_def_find): Likewise.
12116 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
12117 * df-problems.c (df_rd_simulate_one_insn): Likewise.
12118 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
12119 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
12120 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
12121 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
12122 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
12123 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
12124 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
12125 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
12126 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
12127 * fwprop.c (local_ref_killed_between_p): Likewise.
12128 (all_uses_available_at, free_load_extend): Likewise.
12129 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
12130 * hw-doloop.c (scan_loop): Likewise.
12131 * ifcvt.c (dead_or_predicable): Likewise.
12132 * init-regs.c (initialize_uninitialized_regs): Likewise.
12133 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
12134 (process_bb_node_lives): Likewise.
12135 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
12136 (find_moveable_pseudos): Likewise.
12137 * loop-invariant.c (check_dependencies, record_uses): Likewise.
12138 * recog.c (peep2_find_free_register): Likewise.
12139 * ree.c (get_defs): Likewise.
12140 * regstat.c (regstat_bb_compute_ri): Likewise.
12141 (regstat_bb_compute_calls_crossed): Likewise.
12142 * sched-deps.c (find_inc, find_mem): Likewise.
12143 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
12144 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
12145 * shrink-wrap.c (requires_stack_frame_p): Likewise.
12146 (prepare_shrink_wrap): Likewise.
12147 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
12148 * web.c (union_defs, pass_web::execute): Likewise.
12149 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
12150 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
12152 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
12154 * lra-assign.c (assign_by_spills): Add code to assign vector regs
12155 to inheritance pseudos.
12156 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
12158 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
12161 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
12162 (BU_MISC_2): Rename to ...
12163 (BU_LDBL128_2): ... this.
12164 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
12165 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
12166 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
12167 RS6000_BTM_LDBL128.
12168 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
12169 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
12170 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
12171 (unpacktf_1): Likewise.
12172 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
12173 (__builtin_longdouble_dw1): Likewise.
12174 * doc/sourcebuild.texi (longdouble128): Document.
12176 2014-06-13 Jeff Law <law@redhat.com>
12178 PR rtl-optimization/61094
12179 PR rtl-optimization/61446
12180 * ree.c (combine_reaching_defs): Get the mode for the copy from
12181 the extension insn rather than the defining insn.
12183 2014-06-13 Dehao Chen <dehao@google.com>
12185 * dwarf2out.c (add_linkage_name): Emit more linkage name.
12187 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
12189 * doc/install.texi (--enable-linker-plugin-configure-flags)
12190 (--enable-linker-plugin-flags): Document new flags.
12192 2014-06-13 Martin Jambor <mjambor@suse.cz>
12195 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
12196 cache_token if returning early.
12198 2014-06-13 Nick Clifton <nickc@redhat.com>
12200 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
12201 requested alignment is active.
12202 (LABEL_ALIGN): Likewise.
12203 (LOOP_ALIGN): Likewise.
12205 2014-06-13 Richard Biener <rguenther@suse.de>
12207 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12208 Rewrite to propagate the VN result into all uses where
12209 possible and to remove stmts becoming dead because of that.
12210 (eliminate): Generalize stmt removal handling, remove in
12211 reverse dominator order to support proper debug stmt
12212 generation. Update stmts before removing stmts.
12213 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
12215 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12217 PR tree-optimization/61375
12218 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
12219 symbolic number cannot be represented in an uint64_t.
12220 (find_bswap_or_nop_1): Likewise.
12222 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12224 * symtab.c (symtab_node::reset_section): New method.
12225 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
12227 * cgraph.h (reset_section): Declare.
12228 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
12229 do not consider comdat locals.
12230 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
12232 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
12233 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
12234 reset sections of symbols dragged out of the comdats.
12235 (function_and_variable_visibility): Reset sections of
12238 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
12240 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
12241 to use symtab and decl_binds_to_current_def_p
12242 * tree-vectorizer.c (increase_alignment): Increase alignment
12243 of alias target, too.
12245 2014-06-12 Jakub Jelinek <jakub@redhat.com>
12247 PR middle-end/61486
12248 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
12249 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
12250 if outer combined construct is distribute.
12251 (gimplify_omp_for): For OMP_DISTRIBUTE set
12252 gimplify_omp_ctxp->distribute.
12253 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
12254 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
12255 mapping into decl map.
12257 2014-06-12 Jason Merrill <jason@redhat.com>
12259 * common.opt (fabi-version): Change default to 0.
12261 2014-06-12 Jason Merrill <jason@redhat.com>
12263 * toplev.c (process_options): Reject -fabi-version=1.
12265 2014-06-12 Jeff Law <law@redhat.com>
12267 PR tree-optimization/61009
12268 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
12269 value when we stop processing a block due to problematic PHIs.
12271 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
12273 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
12274 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
12275 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
12276 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
12277 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
12278 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
12279 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
12280 are not in the spec.
12282 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
12285 * config/aarch64/aarch64-modes.def: Add V1DFmode.
12286 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
12289 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
12291 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
12293 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
12296 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
12297 loading from address spaces.
12299 2014-06-12 Martin Liska <mliska@suse.cz>
12302 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
12303 statement is reachable.
12305 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12307 * symtab.c (section_hash): New hash.
12308 (symtab_unregister_node): Clear section before freeing.
12309 (hash_section_hash_entry): New haser.
12310 (eq_sections): New function.
12311 (symtab_node::set_section_for_node): New method.
12312 (set_section_1): Update.
12313 (symtab_node::set_section): Take string instead of tree as parameter.
12314 (symtab_resolve_alias): Update.
12315 * cgraph.h (section_hash_entry_d): New structure.
12316 (section_hash_entry): New typedef.
12317 (cgraph_node): Change comdat_group_ to x_comdat_group,
12318 change section_ to x_section and turn into section_hash_entry;
12319 update accestors; put set_section_for_node offline.
12320 * tree.c (decl_section_name): Turn into string.
12321 (set_decl_section_name): Change parameter to be string.
12322 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
12323 * sdbout.c (sdbout_one_type): Update.
12324 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
12325 * varasm.c (IN_NAMED_SECTION, get_named_section,
12326 resolve_unique_section, hot_function_section, get_named_text_section,
12327 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
12328 make_decl_rtl, default_unique_section): Update.
12329 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
12330 (c6x_elf_unique_section): Update.
12331 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
12332 * config/pa/pa.c (pa_function_section): Update.
12333 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
12334 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
12335 * config/arc/arc.c (arc_in_small_data_p): Update.
12336 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
12337 * config/mcore/mcore.c (mcore_unique_section): Update.
12338 * config/mips/mips.c (mips16_build_function_stub): Update.
12339 (mips16_build_call_stub): Update.
12340 (mips_function_rodata_section): Update.
12341 (mips_in_small_data_p): Update.
12342 * config/score/score.c (score_in_small_data_p): Update.
12343 * config/rx/rx.c (rx_in_small_data): Update.
12344 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
12345 (rs6000_xcoff_asm_named_section): Update.
12346 (rs6000_xcoff_unique_section): Update.
12347 * config/frv/frv.c (frv_string_begins_with): Update.
12348 (frv_in_small_data_p): Update.
12349 * config/v850/v850.c (v850_encode_data_area): Update.
12350 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
12351 (bfin_handle_l1_data_attribute): Update.
12352 (bfin_handle_l2_attribute): Update.
12353 * config/mep/mep.c (mep_unique_section): Update.
12354 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
12356 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
12357 (h8300_handle_tiny_data_attribute): Update.
12358 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
12359 (m32r_in_small_data_p): Update.
12360 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
12361 * config/i386/i386.c (ix86_in_large_data_p): Update.
12362 * config/i386/winnt.c (i386_pe_unique_section): Update.
12363 * config/darwin.c (darwin_function_section): Update.
12364 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
12365 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12366 (new_emutls_decl): Update.
12367 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
12368 input_varpool_node): Update.
12369 (ead_string_cst): Turn to ...
12370 (read_string): ... this one.
12371 * dwarf2out.c (secname_for_decl): Update.
12372 * asan.c (asan_protect_global): Update.
12374 2014-06-11 DJ Delorie <dj@redhat.com>
12376 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
12378 * config/rx/rx.c (rx_option_override): Likewise.
12379 (rx_align_for_label): Likewise.
12381 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
12383 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
12385 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
12388 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12390 * common.md: New file.
12391 * doc/md.texi: Update description of generic, machine-independent
12393 * config/s390/constraints.md (e): Delete.
12394 * Makefile.in (md_file): Include common.md.
12395 * config/m32c/t-m32c (md_file): Likewise.
12396 * genpreds.c (general_mem): New array.
12397 (generic_constraint_letters): Remove constraints now defined by
12399 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12400 Allow the first character to be '<' or '>' as well.
12401 * genoutput.c (general_mem): New array.
12402 (indep_constraints): Remove constraints now defined by common.md.
12403 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
12404 Remove special handling of 'm'.
12405 * ira-costs.c (record_reg_classes): Remove special handling of
12406 constraints now defined by common.md.
12407 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12408 * ira-lives.c (single_reg_class): Likewise.
12409 (ira_implicitly_set_insn_hard_regs): Likewise.
12410 * lra-constraints.c (reg_class_from_constraints): Likewise.
12411 (process_alt_operands, process_address, curr_insn_transform): Likewise.
12412 * postreload.c (reload_cse_simplify_operands): Likewise.
12413 * reload.c (push_secondary_reload, scratch_reload_class)
12414 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12415 * reload1.c (maybe_fix_stack_asms): Likewise.
12416 * targhooks.c (default_secondary_reload): Likewise.
12417 * stmt.c (parse_output_constraint): Likewise.
12418 * recog.c (preprocess_constraints): Likewise.
12419 (constrain_operands, peep2_find_free_register): Likewise.
12420 (asm_operand_ok): Likewise, but add a comment saying why 'o'
12421 must be handled specially.
12423 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12425 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
12426 * genpreds.c (have_const_dbl_constraints): Delete.
12427 (add_constraint): Don't set it.
12428 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
12429 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
12430 constraints using the lookup_constraint logic.
12431 * ira-lives.c (single_reg_class): Likewise.
12432 * ira.c (ira_setup_alts): Likewise.
12433 * lra-constraints.c (process_alt_operands): Likewise.
12434 * recog.c (asm_operand_ok, constrain_operands): Likewise.
12435 * reload.c (find_reloads): Likewise.
12437 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12439 * genpreds.c (const_int_start, const_int_end): New variables.
12440 (choose_enum_order): Output CONST_INT constraints before memory
12442 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
12444 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
12445 * ira.c (ira_setup_alts): Likewise.
12446 * lra-constraints.c (process_alt_operands): Likewise.
12447 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12448 * reload.c (find_reloads): Likewise.
12450 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12452 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
12453 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
12454 * recog.c (preprocess_constraints): Update accordingly.
12456 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12458 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
12459 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
12460 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
12461 * genpreds.c (print_type_tree): New function.
12462 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
12463 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
12464 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
12465 Write out enum constraint_type and get_constraint_type.
12466 * lra-constraints.c (satisfies_memory_constraint_p): Take a
12467 constraint_num rather than a constraint string.
12468 (satisfies_address_constraint_p): Likewise.
12469 (reg_class_from_constraints): Avoid old constraint macros.
12470 (process_alt_operands, process_address_1): Likewise.
12471 (curr_insn_transform): Likewise.
12472 * ira-costs.c (record_reg_classes): Likewise.
12473 (record_operand_costs): Likewise.
12474 * ira-lives.c (single_reg_class): Likewise.
12475 (ira_implicitly_set_insn_hard_regs): Likewise.
12476 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12477 * postreload.c (reload_cse_simplify_operands): Likewise.
12478 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
12479 (constrain_operands, peep2_find_free_register): Likewise.
12480 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
12481 (find_reloads, alternative_allows_const_pool_ref): Likewise.
12482 * reload1.c (maybe_fix_stack_asms): Likewise.
12483 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12484 * targhooks.c (default_secondary_reload): Likewise.
12485 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
12486 to EXTRA_CONSTRAINT_STR.
12487 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
12489 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12491 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
12492 (write_constraint_satisfied_p_array): ...this new function.
12493 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
12495 (write_insn_preds_c): Update accordingly.
12497 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12499 * genpreds.c (write_lookup_constraint): Rename to...
12500 (write_lookup_constraint_1): ...this.
12501 (write_lookup_constraint_array): New function.
12502 (write_tm_preds_h): Define lookup_constraint as an inline function
12503 that uses write_lookup_constraint_array where possible.
12504 (write_insn_preds_c): Update for the changes above.
12506 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
12508 * doc/md.texi (regclass_for_constraint): Rename to...
12509 (reg_class_for_constraint): ...this.
12510 * genpreds.c (num_constraints, enum_order, register_start)
12511 (register_end, satisfied_start, memory_start, memory_end)
12512 (address_start, address_end): New variables.
12513 (add_constraint): Count the number of constraints.
12514 (choose_enum_order): New function.
12515 (write_enum_constraint_num): Iterate over enum_order.
12516 (write_regclass_for_constraint): Rename to...
12517 (write_reg_class_for_constraint_1): ...this and update output
12519 (write_constraint_satisfied_p): Rename to...
12520 (write_constraint_satisfied_p_1): ...this and update output
12521 accordingly. Do nothing if all extra constraints are register
12523 (write_insn_extra_memory_constraint): Delete.
12524 (write_insn_extra_address_constraint): Delete.
12525 (write_range_function): New function.
12526 (write_tm_preds_h): Define constraint_satisfied_p and
12527 reg_class_for_constraint as inline functions that do a range check
12528 before calling the out-of-line function. Use write_range_function
12529 to implement insn_extra_{register,memory,address}_constraint,
12530 the first of which is new.
12531 (write_insn_preds_c): Update after above changes to write_* functions.
12532 (main): Call choose_enum_order.
12534 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
12536 PR tree-optimization/61306
12537 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
12538 expression instead of its size.
12539 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
12540 false to prevent optimization when the result is unpredictable due to
12541 arithmetic right shift of signed type with highest byte is set.
12542 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
12543 (init_symbolic_number): Likewise.
12544 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
12545 when the result is unpredictable due to sign extension.
12547 2014-06-11 Terry Guo <terry.guo@arm.com>
12549 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
12550 (*thumb1_addsi3): Ditto.
12551 (*thumb_subdi3): Ditto.
12552 (thumb1_subsi3_insn): Ditto.
12553 (*thumb_mulsi3): Ditto.
12554 (*thumb_mulsi3_v6): Ditto.
12555 (*thumb1_andsi3_insn): Ditto.
12556 (thumb1_bicsi3): Ditto.
12557 (*thumb1_iorsi3_insn): Ditto.
12558 (*thumb1_xorsi3_insn): Ditto.
12559 (*thumb1_ashlsi3): Ditto.
12560 (*thumb1_ashrsi3): Ditto.
12561 (*thumb1_lshrsi3): Ditto.
12562 (*thumb1_rotrsi3): Ditto.
12563 (*thumb1_negdi2): Ditto.
12564 (*thumb1_negsi2): Ditto.
12565 (*thumb1_abssi2): Ditto.
12566 (*thumb1_neg_abssi2): Ditto.
12567 (*thumb1_one_cmplsi2): Ditto.
12568 (*thumb1_zero_extendhisi2): Ditto.
12569 (*thumb1_zero_extendqisi2): Ditto.
12570 (*thumb1_zero_extendqisi2_v6): Ditto.
12571 (thumb1_extendhisi2): Ditto.
12572 (thumb1_extendqisi2): Ditto.
12573 (*thumb1_movdi_insn): Ditto.
12574 (*thumb1_movsi_insn): Ditto.
12575 (*thumb1_movhi_insn): Ditto.
12576 (thumb_movhi_clobber): Ditto.
12577 (*thumb1_movqi_insn): Ditto.
12578 (*thumb1_movhf): Ditto.
12579 (*thumb1_movsf_insn): Ditto.
12580 (*thumb_movdf_insn): Ditto.
12581 (movmem12b): Ditto.
12583 (cbranchqi4): Ditto.
12584 (cbranchsi4_insn): Ditto.
12585 (cbranchsi4_scratch): Ditto.
12586 (*negated_cbranchsi4): Ditto.
12587 (*tbit_cbranch): Ditto.
12588 (*tlobits_cbranch): Ditto.
12589 (*tstsi3_cbranch): Ditto.
12590 (*cbranchne_decr1): Ditto.
12591 (*addsi3_cbranch): Ditto.
12592 (*addsi3_cbranch_scratch): Ditto.
12593 (*thumb_cmpdi_zero): Ditto.
12594 (cstoresi_eq0_thumb1): Ditto.
12595 (cstoresi_ne0_thumb1): Ditto.
12596 (*cstoresi_eq0_thumb1_insn): Ditto.
12597 (*cstoresi_ne0_thumb1_insn): Ditto.
12598 (cstoresi_nltu_thumb1): Ditto.
12599 (cstoresi_ltu_thumb1): Ditto.
12600 (thumb1_addsi3_addgeu): Ditto.
12601 (*thumb_jump): Ditto.
12602 (*call_reg_thumb1_v5): Ditto.
12603 (*call_reg_thumb1): Ditto.
12604 (*call_value_reg_thumb1_v5): Ditto.
12605 (*call_value_reg_thumb1): Ditto.
12606 (*call_insn): Ditto.
12607 (*call_value_insn): Ditto.
12608 (thumb1_casesi_internal_pic): Ditto.
12609 (thumb1_casesi_dispatch): Ditto.
12610 (*thumb1_indirect_jump): Ditto.
12611 (prologue_thumb1_interwork): Ditto.
12612 (*epilogue_insns): Ditto.
12613 (consttable_1): Ditto.
12614 (consttable_2): Ditto.
12615 (tablejump): Ditto.
12616 (*thumb1_tablejump): Ditto.
12617 (thumb_eh_return): Ditto.
12618 (define_peephole2): Two of them are thumb1 only and got moved into
12619 new file thumb1.md.
12620 (define_split): Six of them are thumb1 only and got moved into new
12622 * config/arm/thumb1.md: New file comprised of above thumb1 only
12625 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12627 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
12628 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
12630 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
12631 (aarch64_crc_builtin_datum): New struct.
12632 (aarch64_crc_builtin_data): New.
12633 (aarch64_init_crc32_builtins): New function.
12634 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
12635 (aarch64_crc32_expand_builtin): New.
12636 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
12637 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12638 __ARM_FEATURE_CRC32 when appropriate.
12639 (TARGET_CRC32): Define.
12640 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
12641 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
12642 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
12643 (aarch64_<crc_variant>): New pattern.
12644 * config/aarch64/arm_acle.h: New file.
12645 * config/aarch64/iterators.md (CRC): New int iterator.
12646 (crc_variant, crc_mode): New int attributes.
12647 * doc/aarch64-acle-intrinsics.texi: New file.
12648 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
12649 Include aarch64-acle-intrinsics.texi.
12651 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
12653 * tree-vect-data-refs.c (vect_grouped_store_supported): New
12654 check for stores group of length 3.
12655 (vect_permute_store_chain): New permutations for stores group of
12657 * tree-vect-stmts.c (vect_model_store_cost): Change cost
12658 of vec_perm_shuffle for the new permutations.
12660 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
12662 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
12663 table rewriting temporarily on targets not supporting ONE_ONLY.
12665 2014-06-11 Richard Biener <rguenther@suse.de>
12667 PR middle-end/61437
12669 2014-06-04 Richard Biener <rguenther@suse.de>
12671 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
12672 TREE_PUBLIC and DECL_EXTERNAL decls.
12674 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12676 * varasm.c (set_implicit_section): New function.
12677 (resolve_unique_section): Use it to set implicit section
12679 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
12680 (default_function_section): Likewise.
12681 (decl_binds_to_current_def_p): Constify argument.
12682 * varasm.h (decl_binds_to_current_def_p): Update prototype.
12683 * asan.c (asan_protect_global): Use
12684 symtab_get_node (decl)->implicit_section.
12685 * symtab.c (dump_symtab_base): Dump implicit sections.
12686 (verify_symtab_base): Verify sanity of sectoins and comdats.
12687 (symtab_resolve_alias): Alias share the section of its target.
12688 (set_section_1): New function.
12689 (symtab_node::set_section): Move here, recurse to aliases.
12690 (verify_symtab): Check for duplicated symtab lists.
12691 * tree-core.h (implicit_section_name_p): Remove.
12692 * tree-vect-data-refs.c: Include varasm.h.
12693 (vect_can_force_dr_alignment_p): Fix conditional on when
12694 decl bints to current definition; use
12695 symtab_get_node (decl)->implicit_section.
12696 * cgraph.c (cgraph_make_node_local_1): Fix section set.
12697 * cgraph.h (struct symtab_node): Add implicit_section.
12698 (set_section): Rename to ...
12699 (set_section_for_node): ... this one.
12700 (set_section): Declare.
12701 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
12702 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12703 input_overwrite_node, input_varpool_node): Stream implicit_section.
12704 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
12705 removal; it will fail in LTO.
12707 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12709 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
12710 Change second alternative type to f_mcr.
12711 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
12712 and 12th alternatives' types to f_mcr and f_mrc.
12713 (*movdi_aarch64): Same for 12th and 13th alternatives.
12714 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
12715 (aarch64_movtilow_tilow): Change type to fmov.
12717 2014-06-10 Jiong Wang <jiong.wang@arm.com>
12719 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
12720 (aarch64_save_or_restore_callee_save_registers): Fix layout.
12722 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12724 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
12726 (aarch64_sqrdmulh_lane<mode>): Likewise.
12727 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12728 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12729 (aarch64_sqdmulh_laneq<mode>): New expander.
12730 (aarch64_sqrdmulh_laneq<mode>): Likewise.
12731 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
12732 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
12733 (aarch64_sqdmulh_lane<mode>): New expander.
12734 (aarch64_sqrdmulh_lane<mode>): Likewise.
12735 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
12736 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
12737 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
12738 (aarch64_sqdmlal_laneq<mode>): Likewise.
12739 (aarch64_sqdmlsl_lane<mode>): Likewise.
12740 (aarch64_sqdmlsl_laneq<mode>): Likewise.
12741 (aarch64_sqdmlal2_lane<mode>): Likewise.
12742 (aarch64_sqdmlal2_laneq<mode>): Likewise.
12743 (aarch64_sqdmlsl2_lane<mode>): Likewise.
12744 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
12745 (aarch64_sqdmull_lane<mode>): Likewise.
12746 (aarch64_sqdmull_laneq<mode>): Likewise.
12747 (aarch64_sqdmull2_lane<mode>): Likewise.
12748 (aarch64_sqdmull2_laneq<mode>): Likewise.
12750 2014-06-10 Richard Biener <rguenther@suse.de>
12752 PR tree-optimization/61438
12753 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
12754 (eliminate_dom_walker::before_dom_children): Only try to inhibit
12755 insertion of IVs if running PRE.
12756 (eliminate): Adjust.
12757 (pass_pre::execute): Likewise.
12758 (pass_fre::execute): Likewise.
12760 2014-06-10 Richard Biener <rguenther@suse.de>
12762 PR middle-end/61456
12763 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
12764 Do not use the main variant for the type comparison.
12765 (ncr_compar): Likewise.
12766 (nonoverlapping_component_refs_p): Likewise.
12768 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
12770 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
12771 REG_CFA_RESTORE mode.
12773 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
12775 * config/i386/i386.c (expand_vec_perm_pblendv): New.
12776 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
12777 expand_vec_perm_pblendv.
12779 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12781 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
12783 Simplify description of __crc32d and __crc32cd intrinsics.
12784 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
12787 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
12790 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
12791 * config.in: Regenerate.
12792 * configure: Likewise.
12794 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
12796 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
12798 (intersect_static_var_sets): Remove.
12799 (propagate): Do not prune local statics.
12801 2014-06-10 Jakub Jelinek <jakub@redhat.com>
12804 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
12805 Set lastprivate_firstprivate even if omp_private_outer_ref
12806 langhook returns true.
12807 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
12808 langhook, call unshare_expr on new_var and call
12809 build_outer_var_ref to get the last argument.
12811 2014-06-10 Marek Polacek <polacek@redhat.com>
12814 * doc/extend.texi: Add cindex for transparent_union.
12816 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
12818 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
12819 init_symbolic_number ().
12821 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
12823 PR middle-end/61141
12824 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
12825 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
12826 (verify_rtl_sharing): Likewise.
12828 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
12831 * tree.c (build_qualified_type): Use a canonical type for
12834 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12836 * config/arm/arm-modes.def: Remove XFmode.
12838 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
12841 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
12842 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
12843 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
12844 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
12845 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
12846 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
12847 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
12848 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
12849 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
12851 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
12853 * tree-core.h (tree_decl_with_vis): Remove section_name.
12855 2014-06-09 Kito Cheng <kito@0xlab.org>
12857 * ira.c (ira): Don't call init_caller_save if LRA enabled
12858 since LRA use its own infrastructure to handle that.
12860 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12862 * symtab.c (dump_symtab_base): Update dumping.
12863 (symtab_make_decl_local): Clear only DECL_COMDAT.
12864 * tree-vect-data-refs.c (Check that variable is static before
12865 tampering with sections.
12866 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
12867 (cgraph_create_virtual_clone): Likewise.
12868 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
12869 (decl_section_name, set_decl_section_name): New accessors.
12870 (find_decls_types_r): Do not walk section name
12871 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
12872 (decl_comdat_group, decl_comdat_group_id): Constify.
12873 (decl_section_name, set_decl_section_name): Update.
12874 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
12875 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
12876 (cgraph_make_node_local_1): Clear section and comdat group.
12877 * cgraph.h (set_comdat_group): Sanity check.
12878 (get_section, set_section): New.
12879 * ipa-comdats.c (ipa_comdats): Use get_section.
12880 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
12881 * lto-streamer-out.c: Do not follow section names.
12882 * c-family/c-common.c (handle_section_attribute): Update.
12883 * lto-cgraph.c (lto_output_node): Output section.
12884 (lto_output_varpool_node): Likewise.
12885 (read_comdat_group): Rename to ...
12886 (read_identifier): ... this one.
12887 (read_string_cst): New function.
12888 (input_node, input_varpool_node): Input section names.
12889 * tree-emutls.c (get_emutls_init_templ_addr): Update.
12890 (new_emutls_decl): Update.
12891 (secname_for_decl): Check section names only of static vars.
12892 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
12893 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
12894 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
12895 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
12896 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
12897 * config/mcore/mcore.c (mcore_unique_section): Likewise.
12898 * config/mips/mips.c (mips16_build_function_stub): Likewise.
12899 * config/v850/v850.c (v850_insert_attributes): Likewise.
12900 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
12902 (h8300_handle_tiny_data_attribute): Likewise.
12903 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
12904 (bfin_handle_l2_attribute): Likewise.
12906 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12908 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
12909 remove static initializer.
12911 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12913 * varasm.c (use_blocks_for_decl_p): Check symbol table
12914 instead of alias attribute.
12915 (place_block_symbol): Recurse on aliases.
12917 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12919 * ipa-visibility.c: Include varasm.h
12920 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
12922 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
12924 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
12925 outputting aliases.
12927 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
12929 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
12930 from test_insn into GGC space escape via SET_SRC.
12932 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
12934 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
12935 call statement, if any.
12936 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
12937 statements, if any. Tidy up.
12939 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12942 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
12943 iterators, VSX_D that handles 64-bit types, and VSX_LE that
12944 handles swapping the two 64-bit double words on little endian
12945 systems. Include V1TImode and optionally TImode in VSX_LE so that
12946 these types are properly swapped. Change all of the insns and
12947 splits that do the 64-bit swaps to use VSX_LE.
12948 (vsx_le_perm_load_<mode>): Likewise.
12949 (vsx_le_perm_store_<mode>): Likewise.
12950 (splitters for little endian memory operations): Likewise.
12951 (vsx_xxpermdi2_le_<mode>): Likewise.
12952 (vsx_lxvd2x2_le_<mode>): Likewise.
12953 (vsx_stxvd2x2_le_<mode>): Likewise.
12955 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
12958 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
12959 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
12960 and corresponding splitters. Zero extend general register
12961 or memory input operand to XMM temporary. Enable for
12962 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
12963 (floatunssi<mode>2): Update expander predicate.
12965 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
12967 PR rtl-optimization/61325
12968 * lra-constraints.c (process_address_1): Check scale equal to one
12969 to prevent transformation: base + scale * index => base + new_reg.
12971 2014-06-06 Richard Biener <rguenther@suse.de>
12973 PR tree-optimization/59299
12974 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
12976 (nearest_common_dominator_of_uses): Likewise.
12977 (statement_sink_location): Adjust. Support sinking loads.
12979 2014-06-06 Martin Jambor <mjambor@suse.cz>
12981 * ipa-prop.c (get_place_in_agg_contents_list): New function.
12982 (build_agg_jump_func_from_list): Likewise.
12983 (determine_known_aggregate_parts): Renamed to
12984 determine_locally_known_aggregate_parts. Moved some functionality
12985 to the two functions above, removed bound checks.
12987 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
12989 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
12990 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
12991 (aarch64_progress_pointer): Likewise.
12992 (aarch64_copy_one_part_and_move_pointers): Likewise.
12993 (aarch64_expand_movmen): Likewise.
12994 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
12995 * config/aarch64/aarch64.md (movmem<mode>): New.
12997 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
12999 * targhooks.c (default_add_stmt_cost): Call target specific
13000 hook instead of default one.
13002 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
13004 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
13005 endianness instead of host endianness.
13006 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
13009 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13012 * function.c (instantiate_decls): Process the saved static chain.
13013 (expand_function_start): If not optimizing, save the static chain
13015 * tree-nested.c (convert_all_function_calls): Always create the static
13016 chain for nested functions if not optimizing.
13018 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13020 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
13022 2014-06-06 Richard Biener <rguenther@suse.de>
13024 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
13025 (construct_init_block): Likewise.
13026 (construct_exit_block): Likewise.
13027 (pass_expand::execute): Likewise.
13028 * graphite.c (graphite_transforms): Replace check for current_loops
13029 with a check for > 1 loops.
13030 (pass_graphite_transforms::execute): Adjust.
13031 * ipa-split.c (split_function): Remove check for current_loops.
13032 * omp-low.c (expand_parallel_call): Likewise.
13033 (expand_omp_for_init_counts): Likewise.
13034 (extract_omp_for_update_vars): Likewise.
13035 (expand_omp_for_generic): Likewise.
13036 (expand_omp_sections): Likewise.
13037 (expand_omp_target): Likewise.
13038 * tracer.c (tail_duplicate): Likewise.
13039 (pass_tracer::execute): Likewise.
13040 * trans-mem.c (expand_transaction): Likewise.
13041 * tree-complex.c (expand_complex_div_wide): Likewise.
13042 * tree-eh.c (lower_resx): Likewise.
13043 (cleanup_empty_eh_merge_phis): Likewise.
13044 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
13045 current_loops with a check for > 1 loops.
13046 (pass_predcom::execute): Adjust.
13047 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
13048 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
13049 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
13050 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
13051 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13052 * tree-switch-conversion.c (process_switch): Likewise.
13053 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13054 * tree-vrp.c (vrp_visit_phi_node): Likewise.
13055 (execute_vrp): Likewise.
13056 * ubsan.c (ubsan_expand_null_ifn): Likewise.
13058 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
13060 * rtl.h (insn_location): Declare.
13061 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
13062 with UNKNOWN_LOCATION.
13063 * emit-rtl.c (insn_location): New function.
13064 * final.c (notice_source_line): Check that the instruction has a
13065 location before retrieving it and use insn_location.
13066 * modulo-sched.c (loop_single_full_bb_p): Likewise.
13067 * print-rtl.c (print_rtx): Likewise.
13069 2014-06-06 Richard Biener <rguenther@suse.de>
13071 * passes.def: Move 2nd VRP pass before phi-only-cprop.
13073 2014-06-06 Christian Bruel <christian.bruel@st.com>
13075 PR tree-optimization/43934
13076 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
13079 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
13081 * ira-lives.c (single_reg_class): Add missing break. Explicitly
13082 return NO_REGS for extra address and memory constraints. Handle
13083 operands that match (or are equivalent to something that matches)
13084 extra constant constraints. Ignore other non-register operands.
13086 2014-06-06 Alan Modra <amodra@gmail.com>
13089 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
13090 * doc/tm.texi: Regenerate.
13091 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
13092 Use throughout in place of REG_PARM_STACK_SPACE.
13093 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
13094 "incoming" param. Pass to rs6000_function_parms_need_stack.
13095 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
13096 prototype_p when incoming. Use function decl when incoming
13097 to handle K&R style functions.
13098 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
13099 (INCOMING_REG_PARM_STACK_SPACE): Define.
13101 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13104 * cfgexpand.c (expand_debug_expr): Use address space of nested
13105 TREE_TYPE for ADDR_EXPR and MEM_REF.
13107 2014-06-05 Jeff Law <law@redhat.com>
13109 PR tree-optimization/61289
13110 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
13111 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
13112 looking for those which match LHS. All callers changed.
13113 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
13114 parameters and code which manipulated them. All callers changed.
13115 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
13116 and DST_MAP parameters. Simplify invalidation code by just calling
13117 invalidate_equivalences. All callers changed.
13118 (thread_across_edge): Simplify now that we don't need to maintain
13119 the map of equivalences to invalidate.
13121 2014-06-05 Kai Tietz <ktietz@redhat.com>
13122 Richard Henderson <rth@redhat.com>
13125 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
13126 checking for !TARGET_X32.
13127 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
13128 (sibcall_intern): New define_insn, plus required peepholes.
13129 (sibcall_pop_intern): Likewise.
13130 (sibcall_value_intern): Likewise.
13131 (sibcall_value_pop_intern): Likewise.
13133 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
13135 * tree-inline.c (tree_function_versioning): Check DF info existence
13136 before accessing it.
13138 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13140 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
13142 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
13143 aarch64_frame hard_fp_offset and frame_size.
13144 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
13145 frame_size; remove original_frame_size.
13146 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
13147 (aarch64_initial_elimination_offset): Remove frame_size and
13148 offset. Use aarch64_frame frame_size.
13150 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13151 Jiong Wang <jiong.wang@arm.com>
13152 Renlin <renlin.li@arm.com>
13154 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
13155 initialization of R30 offset. Update offset. Iterate core
13156 regisers upto X30. Remove X29, X30 specific code.
13158 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13159 Jiong Wang <jiong.wang@arm.com>
13161 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
13162 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
13163 (aarch64_register_saved_on_entry): Adjust test.
13165 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13167 * config/aarch64/aarch64.h (machine_function): Move
13168 saved_varargs_size from here...
13169 (aarch64_frame): ... to here.
13171 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13172 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
13173 (aarch64_initial_elimination_offset)
13174 (aarch64_setup_incoming_varargs): Adjust location of
13175 saved_varargs_size.
13177 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
13179 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
13182 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
13183 Prachi Godbole <Prachi.Godbole@imgtec.com>
13185 * config/mips/mips-cpus.def: Add definition for p5600. Updated
13186 mips32r5 entry to use PROCESSOR_P5600.
13187 * config/mips/mips-tables.opt: Regenerate.
13188 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
13189 * config/mips/mips.c (mips_fmadd_bypass): New function.
13190 (mips_rtx_cost_data): Add costs for p5600.
13191 (mips_issue_rate): Add support for p5600.
13192 (mips_multipass_dfa_lookahead): Likewise.
13193 * config/mips/mips.h (TUNE_P5600): New define.
13194 (TUNE_MACC_CHAINS): Add TUNE_P5600.
13195 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
13196 * config/mips/mips.md: Include p5600.md.
13197 (processor): Add p5600.
13198 * config/mips/p5600.md: New file.
13200 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
13202 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
13203 * config/i386/predicates.md (palignr_operand): New.
13204 Indicates if permutation is suitable for palignr instruction.
13206 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
13208 PR tree-optimization/61319
13209 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
13210 stmt belongs to loop.
13212 2014-06-05 Richard Biener <rguenther@suse.de>
13214 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
13215 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
13216 (lookup_tmp_var): Adjust.
13217 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
13219 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13221 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
13223 2014-06-05 Marek Polacek <polacek@redhat.com>
13226 * doc/invoke.texi: Document -Wlogical-not-parentheses.
13228 2014-06-04 Tom de Vries <tom@codesourcery.com>
13230 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
13233 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
13235 PR tree-optimization/61385
13236 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
13238 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
13240 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
13241 changed to use fatal_error.
13242 (main): Ensure lto_wrapper_cleanup is run atexit.
13244 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13246 * lra-constraints.c (valid_address_p): Move earlier in file.
13247 (address_eliminator): New structure.
13248 (satisfies_memory_constraint_p): New function.
13249 (satisfies_address_constraint_p): Likewise.
13250 (process_alt_operands, process_address, curr_insn_transform): Use them.
13252 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13254 * lra-int.h (lra_static_insn_data): Make operand_alternative a
13256 (target_lra_int, default_target_lra_int, this_target_lra_int)
13257 (op_alt_data): Delete.
13258 * lra.h (lra_init): Delete.
13259 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
13260 (init_insn_code_data_once): Remove op_alt_data handling.
13261 (finish_insn_code_data_once): Likewise.
13262 (init_op_alt_data): Delete.
13263 (get_static_insn_data): Initialize operand_alternative to null.
13264 (free_insn_recog_data): Cast operand_alternative before freeing it.
13265 (setup_operand_alternative): Take the operand_alternative as
13266 parameter and assume it isn't already cached in the static
13268 (lra_set_insn_recog_data): Update accordingly.
13269 (lra_init): Delete.
13270 * ira.c (ira_init): Don't call lra_init.
13271 * target-globals.h (this_target_lra_int): Declare.
13272 (target_globals): Remove lra_int.
13273 (restore_target_globals): Update accordingly.
13274 * target-globals.c: Don't include lra-int.h.
13275 (default_target_globals, save_target_globals): Remove lra_int.
13277 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13279 * recog.h (operand_alternative): Convert reg_class, reject,
13280 matched and matches into bitfields.
13281 (preprocess_constraints): New overload.
13282 (preprocess_insn_constraints): New function.
13283 (preprocess_constraints): Take the insn as parameter.
13284 (recog_op_alt): Change into a pointer.
13285 (target_recog): Add x_op_alt.
13286 * recog.c (asm_op_alt): New variable.
13287 (recog_op_alt): Change into a pointer.
13288 (preprocess_constraints): New overload, replacing the old function
13289 definition with one that doesn't use global state.
13290 (preprocess_insn_constraints): New function.
13291 (preprocess_constraints): Use them. Take the insn as parameter.
13292 Use asm_op_alt for asms.
13293 (recog_init): Free existing x_op_alt entries.
13294 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
13296 (make_early_clobber_and_input_conflicts): Likewise.
13297 (process_bb_node_lives): Pass the insn to process_constraints.
13298 * reg-stack.c (check_asm_stack_operands): Likewise.
13299 (subst_asm_stack_regs): Likewise.
13300 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13301 * regrename.c (build_def_use): Likewise.
13302 * sched-deps.c (sched_analyze_insn): Likewise.
13303 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
13304 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
13305 (note_invalid_constants): Likewise.
13306 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13307 (ix86_legitimate_combined_insn): Make operand_alternative pointer
13310 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13312 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
13313 * ira-lives.c (check_and_make_def_conflict): Check for disabled
13315 (make_early_clobber_and_input_conflicts): Likewise.
13316 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13318 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13320 * recog.h (alternative_class): New function.
13321 (which_op_alt): Return a const recog_op_alt.
13322 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
13323 (subst_asm_stack_regs): Likewise.
13324 * config/arm/arm.c (note_invalid_constants): Likewise.
13325 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
13326 the operand_alternative; use alternative class instead.
13327 * sel-sched.c (get_reg_class): Likewise.
13328 * regrename.c (build_def_use): Likewise.
13329 (hide_operands, restore_operands, record_out_operands): Update type
13332 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
13334 * recog.h (recog_op_alt): Convert to a flat array.
13335 (which_op_alt): New function.
13336 * recog.c (recog_op_alt): Convert to a flat array.
13337 (preprocess_constraints): Update accordingly, grouping all
13338 operands of the same alternative together, rather than the
13340 * ira-lives.c (check_and_make_def_conflict): Likewise.
13341 (make_early_clobber_and_input_conflicts): Likewise.
13342 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
13343 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
13344 (subst_asm_stack_regs): Likewise.
13345 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
13346 * regrename.c (hide_operands, record_out_operands): Likewise.
13347 (build_def_use): Likewise.
13348 * sel-sched.c (get_reg_class): Likewise.
13349 * config/arm/arm.c (note_invalid_constants): Likewise.
13351 2014-06-04 Jason Merrill <jason@redhat.com>
13355 * gimplify.c (gimplify_arg): Non-static.
13356 * gimplify.h: Declare it.
13358 2014-06-04 Richard Biener <rguenther@suse.de>
13360 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
13361 TREE_PUBLIC and DECL_EXTERNAL decls.
13363 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
13365 * regcprop.c (copyprop_hardreg_forward_1): Account for
13366 HARD_REGNO_CALL_PART_CLOBBERED.
13368 2014-06-04 Richard Biener <rguenther@suse.de>
13370 * configure.ac: Check whether the underlying type of int64_t
13371 is long or long long.
13372 * configure: Regenerate.
13373 * config.in: Likewise.
13374 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
13375 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
13377 2014-06-04 Richard Biener <rguenther@suse.de>
13379 PR tree-optimization/60098
13380 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
13382 (dse_optimize_stmt): Simplify, now that we found a kill
13385 2014-06-04 Richard Biener <rguenther@suse.de>
13387 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
13388 of accesses with non-invariant address.
13390 2014-06-04 Martin Liska <mliska@suse.cz>
13392 * cgraph.h (cgraph_make_wrapper): New function introduced.
13393 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
13394 * ipa-inline.h (inline_analyze_function): The function is global.
13395 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
13397 2014-06-04 Martin Liska <mliska@suse.cz>
13399 * tree.h (private_lookup_attribute_starting): New function.
13400 (lookup_attribute_starting): Likewise.
13401 * tree.c (private_lookup_attribute_starting): Likewise.
13403 2014-06-04 Martin Liska <mliska@suse.cz>
13405 * cgraph.h (expand_thunk): New argument added.
13406 (address_taken_from_non_vtable_p): New global function.
13407 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
13408 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
13409 * cgraphunit.c (analyze_function): Likewise.
13410 (assemble_thunks_and_aliases): Argument added to call.
13411 (expand_thunk): New argument forces to produce GIMPLE thunk.
13413 2014-06-04 Martin Liska <mliska@suse.cz>
13415 * coverage.h (coverage_compute_cfg_checksum): Argument added.
13416 * coverage.c (coverage_compute_cfg_checksum): Likewise.
13417 * profile.c (branch_prob): Likewise.
13419 2014-06-04 Martin Jambor <mjambor@suse.cz>
13422 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
13423 handler for switch on an ipa_ref_use enum.
13424 * ipa-reference.c (analyze_function): Likewise.
13426 2014-06-04 Kai Tietz <ktietz@redhat.com>
13428 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
13429 from old call-instruction.
13431 2014-06-04 Bin Cheng <bin.cheng@arm.com>
13433 * config/aarch64/aarch64.c (aarch64_classify_address)
13434 (aarch64_legitimize_reload_address): Support full addressing modes
13436 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
13437 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
13439 2014-06-03 Andrew Pinski <apinski@cavium.com>
13441 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
13444 2014-06-03 Andrew Pinski <apinski@cavium.com>
13446 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
13447 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
13449 2014-06-03 Kai Tietz <ktietz@redhat.com>
13451 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
13454 2014-06-03 Dehao Chen <dehao@google.com>
13456 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
13459 2014-06-03 Marek Polacek <polacek@redhat.com>
13462 * doc/invoke.texi: Document -Wswitch-bool.
13463 * function.c (stack_protect_epilogue): Cast controlling expression of
13465 * gengtype.c (walk_type): Generate switch expression with its
13466 controlling expression cast to int.
13468 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
13470 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
13472 * config/avr/avr-tables.opt: Regenerate.
13473 * config/avr/t-multilib: Regenerate.
13474 * doc/avr-mmcu.texi: Regenerate.
13476 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
13477 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13479 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
13480 (ata6617c, ata664251): Add new avr35 devices.
13481 (ata6612c): Add new avr4 device.
13482 (ata6613c, ata6614q): Add new avr5 devices.
13483 * config/avr/avr-tables.opt: Regenerate.
13484 * config/avr/t-multilib: Regenerate.
13485 * doc/avr-mmcu.texi: Regenerate.
13487 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13489 * gcc/config/aarch64/aarch64-builtins.c
13490 (aarch64_types_binop_ssu_qualifiers): New static data.
13491 (TYPES_BINOP_SSU): Define.
13492 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
13493 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
13494 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
13495 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
13496 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
13497 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
13498 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
13499 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
13500 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
13501 suffix to builtin function name, remove cast.
13502 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
13503 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
13504 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
13506 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13508 * gcc/config/aarch64/aarch64-builtins.c
13509 (aarch64_types_binop_uus_qualifiers,
13510 aarch64_types_shift_to_unsigned_qualifiers,
13511 aarch64_types_unsigned_shiftacc_qualifiers): Define.
13512 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
13513 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
13514 sqshlu_n, uqshl_n): Update qualifiers.
13515 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
13516 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
13517 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
13518 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
13519 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
13520 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
13521 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
13522 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
13523 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
13524 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
13525 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
13526 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
13527 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
13528 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
13529 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
13530 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
13531 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
13532 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
13533 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
13534 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
13535 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
13536 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
13537 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
13538 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
13539 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
13540 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
13541 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
13543 2014-06-03 Teresa Johnson <tejohnson@google.com>
13545 * tree-sra.c (modify_function): Record caller nodes after rebuild.
13547 2014-06-02 Jason Merrill <jason@redhat.com>
13550 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
13552 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13554 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
13557 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
13559 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
13561 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
13562 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
13563 * config/aarch64/iterators.md (REVERSE): New iterator.
13564 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
13565 (rev_op): New int_attribute.
13566 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
13567 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
13568 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
13569 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
13570 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
13571 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
13572 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
13573 Replace temporary __asm__ with __builtin_shuffle.
13575 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13577 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
13579 * config/mips/mips-tables.opt: Regenerate.
13580 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
13581 to use mips_isa_rev rather than ISA_MIPS32R2.
13582 * config/mips/mips.h (ISA_MIPS32R3): New define.
13583 (ISA_MIPS32R5): New define.
13584 (ISA_MIPS64R3): New define.
13585 (ISA_MIPS64R5): New define.
13586 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
13587 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
13588 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
13590 (MIPS_ISA_SYNCI_SPEC): Likewise.
13591 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
13592 (LINK_SPEC): Added mips32r3 and mips32r5.
13593 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
13594 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
13595 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
13596 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
13597 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
13598 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
13599 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
13601 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
13603 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
13605 * config/mips/mips.opt (mxpa): New option.
13606 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
13609 2014-06-03 Martin Jambor <mjambor@suse.cz>
13612 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
13615 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
13617 PR tree-optimization/61328
13618 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
13619 initialization from find_bswap_or_nop_1.
13620 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
13621 in source_expr2 before using the size value the function sets. Also
13622 make use of init_symbolic_number () in both the old place and
13623 find_bswap_or_nop_load () to avoid reading uninitialized memory when
13624 doing recursion in the GIMPLE_BINARY_RHS case.
13626 2014-06-03 Richard Biener <rguenther@suse.de>
13628 PR tree-optimization/61383
13629 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
13632 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
13634 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
13635 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
13636 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
13637 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
13639 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
13640 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
13641 * system.h: ...here and make it unconditional.
13642 * target.def (conditional_register_usage): Mention
13643 define_register_constraint instead of old-style constraint macros.
13644 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
13645 * doc/tm.texi: Regenerate.
13646 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
13647 protected by !USE_MD_CONSTRAINTS.
13648 * config/frv/frv.md: Remove quote from old version of documentation.
13649 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
13650 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
13651 CONST_DOUBLE_OK_FOR_LETTER.
13652 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
13654 2014-06-02 Andrew Pinski <apinski@cavium.com>
13656 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
13657 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
13658 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
13659 file whose name depends on -mabi= and -mbig-endian.
13660 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
13661 Handle LP64 better and handle ilp32 too.
13662 (MULTILIB_OPTIONS): Delete.
13663 (MULTILIB_DIRNAMES): Delete.
13665 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
13667 * expr.h: Remove prototypes of functions defined in builtins.c.
13668 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
13669 Remove prototypes of functions defined in builtins.c.
13670 * builtins.h: Update prototype list to include all exported functions.
13671 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
13672 no_c99_libc_has_function): Move to targhooks.c
13673 (build_string_literal, build_call_expr_loc_array,
13674 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
13676 (expand_builtin_object_size, fold_builtin_object_size): Make static.
13677 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
13678 no_c99_libc_has_function): Relocate from builtins.c.
13679 * tree.c: Include builtins.h.
13680 (build_call_expr_loc_array, build_call_expr_loc_vec,
13681 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
13683 * fold-const.h (fold_fma): Move prototype to builtins.h.
13684 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
13685 * asan.c: Include builtins.h.
13686 * cfgexpand.c: Likewise.
13687 * convert.c: Likewise.
13688 * emit-rtl.c: Likewise.
13689 * except.c: Likewise.
13690 * expr.c: Likewise.
13691 * fold-const.c: Likewise.
13692 * gimple-fold.c: Likewise.
13693 * gimple-ssa-strength-reduction.c: Likewise.
13694 * gimplify.c: Likewise.
13695 * ipa-inline.c: Likewise.
13696 * ipa-prop.c: Likewise.
13697 * lto-streamer-out.c: Likewise.
13698 * stmt.c: Likewise.
13699 * tree-inline.c: Likewise.
13700 * tree-object-size.c: Likewise.
13701 * tree-sra.c: Likewise.
13702 * tree-ssa-ccp.c: Likewise.
13703 * tree-ssa-forwprop.c: Likewise.
13704 * tree-ssa-loop-ivcanon.c: Likewise.
13705 * tree-ssa-loop-ivopts.c: Likewise.
13706 * tree-ssa-math-opts.c: Likewise.
13707 * tree-ssa-reassoc.c: Likewise.
13708 * tree-ssa-threadedge.c: Likewise.
13709 * tree-streamer-in.c: Likewise.
13710 * tree-vect-data-refs.c: Likewise.
13711 * tree-vect-patterns.c: Likewise.
13712 * tree-vect-stmts.c: Likewise.
13713 * config/aarch64/aarch64.c: Likewise.
13714 * config/alpha/alpha.c: Likewise.
13715 * config/arc/arc.c: Likewise.
13716 * config/arm/arm.c: Likewise.
13717 * config/avr/avr.c: Likewise.
13718 * config/bfin/bfin.c: Likewise.
13719 * config/c6x/c6x.c: Likewise.
13720 * config/cr16/cr16.c: Likewise.
13721 * config/cris/cris.c: Likewise.
13722 * config/epiphany/epiphany.c: Likewise.
13723 * config/fr30/fr30.c: Likewise.
13724 * config/frv/frv.c: Likewise.
13725 * config/h8300/h8300.c: Likewise.
13726 * config/i386/i386.c: Likewise.
13727 * config/i386/winnt.c: Likewise.
13728 * config/ia64/ia64.c: Likewise.
13729 * config/iq2000/iq2000.c: Likewise.
13730 * config/lm32/lm32.c: Likewise.
13731 * config/m32c/m32c.c: Likewise.
13732 * config/m32r/m32r.c: Likewise.
13733 * config/m68k/m68k.c: Likewise.
13734 * config/mcore/mcore.c: Likewise.
13735 * config/mep/mep.c: Likewise.
13736 * config/microblaze/microblaze.c: Likewise.
13737 * config/mips/mips.c: Likewise.
13738 * config/mmix/mmix.c: Likewise.
13739 * config/mn10300/mn10300.c: Likewise.
13740 * config/moxie/moxie.c: Likewise.
13741 * config/msp430/msp430.c: Likewise.
13742 * config/nds32/nds32.c: Likewise.
13743 * config/pa/pa.c: Likewise.
13744 * config/pdp11/pdp11.c: Likewise.
13745 * config/picochip/picochip.c: Likewise.
13746 * config/rl78/rl78.c: Likewise.
13747 * config/rs6000/rs6000.c: Likewise.
13748 * config/rx/rx.c: Likewise.
13749 * config/s390/s390.c: Likewise.
13750 * config/score/score.c: Likewise.
13751 * config/sh/sh.c: Likewise.
13752 * config/sparc/sparc.c: Likewise.
13753 * config/spu/spu.c: Likewise.
13754 * config/stormy16/stormy16.c: Likewise.
13755 * config/tilegx/tilegx.c: Likewise.
13756 * config/tilepro/tilepro.c: Likewise.
13757 * config/v850/v850.c: Likewise.
13758 * config/vax/vax.c: Likewise.
13759 * config/xtensa/xtensa.c: Likewise.
13761 2014-06-02 Jeff Law <law@redhat.com>
13763 PR rtl-optimization/61094
13764 * ree.c (combine_reaching_defs): Do not reextend an insn if it
13765 was marked as do_no_reextend. If a copy is needed to eliminate
13766 an extension, then mark it as do_not_reextend.
13768 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
13770 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
13772 2014-06-02 Richard Henderson <rth@redhat.com>
13775 * config/alpha/alpha.c (print_operand_address): Allow symbolic
13776 addresses inside asms. Use output_operand_lossage instead of
13779 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
13782 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
13783 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
13785 2014-06-02 Tom de Vries <tom@codesourcery.com>
13787 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
13788 case that x has VOIDmode.
13790 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
13792 * varasm.c (copy_constant): Delete function.
13793 (build_constant_desc): Don't call it.
13795 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13798 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
13799 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
13800 with immediate_operand.
13802 2014-06-02 Andreas Schwab <schwab@suse.de>
13804 * config/ia64/ia64.c
13805 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
13806 pending_data_specs first.
13808 2014-06-02 Richard Biener <rguenther@suse.de>
13810 PR tree-optimization/61378
13811 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
13812 valueized_anything.
13814 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
13816 * config/i386/constraints.md (Bw): Rename from 'w'.
13817 (Bz): Rename from 'z'.
13818 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
13820 2014-06-01 Kai Tietz <ktietz@redhat.com>
13823 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
13824 * config/i386/i386.md (sibcall_insn_operand): Use Bs
13825 instead of m constraint.
13827 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
13829 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
13830 a separate alternative where the scratch operand 2 is marked as
13833 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
13835 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13836 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
13837 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
13838 and __builtins_arm_get_fpscr.
13839 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
13840 __builtins_arm_get_fpscr.
13841 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
13842 __builtins_arm_ldfpscr.
13843 (arm_atomic_assign_expand_fenv): New function.
13844 * config/arm/vfp.md (set_fpscr): New pattern.
13845 (get_fpscr) : Likewise.
13846 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
13848 * doc/extend.texi (AARCH64 Built-in Functions) : Document
13849 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
13851 2014-05-30 Jakub Jelinek <jakub@redhat.com>
13853 * asan.c (report_error_func): Add SLOW_P argument, use
13854 BUILT_IN_ASAN_*_N if set.
13855 (build_check_stmt): Likewise.
13856 (instrument_derefs): If T has insufficient alignment,
13857 force same handling as for odd sizes.
13859 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
13860 BUILT_IN_ASAN_REPORT_STORE_N): New.
13861 * asan.c (struct asan_mem_ref): Change access_size type to
13863 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
13864 update_mem_ref_hash_table): Likewise.
13865 (asan_mem_ref_hasher::hash): Hash in a HWI.
13866 (report_error_func): Change size_in_bytes argument to HWI.
13867 Use *_N builtins if size_in_bytes is larger than 16 or not power of
13869 (build_shadow_mem_access): New function.
13870 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
13871 Handle size_in_bytes not power of two or larger than 16.
13872 (instrument_derefs): Don't give up if size_in_bytes is not
13873 power of two or is larger than 16.
13875 2014-05-30 Kai Tietz <ktietz@redhat.com>
13878 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
13879 for sibling-tail-calls.
13880 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
13882 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
13883 (sibcall_insn_operand): Add check for sibcall_memory_operand.
13885 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13887 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
13888 * config/avr/avr-tables.opt: Regenerate.
13889 * config/avr/t-multilib: Regenerate.
13890 * doc/avr-mmcu.texi: Regenerate.
13892 2014-05-30 Ian Lance Taylor <iant@google.com>
13894 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
13897 2014-05-30 Tom de Vries <tom@codesourcery.com>
13899 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
13902 2014-05-30 Tom de Vries <tom@codesourcery.com>
13904 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
13905 * lra.c (initialize_lra_reg_info_element): Add init of
13906 actual_call_used_reg_set field.
13907 (lra): Call lra_create_live_ranges before lra_inheritance for
13909 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
13911 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
13912 instead of call_used_reg_set for -fuse-caller-save.
13913 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
13915 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13917 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
13919 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
13921 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
13923 * ira.c (ira_get_dup_out_num): Check for output operands at
13924 the start of the loop. Handle cases where an included alternative
13925 follows an excluded one.
13927 2014-05-29 Mike Stump <mikestump@comcast.net>
13930 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
13931 post ld passes when lto is used.
13933 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
13935 PR rtl-optimization/61325
13936 * lra-constraints.c (process_address): Rename to process_address_1.
13937 (process_address): New function.
13939 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
13941 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
13942 TYPES_BINOPV): New static data.
13943 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
13945 * config/aarch64/aarch64-simd.md (aarch64_ext,
13946 aarch64_im_lane_boundsi): New patterns.
13947 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
13949 (aarch64_evpc_ext): New function.
13951 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
13953 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
13954 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
13955 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
13956 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
13957 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
13959 2014-05-29 Tom de Vries <tom@codesourcery.com>
13961 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
13963 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
13964 Richard Sandiford <rdsandiford@googlemail.com>
13966 * arm/iterators.md (shiftable_ops): New code iterator.
13967 (t2_binop0, arith_shift_insn): New code attributes.
13968 * arm/predicates.md (shift_nomul_operator): New predicate.
13969 * arm/arm.md (insn_enabled): Delete.
13970 (enabled): Remove insn_enabled test.
13971 (*arith_shiftsi): Delete. Replace with ...
13972 (*<arith_shift_insn>_multsi): ... new pattern.
13973 (*<arith_shift_insn>_shiftsi): ... new pattern.
13974 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
13976 2014-05-29 Radovan Obradovic <robradovic@mips.com>
13977 Tom de Vries <tom@codesourcery.com>
13979 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
13980 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
13982 (mips_split_call): Use POST_CALL_TMP_REG.
13983 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
13985 2014-05-29 Tom de Vries <tom@codesourcery.com>
13987 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
13988 with #ifdef STACK_REGS.
13990 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
13992 * varasm.c (get_variable_section): Walk aliases.
13993 (place_block_symbol): Walk aliases.
13995 2014-05-28 Tom de Vries <tom@codesourcery.com>
13998 2014-05-28 Tom de Vries <tom@codesourcery.com>
14000 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14001 * lra.c (initialize_lra_reg_info_element): Add init of
14002 actual_call_used_reg_set field.
14003 (lra): Call lra_create_live_ranges before lra_inheritance for
14005 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14007 * lra-constraints.c (need_for_call_save_p): Use
14008 actual_call_used_reg_set instead of call_used_reg_set for
14010 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14012 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14014 * doc/md.texi: Document that the % constraint character must
14015 be at the beginning of the string.
14016 * genoutput.c (validate_insn_alternatives): Check that '=',
14017 '+' and '%' only appear at the beginning of a constraint.
14018 * ira.c (commutative_constraint_p): Delete.
14019 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
14020 at the start of the string.
14021 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
14023 * config/arm/neon.md (bicdi3_neon): Likewise.
14024 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
14025 (slt_si, sltu_si): Likewise.
14026 * config/vax/vax.md (sbcdi3): Likewise.
14027 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
14028 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
14029 (mul64): Move '%' to beginning of constraint.
14030 * config/arm/arm.md (*xordi3_insn): Likewise.
14031 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
14032 (xorsi3): Likewise.
14034 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14036 * doc/md.texi: Document the restrictions on the "enabled" attribute.
14038 2014-05-28 Jason Merrill <jason@redhat.com>
14041 * cgraph.h (symtab_node::get_comdat_group_id): New.
14042 * cgraphunit.c (analyze_functions): Call it.
14043 * symtab.c (dump_symtab_node): Likewise.
14044 * tree.c (decl_comdat_group_id): New.
14045 * tree.h: Declare it.
14046 * lto-streamer-out.c (write_symbol): Use it.
14047 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
14049 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14051 PR bootstrap/PR61146
14052 * wide-int.cc: Do not include longlong.h when compiling with clang.
14054 2014-05-28 Richard Biener <rguenther@suse.de>
14056 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
14057 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
14058 (vrp_visit_assignment_or_call): Print less vertical space.
14059 (vrp_visit_stmt): Likewise.
14060 (vrp_visit_phi_node): Likewise. For a PHI argument with
14061 VR_VARYING range consider recording it as copy.
14063 2014-05-28 Richard Biener <rguenther@suse.de>
14066 2014-05-28 Richard Biener <rguenther@suse.de>
14068 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14070 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14072 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
14073 sufficiently aligned and an offset is used at the same time.
14074 (expand_expr_real_1): Likewise.
14076 2014-05-28 Richard Biener <rguenther@suse.de>
14078 PR middle-end/61045
14079 * fold-const.c (fold_comparison): When folding
14080 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
14081 the sign of the remaining constant operand stays the same.
14083 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
14085 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14086 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
14087 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
14089 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
14090 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
14091 (m32bit-doubles) Likewise.
14092 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
14093 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
14096 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14098 * configure.ac ($gcc_cv_ld_clearcap): New test.
14099 * configure: Regenerate.
14100 * config.in: Regenerate.
14101 * config/sol2.opt (mclear-hwcap): New option.
14102 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
14103 * config/sol2-clearcap.map: Moved here from
14104 testsuite/gcc.target/i386/clearcap.map.
14105 * config/sol2-clearcapv2.map: Move here from
14106 gcc.target/i386/clearcapv2.map.
14107 * config/t-sol2 (install): Depend on install-clearcap-map.
14108 (install-clearcap-map): New target.
14109 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
14112 2014-05-28 Richard Biener <rguenther@suse.de>
14114 * hwint.h (*_HALF_WIDE_INT*): Move to ...
14115 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
14116 ... here and remove the rest.
14117 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
14119 2014-05-28 Richard Biener <rguenther@suse.de>
14121 PR tree-optimization/61335
14122 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
14123 new range fails, drop to varying.
14125 2014-05-28 Olivier Hainque <hainque@adacore.com>
14127 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
14128 (CPP_SPEC): Add entry for -mcpu=8548.
14129 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
14130 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
14132 2014-05-28 Tom de Vries <tom@codesourcery.com>
14134 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
14135 * lra.c (initialize_lra_reg_info_element): Add init of
14136 actual_call_used_reg_set field.
14137 (lra): Call lra_create_live_ranges before lra_inheritance for
14139 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
14141 * lra-constraints.c (need_for_call_save_p): Use
14142 actual_call_used_reg_set instead of call_used_reg_set for
14144 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
14146 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14147 Tom de Vries <tom@codesourcery.com>
14149 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
14151 (@item -fuse-caller-save): New item.
14153 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14154 Tom de Vries <tom@codesourcery.com>
14156 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
14157 OPT_fuse_caller_save.
14159 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14160 Tom de Vries <tom@codesourcery.com>
14162 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
14163 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
14164 get_call_reg_set_usage.
14165 * resource.c (mark_set_resources, mark_target_live_regs): Use
14166 get_call_reg_set_usage.
14167 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
14169 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
14170 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
14171 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14172 * ira-build.c (ira_create_allocno): Init
14173 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14174 (create_cap_allocno, propagate_allocno_info)
14175 (propagate_some_info_from_allocno)
14176 (copy_info_to_removed_store_destinations): Handle
14177 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
14178 * ira-costs.c (ira_tune_allocno_costs): Use
14179 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
14181 2014-05-28 Radovan Obradovic <robradovic@mips.com>
14182 Tom de Vries <tom@codesourcery.com>
14184 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
14185 and function_used_regs_valid fields.
14186 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
14187 find_all_hard_reg_sets.
14188 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
14189 (get_call_reg_set_usage): New function.
14190 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
14191 * regs.h (get_call_reg_set_usage): Declare.
14193 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14196 * config/dbx.h (License): Add Runtime Library Exception.
14197 * config/newlib-stdint.h (License): Same.
14198 * config/rtems.h (License): Same
14199 * config/initfini-array.h (License): Same
14200 * config/v850/v850.h (License): Same.
14201 * config/v850/v850-opts.h (License): Same
14202 * config/v850/rtems.h (License): Same.
14204 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
14207 * doc/extend.texi (Local Labels): Note that label differences are
14208 not supported for AVR.
14210 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
14211 Olivier Hainque <hainque@adacore.com>
14213 * rtl.h (set_for_reg_notes): Declare.
14214 * emit-rtl.c (set_for_reg_notes): New function.
14215 (set_unique_reg_note): Use it.
14216 * optabs.c (add_equal_note): Likewise
14218 2014-05-27 Andrew Pinski <apinski@cavium.com>
14220 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
14221 Use <w> for the register in assembly template.
14222 (stack_protect_test): Use the mode of operands[0] for the result.
14223 (stack_protect_test_<mode>): Use <w> for the register
14224 in assembly template.
14226 2014-05-27 DJ Delorie <dj@redhat.com>
14228 * config/rx/rx.c (add_vector_labels): New.
14229 (rx_output_function_prologue): Call it.
14230 (rx_handle_func_attribute): Don't require empty arguments.
14231 (rx_handle_vector_attribute): New.
14232 (rx_attribute_table): Add "vector" attribute.
14233 * doc/extend.texi (interrupt, vector): Document new/changed
14234 RX-specific attributes.
14236 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
14238 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14240 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
14241 predicate to detect a negative quotient.
14243 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
14245 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
14246 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
14247 Add X - Y CMP 0 to X CMP Y transformation.
14248 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
14250 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
14252 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
14255 2014-05-27 Steve Ellcey <sellcey@mips.com>
14257 * config/mips/mips.c: Add include of cgraph.h.
14259 2014-05-27 Richard Biener <rguenther@suse.de>
14261 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
14263 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14266 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
14267 * config/arm/arm-cores.def (License): Same.
14268 * config/arm/arm-opts.h (License): Same.
14269 * config/arm/aout.h (License): Same.
14270 * config/arm/bpabi.h (License): Same.
14271 * config/arm/elf.h (License): Same.
14272 * config/arm/linux-elf.h (License): Same.
14273 * config/arm/linux-gas.h (License): Same.
14274 * config/arm/netbsd-elf.h (License): Same.
14275 * config/arm/uclinux-eabi.h (License): Same.
14276 * config/arm/uclinux-elf.h (License): Same.
14277 * config/arm/vxworks.h (License): Same.
14279 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14281 * config/arm/neon.md (neon_bswap<mode>): New pattern.
14282 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
14283 (arm_init_neon_builtins): Handle NEON_BSWAP.
14284 Define required type nodes.
14285 (arm_expand_neon_builtin): Handle NEON_BSWAP.
14286 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
14287 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
14288 * config/arm/iterators.md (VDQHSD): New mode iterator.
14290 2014-05-27 Richard Biener <rguenther@suse.de>
14292 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
14293 Try using literal operands when comparing value-ranges failed.
14295 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14297 * ira.c (commutative_operand): Adjust for change to recog_data.
14298 [Missing from previous commit.]
14300 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14302 * system.h (TEST_BIT): New macro.
14303 * recog.h (alternative_mask): New type.
14304 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
14305 (recog_data_d): Replace alternative_enabled_p array with
14306 enabled_alternatives.
14307 (target_recog): New structure.
14308 (default_target_recog, this_target_recog): Declare.
14309 (get_enabled_alternatives, recog_init): Likewise.
14310 * recog.c (default_target_recog, this_target_recog): New variables.
14311 (get_enabled_alternatives): New function.
14312 (extract_insn): Use it.
14313 (recog_init): New function.
14314 (preprocess_constraints, constrain_operands): Adjust for change to
14316 * postreload.c (reload_cse_simplify_operands): Likewise.
14317 * reload.c (find_reloads): Likewise.
14318 * ira-costs.c (record_reg_classes): Likewise.
14319 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
14320 all alternatives after a disabled one would be skipped.
14321 (ira_implicitly_set_insn_hard_regs): Likewise.
14322 * ira.c (ira_setup_alts): Adjust for change to recog_data.
14323 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
14324 with enabled_alternatives.
14325 * lra.c (free_insn_recog_data): Update accordingly.
14326 (lra_update_insn_recog_data): Likewise.
14327 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
14328 * lra-constraints.c (process_alt_operands): Likewise. Handle
14329 only_alternative as part of the enabled mask.
14330 * target-globals.h (this_target_recog): Declare.
14331 (target_globals): Add a recog field.
14332 (restore_target_globals): Restore this_target_recog.
14333 * target-globals.c: Include recog.h.
14334 (default_target_globals): Initialize recog field.
14335 (save_target_globals): Likewise.
14336 * reginfo.c (reinit_regs): Call recog_init.
14337 * toplev.c (backend_init_target): Likewise.
14339 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
14341 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
14342 rather than any named insn's code.
14344 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
14347 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
14348 * config/arm/arm-cores.def (License): Same.
14350 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
14352 * tree.h (decl_comdat_group): Declare.
14353 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
14354 * tree.c (decl_comdat_group): Here.
14356 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
14358 PR rtl-optimization/61222
14359 * combine.c (simplify_shift_const_1): When moving a PLUS outside
14360 the shift, truncate the PLUS operand to the result mode.
14362 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
14365 * config/i386/i386.c (ix86_rtx_costs)
14366 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
14369 2014-05-26 Martin Jambor <mjambor@suse.cz>
14371 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
14374 2014-05-26 Richard Biener <rguenther@suse.de>
14376 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
14377 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
14378 Provide specializations.
14379 (wi::int_traits <HOST_WIDE_INT>,
14380 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
14382 2014-05-26 Alan Modra <amodra@gmail.com>
14385 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
14386 params and return a bool. Remove dead code. Update comment.
14387 Assert we have a const_int source. Remove bogus code from
14388 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
14389 handling of constants > 2G and reg_equal note, from..
14390 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
14391 return value. Update comment. If we can, use a new pseudo
14392 for intermediate calculations.
14393 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
14395 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
14396 call to rs6000_emit_set_const in splitter.
14397 (movdi_internal64+2, +3): Likewise.
14399 2014-05-26 Richard Biener <rguenther@suse.de>
14401 * system.h: Define __STDC_FORMAT_MACROS before
14402 including inttypes.h.
14403 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
14404 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
14405 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
14406 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
14407 HOST_WIDEST_INT_C): Remove.
14408 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
14409 if C99 inttypes.h is not available.
14410 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
14411 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
14412 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
14413 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
14414 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
14415 (struct output_info): Likewise.
14416 (print_statistics): Adjust.
14417 (dump_bitmap_statistics): Likewise.
14418 * bt-load.c (migrate_btr_defs): Print with PRId64.
14419 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
14420 (MAX_SAFE_MULTIPLIER): Adjust.
14421 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
14422 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
14423 dump_cgraph_node): Likewise.
14424 * final.c (dump_basic_block_info): Likewise.
14425 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
14426 * gcov.c (format_gcov): Likewise.
14427 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
14429 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
14430 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
14431 (inline_small_functions, dump_overall_stats, dump_inline_stats):
14432 Use PRId64 for dumping.
14433 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
14434 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
14435 (add_allocno_hard_regs): Adjust.
14436 * loop-doloop.c (doloop_modify): Print using PRId64.
14437 * loop-iv.c (inverse): Compute in uint64_t.
14438 (determine_max_iter, iv_number_of_iterations): Likewise.
14439 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
14440 Print using PRId64.
14441 * lto-streamer-out.c (write_symbol): Use uint64_t.
14442 * mcf.c (CAP_INFINITY): Use int64_t maximum.
14443 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
14444 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
14445 * modulo-sched.c (const_iteration_count): Use int64_t.
14446 (sms_schedule): Dump using PRId64.
14447 * predict.c (dump_prediction): Likewise.
14448 * pretty-print.h (pp_widest_integer): Remove.
14449 * profile.c (get_working_sets, is_edge_inconsistent,
14450 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
14451 * tree-pretty-print.c (pp_double_int): Remove case handling
14452 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
14453 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
14455 (pass_optimize_bswap::execute): Remove restriction on hosts.
14456 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
14457 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
14458 * tree.c (widest_int_cst_value): Remove.
14459 * tree.h (widest_int_cst_value): Likewise.
14460 * value-prof.c (dump_histogram_value): Print using PRId64.
14461 * gengtype.c (main): Also inject int64_t.
14462 * ggc-page.c (struct max_alignment): Use int64_t.
14463 * alloc-pool.c (struct allocation_object_def): Likewise.
14464 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
14466 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
14467 * doc/tm.texi: Regenerated.
14468 * gengtype-lex.l (IWORD): Handle [u]int64_t.
14469 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
14470 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
14471 mmix_output_register_setting): Use [u]int64_t in prototypes.
14472 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
14473 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
14474 mmix_output_octa, mmix_output_shifted_value): Adjust.
14475 (mmix_intval): Adjust. Remove unreachable case.
14476 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
14478 2014-05-26 Richard Biener <rguenther@suse.de>
14480 * configure.ac: Drop __int64 type check. Insist that we
14481 found uint64_t and int64_t.
14482 * hwint.h (HOST_BITS_PER___INT64): Remove.
14483 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
14484 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
14485 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
14486 (HOST_WIDEST_FAST_INT): Remove __int64 case.
14487 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
14488 for dst_q_src_df_rms_cdt.
14489 * configure: Regenerate.
14490 * config.in: Likewise.
14492 2014-05-26 Michael Tautschnig <mt@debian.org>
14495 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
14496 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
14498 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14500 PR rtl-optimization/61278
14501 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
14503 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14505 PR rtl-optimization/61220
14506 Part of PR rtl-optimization/61225
14507 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
14508 insn; skip split_edge for a block with only one successor.
14510 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14512 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
14515 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14517 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
14518 (update_vtable_references): New function.
14519 (function_and_variable_visibility): Rewrite also vtable initializers.
14520 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
14522 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14524 * ggc.h (ggc_grow): New function.
14525 * ggc-none.c (ggc_grow): New function.
14526 * ggc-page.c (ggc_grow): Likewise.
14528 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14530 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
14531 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
14532 comdat_can_be_unshared_p, cgraph_externally_visible_p,
14533 varpool_externally_visible_p, can_replace_by_local_alias,
14534 update_visibility_by_resolution_info, function_and_variable_visibility,
14535 pass_data_ipa_function_and_variable_visibility,
14536 make_pass_ipa_function_and_variable_visibility,
14537 whole_program_function_and_variable_visibility,
14538 pass_data_ipa_whole_program_visibility,
14539 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
14540 * cgraph.h (cgraph_local_node_p): Declare.
14541 * ipa-visibility.c: New file.
14542 * Makefile.in (OBJS): Add ipa-visiblity.o
14544 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14546 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
14547 that var decl is available.
14549 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14551 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
14552 symtab_node pointer.
14553 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
14554 (find_decls_types_r): Do not walk COMDAT_GROUP.
14555 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
14556 * varasm.c (make_decl_one_only): Use set_comdat_group;
14557 create node if needed.
14558 * ipa-inline-transform.c (save_inline_function_body): Update
14559 way we decl->symtab mapping.
14560 * symtab.c (symtab_hash, hash_node, eq_node
14561 symtab_insert_node_to_hashtable): Remove.
14562 (symtab_register_node): Update.
14563 (symtab_unregister_node): Update.
14564 (symtab_get_node): Reimplement as inline function.
14565 (symtab_add_to_same_comdat_group): Update.
14566 (symtab_dissolve_same_comdat_group_list): Update.
14567 (dump_symtab_base): Update.
14568 (verify_symtab_base): Update.
14569 (symtab_make_decl_local): Update.
14570 (fixup_same_cpp_alias_visibility): Update.
14571 (symtab_nonoverwritable_alias): Update.
14572 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
14573 * ipa.c (update_visibility_by_resolution_info): UPdate.
14574 * bb-reorder.c: Include cgraph.h
14575 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
14576 with comdat groups.
14577 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
14578 * cgraph.c (cgraph_get_create_node): Update.
14579 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
14581 (symtab_get_node): Make inline.
14582 (symtab_insert_node_to_hashtable): Remove.
14583 (symtab_can_be_discarded): Update.
14584 (decl_comdat_group): New function.
14585 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
14587 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
14589 (read_comdat_group): New function.
14590 (input_node, input_varpool_node): Use it.
14591 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
14593 * mips.c (mips_start_unique_function): Likewise.
14594 (ix86_code_end): Likewise.
14595 (rs6000_code_end): Likweise.
14596 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
14598 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14600 * gengtype-state.c (fatal_reading_state): Bring offline.
14601 * optabs.c (widening_optab_handler): Bring offline.
14602 * optabs.h (widening_optab_handler): Likewise.
14603 * final.c (get_attr_length_1): Likewise.
14605 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
14607 * sched-int.h (sd_iterator_cond): Manually tail recurse.
14609 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14611 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
14612 (ppc440-compare): Include shift with dot.
14613 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
14614 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
14616 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
14618 (e6500_sfx2): Include it.
14619 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
14620 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
14621 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
14622 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
14623 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
14624 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
14625 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
14626 *lshiftrt_internal1le, *lshiftrt_internal1be,
14627 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
14628 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
14629 *rotldi3_internal10le, *rotldi3_internal10be,
14630 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
14631 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
14632 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
14633 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
14634 define_insns): Use type "shift" in the appropriate alternatives.
14636 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14638 * config/rs6000/rs6000.md (type): Add "logical". Delete
14640 (dot): Adjust comment.
14641 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
14642 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
14643 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
14644 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
14645 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
14646 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
14647 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
14648 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14650 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14651 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14652 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14653 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14654 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14655 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14656 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14657 * config/rs6000/8540.md (ppc8540_su): Adjust.
14658 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14659 cell-cmp-microcoded): Adjust.
14660 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14661 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14662 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14663 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14664 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14665 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14666 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14667 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14668 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14670 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14671 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
14672 Adjust. Adjust comment.
14673 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14674 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14676 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14678 * config/rs6000/rs6000.md (type): Add "add".
14679 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
14680 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
14681 define_insns): Use it.
14682 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
14684 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14685 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
14686 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14687 * config/rs6000/601.md (ppc601-integer): Adjust.
14688 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14689 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14690 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14691 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14692 * config/rs6000/8540.md (ppc8540_su): Adjust.
14693 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14694 cell-cmp-microcoded): Adjust.
14695 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
14696 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14697 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
14698 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
14699 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
14700 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14701 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
14702 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
14703 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
14705 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
14706 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
14707 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14708 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
14710 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14712 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
14713 "delayed_compare", "var_delayed_compare".
14714 (var_shift): New attribute.
14715 (cell_micro): Adjust.
14716 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
14717 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
14718 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
14719 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
14720 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
14721 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
14722 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
14723 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
14724 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
14725 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14726 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
14727 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
14728 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
14729 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
14730 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
14731 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
14732 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
14733 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
14734 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
14735 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
14736 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
14737 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
14738 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
14739 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14740 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14742 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
14743 * config/rs6000/440.md (ppc440-integer): Adjust.
14744 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
14745 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
14746 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
14747 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
14748 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
14749 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
14750 * config/rs6000/8540.md (ppc8540_su): Adjust.
14751 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
14752 cell-cmp-microcoded): Adjust.
14753 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
14754 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14755 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
14756 e500mc64_delayed): Adjust.
14757 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
14758 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
14759 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
14760 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
14761 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
14762 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
14763 power6-delayed-compare, power6-var-delayed-compare): Adjust.
14764 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
14765 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
14767 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
14768 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14770 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14772 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
14773 (bits): New mode_attr.
14774 (idiv_ldiv): Delete mode_attr.
14775 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
14776 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14777 rs6000_adjust_priority, is_nonpipeline_insn,
14778 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14780 * config/rs6000/40x.md (ppc403-idiv): Adjust.
14781 * config/rs6000/440.md (ppc440-idiv): Adjust.
14782 * config/rs6000/476.md (ppc476-idiv): Adjust.
14783 * config/rs6000/601.md (ppc601-idiv): Adjust.
14784 * config/rs6000/603.md (ppc603-idiv): Adjust.
14785 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
14786 ppc620-ldiv): Adjust.
14787 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
14788 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
14789 * config/rs6000/8540.md (ppc8540_divide): Adjust.
14790 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
14791 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
14792 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
14793 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
14794 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
14795 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
14796 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
14797 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
14798 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
14799 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
14800 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
14801 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
14802 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
14803 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
14804 * config/rs6000/titan.md (titan_fxu_div): Adjust.
14806 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14808 * config/rs6000/rs6000.md (type): Delete "insert_word",
14809 "insert_dword". Add "insert".
14810 (size): Update comment.
14811 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14812 insn_must_be_first_in_group): Adjust.
14813 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
14814 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
14815 *insvsi_internal6, insvdi_internal): Adjust.
14817 * config/rs6000/40x.md (ppc403-integer): Adjust.
14818 * config/rs6000/440.md (ppc440-integer): Adjust.
14819 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
14820 * config/rs6000/601.md (ppc601-integer): Adjust.
14821 * config/rs6000/603.md (ppc603-integer): Adjust.
14822 * config/rs6000/6xx.md (ppc604-integer): Adjust.
14823 * config/rs6000/7450.md (ppc7450-integer): Adjust.
14824 * config/rs6000/7xx.md (ppc750-integer): Adjust.
14825 * config/rs6000/8540.md (ppc8540_su): Adjust.
14826 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
14827 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
14828 * config/rs6000/e500mc.md (e500mc_su): Adjust.
14829 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
14830 * config/rs6000/e5500.md (e5500_sfx): Adjust.
14831 * config/rs6000/e6500.md (e6500_sfx): Adjust.
14832 * config/rs6000/mpc.md (mpccore-integer): Adjust.
14833 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
14834 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
14835 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
14836 * config/rs6000/power7.md (power7-integer): Adjust.
14837 * config/rs6000/power8.md (power8-1cyc): Adjust.
14838 * config/rs6000/rs64.md (rs64a-integer): Adjust.
14839 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
14841 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14843 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
14844 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
14845 (size): New attribute.
14846 (dot): New attribute.
14847 (cell_micro): Adjust.
14848 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
14849 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
14850 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
14851 umuldi3_highpart): Adjust.
14852 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
14853 rs6000_adjust_priority, is_nonpipeline_insn,
14854 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
14856 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
14857 ppc405-imul3): Adjust.
14858 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
14859 * config/rs6000/476.md (ppc476-imul): Adjust.
14860 * config/rs6000/601.md (ppc601-imul): Adjust.
14861 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
14862 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
14863 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
14864 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
14865 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
14867 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
14868 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
14869 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
14870 cell-imul): Adjust.
14871 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
14872 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
14873 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
14874 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
14875 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
14876 * config/rs6000/mpc.md (mpccore-imul): Adjust.
14877 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
14878 power4-lmul, power4-imul, power4-imul3): Adjust.
14879 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
14880 power5-lmul, power5-imul, power5-imul3): Adjust.
14881 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
14882 power6-lmul, power6-imul, power6-imul3): Adjust.
14883 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
14884 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
14886 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
14887 rs64a-lmul): Adjust.
14888 * config/rs6000/titan.md (titan_imul): Adjust.
14890 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14892 * config/rs6000/rs6000.md (type): Add new value "halfmul".
14893 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
14894 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
14895 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
14896 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
14897 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
14898 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
14899 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
14900 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
14901 * config/rs6000/titan.md: Delete nonsensical comment.
14902 (titan_imul): Add type imul3.
14903 (titan_mulhw): Remove type imul3; add type halfmul.
14905 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
14907 * config/rs6000/rs6000.md (type): Reorder, reformat.
14909 2014-05-23 Martin Jambor <mjambor@suse.cz>
14911 PR tree-optimization/53787
14912 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
14913 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
14914 analysis_done, update all uses.
14915 * ipa-prop.c: Include domwalk.h
14916 (param_analysis_info): Removed.
14917 (param_aa_status): New type.
14918 (ipa_bb_info): Likewise.
14919 (func_body_info): Likewise.
14920 (ipa_get_bb_info): New function.
14921 (aa_overwalked): Likewise.
14922 (find_dominating_aa_status): Likewise.
14923 (parm_bb_aa_status_for_bb): Likewise.
14924 (parm_preserved_before_stmt_p): Changed to use new param AA info.
14925 (load_from_unmodified_param): Accept func_body_info as a parameter
14926 instead of parms_ainfo.
14927 (parm_ref_data_preserved_p): Changed to use new param AA info.
14928 (parm_ref_data_pass_through_p): Likewise.
14929 (ipa_load_from_parm_agg_1): Likewise. Update callers.
14930 (compute_complex_assign_jump_func): Changed to use new param AA info.
14931 (compute_complex_ancestor_jump_func): Likewise.
14932 (ipa_compute_jump_functions_for_edge): Likewise.
14933 (ipa_compute_jump_functions): Removed.
14934 (ipa_compute_jump_functions_for_bb): New function.
14935 (ipa_analyze_indirect_call_uses): Likewise, moved variable
14937 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
14938 and info, moved variable declarations down.
14939 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
14941 (ipa_analyze_stmt_uses): Likewise.
14942 (ipa_analyze_params_uses): Removed.
14943 (ipa_analyze_params_uses_in_bb): New function.
14944 (ipa_analyze_controlled_uses): Likewise.
14945 (free_ipa_bb_info): Likewise.
14946 (analysis_dom_walker): New class.
14947 (ipa_analyze_node): Handle node-specific forbidden analysis,
14948 initialize and free func_body_info, use dominator walker.
14949 (ipcp_modif_dom_walker): New class.
14950 (ipcp_transform_function): Create and free func_body_info, use
14951 ipcp_modif_dom_walker, moved a lot of functionality there.
14953 2014-05-23 Marek Polacek <polacek@redhat.com>
14954 Jakub Jelinek <jakub@redhat.com>
14956 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
14957 * gcc.c (sanitize_spec_function): Likewise.
14958 * convert.c (convert_to_integer): Include "ubsan.h". Add
14959 floating-point to integer instrumentation.
14960 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
14961 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
14962 SANITIZE_NONDEFAULT.
14963 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
14964 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
14965 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
14966 * ubsan.c: Include "realmpfr.h" and "dfp.h".
14967 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
14968 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
14969 float/double/long double.
14970 (ubsan_instrument_float_cast): New function.
14971 * ubsan.h (ubsan_instrument_float_cast): Declare.
14973 2014-05-23 Jiong Wang <jiong.wang@arm.com>
14975 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
14977 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
14978 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
14979 Adjust for tailcalling through registers.
14980 * config/aarch64/aarch64.h (enum reg_class): New caller save
14982 (REG_CLASS_NAMES): Likewise.
14983 (REG_CLASS_CONTENTS): Likewise.
14984 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
14985 Allow tailcalling without decls.
14987 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
14989 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
14990 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
14992 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
14993 gsi, and variables v_* to v*.
14995 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
14997 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
14999 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
15001 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
15002 * omp-low.c: Update accordingly.
15004 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
15005 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
15006 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
15007 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
15008 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
15009 GF_OMP_TARGET_KIND_UPDATE.
15011 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
15012 Explicitly enumerate the expected region types.
15014 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
15017 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
15018 documentation; the old documentation didn't clearly state the
15019 constraints on the contents of the pointed-to storage.
15021 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15023 Fix bootstrap error on ia64
15024 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
15025 Return default value.
15027 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
15029 PR tree-optimization/54733
15030 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
15032 (find_bswap_or_nop_load): New.
15033 (find_bswap_1): Renamed to ...
15034 (find_bswap_or_nop_1): This. Also add support for memory source.
15035 (find_bswap): Renamed to ...
15036 (find_bswap_or_nop): This. Also add support for memory source and
15037 detection of bitwise operations equivalent to load in target
15039 (execute_optimize_bswap): Likewise. Also move its leading comment back
15040 in place and split statement transformation into ...
15041 (bswap_replace): This.
15043 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15045 PR rtl-optimization/61215
15046 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
15047 simplify_gen_subreg until final substitution.
15049 2014-05-23 Alan Modra <amodra@gmail.com>
15052 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
15053 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
15054 Use "Y" constraint rather than "m".
15056 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15058 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
15060 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
15061 New function declaration.
15062 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
15063 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
15064 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
15065 (aarch64_init_builtins) : Initialize builtins
15066 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15067 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15068 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
15069 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
15070 and __builtins_aarch64_set_fpsr.
15071 (aarch64_atomic_assign_expand_fenv): New function.
15072 * config/aarch64/aarch64.md (set_fpcr): New pattern.
15073 (get_fpcr) : Likewise.
15074 (set_fpsr) : Likewise.
15075 (get_fpsr) : Likewise.
15076 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
15077 and UNSPECV_SET_FPSR.
15078 * doc/extend.texi (AARCH64 Built-in Functions) : Document
15079 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
15080 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
15082 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
15084 PR rtl-optimization/60969
15085 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
15086 constraints. Set up mem cost for NO_REGS case.
15088 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
15090 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
15092 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
15094 * config/darwin.c: Include "lto-section-names.h".
15095 (LTO_SEGMENT_NAME): Don't define.
15096 * config/i386/winnt.c: Include "lto-section-names.h".
15097 * lto-streamer.c: Include "lto-section-names.h".
15098 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
15099 * lto-wrapper.c: Include "lto-section-names.h".
15100 (LTO_SECTION_NAME_PREFIX): Don't define.
15101 * lto-section-names.h: New file.
15102 * cgraphunit.c: Include "lto-section-names.h".
15104 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
15106 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
15108 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
15111 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
15113 2014-05-22 Nick Clifton <nickc@redhat.com>
15115 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
15117 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
15119 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
15120 -> (T)A transformation to integer types.
15122 2014-05-22 Teresa Johnson <tejohnson@google.com>
15124 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
15125 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
15126 (gcov_rewrite): Use gcov_nonruntime_assert.
15127 (gcov_open): Ditto.
15128 (gcov_write_words): Ditto.
15129 (gcov_write_length): Ditto.
15130 (gcov_read_words): Use gcov_nonruntime_assert, and remove
15131 gcc_assert from IN_LIBGCOV code.
15132 (gcov_read_summary): Use gcov_error to flag profile corruption.
15133 (gcov_sync): Use gcov_nonruntime_assert.
15134 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
15135 (gcov_histo_index): Use gcov_nonruntime_assert.
15136 (static void gcov_histogram_merge): Ditto.
15137 (compute_working_sets): Ditto.
15138 * gcov-io.h (gcov_nonruntime_assert): Define.
15139 (gcov_error): Define for !IN_LIBGCOV
15141 2014-05-22 Richard Biener <rguenther@suse.de>
15143 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15144 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
15145 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
15146 and deallocation site.
15147 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15148 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
15149 passing through the incoming points-to set.
15150 (handle_lhs_call): Use flags argument instead of recomputing it.
15151 (find_func_aliases_for_call): Call handle_lhs_call with proper
15154 2014-05-22 Jakub Jelinek <jakub@redhat.com>
15156 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
15157 all padding bits in REAL_VALUE_TYPE are cleared.
15159 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15161 Cleanup and improve multipass_dfa_lookahead_guard
15162 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
15163 (core2i7_first_cycle_multipass_begin,)
15164 (core2i7_first_cycle_multipass_issue,)
15165 (core2i7_first_cycle_multipass_backtrack): Update signature.
15166 * config/ia64/ia64.c
15167 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
15168 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
15169 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
15171 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
15172 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
15174 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
15176 * doc/tm.texi: Regenerate.
15178 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
15179 * haifa-sched.c (ready_try): Make signed to allow negative values.
15180 (rebug_ready_list_1): Update.
15181 (choose_ready): Simplify.
15182 (sched_extend_ready_list): Update.
15184 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15186 Remove IA64 speculation tweaking flags
15187 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
15188 speculation tuning flags.
15189 (msched-prefer-non-data-spec-insns,)
15190 (msched-prefer-non-control-spec-insns): Obsolete options.
15191 * haifa-sched.c (choose_ready): Remove handling of
15192 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15193 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
15194 and PREFER_NON_DATA_SPEC.
15195 * sel-sched.c (process_spec_exprs): Remove handling of
15196 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
15198 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15200 Improve scheduling debug output
15201 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
15202 (advance_one_cycle): Update.
15203 (schedule_insn, queue_to_ready): Add debug printouts.
15204 (debug_ready_list_1): New static function.
15205 (debug_ready_list): Update.
15206 (max_issue): Add debug printouts.
15207 (dump_insn_stream): New static function.
15208 (schedule_block): Use it. Also better indent printouts.
15210 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
15212 Fix sched_insn debug counter
15213 * haifa-sched.c (schedule_insn): Update.
15214 (struct haifa_saved_data): Add nonscheduled_insns_begin.
15215 (save_backtrack_point, restore_backtrack_point): Update.
15216 (first_nonscheduled_insn): New static function.
15217 (queue_to_ready, choose_ready): Use it.
15218 (schedule_block): Init nonscheduled_insns_begin.
15219 (sched_emit_insn): Update.
15222 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
15224 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
15226 (aarch64_secondary_reload) : LikeWise.
15227 (aarch64_class_max_nregs) : Remove CORE_REGS.
15228 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
15229 (REG_CLASS_NAMES) : Likewise.
15230 (REG_CLASS_CONTENTS) : LikeWise.
15231 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
15233 2014-05-21 Guozhi Wei <carrot@google.com>
15236 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
15238 (vqdmulhq_n_s16): Likewise.
15240 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15242 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
15244 2014-05-21 Marek Polacek <polacek@redhat.com>
15247 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
15249 2014-05-21 Martin Jambor <mjambor@suse.cz>
15251 * doc/invoke.texi (Optimize Options): Document parameters
15252 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
15253 ipa-cp-array-index-hint-bonus.
15255 2014-05-21 Mark Wielaard <mjw@redhat.com>
15258 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
15259 version >= 3 or not strict DWARF.
15260 * langhooks.h (struct lang_hooks_for_types): Add
15261 enum_underlying_base_type.
15262 * langhooks.c (lhd_enum_underlying_base_type): New function.
15263 * gcc/langhooks.h (struct lang_hooks_for_types): Add
15264 enum_underlying_base_type.
15265 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
15266 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
15267 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
15269 2014-05-21 Richard Biener <rguenther@suse.de>
15271 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
15273 2014-05-21 John Marino <gnugcc@marino.st>
15275 * config.gcc (*-*-dragonfly*): New target.
15276 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
15277 * configure: Regenerate.
15278 * config/dragonfly-stdint.h: New.
15279 * config/dragonfly.h: New.
15280 * config/dragonfly.opt: New.
15281 * config/i386/dragonfly.h: New.
15282 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
15284 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15286 * tree.def (VOID_CST): New.
15287 * tree-core.h (TI_VOID): New.
15288 * tree.h (void_node): New.
15289 * tree.c (tree_node_structure_for_code, tree_code_size)
15290 (iterative_hash_expr): Handle VOID_CST.
15291 (build_common_tree_nodes): Initialize void_node.
15293 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
15295 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
15297 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
15299 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
15302 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
15303 flag_reorder_blocks_and_partition.
15304 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
15306 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
15309 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
15311 (*addc_r_t): Add new insn_and_split.
15313 2014-05-21 Jakub Jelinek <jakub@redhat.com>
15315 PR middle-end/61252
15316 * omp-low.c (handle_simd_reference): New function.
15317 (lower_rec_input_clauses): Use it. Defer adding reference
15318 initialization even for reduction without placeholder if in simd,
15319 handle it properly later on.
15321 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15323 PR tree-optimization/60899
15324 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
15325 assume all static symbols will have definition wile parsing and
15326 check the do have definition later in compilation; check that
15327 variable referring symbol will be output before concluding that
15328 reference is safe; be conservative for referring local statics;
15329 be more precise about when comdat is output in other partition.
15331 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15334 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
15336 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
15337 (ipa_inline): Loop inline_to_all_callers until no more aliases
15340 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15342 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
15343 set writeonly flag only for vars actually written to.
15345 2014-05-20 Dehao Chen <dehao@google.com>
15347 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
15348 and callee count to get clone count.
15349 * tree-inline.c (expand_call_inline): Use callee count instead of bb
15350 count in copy_body.
15352 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
15354 PR rtl-optimization/61243
15355 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
15357 2014-05-20 Xinliang David Li <davidxl@google.com>
15359 * cgraphunit.c (walk_polymorphic_call_targets): Add
15360 dbgcnt and fopt-info support.
15361 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
15362 * ipa-devirt.c (ipa_devirt): Ditto.
15363 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
15364 * ipa.c (walk_polymorphic_call_targets): Ditto.
15365 * gimple-fold.c (fold_gimple_assign): Ditto.
15366 (gimple_fold_call): Ditto.
15367 * dbgcnt.def: New counter.
15369 2014-05-20 DJ Delorie <dj@redhat.com>
15371 * config/msp430/msp430.md (split): Don't allow subregs when
15372 splitting SImode adds.
15373 (andneghi): Fix subtraction logic.
15374 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
15376 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
15378 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
15380 * except.c (switch_to_exception_section, resolve_unique_section,
15381 get_named_text_section, default_function_rodata_section,
15382 align_variable, get_block_for_decl, default_section_type_flags):
15383 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
15384 * symtab.c (symtab_add_to_same_comdat_group,
15385 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
15386 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
15388 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
15389 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
15390 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
15391 (c6x_function_in_section_p): Likewise.
15392 * config/darwin.c (machopic_select_section): Likewise.
15393 * config/arm/arm.c (arm_function_in_section_p): Likewise.
15394 * config/mips/mips.c (mips_function_rodata_section): Likewise.
15395 * config/mep/mep.c (mep_select_section): LIkewise.
15396 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
15398 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
15400 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
15401 EH region of calls to pure functions that can throw an exception.
15402 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
15403 (copy_reference_ops_from_call): Also copy the EH region of the call if
15404 it can throw an exception.
15406 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15408 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
15409 nested VEC_SELECTs that are inverses of each other.
15411 2014-05-20 Richard Biener <rguenther@suse.de>
15413 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
15414 (extract_and_process_scc_for_name): not here.
15415 (cond_dom_walker::before_dom_children): Only process
15416 stmts that end the BB in interesting ways.
15417 (run_scc_vn): Mark param uses as visited.
15419 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15421 * config/arm/arm.md (arith_shiftsi): Do not predicate for
15424 2014-05-20 Nick Clifton <nickc@redhat.com>
15426 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15427 (msp430_gimplify_va_arg_expr): New function.
15428 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
15430 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
15431 operand 0 in order to prevent confusion about the number of
15432 registers involved.
15434 2014-05-20 Richard Biener <rguenther@suse.de>
15436 PR tree-optimization/61221
15437 * tree-ssa-pre.c (el_to_update): Remove.
15438 (eliminate_dom_walker::before_dom_children): Handle released
15439 VDEFs by value-numbering them to the associated VUSE. Update
15440 stmt immediately for substituted call address.
15441 (eliminate): Remove delayed stmt updating code.
15442 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
15443 possibly late re-numbered vuses.
15444 (vn_reference_lookup_2): Adjust.
15445 (vn_reference_lookup_pieces): Likewise.
15446 (vn_reference_lookup): Likewise.
15448 2014-05-20 Richard Biener <rguenther@suse.de>
15450 * config.gcc: Remove need_64bit_hwint.
15451 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
15452 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
15454 * config.in: Regenerate.
15455 * configure: Likewise.
15457 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
15459 * doc/extend.texi: Create Label Attributes section,
15460 move all label attributes into it and reference it.
15462 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
15464 * arm.c (thumb1_reorg): When scanning backwards skip anything
15465 that's not a proper insn.
15467 2014-05-19 Richard Biener <rguenther@suse.de>
15469 PR tree-optimization/61221
15470 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
15471 Do nothing for unreachable blocks.
15472 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
15473 Improve unreachability detection.
15475 2014-05-19 Richard Biener <rguenther@suse.de>
15477 PR tree-optimization/61209
15478 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
15480 2014-05-19 Nick Clifton <nickc@redhat.com>
15482 * except.c (init_eh): Fix computation of builtin setjmp buffer
15483 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
15485 2014-05-19 Richard Biener <rguenther@suse.de>
15487 PR tree-optimization/61184
15488 * tree-vrp.c (is_negative_overflow_infinity): Use
15489 TREE_OVERFLOW_P and do that check first.
15490 (is_positive_overflow_infinity): Likewise.
15491 (is_overflow_infinity): Likewise.
15492 (vrp_operand_equal_p): Properly treat operands with
15493 differing overflow as not equal.
15495 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
15497 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
15498 shift simplification where it was intended.
15500 2014-05-19 Christian Bruel <christian.bruel@st.com>
15503 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
15505 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
15508 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
15511 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15513 * reg-notes.def (CROSSING_JUMP): Likewise.
15514 * rtl.h (rtx_def): Update comment for jump flag.
15515 (CROSSING_JUMP_P): Define.
15516 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
15517 of a REG_CROSSING_JUMP note.
15518 * cfghooks.c (tidy_fallthru_edges): Likewise.
15519 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
15520 * emit-rtl.c (try_split): Likewise.
15521 * haifa-sched.c (sched_create_recovery_edges): Likewise.
15522 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15523 * jump.c (redirect_jump_2): Likewise.
15524 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
15525 (relax_delay_slots): Likewise.
15526 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
15527 (bbit_di): Likewise.
15528 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
15529 * config/sh/sh.md (jump_compact): Likewise.
15530 * bb-reorder.c (rotate_loop): Likewise.
15531 (pass_duplicate_computed_gotos::execute): Likewise.
15532 (add_reg_crossing_jump_notes): Rename to...
15533 (update_crossing_jump_flags): ...this.
15534 (pass_partition_blocks::execute): Update accordingly.
15536 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
15538 * tree.h: Remove extraneous template <>.
15540 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15542 * ipa.c (symtab_remove_unreachable_nodes): Remove
15543 symbol from comdat group if its body was eliminated.
15544 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
15545 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
15546 (symtab_unregister_node): ... this one.
15547 (verify_symtab_base): More strict checking of comdats.
15548 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
15550 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15552 * tree-pass.h (make_pass_ipa_comdats): New pass.
15553 * timevar.def (TV_IPA_COMDATS): New timevar.
15554 * passes.def (pass_ipa_comdats): Add.
15555 * Makefile.in (OBJS): Add ipa-comdats.o
15556 * ipa-comdats.c: New file.
15558 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15560 * ipa.c (update_visibility_by_resolution_info): New function.
15561 (function_and_variable_visibility): Use it.
15563 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
15565 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
15567 (FOR_EACH_DEFINED_SYMBOL): New macro.
15568 (varpool_first_static_initializer, varpool_next_static_initializer,
15569 varpool_first_defined_variable, varpool_next_defined_variable):
15571 (symtab_in_same_comdat_p): Correctly deal with inline functions.
15573 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15575 * ggc-page.c (ggc_handle_finalizers): Add comment.
15577 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15579 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
15580 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
15581 (ggc_internal_cleared_alloc): Likewise.
15582 * ggc-page.c (finalizer): New class.
15583 (vec_finalizer): Likewise.
15584 (globals::finalizers): New member.
15585 (globals::vec_finalizers): Likewise.
15586 (ggc_internal_alloc): Record the finalizer if any for the block being
15588 (ggc_handle_finalizers): New function.
15589 (ggc_collect): Call ggc_handle_finalizers.
15590 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
15592 (ggc_internal_cleared_alloc): Likewise.
15593 (finalize): New function.
15594 (need_finalization_p): Likewise.
15595 (ggc_alloc): Install the type's destructor as the finalizer if it
15596 might do something.
15597 (ggc_cleared_alloc): Likewise.
15598 (ggc_vec_alloc): Likewise.
15599 (ggc_cleared_vec_alloc): Likewise.
15601 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15603 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
15605 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15607 * alias.c (record_alias_subset): Adjust.
15608 * bitmap.c (bitmap_element_allocate): Likewise.
15609 (bitmap_gc_alloc_stat): Likewise.
15610 * cfg.c (init_flow): Likewise.
15611 (alloc_block): Likewise.
15612 (unchecked_make_edge): Likewise.
15613 * cfgloop.c (alloc_loop): Likewise.
15614 (flow_loops_find): Likewise.
15615 (rescan_loop_exit): Likewise.
15616 * cfgrtl.c (init_rtl_bb_info): Likewise.
15617 * cgraph.c (insert_new_cgraph_node_version): Likewise.
15618 (cgraph_allocate_node): Likewise.
15619 (cgraph_create_edge_1): Likewise.
15620 (cgraph_allocate_init_indirect_info): Likewise.
15621 * cgraphclones.c (cgraph_clone_edge): Likewise.
15622 * cgraphunit.c (add_asm_node): Likewise.
15623 (init_lowered_empty_function): Likewise.
15624 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
15625 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
15626 (alpha_use_linkage): Likewise.
15627 * config/arc/arc.c (arc_init_machine_status): Likewise.
15628 * config/arm/arm.c (arm_init_machine_status): Likewise.
15629 * config/avr/avr.c (avr_init_machine_status): Likewise.
15630 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
15631 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
15632 * config/cris/cris.c (cris_init_machine_status): Likewise.
15633 * config/darwin.c (machopic_indirection_name): Likewise.
15634 (darwin_build_constant_cfstring): Likewise.
15635 (darwin_enter_string_into_cfstring_table): Likewise.
15636 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
15637 * config/frv/frv.c (frv_init_machine_status): Likewise.
15638 * config/i386/i386.c (get_dllimport_decl): Likewise.
15639 (ix86_init_machine_status): Likewise.
15640 (assign_386_stack_local): Likewise.
15641 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
15642 (i386_pe_maybe_record_exported_symbol): Likewise.
15643 (i386_pe_record_stub): Likewise.
15644 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
15645 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
15646 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
15647 (m32c_note_pragma_address): Likewise.
15648 * config/mep/mep.c (mep_init_machine_status): Likewise.
15649 (mep_note_pragma_flag): Likewise.
15650 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
15651 (mips16_local_alias): Likewise.
15652 (mips_init_machine_status): Likewise.
15653 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
15654 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
15655 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
15656 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
15657 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
15658 * config/pa/pa.c (pa_init_machine_status): Likewise.
15659 (pa_get_deferred_plabel): Likewise.
15660 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
15661 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
15662 (rs6000_init_machine_status): Likewise.
15663 (output_toc): Likewise.
15664 * config/s390/s390.c (s390_init_machine_status): Likewise.
15665 * config/score/score.c (score_output_external): Likewise.
15666 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
15667 * config/spu/spu.c (spu_init_machine_status): Likewise.
15668 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
15669 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
15670 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
15671 * coverage.c (coverage_end_function): Likewise.
15672 * dbxout.c (dbxout_init): Likewise.
15673 * doc/gty.texi: Don't mention variable_size attribute.
15674 * dwarf2cfi.c (new_cfi): Adjust.
15675 (new_cfi_row): Likewise.
15676 (copy_cfi_row): Likewise.
15677 (create_cie_data): Likewise.
15678 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
15679 (new_loc_descr): Likewise.
15680 (find_AT_string_in_table): Likewise.
15681 (add_addr_table_entry): Likewise.
15682 (new_die): Likewise.
15683 (add_var_loc_to_decl): Likewise.
15684 (clone_die): Likewise.
15685 (clone_as_declaration): Likewise.
15686 (break_out_comdat_types): Likewise.
15687 (new_loc_list): Likewise.
15688 (add_loc_descr_to_each): Likewise.
15689 (add_location_or_const_value_attribute): Likewise.
15690 (add_linkage_name): Likewise.
15691 (lookup_filename): Likewise.
15692 (dwarf2out_var_location): Likewise.
15693 (new_line_info_table): Likewise.
15694 (dwarf2out_init): Likewise.
15695 (mem_loc_descriptor): Likewise.
15696 (loc_descriptor): Likewise.
15697 (add_const_value_attribute): Likewise.
15698 (tree_add_const_value_attribute): Likewise.
15699 (comp_dir_string): Likewise.
15700 (dwarf2out_vms_debug_main_pointer): Likewise.
15701 (string_cst_pool_decl): Likewise.
15702 * emit-rtl.c (set_mem_attrs): Likewise.
15703 (get_reg_attrs): Likewise.
15704 (start_sequence): Likewise.
15705 (init_emit): Likewise.
15706 (init_emit_regs): Likewise.
15707 * except.c (init_eh_for_function): Likewise.
15708 (gen_eh_region): Likewise.
15709 (gen_eh_region_catch): Likewise.
15710 (gen_eh_landing_pad): Likewise.
15711 (add_call_site): Likewise.
15712 * function.c (add_frame_space): Likewise.
15713 (insert_temp_slot_address): Likewise.
15714 (assign_stack_temp_for_type): Likewise.
15715 (get_hard_reg_initial_val): Likewise.
15716 (allocate_struct_function): Likewise.
15717 (prepare_function_start): Likewise.
15718 (types_used_by_var_decl_insert): Likewise.
15719 * gengtype.c (variable_size_p): Remove function.
15720 (enum alloc_quantity): Remove enum.
15721 (write_typed_alloc_def): Remove function.
15722 (write_typed_struct_alloc_def): Likewise.
15723 (write_typed_typedef_alloc_def): Likewise.
15724 (write_typed_alloc_defns): Likewise.
15726 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
15727 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
15728 * ggc.h (ggc_alloc): new function.
15729 (ggc_cleared_alloc): Likewise.
15730 (ggc_vec_alloc): Template on type of vector element, and remove
15731 element size argument.
15732 (ggc_cleared_vec_alloc): Likewise.
15733 * gimple.c (gimple_build_omp_for): Adjust.
15734 (gimple_copy): Likewise.
15735 * ipa-cp.c (get_replacement_map): Likewise.
15736 (find_aggregate_values_for_callers_subset): Likewise.
15737 (known_aggs_to_agg_replacement_list): Likewise.
15738 * ipa-devirt.c (get_odr_type): Likewise.
15739 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
15740 (read_agg_replacement_chain): Likewise.
15741 * loop-iv.c (get_simple_loop_desc): Likewise.
15742 * lto-cgraph.c (input_node_opt_summary): Likewise.
15743 * lto-section-in.c (lto_new_in_decl_state): Likewise.
15744 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
15745 (input_eh_region): Likewise.
15746 (input_eh_lp): Likewise.
15747 (input_cfg): Likewise.
15748 * optabs.c (set_optab_libfunc): Likewise.
15749 (init_tree_optimization_optabs): Likewise.
15750 (set_conv_libfunc): Likewise.
15751 * passes.c (do_per_function_toporder): Likewise.
15752 * rtl.h: Don't use variable_size gty attribute.
15753 * sese.c (if_region_set_false_region): Adjust.
15754 * stringpool.c (gt_pch_save_stringpool): Likewise.
15755 * target-globals.c (save_target_globals): Likewise.
15756 * toplev.c (general_init): Likewise.
15757 * trans-mem.c (record_tm_replacement): Likewise.
15758 (split_bb_make_tm_edge): Likewise.
15759 * tree-cfg.c (move_sese_region_to_fn): Likewise.
15760 * tree-data-ref.h (lambda_vector_new): Likewise.
15761 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15762 * tree-iterator.c (tsi_link_before): Likewise.
15763 (tsi_link_after): Likewise.
15764 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15765 * tree-ssa-loop-niter.c (record_estimate): Likewise.
15766 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15767 * tree-ssa-operands.h: Don't use variable_size gty attribute.
15768 * tree-ssa.c (init_tree_ssa): Adjust.
15769 * tree-ssanames.c (set_range_info): Likewise.
15770 (get_ptr_info): Likewise.
15771 (duplicate_ssa_name_ptr_info): Likewise.
15772 (duplicate_ssa_name_range_info): Likewise.
15773 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
15774 (unpack_ts_fixed_cst_value_fields): Likewise.
15775 * tree.c (build_fixed): Likewise.
15776 (build_real): Likewise.
15777 (build_string): Likewise.
15778 (decl_priority_info): Likewise.
15779 (decl_debug_expr_insert): Likewise.
15780 (decl_value_expr_insert): Likewise.
15781 (decl_debug_args_insert): Likewise.
15782 (type_hash_add): Likewise.
15783 (build_omp_clause): Likewise.
15784 * ubsan.c (decl_for_type_insert): Likewise.
15785 * varasm.c (get_unnamed_section): Likewise.
15786 (get_noswitch_section): Likewise.
15787 (get_section): Likewise.
15788 (get_block_for_section): Likewise.
15789 (create_block_symbol): Likewise.
15790 (build_constant_desc): Likewise.
15791 (create_constant_pool): Likewise.
15792 (force_const_mem): Likewise.
15793 (record_tm_clone_pair): Likewise.
15794 * varpool.c (varpool_create_empty_node): Likewise.
15796 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
15798 * dwarf2out.c (tree_add_const_value_attribute): Call
15799 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
15800 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
15801 instead of ggc_internal_<x>alloc_stat.
15802 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
15803 (ggc_realloc): Likewise.
15804 * ggc-none.c (ggc_internal_alloc): Likewise.
15805 (ggc_internal_cleared_alloc): Likewise.
15806 * ggc-page.c: Likewise.
15807 * ggc.h (ggc_internal_alloc_stat): Likewise.
15808 (ggc_internal_alloc): Remove macro.
15809 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
15810 (ggc_internal_cleared_alloc): Remove macro.
15811 (GGC_RESIZEVEC): Adjust.
15812 (ggc_resizevar): Remove macro.
15813 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
15814 (ggc_internal_cleared_vec_alloc_stat): Likewise.
15815 (ggc_internal_vec_cleared_alloc): Remove macro.
15816 (ggc_alloc_atomic_stat): Drop _stat suffix.
15817 (ggc_alloc_atomic): Remove macro.
15818 (ggc_alloc_cleared_atomic): Remove macro.
15819 (ggc_alloc_string_stat): Drop _stat suffix.
15820 (ggc_alloc_string): Remove macro.
15821 (ggc_alloc_rtx_def_stat): Adjust.
15822 (ggc_alloc_tree_node_stat): Likewise.
15823 (ggc_alloc_cleared_tree_node_stat): Likewise.
15824 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
15825 (ggc_alloc_cleared_simd_clone_stat): Likewise.
15826 * gimple.c (gimple_build_omp_for): Likewise.
15827 (gimple_copy): Likewise.
15828 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
15829 * toplev.c (realloc_for_line_map): Adjust.
15830 * tree-data-ref.h (lambda_vector_new): Likewise.
15831 * tree-phinodes.c (allocate_phi_node): Likewise.
15832 * tree.c (grow_tree_vec_stat): Likewise.
15833 * vec.h (va_gc::reserve): Adjust.
15835 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
15837 * config/microblaze/microblaze.c (break_handler): New Declaration.
15838 (microblaze_break_function_p,microblaze_is_break_handler): New.
15839 (compute_frame_size): Use microblaze_break_function_p.
15840 Add the test of break_handler.
15841 (microblaze_function_prologue) : Add the test of variable
15842 break_handler. Check the fnname by BREAK_HANDLER_NAME.
15843 (microblaze_function_epilogue) : Add the test of break_handler.
15844 (microblaze_globalize_label) : Add the test of break_handler.
15845 Check the name by BREAK_HANDLER_NAME.
15847 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
15849 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
15850 microblaze_is_break_handler test.
15851 (call_internal1,call_value_intern): Use microblaze_break_function_p.
15852 Use SYMBOL_REF_DECL.
15854 * config/microblaze/microblaze-protos.h
15855 (microblaze_break_function_p,microblaze_is_break_handler):
15858 * doc/extend.texi (MicroBlaze break_handler Functions): Document
15859 new MicroBlaze break_handler functions.
15861 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15863 * doc/extend.texi (Size of an asm): Move node text according
15864 to its @menu entry position.
15866 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
15868 PR tree-optimization/61140
15869 PR tree-optimization/61150
15870 PR tree-optimization/61197
15871 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
15873 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
15875 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
15877 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
15879 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
15880 __SIZEOF_INT128__ is defined.
15882 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15884 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
15885 (rs6000_delegitimize_address): Use it.
15887 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
15889 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
15890 inplace argument. Store the new address in the original MEM when true.
15891 * emit-rtl.c (change_address_1): Likewise.
15892 (adjust_address_1, adjust_automodify_address_1, offset_address):
15893 Update accordingly.
15894 * rtl.h (plus_constant): Add an inplace argument.
15895 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
15896 when true. Avoid generating (plus X (const_int 0)).
15897 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
15898 in-place. Pass true to plus_constant.
15899 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
15901 2014-05-16 Dehao Chen <dehao@google.com>
15903 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
15905 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15908 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
15910 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
15912 2014-05-16 Dehao Chen <dehao@google.com>
15914 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
15915 optimize_function_for_size_p.
15916 * regs.h (REG_FREQ_FROM_BB): Likewise.
15918 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15921 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
15922 negt_reg_operand cases.
15923 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
15925 * config/sh/predicates.md (cbranch_treg_value): Simplify.
15927 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
15929 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
15932 2014-05-16 David Malcolm <dmalcolm@redhat.com>
15935 2014-04-29 David Malcolm <dmalcolm@redhat.com>
15937 * tree-cfg.c (dump_function_to_file): Dump the return type of
15938 functions, in a line to itself before the function body, mimicking
15939 the layout of a C function.
15941 2014-05-16 Dehao Chen <dehao@google.com>
15943 * cfghooks.c (make_forwarder_block): Use direct computation to
15944 get fall-through edge's count and frequency.
15946 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
15948 * config/arc/arc.c (arc_init): Fix typo in error message.
15949 * config/i386/i386.c (ix86_expand_builtin): Likewise.
15950 (split_stack_prologue_scratch_regno): Likewise.
15951 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
15952 word from error message.
15954 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15956 * ira-costs.c: Fix typo in comment.
15958 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
15960 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
15962 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
15964 * varpool.c (dump_varpool_node): Dump write-only flag.
15965 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
15967 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
15968 write-only variables.
15969 * ipa.c (process_references): New function.
15970 (set_readonly_bit): New function.
15971 (set_writeonly_bit): New function.
15972 (clear_addressable_bit): New function.
15973 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
15974 fix handling of aliases.
15975 * cgraph.h (struct varpool_node): Add writeonly flag.
15977 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
15979 PR rtl-optimization/60969
15980 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
15981 Calculate costs for this case.
15983 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
15985 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
15986 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
15988 2014-05-16 Richard Biener <rguenther@suse.de>
15990 PR tree-optimization/61194
15991 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
15992 bool patterns ending in a COND_EXPR.
15994 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
15996 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
15998 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16000 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
16001 where we were unable to cost an RTX.
16003 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16005 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
16008 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16009 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16011 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
16013 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16014 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16016 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
16017 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
16019 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16020 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16022 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
16025 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16026 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16028 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16031 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16032 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16034 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
16035 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
16037 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16038 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
16041 rotates and shifts.
16043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16044 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16046 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
16047 ZERO_EXTEND and SIGN_EXTEND better.
16049 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16050 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16052 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
16053 logical operations.
16055 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16056 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
16059 costs when costing loads and stores to memory.
16061 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16062 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
16064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
16067 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
16071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16072 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16074 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
16076 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
16078 (aarch64_rtx_mult_cost): New.
16079 (aarch64_rtx_costs): Use it, refactor as appropriate.
16081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16082 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
16084 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
16085 emit instructions, return number of instructions which would
16087 (aarch64_add_constant): Update call to aarch64_build_constant.
16088 (aarch64_output_mi_thunk): Likewise.
16089 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
16092 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16094 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
16095 (TARGET_RTX_COSTS): Call it.
16097 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16099 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
16100 (cortexa57_vector_cost): Likewise.
16101 (cortexa57_tunings): Use them.
16103 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
16105 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
16106 (cpu_addrcost_table): Use it.
16107 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
16108 (aarch64_address_cost): Rewrite using aarch64_classify_address,
16111 2014-05-16 Richard Biener <rguenther@suse.de>
16113 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
16114 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
16115 (visit_phi): Ignore edges marked as not executable.
16116 (class cond_dom_walker): New.
16117 (cond_dom_walker::before_dom_children): Value-number
16118 control statements and mark successor edges as not
16119 executable if possible.
16120 (run_scc_vn): First walk all control statements in
16121 dominator order, marking edges as not executable.
16122 * tree-inline.c (copy_edges_for_bb): Be not confused
16123 about random edge flags.
16125 2014-05-16 Richard Biener <rguenther@suse.de>
16127 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
16129 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
16132 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
16133 (__TM_simple_begin): Use it.
16134 (__TM_begin): Likewise.
16136 2014-05-15 Martin Jambor <mjambor@suse.cz>
16139 * ipa-prop.c (update_indirect_edges_after_inlining): Check
16140 type_preserved flag when the indirect edge is polymorphic.
16142 2014-05-15 Martin Jambor <mjambor@suse.cz>
16144 PR tree-optimization/61090
16145 * tree-sra.c (sra_modify_expr): Pass the current gsi to
16146 build_ref_for_model.
16148 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16150 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
16151 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
16153 2014-05-15 Jakub Jelinek <jakub@redhat.com>
16155 PR tree-optimization/61158
16156 * fold-const.c (fold_binary_loc): If X is zero-extended and
16157 shiftc >= prec, make sure zerobits is all ones instead of
16158 invoking undefined behavior.
16160 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16162 * regcprop.h: New file.
16163 * regcprop.c (skip_debug_insn_p): New decl.
16164 (replace_oldest_value_reg): Check skip_debug_insn_p.
16165 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
16166 * shrink-wrap.c: Include regcprop.h.
16167 (prepare_shrink_wrap): Call
16168 copyprop_hardreg_forward_bb_without_debug_insn.
16170 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16172 * shrink-wrap.h: Update comment.
16173 * shrink-wrap.c: Update comment.
16174 (next_block_for_reg): Rename to live_edge_for_reg.
16175 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
16176 (move_insn_for_shrink_wrap): Split live_edge.
16177 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
16179 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16181 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
16183 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
16184 * config/sparc/sparc.md (fptype_ut699): New attribute.
16185 (in_branch_delay): Return false if -mfix-ut699 is specified and
16186 fptype_ut699 is set to single.
16187 (truncdfsf2): Add fptype_ut699 attribute.
16188 (fix_truncdfsi2): Likewise.
16189 (floatsisf2): Change fptype attribute.
16190 (fix_truncsfsi2): Likewise.
16191 (negtf2_notv9): Delete.
16192 (negtf2_v9): Likewise.
16193 (negtf2_hq): New instruction.
16194 (negtf2): New instruction and splitter.
16195 (negdf2_notv9): Rewrite.
16196 (abstf2_notv9): Delete.
16197 (abstf2_hq_v9): Likewise.
16198 (abstf2_v9): Likewise.
16199 (abstf2_hq): New instruction.
16200 (abstf2): New instruction and splitter.
16201 (absdf2_notv9): Rewrite.
16203 2014-05-14 Cary Coutant <ccoutant@google.com>
16206 * opts.c (common_handle_option): Don't special-case "-g".
16207 (set_debug_level): Default to at least level 2 with "-g".
16209 2014-05-14 DJ Delorie <dj@redhat.com>
16211 * config/msp430/msp430.c (msp430_builtin): Add
16212 MSP430_BUILTIN_DELAY_CYCLES.
16213 (msp430_init_builtins): Register void __delay_cycles(long long).
16214 (msp430_builtin_decl): Add it.
16215 (cg_magic_constant): New.
16216 (msp430_expand_delay_cycles): New.
16217 (msp430_expand_builtin): Call it.
16218 (msp430_print_operand_raw): Change integer printing from "int" to
16220 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
16221 (delay_cycles_start): New.
16222 (delay_cycles_end): New.
16223 (delay_cycles_32): New.
16224 (delay_cycles_32x): New.
16225 (delay_cycles_16): New.
16226 (delay_cycles_16x): New.
16227 (delay_cycles_2): New.
16228 (delay_cycles_1): New.
16229 * doc/extend.texi: Document __delay_cycles().
16231 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
16233 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
16234 length attribute computation.
16236 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
16239 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
16241 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
16244 * config/sparc/sparc.md: Fix types of low and high in DI constant
16245 splitter. Use gen_int_mode in some other splitters.
16247 2014-05-14 Martin Jambor <mjambor@suse.cz>
16250 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
16252 2014-05-14 James Norris <jnorris@codesourcery.com>
16254 * omp-low.c (expand_parallel_call): Remove shadow variable.
16255 (expand_omp_taskreg): Likewise.
16257 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
16259 * common/config/i386/i386-common.c
16260 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
16261 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
16262 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
16263 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
16264 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
16265 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
16266 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
16267 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
16268 xsavecintrin.h, xsavesintrin.h.
16269 (x86_64-*-*): Ditto.
16270 * config/i386/clflushoptintrin.h: New.
16271 * config/i386/xsavecintrin.h: Ditto.
16272 * config/i386/xsavesintrin.h: Ditto.
16273 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
16274 (bit_XSAVES): Ditto.
16275 (bit_XSAVES): Ditto.
16276 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
16277 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
16279 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16280 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
16281 OPTION_MASK_ISA_XSAVES.
16282 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
16283 -mxsavec, -mxsaves.
16284 (PTA_CLFLUSHOPT) Define.
16285 (PTA_XSAVEC): Ditto.
16286 (PTA_XSAVES): Ditto.
16287 (ix86_option_override_internal): Handle new options.
16288 (ix86_valid_target_attribute_inner_p): Ditto.
16289 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
16290 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
16291 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
16292 (bdesc_special_args): Add __builtin_ia32_xsaves,
16293 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
16294 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
16295 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
16296 (ix86_expand_builtin): Handle new builtins.
16297 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
16298 (TARGET_CLFLUSHOPT_P): Ditto.
16299 (TARGET_XSAVEC): Ditto.
16300 (TARGET_XSAVEC_P): Ditto.
16301 (TARGET_XSAVES): Ditto.
16302 (TARGET_XSAVES_P): Ditto.
16303 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
16304 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
16305 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
16307 (ANY_XRSTOR64): Ditto.
16309 (xrstor): Change into <xrstor>.
16310 (xrstor_rex64): Change into <xrstor>_rex64.
16311 (xrstor64): Change into <xrstor>64
16313 * config/i386/i386.opt (mclflushopt): New.
16316 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
16318 * doc/invoke.texi: Document new options.
16320 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16322 PR rtl-optimization/60866
16323 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
16324 Default it to -1. Pass it down to init_simplejump_data.
16325 (init_simplejump_data): New parameter old_seqno. Pass it down
16326 to get_seqno_for_a_jump.
16327 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
16328 initializing new jump seqno as a last resort. Add comment.
16329 (sel_redirect_edge_and_branch): Save old seqno of the conditional
16330 jump and pass it down to sel_init_new_insn.
16331 (sel_redirect_edge_and_branch_force): Likewise.
16333 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
16335 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
16336 shifted values to avoid build warning.
16338 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
16340 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
16341 * cfgrtl.c (rtl_merge_blocks): Fix comment.
16342 (cfg_layout_merge_blocks): Likewise.
16343 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
16345 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
16347 PR rtl-optimization/60901
16348 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
16349 bb predecessor belongs to the same scheduling region. Adjust comment.
16351 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
16353 * doc/sourcebuild.texi: (dfp_hw): Document.
16354 (p8vector_hw): Likewise.
16355 (powerpc_eabi_ok): Likewise.
16356 (powerpc_elfv2): Likewise.
16357 (powerpc_htm_ok): Likewise.
16358 (ppc_recip_hw): Likewise.
16359 (vsx_hw): Likewise.
16361 2014-05-13 Cary Coutant <ccoutant@google.com>
16363 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
16365 2014-05-13 David Malcolm <dmalcolm@redhat.com>
16367 * gengtype-parse.c (require3): Eliminate in favor of...
16369 (require_template_declaration): Update to support optional single *
16372 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
16373 (create_user_defined_type): Handle a single level of explicit
16374 pointerness within template arguments.
16375 (struct write_types_data): Add field "kind".
16376 (filter_type_name): Handle "*" character.
16377 (write_user_func_for_structure_ptr): Require a write_types_data
16378 rather than just a prefix string, so that we can look up the kind
16379 of the wtd and use it as an index into wrote_user_func_for_ptr,
16380 ensuring that such functions are written at most once. Support
16381 subclasses by invoking the marking function of the ultimate base class.
16382 (write_user_func_for_structure_body): Require a write_types_data
16383 rather than just a prefix string, so that we can pass this to
16384 write_user_func_for_structure_ptr.
16385 (write_func_for_structure): Likewise.
16386 (ggc_wtd): Add initializer of new "kind" field.
16387 (pch_wtd): Likewise.
16389 * gengtype.h (enum write_types_kinds): New.
16390 (struct type): Add field wrote_user_func_for_ptr to the "s"
16393 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16395 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
16396 instead of const_binop.
16397 (fold_binary_loc): Likewise.
16399 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
16401 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
16402 calculation to match get_ref_base_and_extent.
16404 2014-05-13 Catherine Moore <clm@codesourcery.com>
16405 Sandra Loosemore <sandra@codesourcery.com>
16407 * configure.ac: Fix assembly for explicit JALR relocation check.
16408 * configure: Regenerate.
16410 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16412 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
16413 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
16414 Remove associated type declarations and initialisations.
16415 (arm_expand_neon_builtin): Likewise.
16416 (neon_emit_pair_result_insn): Delete.
16417 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
16418 * config/arm/neon.md (neon_vtrn<mode>): Delete.
16419 (neon_vzip<mode>): Likewise.
16420 (neon_vuzp<mode>): Likewise.
16422 2014-05-13 Richard Biener <rguenther@suse.de>
16425 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
16426 it needs revisiting whether the call still may be tail-called.
16428 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16430 * rtl.def (SYMBOL_REF): Remove middle "0" field.
16431 * rtl.h (block_symbol): Reduce number of fields to 2.
16432 (rtx_def): Add u2.symbol_ref_flags.
16433 (SYMBOL_REF_FLAGS): Use it.
16434 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
16435 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
16436 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
16437 Lower index of SYMBOL_REF_DATA.
16438 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
16439 Print SYMBOL_REF_FLAGS at the same time.
16440 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
16442 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16444 * rtl.def (VAR_LOCATION): Remove "i" field.
16445 * rtl.h (rtx_def): Add u2.var_location_status.
16446 (PAT_VAR_LOCATION_STATUS): Use it.
16447 (gen_rtx_VAR_LOCATION): Declare.
16448 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
16449 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
16450 * var-tracking.c (emit_note_insn_var_location): Remove casts.
16452 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16454 * rtl.def (scratch): Fix outdated comment and remove "0" field.
16455 * gengtype.c (adjust_field_rtx_def): Update accordingly.
16457 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16459 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
16460 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
16461 * rtl.h (rtx_def): Add insn_uid to u2 field.
16462 (RTX_FLAG_CHECK8): Delete in favor of...
16463 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
16464 (INSN_DELETED_P): Update accordingly.
16465 (INSN_UID): Use u2.insn_uid.
16466 (INSN_CHAIN_CODE_P): Define.
16467 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
16468 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
16469 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
16470 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
16471 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
16472 indices accordingly.
16473 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
16474 Update indices for insn-chain rtxes.
16475 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
16476 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
16477 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
16478 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
16479 * combine.c (try_combine): Likewise.
16480 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16482 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16484 * rtl.def (REG): Remove middle field.
16485 * rtl.h (rtx_def): Add orignal_regno to u2.
16486 (ORIGINAL_REGNO): Use it instead of field 1.
16487 (REG_ATTRS): Lower field index accordingly.
16488 * gengtype.c (adjust_field_rtx_def): Remove handling of
16489 ORIGINAL_REGNO. Move REG_ATTRS index down.
16490 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
16491 code that prints the REGNO.
16493 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16495 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
16498 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
16500 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
16502 2014-05-13 Bin Cheng <bin.cheng@arm.com>
16504 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
16505 (alloc_iv): Lower base expressions containing ADDR_EXPR.
16507 2014-05-13 Ian Bolton <ian.bolton@arm.com>
16509 * config/aarch64/aarch64-protos.h
16510 (aarch64_hard_regno_caller_save_mode): New prototype.
16511 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
16513 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
16515 2014-05-13 Christian Bruel <christian.bruel@st.com>
16517 * target.def (mode_switching): New hook vector.
16518 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
16519 (mode_exit, modepriority_to_mode): Likewise.
16520 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
16521 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16522 * target.h: Include tm.h and hard-reg-set.h.
16523 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
16524 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
16525 * doc/tm.texi Regenerate.
16526 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16527 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16528 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
16529 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
16530 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
16531 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16532 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
16533 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
16534 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
16535 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
16536 (ix86_emit_mode_set): Hookify.
16537 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
16539 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
16540 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
16541 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
16542 (epiphany_mode_priority_to_mode): Remove declaration.
16543 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
16544 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
16545 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
16547 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
16548 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
16549 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
16551 2014-05-13 Jakub Jelinek <jakub@redhat.com>
16554 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
16555 is const0_rtx, return immediately. Don't test count == 0 when
16558 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
16560 * Makefile.in: add shrink-wrap.o.
16561 * config/i386/i386.c: include "shrink-wrap.h"
16562 * function.c: Likewise.
16563 (requires_stack_frame_p, next_block_for_reg,
16564 move_insn_for_shrink_wrap, prepare_shrink_wrap,
16565 dup_block_and_redirect): Move to shrink-wrap.c
16566 (thread_prologue_and_epilogue_insns): Extract three code segments
16567 as functions in shrink-wrap.c
16568 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
16570 * shrink-wrap.c: New file.
16571 * shrink-wrap.h: New file.
16573 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16575 * doc/extend.texi: Reflect current numbers of pragmas. Remove
16576 reference to Solaris.
16578 2014-05-12 Mike Stump <mikestump@comcast.net>
16581 * genattrtab.c (filename): Add.
16582 (convert_set_attr_alternative): Improve error message.
16583 (check_defs): Restore read_md_filename for error messages.
16584 (gen_insn): Save filename.
16586 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
16588 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
16589 -fno-local-ivars and -fivar-visibility.
16590 * c-family/c.opt: Make -Wshadow also implicitly enable
16593 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
16595 * doc/tm.texi: Remove reference to deleted macro.
16596 * doc/tm.texi.in: Likewise.
16598 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16601 * config/avr/avr.c (avr_out_store_psi): Use correct constant
16604 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
16607 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
16608 * config/arm/aout.h (License): Same.
16609 * config/arm/bpabi.h (License): Same.
16610 * config/arm/elf.h (License): Same.
16611 * config/arm/linux-elf.h (License): Same.
16612 * config/arm/linux-gas.h (License): Same.
16613 * config/arm/netbsd-elf.h (License): Same.
16614 * config/arm/uclinux-eabi.h (License): Same.
16615 * config/arm/uclinux-elf.h (License): Same.
16616 * config/arm/vxworks.h (License): Same.
16618 2014-05-11 Jakub Jelinek <jakub@redhat.com>
16620 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
16621 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
16622 number of operands to 3.
16623 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
16624 * tree-nested.c (convert_nonlocal_omp_clauses,
16625 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
16626 * gimplify.c (gimplify_scan_omp_clauses): Handle
16627 OMP_CLAUSE_LINEAR_STMT.
16628 * omp-low.c (lower_rec_input_clauses): Fix typo.
16629 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
16630 cast between Fortran boolean_type_node and C _Bool if
16633 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
16635 PR tree-optimization/61136
16636 * wide-int.h (multiple_of_p): Define a version that doesn't return
16638 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
16639 integer_zerop/const_binop pair.
16640 (multiple_of_p): Likewise, converting both operands to widest_int
16643 2014-05-09 Teresa Johnson <tejohnson@google.com>
16645 * cgraphunit.c (analyze_functions): Use correct dump file.
16647 2014-05-09 Florian Weimer <fweimer@redhat.com>
16649 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
16651 (stack_protect_return_slot_p): New function.
16652 (expand_used_vars): Call stack_protect_decl_p and
16653 stack_protect_return_slot_p for -fstack-protector-strong.
16655 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
16656 Andrew Haley <aph@redhat.com>
16657 Richard Sandiford <rdsandiford@googlemail.com>
16659 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
16662 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
16664 PR middle-end/61111
16665 * fold-const.c (fold_binary_loc): Changed width of mask.
16667 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16669 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
16670 unsigned int initializers for regno_in, regno_out.
16672 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
16675 * config/avr/avr.md (cc): Add new attribute set_vzn.
16676 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
16677 Set cc insn attribute to set_vzn instead of set_zn for alternatives
16678 with INC, DEC or NEG.
16679 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
16680 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
16681 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
16683 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16686 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16688 * wide-int.cc (UTItype): Define.
16689 (UDWtype): Define for appropriate W_TYPE_SIZE.
16691 2014-05-09 Richard Biener <rguenther@suse.de>
16693 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
16694 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
16695 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
16696 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
16697 ssa_propagate): Adjust.
16699 2014-05-08 Jeff Law <law@redhat.com>
16701 PR tree-optimization/61009
16702 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
16703 tri-state rather than a boolean. When a block is too big to
16704 thread through, inform caller via negative return value.
16705 (thread_across_edge): If a block was too big for normal threading,
16706 then it's too big for a joiner too, so remove temporary equivalences
16707 and return immediately.
16709 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
16710 Matthias Klose <doko@ubuntu.com>
16713 * optc-gen.awk: Fix option handling for -Wunused-parameter.
16715 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16718 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
16720 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
16723 * config/alpha/alpha.c: Include gimple-iterator.h.
16724 (alpha_gimple_fold_builtin): New function. Move
16725 ALPHA_BUILTIN_UMULH folding from ...
16726 (alpha_fold_builtin): ... here.
16727 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
16729 2014-05-08 Wei Mi <wmi@google.com>
16732 * config/i386/i386.c (ix86_compute_frame_layout): Update
16733 preferred_stack_boundary for call, expanded from tls descriptor.
16734 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
16735 to depend on SP register.
16736 (*tls_local_dynamic_base_32_gnu): Ditto.
16737 (*tls_local_dynamic_32_once): Ditto.
16738 (tls_global_dynamic_64_<mode>): Set
16739 ix86_tls_descriptor_calls_expanded_in_cfun.
16740 (tls_local_dynamic_base_64_<mode>): Ditto.
16741 (tls_global_dynamic_32): Set
16742 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
16743 to depend on SP register.
16744 (tls_local_dynamic_base_32): Ditto.
16746 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16748 * config/arm/arm_neon.h: Update comment.
16749 * config/arm/neon-docgen.ml: Delete.
16750 * config/arm/neon-gen.ml: Delete.
16751 * doc/arm-neon-intrinsics.texi: Update comment.
16753 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16755 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
16757 (vand, vorr, veor, vorn, vbic): Remove.
16758 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
16760 (neon_vsub_unspec): Likewise.
16761 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
16763 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16765 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
16766 (vadd_s16): Likewise.
16767 (vadd_s32): Likewise.
16768 (vadd_f32): Likewise.
16769 (vadd_u8): Likewise.
16770 (vadd_u16): Likewise.
16771 (vadd_u32): Likewise.
16772 (vadd_s64): Likewise.
16773 (vadd_u64): Likewise.
16774 (vaddq_s8): Likewise.
16775 (vaddq_s16): Likewise.
16776 (vaddq_s32): Likewise.
16777 (vaddq_s64): Likewise.
16778 (vaddq_f32): Likewise.
16779 (vaddq_u8): Likewise.
16780 (vaddq_u16): Likewise.
16781 (vaddq_u32): Likewise.
16782 (vaddq_u64): Likewise.
16783 (vmul_s8): Likewise.
16784 (vmul_s16): Likewise.
16785 (vmul_s32): Likewise.
16786 (vmul_f32): Likewise.
16787 (vmul_u8): Likewise.
16788 (vmul_u16): Likewise.
16789 (vmul_u32): Likewise.
16790 (vmul_p8): Likewise.
16791 (vmulq_s8): Likewise.
16792 (vmulq_s16): Likewise.
16793 (vmulq_s32): Likewise.
16794 (vmulq_f32): Likewise.
16795 (vmulq_u8): Likewise.
16796 (vmulq_u16): Likewise.
16797 (vmulq_u32): Likewise.
16798 (vsub_s8): Likewise.
16799 (vsub_s16): Likewise.
16800 (vsub_s32): Likewise.
16801 (vsub_f32): Likewise.
16802 (vsub_u8): Likewise.
16803 (vsub_u16): Likewise.
16804 (vsub_u32): Likewise.
16805 (vsub_s64): Likewise.
16806 (vsub_u64): Likewise.
16807 (vsubq_s8): Likewise.
16808 (vsubq_s16): Likewise.
16809 (vsubq_s32): Likewise.
16810 (vsubq_s64): Likewise.
16811 (vsubq_f32): Likewise.
16812 (vsubq_u8): Likewise.
16813 (vsubq_u16): Likewise.
16814 (vsubq_u32): Likewise.
16815 (vsubq_u64): Likewise.
16816 (vand_s8): Likewise.
16817 (vand_s16): Likewise.
16818 (vand_s32): Likewise.
16819 (vand_u8): Likewise.
16820 (vand_u16): Likewise.
16821 (vand_u32): Likewise.
16822 (vand_s64): Likewise.
16823 (vand_u64): Likewise.
16824 (vandq_s8): Likewise.
16825 (vandq_s16): Likewise.
16826 (vandq_s32): Likewise.
16827 (vandq_s64): Likewise.
16828 (vandq_u8): Likewise.
16829 (vandq_u16): Likewise.
16830 (vandq_u32): Likewise.
16831 (vandq_u64): Likewise.
16832 (vorr_s8): Likewise.
16833 (vorr_s16): Likewise.
16834 (vorr_s32): Likewise.
16835 (vorr_u8): Likewise.
16836 (vorr_u16): Likewise.
16837 (vorr_u32): Likewise.
16838 (vorr_s64): Likewise.
16839 (vorr_u64): Likewise.
16840 (vorrq_s8): Likewise.
16841 (vorrq_s16): Likewise.
16842 (vorrq_s32): Likewise.
16843 (vorrq_s64): Likewise.
16844 (vorrq_u8): Likewise.
16845 (vorrq_u16): Likewise.
16846 (vorrq_u32): Likewise.
16847 (vorrq_u64): Likewise.
16848 (veor_s8): Likewise.
16849 (veor_s16): Likewise.
16850 (veor_s32): Likewise.
16851 (veor_u8): Likewise.
16852 (veor_u16): Likewise.
16853 (veor_u32): Likewise.
16854 (veor_s64): Likewise.
16855 (veor_u64): Likewise.
16856 (veorq_s8): Likewise.
16857 (veorq_s16): Likewise.
16858 (veorq_s32): Likewise.
16859 (veorq_s64): Likewise.
16860 (veorq_u8): Likewise.
16861 (veorq_u16): Likewise.
16862 (veorq_u32): Likewise.
16863 (veorq_u64): Likewise.
16864 (vbic_s8): Likewise.
16865 (vbic_s16): Likewise.
16866 (vbic_s32): Likewise.
16867 (vbic_u8): Likewise.
16868 (vbic_u16): Likewise.
16869 (vbic_u32): Likewise.
16870 (vbic_s64): Likewise.
16871 (vbic_u64): Likewise.
16872 (vbicq_s8): Likewise.
16873 (vbicq_s16): Likewise.
16874 (vbicq_s32): Likewise.
16875 (vbicq_s64): Likewise.
16876 (vbicq_u8): Likewise.
16877 (vbicq_u16): Likewise.
16878 (vbicq_u32): Likewise.
16879 (vbicq_u64): Likewise.
16880 (vorn_s8): Likewise.
16881 (vorn_s16): Likewise.
16882 (vorn_s32): Likewise.
16883 (vorn_u8): Likewise.
16884 (vorn_u16): Likewise.
16885 (vorn_u32): Likewise.
16886 (vorn_s64): Likewise.
16887 (vorn_u64): Likewise.
16888 (vornq_s8): Likewise.
16889 (vornq_s16): Likewise.
16890 (vornq_s32): Likewise.
16891 (vornq_s64): Likewise.
16892 (vornq_u8): Likewise.
16893 (vornq_u16): Likewise.
16894 (vornq_u32): Likewise.
16895 (vornq_u64): Likewise.
16897 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16899 * wide-int.cc (UTItype): Define.
16900 (UDWtype): Define for appropriate W_TYPE_SIZE.
16902 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
16904 PR tree-optimization/59100
16905 * tree-ssa-phiopt.c: Include tree-inline.h.
16906 (neutral_element_p, absorbing_element_p): New functions.
16907 (value_replacement): Handle conditional binary operations with a
16908 neutral or absorbing element.
16910 2014-05-08 Richard Biener <rguenther@suse.de>
16912 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
16913 folding the expression.
16914 (valueize_expr): Remove.
16915 (visit_reference_op_load): Do not valueize the result of
16917 (simplify_binary_expression): Likewise.
16918 (simplify_unary_expression): Likewise.
16920 2014-05-08 Richard Biener <rguenther@suse.de>
16922 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
16923 looking at TYPE_ARG_TYPES.
16925 2014-05-08 Richard Biener <rguenther@suse.de>
16927 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
16928 pointer propagation special-case.
16930 2014-05-08 Bin Cheng <bin.cheng@arm.com>
16932 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
16933 core part of address expressions.
16935 2014-05-08 Alan Modra <amodra@gmail.com>
16938 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
16939 loads and stores when -mno-strict-align at any alignment.
16940 (expand_block_clear): Similarly. Also correct calculation of
16943 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
16945 PR middle-end/39246
16946 * tree-complex.c (expand_complex_move): Keep line info when expanding
16948 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
16949 of complex expression. Use new argument to display correct location
16950 for values coming from phi statement.
16951 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
16952 (warn_uninitialized_phi): Pass location of phi argument to
16954 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
16955 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
16957 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16959 * config/rs6000/predicates.md (indexed_address_mem): New.
16960 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
16961 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
16962 fpstore_ux, fpstore_u.
16963 (sign_extend, indexed, update): New.
16964 (cell_micro): Adjust.
16965 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
16966 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
16967 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
16968 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
16969 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
16970 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
16971 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
16972 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
16973 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
16974 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
16975 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
16976 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
16977 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
16978 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
16979 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
16981 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
16982 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
16983 *vsx_extract_<mode>_store): Adjust.
16984 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
16985 is_cracked_insn, insn_must_be_first_in_group,
16986 insn_must_be_last_in_group): Adjust.
16988 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
16990 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
16991 ppc440-fpstore): Adjust.
16992 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
16993 ppc476-fpstore): Adjust.
16994 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
16995 ppc601-fpstore): Adjust.
16996 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
16998 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
17000 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
17001 ppc7450-fpstore): Adjust.
17002 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
17003 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
17004 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
17006 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
17007 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
17008 cell-fpstore, cell-fpstore-update): Adjust.
17009 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
17010 ppce300c3_store, ppce300c3_fpstore): Adjust.
17011 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
17012 e500mc_fpstore): Adjust.
17013 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
17014 e500mc64_store, e500mc64_fpstore): Adjust.
17015 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
17016 e5500_fpstore): Adjust.
17017 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
17018 e6500_fpstore): Adjust.
17019 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
17021 * config/rs6000/power4.md (power4-load, power4-load-ext,
17022 power4-load-ext-update, power4-load-ext-update-indexed,
17023 power4-load-update-indexed, power4-load-update, power4-fpload,
17024 power4-fpload-update, power4-store, power4-store-update,
17025 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
17027 * config/rs6000/power5.md (power5-load, power5-load-ext,
17028 power5-load-ext-update, power5-load-ext-update-indexed,
17029 power5-load-update-indexed, power5-load-update, power5-fpload,
17030 power5-fpload-update, power5-store, power5-store-update,
17031 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
17033 * config/rs6000/power6.md (power6-load, power6-load-ext,
17034 power6-load-update, power6-load-update-indexed,
17035 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
17036 power6-fpload-update, power6-store, power6-store-update,
17037 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
17039 * config/rs6000/power7.md (power7-load, power7-load-ext,
17040 power7-load-update, power7-load-update-indexed,
17041 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
17042 power7-fpload-update, power7-store, power7-store-update,
17043 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
17045 * config/rs6000/power8.md (power8-load, power8-load-update,
17046 power8-load-ext, power8-load-ext-update, power8-fpload,
17047 power8-fpload-update, power8-store, power8-store-update-indexed,
17048 power8-fpstore, power8-fpstore-update): Adjust.
17049 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
17051 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
17052 titan_lsu_store, titan_lsu_fpstore): Adjust.
17053 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
17055 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
17058 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
17059 unrolled byte insns. Emit address increments after move insns.
17061 2014-05-07 David Malcolm <dmalcolm@redhat.com>
17063 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
17064 const_gimple, rather than a gimple.
17065 (gimple_call_builtin_p): Likewise, for the three variants.
17067 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
17068 (gimple_call_builtin_p): Likewise, for the three variants.
17070 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
17072 PR tree-optimization/61095
17073 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
17075 2014-05-07 Richard Biener <rguenther@suse.de>
17077 PR tree-optimization/61034
17078 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
17079 (maybe_skip_until): Use translate to take into account
17080 lattices when trying to do disambiguations.
17081 (get_continuation_for_phi_1): Likewise.
17082 (get_continuation_for_phi): Adjust for added translate arguments.
17083 (walk_non_aliased_vuses): Likewise.
17084 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
17085 (walk_non_aliased_vuses): Likewise.
17086 (call_may_clobber_ref_p_1): Declare.
17087 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
17088 calls. Stop early if we are only supposed to disambiguate.
17089 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
17091 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
17093 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
17094 Emit an error when the function has arguments.
17096 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17098 * cfgloop.h (unswitch_loops): Remove.
17099 * doc/passes.texi: Remove references to loop-unswitch.c
17100 * timevar.def (TV_LOOP_UNSWITCH): Remove.
17102 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
17104 * tree-vect-data-refs.c (vect_grouped_load_supported): New
17105 check for loads group of length 3.
17106 (vect_permute_load_chain): New permutations for loads group of
17108 * tree-vect-stmts.c (vect_model_load_cost): Change cost
17109 of vec_perm_shuffle for the new permutations.
17111 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
17113 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
17114 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
17115 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
17116 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
17117 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
17118 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
17119 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
17120 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
17122 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
17124 * loop-unswitch.c: Delete.
17126 2014-05-07 Richard Biener <rguenther@suse.de>
17128 * config.gcc: Always set need_64bit_hwint to yes.
17130 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
17132 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
17133 of using optimize_size.
17135 2014-05-06 Mike Stump <mikestump@comcast.net>
17137 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
17139 2014-05-06 Joseph Myers <joseph@codesourcery.com>
17141 * config/i386/sse.md (*mov<mode>_internal)
17142 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
17143 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
17144 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
17145 (*<code><mode>3, *andnot<mode>3<mask_name>)
17146 (<mask_codefor><code><mode>3<mask_name>): Only consider
17147 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
17149 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17152 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
17154 * lra-constraints.c (valid_address_p): Move earlier in file.
17155 Add a constraint argument to the address_info version.
17156 (satisfies_memory_constraint_p): New function.
17157 (satisfies_address_constraint_p): Likewise.
17158 (process_alt_operands, curr_insn_transform): Use them.
17159 (process_address): Pass the constraint to valid_address_p when
17160 checking address operands.
17162 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
17164 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
17165 to their respective blocks. Fix inadvertent use of "node".
17167 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
17169 * emit-rtl.c (init_derived_machine_modes): New functionm, split
17171 (init_emit_once): ...here.
17172 * rtl.h (init_derived_machine_modes): Declare.
17173 * toplev.c (do_compile): Call it even if no_backend.
17175 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
17176 Mike Stump <mikestump@comcast.net>
17177 Richard Sandiford <rdsandiford@googlemail.com>
17178 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17180 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
17181 (rtx_equal_for_memref_p): Update comment.
17182 (adjust_offset_for_component_ref): Use wide-int interfaces.
17183 * builtins.c (get_object_alignment_2): Likewise.
17184 (c_readstr): Likewise.
17185 (target_char_cast): Add comment.
17186 (determine_block_size): Use wide-int interfaces.
17187 (expand_builtin_signbit): Likewise.
17188 (fold_builtin_int_roundingfn): Likewise.
17189 (fold_builtin_bitop): Likewise.
17190 (fold_builtin_bswap): Likewise.
17191 (fold_builtin_logarithm): Use signop.
17192 (fold_builtin_pow): Likewise.
17193 (fold_builtin_memory_op): Use wide-int interfaces.
17194 (fold_builtin_object_size): Likewise.
17195 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
17196 nb_iterations_estimate.
17197 (record_niter_bound): Use wide-int interfaces.
17198 (get_estimated_loop_iterations_int): Likewise.
17199 (get_estimated_loop_iterations): Likewise.
17200 (get_max_loop_iterations): Likewise.
17201 * cfgloop.h: Include wide-int.h.
17202 (struct nb_iter_bound): Change bound to widest_int.
17203 (struct loop): Change nb_iterations_upper_bound and
17204 nb_iterations_estimate to widest_int.
17205 (record_niter_bound): Switch to use widest_int.
17206 (get_estimated_loop_iterations): Likewise.
17207 (get_max_loop_iterations): Likewise.
17208 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
17209 update for wide-int.
17210 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
17211 * combine.c (try_combine): Likewise.
17212 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
17213 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
17215 (aarch64_float_const_representable_p): Likewise.
17216 * config/arc/arc.c: Include wide-int.h.
17217 (arc_can_use_doloop_p): Use wide-int interfaces.
17218 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
17219 (vfp3_const_double_index): Likewise.
17220 * config/avr/avr.c (avr_out_round): Likewise.
17221 (avr_fold_builtin): Likewise.
17222 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
17223 (bfin_can_use_doloop_p): Likewise.
17224 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
17225 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
17226 * config/i386/i386.c: Include wide-int.h.
17227 (ix86_data_alignment): Use wide-int interfaces.
17228 (ix86_local_alignment): Likewise.
17229 (ix86_emit_swsqrtsf): Update real_from_integer.
17230 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
17231 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
17232 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
17233 (zero_constant): Likewise.
17234 (input_operand): Likewise.
17235 (splat_input_operand): Likewise.
17236 (non_logical_cint_operand): Change const_double to const_wide_int.
17237 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
17238 (easy_altivec_constant): Remove comment.
17239 (paired_expand_vector_init): Use CONSTANT_P.
17240 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
17241 (rs6000_emit_move): Update checks.
17242 (rs6000_aggregate_candidate): Use wide-int interfaces.
17243 (rs6000_expand_ternop_builtin): Likewise.
17244 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
17245 (rs6000_assemble_integer): Likewise.
17246 (rs6000_hash_constant): Likewise.
17247 (output_toc): Likewise.
17248 (rs6000_rtx_costs): Likewise.
17249 (rs6000_emit_swrsqrt); Update call to real_from_integer.
17250 * config/rs6000/rs6000-c.c: Include wide-int.h.
17251 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
17252 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
17253 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
17254 Handle CONST_WIDE_INT.
17255 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
17256 Use tree_fits_uhwi_p.
17257 * config/sparc/sparc.c: Include wide-int.h.
17258 (sparc_fold_builtin): Use wide-int interfaces.
17259 * config/vax/vax.c: Include wide-int.h.
17260 (vax_float_literal): Use real_from_integer.
17261 * coretypes.h (struct hwivec_def): New.
17263 (const_hwivec): New.
17264 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
17265 (equiv_constant): Handle CONST_WIDE_INT.
17266 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
17267 (cselib_hash_rtx): Handle CONST_WIDE_INT.
17268 * dbxout.c (stabstr_U): Use wide-int interfaces.
17269 (dbxout_type): Update to use cst_fits_shwi_p.
17270 * defaults.h (LOG2_BITS_PER_UNIT): Define.
17271 (TARGET_SUPPORTS_WIDE_INT): Add default.
17272 * dfp.c: Include wide-int.h.
17273 (decimal_real_to_integer2): Use wide-int interfaces and rename to
17274 decimal_real_to_integer.
17275 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
17276 decimal_real_to_integer.
17277 * doc/generic.texi (Constant expressions): Update for wide_int.
17278 * doc/rtl.texi (const_double): Likewise.
17279 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
17280 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
17281 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
17282 (REAL_VALUE_FROM_INT): Remove.
17283 (TARGET_SUPPORTS_WIDE_INT): New.
17284 * doc/tm.texi: Regenerate.
17285 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
17286 * double-int.h: Include wide-int.h.
17287 (struct wi::int_traits): New.
17288 * dwarf2out.c (get_full_len): New.
17289 (dw_val_equal_p): Add case dw_val_class_wide_int.
17290 (size_of_loc_descr): Likewise.
17291 (output_loc_operands): Likewise.
17292 (insert_double): Remove.
17293 (insert_wide_int): New.
17294 (add_AT_wide): New.
17295 (print_die): Add case dw_val_class_wide_int.
17296 (attr_checksum): Likewise.
17297 (attr_checksum_ordered): Likewise.
17298 (same_dw_val_p): Likewise.
17299 (size_of_die): Likewise.
17300 (value_format): Likewise.
17301 (output_die): Likewise.
17302 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
17304 (clz_loc_descriptor): Use wide-int interfaces.
17305 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
17306 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
17307 (round_up_to_align): Use wide-int interfaces.
17308 (field_byte_offset): Likewise.
17309 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
17310 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
17311 CONST_DOUBLE handling. Use wide-int interfaces.
17312 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
17313 (gen_enumeration_type_die): Use add_AT_wide.
17314 (hash_loc_operands): Add case dw_val_class_wide_int.
17315 (compare_loc_operands): Likewise.
17316 * dwarf2out.h: Include wide-int.h.
17317 (wide_int_ptr): New.
17318 (enum dw_val_class): Add dw_val_class_wide_int.
17319 (struct dw_val_struct): Add val_wide.
17320 * emit-rtl.c (const_wide_int_htab): New.
17321 (const_wide_int_htab_hash): New.
17322 (const_wide_int_htab_eq): New.
17323 (lookup_const_wide_int): New.
17324 (const_double_htab_hash): Use wide-int interfaces.
17325 (const_double_htab_eq): Likewise.
17326 (rtx_to_double_int): Conditionally compile for wide-int.
17327 (immed_double_int_const): Rename to immed_wide_int_const and
17328 update for wide-int.
17329 (immed_double_const): Conditionally compile for wide-int.
17330 (init_emit_once): Use wide-int interfaces.
17331 * explow.c (plus_constant): Likewise.
17332 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
17333 (lshift_value): Use wide-int interfaces.
17334 (expand_mult): Likewise.
17335 (choose_multiplier): Likewise.
17336 (expand_smod_pow2): Likewise.
17337 (make_tree): Likewise.
17338 * expr.c (convert_modes): Consolidate handling of constants.
17339 Use wide-int interfaces.
17340 (emit_group_load_1): Add note.
17341 (store_expr): Update comment.
17342 (get_inner_reference): Use wide-int interfaces.
17343 (expand_constructor): Update comment.
17344 (expand_expr_real_2): Use wide-int interfaces.
17345 (expand_expr_real_1): Likewise.
17346 (reduce_to_bit_field_precision): Likewise.
17347 (const_vector_from_tree): Likewise.
17348 * final.c: Include wide-int-print.h.
17349 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
17350 * fixed-value.c: Include wide-int.h.
17351 (fixed_from_string): Use wide-int interfaces.
17352 (fixed_to_decimal): Likewise.
17353 (fixed_convert_from_real): Likewise.
17354 (real_convert_from_fixed): Likewise.
17355 * fold-const.h (mem_ref_offset): Return an offset_int.
17356 (div_if_zero_remainder): Remove code parameter.
17357 * fold-const.c (div_if_zero_remainder): Remove code parameter.
17358 Use wide-int interfaces.
17359 (may_negate_without_overflow_p): Use wide-int interfaces.
17360 (negate_expr_p): Likewise.
17361 (fold_negate_expr): Likewise.
17362 (int_const_binop_1): Likewise.
17363 (const_binop): Likewise.
17364 (fold_convert_const_int_from_int): Likewise.
17365 (fold_convert_const_int_from_real): Likewise.
17366 (fold_convert_const_int_from_fixed): Likewise.
17367 (fold_convert_const_fixed_from_int): Likewise.
17368 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
17369 (sign_bit_p): Use wide-int interfaces.
17370 (make_range_step): Likewise.
17371 (build_range_check): Likewise. Pass an integer of the correct type
17372 instead of using integer_one_node.
17373 (range_predecessor): Pass an integer of the correct type instead
17374 of using integer_one_node.
17375 (range_successor): Likewise.
17376 (merge_ranges): Likewise.
17377 (unextend): Use wide-int interfaces.
17378 (extract_muldiv_1): Likewise.
17379 (fold_div_compare): Likewise.
17380 (fold_single_bit_test): Likewise.
17381 (fold_sign_changed_comparison): Likewise.
17382 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
17383 (fold_plusminus_mult_expr): Use wide-int interfaces.
17384 (native_encode_int): Likewise.
17385 (native_interpret_int): Likewise.
17386 (fold_unary_loc): Likewise.
17387 (pointer_may_wrap_p): Likewise.
17388 (size_low_cst): Likewise.
17389 (mask_with_tz): Likewise.
17390 (fold_binary_loc): Likewise.
17391 (fold_ternary_loc): Likewise.
17392 (multiple_of_p): Likewise.
17393 (tree_call_nonnegative_warnv_p): Update calls to
17394 tree_int_cst_min_precision and real_from_integer.
17395 (fold_negate_const): Use wide-int interfaces.
17396 (fold_abs_const): Likewise.
17397 (fold_relational_const): Use tree_int_cst_lt.
17398 (round_up_loc): Use wide-int interfaces.
17399 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
17400 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
17401 * gengtype.c: Remove include of double-int.h.
17402 (do_typedef): Use wide-int interfaces.
17403 (open_base_files): Add wide-int.h.
17404 (main): Add offset_int and widest_int typedefs.
17405 * gengtype-lex.l: Handle "^".
17406 (CXX_KEYWORD): Add "static".
17407 * gengtype-parse.c (require3): New.
17408 (require_template_declaration): Handle constant template arguments
17409 and nested templates.
17410 * gengtype-state.c: Don't include "double-int.h".
17411 * genpreds.c (write_one_predicate_function): Update comment.
17412 (write_tm_constrs_h): Add check for hval and lval use in
17414 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
17415 (add_to_sequence): Likewise.
17416 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
17417 and const_double_operand.
17418 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
17420 * gimple-fold.c (get_base_constructor): Likewise.
17421 (fold_array_ctor_reference): Likewise.
17422 (fold_nonarray_ctor_reference): Likewise.
17423 (fold_const_aggregate_ref_1): Likewise.
17424 (gimple_val_nonnegative_real_p): Likewise.
17425 (gimple_fold_indirect_ref): Likewise.
17426 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
17427 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
17428 (struct slsr_cand_d): Change index to be widest_int.
17429 (struct incr_info_d): Change incr to be widest_int.
17430 (alloc_cand_and_find_basis): Use wide-int interfaces.
17431 (slsr_process_phi): Likewise.
17432 (backtrace_base_for_ref): Likewise. Return a widest_int.
17433 (restructure_reference): Take a widest_int instead of a double_int.
17434 (slsr_process_ref): Use wide-int interfaces.
17435 (create_mul_ssa_cand): Likewise.
17436 (create_mul_imm_cand): Likewise.
17437 (create_add_ssa_cand): Likewise.
17438 (create_add_imm_cand): Take a widest_int instead of a double_int.
17439 (slsr_process_add): Use wide-int interfaces.
17440 (slsr_process_cast): Likewise.
17441 (slsr_process_copy): Likewise.
17442 (dump_candidate): Likewise.
17443 (dump_incr_vec): Likewise.
17444 (replace_ref): Likewise.
17445 (cand_increment): Likewise. Return a widest_int.
17446 (cand_abs_increment): Likewise.
17447 (replace_mult_candidate): Take a widest_int instead of a double_int.
17448 (replace_unconditional_candidate): Use wide-int interfaces.
17449 (incr_vec_index): Take a widest_int instead of a double_int.
17450 (create_add_on_incoming_edge): Likewise.
17451 (create_phi_basis): Use wide-int interfaces.
17452 (replace_conditional_candidate): Likewise.
17453 (record_increment): Take a widest_int instead of a double_int.
17454 (record_phi_increments): Use wide-int interfaces.
17455 (phi_incr_cost): Take a widest_int instead of a double_int.
17456 (lowest_cost_path): Likewise.
17457 (total_savings): Likewise.
17458 (analyze_increments): Use wide-int interfaces.
17459 (ncd_with_phi): Take a widest_int instead of a double_int.
17460 (ncd_of_cand_and_phis): Likewise.
17461 (nearest_common_dominator_for_cands): Likewise.
17462 (insert_initializers): Use wide-int interfaces.
17463 (all_phi_incrs_profitable): Likewise.
17464 (replace_one_candidate): Likewise.
17465 (replace_profitable_candidates): Likewise.
17466 * godump.c: Include wide-int-print.h.
17467 (go_output_typedef): Use wide-int interfaces.
17468 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
17469 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
17470 (build_loop_iteration_domains): Likewise.
17471 * hooks.h: Include wide-int.h rather than double-int.h.
17472 (hook_bool_dint_dint_uint_bool_true): Delete.
17473 (hook_bool_wint_wint_uint_bool_true): Declare.
17474 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
17475 (hook_bool_wint_wint_uint_bool_true): New.
17476 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
17478 (ubsan_expand_si_overflow_mul_check): Likewise.
17479 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
17480 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
17481 (get_ancestor_addr_info): Likewise.
17482 (ipa_modify_call_arguments): Likewise.
17483 * loop-doloop.c (doloop_modify): Likewise.
17484 (doloop_optimize): Likewise.
17485 * loop-iv.c (iv_number_of_iterations): Likewise.
17486 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
17487 (unroll_loop_constant_iterations): Likewise.
17488 (decide_unroll_runtime_iterations): Likewise.
17489 (unroll_loop_runtime_iterations): Likewise.
17490 (decide_peel_simple): Likewise.
17491 (decide_unroll_stupid): Likewise.
17492 * lto-streamer-in.c (streamer_read_wi): Add.
17493 (input_cfg): Use wide-int interfaces.
17494 (lto_input_tree_1): Likewise.
17495 * lto-streamer-out.c (streamer_write_wi): Add.
17496 (hash_tree): Use wide-int interfaces.
17497 (output_cfg): Likewise.
17498 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
17499 (GTFILES): Add wide-int.h and signop.h.
17500 (TAGS): Look for .cc files too.
17501 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
17502 * optabs.c (expand_subword_shift): Likewise.
17503 (expand_doubleword_shift): Likewise.
17504 (expand_absneg_bit): Likewise.
17505 (expand_copysign_absneg): Likewise.
17506 (expand_copysign_bit): Likewise.
17507 * postreload.c (reload_cse_simplify_set): Likewise.
17508 * predict.c (predict_iv_comparison): Likewise.
17509 * pretty-print.h: Include wide-int-print.h.
17511 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
17512 * print-tree.c: Include wide-int-print.h.
17513 (print_node_brief): Use wide-int interfaces.
17514 (print_node): Likewise.
17515 * read-rtl.c (validate_const_wide_int): New.
17516 (read_rtx_code): Add CONST_WIDE_INT case.
17517 * real.c: Include wide-int.h.
17518 (real_to_integer2): Delete.
17519 (real_to_integer): New function, returning a wide_int.
17520 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17521 (ten_to_ptwo): Update call to real_from_integer.
17522 (real_digit): Likewise.
17523 * real.h: Include signop.h, wide-int.h and insn-modes.h.
17524 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
17525 (REAL_VALUE_TO_INT): Delete.
17526 (real_to_integer): Declare a wide-int form.
17527 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
17528 * recog.c (const_int_operand): Improve comment.
17529 (const_scalar_int_operand): New.
17530 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
17531 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
17532 (split_double): Likewise.
17533 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
17534 (rtx_size): Likewise.
17535 (rtx_alloc_stat_v): New.
17536 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
17537 (cwi_output_hex): New.
17538 (iterative_hash_rtx): Handle CONST_WIDE_INT.
17539 (cwi_check_failed_bounds): New.
17540 * rtl.def (CONST_WIDE_INT): New.
17541 * rtl.h: Include <utility> and wide-int.h.
17542 (struct hwivec_def): New.
17543 (CWI_GET_NUM_ELEM): New.
17544 (CWI_PUT_NUM_ELEM): New.
17545 (struct rtx_def): Add num_elem and hwiv.
17546 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
17547 (CASE_CONST_UNIQUE): Likewise.
17548 (CASE_CONST_ANY): Likewise.
17549 (CONST_SCALAR_INT_P): Likewise.
17550 (CONST_WIDE_INT_P): New.
17552 (HWIVEC_CHECK): New.
17553 (cwi_check_failed_bounds): New.
17555 (HWIVEC_CHECK): New.
17556 (CONST_WIDE_INT_VEC) New.
17557 (CONST_WIDE_INT_NUNITS) New.
17558 (CONST_WIDE_INT_ELT) New.
17559 (rtx_mode_t): New type.
17560 (wi::int_traits <rtx_mode_t>): New.
17562 (wi::min_value): New.
17563 (wi::max_value): New.
17565 (const_wide_int_alloc): New.
17566 (immed_wide_int_const): New.
17567 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
17568 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
17569 * signop.h: New file.
17570 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
17571 (simplify_const_unary_operation): Use wide-int interfaces.
17572 (simplify_binary_operation_1): Likewise.
17573 (simplify_const_binary_operation): Likewise.
17574 (simplify_const_relational_operation): Likewise.
17575 (simplify_immed_subreg): Likewise.
17576 * stmt.c (expand_case): Likewise.
17577 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
17578 signop rather than a bool.
17579 * stor-layout.c (layout_type): Use wide-int interfaces.
17580 (initialize_sizetypes): Update calls to
17581 set_min_and_max_values_for_integral_type.
17582 (set_min_and_max_values_for_integral_type): Take a signop rather
17583 than a bool. Use wide-int interfaces.
17584 (fixup_signed_type): Update accordingly. Remove
17585 HOST_BITS_PER_DOUBLE_INT limit.
17586 (fixup_unsigned_type): Likewise.
17587 * system.h (STATIC_CONSTANT_P): New.
17588 (STATIC_ASSERT): New.
17589 * target.def (can_use_doloop_p): Take widest_ints rather than
17591 * target.h: Include wide-int.h rather than double-int.h.
17592 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
17594 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
17595 rather than INT_CST_LT_UNSIGNED.
17596 (can_use_doloop_if_innermost): Take widest_ints rather than
17598 * tree-affine.c: Include wide-int-print.h.
17599 (double_int_ext_for_comb): Delete.
17600 (wide_int_ext_for_comb): New.
17601 (aff_combination_zero): Use wide-int interfaces.
17602 (aff_combination_const): Take a widest_int instead of a double_int.
17603 (aff_combination_elt): Use wide-int interfaces.
17604 (aff_combination_scale): Take a widest_int instead of a double_int.
17605 (aff_combination_add_elt): Likewise.
17606 (aff_combination_add_cst): Likewise.
17607 (aff_combination_add): Use wide-int interfaces.
17608 (aff_combination_convert): Likewise.
17609 (tree_to_aff_combination): Likewise.
17610 (add_elt_to_tree): Take a widest_int instead of a double_int.
17611 (aff_combination_to_tree): Use wide-int interfaces.
17612 (aff_combination_remove_elt): Likewise.
17613 (aff_combination_add_product): Take a widest_int instead of
17615 (aff_combination_mult): Use wide-int interfaces.
17616 (aff_combination_expand): Likewise.
17617 (double_int_constant_multiple_p): Delete.
17618 (wide_int_constant_multiple_p): New.
17619 (aff_combination_constant_multiple_p): Take a widest_int pointer
17620 instead of a double_int pointer.
17621 (print_aff): Use wide-int interfaces.
17622 (get_inner_reference_aff): Take a widest_int pointer
17623 instead of a double_int pointer.
17624 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
17625 * tree-affine.h: Include wide-int.h.
17626 (struct aff_comb_elt): Change type of coef to widest_int.
17627 (struct affine_tree_combination): Change type of offset to widest_int.
17628 (double_int_ext_for_comb): Delete.
17629 (wide_int_ext_for_comb): New.
17630 (aff_combination_const): Use widest_int instead of double_int.
17631 (aff_combination_scale): Likewise.
17632 (aff_combination_add_elt): Likewise.
17633 (aff_combination_constant_multiple_p): Likewise.
17634 (get_inner_reference_aff): Likewise.
17635 (aff_comb_cannot_overlap_p): Likewise.
17636 (aff_combination_zero_p): Use wide-int interfaces.
17637 * tree.c: Include tree.h.
17638 (init_ttree): Use make_int_cst.
17639 (tree_code_size): Removed code for INTEGER_CST case.
17640 (tree_size): Add INTEGER_CST case.
17641 (make_node_stat): Update comment.
17642 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
17643 (build_int_cst_type): Use wide-int interfaces.
17644 (double_int_to_tree): Likewise.
17645 (double_int_fits_to_tree_p): Delete.
17646 (force_fit_type_double): Delete.
17647 (force_fit_type): New.
17648 (int_cst_hash_hash): Use wide-int interfaces.
17649 (int_cst_hash_eq): Likewise.
17650 (build_int_cst_wide): Delete.
17651 (wide_int_to_tree): New.
17652 (cache_integer_cst): Use wide-int interfaces.
17653 (build_low_bits_mask): Likewise.
17654 (cst_and_fits_in_hwi): Likewise.
17655 (real_value_from_int_cst): Likewise.
17656 (make_int_cst_stat): New.
17657 (integer_zerop): Use wide_int interfaces.
17658 (integer_onep): Likewise.
17659 (integer_all_onesp): Likewise.
17660 (integer_pow2p): Likewise.
17661 (integer_nonzerop): Likewise.
17662 (tree_log2): Likewise.
17663 (tree_floor_log2): Likewise.
17664 (tree_ctz): Likewise.
17665 (int_size_in_bytes): Likewise.
17666 (mem_ref_offset): Return an offset_int rather than a double_int.
17667 (build_type_attribute_qual_variant): Use wide_int interfaces.
17668 (type_hash_eq): Likewise
17669 (tree_int_cst_equal): Likewise.
17670 (tree_int_cst_lt): Delete.
17671 (tree_int_cst_compare): Likewise.
17672 (tree_fits_shwi_p): Use wide_int interfaces.
17673 (tree_fits_uhwi_p): Likewise.
17674 (tree_int_cst_sign_bit): Likewise.
17675 (tree_int_cst_sgn): Likewise.
17676 (tree_int_cst_min_precision): Take a signop rather than a bool.
17677 (simple_cst_equal): Use wide_int interfaces.
17678 (compare_tree_int): Likewise.
17679 (iterative_hash_expr): Likewise.
17680 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
17682 (get_type_static_bounds): Use wide_int interfaces.
17683 (tree_int_cst_elt_check_failed): New.
17684 (build_common_tree_nodes): Reordered to set prec before filling in
17686 (int_cst_value): Check cst_and_fits_in_hwi.
17687 (widest_int_cst_value): Use wide_int interfaces.
17688 (upper_bound_in_type): Likewise.
17689 (lower_bound_in_type): Likewise.
17690 (num_ending_zeros): Likewise.
17691 (drop_tree_overflow): Likewise.
17692 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
17693 (gen_conditions_for_pow_cst_base): Likewise.
17694 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
17695 (group_case_labels_stmt): Use wide-int interfaces.
17696 (verify_gimple_assign_binary): Likewise.
17697 (print_loop): Likewise.
17698 * tree-chrec.c (tree_fold_binomial): Likewise.
17699 * tree-core.h (struct tree_base): Add int_length.
17700 (struct tree_int_cst): Change rep of value.
17701 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
17702 (dr_may_alias_p): Likewise.
17703 (max_stmt_executions_tree): Likewise.
17704 * tree.def (INTEGER_CST): Update comment.
17705 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
17706 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
17707 * tree-dump.c: Include wide-int.h and wide-int-print.h.
17708 (dequeue_and_dump): Use wide-int interfaces.
17709 * tree.h: Include wide-int.h.
17710 (NULL_TREE): Moved to earlier loc in file.
17711 (TREE_INT_CST_ELT_CHECK): New.
17712 (tree_int_cst_elt_check_failed): New.
17714 (TREE_INT_CST): Delete.
17715 (TREE_INT_CST_LOW): Use wide-int interfaces.
17716 (TREE_INT_CST_HIGH): Delete.
17717 (TREE_INT_CST_NUNITS): New.
17718 (TREE_INT_CST_EXT_NUNITS): Likewise.
17719 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
17720 (TREE_INT_CST_ELT): Likewise.
17721 (INT_CST_LT): Delete.
17722 (tree_int_cst_elt_check): New (two forms).
17723 (type_code_size): Update comment.
17724 (make_int_cst_stat, make_int_cst): New.
17725 (tree_to_double_int): Delete.
17726 (double_int_fits_to_tree_p): Delete.
17727 (force_fit_type_double): Delete.
17728 (build_int_cstu): Replace with out-of-line function.
17729 (build_int_cst_wide): Delete.
17730 (tree_int_cst_lt): Define inline.
17731 (tree_int_cst_le): New.
17732 (tree_int_cst_compare): Define inline.
17733 (tree_int_cst_min_precision): Take a signop rather than a bool.
17734 (wi::int_traits <const_tree>): New.
17735 (wi::int_traits <tree>): New.
17736 (wi::extended_tree): New.
17737 (wi::int_traits <wi::extended_tree>): New.
17738 (wi::to_widest): New.
17739 (wi::to_offset): New.
17740 (wi::fits_to_tree_p): New.
17741 (wi::min_value): New.
17742 (wi::max_value): New.
17743 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
17744 (copy_tree_body_r): Likewise.
17745 * tree-object-size.c (compute_object_offset): Likewise.
17746 (addr_object_size): Likewise.
17747 * tree-predcom.c: Include wide-int-print.h.
17748 (struct dref_d): Change type of offset to widest_int.
17749 (dump_dref): Call wide-int printer.
17750 (aff_combination_dr_offset): Use wide-int interfaces.
17751 (determine_offset): Take a widest_int pointer rather than a
17752 double_int pointer.
17753 (split_data_refs_to_components): Use wide-int interfaces.
17754 (suitable_component_p): Likewise.
17755 (order_drefs): Likewise.
17756 (add_ref_to_chain): Likewise.
17757 (valid_initializer_p): Likewise.
17758 (determine_roots_comp): Likewise.
17759 * tree-pretty-print.c: Include wide-int-print.h.
17760 (dump_generic_node): Use wide-int interfaces.
17761 * tree-sra.c (sra_ipa_modify_expr): Likewise.
17762 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
17763 (move_fixed_address_to_symbol): Likewise.
17764 (move_hint_to_base): Likewise.
17765 (move_pointer_to_base): Likewise.
17766 (move_variant_to_index): Likewise.
17767 (most_expensive_mult_to_index): Likewise.
17768 (addr_to_parts): Likewise.
17769 (copy_ref_info): Likewise.
17770 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
17771 (indirect_refs_may_alias_p): Likewise.
17772 (stmt_kills_ref_p_1): Likewise.
17773 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
17774 * tree-ssa-ccp.c: Update comment at top of file. Include
17776 (struct prop_value_d): Change type of mask to widest_int.
17777 (extend_mask): New function.
17778 (dump_lattice_value): Use wide-int interfaces.
17779 (get_default_value): Likewise.
17780 (set_constant_value): Likewise.
17781 (set_value_varying): Likewise.
17782 (valid_lattice_transition): Likewise.
17783 (set_lattice_value): Likewise.
17784 (value_to_double_int): Delete.
17785 (value_to_wide_int): New.
17786 (get_value_from_alignment): Use wide-int interfaces.
17787 (get_value_for_expr): Likewise.
17788 (do_dbg_cnt): Likewise.
17789 (ccp_finalize): Likewise.
17790 (ccp_lattice_meet): Likewise.
17791 (bit_value_unop_1): Use widest_ints rather than double_ints.
17792 (bit_value_binop_1): Likewise.
17793 (bit_value_unop): Use wide-int interfaces.
17794 (bit_value_binop): Likewise.
17795 (bit_value_assume_aligned): Likewise.
17796 (evaluate_stmt): Likewise.
17797 (ccp_fold_stmt): Likewise.
17798 (visit_cond_stmt): Likewise.
17799 (ccp_visit_stmt): Likewise.
17800 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
17801 (constant_pointer_difference): Likewise.
17802 (associate_pointerplus): Likewise.
17803 (combine_conversions): Likewise.
17804 * tree-ssa-loop.h: Include wide-int.h.
17805 (struct tree_niter_desc): Change type of max to widest_int.
17806 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
17807 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
17808 (remove_redundant_iv_tests): Likewise.
17809 (canonicalize_loop_induction_variables): Likewise.
17810 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
17811 (constant_multiple_of): Take a widest_int pointer instead of
17812 a double_int pointer.
17813 (get_computation_aff): Use wide-int interfaces.
17814 (ptr_difference_cost): Likewise.
17815 (difference_cost): Likewise.
17816 (get_loop_invariant_expr_id): Likewise.
17817 (get_computation_cost_at): Likewise.
17818 (iv_elimination_compare_lt): Likewise.
17819 (may_eliminate_iv): Likewise.
17820 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
17821 instead of double_int.
17822 (max_loop_iterations): Likewise.
17823 (max_stmt_executions): Likewise.
17824 (estimated_stmt_executions): Likewise.
17825 * tree-ssa-loop-niter.c: Include wide-int-print.h.
17826 (split_to_var_and_offset): Use wide-int interfaces.
17827 (determine_value_range): Likewise.
17828 (bound_difference_of_offsetted_base): Likewise.
17829 (bounds_add): Take a widest_int instead of a double_int.
17830 (number_of_iterations_ne_max): Use wide-int interfaces.
17831 (number_of_iterations_ne): Likewise.
17832 (number_of_iterations_lt_to_ne): Likewise.
17833 (assert_loop_rolls_lt): Likewise.
17834 (number_of_iterations_lt): Likewise.
17835 (number_of_iterations_le): Likewise.
17836 (number_of_iterations_cond): Likewise.
17837 (number_of_iterations_exit): Likewise.
17838 (finite_loop_p): Likewise.
17839 (derive_constant_upper_bound_assign): Likewise.
17840 (derive_constant_upper_bound): Return a widest_int.
17841 (derive_constant_upper_bound_ops): Likewise.
17842 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
17843 (record_estimate): Take a widest_int rather than a double_int.
17844 (record_nonwrapping_iv): Use wide-int interfaces.
17845 (double_int_cmp): Delete.
17846 (wide_int_cmp): New.
17847 (bound_index): Take a widest_int rather than a double_int.
17848 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
17849 (maybe_lower_iteration_bound): Likewise.
17850 (estimate_numbers_of_iterations_loop): Likewise.
17851 (estimated_loop_iterations): Take a widest_int pointer than than
17852 a double_int pointer.
17853 (estimated_loop_iterations_int): Use wide-int interfaces.
17854 (max_loop_iterations): Take a widest_int pointer than than
17855 a double_int pointer.
17856 (max_loop_iterations_int): Use wide-int interfaces.
17857 (max_stmt_executions): Take a widest_int pointer than than
17858 a double_int pointer.
17859 (estimated_stmt_executions): Likewise.
17860 (n_of_executions_at_most): Use wide-int interfaces.
17861 (scev_probably_wraps_p): Likewise.
17862 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
17863 to real_to_integer.
17864 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
17866 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
17867 double_ints. Adjust for trailing_wide_ints <3> representation.
17868 (set_nonzero_bits): Likewise.
17869 (get_range_info): Return wide_ints rather than double_ints.
17870 Adjust for trailing_wide_ints <3> representation.
17871 (get_nonzero_bits): Likewise.
17872 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
17874 * tree-ssanames.h (struct range_info_def): Replace min, max and
17875 nonzero_bits with a trailing_wide_ints <3>.
17876 (set_range_info): Use wide_int_refs rather than double_ints.
17877 (set_nonzero_bits): Likewise.
17878 (get_range_info): Return wide_ints rather than double_ints.
17879 (get_nonzero_bits): Likewise.
17880 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
17881 * tree-ssa-pre.c (phi_translate_1): Likewise.
17882 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
17883 (acceptable_pow_call): Likewise.
17884 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
17886 (vn_reference_fold_indirect): Likewise.
17887 (vn_reference_maybe_forwprop_address): Likewise.
17888 (valueize_refs_1): Likewise.
17889 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
17890 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
17891 tree_int_cst_lt and tree_int_cst_le.
17892 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
17894 (streamer_alloc_tree): Likewise.
17895 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
17896 (streamer_write_tree_header): Likewise.
17897 (streamer_write_integer_cst): Likewise.
17898 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17899 (build_constructors): Likewise.
17900 (array_value_type): Likewise.
17901 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
17902 (vect_check_gather): Likewise.
17903 * tree-vect-generic.c (build_replicated_const): Likewise.
17904 (expand_vector_divmod): Likewise.
17905 * tree-vect-loop.c (vect_transform_loop): Likewise.
17906 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
17907 (vect_do_peeling_for_alignment): Likewise.
17908 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
17909 * tree-vrp.c: Include wide-int.h.
17910 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
17911 (extract_range_from_assert): Use wide-int interfaces.
17912 (vrp_int_const_binop): Likewise.
17913 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
17914 double_int pointers.
17915 (ranges_from_anti_range): Use wide-int interfaces.
17916 (quad_int_cmp): Delete.
17917 (quad_int_pair_sort): Likewise.
17918 (extract_range_from_binary_expr_1): Use wide-int interfaces.
17919 (extract_range_from_unary_expr_1): Likewise.
17920 (adjust_range_with_scev): Likewise.
17921 (masked_increment): Take and return wide_ints rather than double_ints.
17922 (register_edge_assert_for_2): Use wide-int interfaces.
17923 (check_array_ref): Likewise.
17924 (search_for_addr_array): Likewise.
17925 (maybe_set_nonzero_bits): Likewise.
17926 (union_ranges): Pass an integer of the correct type instead of
17927 using integer_one_node.
17928 (intersect_ranges): Likewise.
17929 (simplify_truth_ops_using_ranges): Likewise.
17930 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
17931 (range_fits_type_p): Likewise.
17932 (simplify_cond_using_ranges): Likewise. Take a signop rather than
17934 (simplify_conversion_using_ranges): Use wide-int interfaces.
17935 (simplify_float_conversion_using_ranges): Likewise.
17936 (vrp_finalize): Likewise.
17937 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
17938 (gimple_stringops_transform): Likewise.
17939 * varasm.c (decode_addr_const): Likewise.
17940 (const_hash_1): Likewise.
17941 (const_rtx_hash_1): Likewise
17942 (output_constant): Likewise.
17943 (array_size_for_constructor): Likewise.
17944 (output_constructor_regular_field): Likewise.
17945 (output_constructor_bitfield): Likewise.
17946 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
17947 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
17949 * gencheck.c: Define BITS_PER_UNIT.
17950 * wide-int.cc: New.
17952 * wide-int-print.cc: New.
17953 * wide-int-print.h: New.
17955 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17957 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
17959 2014-05-06 Richard Biener <rguenther@suse.de>
17961 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
17962 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
17963 (TODO_verify_all): Adjust.
17964 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
17965 TODO_verify_stmts and TODO_verify_rtl_sharing.
17966 * bb-reorder.c: Likewise.
17967 * cfgexpand.c: Likewise.
17968 * cprop.c: Likewise.
17970 * function.c: Likewise.
17971 * fwprop.c: Likewise.
17972 * gcse.c: Likewise.
17973 * gimple-ssa-isolate-paths.c: Likewise.
17974 * gimple-ssa-strength-reduction.c: Likewise.
17975 * ipa-split.c: Likewise.
17976 * loop-init.c: Likewise.
17977 * loop-unroll.c: Likewise.
17978 * lower-subreg.c: Likewise.
17979 * modulo-sched.c: Likewise.
17980 * postreload-gcse.c: Likewise.
17981 * predict.c: Likewise.
17982 * recog.c: Likewise.
17983 * sched-rgn.c: Likewise.
17984 * store-motion.c: Likewise.
17985 * tracer.c: Likewise.
17986 * trans-mem.c: Likewise.
17987 * tree-call-cdce.c: Likewise.
17988 * tree-cfg.c: Likewise.
17989 * tree-cfgcleanup.c: Likewise.
17990 * tree-complex.c: Likewise.
17991 * tree-eh.c: Likewise.
17992 * tree-emutls.c: Likewise.
17993 * tree-if-conv.c: Likewise.
17994 * tree-into-ssa.c: Likewise.
17995 * tree-loop-distribution.c: Likewise.
17996 * tree-object-size.c: Likewise.
17997 * tree-parloops.c: Likewise.
17998 * tree-pass.h: Likewise.
17999 * tree-sra.c: Likewise.
18000 * tree-ssa-ccp.c: Likewise.
18001 * tree-ssa-copy.c: Likewise.
18002 * tree-ssa-copyrename.c: Likewise.
18003 * tree-ssa-dce.c: Likewise.
18004 * tree-ssa-dom.c: Likewise.
18005 * tree-ssa-dse.c: Likewise.
18006 * tree-ssa-forwprop.c: Likewise.
18007 * tree-ssa-ifcombine.c: Likewise.
18008 * tree-ssa-loop-ch.c: Likewise.
18009 * tree-ssa-loop-ivcanon.c: Likewise.
18010 * tree-ssa-loop.c: Likewise.
18011 * tree-ssa-math-opts.c: Likewise.
18012 * tree-ssa-phiopt.c: Likewise.
18013 * tree-ssa-phiprop.c: Likewise.
18014 * tree-ssa-pre.c: Likewise.
18015 * tree-ssa-reassoc.c: Likewise.
18016 * tree-ssa-sink.c: Likewise.
18017 * tree-ssa-strlen.c: Likewise.
18018 * tree-ssa-tail-merge.c: Likewise.
18019 * tree-ssa-uncprop.c: Likewise.
18020 * tree-switch-conversion.c: Likewise.
18021 * tree-tailcall.c: Likewise.
18022 * tree-vect-generic.c: Likewise.
18023 * tree-vectorizer.c: Likewise.
18024 * tree-vrp.c: Likewise.
18025 * tsan.c: Likewise.
18026 * var-tracking.c: Likewise.
18027 * bt-load.c: Likewise.
18028 * cfgcleanup.c: Likewise.
18029 * combine-stack-adj.c: Likewise.
18030 * combine.c: Likewise.
18031 * compare-elim.c: Likewise.
18032 * config/epiphany/resolve-sw-modes.c: Likewise.
18033 * config/i386/i386.c: Likewise.
18034 * config/mips/mips.c: Likewise.
18035 * config/s390/s390.c: Likewise.
18036 * config/sh/sh_treg_combine.cc: Likewise.
18037 * config/sparc/sparc.c: Likewise.
18040 * final.c: Likewise.
18041 * ifcvt.c: Likewise.
18042 * mode-switching.c: Likewise.
18043 * passes.c: Likewise.
18044 * postreload.c: Likewise.
18046 * reg-stack.c: Likewise.
18047 * regcprop.c: Likewise.
18048 * regrename.c: Likewise.
18051 2014-05-06 Richard Biener <rguenther@suse.de>
18053 PR middle-end/61070
18054 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
18055 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
18057 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
18060 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
18062 2014-05-05 Radovan Obradovic <robradovic@mips.com>
18063 Tom de Vries <tom@codesourcery.com>
18065 * target.def (call_fusage_contains_non_callee_clobbers): New
18067 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
18069 (@node Miscellaneous Register Hooks): New node.
18070 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
18071 * doc/tm.texi: Regenerate.
18073 2014-05-05 Marek Polacek <polacek@redhat.com>
18076 * opts.c (common_handle_option): Call error_at instead of warning_at.
18078 2014-05-05 Richard Biener <rguenther@suse.de>
18080 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
18081 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
18082 under the TODO_verify_il umbrella.
18084 2014-05-05 Richard Biener <rguenther@suse.de>
18086 * passes.c (execute_function_todo): Move TODO_verify_flow under
18087 the TODO_verify_ul umbrella.
18089 2014-05-05 Richard Biener <rguenther@suse.de>
18091 PR middle-end/61010
18092 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
18093 X & CST away from a CST that is the mask of a mode.
18095 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18097 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
18098 int argument to enum machine_mode.
18099 (picochip_class_max_nregs): Ditto.
18100 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
18101 (picochip_class_max_nregs): Ditto.
18103 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18105 * target.def: Add new target hook.
18106 * doc/tm.texi: Regenerate.
18107 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
18108 * targhooks.c (default_keep_leaf_when_profiled): New function.
18110 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
18111 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
18113 2014-05-05 Bin Cheng <bin.cheng@arm.com>
18115 PR tree-optimization/60363
18116 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
18117 (copy_phi_args): New parameters. Call get_value_locus_in_path.
18118 (update_destination_phis): New parameter.
18119 (create_edge_and_update_destination_phis): Ditto.
18120 (ssa_fix_duplicate_block_edges): Pass new arguments.
18121 (thread_single_edge): Ditto.
18123 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
18125 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
18126 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
18127 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
18128 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
18129 Use RS6000_BTM_HARD_FLOAT.
18130 (BU_MISC_2): Likewise.
18131 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
18132 RS6000_BTM_HARD_FLOAT.
18133 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
18134 is explicitly used.
18135 (rs6000_invalid_builtin): Add hard floating builtin support.
18136 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
18137 hard float builtins.
18138 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
18140 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18142 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
18143 Add missing function* argument.
18145 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18147 * lra-constraints.c (valid_address_p): Move earlier in file.
18148 Add a constraint argument to the address_info version.
18149 (satisfies_memory_constraint_p): New function.
18150 (satisfies_address_constraint_p): Likewise.
18151 (process_alt_operands, curr_insn_transform): Use them.
18152 (process_address): Pass the constraint to valid_address_p when
18153 checking address operands.
18155 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
18157 * config/mips/mips.c (mips_isa_rev): New variable.
18158 (mips_set_architecture): Set it.
18159 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
18161 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
18162 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
18163 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
18164 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
18165 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
18166 conditions in terms of mips_isa_rev.
18167 (mips_isa_rev): Declare.
18169 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18171 * config/sh/sh-mem.cc: Use tabs instead of spaces.
18172 (prob_unlikely, prob_likely): Make variables const.
18174 2014-05-03 Denis Chertykov <chertykov@gmail.com>
18176 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
18178 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18180 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
18182 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18184 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
18185 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
18186 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
18188 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
18189 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
18191 Replace usage of ROUND_REG with sh_round_reg.
18192 Use CEIL instead of ROUND_ADVANCE.
18194 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
18197 * config/sh/sh.c: Include stdlib headers before everything else.
18199 2014-05-02 Jakub Jelinek <jakub@redhat.com>
18201 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
18202 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
18203 (gimplify_adjust_omp_clauses): Simd region is never
18204 directly nested in combined parallel. Instead, for linear
18205 with copyin/copyout, if in combined for simd loop, make decl
18206 firstprivate/lastprivate on OMP_FOR.
18207 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
18208 expand_omp_for_static_chunk): When setting endvar, also set
18209 fd->loop.v to the same value.
18211 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
18213 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
18215 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
18217 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
18220 2014-05-02 Marek Polacek <polacek@redhat.com>
18222 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
18224 2014-05-02 Kito Cheng <kito@0xlab.org>
18226 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
18227 to a C expression marco.
18228 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
18229 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
18230 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
18231 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
18232 HONOR_REG_ALLOC_ORDER.
18233 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
18235 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18237 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
18239 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18241 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
18243 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
18245 * tree-if-conv.c (is_cond_scalar_reduction): New function.
18246 (convert_scalar_cond_reduction): Likewise.
18247 (predicate_scalar_phi): Add recognition and transformation
18248 of simple conditioanl reduction to be vectorizable.
18250 2014-05-01 Marek Polacek <polacek@redhat.com>
18253 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
18255 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
18257 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
18258 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
18259 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
18260 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
18261 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
18262 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
18263 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
18264 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
18266 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
18268 * config/arc/arc.opt (mlra): Move comment above option name
18269 to avoid mis-parsing as language options.
18271 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18273 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
18274 * config/sol2.h: ... here.
18275 * config/sol2-10.h: Remove.
18277 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
18278 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
18279 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
18280 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
18281 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
18282 * config/sol2.h: ... here.
18283 (SECTION_NAME_FORMAT): Don't redefine.
18284 (STARTFILE_ARCH32_SPEC): Rename to ...
18285 (STARTFILE_ARCH_SPEC): ... this.
18286 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18287 * config/sparc/sol2.h: ... here.
18288 (SECTION_NAME_FORMAT): Don't undef.
18289 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
18290 (SUBTARGET_EXTRA_SPECS): Remove.
18291 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
18293 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
18294 (MD_STARTFILE_PREFIX): Remove.
18295 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
18296 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
18297 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
18298 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
18299 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
18300 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
18301 * config/i386/sol2.h: ... here.
18302 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
18303 * config/i386/sol2-bi.h: Remove.
18304 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
18305 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
18307 * config/i386/t-sol2-64: Rename to ...
18308 * config/i386/t-sol2: ... this.
18309 * config/sparc/t-sol2-64: Rename to ...
18310 * config/sparc/t-sol2: ... this.
18312 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
18313 sol2_tm_file_head, sol2_tm_file_tail.
18314 Include ${cpu_type}/sol2.h before sol2.h.
18316 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
18317 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
18318 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
18319 Reflect i386/t-sol2-64 renaming.
18320 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
18321 Reflect sparc/t-sol2-64 renaming.
18323 2014-04-30 Richard Biener <rguenther@suse.de>
18325 * passes.c (execute_function_todo): Move TODO_verify_stmts
18326 and TODO_verify_ssa under the TODO_verify_il umbrella.
18327 * tree-ssa.h (verify_ssa): Adjust prototype.
18328 * tree-ssa.c (verify_ssa): Add parameter to tell whether
18329 we should verify SSA operands.
18330 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
18331 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
18332 whether we should verify whether not throwing stmts have EH info.
18333 * graphite-scop-detection.c (create_sese_edges): Adjust.
18334 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
18335 * tree-eh.c (lower_try_finally_switch): Do not add the
18336 default case label twice.
18338 2014-04-30 Marek Polacek <polacek@redhat.com>
18340 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
18341 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
18342 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
18343 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
18345 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
18347 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
18348 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
18349 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
18350 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
18351 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
18352 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
18353 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
18354 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
18356 2014-04-29 David Malcolm <dmalcolm@redhat.com>
18358 * tree-cfg.c (dump_function_to_file): Dump the return type of
18359 functions, in a line to itself before the function body, mimicking
18360 the layout of a C function.
18362 2014-04-29 Jakub Jelinek <jakub@redhat.com>
18364 PR tree-optimization/60971
18365 * tree-tailcall.c (process_assignment): Reject conversions which
18368 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
18370 * calls.c (initialize_argument_information): Always treat
18371 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
18372 (expand_call): Likewise.
18373 (emit_library_call_calue_1): Likewise.
18374 * expr.c (PUSH_ARGS_REVERSED): Do not define.
18375 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
18378 2014-04-29 Nick Clifton <nickc@redhat.com>
18380 * config/msp430/msp430.md (umulsidi): Fix typo.
18381 (mulhisi3): Enable even inside interrupt handlers.
18382 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
18383 bigger return address pushed in large mode.
18385 2014-04-29 Nick Clifton <nickc@redhat.com>
18387 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
18388 (arc_init_reg_tables): Use a machine_mode enum to iterate over
18390 * config/m32r/m32r.c (init_reg_tables): Likewise.
18391 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
18392 enum to hold the modes.
18394 2014-04-29 Richard Biener <rguenther@suse.de>
18396 * dominance.c (free_dominance_info): Add overload with
18397 function parameter.
18398 (dom_info_state): Likewise.
18399 (dom_info_available_p): Likewise.
18400 * basic-block.h (free_dominance_info, dom_info_state,
18401 dom_info_available_p): Declare overloads.
18402 * passes.c (execute_function_todo): Verify that verifiers
18403 don't change dominator info state. Drop dominator info
18404 for IPA pass invocations.
18405 * cgraph.c (release_function_body): Restore asserts that
18406 dominator information is released.
18408 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
18410 * doc/invoke.texi: Fix typo.
18411 * tree-vrp.c: Fix typos.
18412 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
18414 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18416 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
18418 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18420 * config/aarch64/aarch64-builtins.c
18421 (aarch64_types_storestruct_lane_qualifiers): New.
18422 (TYPES_STORESTRUCT_LANE): Likewise.
18423 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
18424 (st3_lane): Likewise.
18425 (st4_lane): Likewise.
18426 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
18427 (vec_store_lanesci_lane<mode>): Likewise.
18428 (vec_store_lanesxi_lane<mode>): Likewise.
18429 (aarch64_st2_lane<VQ:mode>): Likewise.
18430 (aarch64_st3_lane<VQ:mode>): Likewise.
18431 (aarch64_st4_lane<VQ:mode>): Likewise.
18432 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
18433 * config/aarch64/arm_neon.h
18434 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
18435 use new macro arguments.
18436 (__ST3_LANE_FUNC): Likewise.
18437 (__ST4_LANE_FUNC): Likewise.
18438 * config/aarch64/iterators.md (V_TWO_ELEM): New.
18439 (V_THREE_ELEM): Likewise.
18440 (V_FOUR_ELEM): Likewise.
18442 2014-04-28 David Malcolm <dmalcolm@redhat.com>
18444 * doc/gimple.texi: Replace the description of the now-defunct
18445 union gimple_statement_d with a diagram showing the
18446 gimple_statement_base class hierarchy and its relationships to
18447 the GSS_ and GIMPLE_ enums.
18449 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
18451 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
18452 * config/aarch64/aarch64.c
18453 (aarch64_cannot_change_mode_class): Weaken conditions.
18454 (aarch64_modes_tieable_p): New.
18455 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
18457 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
18459 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
18460 (loadsync_<mode>): Change mode.
18461 (load_quadpti, store_quadpti): New.
18462 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
18463 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
18465 2014-04-28 Martin Jambor <mjambor@suse.cz>
18467 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
18468 same alias type as the original statement.
18469 (subreplacement_assignment_data): New type.
18470 (handle_unscalarized_data_in_subtree): New type of parameter,
18471 generate new memory accesses with same alias type as the original
18473 (load_assign_lhs_subreplacements): Likewise.
18474 (sra_modify_constructor_assign): Generate new memory accesses with
18475 same alias type as the original statement.
18477 2014-04-28 Richard Biener <rguenther@suse.de>
18479 * tree-pass.h (TODO_verify_il): Define.
18480 (TODO_verify_all): Complete properly.
18481 * passes.c (execute_function_todo): Move existing loop-closed
18482 SSA verification under TODO_verify_il.
18483 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
18484 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
18485 Fix tree sharing issue.
18487 2014-04-28 Richard Biener <rguenther@suse.de>
18489 PR middle-end/60092
18490 * builtins.def (DEF_C11_BUILTIN): Add.
18491 (BUILT_IN_ALIGNED_ALLOC): Likewise.
18492 * coretypes.h (enum function_class): Add function_c11_misc.
18493 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
18494 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
18495 (call_may_clobber_ref_p_1): Likewise.
18496 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18497 (mark_all_reaching_defs_necessary_1): Likewise.
18498 (propagate_necessity): Likewise.
18499 (eliminate_unnecessary_stmts): Likewise.
18500 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
18502 2014-04-28 Richard Biener <rguenther@suse.de>
18504 * tree-vrp.c (vrp_var_may_overflow): Remove.
18505 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
18506 with overflow immediately bump to one before that value and
18507 let iteration figure out overflow status.
18509 2014-04-28 Richard Biener <rguenther@suse.de>
18511 * configure.ac: Do valgrind header checks unconditionally.
18512 Add --enable-valgrind-annotations.
18513 * system.h: Guard valgrind header inclusion with
18514 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
18515 * alloc-pool.c (pool_alloc, pool_free): Use
18516 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
18517 to guard possibly dead code.
18518 * config.in: Regenerated.
18519 * configure: Likewise.
18521 2014-04-28 Jeff Law <law@redhat.com>
18523 PR tree-optimization/60902
18524 * tree-ssa-threadedge.c
18525 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
18526 over real defs when invalidating outputs from statements that do not
18527 produce useful outputs for threading.
18529 2014-04-28 Richard Biener <rguenther@suse.de>
18531 PR tree-optimization/60979
18532 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
18533 SCOPs that end in a block with a successor with abnormal
18536 2014-04-28 Richard Biener <rguenther@suse.de>
18538 * tree-pass.h (execute_pass_list): Adjust prototype.
18539 * passes.c (pass_manager::execute_early_local_passes): Adjust.
18540 (do_per_function): Change callback signature, push all actual
18541 work to the callbals.
18542 (do_per_function_toporder): Likewise.
18543 (execute_function_dump): Adjust.
18544 (execute_function_todo): Likewise.
18545 (clear_last_verified): Likewise.
18546 (verify_curr_properties): Likewise.
18547 (update_properties_after_pass): Likewise.
18548 (execute_pass_list_1): Split out from ...
18549 (execute_pass_list): ... here. Adjust.
18550 (execute_ipa_pass_list): Likewise.
18551 * cgraphunit.c (cgraph_add_new_function): Adjust.
18552 (analyze_function): Likewise.
18553 (expand_function): Likewise.
18554 * cgraph.c (release_function_body): Free dominance info
18555 here instead of asserting it was magically freed elsewhere.
18557 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
18559 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
18560 * configure: Regenerate.
18561 * config/sparc/sparc.opt (muser-mode): New option.
18562 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
18564 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
18565 * doc/invoke.texi (SPARC options): Document -muser-mode.
18567 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
18569 * cselib.c (find_slot_memmode): Delete.
18570 (cselib_hasher): Change compare_type to a struct.
18571 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
18573 (preserve_constants_and_equivs): Adjust for new compare_type.
18574 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
18575 (wrap_constant): Delete.
18576 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
18578 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
18580 * doc/install.texi (Building with profile feedback): Remove
18583 2014-04-26 Tom de Vries <tom@codesourcery.com>
18585 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
18588 2014-04-25 Cary Coutant <ccoutant@google.com>
18591 * dwarf2out.c (should_move_die_to_comdat): A type definition
18592 can contain a subprogram definition, but don't move it to a
18594 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
18595 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
18597 (clone_tree_hash): Rename to...
18598 (clone_tree_partial): ...this; change callers. Copy
18599 DW_TAG_subprogram DIEs as declarations.
18600 (copy_decls_walk): Don't copy children of a declaration into a
18603 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
18606 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
18609 2014-04-25 Jiong Wang <jiong.wang@arm.com>
18611 * config/arm/predicates.md (call_insn_operand): Add long_call check.
18612 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
18614 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
18617 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18619 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
18621 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18623 PR tree-optimization/60930
18624 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
18625 creating a multiply candidate by folding two constant
18626 multiplicands when the result overflows.
18628 2014-04-25 Jakub Jelinek <jakub@redhat.com>
18630 PR tree-optimization/60960
18631 * tree-vect-generic.c (expand_vector_operation): Only call
18632 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
18634 2014-04-25 Tom de Vries <tom@codesourcery.com>
18636 * expr.c (clobber_reg_mode): New function.
18637 * expr.h (clobber_reg): New function.
18639 2014-04-25 Tom de Vries <tom@codesourcery.com>
18641 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
18644 2014-04-25 Radovan Obradovic <robradovic@mips.com>
18645 Tom de Vries <tom@codesourcery.com>
18647 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
18649 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
18650 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
18651 new argument to find_all_hard_reg_sets call.
18653 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18655 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
18656 Use HOST_WIDE_INT_C for mask literal.
18657 (aarch_rev16_shleft_mask_imm_p): Likewise.
18659 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
18662 * config/sparc/sparc.md (ashlsi3_extend): Delete.
18664 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
18666 PR preprocessor/56540
18667 * config/i386/i386-c.c (ix86_target_macros): Define
18668 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
18670 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18672 * configure.ac (tga_func): Remove.
18673 (LIB_TLS_SPEC): Remove.
18674 * configure: Regenerate.
18675 * config.in: Regenerate.
18676 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
18678 2014-04-25 Richard Biener <rguenther@suse.de>
18681 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
18682 call stmt use/clobber sets during stmt walk instead of
18683 walking the possibly incomplete set of caller edges.
18685 2014-04-25 Richard Biener <rguenther@suse.de>
18688 * passes.c (apply_ipa_transforms): Inline into only caller ...
18689 (execute_one_pass): ... here. Properly bring in function
18690 bodies for nodes we want to apply IPA transforms to.
18692 2014-04-24 Cong Hou <congh@google.com>
18694 PR tree-optimization/60896
18695 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
18696 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
18697 (vect_mark_pattern_stmts): Set the def type of all statements in
18698 PATTERN_DEF_SEQ as vect_internal_def.
18700 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18702 * doc/extend.texi (PowerPC Built-in Functions): Document new
18703 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
18704 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
18706 * config/rs6000/predicates.md (const_0_to_3_operand): New
18707 predicate to match 0..3 integer constants.
18709 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
18710 to support adding miscellaneous builtin functions.
18711 (BU_DFP_MISC_2): Likewise.
18712 (BU_P7_MISC_1): Likewise.
18713 (BU_P7_MISC_2): Likewise.
18714 (BU_P8V_MISC_3): Likewise.
18715 (BU_MISC_1): Likewise.
18716 (BU_MISC_2): Likewise.
18717 (DIVWE): Add extended divide builtin functions.
18718 (DIVWEO): Likewise.
18719 (DIVWEU): Likewise.
18720 (DIVWEUO): Likewise.
18722 (DIVDEO): Likewise.
18723 (DIVDEU): Likewise.
18724 (DIVDEUO): Likewise.
18725 (DXEX): Add decimal floating-point builtin functions.
18727 (DDEDPD): Likewise.
18728 (DDEDPDQ): Likewise.
18729 (DENBCD): Likewise.
18730 (DENBCDQ): Likewise.
18734 (DSCLIQ): Likewise.
18736 (DSCRIQ): Likewise.
18737 (CDTBCD): Add new BCD builtin functions.
18738 (CBCDTD): Likewise.
18739 (ADDG6S): Likewise.
18740 (BCDADD): Likewise.
18741 (BCDADD_LT): Likewise.
18742 (BCDADD_EQ): Likewise.
18743 (BCDADD_GT): Likewise.
18744 (BCDADD_OV): Likewise.
18745 (BCDSUB): Likewise.
18746 (BCDSUB_LT): Likewise.
18747 (BCDSUB_EQ): Likewise.
18748 (BCDSUB_GT): Likewise.
18749 (BCDSUB_OV): Likewise.
18750 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
18751 (UNPACK_TD): Likewise.
18752 (PACK_TF): Likewise.
18753 (UNPACK_TF): Likewise.
18754 (UNPACK_TF_0): Likewise.
18755 (UNPACK_TF_1): Likewise.
18756 (PACK_V1TI): Likewise.
18757 (UNPACK_V1TI): Likewise.
18759 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
18760 support for decimal floating point builtin functions.
18761 (rs6000_expand_ternop_builtin): Add checks for the new builtin
18762 functions that take constant arguments.
18763 (rs6000_invalid_builtin): Add decimal floating point builtin support.
18764 (rs6000_init_builtins): Setup long double, _Decimal64, and
18765 _Decimal128 types for new builtin functions.
18766 (builtin_function_type): Set the unsigned flags appropriately for
18767 the new builtin functions.
18768 (rs6000_opt_masks): Add support for decimal floating point builtin
18771 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
18772 floating point builtin functions.
18773 (RS6000_BTM_COMMON): Likewise.
18774 (RS6000_BTI_long_double): Likewise.
18775 (RS6000_BTI_dfloat64): Likewise.
18776 (RS6000_BTI_dfloat128): Likewise.
18777 (long_double_type_internal_node): Likewise.
18778 (dfloat64_type_internal_node): Likewise.
18779 (dfloat128_type_internal_node): Likewise.
18781 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
18782 2.07 bcd arithmetic instructions.
18783 (UNSPEC_BCDSUB): Likewise.
18784 (UNSPEC_BCD_OVERFLOW): Likewise.
18785 (UNSPEC_BCD_ADD_SUB): Likewise.
18786 (bcd_add_sub): Likewise.
18787 (BCD_TEST): Likewise.
18788 (bcd<bcd_add_sub>): Likewise.
18789 (bcd<bcd_add_sub>_test): Likewise.
18790 (bcd<bcd_add_sub>_test2): Likewise.
18791 (bcd<bcd_add_sub>_<code>): Likewise.
18792 (peephole2 for combined bcd ops): Likewise.
18794 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
18795 decimal floating point builtin functions.
18796 (UNSPEC_DENBCD): Likewise.
18797 (UNSPEC_DXEX): Likewise.
18798 (UNSPEC_DIEX): Likewise.
18799 (UNSPEC_DSCLI): Likewise.
18800 (UNSPEC_DSCRI): Likewise.
18801 (D64_D128): Likewise.
18802 (dfp_suffix): Likewise.
18803 (dfp_ddedpd_<mode>): Likewise.
18804 (dfp_denbcd_<mode>): Likewise.
18805 (dfp_dxex_<mode>): Likewise.
18806 (dfp_diex_<mode>): Likewise.
18807 (dfp_dscli_<mode>): Likewise.
18808 (dfp_dscri_<mode>): Likewise.
18810 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
18812 (UNSPEC_CDTBCD): Likewise.
18813 (UNSPEC_CBCDTD): Likewise.
18814 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
18815 (UNSPEC_DIVEO): Likewise.
18816 (UNSPEC_DIVEU): Likewise.
18817 (UNSPEC_DIVEUO): Likewise.
18818 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
18819 pack/unpack 128-bit types.
18820 (UNSPEC_PACK_128BIT): Likewise.
18821 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
18822 (udiv<mode>3): Use idiv_ldiv mode attribute.
18823 (div<mode>3): Likewise.
18824 (addg6s): Add new BCD builtin functions.
18825 (cdtbcd): Likewise.
18826 (cbcdtd): Likewise.
18827 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
18828 (div_extend): Likewise.
18829 (div<div_extend>_<mode>"): Likewise.
18830 (FP128_64): Add support for new builtin functions to pack/unpack
18832 (unpack<mode>): Likewise.
18833 (unpacktf_0): Likewise.
18834 (unpacktf_1): Likewise.
18835 (unpack<mode>_dm): Likewise.
18836 (unpack<mode>_nodm): Likewise.
18837 (pack<mode>): Likewise.
18838 (unpackv1ti): Likewise.
18839 (packv1ti): Likewise.
18841 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
18843 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
18846 2014-04-24 Jakub Jelinek <jakub@redhat.com>
18848 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
18849 * gimplify.c (omp_is_private): Change last argument's type to int.
18850 Only diagnose lastprivate if the simd argument is 1, only diagnose
18851 linear if the simd argument is 2.
18852 (gimplify_omp_for): Adjust omp_is_private callers. When adding
18853 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
18854 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
18855 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
18856 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
18857 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18858 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
18859 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
18860 * tree-nested.c (convert_nonlocal_omp_clauses,
18861 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
18863 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
18866 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
18869 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
18871 * flag-types.h (enum ivar_visibility): Add.
18873 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
18875 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
18876 function * argument.
18878 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
18880 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
18882 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18883 Tom de Vries <tom@codesourcery.com>
18885 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
18886 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
18888 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
18889 * emit-rtl.c (try_split): Same.
18891 2014-04-24 Radovan Obradovic <robradovic@mips.com>
18892 Tom de Vries <tom@codesourcery.com>
18894 * common.opt (fuse-caller-save): New option.
18896 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
18898 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
18899 elements for big-endian.
18901 2014-04-24 Richard Biener <rguenther@suse.de>
18903 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
18904 during TER and instead use the sepops interface for expanding
18905 non-GIMPLE_SINGLE_RHS.
18907 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18909 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
18910 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
18912 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18914 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
18915 assembler 64-bit option.
18916 * configure: Regenerate.
18918 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18920 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
18921 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
18922 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
18923 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
18924 (TARGET_CRYPTO): Take TARGET_SIMD into account.
18926 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18928 * config/aarch64/aarch64-builtins.c
18929 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
18930 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
18931 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
18932 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
18934 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
18935 (Vrevsuff): New mode attribute.
18937 2014-04-24 Terry Guo <terry.guo@arm.com>
18939 * config/arm/arm.h (machine_function): Define variable
18940 after_arm_reorg here.
18941 * config/arm/arm.c (after_arm_reorg): Remove the definition.
18942 (arm_split_constant): Update the way to access variable
18944 (arm_reorg): Ditto.
18945 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
18947 2014-04-23 Tom de Vries <tom@codesourcery.com>
18949 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
18951 2014-04-23 David Malcolm <dmalcolm@redhat.com>
18953 * is-a.h: Update comments to reflect the following changes to the
18954 "pointerness" of the API, making the template parameter match the
18955 return type, allowing use of is-a.h with typedefs of pointers.
18956 (is_a_helper::cast): Return a T rather then a pointer to a T, so
18957 that the return type matches the parameter to the is_a_helper.
18959 (dyn_cast): Likewise.
18961 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
18962 pointer from the is-a.h API.
18964 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
18965 (is_a_helper <cgraph_node *>::test): ...this, matching change to
18967 (is_a_helper <varpool_node>::test): Likewise, convert to...
18968 (is_a_helper <varpool_node *>::test): ...this.
18970 (varpool_first_variable): Update for removal of implicit pointer
18971 from the is-a.h API.
18972 (varpool_next_variable): Likewise.
18973 (varpool_first_static_initializer): Likewise.
18974 (varpool_next_static_initializer): Likewise.
18975 (varpool_first_defined_variable): Likewise.
18976 (varpool_next_defined_variable): Likewise.
18977 (cgraph_first_defined_function): Likewise.
18978 (cgraph_next_defined_function): Likewise.
18979 (cgraph_first_function): Likewise.
18980 (cgraph_next_function): Likewise.
18981 (cgraph_first_function_with_gimple_body): Likewise.
18982 (cgraph_next_function_with_gimple_body): Likewise.
18983 (cgraph_alias_target): Likewise.
18984 (varpool_alias_target): Likewise.
18985 (cgraph_function_or_thunk_node): Likewise.
18986 (varpool_variable_node): Likewise.
18987 (symtab_real_symbol_p): Likewise.
18988 * cgraphunit.c (referred_to_p): Likewise.
18989 (analyze_functions): Likewise.
18990 (handle_alias_pairs): Likewise.
18991 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
18992 * gimple-ssa.h (gimple_vuse_op): Likewise.
18993 (gimple_vdef_op): Likewise.
18994 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
18995 * gimple.c (gimple_build_asm_1): Likewise.
18996 (gimple_build_try): Likewise.
18997 (gimple_build_resx): Likewise.
18998 (gimple_build_eh_dispatch): Likewise.
18999 (gimple_build_omp_for): Likewise.
19000 (gimple_omp_for_set_clauses): Likewise.
19002 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
19003 (is_a_helper <gimple_statement_asm *>::test): ...this.
19004 (is_a_helper <gimple_statement_bind>::test): Convert to...
19005 (is_a_helper <gimple_statement_bind *>::test): ...this.
19006 (is_a_helper <gimple_statement_call>::test): Convert to...
19007 (is_a_helper <gimple_statement_call *>::test): ...this.
19008 (is_a_helper <gimple_statement_catch>::test): Convert to...
19009 (is_a_helper <gimple_statement_catch *>::test): ...this.
19010 (is_a_helper <gimple_statement_resx>::test): Convert to...
19011 (is_a_helper <gimple_statement_resx *>::test): ...this.
19012 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
19013 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
19014 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
19015 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
19016 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
19017 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
19018 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
19019 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
19020 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
19021 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
19022 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
19023 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
19024 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
19025 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
19026 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
19027 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
19028 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
19029 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
19030 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
19031 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
19032 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
19033 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
19034 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
19035 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
19036 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
19037 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
19038 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
19039 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
19040 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
19041 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
19042 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
19043 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
19044 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
19045 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
19046 (is_a_helper <gimple_statement_phi>::test): Convert to...
19047 (is_a_helper <gimple_statement_phi *>::test): ...this.
19048 (is_a_helper <gimple_statement_transaction>::test): Convert to...
19049 (is_a_helper <gimple_statement_transaction *>::test): ...this.
19050 (is_a_helper <gimple_statement_try>::test): Convert to...
19051 (is_a_helper <gimple_statement_try *>::test): ...this.
19052 (is_a_helper <gimple_statement_wce>::test): Convert to...
19053 (is_a_helper <gimple_statement_wce *>::test): ...this.
19054 (is_a_helper <const gimple_statement_asm>::test): Convert to...
19055 (is_a_helper <const gimple_statement_asm *>::test): ...this.
19056 (is_a_helper <const gimple_statement_bind>::test): Convert to...
19057 (is_a_helper <const gimple_statement_bind *>::test): ...this.
19058 (is_a_helper <const gimple_statement_call>::test): Convert to...
19059 (is_a_helper <const gimple_statement_call *>::test): ...this.
19060 (is_a_helper <const gimple_statement_catch>::test): Convert to...
19061 (is_a_helper <const gimple_statement_catch *>::test): ...this.
19062 (is_a_helper <const gimple_statement_resx>::test): Convert to...
19063 (is_a_helper <const gimple_statement_resx *>::test): ...this.
19064 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
19065 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
19066 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
19067 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
19068 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
19070 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
19072 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
19074 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
19076 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
19077 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
19078 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
19080 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
19081 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
19083 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
19084 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
19085 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
19086 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
19087 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
19088 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
19090 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
19091 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
19092 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
19093 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
19095 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
19096 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
19097 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
19098 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
19099 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
19100 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
19101 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
19102 (is_a_helper <const gimple_statement_phi>::test): Convert to...
19103 (is_a_helper <const gimple_statement_phi *>::test): ...this.
19104 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
19105 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
19106 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
19107 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
19108 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
19109 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
19110 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
19112 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
19114 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
19115 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
19117 (gimple_use_ops): Update for removal of implicit pointer from the
19119 (gimple_set_use_ops): Likewise.
19120 (gimple_vuse): Likewise.
19121 (gimple_vdef): Likewise.
19122 (gimple_vuse_ptr): Likewise.
19123 (gimple_vdef_ptr): Likewise.
19124 (gimple_set_vuse): Likewise.
19125 (gimple_set_vdef): Likewise.
19126 (gimple_omp_return_set_lhs): Likewise.
19127 (gimple_omp_return_lhs): Likewise.
19128 (gimple_omp_return_lhs_ptr): Likewise.
19129 (gimple_call_fntype): Likewise.
19130 (gimple_call_set_fntype): Likewise.
19131 (gimple_call_set_internal_fn): Likewise.
19132 (gimple_call_use_set): Likewise.
19133 (gimple_call_clobber_set): Likewise.
19134 (gimple_bind_vars): Likewise.
19135 (gimple_bind_set_vars): Likewise.
19136 (gimple_bind_body_ptr): Likewise.
19137 (gimple_bind_set_body): Likewise.
19138 (gimple_bind_add_stmt): Likewise.
19139 (gimple_bind_block): Likewise.
19140 (gimple_bind_set_block): Likewise.
19141 (gimple_asm_ninputs): Likewise.
19142 (gimple_asm_noutputs): Likewise.
19143 (gimple_asm_nclobbers): Likewise.
19144 (gimple_asm_nlabels): Likewise.
19145 (gimple_asm_input_op): Likewise.
19146 (gimple_asm_input_op_ptr): Likewise.
19147 (gimple_asm_output_op): Likewise.
19148 (gimple_asm_output_op_ptr): Likewise.
19149 (gimple_asm_set_output_op): Likewise.
19150 (gimple_asm_clobber_op): Likewise.
19151 (gimple_asm_set_clobber_op): Likewise.
19152 (gimple_asm_label_op): Likewise.
19153 (gimple_asm_set_label_op): Likewise.
19154 (gimple_asm_string): Likewise.
19155 (gimple_catch_types): Likewise.
19156 (gimple_catch_types_ptr): Likewise.
19157 (gimple_catch_handler_ptr): Likewise.
19158 (gimple_catch_set_types): Likewise.
19159 (gimple_catch_set_handler): Likewise.
19160 (gimple_eh_filter_types): Likewise.
19161 (gimple_eh_filter_types_ptr): Likewise.
19162 (gimple_eh_filter_failure_ptr): Likewise.
19163 (gimple_eh_filter_set_types): Likewise.
19164 (gimple_eh_filter_set_failure): Likewise.
19165 (gimple_eh_must_not_throw_fndecl): Likewise.
19166 (gimple_eh_must_not_throw_set_fndecl): Likewise.
19167 (gimple_eh_else_n_body_ptr): Likewise.
19168 (gimple_eh_else_e_body_ptr): Likewise.
19169 (gimple_eh_else_set_n_body): Likewise.
19170 (gimple_eh_else_set_e_body): Likewise.
19171 (gimple_try_eval_ptr): Likewise.
19172 (gimple_try_cleanup_ptr): Likewise.
19173 (gimple_try_set_eval): Likewise.
19174 (gimple_try_set_cleanup): Likewise.
19175 (gimple_wce_cleanup_ptr): Likewise.
19176 (gimple_wce_set_cleanup): Likewise.
19177 (gimple_phi_capacity): Likewise.
19178 (gimple_phi_num_args): Likewise.
19179 (gimple_phi_result): Likewise.
19180 (gimple_phi_result_ptr): Likewise.
19181 (gimple_phi_set_result): Likewise.
19182 (gimple_phi_arg): Likewise.
19183 (gimple_phi_set_arg): Likewise.
19184 (gimple_resx_region): Likewise.
19185 (gimple_resx_set_region): Likewise.
19186 (gimple_eh_dispatch_region): Likewise.
19187 (gimple_eh_dispatch_set_region): Likewise.
19188 (gimple_omp_critical_name): Likewise.
19189 (gimple_omp_critical_name_ptr): Likewise.
19190 (gimple_omp_critical_set_name): Likewise.
19191 (gimple_omp_for_clauses): Likewise.
19192 (gimple_omp_for_clauses_ptr): Likewise.
19193 (gimple_omp_for_set_clauses): Likewise.
19194 (gimple_omp_for_collapse): Likewise.
19195 (gimple_omp_for_index): Likewise.
19196 (gimple_omp_for_index_ptr): Likewise.
19197 (gimple_omp_for_set_index): Likewise.
19198 (gimple_omp_for_initial): Likewise.
19199 (gimple_omp_for_initial_ptr): Likewise.
19200 (gimple_omp_for_set_initial): Likewise.
19201 (gimple_omp_for_final): Likewise.
19202 (gimple_omp_for_final_ptr): Likewise.
19203 (gimple_omp_for_set_final): Likewise.
19204 (gimple_omp_for_incr): Likewise.
19205 (gimple_omp_for_incr_ptr): Likewise.
19206 (gimple_omp_for_set_incr): Likewise.
19207 (gimple_omp_for_pre_body_ptr): Likewise.
19208 (gimple_omp_for_set_pre_body): Likewise.
19209 (gimple_omp_parallel_clauses): Likewise.
19210 (gimple_omp_parallel_clauses_ptr): Likewise.
19211 (gimple_omp_parallel_set_clauses): Likewise.
19212 (gimple_omp_parallel_child_fn): Likewise.
19213 (gimple_omp_parallel_child_fn_ptr): Likewise.
19214 (gimple_omp_parallel_set_child_fn): Likewise.
19215 (gimple_omp_parallel_data_arg): Likewise.
19216 (gimple_omp_parallel_data_arg_ptr): Likewise.
19217 (gimple_omp_parallel_set_data_arg): Likewise.
19218 (gimple_omp_task_clauses): Likewise.
19219 (gimple_omp_task_clauses_ptr): Likewise.
19220 (gimple_omp_task_set_clauses): Likewise.
19221 (gimple_omp_task_child_fn): Likewise.
19222 (gimple_omp_task_child_fn_ptr): Likewise.
19223 (gimple_omp_task_set_child_fn): Likewise.
19224 (gimple_omp_task_data_arg): Likewise.
19225 (gimple_omp_task_data_arg_ptr): Likewise.
19226 (gimple_omp_task_set_data_arg): Likewise.
19227 (gimple_omp_taskreg_clauses): Likewise.
19228 (gimple_omp_taskreg_clauses_ptr): Likewise.
19229 (gimple_omp_taskreg_set_clauses): Likewise.
19230 (gimple_omp_taskreg_child_fn): Likewise.
19231 (gimple_omp_taskreg_child_fn_ptr): Likewise.
19232 (gimple_omp_taskreg_set_child_fn): Likewise.
19233 (gimple_omp_taskreg_data_arg): Likewise.
19234 (gimple_omp_taskreg_data_arg_ptr): Likewise.
19235 (gimple_omp_taskreg_set_data_arg): Likewise.
19236 (gimple_omp_task_copy_fn): Likewise.
19237 (gimple_omp_task_copy_fn_ptr): Likewise.
19238 (gimple_omp_task_set_copy_fn): Likewise.
19239 (gimple_omp_task_arg_size): Likewise.
19240 (gimple_omp_task_arg_size_ptr): Likewise.
19241 (gimple_omp_task_set_arg_size): Likewise.
19242 (gimple_omp_task_arg_align): Likewise.
19243 (gimple_omp_task_arg_align_ptr): Likewise.
19244 (gimple_omp_task_set_arg_align): Likewise.
19245 (gimple_omp_single_clauses): Likewise.
19246 (gimple_omp_single_clauses_ptr): Likewise.
19247 (gimple_omp_single_set_clauses): Likewise.
19248 (gimple_omp_target_clauses): Likewise.
19249 (gimple_omp_target_clauses_ptr): Likewise.
19250 (gimple_omp_target_set_clauses): Likewise.
19251 (gimple_omp_target_child_fn): Likewise.
19252 (gimple_omp_target_child_fn_ptr): Likewise.
19253 (gimple_omp_target_set_child_fn): Likewise.
19254 (gimple_omp_target_data_arg): Likewise.
19255 (gimple_omp_target_data_arg_ptr): Likewise.
19256 (gimple_omp_target_set_data_arg): Likewise.
19257 (gimple_omp_teams_clauses): Likewise.
19258 (gimple_omp_teams_clauses_ptr): Likewise.
19259 (gimple_omp_teams_set_clauses): Likewise.
19260 (gimple_omp_sections_clauses): Likewise.
19261 (gimple_omp_sections_clauses_ptr): Likewise.
19262 (gimple_omp_sections_set_clauses): Likewise.
19263 (gimple_omp_sections_control): Likewise.
19264 (gimple_omp_sections_control_ptr): Likewise.
19265 (gimple_omp_sections_set_control): Likewise.
19266 (gimple_omp_for_set_cond): Likewise.
19267 (gimple_omp_for_cond): Likewise.
19268 (gimple_omp_atomic_store_set_val): Likewise.
19269 (gimple_omp_atomic_store_val): Likewise.
19270 (gimple_omp_atomic_store_val_ptr): Likewise.
19271 (gimple_omp_atomic_load_set_lhs): Likewise.
19272 (gimple_omp_atomic_load_lhs): Likewise.
19273 (gimple_omp_atomic_load_lhs_ptr): Likewise.
19274 (gimple_omp_atomic_load_set_rhs): Likewise.
19275 (gimple_omp_atomic_load_rhs): Likewise.
19276 (gimple_omp_atomic_load_rhs_ptr): Likewise.
19277 (gimple_omp_continue_control_def): Likewise.
19278 (gimple_omp_continue_control_def_ptr): Likewise.
19279 (gimple_omp_continue_set_control_def): Likewise.
19280 (gimple_omp_continue_control_use): Likewise.
19281 (gimple_omp_continue_control_use_ptr): Likewise.
19282 (gimple_omp_continue_set_control_use): Likewise.
19283 (gimple_transaction_body_ptr): Likewise.
19284 (gimple_transaction_label): Likewise.
19285 (gimple_transaction_label_ptr): Likewise.
19286 (gimple_transaction_set_body): Likewise.
19287 (gimple_transaction_set_label): Likewise.
19289 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
19290 * ipa-inline-analysis.c (inline_write_summary): Likewise.
19291 * ipa-ref.c (ipa_record_reference): Likewise.
19292 * ipa-reference.c (analyze_function): Likewise.
19293 (ipa_reference_write_optimization_summary): Likewise.
19294 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
19295 (address_taken_from_non_vtable_p): Likewise.
19296 (comdat_can_be_unshared_p_1): Likewise.
19297 * lto-cgraph.c (lto_output_ref): Likewise.
19298 (add_references): Likewise.
19299 (compute_ltrans_boundary): Likewise.
19300 (output_symtab): Likewise.
19301 (input_ref): Likewise.
19302 (input_cgraph_1): Likewise.
19303 (output_cgraph_opt_summary): Likewise.
19304 * lto-streamer-out.c (lto_output): Likewise.
19305 (output_symbol_p): Likewise.
19306 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
19307 (lsei_start_function_in_partition): Likewise.
19308 (lsei_next_variable_in_partition): Likewise.
19309 (lsei_start_variable_in_partition): Likewise.
19310 * symtab.c (insert_to_assembler_name_hash): Likewise.
19311 (unlink_from_assembler_name_hash): Likewise.
19312 (symtab_unregister_node): Likewise.
19313 (symtab_remove_node): Likewise.
19314 (dump_symtab_node): Likewise.
19315 (verify_symtab_base): Likewise.
19316 (verify_symtab_node): Likewise.
19317 (symtab_make_decl_local): Likewise.
19318 (symtab_alias_ultimate_target): Likewise.
19319 (symtab_resolve_alias): Likewise.
19320 (symtab_get_symbol_partitioning_class): Likewise.
19321 * tree-phinodes.c (allocate_phi_node): Likewise.
19322 (reserve_phi_args_for_new_edge): Likewise.
19323 (remove_phi_args): Likewise.
19324 * varpool.c (varpool_node_for_asm): Likewise.
19325 (varpool_remove_unreferenced_decls): Likewise.
19327 2014-04-23 Jeff Law <law@redhat.com>
19329 PR tree-optimization/60902
19330 * tree-ssa-threadedge.c
19331 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
19332 invalidate outputs from statements that do not produce useful
19333 outputs for threading.
19335 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
19337 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
19338 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
19339 machine descriptions for Stack Smashing Protector.
19341 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
19343 * aarch64.md (<optab>_rol<mode>3): New pattern.
19344 (<optab>_rolsi3_uxtw): Likewise.
19345 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
19347 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
19349 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
19350 (arm_cortex_a12_tune): Likewise.
19352 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19354 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
19356 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19358 * config/arm/arm.md (arm_rev16si2): New pattern.
19359 (arm_rev16si2_alt): Likewise.
19360 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
19362 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19364 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
19365 (rev16<mode>2_alt): Likewise.
19366 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
19367 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
19368 (aarch_rev16_shleft_mask_imm_p): Likewise.
19369 (aarch_rev16_p_1): Likewise.
19370 (aarch_rev16_p): Likewise.
19371 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
19372 (aarch_rev16_shright_mask_imm_p): Likewise.
19373 (aarch_rev16_shleft_mask_imm_p): Likewise.
19375 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19377 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
19378 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
19380 (cortex_a53_extra_costs): Likewise.
19381 (cortex_a57_extra_costs): Likewise.
19382 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
19383 (cortexa7_extra_costs): Likewise.
19384 (cortexa8_extra_costs): Likewise.
19385 (cortexa12_extra_costs): Likewise.
19386 (cortexa15_extra_costs): Likewise.
19387 (v7m_extra_costs): Likewise.
19388 (arm_new_rtx_costs): Handle BSWAP.
19390 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19392 * config/arm/arm.c (cortexa8_extra_costs): New table.
19393 (arm_cortex_a8_tune): New tuning struct.
19394 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
19396 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19398 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
19400 2014-04-23 Richard Biener <rguenther@suse.de>
19402 * Makefile.in (OBJS): Remove loop-unswitch.o.
19403 * tree-pass.h (make_pass_rtl_unswitch): Remove.
19404 * passes.def (pass_rtl_unswitch): Likewise.
19405 * loop-init.c (gate_rtl_unswitch): Likewise.
19406 (rtl_unswitch): Likewise.
19407 (pass_data_rtl_unswitch): Likewise.
19408 (pass_rtl_unswitch): Likewise.
19409 (make_pass_rtl_unswitch): Likewise.
19410 * rtl.h (reversed_condition): Likewise.
19411 (compare_and_jump_seq): Likewise.
19412 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
19414 * loop-unroll.c (compare_and_jump_seq): Likewise.
19416 2014-04-23 Richard Biener <rguenther@suse.de>
19418 PR tree-optimization/60903
19419 * tree-ssa-loop-im.c (analyze_memory_references): Remove
19420 commented code block.
19421 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
19422 loop flags to newly created BBs and edges.
19424 2014-04-23 Nick Clifton <nickc@redhat.com>
19426 * config/msp430/msp430.c (msp430_handle_option): Move function
19428 (msp430_option_override): Simplify mcu and mcpu option handling.
19429 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
19430 support for -mhwmult command line option.
19431 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
19432 -mhwmult command line option.
19433 (msp430_hwmult_enabled): Delete.
19434 (msp43o_output_labelref): Add support for -mhwmult command line option.
19435 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
19436 (umulsidi3): Likewise.
19437 * config/msp430/msp430.opt (mmcu): Add Report attribute.
19438 (mcpu, mlarge, msmall): Likewise.
19439 (mhwmult): New option.
19440 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
19442 (msp430_is_f5_mcu): Remove prototype.
19443 (msp430_use_f5_series_hwmult): Add prototype.
19444 * config/msp430/msp430-opts.h: New file.
19445 * common/config/msp430: New directory.
19446 * common/config/msp430/msp430-common.c: New file.
19447 * config.gcc (msp430): Remove target_has_targetm_common.
19448 * doc/invoke.texi: Document -mhwmult command line option.
19450 2014-04-23 Nick Clifton <nickc@redhat.com>
19452 * config/i386/cygwin.h (ENDFILE_SPEC): Include
19453 default-manifest.o if it can be found in the search path.
19454 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
19456 2014-04-23 Terry Guo <terry.guo@arm.com>
19458 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
19460 2014-04-23 Richard Biener <rguenther@suse.de>
19462 PR middle-end/60895
19463 * tree-inline.c (declare_return_variable): Use mark_addressable.
19465 2014-04-23 Richard Biener <rguenther@suse.de>
19467 PR middle-end/60891
19468 * loop-init.c (loop_optimizer_init): Make sure to apply
19469 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
19471 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19474 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
19476 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
19477 if flag_sanitize_undefined_trap_on_error.
19478 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
19479 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
19480 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
19481 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
19482 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
19483 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
19484 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
19485 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
19486 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
19487 * ubsan.c (ubsan_instrument_unreachable): Return
19488 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
19489 (ubsan_expand_null_ifn): Emit __builtin_trap ()
19490 if flag_sanitize_undefined_trap_on_error and
19491 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
19492 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
19493 instrument_bool_enum_load): Emit __builtin_trap () if
19494 flag_sanitize_undefined_trap_on_error and
19495 __builtin_handle_*_abort () if !flag_sanitize_recover.
19496 * doc/invoke.texi (-fsanitize-recover,
19497 -fsanitize-undefined-trap-on-error): Document.
19499 2014-04-22 Christian Bruel <christian.bruel@st.com>
19501 * config/sh/sh.md (mov<mode>): Replace movQIHI.
19502 Force immediates to SImode.
19504 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
19506 * config/nios2/nios2.md (UNSPEC_ROUND): New.
19507 (lroundsfsi2): New.
19508 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
19509 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
19510 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
19511 (nios2_fpu_insn): Add entry for round.
19512 (N2FPU_NO_ERRNO_P): Define.
19513 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
19515 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
19517 2014-04-22 Richard Henderson <rth@redhat.com>
19519 * config/aarch64/aarch64 (addti3, subti3): New expanders.
19520 (add<GPI>3_compare0): Remove leading * from name.
19521 (add<GPI>3_carryin): Likewise.
19522 (sub<GPI>3_compare0): Likewise.
19523 (sub<GPI>3_carryin): Likewise.
19524 (<su_optab>mulditi3): New expander.
19525 (multi3): New expander.
19526 (madd<GPI>): Remove leading * from name.
19528 2014-04-22 Martin Jambor <mjambor@suse.cz>
19530 * cgraphclones.c (cgraph_function_versioning): Copy
19531 ipa_transforms_to_apply instead of asserting it is empty.
19533 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
19536 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
19537 on count_exp to get mode.
19539 2014-04-22 Andrew Pinski <apinski@cavium.com>
19541 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
19542 Handle TLS for ILP32.
19543 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
19544 (tlsie_small_<mode>): this and handle PTR.
19545 (tlsie_small_sidi): New pattern.
19546 (tlsle_small): Change to an expand to handle ILP32.
19547 (tlsle_small_<mode>): New pattern.
19548 (tlsdesc_small): Rename to ...
19549 (tlsdesc_small_<mode>): this and handle PTR.
19551 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19553 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
19555 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19557 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19558 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
19559 (aarch64_types_signed_poly_qualifiers): Likewise.
19560 (aarch64_types_unsigned_signed_qualifiers): Likewise.
19561 (aarch64_types_poly_signed_qualifiers): Likewise.
19562 (TYPES_REINTERP_SS): Type macro added.
19563 (TYPES_REINTERP_SU): Likewise.
19564 (TYPES_REINTERP_SP): Likewise.
19565 (TYPES_REINTERP_US): Likewise.
19566 (TYPES_REINTERP_PS): Likewise.
19567 (aarch64_fold_builtin): New expression folding added.
19568 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
19569 Declarations removed.
19570 (REINTERP_SS): Declarations added.
19571 (REINTERP_US): Likewise.
19572 (REINTERP_PS): Likewise.
19573 (REINTERP_SU): Likewise.
19574 (REINTERP_SP): Likewise.
19575 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
19576 (vreinterpretq_p8_f64): Likewise.
19577 (vreinterpret_p16_f64): Likewise.
19578 (vreinterpretq_p16_f64): Likewise.
19579 (vreinterpret_f32_f64): Likewise.
19580 (vreinterpretq_f32_f64): Likewise.
19581 (vreinterpret_f64_f32): Likewise.
19582 (vreinterpret_f64_p8): Likewise.
19583 (vreinterpret_f64_p16): Likewise.
19584 (vreinterpret_f64_s8): Likewise.
19585 (vreinterpret_f64_s16): Likewise.
19586 (vreinterpret_f64_s32): Likewise.
19587 (vreinterpret_f64_s64): Likewise.
19588 (vreinterpret_f64_u8): Likewise.
19589 (vreinterpret_f64_u16): Likewise.
19590 (vreinterpret_f64_u32): Likewise.
19591 (vreinterpret_f64_u64): Likewise.
19592 (vreinterpretq_f64_f32): Likewise.
19593 (vreinterpretq_f64_p8): Likewise.
19594 (vreinterpretq_f64_p16): Likewise.
19595 (vreinterpretq_f64_s8): Likewise.
19596 (vreinterpretq_f64_s16): Likewise.
19597 (vreinterpretq_f64_s32): Likewise.
19598 (vreinterpretq_f64_s64): Likewise.
19599 (vreinterpretq_f64_u8): Likewise.
19600 (vreinterpretq_f64_u16): Likewise.
19601 (vreinterpretq_f64_u32): Likewise.
19602 (vreinterpretq_f64_u64): Likewise.
19603 (vreinterpret_s64_f64): Likewise.
19604 (vreinterpretq_s64_f64): Likewise.
19605 (vreinterpret_u64_f64): Likewise.
19606 (vreinterpretq_u64_f64): Likewise.
19607 (vreinterpret_s8_f64): Likewise.
19608 (vreinterpretq_s8_f64): Likewise.
19609 (vreinterpret_s16_f64): Likewise.
19610 (vreinterpretq_s16_f64): Likewise.
19611 (vreinterpret_s32_f64): Likewise.
19612 (vreinterpretq_s32_f64): Likewise.
19613 (vreinterpret_u8_f64): Likewise.
19614 (vreinterpretq_u8_f64): Likewise.
19615 (vreinterpret_u16_f64): Likewise.
19616 (vreinterpretq_u16_f64): Likewise.
19617 (vreinterpret_u32_f64): Likewise.
19618 (vreinterpretq_u32_f64): Likewise.
19620 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19622 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
19623 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
19624 (vreinterpret_p8_s8): Likewise.
19625 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
19626 (vreinterpret_p8_s16): Likewise.
19627 (vreinterpret_p8_s32): Likewise.
19628 (vreinterpret_p8_s64): Likewise.
19629 (vreinterpret_p8_f32): Likewise.
19630 (vreinterpret_p8_u8): Likewise.
19631 (vreinterpret_p8_u16): Likewise.
19632 (vreinterpret_p8_u32): Likewise.
19633 (vreinterpret_p8_u64): Likewise.
19634 (vreinterpret_p8_p16): Likewise.
19635 (vreinterpretq_p8_s8): Likewise.
19636 (vreinterpretq_p8_s16): Likewise.
19637 (vreinterpretq_p8_s32): Likewise.
19638 (vreinterpretq_p8_s64): Likewise.
19639 (vreinterpretq_p8_f32): Likewise.
19640 (vreinterpretq_p8_u8): Likewise.
19641 (vreinterpretq_p8_u16): Likewise.
19642 (vreinterpretq_p8_u32): Likewise.
19643 (vreinterpretq_p8_u64): Likewise.
19644 (vreinterpretq_p8_p16): Likewise.
19645 (vreinterpret_p16_s8): Likewise.
19646 (vreinterpret_p16_s16): Likewise.
19647 (vreinterpret_p16_s32): Likewise.
19648 (vreinterpret_p16_s64): Likewise.
19649 (vreinterpret_p16_f32): Likewise.
19650 (vreinterpret_p16_u8): Likewise.
19651 (vreinterpret_p16_u16): Likewise.
19652 (vreinterpret_p16_u32): Likewise.
19653 (vreinterpret_p16_u64): Likewise.
19654 (vreinterpret_p16_p8): Likewise.
19655 (vreinterpretq_p16_s8): Likewise.
19656 (vreinterpretq_p16_s16): Likewise.
19657 (vreinterpretq_p16_s32): Likewise.
19658 (vreinterpretq_p16_s64): Likewise.
19659 (vreinterpretq_p16_f32): Likewise.
19660 (vreinterpretq_p16_u8): Likewise.
19661 (vreinterpretq_p16_u16): Likewise.
19662 (vreinterpretq_p16_u32): Likewise.
19663 (vreinterpretq_p16_u64): Likewise.
19664 (vreinterpretq_p16_p8): Likewise.
19665 (vreinterpret_f32_s8): Likewise.
19666 (vreinterpret_f32_s16): Likewise.
19667 (vreinterpret_f32_s32): Likewise.
19668 (vreinterpret_f32_s64): Likewise.
19669 (vreinterpret_f32_u8): Likewise.
19670 (vreinterpret_f32_u16): Likewise.
19671 (vreinterpret_f32_u32): Likewise.
19672 (vreinterpret_f32_u64): Likewise.
19673 (vreinterpret_f32_p8): Likewise.
19674 (vreinterpret_f32_p16): Likewise.
19675 (vreinterpretq_f32_s8): Likewise.
19676 (vreinterpretq_f32_s16): Likewise.
19677 (vreinterpretq_f32_s32): Likewise.
19678 (vreinterpretq_f32_s64): Likewise.
19679 (vreinterpretq_f32_u8): Likewise.
19680 (vreinterpretq_f32_u16): Likewise.
19681 (vreinterpretq_f32_u32): Likewise.
19682 (vreinterpretq_f32_u64): Likewise.
19683 (vreinterpretq_f32_p8): Likewise.
19684 (vreinterpretq_f32_p16): Likewise.
19685 (vreinterpret_s64_s8): Likewise.
19686 (vreinterpret_s64_s16): Likewise.
19687 (vreinterpret_s64_s32): Likewise.
19688 (vreinterpret_s64_f32): Likewise.
19689 (vreinterpret_s64_u8): Likewise.
19690 (vreinterpret_s64_u16): Likewise.
19691 (vreinterpret_s64_u32): Likewise.
19692 (vreinterpret_s64_u64): Likewise.
19693 (vreinterpret_s64_p8): Likewise.
19694 (vreinterpret_s64_p16): Likewise.
19695 (vreinterpretq_s64_s8): Likewise.
19696 (vreinterpretq_s64_s16): Likewise.
19697 (vreinterpretq_s64_s32): Likewise.
19698 (vreinterpretq_s64_f32): Likewise.
19699 (vreinterpretq_s64_u8): Likewise.
19700 (vreinterpretq_s64_u16): Likewise.
19701 (vreinterpretq_s64_u32): Likewise.
19702 (vreinterpretq_s64_u64): Likewise.
19703 (vreinterpretq_s64_p8): Likewise.
19704 (vreinterpretq_s64_p16): Likewise.
19705 (vreinterpret_u64_s8): Likewise.
19706 (vreinterpret_u64_s16): Likewise.
19707 (vreinterpret_u64_s32): Likewise.
19708 (vreinterpret_u64_s64): Likewise.
19709 (vreinterpret_u64_f32): Likewise.
19710 (vreinterpret_u64_u8): Likewise.
19711 (vreinterpret_u64_u16): Likewise.
19712 (vreinterpret_u64_u32): Likewise.
19713 (vreinterpret_u64_p8): Likewise.
19714 (vreinterpret_u64_p16): Likewise.
19715 (vreinterpretq_u64_s8): Likewise.
19716 (vreinterpretq_u64_s16): Likewise.
19717 (vreinterpretq_u64_s32): Likewise.
19718 (vreinterpretq_u64_s64): Likewise.
19719 (vreinterpretq_u64_f32): Likewise.
19720 (vreinterpretq_u64_u8): Likewise.
19721 (vreinterpretq_u64_u16): Likewise.
19722 (vreinterpretq_u64_u32): Likewise.
19723 (vreinterpretq_u64_p8): Likewise.
19724 (vreinterpretq_u64_p16): Likewise.
19725 (vreinterpret_s8_s16): Likewise.
19726 (vreinterpret_s8_s32): Likewise.
19727 (vreinterpret_s8_s64): Likewise.
19728 (vreinterpret_s8_f32): Likewise.
19729 (vreinterpret_s8_u8): Likewise.
19730 (vreinterpret_s8_u16): Likewise.
19731 (vreinterpret_s8_u32): Likewise.
19732 (vreinterpret_s8_u64): Likewise.
19733 (vreinterpret_s8_p8): Likewise.
19734 (vreinterpret_s8_p16): Likewise.
19735 (vreinterpretq_s8_s16): Likewise.
19736 (vreinterpretq_s8_s32): Likewise.
19737 (vreinterpretq_s8_s64): Likewise.
19738 (vreinterpretq_s8_f32): Likewise.
19739 (vreinterpretq_s8_u8): Likewise.
19740 (vreinterpretq_s8_u16): Likewise.
19741 (vreinterpretq_s8_u32): Likewise.
19742 (vreinterpretq_s8_u64): Likewise.
19743 (vreinterpretq_s8_p8): Likewise.
19744 (vreinterpretq_s8_p16): Likewise.
19745 (vreinterpret_s16_s8): Likewise.
19746 (vreinterpret_s16_s32): Likewise.
19747 (vreinterpret_s16_s64): Likewise.
19748 (vreinterpret_s16_f32): Likewise.
19749 (vreinterpret_s16_u8): Likewise.
19750 (vreinterpret_s16_u16): Likewise.
19751 (vreinterpret_s16_u32): Likewise.
19752 (vreinterpret_s16_u64): Likewise.
19753 (vreinterpret_s16_p8): Likewise.
19754 (vreinterpret_s16_p16): Likewise.
19755 (vreinterpretq_s16_s8): Likewise.
19756 (vreinterpretq_s16_s32): Likewise.
19757 (vreinterpretq_s16_s64): Likewise.
19758 (vreinterpretq_s16_f32): Likewise.
19759 (vreinterpretq_s16_u8): Likewise.
19760 (vreinterpretq_s16_u16): Likewise.
19761 (vreinterpretq_s16_u32): Likewise.
19762 (vreinterpretq_s16_u64): Likewise.
19763 (vreinterpretq_s16_p8): Likewise.
19764 (vreinterpretq_s16_p16): Likewise.
19765 (vreinterpret_s32_s8): Likewise.
19766 (vreinterpret_s32_s16): Likewise.
19767 (vreinterpret_s32_s64): Likewise.
19768 (vreinterpret_s32_f32): Likewise.
19769 (vreinterpret_s32_u8): Likewise.
19770 (vreinterpret_s32_u16): Likewise.
19771 (vreinterpret_s32_u32): Likewise.
19772 (vreinterpret_s32_u64): Likewise.
19773 (vreinterpret_s32_p8): Likewise.
19774 (vreinterpret_s32_p16): Likewise.
19775 (vreinterpretq_s32_s8): Likewise.
19776 (vreinterpretq_s32_s16): Likewise.
19777 (vreinterpretq_s32_s64): Likewise.
19778 (vreinterpretq_s32_f32): Likewise.
19779 (vreinterpretq_s32_u8): Likewise.
19780 (vreinterpretq_s32_u16): Likewise.
19781 (vreinterpretq_s32_u32): Likewise.
19782 (vreinterpretq_s32_u64): Likewise.
19783 (vreinterpretq_s32_p8): Likewise.
19784 (vreinterpretq_s32_p16): Likewise.
19785 (vreinterpret_u8_s8): Likewise.
19786 (vreinterpret_u8_s16): Likewise.
19787 (vreinterpret_u8_s32): Likewise.
19788 (vreinterpret_u8_s64): Likewise.
19789 (vreinterpret_u8_f32): Likewise.
19790 (vreinterpret_u8_u16): Likewise.
19791 (vreinterpret_u8_u32): Likewise.
19792 (vreinterpret_u8_u64): Likewise.
19793 (vreinterpret_u8_p8): Likewise.
19794 (vreinterpret_u8_p16): Likewise.
19795 (vreinterpretq_u8_s8): Likewise.
19796 (vreinterpretq_u8_s16): Likewise.
19797 (vreinterpretq_u8_s32): Likewise.
19798 (vreinterpretq_u8_s64): Likewise.
19799 (vreinterpretq_u8_f32): Likewise.
19800 (vreinterpretq_u8_u16): Likewise.
19801 (vreinterpretq_u8_u32): Likewise.
19802 (vreinterpretq_u8_u64): Likewise.
19803 (vreinterpretq_u8_p8): Likewise.
19804 (vreinterpretq_u8_p16): Likewise.
19805 (vreinterpret_u16_s8): Likewise.
19806 (vreinterpret_u16_s16): Likewise.
19807 (vreinterpret_u16_s32): Likewise.
19808 (vreinterpret_u16_s64): Likewise.
19809 (vreinterpret_u16_f32): Likewise.
19810 (vreinterpret_u16_u8): Likewise.
19811 (vreinterpret_u16_u32): Likewise.
19812 (vreinterpret_u16_u64): Likewise.
19813 (vreinterpret_u16_p8): Likewise.
19814 (vreinterpret_u16_p16): Likewise.
19815 (vreinterpretq_u16_s8): Likewise.
19816 (vreinterpretq_u16_s16): Likewise.
19817 (vreinterpretq_u16_s32): Likewise.
19818 (vreinterpretq_u16_s64): Likewise.
19819 (vreinterpretq_u16_f32): Likewise.
19820 (vreinterpretq_u16_u8): Likewise.
19821 (vreinterpretq_u16_u32): Likewise.
19822 (vreinterpretq_u16_u64): Likewise.
19823 (vreinterpretq_u16_p8): Likewise.
19824 (vreinterpretq_u16_p16): Likewise.
19825 (vreinterpret_u32_s8): Likewise.
19826 (vreinterpret_u32_s16): Likewise.
19827 (vreinterpret_u32_s32): Likewise.
19828 (vreinterpret_u32_s64): Likewise.
19829 (vreinterpret_u32_f32): Likewise.
19830 (vreinterpret_u32_u8): Likewise.
19831 (vreinterpret_u32_u16): Likewise.
19832 (vreinterpret_u32_u64): Likewise.
19833 (vreinterpret_u32_p8): Likewise.
19834 (vreinterpret_u32_p16): Likewise.
19835 (vreinterpretq_u32_s8): Likewise.
19836 (vreinterpretq_u32_s16): Likewise.
19837 (vreinterpretq_u32_s32): Likewise.
19838 (vreinterpretq_u32_s64): Likewise.
19839 (vreinterpretq_u32_f32): Likewise.
19840 (vreinterpretq_u32_u8): Likewise.
19841 (vreinterpretq_u32_u16): Likewise.
19842 (vreinterpretq_u32_u64): Likewise.
19843 (vreinterpretq_u32_p8): Likewise.
19844 (vreinterpretq_u32_p16): Likewise.
19846 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19848 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
19850 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
19852 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
19853 (vqnegd_s64): Likewise.
19854 (vqabs_s64): Likewise.
19855 (vqabsd_s64): Likewise.
19857 2014-04-22 Richard Henderson <rth@redhat.com>
19859 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
19860 computation to the top of the loop.
19862 2014-04-22 Renlin <renlin.li@arm.com>
19863 Jiong Wang <jiong.wang@arm.com>
19865 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
19866 * config/aarch64/aarch64.c (aarch64_layout_frame)
19867 (aarch64_initial_elimination_offset): Likewise.
19869 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
19871 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
19874 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
19876 * machmode.h (bitwise_mode_for_mode): Declare.
19877 * stor-layout.h (bitwise_type_for_mode): Likewise.
19878 * stor-layout.c (bitwise_mode_for_mode): New function.
19879 (bitwise_type_for_mode): Likewise.
19880 * builtins.c (fold_builtin_memory_op): Use it instead of
19881 int_mode_for_mode and build_nonstandard_integer_type.
19883 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19885 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
19886 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
19887 (*-*-solaris2*): Simplify.
19888 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
19889 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
19890 *-*-solaris2.9* handling.
19892 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
19894 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
19895 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
19896 handling, simplify.
19897 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
19898 * configure: Regenerate.
19900 * config/i386/sol2-9.h: Remove.
19902 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
19903 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
19904 Remove Solaris 9 references.
19906 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
19908 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
19909 (floatuns<GPI:mode><GPF:mode>2): Remove.
19910 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
19911 and floatuns conversions.
19912 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
19913 and floatuns conversions.
19914 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
19915 (w1,w2): New mode attributes for inequal width conversions.
19917 2014-04-22 Renlin Li <Renlin.Li@arm.com>
19919 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
19920 the output asm format.
19922 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
19924 * config/aarch64/aarch64-simd.md
19925 (aarch64_cm<optab>di): Always split.
19926 (*aarch64_cm<optab>di): New.
19927 (aarch64_cmtstdi): Always split.
19928 (*aarch64_cmtstdi): New.
19930 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19932 PR tree-optimization/60823
19933 * omp-low.c (ipa_simd_modify_function_body): Go through
19934 all SSA_NAMEs and for those refering to vector arguments
19935 which are going to be replaced adjust SSA_NAME_VAR and,
19936 if it is a default definition, change it into a non-default
19937 definition assigned at the beginning of function from new_decl.
19938 (ipa_simd_modify_stmt_ops): Rewritten.
19939 * tree-dfa.c (set_ssa_default_def): When removing default def,
19940 check for NULL loc instead of NULL *loc.
19942 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19944 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
19945 restrictions on core registers for DImode values in Thumb2.
19947 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19949 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
19950 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
19952 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19954 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
19955 (*iordi_notzesidi_di): Likewise.
19956 (*iordi_notsesidi_di): Likewise.
19958 2014-04-22 Ian Bolton <ian.bolton@arm.com>
19960 * config/arm/arm-protos.h (tune_params): New struct members.
19961 * config/arm/arm.c: Initialise tune_params per processor.
19962 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
19963 for speed, based on new tune_params.
19965 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
19967 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
19968 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
19969 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
19970 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
19971 * config/aarch64/arm_neon.h (vrnd_f64): Added.
19972 (vrnda_f64): Likewise.
19973 (vrndi_f64): Likewise.
19974 (vrndm_f64): Likewise.
19975 (vrndn_f64): Likewise.
19976 (vrndp_f64): Likewise.
19977 (vrndx_f64): Likewise.
19979 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19981 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
19982 GET_MODE_SIZE argument is enum machine_mode.
19984 2014-04-22 Jakub Jelinek <jakub@redhat.com>
19987 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
19988 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
19990 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
19992 PR middle-end/60281
19993 * asan.c (asan_emit_stack_protection): Force the base to align to
19994 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
19995 appropriate bits if STRICT_ALIGNMENT.
19996 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
19998 (expand_used_vars): Leave a space in the stack frame for alignment
19999 if STRICT_ALIGNMENT.
20001 2014-04-21 David Malcolm <dmalcolm@redhat.com>
20003 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
20005 (gimple_store_p): Likewise.
20006 (gimple_assign_load_p): Likewise.
20007 (gimple_assign_cast_p): Likewise.
20008 (gimple_clobber_p): Likewise.
20010 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
20011 rather than a gimple.
20012 (gimple_assign_cast_p): Likewise.
20014 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20017 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
20018 If mode is DDmode and TARGET_E500_DOUBLE allow move.
20020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
20021 more debug information for E500 if -mdebug=reg.
20023 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
20026 * config/i386/i386.c (ix86_expand_builtin)
20027 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
20028 register for target RTX.
20029 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
20031 2014-04-18 Cong Hou <congh@google.com>
20033 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
20034 the widen-mult pattern by handling two operands with different sizes,
20035 and operands whose size is smaller than half of the result type.
20037 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20039 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
20040 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
20041 (do_estimate_edge_time): Compute it.
20042 * ipa-inline.c (want_inline_small_function_p): Bypass
20043 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
20045 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
20047 * ipa-inline.c (spec_rem): New static variable.
20048 (dump_overall_stats): New function.
20049 (dump_inline_stats): New function.
20051 2014-04-18 Richard Henderson <rth@redhat.com>
20053 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
20054 to GET_MODE_SIZE, not a reg_class_t.
20056 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20058 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
20059 (vsx_xxmrglw_<mode>): Likewise.
20061 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
20064 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
20065 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
20066 (rs6000_init_hard_regno_mode_ok): Likewise.
20068 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
20070 * ipa-inline.c (inline_small_functions): Account only non-cold
20072 * doc/invoke.texi (inline-unit-growth): Update documentation.
20074 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
20076 * config/rs6000/rs6000.md (addti3, subti3): New.
20078 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
20081 * config/i386/i386.c (ix86_expand_clear): Remove outdated
20082 comment. Check optimize_insn_for_size_p instead of
20083 optimize_insn_for_speed_p.
20085 2014-04-17 Martin Jambor <mjambor@suse.cz>
20087 * gimple-iterator.c (gsi_start_edge): New function.
20088 * gimple-iterator.h (gsi_start_edge): Declare.
20089 * tree-sra.c (single_non_eh_succ): New function.
20090 (disqualify_ops_if_throwing_stmt): Renamed to
20091 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
20092 having one non-EH successor BB.
20093 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
20094 generate loads into replacements.
20095 (sra_modify_assign): Likewise and and also use the simple path for
20097 (sra_modify_function_body): Commit statements on edges.
20099 2014-04-17 Richard Biener <rguenther@suse.de>
20101 PR middle-end/60849
20102 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
20103 comparison results and add clarifying comment.
20105 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20107 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
20108 (blank_mode): Initialize it.
20109 (emit_mode_size_inline, emit_mode_nunits_inline,
20110 emit_mode_inner_inline): New functions.
20111 (emit_insn_modes_h): Call them and surround their output with
20112 #if GCC_VERSION >= 4001 ... #endif.
20113 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
20114 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
20115 mode_* arrays if the argument is __builtin_constant_p.
20116 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
20117 is enum machine_mode.
20119 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20121 * passes.c (opt_pass::execute): Adjust.
20122 (pass_manager::execute_pass_mode_switching): Likewise.
20123 (early_local_passes::execute): Likewise.
20124 (execute_one_pass): Pass cfun to the pass's execute method.
20125 * tree-pass.h (opt_pass::execute): Add function * argument.
20126 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20127 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20128 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20129 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20130 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20131 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
20132 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
20133 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20134 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20135 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
20136 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
20137 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
20138 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
20139 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
20140 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20141 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20142 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20143 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
20144 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
20145 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20146 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20147 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20148 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20149 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20150 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20151 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20152 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20153 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20154 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20157 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20159 * passes.c (opt_pass::gate): Take function * argument.
20160 (gate_all_early_local_passes): Merge into
20161 (early_local_passes::gate): this.
20162 (gate_all_early_optimizations): Merge into
20163 (all_early_optimizations::gate): this.
20164 (gate_all_optimizations): Mege into
20165 (all_optimizations::gate): this.
20166 (gate_all_optimizations_g): Merge into
20167 (all_optimizations_g::gate): this.
20168 (gate_rest_of_compilation): Mege into
20169 (rest_of_compilation::gate): this.
20170 (gate_postreload): Merge into
20171 (postreload::gate): this.
20172 (dump_one_pass): Pass cfun to the pass's gate method.
20173 (execute_ipa_summary_passes): Likewise.
20174 (execute_one_pass): Likewise.
20175 (ipa_write_summaries_2): Likewise.
20176 (ipa_write_optimization_summaries_1): Likewise.
20177 (ipa_read_summaries_1): Likewise.
20178 (ipa_read_optimization_summaries_1): Likewise.
20179 (execute_ipa_stmt_fixups): Likewise.
20180 * tree-pass.h (opt_pass::gate): Add function * argument.
20181 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
20182 combine-stack-adj.c, combine.c, compare-elim.c,
20183 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20184 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
20185 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
20186 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
20187 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
20188 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
20189 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20190 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
20191 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
20192 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
20193 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
20194 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
20195 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
20196 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20197 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20198 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20199 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20200 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20201 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20202 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20203 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20204 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20205 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
20206 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
20207 var-tracking.c, vtable-verify.c, web.c: Adjust.
20209 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20211 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
20212 * configure: Regenerate.
20214 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20216 * passes.c (dump_one_pass): don't check pass->has_gate.
20217 (execute_ipa_summary_passes): Likewise.
20218 (execute_one_pass): Likewise.
20219 (ipa_write_summaries_2): Likewise.
20220 (ipa_write_optimization_summaries_1): Likewise.
20221 (ipa_read_optimization_summaries_1): Likewise.
20222 (execute_ipa_stmt_fixups): Likewise.
20223 * tree-pass.h (pass_data::has_gate): Remove.
20224 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
20225 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
20226 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
20227 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
20228 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
20229 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
20230 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
20231 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
20232 gimple-low.c, gimple-ssa-isolate-paths.c,
20233 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
20234 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
20235 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
20236 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
20237 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
20238 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
20239 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
20240 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
20241 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
20242 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
20243 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
20244 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
20245 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
20246 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
20247 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
20248 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
20249 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
20250 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
20251 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
20252 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
20253 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
20254 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
20257 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20259 * pass_manager.h (pass_manager::register_dump_files_1): Remove
20261 * passes.c (pass_manager::register_dump_files_1): Merge into
20262 (pass_manager::register_dump_files): this, and remove its handling of
20263 properties since the pass always has the properties anyway.
20264 (pass_manager::pass_manager): Adjust.
20266 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
20268 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
20269 * passes.c (pass_manager::register_dump_files_1): Remove dead code
20270 dealing with properties.
20271 (pass_manager::register_dump_files): Adjust.
20273 2014-03-20 Mark Wielaard <mjw@redhat.com>
20275 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
20276 then represent the bound as normal constant value.
20278 2014-04-17 Jakub Jelinek <jakub@redhat.com>
20281 Forward port from 4.8 branch
20282 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
20284 * config/i386/bmiintrin.h (_blsi_u32): New.
20285 (_blsi_u64): Ditto.
20286 (_blsr_u32): Ditto.
20287 (_blsr_u64): Ditto.
20288 (_blsmsk_u32): Ditto.
20289 (_blsmsk_u64): Ditto.
20290 (_tzcnt_u32): Ditto.
20291 (_tzcnt_u64): Ditto.
20293 2014-04-17 Kito Cheng <kito@0xlab.org>
20295 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
20297 2014-04-17 Richard Biener <rguenther@suse.de>
20299 PR middle-end/60849
20300 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
20301 boolean results for comparisons.
20303 2014-04-17 Richard Biener <rguenther@suse.de>
20305 PR tree-optimization/60836
20306 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
20307 initial PHI args to be gimple values.
20309 2014-04-17 Richard Biener <rguenther@suse.de>
20311 PR tree-optimization/60841
20312 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
20313 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
20314 of stmts to SLP build.
20315 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
20316 (vect_analyze_slp): Likewise.
20317 (vect_analyze_slp_instance): Likewise.
20318 (vect_build_slp_tree): Limit overall SLP tree growth.
20319 * tree-vectorizer.h (vect_analyze_data_refs,
20320 vect_analyze_slp): Adjust prototypes.
20322 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20324 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
20327 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20329 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
20330 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
20331 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
20332 for TARGET_SLOW_PSHUFB
20334 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
20336 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
20337 * config/i386/i386.c (intel_cost): Ditto.
20339 2014-04-17 Joey Ye <joey.ye@arm.com>
20341 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
20343 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20345 * opts.c (common_handle_option): Disable -fipa-reference coorectly
20346 with -fuse-profile.
20348 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20350 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
20351 (type_all_derivations_known_p): New predicate.
20352 (type_all_ctors_visible_p): New predicate.
20353 (type_possibly_instantiated_p): New predicate.
20354 (get_odr_type): Compute all_derivations_known.
20355 (dump_odr_type): Dump the flag.
20356 (maybe_record_type): Cleanup.
20357 (record_target_from_binfo): Add bases_to_consider array;
20358 record bases for types w/o instances and skip CXX destructor.
20359 (possible_polymorphic_call_targets_1): Add bases_to_consider
20360 and consider_construction parameters; check if type may have instance.
20361 (get_polymorphic_call_info): Set maybe_in_construction to true
20362 when we know nothing.
20363 (record_targets_from_bases): Skip CXX destructors; they are
20364 never called for types in construction.
20365 (possible_polymorphic_call_targets): Do not record target when
20366 type may not have instance.
20368 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
20371 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
20372 external aliases alive, too.
20374 2014-04-16 Andrew Pinski <apinski@cavium.com>
20376 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
20379 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20381 * final.c (compute_alignments): Do not apply loop alignment to a block
20382 falling through to the exit.
20384 2014-04-16 Catherine Moore <clm@codesourcery.com>
20386 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
20387 Adjust constraints for microMIPS store patterns.
20389 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20391 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
20393 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
20395 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
20396 (append_use): Run at -O0.
20397 (append_vdef): Likewise.
20398 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
20399 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
20401 2014-04-16 Jakub Jelinek <jakub@redhat.com>
20403 PR tree-optimization/60844
20404 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
20405 (propagate_op_to_single_use, remove_visited_stmt_chain,
20406 linearize_expr, repropagate_negates, reassociate_bb): Use it
20407 instead of gsi_remove.
20409 2014-04-16 Martin Jambor <mjambor@suse.cz>
20411 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
20412 ipa_transforms_to_apply.
20413 (cgraph_function_versioning): Assert that old_node has empty
20414 ipa_transforms_to_apply.
20415 * trans-mem.c (ipa_tm_create_version): Likewise.
20416 * tree-inline.c (tree_function_versioning): Do not duplicate
20417 ipa_transforms_to_apply.
20419 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20422 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
20424 Pass necessary as flags on 64-bit Solaris/x86.
20425 Use lowercase relocs for x86_64-*-*.
20426 * configure: Regenerate.
20428 2014-04-15 Jan Hubicka <jh@suse.cz>
20430 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
20431 (maybe_record_node, likely_target_p): Use it.
20433 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20436 Revert following patch
20438 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
20441 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
20442 software floating point or no floating point registers, do not
20443 allow any type in the FPRs. Eliminate a test for SPE SIMD types
20444 in GPRs that occurs after we tested for GPRs that would never be
20447 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
20448 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
20449 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
20450 specifically allow DDmode, since that does not use the SPE SIMD
20453 2014-03-21 Mark Wielaard <mjw@redhat.com>
20455 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
20456 as unsigned or int depending on type and value used.
20458 2014-04-15 Richard Biener <rguenther@suse.de>
20460 PR rtl-optimization/56965
20461 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
20462 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
20464 * alias.c (true_dependence_1): Do not call
20465 nonoverlapping_component_refs_p.
20466 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
20467 nonoverlapping_component_refs_p.
20468 (indirect_refs_may_alias_p): Likewise.
20470 2014-04-15 Teresa Johnson <tejohnson@google.com>
20472 * cfg.c (dump_bb_info): Fix flags check.
20473 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
20475 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20477 PR rtl-optimization/60663
20478 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
20481 2014-04-15 Richard Biener <rguenther@suse.de>
20483 * lto-streamer.h (LTO_major_version): Bump to 4.
20485 2014-04-15 Richard Biener <rguenther@suse.de>
20487 * common.opt (lto_partition_model): New enum.
20488 (flto-partition=): Merge separate options with a single with argument,
20489 add -flto-partition=one support.
20490 * flag-types.h (enum lto_partition_model): Declare.
20491 * opts.c (finish_options): Remove duplicate -flto-partition=
20493 * lto-wrapper.c (run_gcc): Adjust.
20495 2014-04-15 Richard Biener <rguenther@suse.de>
20497 * alias.c (ncr_compar): New function.
20498 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
20500 2014-04-15 Richard Biener <rguenther@suse.de>
20502 * alias.c (record_component_aliases): Do not walk BINFOs.
20504 2014-04-15 Richard Biener <rguenther@suse.de>
20506 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20507 Add struct function argument and adjust.
20508 (find_func_aliases_for_call): Likewise.
20509 (find_func_aliases): Likewise.
20510 (find_func_clobbers): Likewise.
20511 (intra_create_variable_infos): Likewise.
20512 (compute_points_to_sets): Likewise.
20513 (ipa_pta_execute): Adjust. Do not push/pop cfun.
20515 2014-04-15 Richard Biener <rguenther@suse.de>
20517 * tree.c (iterative_hash_expr): Use enum tree_code_class
20518 to store TREE_CODE_CLASS.
20519 (tree_block): Likewise.
20520 (tree_set_block): Likewise.
20521 * tree.h (fold_build_pointer_plus_loc): Use
20522 convert_to_ptrofftype_loc.
20524 2014-04-15 Jakub Jelinek <jakub@redhat.com>
20527 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
20530 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
20532 * cfgloop.h (struct loop): Move force_vectorize down.
20533 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
20534 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
20535 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
20536 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
20537 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
20538 * tree-core.h (enum annot_expr_kind): Add new kind values.
20539 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
20540 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
20542 * tree.def (ANNOTATE_EXPR): Tweak comment.
20544 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20546 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
20549 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
20551 * tree.h (TYPE_IDENTIFIER): Declare.
20552 * tree.c (subrange_type_for_debug_p): Use it.
20553 * godump.c (go_format_type): Likewise.
20554 * dwarf2out.c (is_cxx_auto, modified_type_die,
20555 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
20556 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
20558 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20561 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
20563 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
20565 * config/i386/i386.c (examine_argument): Return bool. Return true if
20566 parameter should be passed in memory.
20567 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
20568 (construct_container): Update calls to examine_argument.
20569 (function_arg_advance_64): Ditto.
20570 (return_in_memory_32): Merge with ix86_return_in_memory.
20571 (return_in_memory_64): Ditto.
20572 (return_in_memory_ms_64): Ditto.
20574 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
20576 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
20577 * coverage.c (coverage_compute_profile_id): Handle externally visible
20580 2014-04-14 Martin Jambor <mjambor@suse.cz>
20582 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
20583 DECL_DISREGARD_INLINE_LIMITS functions.
20585 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20588 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
20590 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
20593 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
20594 optimize_insn_for_speed_p instead of
20595 optimize_function_for_speed_p.
20597 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
20599 * doc/invoke.texi (free): Document AArch64.
20601 2014-04-14 Richard Biener <rguenther@suse.de>
20603 PR tree-optimization/60042
20604 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
20605 (insert_into_preds_of_block): Do not prevent PHI insertion
20606 for REFERENCE exprs here ...
20607 (eliminate_dom_walker::before_dom_children): ... but prevent
20608 their use here under similar conditions when applied to the
20609 IL after PRE optimizations.
20611 2014-04-14 Richard Biener <rguenther@suse.de>
20613 * passes.def: Move early points-to after early SRA.
20615 2014-04-14 Richard Biener <rguenther@suse.de>
20617 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
20618 check for which sign-changes we allow when forwarding
20619 a converted value into a switch.
20621 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20623 * stor-layout.c (place_field): Finalize non-constant offset for the
20626 2014-04-14 Richard Biener <rguenther@suse.de>
20628 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
20630 (expand_switch_using_bit_tests_p): Likewise.
20631 (process_switch): Compute and pass on speed_p based on the
20633 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
20634 optimize_bb_for_speed_p.
20636 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
20638 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
20639 * function.h (struct function): Rename has_force_vect_loops into
20640 has_force_vectorize_loops.
20641 * lto-streamer-in.c (input_cfg): Adjust for renaming.
20642 (input_struct_function_base): Likewise.
20643 * lto-streamer-out.c (output_cfg): Likewise.
20644 (output_struct_function_base): Likewise.
20645 * omp-low.c (expand_omp_simd): Likewise.
20646 * tree-cfg.c (move_sese_region_to_fn): Likewise.
20647 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
20648 (version_loop_for_if_conversion): Likewise.
20649 (tree_if_conversion): Likewise.
20650 (main_tree_if_conversion): Likewise.
20651 (gate_tree_if_conversion): Likewise.
20652 * tree-inline.c (copy_loops): Likewise.
20653 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
20654 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
20655 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
20656 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
20657 * tree-vectorizer.c (vectorize_loops): Likewise.
20658 * tree-vectorizer.h (unlimited_cost_model): Likewise.
20660 2014-04-14 Richard Biener <rguenther@suse.de>
20663 * lto-streamer-out.c (wrap_refs): New function.
20664 (lto_output): Wrap symbol references in global initializes in
20665 type-preserving MEM_REFs.
20667 2014-04-14 Christian Bruel <christian.bruel@st.com>
20669 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
20671 2014-04-14 Christian Bruel <christian.bruel@st.com>
20673 * config/sh/sh.md (setmemqi): New expand pattern.
20674 * config/sh/sh.h (CLEAR_RATIO): Define.
20675 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
20676 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
20678 2014-04-14 Richard Biener <rguenther@suse.de>
20680 PR middle-end/55022
20681 * fold-const.c (negate_expr_p): Don't negate directional rounding
20683 (fold_negate_expr): Likewise.
20685 2014-04-14 Richard Biener <rguenther@suse.de>
20687 PR tree-optimization/59817
20688 PR tree-optimization/60453
20689 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
20690 recursion to catch all CHRECs in the scalar evolution and restrict
20691 the predicate for the remains appropriately.
20693 2014-04-12 Catherine Moore <clm@codesourcery.com>
20695 * config/mips/constraints.md: Add new register constraint "kb".
20696 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
20697 (*movhi_internal): Likewise.
20698 (*movqi_internal): Likewise.
20699 * config/mips/mips.h (M16_STORE_REGS): New register class.
20700 (REG_CLASS_NAMES): Add M16_STORE_REGS.
20701 (REG_CLASS_CONTENTS): Likewise.
20702 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
20704 2014-04-11 Tobias Burnus <burnus@net-b.de>
20707 * doc/invoke.texi (-Wformat-signedness): Document it.
20708 (Wformat=2): Mention that this enables -Wformat-signedness.
20710 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20712 * common/config/epiphany/epiphany-common.c
20713 (epiphany_option_optimization_table): Enable section anchors by
20714 default at -O1 or higher.
20715 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
20716 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
20717 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
20718 carries no extra cost.
20719 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
20720 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
20721 * config/epiphany/predicates.md (memclob_operand): New predicate.
20722 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
20723 Use memclob_operand predicate and X constraint for operand 3.
20725 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20727 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
20728 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
20731 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
20733 PR rtl-optimization/60651
20734 * mode-switching.c (optimize_mode_switching): Make sure to emit
20735 sets of a lower numbered entity before sets of a higher numbered
20736 entity to a mode of the same or lower priority.
20737 When creating a seginfo for a basic block that starts with a code
20738 label, move the insertion point past the code label.
20739 (new_seginfo): Document and enforce requirement that
20740 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
20741 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
20742 * doc/tm.texi: Regenerate.
20744 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
20747 * config/arc/arc.c (arc_save_restore): Fix assert typo.
20749 2013-04-11 Jakub Jelinek <jakub@redhat.com>
20751 * BASE-VER: Set to 4.10.0.
20753 2014-04-11 Tobias Burnus <burnus@net-b.de>
20756 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
20757 * doc/gcc.texi (Service): Update description in the @menu
20758 * doc/invoke.texi (Option Summary): Remove misplaced and
20761 2014-04-11 Steve Ellcey <sellcey@mips.com>
20762 Jakub Jelinek <jakub@redhat.com>
20764 PR middle-end/60556
20765 * expr.c (convert_move): Use emit_store_flag_force instead of
20766 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
20769 2014-04-11 Richard Biener <rguenther@suse.de>
20771 PR middle-end/60797
20772 * varasm.c (assemble_alias): Avoid endless error reporting
20773 recursion by setting TREE_ASM_WRITTEN.
20775 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20777 * config/s390/s390.md: Add a splitter for NOT rtx.
20779 2014-04-11 Jakub Jelinek <jakub@redhat.com>
20781 PR rtl-optimization/60663
20782 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
20784 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
20785 Jakub Jelinek <jakub@redhat.com>
20788 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
20789 flag from decl_node to node.
20791 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20794 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
20795 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
20796 ameliorating the cases where it can be.
20798 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
20801 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20803 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20804 (loadsync_<mode>): Change mode.
20805 (load_quadpti, store_quadpti): New.
20806 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20807 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20808 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
20810 2014-04-09 Cong Hou <congh@google.com>
20813 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
20816 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20818 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
20819 instead of vnor to exploit possible fusion opportunity in the
20821 (altivec_expand_vec_perm_const_le): Likewise.
20823 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
20825 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
20826 (loadsync_<mode>): Change mode.
20827 (load_quadpti, store_quadpti): New.
20828 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
20829 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
20831 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
20834 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
20835 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
20836 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
20838 2014-04-08 Richard Biener <rguenther@suse.de>
20840 PR middle-end/60706
20841 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
20842 a 64bit widest int print double-int similar to on HWI64 hosts.
20844 2014-04-08 Richard Biener <rguenther@suse.de>
20846 PR tree-optimization/60785
20847 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
20848 default defs properly.
20850 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
20852 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
20853 (Weffc++): Likewise.
20855 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
20857 * ipa-devirt.c (maybe_record_node): When node is not recorded,
20858 set completep to false rather than true.
20860 2014-04-07 Douglas B Rupp <rupp@adacore.com>
20863 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
20864 ARM_TARGET2_DWARF_FORMAT.
20866 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
20869 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
20870 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
20873 2014-04-07 Richard Biener <rguenther@suse.de>
20875 PR tree-optimization/60766
20876 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
20877 (may_eliminate_iv): Convert cand_value_at result to desired type.
20879 2014-04-07 Jason Merrill <jason@redhat.com>
20882 * common.opt (-fno-gnu-unique): Add.
20883 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
20885 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20887 * haifa-sched.c: Fix outdated function reference and minor
20888 grammar errors in introductory comment.
20890 2014-04-07 Richard Biener <rguenther@suse.de>
20892 PR middle-end/60750
20893 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
20894 for noreturn calls.
20895 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
20897 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
20900 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
20901 size accounting for thunks.
20902 (pa_asm_output_mi_thunk): Use final_start_function() and
20903 final_end_function() to output function start and end directives.
20905 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
20907 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
20908 device specific ISA/ feature information. Remove short_sp and
20909 errata_skip ds. Add avr_device_specific_features enum to have device
20911 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
20912 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
20913 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
20914 updated device specific info.
20915 * config/avr/avr-mcus.def: Merge device specific details to
20916 dev_attribute field.
20917 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
20919 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
20920 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
20921 assembler if RMW isa supported by current device.
20922 * config/avr/genmultilib.awk: Update as device info structure changed.
20923 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
20925 2014-04-04 Cong Hou <congh@google.com>
20927 PR tree-optimization/60656
20928 * tree-vect-stmts.c (supportable_widening_operation):
20929 Fix a bug that elements in a vector with vect_used_by_reduction
20930 property are incorrectly reordered when the operation on it is not
20931 consistant with the one in reduction operation.
20933 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
20935 PR rtl-optimization/60155
20936 * gcse.c (record_set_data): New function.
20937 (single_set_gcse): New function.
20938 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
20939 (hoist_code): Likewise.
20940 (get_pressure_class_and_nregs): Likewise.
20942 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
20944 * explow.c (probe_stack_range): Emit a final optimization blockage.
20946 2014-04-04 Anthony Green <green@moxielogic.com>
20948 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
20951 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
20954 * lto-cgraph.c (input_overwrite_node): Check that partitioning
20955 flags are set only during streaming.
20956 * ipa.c (process_references, walk_polymorphic_call_targets,
20957 symtab_remove_unreachable_nodes): Drop bodies of always inline
20958 after early inlining.
20959 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
20961 2014-04-04 Jakub Jelinek <jakub@redhat.com>
20962 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20965 * dwarf2out.c (const_ok_for_output_1): Reject expressions
20968 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20971 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
20973 (cortex_a53_fdivd): Likewise.
20975 2014-04-04 Martin Jambor <mjambor@suse.cz>
20978 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
20979 Adjust all callers.
20980 * cgraph.c (clone_of_p): Also return true if thunks match.
20981 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
20982 cgraph_function_or_thunk_node and an obsolete comment.
20983 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
20985 (build_function_decl_skip_args): Likewise.
20986 (set_new_clone_decl_and_node_flags): New function.
20987 (duplicate_thunk_for_node): Likewise.
20988 (redirect_edge_duplicating_thunks): Likewise.
20989 (cgraph_clone_node): New parameter args_to_skip, pass it to
20990 redirect_edge_duplicating_thunks which is called instead of
20991 cgraph_redirect_edge_callee.
20992 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
20993 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
20995 2014-04-04 Jeff Law <law@redhat.com>
20998 * config/arm/predicates.md (const_int_I_operand): New predicate.
20999 (const_int_M_operand): Similarly.
21000 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
21002 (insv_t2, extv_reg, extzv_t2): Likewise.
21003 (load_multiple_with_writeback): Similarly for const_int_I_operand.
21004 (pop_multiple_with_writeback_and_return): Likewise.
21005 (vfp_pop_multiple_with_writeback): Likewise
21007 2014-04-04 Richard Biener <rguenther@suse.de>
21010 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
21011 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
21013 * gimplify.h (gimple_add_tmp_var_fn): Declare.
21014 * gimplify.c (gimple_add_tmp_var_fn): New function.
21015 * gimple-expr.h (create_tmp_reg_fn): Declare.
21016 * gimple-expr.c (create_tmp_reg_fn): New function.
21017 * gimple-low.c (record_vars_into): Don't change cfun.
21018 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
21019 code generation without cfun.
21021 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
21024 * Makefile.in (install-driver): Fix shell scripting.
21026 2014-04-03 Cong Hou <congh@google.com>
21028 PR tree-optimization/60505
21029 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
21030 threshold of number of iterations below which no vectorization
21032 * tree-vect-loop.c (new_loop_vec_info):
21033 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
21034 * tree-vect-loop.c (vect_analyze_loop_operations):
21035 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
21036 * tree-vect-loop.c (vect_transform_loop):
21037 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
21038 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
21039 of iterations of the loop and see if we should build the epilogue.
21041 2014-04-03 Richard Biener <rguenther@suse.de>
21043 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
21044 (streamer_tree_cache_create): Adjust.
21045 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
21046 to allow optional nodes array.
21047 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
21048 (streamer_tree_cache_append): Likewise.
21049 (streamer_tree_cache_create): Create nodes array optionally
21050 as specified by parameter.
21051 * lto-streamer-out.c (create_output_block): Avoid maintaining
21052 the node array in the writer cache.
21053 (DFS_write_tree): Remove assertion.
21054 (produce_asm_for_decls): Free the out decl state hash table early.
21055 * lto-streamer-in.c (lto_data_in_create): Adjust for
21056 streamer_tree_cache_create prototype change.
21058 2014-04-03 Richard Biener <rguenther@suse.de>
21060 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
21061 set TREE_CHAIN to NULL_TREE.
21063 2014-04-03 Richard Biener <rguenther@suse.de>
21065 PR tree-optimization/60740
21066 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
21067 over all GIMPLE_COND operands.
21069 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
21071 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
21072 (Weffc++): Remove Scott's numbering, merge lists and reference
21075 2014-04-03 Nick Clifton <nickc@redhat.com>
21077 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
21080 2014-04-03 Martin Jambor <mjambor@suse.cz>
21082 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
21083 mention gcc_unreachable before failing.
21084 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
21087 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
21090 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
21091 inconsistent code and instead mark the context inconsistent.
21092 (possible_polymorphic_call_targets): For inconsistent contexts
21093 return empty complete list.
21095 2014-04-02 Anthony Green <green@moxielogic.com>
21097 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
21098 (extendqisi2, extendhisi2): Define.
21099 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
21100 (WCHAR_TYPE): Change to unsigned int.
21102 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21104 PR tree-optimization/60733
21105 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
21106 insertion point for PHI candidates to be the end of the feeding
21107 block for the PHI argument.
21109 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
21111 PR rtl-optimization/60650
21112 * lra-constraints.c (process_alt_operands): Decrease reject for
21113 earlyclobber matching.
21115 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21117 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
21119 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21121 * config/spu/spu.c (pad_bb): Do not crash when the last
21122 insn is CODE_FOR_blockage.
21124 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21126 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
21127 lies outside the target mode.
21129 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21132 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
21133 software floating point or no floating point registers, do not
21134 allow any type in the FPRs. Eliminate a test for SPE SIMD types
21135 in GPRs that occurs after we tested for GPRs that would never be
21138 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
21139 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
21140 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
21141 specifically allow DDmode, since that does not use the SPE SIMD
21144 2014-04-02 Richard Biener <rguenther@suse.de>
21146 PR middle-end/60729
21147 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
21148 MODE_INTs. Properly use negv_optab.
21149 (expand_abs): Likewise.
21151 2014-04-02 Richard Biener <rguenther@suse.de>
21154 * Makefile.in (install-driver): Guard extra installs with special
21157 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
21159 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21160 Document vec_vgbbd.
21162 2014-04-01 Richard Henderson <rth@redhat.com>
21165 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
21166 alternative enabled before register allocation.
21168 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
21170 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
21171 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
21173 (nios2_large_got_address): Remove unneeded 'sym' parameter.
21174 (nios2_got_address): Update nios2_large_got_address call site.
21175 (nios2_delegitimize_address): New function.
21176 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
21177 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
21178 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
21180 2014-04-01 Martin Husemann <martin@duskware.de>
21182 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
21185 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
21187 PR rtl-optimization/60604
21188 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
21189 check from register_operand.
21190 (register_operand): Redefine in terms of general_operand.
21191 (nonmemory_operand): Use register_operand for the non-constant cases.
21193 2014-04-01 Richard Biener <rguenther@suse.de>
21195 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
21197 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
21199 * doc/invoke.texi (mapp-regs): Clarify.
21201 2014-03-31 Ulrich Drepper <drepper@gmail.com>
21203 * config/i386/avx512fintrin.h (__v32hi): Define type.
21204 (__v64qi): Likewise.
21205 (_mm512_set1_epi8): Define.
21206 (_mm512_set1_epi16): Define.
21207 (_mm512_set4_epi32): Define.
21208 (_mm512_set4_epi64): Define.
21209 (_mm512_set4_pd): Define.
21210 (_mm512_set4_ps): Define.
21211 (_mm512_setr4_epi64): Define.
21212 (_mm512_setr4_epi32): Define.
21213 (_mm512_setr4_pd): Define.
21214 (_mm512_setr4_ps): Define.
21215 (_mm512_setzero_epi32): Define.
21217 2014-03-31 Martin Jambor <mjambor@suse.cz>
21219 PR middle-end/60647
21220 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
21221 callsite_arguments_match_p. Updated all callers. Also check types of
21222 corresponding formal parameters and actual arguments.
21223 (not_all_callers_have_enough_arguments_p) Renamed to
21224 some_callers_have_mismatched_arguments_p.
21226 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
21228 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
21230 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
21233 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
21236 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
21238 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
21239 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
21241 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
21242 Use FMAMODE_NOVF512 mode iterator.
21243 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
21244 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
21245 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
21246 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
21248 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
21249 Use VF_128_256 mode iterator.
21250 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
21253 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21255 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
21256 static chain if needed.
21258 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21261 * lra-constraints.c (index_part_to_reg): New.
21262 (process_address): Use it.
21264 2014-03-27 Jeff Law <law@redhat.com>
21265 Jakub Jelinek <jakub@redhat.com>
21268 * expr.c (do_tablejump): Use simplify_gen_binary rather than
21269 gen_rtx_{PLUS,MULT} to build up the address expression.
21271 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
21272 creating non-canonical RTL.
21274 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21277 * ipa-inline.c (want_inline_small_function_p): Short circuit large
21278 functions; reorganize to make cheap checks first.
21279 (inline_small_functions): Do not estimate growth when dumping;
21281 * ipa-inline.h (inline_summary): Add min_size.
21282 (growth_likely_positive): New function.
21283 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
21284 (set_cond_stmt_execution_predicate): Cleanup.
21285 (estimate_edge_size_and_time): Compute min_size.
21286 (estimate_calls_size_and_time): Likewise.
21287 (estimate_node_size_and_time): Likewise.
21288 (inline_update_overall_summary): Update min_size.
21289 (do_estimate_edge_time): Likewise.
21290 (do_estimate_edge_size): Update.
21291 (do_estimate_edge_hints): Update.
21292 (growth_likely_positive): New function.
21294 2014-03-28 Jakub Jelinek <jakub@redhat.com>
21297 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
21298 also if addr has VOIDmode.
21300 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21302 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
21303 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
21305 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
21306 instructions as well as AdvancedSIMD loads.
21308 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21310 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
21311 Use crypto_aese type.
21312 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
21313 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
21314 crypto_aese, crypto_aesmc. Move to types.md.
21315 * config/arm/types.md (crypto_aes): Split into crypto_aese,
21317 * config/arm/iterators.md (crypto_type): Likewise.
21319 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
21321 * cgraph.c: Include expr.h and tree-dfa.h.
21322 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
21325 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
21328 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
21329 regs from checking multi-reg pseudos.
21331 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21333 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
21335 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21337 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
21338 if it would clobber the stack pointer, even temporarily.
21340 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
21342 * mode-switching.c: Make small adjustments to the top comment.
21344 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
21346 * config/rs6000/constraints.md (wD constraint): New constraint to
21347 match the constant integer to get the top DImode/DFmode out of a
21348 vector in a VSX register.
21350 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
21351 match the constant integer to get the top DImode/DFmode out of a
21352 vector in a VSX register.
21354 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
21357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
21361 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
21363 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
21364 Optimize vec_extract of 64-bit values, where the value being
21365 extracted is in the top word, where we can use scalar
21366 instructions. Add direct move and store support. Combine the big
21367 endian/little endian vector select load support into a single insn.
21368 (vsx_extract_<mode>_internal1): Likewise.
21369 (vsx_extract_<mode>_internal2): Likewise.
21370 (vsx_extract_<mode>_load): Likewise.
21371 (vsx_extract_<mode>_store): Likewise.
21372 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
21373 combined into vsx_extract_<mode>_load.
21374 (vsx_extract_<mode>_one_le): Likewise.
21376 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
21377 define the top 64-bit vector element.
21379 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
21382 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21383 Document vec_vbpermq builtin.
21386 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
21387 enable use of xxsldwi and xxpermdi builtin functions.
21388 (vec_xxpermdi): Likewise.
21390 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
21391 Document use of vec_xxsldwi and vec_xxpermdi builtins.
21393 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
21395 PR rtl-optimization/60650
21396 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
21398 (find_spills_for): New.
21399 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
21400 Spill all pseudos on the second iteration.
21402 2014-03-27 Marek Polacek <polacek@redhat.com>
21405 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
21408 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21410 * config/s390/s390.c (s390_can_use_return_insn): Check for
21411 call-saved FPRs on 31 bit.
21413 2014-03-27 Jakub Jelinek <jakub@redhat.com>
21415 PR middle-end/60682
21416 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
21417 if they need regimplification, just drop them instead of
21418 calling gimple_regimplify_operands on them.
21420 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
21423 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
21424 (aarch64_frame_pointer_required): Adjust logic.
21425 (aarch64_can_eliminate): Adjust logic.
21426 (aarch64_override_options_after_change): Adjust logic.
21428 2014-03-27 Dehao Chen <dehao@google.com>
21430 * ipa-inline.c (early_inliner): Update node's inline info.
21432 2014-03-26 Dehao Chen <dehao@google.com>
21434 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
21435 compiler inserted conditional jumps for NAN float check.
21437 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21439 * ubsan.h (ubsan_create_data): Change second argument's type
21440 to const location_t *.
21441 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
21443 (ubsan_create_data): Change second argument to const location_t *PLOC.
21444 Create Loc field whenever PLOC is non-NULL.
21445 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
21446 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
21450 * real.c (real_to_integer2): Change type of low to UHWI.
21452 2014-03-26 Tobias Burnus <burnus@net-b.de>
21454 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
21455 (CILK_SELF_SPECS): New define.
21456 (driver_self_specs): Use it.
21458 2014-03-26 Richard Biener <rguenther@suse.de>
21460 * tree-pretty-print.c (percent_K_format): Implement special
21461 case for LTO and its stripped down BLOCK tree.
21463 2014-03-26 Jakub Jelinek <jakub@redhat.com>
21466 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
21468 * tree-vrp.c (simplify_internal_call_using_ranges): If only
21469 one range is range_int_cst_p, but not both, at least optimize
21470 addition/subtraction of 0 and multiplication by 0 or 1.
21471 * gimple-fold.c (gimple_fold_call): Fold
21472 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
21473 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
21474 INTEGER_CSTs, try to fold at least x * 0 and y - y.
21476 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
21478 PR rtl-optimization/60452
21479 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
21480 <case REG>: Return 1 for invalid offsets from the frame pointer.
21482 2014-03-26 Marek Polacek <polacek@redhat.com>
21485 * doc/extend.texi (C Extensions): Mention variable-length arrays in
21488 2014-03-26 Marek Polacek <polacek@redhat.com>
21491 * doc/extend.texi (Designated Inits): Describe what happens to omitted
21494 2014-03-26 Marek Polacek <polacek@redhat.com>
21497 * ira-color.c (update_conflict_hard_regno_costs): Perform the
21498 multiplication in unsigned type.
21500 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21502 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
21504 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
21506 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
21508 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21511 * cif-code.def (UNREACHABLE) New code.
21512 * ipa-inline.c (inline_small_functions): Skip edges to
21513 __builtlin_unreachable.
21514 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
21515 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
21516 predicate to __bulitin_unreachable.
21517 (set_cond_stmt_execution_predicate): Fix issue when
21518 invert_tree_comparison returns ERROR_MARK.
21519 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
21520 propagate to inline clones.
21521 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
21523 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
21524 * cgraphclones.c (cgraph_clone_node): If call destination is already
21525 ureachable, do not redirect it back.
21526 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
21529 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
21531 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
21532 Do not modify inline clones.
21534 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21536 * config/i386/i386.md (general_sext_operand): New mode attr.
21537 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
21538 don't generate (sign_extend (const_int)).
21539 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
21540 operands[2]. Use We constraint instead of <i> and
21541 <general_sext_operand> predicate instead of <general_operand>.
21542 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
21543 * config/i386/constraints.md (We): New constraint.
21544 * config/i386/predicates.md (x86_64_sext_operand,
21545 sext_operand): New predicates.
21547 2014-03-25 Martin Jambor <mjambor@suse.cz>
21550 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
21551 inconsistent devirtualizations to __builtin_unreachable.
21553 2014-03-25 Marek Polacek <polacek@redhat.com>
21556 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
21558 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
21560 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
21561 order of elements for big-endian.
21563 2014-03-25 Richard Biener <rguenther@suse.de>
21565 PR middle-end/60635
21566 * gimplify-me.c (gimple_regimplify_operands): Update the
21569 2014-03-25 Martin Jambor <mjambor@suse.cz>
21572 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
21573 (lto_output_varpool_node): Likewise.
21574 (input_overwrite_node): Likewise.
21575 (input_varpool_node): Likewise.
21577 2014-03-25 Richard Biener <rguenther@suse.de>
21579 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
21580 (run_gcc): Likewise.
21582 2014-03-25 Jakub Jelinek <jakub@redhat.com>
21584 * combine.c (simplify_compare_const): Add MODE argument.
21585 Handle mode_width 0 as very large mode_width.
21586 (try_combine, simplify_comparison): Adjust callers.
21588 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
21589 type to avoid signed integer overflow.
21590 * explow.c (plus_constant): Likewise.
21592 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21594 * doc/generic.texi: Correct typos.
21596 2014-03-24 Tobias Burnus <burnus@net-b.de>
21598 * doc/invoke.texi (-flto): Expand section about
21599 using static libraries with LTO.
21601 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21603 PR rtl-optimization/60501
21604 * optabs.def (addptr3_optab): New optab.
21605 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
21606 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
21607 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
21609 * lra.c (emit_add3_insn): Use the addptr pattern if available.
21611 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
21613 2014-03-24 Ulrich Drepper <drepper@gmail.com>
21615 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
21618 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
21619 (_mm256_undefined_ps): Define.
21620 (_mm256_undefined_pd): Define.
21621 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
21622 (_mm_undefined_pd): Define.
21623 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
21624 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
21625 (_mm512_undefined_ps): Define.
21626 (_mm512_undefined_pd): Define.
21627 Use _mm*_undefined_*.
21628 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
21630 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
21632 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
21633 (lshr_simd): DI mode added.
21634 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
21635 (aarch64_ushr_simddi): Likewise.
21636 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
21637 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
21638 (vshrd_n_u64): Likewise.
21640 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21642 * Makefile.in (s-macro_list): Depend on cc1.
21644 2014-03-23 Teresa Johnson <tejohnson@google.com>
21646 * ipa-utils.c (ipa_print_order): Use specified dump file.
21648 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
21650 PR rtl-optimization/60601
21651 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
21653 * gcc.c (eval_spec_function): Initialize save_growing_value.
21655 2014-03-22 Jakub Jelinek <jakub@redhat.com>
21658 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
21659 code == MINUS_EXPR, never swap op0 with op1.
21661 * toplev.c (init_local_tick): Avoid signed integer multiplication
21663 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
21664 shift by first operand's bitsize.
21666 2014-03-21 Jakub Jelinek <jakub@redhat.com>
21669 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
21670 redefine to 1 or 0.
21671 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
21672 TARGET_ISA_64BIT_P(x).
21674 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21676 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
21677 pattern for vector nor instead of subtract from splat(-1).
21678 (altivec_expand_vec_perm_const_le): Likewise.
21680 2014-03-21 Richard Henderson <rth@twiddle.net>
21683 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
21684 related insns after epilogue_completed.
21686 2014-03-21 Martin Jambor <mjambor@suse.cz>
21689 * cgraph.h (symtab_node): New flag body_removed.
21690 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
21691 when removing bodies.
21692 * symtab.c (dump_symtab_base): Dump body_removed flag.
21693 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
21694 had their bodies removed.
21696 2014-03-21 Martin Jambor <mjambor@suse.cz>
21699 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
21702 2014-03-21 Richard Biener <rguenther@suse.de>
21704 PR tree-optimization/60577
21705 * tree-core.h (struct tree_base): Document nothrow_flag use
21706 in DECL_NONALIASED.
21707 * tree.h (DECL_NONALIASED): New.
21708 (may_be_aliased): Adjust.
21709 * coverage.c (build_var): Set DECL_NONALIASED.
21711 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21713 * expr.c (expand_expr_real_1): Remove outdated comment.
21715 2014-03-20 Jakub Jelinek <jakub@redhat.com>
21717 PR middle-end/60597
21718 * ira.c (adjust_cleared_regs): Call copy_rtx on
21719 *reg_equiv[REGNO (loc)].src_p before passing it to
21720 simplify_replace_fn_rtx.
21723 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
21724 into CONST, put pic register as first operand of PLUS. Use
21725 gen_const_mem for both 32-bit and 64-bit PIC got loads.
21727 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21729 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
21731 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21733 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
21734 around for store forwarding issue in the FPU on the UT699.
21735 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
21736 loads and operations if -mfix-ut699 is specified.
21737 (divtf3_hq): Tweak attribute.
21738 (sqrttf2_hq): Likewise.
21740 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
21742 * calls.c (store_one_arg): Remove incorrect const qualification on the
21743 type of the temporary.
21744 * cfgexpand.c (expand_return): Likewise.
21745 * expr.c (expand_constructor): Likewise.
21746 (expand_expr_real_1): Likewise.
21748 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21750 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
21753 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
21756 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
21758 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
21760 * config/arm/aarch-common-protos.h
21761 (alu_cost_table): Fix spelling of "extend".
21762 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
21764 2014-03-19 Richard Biener <rguenther@suse.de>
21766 PR middle-end/60553
21767 * tree-core.h (tree_type_common): Re-order pointer members
21768 to reduce recursion depth during GC walks.
21770 2014-03-19 Marek Polacek <polacek@redhat.com>
21773 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
21774 before accessing it.
21776 2014-03-19 Richard Biener <rguenther@suse.de>
21779 * lto-streamer-in.c (input_function): In WPA stage do not drop
21782 2014-03-19 Jakub Jelinek <jakub@redhat.com>
21784 PR tree-optimization/60559
21785 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
21786 with build_zero_cst assignment.
21788 2014-03-18 Kai Tietz <ktietz@redhat.com>
21790 PR rtl-optimization/56356
21791 * sdbout.c (sdbout_parms): Verify that parms'
21792 incoming argument is valid.
21793 (sdbout_reg_parms): Likewise.
21795 2014-03-18 Richard Henderson <rth@redhat.com>
21798 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
21799 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
21800 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
21802 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
21804 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
21805 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
21806 Italicize plugin event names in description. Explain that
21807 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
21808 Remind that no GCC functions should be called after PLUGIN_FINISH.
21809 Explain what pragmas with expansion are.
21811 2014-03-18 Martin Liska <mliska@suse.cz>
21813 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
21814 gimple call statement is update.
21815 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
21816 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
21818 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21821 * ubsan.c (ubsan_instrument_unreachable): Call
21822 initialize_sanitizer_builtins.
21823 (ubsan_pass): Likewise.
21826 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
21827 varpool_finalize_decl instead of rest_of_decl_compilation.
21829 2014-03-18 Richard Biener <rguenther@suse.de>
21831 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
21832 by using bitmap_and_compl instead of bitmap_and_compl_into.
21833 (df_rd_transfer_function): Likewise.
21835 2014-03-18 Richard Biener <rguenther@suse.de>
21837 * doc/lto.texi (fresolution): Fix typo.
21839 2014-03-18 Richard Biener <rguenther@suse.de>
21841 * doc/invoke.texi (flto): Update for changes in 4.9.
21843 2014-03-18 Richard Biener <rguenther@suse.de>
21845 * doc/loop.texi: Remove section on the removed lambda framework.
21846 Update loop docs with recent changes in preserving loop structure.
21848 2014-03-18 Richard Biener <rguenther@suse.de>
21850 * doc/lto.texi (-fresolution): Document.
21852 2014-03-18 Richard Biener <rguenther@suse.de>
21854 * doc/contrib.texi: Adjust my name.
21856 2014-03-18 Jakub Jelinek <jakub@redhat.com>
21859 * internal-fn.c: Include diagnostic-core.h.
21860 (expand_BUILTIN_EXPECT): New function.
21861 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
21862 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
21863 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
21864 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
21865 IFN_BUILTIN_EXPECT.
21866 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
21867 Revert 3 argument __builtin_expect code.
21868 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
21869 * gimple-fold.c (gimple_fold_call): Likewise.
21870 * tree.h (fold_builtin_expect): New prototype.
21871 * builtins.c (build_builtin_expect_predicate): Add predictor
21872 argument, if non-NULL, create 3 argument __builtin_expect.
21873 (fold_builtin_expect): No longer static. Add ARG2 argument,
21874 pass it through to build_builtin_expect_predicate.
21875 (fold_builtin_2): Adjust caller.
21876 (fold_builtin_3): Handle BUILT_IN_EXPECT.
21877 * internal-fn.def (BUILTIN_EXPECT): New.
21879 2014-03-18 Tobias Burnus <burnus@net-b.de>
21882 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
21883 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
21884 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
21886 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
21889 * predict.c (combine_predictions_for_bb): Fix up formatting.
21890 (expr_expected_value_1, expr_expected_value): Add predictor argument,
21891 fill what it points to if non-NULL.
21892 (tree_predict_by_opcode): Adjust caller, use the predictor.
21893 * predict.def (PRED_COMPARE_AND_SWAP): Add.
21895 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
21897 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
21898 proper constant for the store mode.
21900 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
21902 * symtab.c (change_decl_assembler_name): Fix transparent alias
21903 chain construction.
21905 2014-03-16 Renlin Li <Renlin.Li@arm.com>
21907 * config/aarch64/aarch64.c: Correct the comments about the
21908 aarch64 stack layout.
21910 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
21912 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
21913 check for GF_OMP_FOR_KIND_FOR.
21915 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
21917 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
21918 ymm and zmm register names.
21920 2014-03-17 Jakub Jelinek <jakub@redhat.com>
21923 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
21924 note creation for the 2010-08-31 changes.
21926 2014-03-17 Marek Polacek <polacek@redhat.com>
21928 PR middle-end/60534
21929 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
21930 as -fno-tree-loop-vectorize.
21931 (expand_omp_simd): Likewise.
21933 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
21935 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
21936 (eligible_for_call_delay): New prototype.
21937 * config/sparc/sparc.c (tls_call_delay): Rename into...
21938 (eligible_for_call_delay): ...this. Return false if the instruction
21939 cannot be put in the delay slot of a branch.
21940 (eligible_for_restore_insn): Simplify.
21941 (eligible_for_return_delay): Return false if the instruction cannot be
21942 put in the delay slot of a branch and simplify.
21943 (eligible_for_sibcall_delay): Return false if the instruction cannot be
21944 put in the delay slot of a branch.
21945 * config/sparc/sparc.md (fix_ut699): New attribute.
21946 (tls_call_delay): Delete.
21947 (in_call_delay): Reimplement.
21948 (eligible_for_sibcall_delay): Rename into...
21949 (in_sibcall_delay): ...this.
21950 (eligible_for_return_delay): Rename into...
21951 (in_return_delay): ...this.
21952 (in_branch_delay): Reimplement.
21953 (in_uncond_branch_delay): Delete.
21954 (in_annul_branch_delay): Delete.
21956 2014-03-14 Richard Henderson <rth@redhat.com>
21959 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
21960 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
21961 (*floathi<X87MODEF>2_i387_with_temp): Remove.
21962 (floathi splitters): Remove.
21963 (float<SWI48x>xf2): New pattern.
21964 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
21965 code that tried to handle DImode for 32-bit, but which was excluded
21966 by the pattern's condition. Drop allocation of stack temporary.
21967 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
21968 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
21969 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
21970 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
21971 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
21972 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
21973 (*float<SWI48><MODEF>2_sse_interunit): Remove.
21974 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
21975 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
21976 (*float<SWI48x><X87MODEF>2_i387): Remove.
21977 (all float _with_temp splitters): Remove.
21978 (*float<SWI48x><MODEF>2_i387): New pattern.
21979 (*float<SWI48><MODEF>2_sse): New pattern.
21980 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
21981 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
21983 2014-03-14 Jakub Jelinek <jakub@redhat.com>
21984 Marek Polacek <polacek@redhat.com>
21986 PR middle-end/60484
21987 * common.opt (dump_base_name_prefixed): New Variable.
21988 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
21989 if x_dump_base_name_prefixed is already set, set it at the end.
21991 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
21993 PR rtl-optimization/60508
21994 * lra-constraints.c (get_reload_reg): Add new parameter
21996 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
21997 Pass the new parameter values.
21999 2014-03-14 Richard Biener <rguenther@suse.de>
22001 * common.opt: Revert unintented changes from r205065.
22002 * opts.c: Likewise.
22004 2014-03-14 Richard Biener <rguenther@suse.de>
22006 PR middle-end/60518
22007 * cfghooks.c (split_block): Properly adjust all loops the
22008 block was a latch of.
22010 2014-03-14 Martin Jambor <mjambor@suse.cz>
22013 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
22016 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
22019 * config/avr/avr.c (avr_set_current_function): Pass function name
22020 through default_strip_name_encoding before sanity checking instead
22021 of skipping the first char of the assembler name.
22023 2014-03-13 Richard Henderson <rth@redhat.com>
22026 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
22027 (ix86_force_to_memory, ix86_free_from_memory): Remove.
22028 * config/i386/i386-protos.h: Likewise.
22029 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
22030 in the expander instead of a splitter.
22031 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
22032 any possibility of requiring a memory.
22033 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
22034 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
22035 (fp branch splitters): Update for ix86_split_fp_branch.
22036 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
22037 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
22038 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
22039 (*fop_<MODEF>_2_i387): Remove f/r alternative.
22040 (*fop_<MODEF>_3_i387): Likewise.
22041 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
22042 (splitters for the fop_* register patterns): Remove.
22043 (fscalexf4_i387): Rename from *fscalexf4_i387.
22044 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
22046 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22048 PR tree-optimization/59779
22049 * tree-dfa.c (get_ref_base_and_extent): Use double_int
22050 type for bitsize and maxsize instead of HOST_WIDE_INT.
22052 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
22054 PR rtl-optimization/57320
22055 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
22056 the CFG after thread_prologue_and_epilogue_insns.
22058 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
22060 PR rtl-optimization/57189
22061 * lra-constraints.c (process_alt_operands): Disfavor spilling
22064 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
22066 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
22068 2014-03-13 Jakub Jelinek <jakub@redhat.com>
22070 PR tree-optimization/59025
22071 PR middle-end/60418
22072 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
22073 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
22075 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
22078 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
22079 calls of avr_out_plus_1.
22081 2014-03-13 Bin Cheng <bin.cheng@arm.com>
22083 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
22084 BB's single pred and update the father loop's latch info later.
22086 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
22088 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
22092 (VEC_base): Likewise.
22093 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
22094 registers, we need to swap double words in little endian mode.
22096 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
22097 to be a container mode for 128-bit integer operations added in ISA
22098 2.07. Unlike TImode and PTImode, the preferred register set is
22099 the Altivec/VMX registers for the 128-bit operations.
22101 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
22103 (rs6000_split_128bit_ok_p): Likewise.
22105 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
22106 macros for creating ISA 2.07 normal and overloaded builtin
22107 functions with 3 arguments.
22108 (BU_P8V_OVERLOAD_3): Likewise.
22109 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
22110 for use as overloaded functions.
22111 (VPERM_1TI_UNS): Likewise.
22112 (VSEL_1TI): Likewise.
22113 (VSEL_1TI_UNS): Likewise.
22114 (ST_INTERNAL_1ti): Likewise.
22115 (LD_INTERNAL_1ti): Likewise.
22116 (XXSEL_1TI): Likewise.
22117 (XXSEL_1TI_UNS): Likewise.
22118 (VPERM_1TI): Likewise.
22119 (VPERM_1TI_UNS): Likewise.
22120 (XXPERMDI_1TI): Likewise.
22121 (SET_1TI): Likewise.
22122 (LXVD2X_V1TI): Likewise.
22123 (STXVD2X_V1TI): Likewise.
22124 (VEC_INIT_V1TI): Likewise.
22125 (VEC_SET_V1TI): Likewise.
22126 (VEC_EXT_V1TI): Likewise.
22127 (EQV_V1TI): Likewise.
22128 (NAND_V1TI): Likewise.
22129 (ORC_V1TI): Likewise.
22130 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
22131 added in ISA 2.07. Add both normal 'altivec' builtins, and the
22132 overloaded builtin.
22133 (VADDUQM): Likewise.
22134 (VSUBCUQ): Likewise.
22135 (VADDEUQM): Likewise.
22136 (VADDECUQ): Likewise.
22137 (VSUBEUQM): Likewise.
22138 (VSUBECUQ): Likewise.
22140 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
22141 __int128_t and __uint128_t types.
22142 (__uint128_type): Likewise.
22143 (altivec_categorize_keyword): Add support for vector __int128_t,
22144 vector __uint128_t, vector __int128, and vector unsigned __int128
22145 as a container type for TImode operations that need to be done in
22146 VSX/Altivec registers.
22147 (rs6000_macro_to_expand): Likewise.
22148 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
22149 to support 128-bit integer instructions vaddcuq, vadduqm,
22150 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
22151 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
22153 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
22154 for V1TImode, and set up preferences to use VSX/Altivec registers.
22155 Setup VSX reload handlers.
22156 (rs6000_debug_reg_global): Likewise.
22157 (rs6000_init_hard_regno_mode_ok): Likewise.
22158 (rs6000_preferred_simd_mode): Likewise.
22159 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
22160 (easy_altivec_constant): Likewise.
22161 (output_vec_const_move): Likewise.
22162 (rs6000_expand_vector_set): Convert V1TImode set and extract to
22164 (rs6000_expand_vector_extract): Likewise.
22165 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
22167 (rs6000_const_vec): Add support for V1TImode.
22168 (rs6000_emit_le_vsx_load): Swap double words when loading or
22169 storing TImode/V1TImode.
22170 (rs6000_emit_le_vsx_store): Likewise.
22171 (rs6000_emit_le_vsx_move): Likewise.
22172 (rs6000_emit_move): Add support for V1TImode.
22173 (altivec_expand_ld_builtin): Likewise.
22174 (altivec_expand_st_builtin): Likewise.
22175 (altivec_expand_vec_init_builtin): Likewise.
22176 (altivec_expand_builtin): Likewise.
22177 (rs6000_init_builtins): Add support for V1TImode type. Add
22178 support for ISA 2.07 128-bit integer builtins. Define type names
22179 for the VSX/Altivec vector types.
22180 (altivec_init_builtins): Add support for overloaded vector
22181 functions with V1TImode type.
22182 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
22183 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
22185 (rs6000_split_128bit_ok_p): Likewise.
22186 (rs6000_handle_altivec_attribute): Create V1TImode from vector
22187 __int128_t and vector __uint128_t.
22189 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
22190 and mode attributes.
22192 (VSX_M2): Likewise.
22197 (VS_scalar): Likewise.
22198 (VS_double): Likewise.
22199 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
22201 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
22202 we support the ISA 2.07 128-bit integer arithmetic instructions.
22203 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
22204 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
22205 and TImode types for use with the builtin functions.
22206 (V1TI_type_node): Likewise.
22207 (unsigned_V1TI_type_node): Likewise.
22208 (intTI_type_internal_node): Likewise.
22209 (uintTI_type_internal_node): Likewise.
22211 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
22212 128-bit builtin functions.
22213 (UNSPEC_VADDEUQM): Likewise.
22214 (UNSPEC_VADDECUQ): Likewise.
22215 (UNSPEC_VSUBCUQ): Likewise.
22216 (UNSPEC_VSUBEUQM): Likewise.
22217 (UNSPEC_VSUBECUQ): Likewise.
22218 (VM): Add V1TImode to vector mode iterators.
22220 (VI_unit): Likewise.
22221 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
22222 (altivec_vaddcuq): Likewise.
22223 (altivec_vsubuqm): Likewise.
22224 (altivec_vsubcuq): Likewise.
22225 (altivec_vaddeuqm): Likewise.
22226 (altivec_vaddecuq): Likewise.
22227 (altivec_vsubeuqm): Likewise.
22228 (altivec_vsubecuq): Likewise.
22230 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
22232 (BOOL_128): Likewise.
22233 (BOOL_REGS_OUTPUT): Likewise.
22234 (BOOL_REGS_OP1): Likewise.
22235 (BOOL_REGS_OP2): Likewise.
22236 (BOOL_REGS_UNARY): Likewise.
22237 (BOOL_REGS_AND_CR0): Likewise.
22239 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
22240 128-bit integer builtin support.
22241 (vec_vadduqm): Likewise.
22242 (vec_vaddecuq): Likewise.
22243 (vec_vaddeuqm): Likewise.
22244 (vec_vsubecuq): Likewise.
22245 (vec_vsubeuqm): Likewise.
22246 (vec_vsubcuq): Likewise.
22247 (vec_vsubuqm): Likewise.
22249 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22250 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
22251 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
22252 128-bit integer add/subtract to ISA 2.07.
22254 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
22256 * config/arc/arc.c (arc_predicate_delay_insns):
22257 Fix third argument passed to conditionalize_nonjump.
22259 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
22261 * config/aarch64/aarch64-builtins.c
22262 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
22263 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
22264 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
22265 instead of __builtin_lfloor.
22266 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
22268 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22270 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
22271 (tree_ssa_ifcombine_bb_1): New function.
22272 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
22273 is an empty forwarder block to then_bb or vice versa and then_bb
22274 and else_bb are effectively swapped.
22276 2014-03-12 Christian Bruel <christian.bruel@st.com>
22279 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
22280 REG_CFA_DEF_CFA note.
22281 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
22282 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
22284 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22286 PR tree-optimization/60454
22287 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
22289 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22291 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
22292 Do not define target_cpu_default2 to generic.
22293 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
22294 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
22295 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
22297 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22298 Marc Glisse <marc.glisse@inria.fr>
22300 PR tree-optimization/60502
22301 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
22302 instead of build_low_bits_mask.
22304 2014-03-12 Jakub Jelinek <jakub@redhat.com>
22306 PR middle-end/60482
22307 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
22308 if there are multiple uses, but op doesn't live on E edge.
22309 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
22310 clobber stmts before __builtin_unreachable.
22312 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
22314 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
22315 hard_frame_pointer_rtx.
22316 * cse.c (cse_insn): Remove volatile check.
22317 * cselib.c (cselib_process_insn): Likewise.
22318 * dse.c (scan_insn): Likewise.
22320 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22322 * config/arc/arc.c (conditionalize_nonjump): New function,
22324 (arc_ifcvt): ... this.
22325 (arc_predicate_delay_insns): Use it.
22327 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
22329 * config/arc/predicates.md (extend_operand): During/after reload,
22330 allow const_int_operand.
22331 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
22332 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
22333 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
22335 (umulsi3_highpart_i): Likewise.
22337 2014-03-11 Richard Biener <rguenther@suse.de>
22339 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
22340 Add asserts to guard possible wrong-code bugs.
22342 2014-03-11 Richard Biener <rguenther@suse.de>
22344 PR tree-optimization/60429
22345 PR tree-optimization/60485
22346 * tree-ssa-structalias.c (set_union_with_increment): Properly
22347 take into account all fields that overlap the shifted vars.
22348 (do_sd_constraint): Likewise.
22349 (do_ds_constraint): Likewise.
22350 (get_constraint_for_ptr_offset): Likewise.
22352 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
22354 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
22355 (nios2_compute_frame_layout):
22356 Add calculation of cfun->machine->fp_save_offset.
22357 (nios2_expand_prologue): Correct setting of frame pointer register
22359 (nios2_expand_epilogue): Update recovery of stack pointer from
22360 frame pointer accordingly.
22361 (nios2_initial_elimination_offset): Update calculation of offset
22362 for eliminating to HARD_FRAME_POINTER_REGNUM.
22364 2014-03-10 Jakub Jelinek <jakub@redhat.com>
22367 * ipa.c (symtab_remove_unreachable_nodes): Don't call
22368 cgraph_get_create_node on VAR_DECLs.
22370 2014-03-10 Richard Biener <rguenther@suse.de>
22372 PR middle-end/60474
22373 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
22375 2014-03-08 Douglas B Rupp <rupp@gnat.com>
22377 * config/vms/vms.opt (vms_float_format): New variable.
22379 2014-03-08 Tobias Burnus <burnus@net-b.de>
22381 * doc/invoke.texi (-fcilkplus): Update implementation status.
22383 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
22384 Richard Biener <rguenther@suse.de>
22386 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
22387 consistently accross all TUs.
22388 (run_gcc): Enable -fshort-double automatically at link at link-time
22389 and disallow override.
22391 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
22394 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
22395 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
22396 if they can't be used.
22398 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22400 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
22401 for Solaris 11/x86 ld.
22402 * configure: Regenerate.
22404 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22406 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
22407 (LIB_TLS_SPEC): Save as ld_tls_libs.
22408 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
22409 (HAVE_AS_IX86_TLSLDM): New test.
22410 * configure, config.in: Regenerate.
22411 * config/i386/i386.c (legitimize_tls_address): Fall back to
22412 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
22413 cannot support TLS_MODEL_LOCAL_DYNAMIC.
22414 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
22415 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
22417 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
22419 * common.opt (fira-loop-pressure): Mark as optimization.
22421 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
22423 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
22424 an OpenMP mappable type.
22426 2014-03-06 Matthias Klose <doko@ubuntu.com>
22428 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
22429 MULTILIB_OSDIRNAMES is not defined.
22431 2014-03-06 Jakub Jelinek <jakub@redhat.com>
22432 Meador Inge <meadori@codesourcery.com>
22435 * config/arm/arm.c (arm_tls_symbol_p): Remove.
22436 (arm_legitimize_address): Call legitimize_tls_address for any
22437 arm_tls_referenced_p expression, handle constant addend. Call it
22438 before testing for !TARGET_ARM.
22439 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
22441 2014-03-06 Richard Biener <rguenther@suse.de>
22443 PR middle-end/60445
22447 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22449 * tree-streamer.c (record_common_node): Assert we don't record
22450 nodes with type double.
22451 (preload_common_node): Skip type double, complex double and double
22452 pointer since it is now frontend dependent due to fshort-double option.
22454 2014-03-06 Richard Biener <rguenther@suse.de>
22456 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
22457 or -fno-lto is specified and the linker has full plugin support.
22458 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
22459 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
22460 * lto-wrapper.c (merge_and_complain): Merge compile-time
22461 optimization levels.
22462 (run_gcc): And pass it through to the link options.
22464 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
22468 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22470 * cselib.c (remove_useless_values): Skip to avoid quadratic
22471 behavior if the condition moved from...
22472 (cselib_process_insn): ... here holds.
22474 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22477 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
22478 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
22481 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
22482 (TM_H): Add x86-tune.def.
22484 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22486 * config/aarch64/aarch64.c (generic_tunings):
22487 Use cortexa57_extra_costs.
22489 2014-03-05 Jakub Jelinek <jakub@redhat.com>
22492 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
22493 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
22494 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
22497 2014-03-04 Heiher <r@hev.cc>
22499 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
22500 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
22502 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
22504 * config/i386/predicates.md (const2356_operand): Change to ...
22505 (const2367_operand): ... this.
22506 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
22508 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22509 (*avx512pf_scatterpf<mode>sf): Ditto.
22510 (avx512pf_scatterpf<mode>df): Ditto.
22511 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22512 (*avx512pf_scatterpf<mode>df): Ditto.
22513 * config/i386/i386.c (ix86_expand_builtin): Update
22514 incorrect hint operand error message.
22516 2014-03-04 Richard Biener <rguenther@suse.de>
22518 * lto-section-in.c (lto_get_section_data): Fix const cast.
22520 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
22522 * tree-streamer.c (record_common_node): Assert we don't record
22523 nodes with type double.
22524 (preload_common_node): Skip type double, complex double and double
22525 pointer since it is now frontend dependent due to fshort-double option.
22527 2014-03-04 Richard Biener <rguenther@suse.de>
22530 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
22531 (lto_input_toplevel_asms): Likewise.
22532 * lto-section-in.c (lto_get_section_data): Instead do it here
22535 2014-03-04 Richard Biener <rguenther@suse.de>
22537 PR tree-optimization/60382
22538 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
22539 dead PHIs a reduction.
22541 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
22543 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
22545 (_mm_prefetch): Move out of GCC target("sse") pragma.
22546 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
22547 GCC target("prfchw") pragma.
22548 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
22550 * config/i386/i386.c (ix86_option_override_internal): Enable
22551 -mprfchw with -mprefetchwt1.
22553 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22555 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
22558 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
22560 * opts.h (CL_PCH_IGNORE): Define.
22561 * targhooks.c (option_affects_pch_p):
22562 Return false for options that have CL_PCH_IGNORE set.
22563 * opt-functions.awk: Process PchIgnore.
22564 * doc/options.texi: Document PchIgnore.
22566 * config/arc/arc.opt (misize): Add PchIgnore property.
22568 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22570 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
22571 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
22572 constraint on constants to permit them being loaded into
22573 GENERAL_REGS or BASE_REGS.
22575 2014-03-03 Nick Clifton <nickc@redhat.com>
22577 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
22578 anti-cacnonical alternatives.
22579 (negandhi3_real): New pattern.
22580 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
22582 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22584 * config/avr/avr-mcus.def: Remove atxmega16x1.
22585 * config/avr/avr-tables.opt: Regenerate.
22586 * config/avr/t-multilib: Regenerate.
22587 * doc/avr-mmcu.texi: Regenerate.
22589 2014-03-03 Tobias Grosser <tobias@grosser.es>
22590 Mircea Namolaru <mircea.namolaru@inria.fr>
22592 PR tree-optimization/58028
22593 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
22596 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22598 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
22599 not handled by recognizers.
22601 2014-03-03 Jakub Jelinek <jakub@redhat.com>
22603 PR middle-end/60175
22604 * function.c (expand_function_end): Don't emit
22605 clobber_return_register sequence if clobber_after is a BARRIER.
22606 * cfgexpand.c (construct_exit_block): Append instructions before
22607 return_label to prev_bb.
22609 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22611 * config/rs6000/constraints.md: Document reserved use of "wc".
22613 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22616 * ipa.c (function_and_variable_visibility): When dissolving comdat
22617 group, also set all symbols to local.
22619 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
22624 2013-12-14 Jan Hubicka <jh@suse.cz>
22625 PR middle-end/58477
22626 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
22628 2014-03-02 Jon Beniston <jon@beniston.com>
22634 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
22635 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
22636 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
22637 (simple_return, *simple_return): New patterns
22638 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
22639 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
22641 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
22643 * dwarf2out.c (gen_subprogram_die): Tidy.
22645 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
22648 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
22649 (*mov_t_msb_neg_negc): ... this new insn.
22651 2014-02-28 Jason Merrill <jason@redhat.com>
22654 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
22657 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
22660 * dwarf2out.c (decltype_auto_die): New static.
22661 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
22662 (gen_type_die_with_usage): Handle 'decltype(auto)'.
22663 (is_cxx_auto): Likewise.
22665 2014-02-28 Ian Bolton <ian.bolton@arm.com>
22667 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
22668 we are not using general regs only.
22670 2014-02-28 Richard Biener <rguenther@suse.de>
22673 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
22674 previous fix and only allow to remove trivial pre-headers
22675 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
22676 (remove_forwarder_block): Properly update the latch of a loop.
22678 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22681 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
22682 (cselib_preserved_hash_table): New.
22683 (preserve_constants_and_equivs): Move preserved vals to it.
22684 (cselib_find_slot): Look it up first.
22685 (cselib_init): Initialize it.
22686 (cselib_finish): Release it.
22687 (dump_cselib_table): Dump it.
22689 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22692 * cselib.c (remove_useless_values): Skip to avoid quadratic
22693 behavior if the condition moved from...
22694 (cselib_process_insn): ... here holds.
22696 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
22699 * var-tracking.c (vt_initialize): Apply the same condition to
22700 preserve the CFA base value.
22702 2014-02-28 Joey Ye <joey.ye@arm.com>
22705 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
22706 if reload in progress or completed.
22708 2014-02-28 Tobias Burnus <burnus@net-b.de>
22710 PR middle-end/60147
22711 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
22714 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
22716 * doc/tm.texi.in (Condition Code Status): Update documention for
22717 relative locations of cc0-setter and cc0-user.
22719 2014-02-27 Jeff Law <law@redhat.com>
22721 PR rtl-optimization/52714
22722 * combine.c (try_combine): When splitting an unrecognized PARALLEL
22723 into two independent simple sets, if I3 is a jump, ensure the
22724 pattern we place into I3 is a (set (pc) ...).
22726 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
22727 Jeff Law <law@redhat.com>
22729 PR rtl-optimization/49847
22730 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
22731 are in different blocks.
22732 * doc/tm.texi (Condition Code Status): Update documention for
22733 relative locations of cc0-setter and cc0-user.
22735 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
22738 * lra.c (lra_emit_add): Check SUBREG too.
22740 2014-02-27 Andreas Schwab <schwab@suse.de>
22742 * config/m68k/m68k.c (m68k_option_override): Disable
22743 -flive-range-shrinkage for classic m68k.
22744 (m68k_override_options_after_change): Likewise.
22746 2014-02-27 Marek Polacek <polacek@redhat.com>
22748 PR middle-end/59223
22749 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
22750 -Wmaybe-uninitialized.
22752 2014-02-27 Alan Modra <amodra@gmail.com>
22755 * reload1.c (emit_input_reload_insns): When reload_override_in,
22756 set old to rl->in_reg when rl->in_reg is a subreg.
22758 2014-02-26 Richard Biener <rguenther@suse.de>
22761 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
22763 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22765 * common/config/i386/predicates.md (const1256_operand): Remove.
22766 (const2356_operand): New.
22767 (const_1_to_2_operand): Remove.
22768 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
22769 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
22770 (*avx512pf_gatherpf<mode>sf): Ditto.
22771 (avx512pf_gatherpf<mode>df): Ditto.
22772 (*avx512pf_gatherpf<mode>df_mask): Ditto.
22773 (*avx512pf_gatherpf<mode>df): Ditto.
22774 (avx512pf_scatterpf<mode>sf): Ditto.
22775 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
22776 (*avx512pf_scatterpf<mode>sf): Ditto.
22777 (avx512pf_scatterpf<mode>df): Ditto.
22778 (*avx512pf_scatterpf<mode>df_mask): Ditto.
22779 (*avx512pf_scatterpf<mode>df): Ditto.
22780 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
22782 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
22784 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
22785 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
22786 (_mm512_mask_testn_epi64_mask): Move to ...
22787 * config/i386/avx512cdintrin.h: Here.
22788 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
22789 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
22790 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
22791 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
22792 TARGET_AVX512F from TARGET_AVX512CD.
22794 2014-02-26 Richard Biener <rguenther@suse.de>
22797 * ipa.c (walk_polymorphic_call_targets): Properly guard
22798 call to inline_update_overall_summary.
22800 2014-02-26 Bin Cheng <bin.cheng@arm.com>
22803 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
22804 and latches only if requested. Fix latch if it is removed.
22805 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
22806 LOOPS_HAVE_PREHEADERS.
22808 2014-02-25 Andrew Pinski <apinski@cavium.com>
22810 * builtins.c (expand_builtin_thread_pointer): Create a new target
22811 when the target is NULL.
22813 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
22815 PR rtl-optimization/60317
22816 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22817 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
22818 * lra-assigns.c: Include params.h.
22819 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
22820 other reload pseudos considerations.
22822 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22824 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
22825 to use canonical form for nor<mode>3.
22827 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22830 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
22833 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
22835 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
22836 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
22837 (ix86_handle_option): Handle OPT_mprefetchwt1.
22838 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
22839 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22841 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22842 OPTION_MASK_ISA_PREFETCHWT1.
22843 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
22844 (PTA_PREFETCHWT1): New.
22845 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
22846 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
22847 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
22848 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
22849 (*prefetch_avx512pf_<mode>_: Change into ...
22850 (*prefetch_prefetchwt1_<mode>: This.
22851 * config/i386/i386.opt (mprefetchwt1): New.
22852 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
22853 (_mm_prefetch): Handle intent to write.
22854 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
22856 2014-02-25 Richard Biener <rguenther@suse.de>
22858 PR middle-end/60291
22859 * emit-rtl.c (mem_attrs_htab): Remove.
22860 (mem_attrs_htab_hash): Likewise.
22861 (mem_attrs_htab_eq): Likewise.
22862 (set_mem_attrs): Always allocate new mem-attrs when something changed.
22863 (init_emit_once): Do not allocate mem_attrs_htab.
22865 2014-02-25 Richard Biener <rguenther@suse.de>
22868 * lto-opts.c (lto_write_options): Output non-explicit conservative
22869 -fwrapv, -fno-trapv and -fno-strict-overflow.
22870 * lto-wrapper.c (merge_and_complain): Handle merging those options.
22871 (run_gcc): And pass them through.
22873 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22875 * sel-sched.c (calculate_new_fences): New parameter ptime.
22876 Calculate it as a maximum over all fence cycles.
22877 (sel_sched_region_2): Adjust the call to calculate_new_fences.
22878 Print the final schedule timing when sched_verbose.
22880 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
22882 PR rtl-optimization/60292
22883 * sel-sched.c (fill_vec_av_set): Do not reset target availability
22884 bit fot the fence instruction.
22886 2014-02-24 Alangi Derick <alangiderick@gmail.com>
22888 * calls.h: Fix typo in comment.
22890 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
22892 * config/pa/pa.c (pa_output_move_double): Don't valididate when
22893 adjusting offsetable addresses.
22895 2014-02-24 Guozhi Wei <carrot@google.com>
22897 * sparseset.h (sparseset_pop): Fix the wrong index.
22899 2014-02-24 Walter Lee <walt@tilera.com>
22901 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
22902 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
22904 * common/config/tilegx/tilegx-common.c
22905 (TARGET_DEFAULT_TARGET_FLAGS): Define.
22906 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
22907 (LINK_SPEC): Ditto.
22908 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
22909 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
22910 (tilegx_gimplify_va_arg_expr): Handle big endian.
22911 (tilegx_expand_unaligned_load): Ditto.
22912 (tilegx_expand_unaligned_store): Ditto.
22913 (TARGET_RETURN_IN_MSB): New.
22914 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
22915 (TARGET_ENDIAN_DEFAULT): New.
22916 (TARGET_BIG_ENDIAN): Handle big endian.
22917 (BYTES_BIG_ENDIAN): Ditto.
22918 (WORDS_BIG_ENDIAN): Ditto.
22919 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
22920 (ENDIAN_SPEC): New.
22921 (EXTRA_SPECS): New.
22922 * config/tilegx/tilegx.md (extv): Handle big endian.
22924 (insn_st<n>): Ditto.
22925 (insn_st<n>_add<bitsuffix>): Ditto.
22926 (insn_stnt<n>): Ditto.
22927 (insn_stnt<n>_add<bitsuffix>):Ditto.
22928 (vec_interleave_highv8qi): Handle big endian.
22929 (vec_interleave_highv8qi_be): New.
22930 (vec_interleave_highv8qi_le): New.
22931 (insn_v1int_h): Handle big endian.
22932 (vec_interleave_lowv8qi): Handle big endian.
22933 (vec_interleave_lowv8qi_be): New.
22934 (vec_interleave_lowv8qi_le): New.
22935 (insn_v1int_l): Handle big endian.
22936 (vec_interleave_highv4hi): Handle big endian.
22937 (vec_interleave_highv4hi_be): New.
22938 (vec_interleave_highv4hi_le): New.
22939 (insn_v2int_h): Handle big endian.
22940 (vec_interleave_lowv4hi): Handle big endian.
22941 (vec_interleave_lowv4hi_be): New.
22942 (vec_interleave_lowv4hi_le): New.
22943 (insn_v2int_l): Handle big endian.
22944 (vec_interleave_highv2si): Handle big endian.
22945 (vec_interleave_highv2si_be): New.
22946 (vec_interleave_highv2si_le): New.
22947 (insn_v4int_h): Handle big endian.
22948 (vec_interleave_lowv2si): Handle big endian.
22949 (vec_interleave_lowv2si_be): New.
22950 (vec_interleave_lowv2si_le): New.
22951 (insn_v4int_l): Handle big endian.
22952 * config/tilegx/tilegx.opt (mbig-endian): New option.
22953 (mlittle-endian): New option.
22954 * doc/install.texi: Document tilegxbe-linux.
22955 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
22957 2014-02-24 Martin Jambor <mjambor@suse.cz>
22960 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
22961 there are no parameter descriptors.
22963 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
22965 PR rtl-optimization/60268
22966 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
22967 initialization to ...
22968 (sched_rgn_init): ... here.
22969 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
22971 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22973 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
22976 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
22978 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
22981 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22983 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
22984 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
22986 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
22988 * config/microblaze/predicates.md: Add cmp_op predicate.
22989 * config/microblaze/microblaze.md: Add branch_compare instruction
22990 which uses cmp_op predicate and emits cmp insn before branch.
22991 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
22992 to microblaze_expand_conditional_branch and consolidate logic.
22993 (microblaze_expand_conditional_branch): emit branch_compare
22994 insn instead of handling cmp op separate from branch insn.
22996 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22998 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
23001 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23003 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
23004 define_insn with define_expand and new define_insn
23005 *altivec_lve<VI_char>x_internal.
23006 (altivec_stve<VI_char>x): Replace define_insn with define_expand
23007 and new define_insn *altivec_stve<VI_char>x_internal.
23008 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
23010 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
23012 (altivec_expand_stvex_be): New function.
23014 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
23016 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
23017 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
23018 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
23019 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
23021 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
23024 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
23025 instead of emit_move_insn.
23027 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23029 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
23030 vspltw with vsldoi.
23031 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
23032 gen_altivec_vsumsws.
23034 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23036 * config/rs6000/altivec.md (altivec_lvxl): Rename as
23037 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
23038 (altivec_lvxl_<mode>): New define_expand incorporating
23039 -maltivec=be semantics where needed.
23040 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
23041 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
23042 semantics where needed.
23043 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
23044 (altivec_stvx_<mode>): New define_expand incorporating
23045 -maltivec=be semantics where needed.
23046 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
23047 VM2 iterator instead of V4SI.
23048 (altivec_stvxl_<mode>): New define_expand incorporating
23049 -maltivec=be semantics where needed.
23050 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
23051 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
23052 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
23053 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
23054 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
23055 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
23056 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
23057 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
23058 ALTIVEC_BUILTIN_STVXL.
23059 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
23060 (altivec_expand_stvx_be): Likewise.
23061 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
23062 (altivec_expand_lvx_be): Likewise.
23063 (altivec_expand_stvx_be): Likewise.
23064 (altivec_expand_builtin): Add cases for
23065 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
23066 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
23067 (altivec_init_builtins): Add definitions for
23068 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
23069 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
23071 2014-02-21 Catherine Moore <clm@codesourcery.com>
23073 * doc/invoke.texi (mvirt, mno-virt): Document.
23074 * config/mips/mips.opt (mvirt): New option.
23075 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
23077 2014-02-21 Richard Biener <rguenther@suse.de>
23079 PR tree-optimization/60276
23080 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
23081 (STMT_VINFO_MIN_NEG_DIST): New macro.
23082 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
23083 STMT_VINFO_MIN_NEG_DIST.
23084 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
23085 made for negative dependence distances still hold.
23087 2014-02-21 Richard Biener <rguenther@suse.de>
23089 PR middle-end/60291
23090 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
23091 DECL_INITIAL for globals not in the current function context.
23093 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23095 PR tree-optimization/56490
23096 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
23097 * tree-ssa-uninit.c: Include params.h.
23098 (compute_control_dep_chain): Add num_calls argument, return false
23099 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
23100 num_calls to recursive call.
23101 (find_predicates): Change dep_chain into normal array,
23102 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
23103 variable and adjust compute_control_dep_chain caller.
23104 (find_def_preds): Likewise.
23106 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
23108 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
23109 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
23111 2014-02-21 Nick Clifton <nickc@redhat.com>
23113 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
23114 (pushhi1): Likewise.
23115 (popqi1): Add mode to pre_dec.
23116 (pophi1): Likewise.
23118 2014-02-21 Jakub Jelinek <jakub@redhat.com>
23120 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
23121 mode for mask of V8SFmode permutation.
23123 2014-02-20 Richard Henderson <rth@redhat.com>
23126 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
23127 a new pseudo for OLDVAL.
23129 2014-02-20 Jakub Jelinek <jakub@redhat.com>
23132 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
23133 gen_reg_rtx if d->testing_p.
23134 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
23135 if d->testing_p and we will certainly return true.
23136 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
23139 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
23141 * emit-rtl.c (gen_reg_rtx): Assert that
23142 crtl->emit.regno_pointer_align_length is non-zero.
23144 2014-02-20 Richard Henderson <rth@redhat.com>
23147 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
23148 on failure the store back into EXPECT.
23150 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
23151 Sandra Loosemore <sandra@codesourcery.com>
23153 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
23154 * config/nios2/nios2.c (nios2_function_profiler): Add
23155 -fPIC (flag_pic == 2) support.
23156 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
23157 (nios2_large_offset_p): New function.
23158 (nios2_unspec_reloc_p): Move up position, update to use
23159 nios2_large_offset_p.
23160 (nios2_unspec_address): Remove function.
23161 (nios2_unspec_offset): New function.
23162 (nios2_large_got_address): New function.
23163 (nios2_got_address): Add large offset support.
23164 (nios2_legitimize_tls_address): Update usage of removed and new
23166 (nios2_symbol_binds_local_p): New function.
23167 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
23168 (nios2_legitimize_address): Update to use nios2_large_offset_p.
23169 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
23170 (nios2_print_operand): Merge H/L processing, add hiadj/lo
23171 processing for (const (unspec ...)).
23172 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
23174 2014-02-20 Richard Biener <rguenther@suse.de>
23176 * tree-cfg.c (replace_uses_by): Mark altered BBs before
23177 doing the substitution.
23178 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
23180 2014-02-20 Martin Jambor <mjambor@suse.cz>
23183 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
23184 info when checking whether lattices are bottom.
23186 2014-02-20 Richard Biener <rguenther@suse.de>
23188 PR middle-end/60221
23189 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
23192 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
23195 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
23196 parameter specifying the scaling.
23197 (inline_call): Update.
23198 (want_inline_recursively): Guard division by zero.
23199 (recursive_inlining): Update.
23200 * ipa-inline.h (clone_inlined_nodes): Update.
23202 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23205 * config/i386/i386.c (classify_argument): Pass structures of size
23206 64 bytes or less in register.
23208 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
23209 Kirill Yukhin <kirill.yukhin@intel.com>
23211 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
23212 (_mm_rcp28_round_ss): Ditto.
23213 (_mm_rsqrt28_round_sd): Ditto.
23214 (_mm_rsqrt28_round_ss): Ditto.
23215 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
23216 (_mm_rcp14_round_ss): Ditto.
23217 (_mm_rsqrt14_round_sd): Ditto.
23218 (_mm_rsqrt14_round_ss): Ditto.
23219 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
23220 the first input operand, get rid of match_dup.
23221 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
23223 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
23225 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
23226 operand as the first input operand, set type attribute.
23227 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
23228 Set type attribute.
23229 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
23230 operand as the first input operand, set type attribute.
23232 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23234 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
23237 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
23240 * config/i386/i386.c (construct_container): Remove TFmode check
23241 for X86_64_INTEGER_CLASS.
23243 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
23246 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
23247 only when -Wpsabi is enabled.
23249 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
23252 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
23253 passing arrays in registers are the same as for structs, so remove the
23254 special case for them.
23256 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
23258 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
23259 destination type, extract only the valid bits if the source type is not
23260 integral and has a different mode.
23262 2014-02-19 Richard Biener <rguenther@suse.de>
23265 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
23268 2014-02-19 Richard Biener <rguenther@suse.de>
23271 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
23272 (ipa_modify_call_arguments): Emit an argument load explicitely and
23273 preserve virtual SSA form there and for the replacement call.
23274 Do not update SSA form nor free dominance info.
23276 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23278 * ipa.c (function_and_variable_visibility): Also clear WEAK
23279 flag when disolving COMDAT_GROUP.
23281 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23283 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
23284 * ipa-prop.c (ipa_set_jf_known_type): Return early when
23285 not devirtualizing.
23286 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
23287 do more sanity checks.
23288 (detect_type_change): Return true when giving up early.
23289 (compute_complex_assign_jump_func): Fix type parameter of
23290 ipa_set_ancestor_jf.
23291 (compute_complex_ancestor_jump_func): Likewise.
23292 (update_jump_functions_after_inlining): Fix updating of
23294 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
23296 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
23298 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
23299 inline clones when edge disappears.
23301 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23304 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
23305 Split 64-bit moves into 2 patterns. Do not allow the use of
23306 direct move for TDmode in little endian, since the decimal value
23307 has little endian bytes within a word, but the 64-bit pieces are
23308 ordered in a big endian fashion, and normal subreg's of TDmode are
23310 (mov<mode>_64bit_dm): Likewise.
23311 (movtd_64bit_nodm): Likewise.
23313 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23315 PR tree-optimization/60174
23316 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
23317 statement of an SSA_NAME that occurs in an abnormal PHI node.
23319 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23322 * final.c (SEEN_BB): Remove.
23323 (SEEN_NOTE, SEEN_EMITTED): Renumber.
23324 (final_scan_insn): Don't force_source_line on second
23325 NOTE_INSN_BASIC_BLOCK.
23327 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
23330 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
23331 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
23332 (type_natural_mode): Warn ABI change when %zmm register is not
23333 available for AVX512F vector value passing.
23335 2014-02-18 Kai Tietz <ktietz@redhat.com>
23338 * config/i386/i386.c (ix86_expand_prologue): Use value in
23339 rax register as displacement when restoring %r10 or %rax.
23340 Fix wrong offset when restoring both registers.
23342 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
23344 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
23345 assertion with conditional return.
23347 2014-02-18 Jakub Jelinek <jakub@redhat.com>
23348 Uros Bizjak <ubizjak@gmail.com>
23351 * config/i386/driver-i386.c (host_detect_local_cpu): If
23352 YMM state is not saved by the OS, also clear has_f16c. Move
23353 CPUID 0x80000001 handling before YMM state saving checking.
23355 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
23357 PR rtl-optimization/58960
23358 * haifa-sched.c (alloc_global_sched_pressure_data): New,
23359 factored out from ...
23360 (sched_init): ... here.
23361 (free_global_sched_pressure_data): New, factored out from ...
23362 (sched_finish): ... here.
23363 * sched-int.h (free_global_sched_pressure_data): Declare.
23364 * sched-rgn.c (nr_regions_initial): New static global.
23365 (haifa_find_rgns): Initialize it.
23366 (schedule_region): Disable sched-pressure for the newly
23369 2014-02-17 Richard Biener <rguenther@suse.de>
23371 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
23372 release SSA defs of pattern stmts.
23374 2014-02-17 Richard Biener <rguenther@suse.de>
23376 * tree-inline.c (expand_call_inline): Release the virtual
23377 operand defined by the call we are about to inline.
23379 2014-02-17 Richard Biener <rguenther@suse.de>
23381 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
23383 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
23384 Ilya Tocar <ilya.tocar@intel.com>
23386 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
23387 arguments order in builtin.
23388 (_mm512_permutexvar_epi64): Ditto.
23389 (_mm512_mask_permutexvar_epi64): Ditto
23390 (_mm512_maskz_permutexvar_epi32): Ditto
23391 (_mm512_permutexvar_epi32): Ditto
23392 (_mm512_mask_permutexvar_epi32): Ditto
23394 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23396 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
23397 (p8_vmrgow): Likewise.
23399 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23401 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
23404 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
23407 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
23408 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
23409 into 64-bit and 32-bit moves. On 64-bit moves, add support for
23410 using direct move instructions on ISA 2.07. Also adjust
23411 instruction length for 64-bit.
23412 (mov<mode>_64bit, TFmode/TDmode): Likewise.
23413 (mov<mode>_32bit, TFmode/TDmode): Likewise.
23415 2014-02-15 Alan Modra <amodra@gmail.com>
23419 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
23420 find_replacement on parts of insn rtl that might be reloaded.
23422 2014-02-15 Richard Biener <rguenther@suse.de>
23424 PR tree-optimization/60183
23425 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
23426 (tree_ssa_phiprop): Calculate and free post-dominators.
23428 2014-02-14 Jeff Law <law@redhat.com>
23430 PR rtl-optimization/60131
23431 * ree.c (get_extended_src_reg): New function.
23432 (combine_reaching_defs): Use it rather than assuming location of REG.
23433 (find_and_remove_re): Verify first operand of extension is
23434 a REG before adding the insns to the copy list.
23436 2014-02-14 Roland McGrath <mcgrathr@google.com>
23438 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
23439 * configure: Regenerated.
23440 * config.in: Regenerated.
23441 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
23442 instead of ASM_SHORT.
23444 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
23445 Richard Earnshaw <rearnsha@arm.com>
23447 PR rtl-optimization/59535
23448 * lra-constraints.c (process_alt_operands): Encourage alternative
23449 when unassigned pseudo class is superset of the alternative class.
23450 (inherit_reload_reg): Don't inherit when optimizing for code size.
23451 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
23452 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
23453 modes not less than 4 for Thumb1.
23455 2014-02-14 Kyle McMartin <kyle@redhat.com>
23458 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
23460 2014-02-14 Richard Biener <rguenther@suse.de>
23462 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
23463 (get_frame_arg): Drop the assert with langhook types_compatible_p.
23464 Do not strip INDIRECT_REFs.
23466 2014-02-14 Richard Biener <rguenther@suse.de>
23469 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
23470 DECL_FUNCTION_SPECIFIC_TARGET.
23471 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
23472 * tree-streamer-out.c (pack_ts_target_option): Remove.
23473 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
23474 (write_ts_function_decl_tree_pointers): Do not stream
23475 DECL_FUNCTION_SPECIFIC_TARGET.
23476 * tree-streamer-in.c (unpack_ts_target_option): Remove.
23477 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
23478 (lto_input_ts_function_decl_tree_pointers): Do not stream
23479 DECL_FUNCTION_SPECIFIC_TARGET.
23481 2014-02-14 Jakub Jelinek <jakub@redhat.com>
23483 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
23484 (get_initial_def_for_induction, vectorizable_induction): Ignore
23485 debug stmts when looking for exit_phi.
23486 (vectorizable_live_operation): Fix up condition.
23488 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23490 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
23491 nreverse() because it changes the content of original tree list.
23493 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23495 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
23496 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
23498 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
23500 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
23501 GNU coding standards.
23503 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23506 * dwarf2out.c (gen_subprogram_die): Don't call
23507 add_calling_convention_attribute if subr_die is old_die.
23509 2014-02-13 Sharad Singhai <singhai@google.com>
23511 * doc/optinfo.texi: Fix order of nodes.
23513 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
23515 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
23516 operands[2], not operands[3].
23518 2014-02-13 Richard Biener <rguenther@suse.de>
23521 * doc/install.texi (ISL): Update recommended version to 0.12.2,
23522 mention the possibility of an in-tree build.
23523 (CLooG): Update recommended version to 0.18.1, mention the
23524 possibility of an in-tree build and clarify that the ISL
23525 bundled with CLooG does not work.
23527 2014-02-13 Jakub Jelinek <jakub@redhat.com>
23530 * expr.c (compress_float_constant): If x is a hard register,
23531 extend into a pseudo and then move to x.
23533 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
23535 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
23536 caused by bad second argument to warning_at() with -mhotpatch and
23537 nested functions (e.g. with gfortran).
23539 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
23541 * opts.c (option_name): Remove "enabled by default" rider.
23543 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
23545 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
23547 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
23548 Uros Bizjak <ubizjak@gmail.com>
23551 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
23552 * configure: Regenerated.
23554 2014-02-12 Richard Biener <rguenther@suse.de>
23556 * vec.c (vec_prefix::calculate_allocation): Move as
23557 inline variant to vec.h.
23558 (vec_prefix::calculate_allocation_1): New out-of-line version.
23559 * vec.h (vec_prefix::calculate_allocation_1): Declare.
23560 (vec_prefix::m_has_auto_buf): Rename to ...
23561 (vec_prefix::m_using_auto_storage): ... this.
23562 (vec_prefix::calculate_allocation): Inline the easy cases
23563 and dispatch to calculate_allocation_1 which doesn't need the
23565 (va_heap::reserve): Use gcc_checking_assert.
23566 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
23567 m_using_auto_storage.
23568 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
23570 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
23571 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
23572 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
23574 2014-02-12 Richard Biener <rguenther@suse.de>
23576 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
23577 when we found a dependence.
23579 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
23581 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
23583 (maybe_fold_stmt): ... into this new function.
23584 * omp-low.c (lower_omp): Update comment.
23586 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
23589 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
23592 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
23594 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
23595 identifiers in comments.
23596 (cortexa53_extra_costs): Likewise.
23597 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
23598 (cortexa7_extra_costs): Likewise.
23599 (cortexa12_extra_costs): Likewise.
23600 (cortexa15_extra_costs): Likewise.
23601 (v7m_extra_costs): Likewise.
23603 2014-02-12 Richard Biener <rguenther@suse.de>
23605 PR middle-end/60092
23606 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
23607 of posix_memalign being successful.
23608 (lower_stmt): Restrict lowering of posix_memalign to when
23609 -ftree-bit-ccp is enabled.
23611 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
23613 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
23615 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
23617 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
23619 PR rtl-optimization/60116
23620 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
23621 other_insn once the combination has been validated.
23623 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
23626 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
23628 * ipa-devirt.c: Include demangle.h
23629 (odr_violation_reported): New static variable.
23630 (add_type_duplicate): Update odr_violations.
23631 (maybe_record_node): Add completep parameter; update it.
23632 (record_target_from_binfo): Add COMPLETEP parameter;
23633 update it as needed.
23634 (possible_polymorphic_call_targets_1): Likewise.
23635 (struct polymorphic_call_target_d): Add nonconstruction_targets;
23636 rename FINAL to COMPLETE.
23637 (record_targets_from_bases): Sanity check we found the binfo;
23638 fix COMPLETEP updating.
23639 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
23640 parameter, fix computing of COMPLETEP.
23641 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
23642 at LTO time do demangling.
23643 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
23644 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
23646 (gimple_get_virt_method_for_binfo): Likewise.
23647 * gimple-fold.h (gimple_get_virt_method_for_binfo,
23648 gimple_get_virt_method_for_vtable): Update prototypes.
23650 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
23653 * genautomata.c (add_presence_absence): Fix typo with
23654 {final_}presence_list.
23656 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23659 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
23660 for VSX/Altivec vectors that land in GPR registers.
23662 2014-02-11 Richard Henderson <rth@redhat.com>
23663 Jakub Jelinek <jakub@redhat.com>
23666 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
23667 around drhs if type conversion to lacc->type is not useless.
23669 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23671 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
23673 (cortex-a57.cortex-a53): Likewise.
23674 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
23676 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23678 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
23681 2014-02-11 Renlin Li <Renlin.Li@arm.com>
23683 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
23684 add_options_for_arm_vfp3.
23686 2014-02-11 Jeff Law <law@redhat.com>
23688 PR middle-end/54041
23689 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
23690 object with an undesirable mode.
23692 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23695 * config/i386/sol2-9.h: New file.
23696 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
23697 *-*-solaris2.9*): Use it.
23699 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23701 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
23702 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
23704 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
23706 * config/microblaze/microblaze.c: Extend mcpu version format
23708 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
23710 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
23712 2014-02-10 Richard Henderson <rth@redhat.com>
23715 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
23716 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
23717 ms-abi vs -mno-accumulate-outgoing-args.
23718 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
23719 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
23722 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
23724 PR middle-end/60080
23725 * cfgexpand.c (expand_asm_operands): Attach source location to
23726 ASM_INPUT rtx objects.
23727 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
23729 2014-02-10 Nick Clifton <nickc@redhat.com>
23731 * config/mn10300/mn10300.c (popcount): New function.
23732 (mn10300_expand_prologue): Include saved registers in stack usage
23735 2014-02-10 Jeff Law <law@redhat.com>
23737 PR middle-end/52306
23738 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
23739 when changing the SET_DEST of a prior insn to avoid an input reload.
23741 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23743 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
23744 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
23745 -mcall-openbsd, or -mcall-linux.
23746 (CC1_ENDIAN_BIG_SPEC): Remove.
23747 (CC1_ENDIAN_LITTLE_SPEC): Remove.
23748 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23749 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
23750 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
23751 and %cc1_endian_default.
23752 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
23754 2014-02-10 Richard Biener <rguenther@suse.de>
23756 PR tree-optimization/60115
23757 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
23758 MEM_REF handling. Properly verify that the accesses are not
23759 out of the objects bound.
23761 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23763 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
23766 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
23768 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
23769 proper constants and fix formatting.
23770 (possible_polymorphic_call_targets): Fix formatting.
23772 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
23773 Ilya Tocar <ilya.tocar@intel.com>
23775 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
23776 (_mm512_loadu_epi32): Renamed into...
23777 (_mm512_loadu_si512): This.
23778 (_mm512_storeu_epi32): Renamed into...
23779 (_mm512_storeu_si512): This.
23780 (_mm512_maskz_ceil_ps): Removed.
23781 (_mm512_maskz_ceil_pd): Ditto.
23782 (_mm512_maskz_floor_ps): Ditto.
23783 (_mm512_maskz_floor_pd): Ditto.
23784 (_mm512_floor_round_ps): Ditto.
23785 (_mm512_floor_round_pd): Ditto.
23786 (_mm512_ceil_round_ps): Ditto.
23787 (_mm512_ceil_round_pd): Ditto.
23788 (_mm512_mask_floor_round_ps): Ditto.
23789 (_mm512_mask_floor_round_pd): Ditto.
23790 (_mm512_mask_ceil_round_ps): Ditto.
23791 (_mm512_mask_ceil_round_pd): Ditto.
23792 (_mm512_maskz_floor_round_ps): Ditto.
23793 (_mm512_maskz_floor_round_pd): Ditto.
23794 (_mm512_maskz_ceil_round_ps): Ditto.
23795 (_mm512_maskz_ceil_round_pd): Ditto.
23796 (_mm512_expand_pd): Ditto.
23797 (_mm512_expand_ps): Ditto.
23798 * config/i386/i386.c (ix86_builtins): Remove
23799 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
23800 (bdesc_args): Ditto.
23801 * config/i386/predicates.md (const1256_operand): New.
23802 (const_1_to_2_operand): Ditto.
23803 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
23804 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
23805 (*avx512pf_gatherpf<mode>sf): Ditto.
23806 (avx512pf_gatherpf<mode>df): Ditto.
23807 (*avx512pf_gatherpf<mode>df_mask): Ditto.
23808 (*avx512pf_gatherpf<mode>df): Ditto.
23809 (avx512pf_scatterpf<mode>sf): Ditto.
23810 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
23811 (*avx512pf_scatterpf<mode>sf): Ditto.
23812 (avx512pf_scatterpf<mode>df): Ditto.
23813 (*avx512pf_scatterpf<mode>df_mask): Ditto.
23814 (*avx512pf_scatterpf<mode>df): Ditto.
23815 (avx512f_expand<mode>): Removed.
23816 (<shift_insn><mode>3<mask_name>): Change predicate type.
23818 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23820 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
23821 not at the end of datarefs vector use ordered_remove to avoid
23822 reordering datarefs vector.
23825 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
23826 mark local addressable non-static vars as GOVD_PRIVATE
23827 instead of GOVD_LOCAL.
23828 * omp-low.c (lower_omp_for): Move gimple_bind_vars
23829 and BLOCK_VARS of gimple_bind_block to new_stmt rather
23832 PR middle-end/60092
23833 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
23834 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
23835 assume_aligned or alloc_align attributes.
23836 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
23837 arguments. Handle also assume_aligned and alloc_align attributes.
23838 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
23839 calls to functions with assume_aligned or alloc_align attributes.
23840 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
23842 2014-02-08 Terry Guo <terry.guo@arm.com>
23844 * doc/invoke.texi: Document ARM -march=armv7e-m.
23846 2014-02-08 Jakub Jelinek <jakub@redhat.com>
23848 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
23849 flag on __cilkrts_rethrow builtin.
23852 * ipa-cp.c (determine_versionability): Fail at -O0
23853 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
23854 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
23857 2014-02-04 Jakub Jelinek <jakub@redhat.com>
23860 * tree-inline.c (copy_forbidden): Fail for
23861 __attribute__((optimize (0))) functions.
23863 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23865 * varpool.c: Include pointer-set.h.
23866 (varpool_remove_unreferenced_decls): Variables in other partitions
23867 will not be output; be however careful to not lose information
23868 about partitioning.
23870 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
23872 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
23873 lookup in the vtable constructor.
23875 2014-02-07 Jeff Law <law@redhat.com>
23878 * config/m68k/m68k.md (ashldi_extsi): Turn into a
23879 define_insn_and_split.
23881 * ipa-inline.c (inline_small_functions): Fix typos.
23883 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23885 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
23886 (s390_can_use_return_insn): Declare.
23887 * config/s390/s390.h (EPILOGUE_USES): Define.
23888 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
23890 (s390_chunkify_start): Handle return JUMP_LABELs.
23891 (s390_early_mach): Emit a main_pool instruction on the entry edge.
23892 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
23893 (s390_can_use_return_insn): New functions.
23894 (s390_fix_long_loop_prediction): Handle conditional returns.
23895 (TARGET_SET_UP_BY_PROLOGUE): Define.
23896 * config/s390/s390.md (ANY_RETURN): New code iterator.
23897 (*creturn, *csimple_return, return, simple_return): New patterns.
23899 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23901 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
23902 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
23903 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
23904 REG_CFA_RESTORE list when deciding not to restore a register.
23906 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23908 * config/s390/s390.c: Include tree-pass.h and context.h.
23909 (s390_early_mach): New function, split out from...
23910 (s390_emit_prologue): ...here.
23911 (pass_data_s390_early_mach): New pass structure.
23912 (pass_s390_early_mach): New class.
23913 (s390_option_override): Create and register early_mach pass.
23914 Move to end of file.
23916 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23918 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
23919 to match for the exit block.
23921 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23923 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
23924 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
23925 Reject misaligned operands.
23927 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23929 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
23931 2014-02-07 Richard Biener <rguenther@suse.de>
23933 PR middle-end/60092
23934 * gimple-low.c (lower_builtin_posix_memalign): New function.
23935 (lower_stmt): Call it to lower posix_memalign in a way
23936 to make alignment info accessible.
23938 2014-02-07 Jakub Jelinek <jakub@redhat.com>
23941 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
23942 __builtin_setjmp_receiver.
23944 2014-02-07 Richard Biener <rguenther@suse.de>
23946 PR middle-end/60092
23947 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
23948 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
23949 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23950 Handle BUILT_IN_POSIX_MEMALIGN.
23951 (find_func_clobbers): Likewise.
23952 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
23953 (call_may_clobber_ref_p_1): Likewise.
23955 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23958 * ipa-devirt.c (record_target_from_binfo): Remove overactive
23961 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23964 * lto-cgraph.c (lto_output_node): Use
23965 symtab_get_symbol_partitioning_class.
23966 (lto_output_varpool_node): likewise.
23967 (symtab_get_symbol_partitioning_class): Move here from
23968 lto/lto-partition.c
23969 * cgraph.h (symbol_partitioning_class): Likewise.
23970 (symtab_get_symbol_partitioning_class): Declare.
23972 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23974 * ggc.h (ggc_internal_cleared_alloc): New macro.
23975 * vec.h (vec_safe_copy): Handle memory stats.
23976 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
23977 * target-globals.c (save_target_globals): Likewise.
23979 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
23982 * expr.c (emit_move_resolve_push): Export; be bit more selective
23983 on when to clear alias set.
23984 * expr.h (emit_move_resolve_push): Declare.
23985 * function.h (struct function): Add tail_call_marked.
23986 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
23987 * config/i386/i386-protos.h (ix86_expand_push): Remove.
23988 * config/i386/i386.md (TImode move expander): De not call
23990 (FP push expanders): Preserve memory attributes.
23991 * config/i386/sse.md (push<mode>1): Remove.
23992 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
23993 (ix86_expand_push): Remove.
23994 * config/i386/mmx.md (push<mode>1): Remove.
23996 2014-02-06 Jakub Jelinek <jakub@redhat.com>
23998 PR rtl-optimization/60030
23999 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
24000 lopart with paradoxical subreg before shifting it up by hprec.
24002 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24004 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
24005 Remove extra newline at end of file.
24006 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
24007 (arm_issue_rate): Handle cortexa57.
24008 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
24009 (cortex-a57.cortex-a53): Likewise.
24011 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24014 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
24015 don't record in REG_FRAME_RELATED_EXPR registers not set in that
24017 (arm_expand_prologue): Adjust all callers.
24018 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
24019 info, registers also at the lowest numbered registers side. Use
24020 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
24024 * var-tracking.c (adjust_mems): Before adding a SET to
24025 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
24027 2014-02-06 Alan Modra <amodra@gmail.com>
24030 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
24031 change SDmode to DDmode when lra_in_progress.
24033 2014-02-06 Jakub Jelinek <jakub@redhat.com>
24035 PR middle-end/59150
24036 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
24037 free_data_ref on the dr first, and before goto again also set dr
24038 to the next dr. For simd_lane_access, free old datarefs[i] before
24039 overwriting it. For get_vectype_for_scalar_type failure, don't
24040 free_data_ref if simd_lane_access.
24042 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
24045 * tree.h (opts_for_fn): New inline function.
24046 (opt_for_fn): Define.
24047 * config/i386/i386.c (ix86_function_regparm): Use
24048 opt_for_fn (decl, optimize) instead of optimize.
24050 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
24052 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
24053 for SYMBOL_REF in large memory model.
24055 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24057 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
24058 and crypto support.
24059 (cortex-a57): Likewise.
24060 (cortex-a57.cortex-a53): Likewise.
24062 2014-02-06 Yury Gribov <y.gribov@samsung.com>
24063 Kugan Vivekanandarajah <kuganv@linaro.org>
24065 * config/arm/arm.c (arm_vector_alignment_reachable): Check
24067 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
24069 2014-02-06 Richard Biener <rguenther@suse.de>
24071 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
24072 set_loop_copy and initialize_original_copy_tables.
24074 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
24076 * config/aarch64/aarch64-simd.md
24077 (aarch64_ashr_simddi): Change QI to SI.
24079 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24080 Jakub Jelinek <jakub@redhat.com>
24082 PR middle-end/60013
24083 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
24086 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24088 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
24089 CODE_FOR_altivec_vpku[hw]um to
24090 CODE_FOR_altivec_vpku[hw]um_direct.
24091 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
24092 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
24093 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
24094 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
24096 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24098 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
24099 generation for -maltivec=be.
24100 (altivec_vsumsws): Simplify redundant test.
24102 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24104 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
24105 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
24106 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
24107 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
24108 gen_altivec_vpkuwum.
24109 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
24111 (altivec_vpks<VI_char>ss): Likewise.
24112 (altivec_vpks<VI_char>us): Likewise.
24113 (altivec_vpku<VI_char>us): Likewise.
24114 (altivec_vpku<VI_char>um): Likewise.
24115 (altivec_vpku<VI_char>um_direct): New (copy of
24116 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
24118 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
24119 target is little endian and -maltivec=be is not specified.
24120 (*altivec_vupkhs<VU_char>_direct): New (copy of
24121 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
24122 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
24123 target is little endian and -maltivec=be is not specified.
24124 (*altivec_vupkls<VU_char>_direct): New (copy of
24125 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
24126 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
24127 little endian and -maltivec=be is not specified.
24128 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
24129 little endian and -maltivec=be is not specified.
24131 2014-02-05 Richard Henderson <rth@redhat.com>
24134 * combine-stack-adj.c: Revert r206943.
24135 * sched-int.h (struct deps_desc): Add last_args_size.
24136 * sched-deps.c (init_deps): Initialize it.
24137 (sched_analyze_insn): Add OUTPUT dependencies between insns that
24138 contain REG_ARGS_SIZE notes.
24140 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
24142 * lto-cgraph.c (asm_nodes_output): Make global.
24143 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
24144 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
24145 (driver_handle_option): Handle OPT_fwpa.
24147 2014-02-05 Jakub Jelinek <jakub@redhat.com>
24150 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
24151 a comment typo and formatting issue. If odr_hash hasn't been
24152 created, return vNULL and set *completep to false.
24154 PR middle-end/57499
24155 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
24156 bb with no successors.
24158 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
24161 * doc/invoke.texi (-march): Clarify documentation for ARM.
24162 (-mtune): Likewise.
24165 2014-02-05 Richard Biener <rguenther@suse.de>
24167 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
24168 when not vectorizing because of too many alias checks.
24169 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
24170 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
24172 2014-02-05 Nick Clifton <nickc@redhat.com>
24174 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
24175 accept extended registers in any mode when compiling for the MN10300.
24177 2014-02-05 Yury Gribov <y.gribov@samsung.com>
24179 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
24180 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
24181 sanitization attributes.
24182 (can_inline_edge_p): Likewise.
24183 (sanitize_attrs_match_for_inline_p): New function.
24185 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24187 * ipa-prop.c (detect_type_change): Shor circuit testing of
24188 type changes on THIS pointer.
24190 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
24193 * config/pa/pa.c (legitimize_tls_address): Return original address
24194 if not passed a SYMBOL_REF rtx.
24195 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
24197 (pa_emit_move_sequence): Simplify TLS source operands.
24198 (pa_legitimate_constant_p): Reject all TLS constants.
24199 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
24200 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
24202 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24204 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
24205 groups when we know they are controlled by LTO.
24206 * varasm.c (default_binds_local_p_1): If object is in other partition,
24207 it will be resolved locally.
24209 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24211 * config/host-linux.c (linux_gt_pch_use_address): Don't
24212 use SSIZE_MAX because it is not always defined.
24214 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
24217 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
24218 threshold for pseudo splitting.
24219 (update_ebb_live_info): Process call argument hard registers and
24220 hard registers from insn definition too.
24221 (max_small_class_regs_num): New constant.
24222 (inherit_in_ebb): Update live hard regs through EBBs. Update
24223 reloads_num only for small register classes. Don't split for
24226 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
24229 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
24232 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
24234 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
24235 visibility is safe.
24237 2014-02-04 Marek Polacek <polacek@redhat.com>
24239 * gdbinit.in (pel): Define.
24241 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24243 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
24246 2014-02-04 Richard Biener <rguenther@suse.de>
24249 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
24250 in function context local.
24251 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
24252 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
24253 similar to LTO_imported_decl_ref.
24255 2014-02-04 Jakub Jelinek <jakub@redhat.com>
24257 PR tree-optimization/60002
24258 * cgraphclones.c (build_function_decl_skip_args): Clear
24259 DECL_LANG_SPECIFIC.
24261 PR tree-optimization/60023
24262 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
24263 false to gsi_replace.
24264 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
24265 has been in some EH region and vec_stmt could throw, add
24266 vec_stmt into the same EH region.
24267 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
24268 has no lhs, ignore it.
24269 * internal-fn.c (expand_MASK_LOAD): Likewise.
24272 * tree-inline.c (copy_forbidden): Fail for
24273 __attribute__((optimize (0))) functions.
24276 * omp-low.c (simd_clone_struct_copy): If from->inbranch
24277 is set, copy one less argument.
24278 (expand_simd_clones): Don't subtract clone_info->inbranch
24279 from simd_clone_struct_alloc argument.
24281 PR rtl-optimization/57915
24282 * recog.c (simplify_while_replacing): If all unary/binary/relational
24283 operation arguments are constant, attempt to simplify those.
24285 PR middle-end/59261
24286 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
24287 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
24289 2014-02-04 Richard Biener <rguenther@suse.de>
24291 PR tree-optimization/60012
24292 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
24293 TBAA disambiguation to all DDRs.
24295 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24298 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
24299 (LINK_SPEC): Use it for -shared, -shared-libgcc.
24301 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24304 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
24306 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24308 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
24309 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
24311 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24314 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
24315 to figure out targets of polymorphic calls with known decl.
24316 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24317 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
24318 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
24319 (get_polymorphic_call_info): ... here.
24320 (get_polymorphic_call_info_from_invariant): New function.
24322 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24324 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
24325 lookup via vtable pointer; check for type consistency
24326 and turn inconsitent facts into UNREACHABLE.
24327 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24328 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
24329 type inconsistent querries; return UNREACHABLE instead.
24331 2014-02-03 Richard Henderson <rth@twiddle.net>
24334 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
24335 already processed this node.
24336 (normalize_one_pred_1): Pass along mark_set.
24337 (normalize_one_pred): Create and destroy a pointer_set_t.
24338 (normalize_one_pred_chain): Likewise.
24340 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
24342 PR gcov-profile/58602
24343 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
24345 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
24348 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
24349 -fno-devirtualize; try to devirtualize by the knowledge of
24350 virtual table pointer given by aggregate propagation.
24351 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
24352 (ipa_print_node_jump_functions): Dump also offset that
24353 is relevant for polymorphic calls.
24354 (determine_known_aggregate_parts): Add arg_type parameter; use it
24355 instead of determining the type from pointer type.
24356 (ipa_compute_jump_functions_for_edge): Update call of
24357 determine_known_aggregate_parts.
24358 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
24359 (gimple_get_virt_method_for_binfo): ... here; simplify using
24360 vtable_pointer_value_to_vtable.
24361 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
24362 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
24363 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
24364 (vtable_pointer_value_to_vtable): Break out from ...; handle also
24366 (vtable_pointer_value_to_binfo): ... here.
24367 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
24369 2014-02-03 Teresa Johnson <tejohnson@google.com>
24371 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
24372 redef of outer loop index variable.
24374 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
24378 * doc/extend.texi (Function Attributes): Typo.
24380 2014-02-03 Cong Hou <congh@google.com>
24382 PR tree-optimization/60000
24383 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
24384 if the vectorized statement is a store. A store statement can only
24385 appear at the end of pattern statements.
24387 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24389 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
24390 (ix86_option_override_internal): Default long double to 64-bit for
24391 32-bit Bionic and to 128-bit for 64-bit Bionic.
24393 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
24394 TARGET_LONG_DOUBLE_128 is true.
24395 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
24397 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
24398 (mlong-double-64): Negate -mlong-double-128.
24399 (mlong-double-128): New option.
24401 * config/i386/i386-c.c (ix86_target_macros): Define
24402 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
24404 * doc/invoke.texi: Document -mlong-double-128.
24406 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
24408 PR rtl-optimization/60024
24409 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
24411 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
24413 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
24415 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24417 PR rtl-optimization/57662
24418 * sel-sched.c (code_motion_path_driver): Do not mark already not
24419 existing blocks in the visiting bitmap.
24421 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
24423 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
24424 on the insn being emitted.
24426 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
24427 Will Deacon <will.deacon@arm.com>
24429 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
24431 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24433 * config/arm/arm-tables.opt: Regenerate.
24435 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24437 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
24438 for vector types other than V16QImode.
24439 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
24440 define_expand, and call altivec_expand_vec_perm_le when producing
24441 code with little endian element order.
24442 (*altivec_vperm_<mode>_internal): New insn having previous
24443 behavior of altivec_vperm_<mode>.
24444 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
24445 altivec_expand_vec_perm_le when producing code with little endian
24447 (*altivec_vperm_<mode>_uns_internal): New insn having previous
24448 behavior of altivec_vperm_<mode>_uns.
24450 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24452 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
24453 (altivec_vsumsws): Add handling for -maltivec=be with a little
24455 (altivec_vsumsws_direct): New.
24456 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
24457 gen_altivec_vsumsws.
24459 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24461 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
24462 vtable_pointer_value_to_binfo): New functions.
24463 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
24464 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
24466 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
24468 * config/nios2/nios2.md (load_got_register): Initialize GOT
24469 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
24470 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
24472 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
24474 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
24475 preserverd by passthrough, do not propagate the type.
24477 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24479 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
24480 (mips_atomic_assign_expand_fenv): New function.
24481 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24483 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24485 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
24486 (__builtin_mips_set_fcsr): Likewise.
24487 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
24488 MIPS_USI_FTYPE_VOID.
24489 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
24490 (mips16_expand_set_fcsr): Likewise.
24491 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
24492 (mips16_set_fcsr_stub): Likewise.
24493 (mips16_get_fcsr_one_only_stub): New class.
24494 (mips16_set_fcsr_one_only_stub): Likewise.
24495 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
24496 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
24497 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
24498 (hard_float): New availability predicate.
24499 (mips_builtins): Add get_fcsr and set_fcsr.
24500 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
24501 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
24502 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
24503 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
24504 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
24507 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
24509 * config/mips/mips.c (mips_one_only_stub): New class.
24510 (mips_need_mips16_rdhwr_p): Replace with...
24511 (mips16_rdhwr_stub): ...this new variable.
24512 (mips16_stub_call_address): New function.
24513 (mips16_rdhwr_one_only_stub): New class.
24514 (mips_expand_thread_pointer): Use mips16_stub_call_address.
24515 (mips_output_mips16_rdhwr): Delete.
24516 (mips_finish_stub): New function.
24517 (mips_code_end): Use it to handle rdhwr stubs.
24519 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
24522 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
24523 when calculating size of integer atomic types.
24525 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
24527 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
24529 2014-02-01 Jakub Jelinek <jakub@redhat.com>
24531 PR tree-optimization/60003
24532 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
24533 * profile.c (branch_prob): Use gimple_call_builtin_p
24534 to check for BUILT_IN_SETJMP_RECEIVER.
24535 * tree-inline.c (copy_bb): Call notice_special_calls.
24537 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
24540 * lra-constraints.c (process_alt_operands): Update reload_sum only
24543 2014-01-31 Richard Henderson <rth@redhat.com>
24545 PR middle-end/60004
24546 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
24547 until after else_eh is processed.
24549 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24551 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
24552 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
24553 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
24554 in smmintrin.h, remove them.
24555 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
24556 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
24557 * config/i386/i386.md (ROUND_SAE): Fix value.
24558 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
24559 (const48_operand): New.
24560 * config/i386/subst.md (round), (round_expand): Use
24561 const_4_or_8_to_11_operand.
24562 (round_saeonly), (round_saeonly_expand): Use const48_operand.
24564 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
24566 * config/i386/constraints.md (Yk): Swap meaning with k.
24567 * config/i386/i386.md (movhi_internal): Change Yk to k.
24568 (movqi_internal): Ditto.
24569 (*k<logic><mode>): Ditto.
24572 (kandn<mode>): Ditto.
24573 (*<code>hi_1): Ditto.
24574 (*<code>qi_1): Ditto.
24575 (kxnor<mode>): Ditto.
24576 (kortestzhi): Ditto.
24577 (kortestchi): Ditto.
24579 (*one_cmplhi2_1): Ditto.
24580 (*one_cmplqi2_1): Ditto.
24581 * config/i386/sse.md (): Change k to Yk.
24582 (avx512f_load<mode>_mask): Ditto.
24583 (avx512f_blendm<mode>): Ditto.
24584 (avx512f_store<mode>_mask): Ditto.
24585 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
24586 (avx512f_storedqu<mode>_mask): Ditto.
24587 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
24589 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
24590 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
24591 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
24592 (avx512f_maskcmp<mode>3): Ditto.
24593 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
24594 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
24595 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
24596 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
24597 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
24598 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
24599 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
24600 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
24601 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
24602 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
24603 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
24604 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
24605 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
24606 (vec_extract_lo_<mode>_maskm): Ditto.
24607 (vec_extract_hi_<mode>_maskm): Ditto.
24608 (avx512f_vternlog<mode>_mask): Ditto.
24609 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
24610 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
24611 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
24612 (avx512f_<code>v8div16qi2_mask): Ditto.
24613 (avx512f_<code>v8div16qi2_mask_store): Ditto.
24614 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
24615 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
24616 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
24617 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
24618 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
24619 (*avx512pf_gatherpf<mode>df_mask): Ditto.
24620 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
24621 (*avx512pf_scatterpf<mode>df_mask): Ditto.
24622 (avx512cd_maskb_vec_dupv8di): Ditto.
24623 (avx512cd_maskw_vec_dupv16si): Ditto.
24624 (avx512f_vpermi2var<mode>3_maskz): Ditto.
24625 (avx512f_vpermi2var<mode>3_mask): Ditto.
24626 (avx512f_vpermi2var<mode>3_mask): Ditto.
24627 (avx512f_vpermt2var<mode>3_maskz): Ditto.
24628 (*avx512f_gathersi<mode>): Ditto.
24629 (*avx512f_gathersi<mode>_2): Ditto.
24630 (*avx512f_gatherdi<mode>): Ditto.
24631 (*avx512f_gatherdi<mode>_2): Ditto.
24632 (*avx512f_scattersi<mode>): Ditto.
24633 (*avx512f_scatterdi<mode>): Ditto.
24634 (avx512f_compress<mode>_mask): Ditto.
24635 (avx512f_compressstore<mode>_mask): Ditto.
24636 (avx512f_expand<mode>_mask): Ditto.
24637 * config/i386/subst.md (mask): Change k to Yk.
24638 (mask_scalar_merge): Ditto.
24641 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
24643 * doc/extend.texi (Vector Extensions): Document ?: in C++.
24645 2014-01-31 Richard Biener <rguenther@suse.de>
24647 PR middle-end/59990
24648 * builtins.c (fold_builtin_memory_op): Make sure to not
24649 use a floating-point mode or a boolean or enumeral type for
24650 the copy operation.
24652 2014-01-30 DJ Delorie <dj@redhat.com>
24654 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
24655 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
24656 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
24657 whenever main() has an epilogue.
24659 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24661 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
24662 unused variable "field".
24663 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
24664 (vsx_mergeh_<mode>): Likewise.
24665 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
24666 (altivec_vmrghh): Likewise.
24667 (altivec_vmrghw): Likewise.
24668 (altivec_vmrglb): Likewise.
24669 (altivec_vmrglh): Likewise.
24670 (altivec_vmrglw): Likewise.
24671 (altivec_vspltb): Add missing uses.
24672 (altivec_vsplth): Likewise.
24673 (altivec_vspltw): Likewise.
24674 (altivec_vspltsf): Likewise.
24676 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24679 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
24680 frame related instructions.
24682 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
24684 PR rtl-optimization/59959
24685 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
24686 any reload of register whose subreg is invalid.
24688 2014-01-30 Jakub Jelinek <jakub@redhat.com>
24690 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
24691 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
24692 Add missing return type - void.
24694 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24696 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
24697 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
24698 remove element index adjustment for endian (now handled in vsx.md
24700 (altivec_expand_vec_perm_const): Use
24701 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
24702 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
24703 (vsx_xxspltw_<mode>): Adjust element index for little endian.
24704 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
24705 define_expand and a new define_insn *altivec_vspltb_internal;
24706 adjust for -maltivec=be on a little endian target.
24707 (altivec_vspltb_direct): New.
24708 (altivec_vsplth): Divide into a define_expand and a new
24709 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
24710 little endian target.
24711 (altivec_vsplth_direct): New.
24712 (altivec_vspltw): Divide into a define_expand and a new
24713 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
24714 little endian target.
24715 (altivec_vspltw_direct): New.
24716 (altivec_vspltsf): Divide into a define_expand and a new
24717 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
24718 a little endian target.
24720 2014-01-30 Richard Biener <rguenther@suse.de>
24722 PR tree-optimization/59993
24723 * tree-ssa-forwprop.c (associate_pointerplus): Check we
24724 can propagate form the earlier stmt and avoid the transform
24725 when the intermediate result is needed.
24727 2014-01-30 Alangi Derick <alangiderick@gmail.com>
24729 * README.Portability: Fix typo.
24731 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
24733 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
24734 comparison_operator with ordered_comparison_operator.
24736 2014-01-30 Nick Clifton <nickc@redhat.com>
24738 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
24739 Rename to mn10300_store_multiple_regs.
24740 * config/mn10300/mn10300.c: Likewise.
24741 * config/mn10300/mn10300.md (store_movm): Fix typo: call
24742 store_multiple_regs.
24743 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
24744 Call mn10300_store_multiple_regs.
24746 2014-01-30 Nick Clifton <nickc@redhat.com>
24747 DJ Delorie <dj@redhat.com>
24749 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
24750 %fp 2 to keep registers after it properly word-aligned.
24751 (rl78_alloc_physical_registers_umul): Handle the case where both
24752 input operands are the same.
24754 2014-01-30 Richard Biener <rguenther@suse.de>
24756 PR tree-optimization/59903
24757 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
24760 2014-01-30 Jason Merrill <jason@redhat.com>
24763 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
24766 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
24768 2014-01-30 Richard Biener <rguenther@suse.de>
24770 PR tree-optimization/59951
24771 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
24773 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
24776 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
24777 SFmode to DFmode case.
24779 2014-01-29 DJ Delorie <dj@redhat.com>
24781 * config/msp430/msp430.opt (-minrt): New.
24782 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
24784 (ENDFILE_SPEC): Likewise.
24786 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
24788 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
24789 (estimate_function_body_sizes): Use it.
24791 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
24794 * dwarf2out.c (is_cxx_auto): New.
24795 (is_base_type): Use it.
24796 (gen_type_die_with_usage): Likewise.
24798 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24800 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
24801 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
24802 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
24803 -maltivec=be with LE targets.
24804 (vsx_mergeh_<mode>): Likewise.
24805 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
24806 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
24807 (altivec_vmrghb): Replace with define_expand and new
24808 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
24809 (altivec_vmrghb_direct): New define_insn.
24810 (altivec_vmrghh): Replace with define_expand and new
24811 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
24812 (altivec_vmrghh_direct): New define_insn.
24813 (altivec_vmrghw): Replace with define_expand and new
24814 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
24815 (altivec_vmrghw_direct): New define_insn.
24816 (*altivec_vmrghsf): Adjust for endianness.
24817 (altivec_vmrglb): Replace with define_expand and new
24818 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
24819 (altivec_vmrglb_direct): New define_insn.
24820 (altivec_vmrglh): Replace with define_expand and new
24821 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
24822 (altivec_vmrglh_direct): New define_insn.
24823 (altivec_vmrglw): Replace with define_expand and new
24824 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
24825 (altivec_vmrglw_direct): New define_insn.
24826 (*altivec_vmrglsf): Adjust for endianness.
24827 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24828 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24829 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
24830 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
24831 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24832 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24833 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
24834 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
24836 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
24838 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
24839 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
24842 2014-01-29 Richard Biener <rguenther@suse.de>
24844 PR tree-optimization/58742
24845 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
24846 associate_pointerplus_align.
24847 (associate_pointerplus_diff): New function.
24848 (associate_pointerplus): Likewise. Call associate_pointerplus_align
24849 and associate_pointerplus_diff.
24851 2014-01-29 Richard Biener <rguenther@suse.de>
24853 * lto-streamer.h (LTO_major_version): Bump to 3.
24854 (LTO_minor_version): Reset to 0.
24856 2014-01-29 Renlin Li <Renlin.Li@arm.com>
24858 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
24859 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
24860 (arm_file_start): Generate correct asm header for armv7ve.
24861 * config/arm/bpabi.h: Add multilib support for armv7ve.
24862 * config/arm/driver-arm.c: Change the architectures of cortex-a7
24863 and cortex-a15 to armv7ve.
24864 * config/arm/t-aprofile: Add multilib support for armv7ve.
24865 * doc/invoke.texi: Document -march=armv7ve.
24867 2014-01-29 Richard Biener <rguenther@suse.de>
24869 PR tree-optimization/58742
24870 * tree-ssa-forwprop.c (associate_plusminus): Return true
24871 if we changed sth, defer EH cleanup to ...
24872 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
24873 (simplify_mult): New function.
24875 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24877 PR middle-end/59917
24878 PR tree-optimization/59920
24879 * tree.c (build_common_builtin_nodes): Remove
24880 __builtin_setjmp_dispatcher initialization.
24881 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
24882 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
24883 instead of gsi_after_labels + manually skipping debug stmts.
24884 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
24885 ignore bbs with IFN_ABNORMAL_DISPATCHER.
24886 * tree-inline.c (copy_edges_for_bb): Remove
24887 can_make_abnormal_goto argument, instead add abnormal_goto_dest
24888 argument. Ignore computed_goto_p stmts. Don't call
24889 make_abnormal_goto_edges. If a call might need abnormal edges
24890 for non-local gotos, see if it already has an edge to
24891 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
24892 with true argument, don't do anything then, otherwise add
24893 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
24894 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
24896 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
24897 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
24898 (lower_stmt): Don't set data->calls_builtin_setjmp.
24899 (lower_builtin_setjmp): Adjust comment.
24900 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
24901 * tree-cfg.c (found_computed_goto): Remove.
24902 (factor_computed_gotos): Remove.
24903 (make_goto_expr_edges): Return bool, true for computed gotos.
24904 Don't call make_abnormal_goto_edges.
24905 (build_gimple_cfg): Don't set found_computed_goto, don't call
24906 factor_computed_gotos.
24907 (computed_goto_p): No longer static.
24908 (make_blocks): Don't set found_computed_goto.
24909 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
24910 (make_edges): If make_goto_expr_edges returns true, push bb
24911 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
24912 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
24913 vector. Record mapping between bbs and OpenMP regions if there
24914 are any, adjust make_gimple_omp_edges caller. Call
24915 handle_abnormal_edges.
24916 (make_abnormal_goto_edges): Remove.
24917 * tree-cfg.h (make_abnormal_goto_edges): Remove.
24918 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
24919 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
24920 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
24921 * internal-fn.def (ABNORMAL_DISPATCHER): New.
24922 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
24923 filling *region also set *region_idx to (*region)->entry->index.
24926 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
24927 For REGs set ORIGINAL_REGNO.
24929 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
24931 * doc/md.texi: Mention that a target shouldn't implement
24932 vec_widen_(s|u)mul_even/odd pair if it is less efficient
24935 2014-01-29 Jakub Jelinek <jakub@redhat.com>
24937 PR tree-optimization/59594
24938 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
24939 a copy of the datarefs vector rather than the vector itself.
24941 2014-01-28 Jason Merrill <jason@redhat.com>
24944 * dwarf2out.c (auto_die): New static.
24945 (gen_type_die_with_usage): Handle C++1y 'auto'.
24946 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
24949 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
24952 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
24953 (SPEC_X32): Likewise.
24954 (SPEC_64): Likewise.
24955 * config/i386/i386.c (ix86_option_override_internal): Turn off
24956 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
24958 (x86_file_start): Output .code16gcc for TARGET_16BIT.
24959 * config/i386/i386.h (TARGET_16BIT): New macro.
24960 (TARGET_16BIT_P): Likewise.
24961 * config/i386/i386.opt: Add m16.
24962 * doc/invoke.texi: Document -m16.
24964 2014-01-28 Jakub Jelinek <jakub@redhat.com>
24966 PR preprocessor/59935
24967 * input.c (location_get_source_line): Bail out on when line number
24968 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
24970 2014-01-28 Richard Biener <rguenther@suse.de>
24972 PR tree-optimization/58742
24973 * tree-ssa-forwprop.c (associate_plusminus): Handle
24974 pointer subtraction of the form (T)(P + A) - (T)P.
24976 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24978 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
24981 2014-01-28 Richard Biener <rguenther@suse.de>
24984 2014-01-28 Richard Biener <rguenther@suse.de>
24986 PR rtl-optimization/45364
24987 PR rtl-optimization/59890
24988 * var-tracking.c (local_get_addr_clear_given_value): Handle
24989 already cleared slot.
24990 (val_reset): Handle not allocated local_get_addr_cache.
24991 (vt_find_locations): Use post-order on the inverted CFG.
24993 2014-01-28 Richard Biener <rguenther@suse.de>
24995 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
24997 2014-01-28 Richard Biener <rguenther@suse.de>
24999 PR rtl-optimization/45364
25000 PR rtl-optimization/59890
25001 * var-tracking.c (local_get_addr_clear_given_value): Handle
25002 already cleared slot.
25003 (val_reset): Handle not allocated local_get_addr_cache.
25004 (vt_find_locations): Use post-order on the inverted CFG.
25006 2014-01-28 Alan Modra <amodra@gmail.com>
25008 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
25009 * configure.ac <recursive call for build != host>: Define
25010 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
25011 and LD_FOR_BUILD too.
25012 * configure: Regenerate.
25014 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
25016 * config/i386/i386.c (get_builtin_code_for_version): Separate
25017 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
25018 Broadwell from Haswell.
25020 2014-01-27 Steve Ellcey <sellcey@mips.com>
25022 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
25023 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
25024 * config/mips/mips.c (mips_option_override): Change setting
25026 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
25027 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
25028 Change from Mask to Var.
25030 2014-01-27 Jeff Law <law@redhat.com>
25032 * ipa-inline.c (inline_small_functions): Fix typo.
25034 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
25036 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
25037 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
25038 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
25039 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
25040 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
25041 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
25042 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
25043 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
25044 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
25045 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
25046 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
25047 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
25048 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
25049 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
25050 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
25051 (_mm512_storeu_epi64): Ditto.
25052 (_mm512_cmpge_epi32_mask): Ditto.
25053 (_mm512_cmpge_epu32_mask): Ditto.
25054 (_mm512_cmpge_epi64_mask): Ditto.
25055 (_mm512_cmpge_epu64_mask): Ditto.
25056 (_mm512_cmple_epi32_mask): Ditto.
25057 (_mm512_cmple_epu32_mask): Ditto.
25058 (_mm512_cmple_epi64_mask): Ditto.
25059 (_mm512_cmple_epu64_mask): Ditto.
25060 (_mm512_cmplt_epi32_mask): Ditto.
25061 (_mm512_cmplt_epu32_mask): Ditto.
25062 (_mm512_cmplt_epi64_mask): Ditto.
25063 (_mm512_cmplt_epu64_mask): Ditto.
25064 (_mm512_cmpneq_epi32_mask): Ditto.
25065 (_mm512_cmpneq_epu32_mask): Ditto.
25066 (_mm512_cmpneq_epi64_mask): Ditto.
25067 (_mm512_cmpneq_epu64_mask): Ditto.
25068 (_mm512_expand_pd): Ditto.
25069 (_mm512_expand_ps): Ditto.
25070 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
25071 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
25072 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
25073 * config/i386/i386.c (ix86_builtins): Add
25074 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
25075 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
25076 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
25077 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
25078 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
25079 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
25080 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
25081 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
25082 IX86_BUILTIN_PMOVUSQW512_MEM.
25083 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
25084 __builtin_ia32_pmovsqd512mem_mask,
25085 __builtin_ia32_pmovqd512mem_mask,
25086 __builtin_ia32_pmovusqw512mem_mask,
25087 __builtin_ia32_pmovsqw512mem_mask,
25088 __builtin_ia32_pmovqw512mem_mask,
25089 __builtin_ia32_pmovusdw512mem_mask,
25090 __builtin_ia32_pmovsdw512mem_mask,
25091 __builtin_ia32_pmovdw512mem_mask,
25092 __builtin_ia32_pmovqb512mem_mask,
25093 __builtin_ia32_pmovusqb512mem_mask,
25094 __builtin_ia32_pmovsqb512mem_mask,
25095 __builtin_ia32_pmovusdb512mem_mask,
25096 __builtin_ia32_pmovsdb512mem_mask,
25097 __builtin_ia32_pmovdb512mem_mask.
25098 (bdesc_args): Add __builtin_ia32_expanddf512,
25099 __builtin_ia32_expandsf512.
25100 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
25101 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
25102 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
25103 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
25104 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
25105 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
25106 (avx512f_<code>v8div16qi2_mask_store): This.
25107 (avx512f_expand<mode>): New.
25109 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
25111 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
25113 (_mm512_mask_prefetch_i64gather_pd): Ditto.
25114 (_mm512_prefetch_i32scatter_pd): Ditto.
25115 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
25116 (_mm512_prefetch_i64scatter_pd): Ditto.
25117 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
25118 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
25119 (_mm512_mask_prefetch_i64gather_ps): Ditto.
25120 (_mm512_prefetch_i32scatter_ps): Ditto.
25121 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
25122 (_mm512_prefetch_i64scatter_ps): Ditto.
25123 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
25124 * config/i386/i386-builtin-types.def: Define
25125 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
25126 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
25127 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
25128 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
25129 IX86_BUILTIN_SCATTERPFQPD.
25130 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
25131 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
25132 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
25133 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
25134 __builtin_ia32_scatterpfqps.
25135 (ix86_expand_builtin): Expand new built-ins.
25136 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
25137 fix memory access data type.
25138 (*avx512pf_gatherpf<mode>_mask): Ditto.
25139 (*avx512pf_gatherpf<mode>): Ditto.
25140 (avx512pf_scatterpf<mode>): Ditto.
25141 (*avx512pf_scatterpf<mode>_mask): Ditto.
25142 (*avx512pf_scatterpf<mode>): Ditto.
25143 (GATHER_SCATTER_SF_MEM_MODE): New.
25144 (avx512pf_gatherpf<mode>df): Ditto.
25145 (*avx512pf_gatherpf<mode>df_mask): Ditto.
25146 (*avx512pf_scatterpf<mode>df): Ditto.
25148 2014-01-27 Jakub Jelinek <jakub@redhat.com>
25151 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
25152 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
25155 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25157 * common/config/arm/arm-common.c
25158 (arm_rewrite_mcpu): Handle multiple names.
25160 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25162 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
25164 * gimple-builder.h (create_gimple_tmp): Delete.
25166 2014-01-27 Christian Bruel <christian.bruel@st.com>
25168 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
25171 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
25173 * config/pa/pa.md (call): Generate indirect long calls to non-local
25174 functions when outputing 32-bit code.
25175 (call_value): Likewise except for special call to buggy powf function.
25177 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
25178 portable runtime and PIC indirect calls.
25179 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
25180 and PIC call sequences. Use ldo instead of blr to set return register
25181 in PIC call sequence.
25183 2014-01-25 Walter Lee <walt@tilera.com>
25185 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
25186 avoid clobbering a live register.
25188 2014-01-25 Walter Lee <walt@tilera.com>
25190 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
25191 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
25192 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
25193 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
25195 2014-01-25 Walter Lee <walt@tilera.com>
25197 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
25198 arguments on even registers.
25199 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
25201 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
25202 (BIGGEST_ALIGNMENT): Ditto.
25203 (BIGGEST_FIELD_ALIGNMENT): Ditto.
25205 2014-01-25 Walter Lee <walt@tilera.com>
25207 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
25208 insns before bundling.
25209 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
25211 2014-01-25 Walter Lee <walt@tilera.com>
25213 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
25214 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
25215 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
25217 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25219 * config/mips/constraints.md (kl): Delete.
25220 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
25221 define expands, using...
25222 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
25223 instructions for MIPS16.
25224 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
25225 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
25227 2014-01-25 Walter Lee <walt@tilera.com>
25229 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
25233 2014-01-25 Walter Lee <walt@tilera.com>
25235 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
25236 (TARGET_EXPAND_TO_RTL_HOOK): Define.
25238 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
25240 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
25243 2014-01-25 Jakub Jelinek <jakub@redhat.com>
25245 * print-rtl.c (in_call_function_usage): New var.
25246 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
25247 EXPR_LIST mode as mode and not as reg note name.
25249 PR middle-end/59561
25250 * cfgloopmanip.c (copy_loop_info): If
25251 loop->warned_aggressive_loop_optimizations, make sure
25252 the flag is set in target loop too.
25254 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
25256 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
25258 * builtins.def: Likewise.
25259 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
25260 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
25261 * ira.c (ira_setup_eliminable_regset): Likewise.
25262 * omp-low.c (gate_expand_omp): Likewise.
25263 (execute_lower_omp): Likewise.
25264 (diagnose_sb_0): Likewise.
25265 (gate_diagnose_omp_blocks): Likewise.
25266 (simd_clone_clauses_extract): Likewise.
25269 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25271 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
25272 correction for little endian...
25273 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
25276 2014-01-24 Jeff Law <law@redhat.com>
25278 PR tree-optimization/59919
25279 * tree-vrp.c (find_assert_locations_1): Do not register asserts
25280 for non-returning calls.
25282 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
25284 * common/config/aarch64/aarch64-common.c
25285 (aarch64_rewrite_mcpu): Handle multiple names.
25286 * config/aarch64/aarch64.h
25287 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
25289 2014-01-24 Dodji Seketeli <dodji@redhat.com>
25291 * input.c (add_file_to_cache_tab): Handle the case where fopen
25294 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
25297 * config/i386/i386.md (pushsf splitter): Get stack adjustment
25298 from push operand if code of push isn't PRE_DEC.
25300 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
25303 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
25304 -mquad-memory-atomic. Update -mquad-memory documentation to say
25305 it is only used for non-atomic loads/stores.
25307 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
25308 -mquad-memory or -mquad-memory-atomic switches.
25310 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
25311 -mquad-memory-atomic to ISA 2.07 support.
25313 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
25314 to separate support of normal quad word memory operations (ldq, stq)
25315 from the atomic quad word memory operations.
25317 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25318 support to separate non-atomic quad word operations from atomic
25319 quad word operations. Disable non-atomic quad word operations in
25320 little endian mode so that we don't have to swap words after the
25321 load and before the store.
25322 (quad_load_store_p): Add comment about atomic quad word support.
25323 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
25324 options printed with -mdebug=reg.
25326 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
25327 -mquad-memory-atomic as the test for whether we have quad word
25328 atomic instructions.
25329 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
25330 or -mp8-vector are used, allow byte/half-word atomic operations.
25332 * config/rs6000/sync.md (load_lockedti): Insure that the address
25333 is a proper indexed or indirect address for the lqarx instruction.
25334 On little endian systems, swap the hi/lo registers after the lqarx
25336 (load_lockedpti): Use indexed_or_indirect_operand predicate to
25337 insure the address is valid for the lqarx instruction.
25338 (store_conditionalti): Insure that the address is a proper indexed
25339 or indirect address for the stqcrx. instruction. On little endian
25340 systems, swap the hi/lo registers before doing the stqcrx.
25342 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
25343 insure the address is valid for the stqcrx. instruction.
25345 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25346 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
25347 type of quad memory support is available.
25349 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
25351 PR regression/59915
25352 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
25353 there is a danger of looping.
25355 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
25357 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
25358 force flag_ira_loop_pressure if set via command line.
25360 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25362 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
25363 (ashr_simd): New builtin handling DI mode.
25364 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
25365 (aarch64_sshr_simddi): New match pattern.
25366 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
25367 (vshrd_n_s64): Likewise.
25368 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
25370 2014-01-23 Nick Clifton <nickc@redhat.com>
25372 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
25373 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
25374 favour of mcu specific scripts.
25375 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
25378 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25379 Alex Velenko <Alex.Velenko@arm.com>
25381 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
25382 (vaddv_s16): Likewise.
25383 (vaddv_s32): Likewise.
25384 (vaddv_u8): Likewise.
25385 (vaddv_u16): Likewise.
25386 (vaddv_u32): Likewise.
25387 (vaddvq_s8): Likewise.
25388 (vaddvq_s16): Likewise.
25389 (vaddvq_s32): Likewise.
25390 (vaddvq_s64): Likewise.
25391 (vaddvq_u8): Likewise.
25392 (vaddvq_u16): Likewise.
25393 (vaddvq_u32): Likewise.
25394 (vaddvq_u64): Likewise.
25395 (vaddv_f32): Likewise.
25396 (vaddvq_f32): Likewise.
25397 (vaddvq_f64): Likewise.
25398 (vmaxv_f32): Likewise.
25399 (vmaxv_s8): Likewise.
25400 (vmaxv_s16): Likewise.
25401 (vmaxv_s32): Likewise.
25402 (vmaxv_u8): Likewise.
25403 (vmaxv_u16): Likewise.
25404 (vmaxv_u32): Likewise.
25405 (vmaxvq_f32): Likewise.
25406 (vmaxvq_f64): Likewise.
25407 (vmaxvq_s8): Likewise.
25408 (vmaxvq_s16): Likewise.
25409 (vmaxvq_s32): Likewise.
25410 (vmaxvq_u8): Likewise.
25411 (vmaxvq_u16): Likewise.
25412 (vmaxvq_u32): Likewise.
25413 (vmaxnmv_f32): Likewise.
25414 (vmaxnmvq_f32): Likewise.
25415 (vmaxnmvq_f64): Likewise.
25416 (vminv_f32): Likewise.
25417 (vminv_s8): Likewise.
25418 (vminv_s16): Likewise.
25419 (vminv_s32): Likewise.
25420 (vminv_u8): Likewise.
25421 (vminv_u16): Likewise.
25422 (vminv_u32): Likewise.
25423 (vminvq_f32): Likewise.
25424 (vminvq_f64): Likewise.
25425 (vminvq_s8): Likewise.
25426 (vminvq_s16): Likewise.
25427 (vminvq_s32): Likewise.
25428 (vminvq_u8): Likewise.
25429 (vminvq_u16): Likewise.
25430 (vminvq_u32): Likewise.
25431 (vminnmv_f32): Likewise.
25432 (vminnmvq_f32): Likewise.
25433 (vminnmvq_f64): Likewise.
25435 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
25437 * config/aarch64/aarch64-simd.md
25438 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
25439 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
25440 (*aarch64_mul3_elt<mode>): Likewise.
25441 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
25442 (*aarch64_mul3_elt_to_64v2df): Likewise.
25443 (*aarch64_mla_elt<mode>): Likewise.
25444 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
25445 (*aarch64_mls_elt<mode>): Likewise.
25446 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
25447 (*aarch64_fma4_elt<mode>): Likewise.
25448 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
25449 (*aarch64_fma4_elt_to_64v2df): Likewise.
25450 (*aarch64_fnma4_elt<mode>): Likewise.
25451 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
25452 (*aarch64_fnma4_elt_to_64v2df): Likewise.
25453 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
25454 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
25455 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25456 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
25457 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
25458 (aarch64_sqdmull_lane<mode>_internal): Likewise.
25459 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
25461 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
25463 * config/aarch64/aarch64-simd.md
25464 (aarch64_be_checked_get_lane<mode>): New define_expand.
25465 * config/aarch64/aarch64-simd-builtins.def
25466 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
25467 New builtin definition.
25468 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
25469 Use new safe be builtin.
25471 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
25473 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
25475 (aarch64_be_st1<mode>): Likewise.
25476 (aarch_ld1<VALL:mode>): Define_expand modified.
25477 (aarch_st1<VALL:mode>): Likewise.
25478 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
25479 (UNSPEC_ST1): Likewise.
25481 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
25483 * config/microblaze/microblaze.md: Add trap insn and attribute
25485 2014-01-23 Dodji Seketeli <dodji@redhat.com>
25487 PR preprocessor/58580
25488 * input.h (location_get_source_line): Take an additional line_size
25490 (void diagnostics_file_cache_fini): Declare new function.
25491 * input.c (struct fcache): New type.
25492 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
25493 New static constants.
25494 (diagnostic_file_cache_init, total_lines_num)
25495 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
25496 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
25497 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
25498 (get_next_line, read_next_line, goto_next_line, read_line_num):
25499 New static function definitions.
25500 (diagnostic_file_cache_fini): New function.
25501 (location_get_source_line): Take an additional output line_len
25502 parameter. Re-write using lookup_or_add_file_to_cache_tab and
25504 * diagnostic.c (diagnostic_finish): Call
25505 diagnostic_file_cache_fini.
25506 (adjust_line): Take an additional input parameter for the length
25507 of the line, rather than calculating it with strlen.
25508 (diagnostic_show_locus): Adjust the use of
25509 location_get_source_line and adjust_line with respect to their new
25510 signature. While displaying a line now, do not stop at the first
25511 null byte. Rather, display the zero byte as a space and keep
25512 going until we reach the size of the line.
25513 * Makefile.in: Add vec.o to OBJS-libcommon
25515 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25516 Ilya Tocar <ilya.tocar@intel.com>
25518 * config/i386/avx512fintrin.h (_mm512_kmov): New.
25519 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
25520 (__builtin_ia32_kmov16): Ditto.
25521 * config/i386/i386.md (UNSPEC_KMOV): New.
25524 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
25526 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
25527 (_mm512_storeu_si512): Ditto.
25529 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
25532 * rtl.h (get_referenced_operands): Declare.
25533 * recog.c (get_referenced_operands): New function.
25534 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
25535 operands have been referenced when recording LO_SUM references.
25537 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
25539 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
25541 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25543 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
25544 Enable for generic and recent AMD targets.
25546 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
25548 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
25549 ARG_SIZE note when adjustment was eliminated.
25551 2014-01-22 Jeff Law <law@redhat.com>
25553 PR tree-optimization/59597
25554 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
25555 in file. Accept new argument REGISTERING and use it to modify
25556 dump output appropriately.
25557 (register_jump_thread): Corresponding changes.
25558 (mark_threaded_blocks): Reinstate code to cancel unprofitable
25559 thread paths involving joiner blocks. Add code to dump cancelled
25560 jump threading paths.
25562 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
25564 PR rtl-optimization/59477
25565 * lra-constraints.c (inherit_in_ebb): Process call for living hard
25566 regs. Update reloads_num and potential_reload_hard_regs for all insns.
25568 2014-01-22 Tom Tromey <tromey@redhat.com>
25570 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
25572 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
25574 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25576 PR rtl-optimization/59896
25577 * lra-constraints.c (process_alt_operands): Check unused note for
25578 matched operands of insn with no output reloads.
25580 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
25582 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
25583 (mips_move_from_gpr_cost): Likewise.
25585 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
25587 PR rtl-optimization/59858
25588 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
25589 ira_class_hard_regs_num.
25590 (process_alt_operands): Increase reject for dying matched operand.
25592 2014-01-21 Jakub Jelinek <jakub@redhat.com>
25595 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
25596 smaller than size, perform several stores or loads and stores
25597 at dst + count - size to store or copy all of size bytes, rather
25598 than just last modesize bytes.
25600 2014-01-20 DJ Delorie <dj@redhat.com>
25602 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
25603 that CLOBBERs are REGs before propogating their values.
25605 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
25607 PR middle-end/59789
25608 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
25609 (cgraph_inline_failed_type): New function.
25610 * cgraph.h (DEFCIFCODE): Add type.
25611 (cgraph_inline_failed_type_t): New enum.
25612 (cgraph_inline_failed_type): New prototype.
25613 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
25614 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
25615 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
25616 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
25617 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
25618 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
25619 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
25620 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
25621 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
25622 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
25623 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
25624 OPTIMIZATION_MISMATCH.
25625 * tree-inline.c (expand_call_inline): Emit errors during
25626 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
25628 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25631 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
25632 mode attribute in insn output.
25634 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
25636 * output.h (output_constant): Delete.
25637 * varasm.c (output_constant): Make private.
25639 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
25641 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
25643 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25645 PR middle-end/59860
25646 * tree.h (fold_builtin_strcat): New prototype.
25647 * builtins.c (fold_builtin_strcat): No longer static. Add len
25648 argument, if non-NULL, don't call c_strlen. Optimize
25649 directly into __builtin_memcpy instead of __builtin_strcpy.
25650 (fold_builtin_2): Adjust fold_builtin_strcat caller.
25651 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
25653 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
25655 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25656 for SImode_address_operand operands, having only a REG argument.
25658 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
25660 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
25661 loader name using mbig-endian.
25662 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
25664 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25666 * doc/invoke.texi (-march): Clarify documentation for AArch64.
25667 (-mtune): Likewise.
25670 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
25672 * config/aarch64/aarch64-protos.h
25673 (aarch64_cannot_change_mode_class_ptr): Declare.
25674 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
25675 aarch64_cannot_change_mode_class_ptr): New.
25676 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
25677 backend hook aarch64_cannot_change_mode_class.
25679 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
25681 * common/config/aarch64/aarch64-common.c
25682 (aarch64_handle_option): Don't handle any option order logic here.
25683 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
25684 selected_cpu, warn on architecture version mismatch.
25685 (aarch64_override_options): Fix parsing order for option strings.
25687 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25688 Iain Sandoe <iain@codesourcery.com>
25691 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
25692 warning. Amend comment to reflect current functionality.
25694 2014-01-20 Richard Biener <rguenther@suse.de>
25696 PR middle-end/59860
25697 * builtins.c (fold_builtin_strcat): Remove case better handled
25698 by tree-ssa-strlen.c.
25700 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
25702 * config/aarch64/aarch64.opt
25703 (mcpu, march, mtune): Make case-insensitive.
25705 2014-01-20 Jakub Jelinek <jakub@redhat.com>
25708 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
25709 if operands[1] is a REG or ZERO_EXTEND of a REG.
25711 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
25713 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
25715 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
25717 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
25718 long non-pic millicode calls.
25720 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
25722 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
25724 2014-01-19 Kito Cheng <kito@0xlab.org>
25726 * builtins.c (expand_movstr): Check movstr expand done or fail.
25728 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25729 H.J. Lu <hongjiu.lu@intel.com>
25732 * config/i386/i386.md (*lea<mode>): Zero-extend return register
25733 to DImode for zero-extended addresses.
25735 2014-01-19 Jakub Jelinek <jakub@redhat.com>
25737 PR rtl-optimization/57763
25738 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
25739 on the new indirect jump_insn and increment LABEL_NUSES (label).
25741 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
25745 * config.gcc (x86_archs): New variable.
25746 (x86_64_archs): Likewise.
25747 (x86_cpus): Likewise.
25748 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
25749 --with-arch/--with-cpu= options.
25750 Support --with-arch=/--with-cpu={nehalem,westmere,
25751 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
25753 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25755 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
25756 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
25758 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
25760 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
25762 2014-01-18 Jakub Jelinek <jakub@redhat.com>
25765 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
25766 clear cpp_get_options (parse_in)->warn_unused_macros for
25767 ix86_target_macros_internal with cpp_define.
25769 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
25771 * jump.c (delete_related_insns): Keep (use (insn))s.
25772 * reorg.c (redundant_insn): Check for barriers too.
25774 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25776 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
25778 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
25780 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
25781 call to $$dyncall when TARGET_LONG_CALLS is true.
25783 2014-01-17 Jeff Law <law@redhat.com>
25785 * ree.c (combine_set_extension): Temporarily disable test for
25786 changing number of hard registers.
25788 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25790 PR middle-end/58125
25791 * ipa-inline-analysis.c (inline_free_summary):
25792 Do not free summary of aliases.
25794 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25796 PR middle-end/59706
25797 * gimplify.c (gimplify_expr): Use create_tmp_var
25798 instead of create_tmp_var_raw. If cond doesn't have
25799 integral type, don't add the IFN_ANNOTATE builtin at all.
25801 2014-01-17 Martin Jambor <mjambor@suse.cz>
25804 * ipa-cp.c (prev_edge_clone): New variable.
25805 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
25806 Also resize prev_edge_clone vector.
25807 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
25808 (ipcp_edge_removal_hook): New function.
25809 (ipcp_driver): Register ipcp_edge_removal_hook.
25811 2014-01-17 Andrew Pinski <apinski@cavium.com>
25812 Steve Ellcey <sellcey@mips.com>
25815 * config/mips/mips.c (mips_print_operand): Check operand mode instead
25818 2014-01-17 Jeff Law <law@redhat.com>
25820 PR middle-end/57904
25821 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
25822 so that pass_ccp runs first.
25824 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25826 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
25827 (ix86_adjust_cost): Use !TARGET_XXX.
25828 (do_reorder_for_imul): Likewise.
25829 (swap_top_of_ready_list): Likewise.
25830 (ix86_sched_reorder): Likewise.
25832 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
25834 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25835 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
25836 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
25837 (intel_memset): New. Duplicate slm_memset.
25838 (intel_cost): New. Duplicate slm_cost.
25839 (m_INTEL): New macro.
25840 (processor_target_table): Add "intel".
25841 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
25842 with PROCESSOR_INTEL for "intel".
25843 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
25844 PROCESSOR_SILVERMONT.
25845 (ix86_issue_rate): Likewise.
25846 (ix86_adjust_cost): Likewise.
25847 (ia32_multipass_dfa_lookahead): Likewise.
25848 (swap_top_of_ready_list): Likewise.
25849 (ix86_sched_reorder): Likewise.
25850 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
25851 instead of TARGET_OPT_AGU.
25852 * config/i386/i386.h (TARGET_INTEL): New.
25853 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
25854 (processor_type): Add PROCESSOR_INTEL.
25855 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
25856 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
25858 2014-01-17 Marek Polacek <polacek@redhat.com>
25861 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
25864 2014-01-17 Richard Biener <rguenther@suse.de>
25866 PR tree-optimization/46590
25867 * opts.c (default_options_table): Add entries for
25868 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
25869 all enabled at -O1 but not for -Og.
25870 * common.opt (fbranch-count-reg): Remove Init(1).
25871 (fmove-loop-invariants): Likewise.
25872 (ftree-pta): Likewise.
25874 2014-01-17 Jakub Jelinek <jakub@redhat.com>
25876 * config/i386/i386.c (ix86_data_alignment): For compatibility with
25877 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
25878 decls to at least the GCC 4.8 used alignments.
25881 * tree-nested.c (convert_nonlocal_reference_stmt,
25882 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
25883 of GIMPLE_BIND stmts, adjust associated decls.
25885 2014-01-17 Richard Biener <rguenther@suse.de>
25887 PR tree-optimization/46590
25888 * vec.h (vec<>::bseach): New member function implementing
25889 binary search according to C89 bsearch.
25890 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
25891 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
25892 bitmap pointer again. Make accesses_in_loop a flat array.
25893 (mem_ref_obstack): New global.
25894 (outermost_indep_loop): Adjust for mem_ref->stored changes.
25895 (mark_ref_stored): Likewise.
25896 (ref_indep_loop_p_2): Likewise.
25897 (set_ref_stored_in_loop): New helper function.
25898 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
25899 (memref_free): Adjust.
25900 (record_mem_ref_loc): Simplify.
25901 (gather_mem_refs_stmt): Adjust.
25902 (sort_locs_in_loop_postorder_cmp): New function.
25903 (analyze_memory_references): Sort accesses_in_loop after
25904 loop postorder number.
25905 (find_ref_loc_in_loop_cmp): New function.
25906 (for_all_locs_in_loop): Find relevant cluster of locs in
25907 accesses_in_loop and iterate without recursion.
25908 (execute_sm): Avoid uninit warning.
25909 (struct ref_always_accessed): Simplify.
25910 (ref_always_accessed::operator ()): Likewise.
25911 (ref_always_accessed_p): Likewise.
25912 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
25913 loop postorder numbers here.
25914 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
25917 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
25920 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
25921 on decls for which assemble_alias has been called.
25923 2014-01-17 Nick Clifton <nickc@redhat.com>
25925 * config/msp430/msp430.opt: (mcpu): New option.
25926 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
25927 (msp430_option_override): Parse target_cpu. If the MCU name
25928 matches a generic string, clear target_mcu.
25929 (msp430_attr): Allow numeric interrupt values up to 63.
25930 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
25931 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
25933 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
25935 * config/msp430/msp430.md (popm): Use %J rather than %I.
25936 (addsi3): Use msp430_nonimmediate_operand for operand 2.
25937 (addhi_cy_i): Use immediate_operand for operand 2.
25938 * doc/invoke.texi: Document -mcpu option.
25940 2014-01-17 Richard Biener <rguenther@suse.de>
25942 PR rtl-optimization/38518
25943 * df.h (df_analyze_loop): Declare.
25944 * df-core.c: Include cfgloop.h.
25945 (df_analyze_1): Split out main part of df_analyze.
25946 (df_analyze): Adjust.
25947 (loop_inverted_post_order_compute): New function.
25948 (loop_post_order_compute): Likewise.
25949 (df_analyze_loop): New function avoiding whole-function
25950 postorder computes.
25951 * loop-invariant.c (find_defs): Use df_analyze_loop.
25952 (find_invariants): Adjust.
25953 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
25955 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
25957 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
25958 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
25960 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
25962 * ipa-ref.c (ipa_remove_stmt_references): Fix references
25963 traversal when removing references.
25965 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
25968 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
25970 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
25972 PR middle-end/56791
25973 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
25974 pushing a reload for an autoinc when we had previously reloaded an
25975 inner part of the address.
25977 2014-01-16 Jakub Jelinek <jakub@redhat.com>
25979 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
25981 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
25982 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
25983 when not giving up or versioning for alias only because of
25985 (vect_analyze_data_ref_dependences): Set to true.
25986 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
25988 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
25989 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
25992 PR middle-end/58344
25993 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
25996 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
25997 operand 0 predicate for gathers, use a new pseudo as subtarget.
25999 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26001 PR middle-end/59609
26002 * lra-constraints.c (process_alt_operands): Add printing debug info.
26003 Check absence of input/output reloads for matched operands too.
26005 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
26007 PR rtl-optimization/59835
26008 * ira.c (ira_init_register_move_cost): Increase cost for
26011 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
26013 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
26015 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
26018 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
26019 non-register objects. Use gen_(high/low)part more consistently.
26022 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
26025 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
26026 endian support, remove tests for WORDS_BIG_ENDIAN.
26027 (p8_mfvsrd_3_<mode>): Likewise.
26028 (reload_gpr_from_vsx<mode>): Likewise.
26029 (reload_gpr_from_vsxsf): Likewise.
26030 (p8_mfvsrd_4_disf): Likewise.
26032 2014-01-16 Richard Biener <rguenther@suse.de>
26034 PR rtl-optimization/46590
26035 * lcm.c (compute_antinout_edge): Use postorder iteration.
26036 (compute_laterin): Use inverted postorder iteration.
26038 2014-01-16 Nick Clifton <nickc@redhat.com>
26040 PR middle-end/28865
26041 * varasm.c (output_constant): Return the number of bytes actually
26043 (output_constructor_array_range): Update the field size with the
26044 number of bytes emitted by output_constant.
26045 (output_constructor_regular_field): Likewise. Also do not
26046 complain if the total number of bytes emitted is now greater
26047 than the expected fieldpos.
26048 * output.h (output_constant): Update prototype and descriptive comment.
26050 2014-01-16 Marek Polacek <polacek@redhat.com>
26052 PR middle-end/59827
26053 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
26054 it is error_mark_node.
26056 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
26058 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
26059 VALID_AVX256_REG_OR_OI_MODE.
26061 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
26063 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
26064 current procedure should be profiled.
26066 2014-01-15 Andrew Pinski <apinski@cavium.com>
26068 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
26069 of moving from/to the STACK_REG register class.
26071 2014-01-15 Richard Henderson <rth@redhat.com>
26074 * reginfo.c (global_regs_decl): Globalize.
26075 * rtl.h (global_regs_decl): Declare.
26076 * ira.c (do_reload): Diagnose frame_pointer_needed and it
26077 reserved via global_regs.
26079 2014-01-15 Teresa Johnson <tejohnson@google.com>
26081 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
26083 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
26085 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26086 and vmulosh rather than call gen_vec_widen_smult_*.
26087 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
26088 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
26089 (vec_widen_smult_even_v16qi): Likewise.
26090 (vec_widen_umult_even_v8hi): Likewise.
26091 (vec_widen_smult_even_v8hi): Likewise.
26092 (vec_widen_umult_odd_v16qi): Likewise.
26093 (vec_widen_smult_odd_v16qi): Likewise.
26094 (vec_widen_umult_odd_v8hi): Likewise.
26095 (vec_widen_smult_odd_v8hi): Likewise.
26096 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
26097 vmuloub rather than call gen_vec_widen_umult_*.
26098 (vec_widen_umult_lo_v16qi): Likewise.
26099 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
26100 vmulosb rather than call gen_vec_widen_smult_*.
26101 (vec_widen_smult_lo_v16qi): Likewise.
26102 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
26103 rather than call gen_vec_widen_umult_*.
26104 (vec_widen_umult_lo_v8hi): Likewise.
26105 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
26106 rather than call gen_vec_widen_smult_*.
26107 (vec_widen_smult_lo_v8hi): Likewise.
26109 2014-01-15 Jeff Law <law@redhat.com>
26111 PR tree-optimization/59747
26112 * ree.c (find_and_remove_re): Properly handle case where a second
26113 eliminated extension requires widening a copy created for elimination
26114 of a prior extension.
26115 (combine_set_extension): Ensure that the number of hard regs needed
26116 for a destination register does not change when we widen it.
26118 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
26120 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
26121 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
26122 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
26123 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
26124 (avr-*-rtems*): Likewise.
26125 (bfin*-rtems*): Likewise.
26126 (moxie-*-rtems*): Likewise.
26127 (h8300-*-rtems*): Likewise.
26128 (i[34567]86-*-rtems*): Likewise.
26129 (lm32-*-rtems*): Likewise.
26130 (m32r-*-rtems*): Likewise.
26131 (m68k-*-rtems*): Likewise.
26132 (microblaze*-*-rtems*): Likewise.
26133 (mips*-*-rtems*): Likewise.
26134 (powerpc-*-rtems*): Likewise.
26135 (sh-*-rtems*): Likewise.
26136 (sparc-*-rtems*): Likewise.
26137 (sparc64-*-rtems*): Likewise.
26138 (v850-*-rtems*): Likewise.
26139 (m32c-*-rtems*): Likewise.
26141 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
26143 PR rtl-optimization/59511
26144 * ira.c (ira_init_register_move_cost): Use memory costs for some
26145 cases of register move cost calculations.
26146 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
26147 instead of BB frequency.
26148 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
26149 * lra-assigns.c (find_hard_regno_for): Ditto.
26151 2014-01-15 Richard Biener <rguenther@suse.de>
26153 PR tree-optimization/59822
26154 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
26155 (vectorizable_load): Use it to hoist defs of uses of invariant
26156 loads out of the loop.
26158 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
26159 Kugan Vivekanandarajah <kuganv@linaro.org>
26162 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
26165 2014-01-15 Richard Biener <rguenther@suse.de>
26167 PR rtl-optimization/59802
26168 * lcm.c (compute_available): Use inverted postorder to seed
26169 the initial worklist.
26171 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26174 * config/s390/s390.c (s390_preferred_reload_class): Don't return
26175 ADDR_REGS for invalid symrefs in non-PIC code.
26177 2014-01-15 Jakub Jelinek <jakub@redhat.com>
26180 * builtins.c (determine_block_size): Initialize *probable_max_size
26181 even if len_rtx is CONST_INT.
26183 2014-01-14 Andrew Pinski <apinski@cavium.com>
26185 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
26186 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
26187 (cortexa53_tunings): Likewise.
26188 (aarch64_sched_issue_rate): New function.
26189 (TARGET_SCHED_ISSUE_RATE): Define.
26191 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26193 * ira-costs.c (find_costs_and_classes): Add missed
26194 ira_init_register_move_cost_if_necessary.
26196 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
26199 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
26201 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
26204 * config/i386/i386.c (type_natural_mode): Add a bool parameter
26205 to indicate if type is used for function return value. Warn ABI
26206 change if the vector mode isn't available for function return value.
26207 (ix86_function_arg_advance): Pass false to type_natural_mode.
26208 (ix86_function_arg): Likewise.
26209 (ix86_gimplify_va_arg): Likewise.
26210 (function_arg_32): Don't warn ABI change.
26211 (ix86_function_value): Pass true to type_natural_mode.
26212 (ix86_return_in_memory): Likewise.
26213 (ix86_struct_value_rtx): Removed.
26214 (TARGET_STRUCT_VALUE_RTX): Likewise.
26216 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26218 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
26219 converting a conditional jump into a conditional return.
26221 2014-01-14 Richard Biener <rguenther@suse.de>
26223 PR tree-optimization/58921
26224 PR tree-optimization/59006
26225 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
26226 hoisting invariant stmts.
26227 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
26228 invariant loads on the preheader edge if possible.
26230 2014-01-14 Joey Ye <joey.ye@arm.com>
26232 * doc/plugin.texi (Building GCC plugins): Update to C++.
26234 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
26236 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
26237 (_mm_rcp28_round_ss): Ditto.
26238 (_mm_rsqrt28_round_sd): Ditto.
26239 (_mm_rsqrt28_round_ss): Ditto.
26240 (_mm_rcp28_sd): Ditto.
26241 (_mm_rcp28_ss): Ditto.
26242 (_mm_rsqrt28_sd): Ditto.
26243 (_mm_rsqrt28_ss): Ditto.
26244 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
26245 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
26246 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
26247 (IX86_BUILTIN_RCP28SD): Ditto.
26248 (IX86_BUILTIN_RCP28SS): Ditto.
26249 (IX86_BUILTIN_RSQRT28SD): Ditto.
26250 (IX86_BUILTIN_RSQRT28SS): Ditto.
26251 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
26252 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
26253 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
26254 (ix86_expand_special_args_builtin): Expand new FTYPE.
26255 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
26256 (srcp14<mode>): Make insn unary.
26257 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
26258 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
26259 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
26260 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
26261 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
26262 Fix rounding: make it SAE only.
26263 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
26265 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
26267 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
26268 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
26269 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
26270 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
26271 (round_saeonly_mask_scalar_operand4): Ditto.
26272 (round_saeonly_mask_scalar_op3): Ditto.
26273 (round_saeonly_mask_scalar_op4): Ditto.
26275 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26277 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
26278 Implement -maltivec=be for vec_insert and vec_extract.
26280 2014-01-10 DJ Delorie <dj@redhat.com>
26282 * config/msp430/msp430.md (call_internal): Don't allow memory
26283 references with SP as the base register.
26284 (call_value_internal): Likewise.
26285 * config/msp430/constraints.md (Yc): New. For memory references
26286 that don't use SP as a base register.
26288 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
26289 "an integer without a # prefix"
26290 * config/msp430/msp430.md (epilogue_helper): Use it.
26292 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26295 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
26296 AVX512F gather builtins.
26297 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
26298 on gather decls with INTEGER_TYPE masktype.
26299 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
26300 directly into the builtin rather than hoisting it before loop.
26302 PR tree-optimization/59387
26303 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
26304 (scev_const_prop): If folded_casts and type has undefined overflow,
26305 use force_gimple_operand instead of force_gimple_operand_gsi and
26306 for each added stmt if it is assign with
26307 arith_code_with_undefined_signed_overflow, call
26308 rewrite_to_defined_overflow.
26309 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
26310 gimple-fold.h instead.
26311 (arith_code_with_undefined_signed_overflow,
26312 rewrite_to_defined_overflow): Moved to ...
26313 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
26314 rewrite_to_defined_overflow): ... here. No longer static.
26315 Include gimplify-me.h.
26316 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
26317 rewrite_to_defined_overflow): New prototypes.
26319 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26321 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
26323 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
26325 * builtins.c (get_object_alignment_2): Minor tweak.
26326 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
26328 2014-01-13 Christian Bruel <christian.bruel@st.com>
26330 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
26331 optimized non constant lengths.
26333 2014-01-13 Jakub Jelinek <jakub@redhat.com>
26336 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
26337 load as __atomic_load_N if possible.
26339 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26341 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
26343 (rs6000_expand_builtin): Adjust call.
26345 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
26348 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
26349 * config/rs6000/rs6000.c: Include target-globals.h.
26350 (rs6000_set_current_function): Instead of doing target_reinit
26351 unconditionally, use save_target_globals_default_opts and
26352 restore_target_globals.
26354 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
26356 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
26357 (rs6000_expand_builtin): Handle mffs and mtfsf.
26358 (rs6000_init_builtins): Define mffs and mtfsf.
26359 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
26360 (rs6000_mffs): New pattern.
26361 (rs6000_mtfsf): New pattern.
26363 2014-01-11 Bin Cheng <bin.cheng@arm.com>
26365 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
26366 Start narrowing with START. Apply candidate-use pair
26367 and check overall cost in narrowing.
26368 (iv_ca_prune): Pass new argument.
26370 2014-01-10 Jeff Law <law@redhat.com>
26372 PR middle-end/59743
26373 * ree.c (combine_reaching_defs): Ensure the defining statement
26374 occurs before the extension when optimizing extensions with
26375 different source and destination hard registers.
26377 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26380 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
26381 vtables into the type inheritance graph.
26383 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26385 PR rtl-optimization/59754
26386 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
26387 modes in the REGNO != REGNO case.
26389 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26391 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
26393 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26395 PR tree-optimization/59745
26396 * tree-predcom.c (tree_predictive_commoning_loop): Call
26397 free_affine_expand_cache if giving up because components is NULL.
26399 * target-globals.c (save_target_globals): Allocate < 4KB structs using
26400 GC in payload of target_globals struct instead of allocating them on
26401 the heap and the larger structs separately using GC.
26402 * target-globals.h (struct target_globals): Make regs, hard_regs,
26403 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
26404 of GTY((skip)) and change type to void *.
26405 (reset_target_globals): Cast loads from those fields to corresponding
26408 2014-01-10 Steve Ellcey <sellcey@mips.com>
26411 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
26412 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
26413 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
26415 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
26418 * aarch64-modes.def (CC_Zmode): New flags mode.
26419 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
26420 represents an equality.
26421 (aarch64_get_condition_code): Handle CC_Zmode.
26422 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
26424 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26426 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
26427 extraction in good case.
26429 2014-01-10 Richard Biener <rguenther@suse.de>
26431 PR tree-optimization/59374
26432 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
26433 checking after SLP discovery. Mark stmts not participating
26434 in any SLP instance properly.
26436 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26438 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
26439 when handling a SET rtx.
26441 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26443 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
26444 (cortex-a57): Likewise.
26445 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
26447 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26449 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
26450 non-iwmmxt builtins.
26452 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
26456 * ipa-devirt.c record_target_from_binfo): Take as argument
26457 stack of binfos and lookup matching one for virtual inheritance.
26458 (possible_polymorphic_call_targets_1): Update.
26460 2014-01-10 Huacai Chen <chenhc@lemote.com>
26462 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
26463 kernel strings for Loongson-2E/2F/3A.
26465 2014-01-10 Jakub Jelinek <jakub@redhat.com>
26467 PR middle-end/59670
26468 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
26469 is_gimple_call before calling gimple_call_internal_p.
26471 2014-01-09 Steve Ellcey <sellcey@mips.com>
26473 * Makefile.in (TREE_FLOW_H): Remove.
26474 (TREE_SSA_H): Add file names from tree-flow.h.
26475 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
26476 * tree.h: Remove tree-flow.h reference.
26477 * hash-table.h: Remove tree-flow.h reference.
26478 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
26479 reference with tree-ssa-loop.h.
26481 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26483 * doc/invoke.texi: Add -maltivec={be,le} options, and document
26484 default element-order behavior for -maltivec.
26485 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
26486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
26487 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
26488 when targeting big endian, at least for now.
26489 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
26491 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26493 PR middle-end/47735
26494 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
26495 var satisfies use_register_for_decl, just take into account type
26496 alignment, rather than decl alignment.
26498 PR tree-optimization/59622
26499 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
26500 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
26501 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
26502 Don't devirtualize for inplace at all. For targets.length () == 1,
26503 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
26505 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26507 * config/i386/i386.md (cpu): Remove the unused btver1.
26509 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
26511 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
26513 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26516 * tree-core.h (struct target_globals): New forward declaration.
26517 (struct tree_target_option): Add globals field.
26518 * tree.h (TREE_TARGET_GLOBALS): Define.
26519 (prepare_target_option_nodes_for_pch): New prototype.
26520 * target-globals.h (struct target_globals): Define even if
26521 !SWITCHABLE_TARGET.
26522 * tree.c (prepare_target_option_node_for_pch,
26523 prepare_target_option_nodes_for_pch): New functions.
26524 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
26525 * config/i386/i386.c: Include target-globals.h.
26526 (ix86_set_current_function): Instead of doing target_reinit
26527 unconditionally, use save_target_globals_default_opts and
26528 restore_target_globals.
26530 2014-01-09 Richard Biener <rguenther@suse.de>
26532 PR tree-optimization/59715
26533 * tree-cfg.h (split_critical_edges): Declare.
26534 * tree-cfg.c (split_critical_edges): Export.
26535 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
26537 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
26539 * cfgexpand.c (expand_stack_vars): Optionally disable
26540 asan stack protection.
26541 (expand_used_vars): Likewise.
26542 (partition_stack_vars): Likewise.
26543 * asan.c (asan_emit_stack_protection): Optionally disable
26544 after return stack usage.
26545 (instrument_derefs): Optionally disable memory access instrumentation.
26546 (instrument_builtin_call): Likewise.
26547 (instrument_strlen_call): Likewise.
26548 (asan_protect_global): Optionally disable global variables protection.
26549 * doc/invoke.texi: Added doc for new options.
26550 * params.def: Added new options.
26551 * params.h: Likewise.
26553 2014-01-09 Jakub Jelinek <jakub@redhat.com>
26555 PR rtl-optimization/59724
26556 * ifcvt.c (cond_exec_process_if_block): Don't call
26557 flow_find_head_matching_sequence with 0 longest_match.
26558 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
26559 non-active insns if !stop_after.
26560 (try_head_merge_bb): Revert 2014-01-07 changes.
26562 2014-01-08 Jeff Law <law@redhat.com>
26564 * ree.c (get_sub_rtx): New function, extracted from...
26565 (merge_def_and_ext): Here.
26566 (combine_reaching_defs): Use get_sub_rtx.
26568 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
26570 * cgraph.h (varpool_variable_node): Do not choke on null node.
26572 2014-01-08 Catherine Moore <clm@codesourcery.com>
26574 * config/mips/mips.md (simple_return): Attempt to use JRC
26576 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
26578 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26580 PR rtl-optimization/59137
26581 * reorg.c (steal_delay_list_from_target): Call update_block for
26583 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
26585 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26587 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
26588 two duplicate entries.
26590 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
26593 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
26595 * config/mips/mips.c (mips_truncated_op_cost): New function.
26596 (mips_rtx_costs): Adjust test for BADDU.
26597 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
26599 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
26601 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
26602 (*baddu_si): ...this new pattern.
26604 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26607 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
26609 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
26611 PR middle-end/57748
26612 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
26614 (expand_expr, expand_normal): Adjust.
26615 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
26616 inner_reference_p. Use inner_reference_p to expand inner references.
26617 (store_expr): Adjust.
26618 * cfgexpand.c (expand_call_stmt): Adjust.
26620 2014-01-08 Rong Xu <xur@google.com>
26622 * gcov-io.c (gcov_var): Move from gcov-io.h.
26623 (gcov_position): Ditto.
26624 (gcov_is_error): Ditto.
26625 (gcov_rewrite): Ditto.
26626 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
26627 only part to libgcc/libgcov.h.
26629 2014-01-08 Marek Polacek <polacek@redhat.com>
26631 PR middle-end/59669
26632 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
26634 2014-01-08 Marek Polacek <polacek@redhat.com>
26637 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
26639 2014-01-08 Jakub Jelinek <jakub@redhat.com>
26641 PR rtl-optimization/59649
26642 * stor-layout.c (get_mode_bounds): For BImode return
26643 0 and STORE_FLAG_VALUE.
26645 2014-01-08 Richard Biener <rguenther@suse.de>
26647 PR middle-end/59630
26648 * gimple.h (is_gimple_builtin_call): Remove.
26649 (gimple_builtin_call_types_compatible_p): New.
26650 (gimple_call_builtin_p): New overload.
26651 * gimple.c (is_gimple_builtin_call): Remove.
26652 (validate_call): Rename to ...
26653 (gimple_builtin_call_types_compatible_p): ... this and export. Also
26654 check return types.
26655 (validate_type): New static function.
26656 (gimple_call_builtin_p): New overload and adjust.
26657 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
26658 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
26659 (gimple_fold_stmt_to_constant_1): Likewise.
26660 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
26662 2014-01-08 Richard Biener <rguenther@suse.de>
26664 PR middle-end/59471
26665 * gimplify.c (gimplify_expr): Gimplify register-register type
26666 VIEW_CONVERT_EXPRs to separate stmts.
26668 2014-01-07 Jeff Law <law@redhat.com>
26670 PR middle-end/53623
26671 * ree.c (combine_set_extension): Handle case where source
26672 and destination registers in an extension insn are different.
26673 (combine_reaching_defs): Allow source and destination registers
26674 in extension to be different under limited circumstances.
26675 (add_removable_extension): Remove restriction that the
26676 source and destination registers in the extension are the same.
26677 (find_and_remove_re): Emit a copy from the extension's
26678 destination to its source after the defining insn if
26679 the source and destination registers are different.
26681 PR middle-end/59285
26682 * ifcvt.c (merge_if_block): If we are merging a block with more than
26683 one successor with a block with no successors, remove any BARRIER
26684 after the second block.
26686 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
26688 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
26690 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
26693 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
26694 for 14-bit register offsets when INT14_OK_STRICT is false.
26696 2014-01-07 Roland Stigge <stigge@antcom.de>
26697 Michael Meissner <meissner@linux.vnet.ibm.com>
26700 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
26701 Only check TFmode for SPE constants. Don't check TImode or TDmode.
26703 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
26705 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
26708 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
26710 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
26711 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
26712 rtx is const0_rtx or not.
26714 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
26717 * target-globals.c (save_target_globals): Remove this_fn_optab
26719 * toplev.c: Include optabs.h.
26720 (target_reinit): Temporarily restore the global options if another
26721 set of options are in force.
26723 2014-01-07 Jakub Jelinek <jakub@redhat.com>
26725 PR rtl-optimization/58668
26726 * cfgcleanup.c (flow_find_cross_jump): Don't count
26727 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
26728 to determine what is counted.
26729 (flow_find_head_matching_sequence): Use active_insn_p to determine
26731 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
26733 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
26734 determine what is counted.
26736 PR tree-optimization/59643
26737 * tree-predcom.c (split_data_refs_to_components): If one dr is
26738 read and one write, determine_offset fails and the write isn't
26739 in the bad component, just put the read into the bad component.
26741 2014-01-07 Mike Stump <mikestump@comcast.net>
26742 Jakub Jelinek <jakub@redhat.com>
26745 * tree-core.h (struct tree_optimization_option): Change optabs
26746 type from unsigned char * to void *.
26747 * optabs.c (init_tree_optimization_optabs): Adjust
26748 TREE_OPTIMIZATION_OPTABS initialization.
26750 2014-01-06 Jakub Jelinek <jakub@redhat.com>
26753 * config/i386/i386.h (struct machine_function): Add
26754 no_drap_save_restore field.
26755 * config/i386/i386.c (ix86_save_reg): Use
26756 !cfun->machine->no_drap_save_restore instead of
26757 crtl->stack_realign_needed.
26758 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
26759 this function clears frame_pointer_needed. Set
26760 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
26761 and DRAP reg is needed.
26763 2014-01-06 Marek Polacek <polacek@redhat.com>
26766 * doc/implement-c.texi: Mention that other integer types are
26767 permitted as bit-field types in strictly conforming mode.
26769 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
26771 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
26772 is newly allocated.
26774 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
26776 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
26778 2014-01-06 Martin Jambor <mjambor@suse.cz>
26781 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
26783 * ipa-prop.c (ipa_print_node_params): Fix indentation.
26785 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
26789 * var-tracking.c (add_stores): Preserve the value of the source even if
26790 we don't record the store.
26792 2014-01-06 Terry Guo <terry.guo@arm.com>
26794 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
26796 2014-01-05 Iain Sandoe <iain@codesourcery.com>
26799 * config/darwin.c (darwin_function_section): Adjust return values to
26800 correspond to optimisation changes made in r206070.
26802 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
26804 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
26805 from prefetch_block tune setting.
26806 (nocona_cost): Correct size of prefetch block to 64.
26808 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
26810 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
26811 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
26812 used to save the static chain register in the computation of the offset
26813 from which the FP registers need to be restored.
26815 2014-01-04 Jakub Jelinek <jakub@redhat.com>
26817 PR tree-optimization/59519
26818 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
26819 ICE if get_current_def (current_new_name) is already non-NULL, as long
26820 as it is a phi result of some other phi in *new_exit_bb that has
26823 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
26824 or vmovdqu* for misaligned_operand.
26825 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
26826 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
26827 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
26828 aligned_mem for AVX512F masked aligned load and store builtins and for
26829 non-temporal moves.
26831 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
26833 PR tree-optimization/59651
26834 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
26835 Address range for negative step should be added by TYPE_SIZE_UNIT.
26837 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
26839 * config/m68k/m68k.c (handle_move_double): Handle pushes with
26840 overlapping registers also for registers other than the stack pointer.
26842 2014-01-03 Marek Polacek <polacek@redhat.com>
26845 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
26848 2014-01-03 Jakub Jelinek <jakub@redhat.com>
26851 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
26854 * config/i386/i386.md (MODE_SIZE): New mode attribute.
26855 (push splitter): Use <P:MODE_SIZE> instead of
26856 GET_MODE_SIZE (<P:MODE>mode).
26857 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
26858 (mov -1, reg peephole2): Likewise.
26859 * config/i386/sse.md (*mov<mode>_internal,
26860 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
26861 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
26862 *<code><mode>3, *andnot<mode>3<mask_name>,
26863 <mask_codefor><code><mode>3<mask_name>): Likewise.
26864 * config/i386/subst.md (mask_mode512bit_condition,
26865 sd_mask_mode512bit_condition): Likewise.
26867 2014-01-02 Xinliang David Li <davidxl@google.com>
26869 PR tree-optimization/59303
26870 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
26871 (dump_predicates): Better output format.
26872 (pred_equal_p): New function.
26873 (is_neq_relop_p): Ditto.
26874 (is_neq_zero_form_p): Ditto.
26875 (pred_expr_equal_p): Ditto.
26876 (pred_neg_p): Ditto.
26877 (simplify_pred): Ditto.
26878 (simplify_preds_2): Ditto.
26879 (simplify_preds_3): Ditto.
26880 (simplify_preds_4): Ditto.
26881 (simplify_preds): Ditto.
26882 (push_pred): Ditto.
26883 (push_to_worklist): Ditto.
26884 (get_pred_info_from_cmp): Ditto.
26885 (is_degenerated_phi): Ditto.
26886 (normalize_one_pred_1): Ditto.
26887 (normalize_one_pred): Ditto.
26888 (normalize_one_pred_chain): Ditto.
26889 (normalize_preds): Ditto.
26890 (normalize_cond_1): Remove function.
26891 (normalize_cond): Ditto.
26892 (is_gcond_subset_of): Ditto.
26893 (is_subset_of_any): Ditto.
26894 (is_or_set_subset_of): Ditto.
26895 (is_and_set_subset_of): Ditto.
26896 (is_norm_cond_subset_of): Ditto.
26897 (pred_chain_length_cmp): Ditto.
26898 (convert_control_dep_chain_into_preds): Type change.
26899 (find_predicates): Ditto.
26900 (find_def_preds): Ditto.
26901 (destroy_predicates_vecs): Ditto.
26902 (find_matching_predicates_in_rest_chains): Ditto.
26903 (use_pred_not_overlap_with_undef_path_pred): Ditto.
26904 (is_pred_expr_subset): Ditto.
26905 (is_pred_chain_subset_of): Ditto.
26906 (is_included_in): Ditto.
26907 (is_superset_of): Ditto.
26909 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26911 Update copyright years.
26913 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
26915 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
26916 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
26917 config/arc/arc.md, config/arc/arc.opt,
26918 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
26919 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
26920 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
26921 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
26922 config/linux-protos.h, config/linux.c, config/winnt-c.c,
26923 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
26924 vtable-verify.c, vtable-verify.h: Use the standard form for the
26927 2014-01-02 Tobias Burnus <burnus@net-b.de>
26929 * gcc.c (process_command): Update copyright notice dates.
26930 * gcov-dump.c: Ditto.
26932 * doc/cpp.texi: Bump @copying's copyright year.
26933 * doc/cppinternals.texi: Ditto.
26934 * doc/gcc.texi: Ditto.
26935 * doc/gccint.texi: Ditto.
26936 * doc/gcov.texi: Ditto.
26937 * doc/install.texi: Ditto.
26938 * doc/invoke.texi: Ditto.
26940 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26942 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
26944 2014-01-01 Jakub Jelinek <jakub@redhat.com>
26946 * config/i386/sse.md (*mov<mode>_internal): Guard
26947 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
26949 PR rtl-optimization/59647
26950 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
26951 new_rtx into UNSIGNED_FLOAT rtxes.
26953 Copyright (C) 2014 Free Software Foundation, Inc.
26955 Copying and distribution of this file, with or without modification,
26956 are permitted in any medium without royalty provided the copyright
26957 notice and this notice are preserved.