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
This commit is contained in:
Richard Sandiford 2003-10-06 08:02:54 +00:00 committed by Richard Sandiford
parent 77a7ed6029
commit 0cb733bf23
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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);