Commit 0cb733bf by Richard Sandiford Committed by Richard Sandiford

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
parent 77a7ed60
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> 2003-10-06 Mark Mitchell <mark@codesourcery.com>
PR bootstrap/12512 PR bootstrap/12512
......
...@@ -853,7 +853,8 @@ mips_classify_constant (struct mips_constant_info *info, rtx x) ...@@ -853,7 +853,8 @@ mips_classify_constant (struct mips_constant_info *info, rtx x)
x = XEXP (x, 0); 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)) && mips_reloc_offset_ok_p (XINT (x, 1), info->offset))
{ {
info->reloc = XINT (x, 1); info->reloc = XINT (x, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment