From 0cb733bf23082f82c44e9d8aac5264dfa516e9d3 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 6 Oct 2003 08:02:54 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bd0f0053388..444fd589776 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-10-06 Richard Sandiford + + * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs + if TARGET_EXPLICIT_RELOCS. + 2003-10-06 Mark Mitchell PR bootstrap/12512 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 543b112cb7e..0d2f9313845 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); -- 2.30.2