re PR target/12485 (MIPS -mxgot causes "bad" exception handling code.)
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 3 Oct 2003 06:55:02 +0000 (06:55 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 3 Oct 2003 06:55:02 +0000 (06:55 +0000)
PR target/12485
* config/mips/mips.c (mips_load_got): GOT accesses can't trap.

From-SVN: r72066

gcc/ChangeLog
gcc/config/mips/mips.c

index d04e8e3a93288080a7d87e30dd0e0ea0715224a2..3c80a52e68880f2970c680f8a846515de59c89c6 100644 (file)
@@ -1,3 +1,8 @@
+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
index 1cedc973d05bab9029242bcfb6ff78bcf01df62e..7ec8f68917b7592fbfa37f355b3eadc0682f847a 100644 (file)
@@ -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)