diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2001-10-13 01:54:37 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2001-10-13 01:54:37 +0000 |
commit | 5e3db92d6bd9c3fa70b4a0cd7efc5e6a851c5e4e (patch) | |
tree | b518dfe299211b1b79b0dca9a4455dbff8d604fa | |
parent | cb580d5cac946026d3a8c75c0dbfc1818438f6ba (diff) | |
download | gcc-5e3db92d6bd9c3fa70b4a0cd7efc5e6a851c5e4e.zip gcc-5e3db92d6bd9c3fa70b4a0cd7efc5e6a851c5e4e.tar.gz gcc-5e3db92d6bd9c3fa70b4a0cd7efc5e6a851c5e4e.tar.bz2 |
cris.c (cris_legitimate_pic_operand): Kludge around missing CONSTANT_P test in core GCC.
* config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
missing CONSTANT_P test in core GCC.
From-SVN: r46239
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/cris/cris.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a6de0e3..9a27a7a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-10-13 Hans-Peter Nilsson <hp@axis.com> + + * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around + missing CONSTANT_P test in core GCC. + 2001-10-12 Neil Booth <neil@daikokuya.demon.co.uk> * cppmain.c (struct printer): New member source. diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index 668811e..4a9e08d 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -2239,6 +2239,12 @@ 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] |