diff options
author | Richard Guenther <rguenther@suse.de> | 2009-10-23 12:01:21 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-10-23 12:01:21 +0000 |
commit | 93f28ca73fbb038d98a74a464d04c734743720c4 (patch) | |
tree | 238740f5cee8583ced3caa8e5ccc73863f2418bb /gcc/cfgexpand.c | |
parent | 8460475b4265e2a607acf6bc4bcf98bca5b38aba (diff) | |
download | gcc-93f28ca73fbb038d98a74a464d04c734743720c4.zip gcc-93f28ca73fbb038d98a74a464d04c734743720c4.tar.gz gcc-93f28ca73fbb038d98a74a464d04c734743720c4.tar.bz2 |
re PR middle-end/41805 (possible LTO termination bug)
2009-10-23 Richard Guenther <rguenther@suse.de>
PR middle-end/41805
* cfgexpand.c (expand_call_stmt): Use gimple_has_side_effects and
gimple_call_nothrow_p.
From-SVN: r153495
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r-- | gcc/cfgexpand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c index 2678d7e..be46028 100644 --- a/gcc/cfgexpand.c +++ b/gcc/cfgexpand.c @@ -1768,10 +1768,10 @@ expand_call_stmt (gimple stmt) for (i = 0; i < gimple_call_num_args (stmt); i++) CALL_EXPR_ARG (exp, i) = gimple_call_arg (stmt, i); - if (!(gimple_call_flags (stmt) & (ECF_CONST | ECF_PURE))) + if (gimple_has_side_effects (stmt)) TREE_SIDE_EFFECTS (exp) = 1; - if (gimple_call_flags (stmt) & ECF_NOTHROW) + if (gimple_call_nothrow_p (stmt)) TREE_NOTHROW (exp) = 1; CALL_EXPR_TAILCALL (exp) = gimple_call_tail_p (stmt); |