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
This commit is contained in:
parent
cb580d5cac
commit
5e3db92d6b
|
@ -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>
|
2001-10-12 Neil Booth <neil@daikokuya.demon.co.uk>
|
||||||
|
|
||||||
* cppmain.c (struct printer): New member source.
|
* cppmain.c (struct printer): New member source.
|
||||||
|
|
|
@ -2239,6 +2239,12 @@ int
|
||||||
cris_legitimate_pic_operand (x)
|
cris_legitimate_pic_operand (x)
|
||||||
rtx 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
|
/* The PIC representation of a symbol with a GOT entry will be (for
|
||||||
example; relocations differ):
|
example; relocations differ):
|
||||||
sym => [rPIC+sym:GOT]
|
sym => [rPIC+sym:GOT]
|
||||||
|
|
Loading…
Reference in New Issue