aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-10-20 15:10:11 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2001-10-20 15:10:11 +0000
commit129c089988b855514665829f645965729099a15b (patch)
treef0126c8d4117026bfc91529a8068ae073ec8a404 /gcc/config
parent38ca929b576c3122771f5832c49fd6022e6303ea (diff)
downloadgcc-129c089988b855514665829f645965729099a15b.zip
gcc-129c089988b855514665829f645965729099a15b.tar.gz
gcc-129c089988b855514665829f645965729099a15b.tar.bz2
reload1.c (reload): Check CONSTANT_P before calling LEGITIMATE_PIC_OPERAND_P.
* reload1.c (reload): Check CONSTANT_P before calling LEGITIMATE_PIC_OPERAND_P. * config/cris/cris.c (cris_legitimate_pic_operand): Revert workaround of 2001-10-13. From-SVN: r46381
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/cris/cris.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c
index 4a9e08d..668811e 100644
--- a/gcc/config/cris/cris.c
+++ b/gcc/config/cris/cris.c
@@ -2239,12 +2239,6 @@ int
cris_legitimate_pic_operand (x)
rtx x;
{
- /* This test is due to a bug in the core of GCC. See
- <URL:http://gcc.gnu.org/ml/gcc-patches/2001-09/msg01038.html> for the
- real fix; we shouldn't need to test CONSTANT_P here. */
- if (! CONSTANT_P (x))
- return 0;
-
/* The PIC representation of a symbol with a GOT entry will be (for
example; relocations differ):
sym => [rPIC+sym:GOT]