OSDN Git Service

* config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
authordj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jan 2002 02:09:02 +0000 (02:09 +0000)
committerdj <dj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 Jan 2002 02:09:02 +0000 (02:09 +0000)
using rtx_equal_p, not by comparing pointers.

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

gcc/ChangeLog
gcc/config/sparc/sparc.c

index 8854fa8..ac35801 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-25  DJ Delorie  <dj@redhat.com>
+
+       * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
+       using rtx_equal_p, not by comparing pointers.
+
 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
 
        * emit-rtl.c (gen_rtx_REG): Always return the same rtx
index 53f8c41..8cc4449 100644 (file)
@@ -1423,7 +1423,7 @@ sparc_emit_set_symbolic_const64 (op0, op1, temp1)
         We _MUST_ have a separate temporary at this point,
         if we don't barf immediately instead of generating
         incorrect code.  */
-      if (temp1 == op0)
+      if (rtx_equal_p (temp1, op0))
        abort ();
 
       emit_insn (gen_sethh (op0, op1));