Commit 93f28ca7 by Richard Guenther Committed by Richard Biener

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
parent 8460475b
2009-10-23 Richard Guenther <rguenther@suse.de> 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 PR tree-optimization/41778
* tree-ssa-pre.c (do_regular_insertion): Only insert if a * tree-ssa-pre.c (do_regular_insertion): Only insert if a
redundancy along a path in the CFG we want to optimize for speed redundancy along a path in the CFG we want to optimize for speed
...@@ -1768,10 +1768,10 @@ expand_call_stmt (gimple stmt) ...@@ -1768,10 +1768,10 @@ expand_call_stmt (gimple stmt)
for (i = 0; i < gimple_call_num_args (stmt); i++) for (i = 0; i < gimple_call_num_args (stmt); i++)
CALL_EXPR_ARG (exp, i) = gimple_call_arg (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; TREE_SIDE_EFFECTS (exp) = 1;
if (gimple_call_flags (stmt) & ECF_NOTHROW) if (gimple_call_nothrow_p (stmt))
TREE_NOTHROW (exp) = 1; TREE_NOTHROW (exp) = 1;
CALL_EXPR_TAILCALL (exp) = gimple_call_tail_p (stmt); CALL_EXPR_TAILCALL (exp) = gimple_call_tail_p (stmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment