OSDN Git Service

PR target/32313
authordaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jun 2007 16:36:42 +0000 (16:36 +0000)
committerdaney <daney@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jun 2007 16:36:42 +0000 (16:36 +0000)
* config/mips/mips.md (cprestore): Mark $gp as used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125852 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3f990bd..a4b7d5d 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-19  David Daney  <ddaney@avtrex.com
+
+       PR target/32313
+       * config/mips/mips.md (cprestore): Mark $gp as used.
+
 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
 
        PR target/32369
index b89f5f9..2b3267a 100644 (file)
 ;; instruction.  Note that we continue to use .cprestore for explicit reloc
 ;; code so that jals inside inline asms will work correctly.
 (define_insn "cprestore"
-  [(unspec_volatile [(match_operand 0 "const_int_operand" "I,i")]
+  [(unspec_volatile [(match_operand 0 "const_int_operand" "I,i")
+                     (use (reg:SI 28))]
                    UNSPEC_CPRESTORE)]
   ""
 {