mips.md (get_fnaddr): Avoid placing an "la" macro instruction in a branch delay slot...
authorChris Demetriou <cgd@broadcom.com>
Wed, 4 Dec 2002 19:39:57 +0000 (19:39 +0000)
committerChris Demetriou <cgd@gcc.gnu.org>
Wed, 4 Dec 2002 19:39:57 +0000 (11:39 -0800)
2002-12-04  Chris Demetriou  <cgd@broadcom.com>

        * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
        macro instruction in a branch delay slot, to avoid assembler
        warnings.

From-SVN: r59825

gcc/ChangeLog
gcc/config/mips/mips.md

index 45562a3fc111d7f1a498804c933697fda0f4f22e..579d88449876048219fcb7d5a34cd7b1d3b21e1a 100644 (file)
@@ -1,3 +1,9 @@
+2002-12-04  Chris Demetriou  <cgd@broadcom.com>
+
+       * config/mips/mips.md (get_fnaddr): Avoid placing an "la"
+       macro instruction in a branch delay slot, to avoid assembler
+       warnings.
+
 2002-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR c/7622
index 5a675108b109d1d7dc6b0bc2bfe4af189d035c82..c35d68e39bba134f9bbe095ffabf4f6d14e0f8f6 100644 (file)
@@ -10040,7 +10040,7 @@ ld\\t%2,%1-%S1(%2)\;daddu\\t%2,%2,$31\\n\\t%*j\\t%2"
    (clobber (reg:SI 31))]
   "TARGET_EMBEDDED_PIC
    && GET_CODE (operands[1]) == SYMBOL_REF"
-  "%($LF%= = . + 8\;bal\\t$LF%=\;la\\t%0,%1-$LF%=%)\;addu\\t%0,%0,$31"
+  "%($LF%= = . + 8\;bal\\t$LF%=\;nop;la\\t%0,%1-$LF%=%)\;addu\\t%0,%0,$31"
   [(set_attr "type"    "call")
    (set_attr "mode"    "none")
    (set_attr "length"  "16")])