diff options
author | Alexander Kabaev <kan@FreeBSD.org> | 2002-10-10 04:40:18 +0000 |
---|---|---|
committer | Alexander Kabaev <kan@FreeBSD.org> | 2002-10-10 04:40:18 +0000 |
commit | 423134a002b5ea83b68270c33130754764fa5f4c (patch) | |
tree | f505e08c93c8d3d8e51f5dac050b459cce4d4ae2 /contrib/gcc/calls.c | |
parent | 10882802bbbce9d52009a76b83e5508d388df999 (diff) | |
download | src-423134a002b5ea83b68270c33130754764fa5f4c.tar.gz src-423134a002b5ea83b68270c33130754764fa5f4c.zip |
Gcc 3.2.1-prerelease from the FSF anoncvs repo gcc-3_2-branch on October 9th 2002 20:15 EST.
Notes
Notes:
svn path=/vendor/gcc/dist/; revision=104752
Diffstat (limited to 'contrib/gcc/calls.c')
-rw-r--r-- | contrib/gcc/calls.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/gcc/calls.c b/contrib/gcc/calls.c index c0a73e7740e9..449c933d212a 100644 --- a/contrib/gcc/calls.c +++ b/contrib/gcc/calls.c @@ -3666,6 +3666,14 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p) #endif ; + /* If this was a CONST function, it is now PURE since + it now reads memory. */ + if (flags & ECF_CONST) + { + flags &= ~ECF_CONST; + flags |= ECF_PURE; + } + if (GET_MODE (val) == MEM && ! must_copy) slot = val; else if (must_copy) |