aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-03-18 21:34:51 +0000
committerRichard Stallman <rms@gnu.org>1993-03-18 21:34:51 +0000
commit3e3f5658134438dcfb4ed65f19204cc52faeec16 (patch)
treef7751d8fc6afec0725d374a73d572b9d8c8973c3 /gcc
parent12d073e7c8c70ff2df0871bfa5cdf39c122ebac3 (diff)
downloadgcc-3e3f5658134438dcfb4ed65f19204cc52faeec16.zip
gcc-3e3f5658134438dcfb4ed65f19204cc52faeec16.tar.gz
gcc-3e3f5658134438dcfb4ed65f19204cc52faeec16.tar.bz2
(expand_expr): Don't ensure ref to a volatile value if it is a function.
From-SVN: r3781
Diffstat (limited to 'gcc')
-rw-r--r--gcc/expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 6242fe6..8945451 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);