Commit 3e3f5658 by Richard Stallman

(expand_expr): Don't ensure ref to a volatile value if it is a function.

From-SVN: r3781
parent 12d073e7
...@@ -3845,6 +3845,7 @@ expand_expr (exp, target, tmode, modifier) ...@@ -3845,6 +3845,7 @@ expand_expr (exp, target, tmode, modifier)
/* Ensure we reference a volatile object even if value is ignored. */ /* Ensure we reference a volatile object even if value is ignored. */
if (ignore && TREE_THIS_VOLATILE (exp) if (ignore && TREE_THIS_VOLATILE (exp)
&& TREE_CODE (exp) != FUNCTION_DECL
&& mode != VOIDmode && mode != BLKmode) && mode != VOIDmode && mode != BLKmode)
{ {
target = gen_reg_rtx (mode); target = gen_reg_rtx (mode);
......
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