sparc.c (sparc_emit_set_symbolic_const64): Compare using rtx_equal_p, not by comparing pointers.

* config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
using rtx_equal_p, not by comparing pointers.

From-SVN: r49237
This commit is contained in:
DJ Delorie 2002-01-25 21:09:02 -05:00 committed by DJ Delorie
parent e67051746f
commit 6cd444b4e0
2 changed files with 6 additions and 1 deletions

View 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

View 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));