Commit 17a35133 by Richard Sandiford Committed by Richard Sandiford

re PR target/12485 (MIPS -mxgot causes "bad" exception handling code.)

	PR target/12485
	* config/mips/mips.c (mips_load_got): GOT accesses can't trap.

From-SVN: r72066
parent 8b47fa06
2003-10-03 Richard Sandiford <rsandifo@redhat.com>
PR target/12485
* config/mips/mips.c (mips_load_got): GOT accesses can't trap.
2003-10-02 Mark Mitchell <mark@codesourcery.com>
PR optimization/12180
......
......@@ -1634,6 +1634,9 @@ mips_load_got (rtx base, rtx addr, int reloc)
gen_rtx_PLUS (Pmode, base, mips_reloc (addr, reloc)));
set_mem_alias_set (mem, mips_got_alias_set);
/* GOT references can't trap. */
MEM_NOTRAP_P (mem) = 1;
/* If we allow a function's address to be lazily bound, its entry
may change after the first call. Other entries are constant. */
if (reloc != RELOC_CALL16 && reloc != RELOC_CALL_LO)
......
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