From 5e3db92d6bd9c3fa70b4a0cd7efc5e6a851c5e4e Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 13 Oct 2001 01:54:37 +0000 Subject: 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 --- gcc/config/cris/cris.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/config') 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 + 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] -- cgit v1.1