From: Richard Stallman Date: Thu, 18 Mar 1993 21:34:51 +0000 (+0000) Subject: (expand_expr): Don't ensure ref to a volatile value if it is a function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e3f5658134438dcfb4ed65f19204cc52faeec16;p=gcc.git (expand_expr): Don't ensure ref to a volatile value if it is a function. From-SVN: r3781 --- diff --git a/gcc/expr.c b/gcc/expr.c index 6242fe6607f..894545195b2 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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);