aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2003-10-06 08:02:54 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2003-10-06 08:02:54 +0000
commit0cb733bf23082f82c44e9d8aac5264dfa516e9d3 (patch)
tree74e6d8b98c66e85dda413b0c670c6d52fdea242d /gcc
parent77a7ed60290a6980b3f31ac3d2db6266ce06c4b3 (diff)
downloadgcc-0cb733bf23082f82c44e9d8aac5264dfa516e9d3.zip
gcc-0cb733bf23082f82c44e9d8aac5264dfa516e9d3.tar.gz
gcc-0cb733bf23082f82c44e9d8aac5264dfa516e9d3.tar.bz2
mips.c (mips_classify_constant): Only allow UNSPECs if TARGET_EXPLICIT_RELOCS.
* config/mips/mips.c (mips_classify_constant): Only allow UNSPECs if TARGET_EXPLICIT_RELOCS. From-SVN: r72137
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bd0f005..444fd58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-06 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
+ if TARGET_EXPLICIT_RELOCS.
+
2003-10-06 Mark Mitchell <mark@codesourcery.com>
PR bootstrap/12512
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 543b112..0d2f931 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -853,7 +853,8 @@ mips_classify_constant (struct mips_constant_info *info, rtx x)
x = XEXP (x, 0);
}
- if (GET_CODE (x) == UNSPEC
+ if (TARGET_EXPLICIT_RELOCS
+ && GET_CODE (x) == UNSPEC
&& mips_reloc_offset_ok_p (XINT (x, 1), info->offset))
{
info->reloc = XINT (x, 1);