From 0cb733bf23082f82c44e9d8aac5264dfa516e9d3 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 6 Oct 2003 08:02:54 +0000 Subject: 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/config/mips/mips.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/config/mips/mips.c') 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); -- cgit v1.1