(expand_expr): Don't ensure ref to a volatile value if it is a function.
authorRichard Stallman <rms@gnu.org>
Thu, 18 Mar 1993 21:34:51 +0000 (21:34 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 18 Mar 1993 21:34:51 +0000 (21:34 +0000)
From-SVN: r3781

gcc/expr.c

index 6242fe6607f15c2bf6ba83622ceb95cd7c397633..894545195b293e9d36c0f263d43f550f687c5915 100644 (file)
@@ -3845,6 +3845,7 @@ expand_expr (exp, target, tmode, modifier)
 
   /* Ensure we reference a volatile object even if value is ignored.  */
   if (ignore && TREE_THIS_VOLATILE (exp)
+      && TREE_CODE (exp) != FUNCTION_DECL
       && mode != VOIDmode && mode != BLKmode)
     {
       target = gen_reg_rtx (mode);