aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2010-06-22 18:21:25 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-06-22 18:21:25 +0000
commit8d2adc244b117d1560a75caf39b0698eeb6c96ef (patch)
treee85874c9f8f854e3483015176601bba12e52e10c /gcc/gimple.c
parentca3e07b4edd28f5c643dd4a601d51db135fde67b (diff)
downloadgcc-8d2adc244b117d1560a75caf39b0698eeb6c96ef.zip
gcc-8d2adc244b117d1560a75caf39b0698eeb6c96ef.tar.gz
gcc-8d2adc244b117d1560a75caf39b0698eeb6c96ef.tar.bz2
cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the new statement and adjust VDEF only if necessary.
* cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the new statement and adjust VDEF only if necessary. Remove superfluous call to maybe_clean_or_replace_eh_stmt. * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to copy the flags. * gimple-iterator.c (gsi_replace): Clear BB of old statement here... * tree-inline.c (copy_bb): ...and not there. From-SVN: r161221
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index 1a10f31..d82a93c 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -3085,14 +3085,8 @@ gimple_call_copy_skip_args (gimple stmt, bitmap args_to_skip)
gimple_set_block (new_stmt, gimple_block (stmt));
if (gimple_has_location (stmt))
gimple_set_location (new_stmt, gimple_location (stmt));
-
- /* Carry all the flags to the new GIMPLE_CALL. */
+ gimple_call_copy_flags (new_stmt, stmt);
gimple_call_set_chain (new_stmt, gimple_call_chain (stmt));
- gimple_call_set_tail (new_stmt, gimple_call_tail_p (stmt));
- gimple_call_set_cannot_inline (new_stmt, gimple_call_cannot_inline_p (stmt));
- gimple_call_set_return_slot_opt (new_stmt, gimple_call_return_slot_opt_p (stmt));
- gimple_call_set_from_thunk (new_stmt, gimple_call_from_thunk_p (stmt));
- gimple_call_set_va_arg_pack (new_stmt, gimple_call_va_arg_pack_p (stmt));
gimple_set_modified (new_stmt, true);