re PR middle-end/41805 (possible LTO termination bug)
authorRichard Guenther <rguenther@suse.de>
Fri, 23 Oct 2009 12:01:21 +0000 (12:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 23 Oct 2009 12:01:21 +0000 (12:01 +0000)
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

gcc/ChangeLog
gcc/cfgexpand.c

index e0f70c4884385c05dd531f25b1af15373e060387..b0a45ab8cfe6502a0c2d19c512cf78a69ff15f95 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2009-10-23  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/41778
index 2678d7e7ffe6c345e177de76a5fa988cae7f7c75..be46028fa5883246d2a745d6be4d3e146ba6a476 100644 (file)
@@ -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);