Commit 8580f7a0 by Richard Henderson Committed by Richard Henderson

emit-rtl.c (const_double_htab_eq): Distinguish integer and fp CONST_DOUBLE; use real_identical.

        * emit-rtl.c (const_double_htab_eq): Distinguish integer and
        fp CONST_DOUBLE; use real_identical.

From-SVN: r57520
parent 8dc24041
2002-09-25 Richard Henderson <rth@redhat.com>
* emit-rtl.c (const_double_htab_eq): Distinguish integer and
fp CONST_DOUBLE; use real_identical.
2002-09-25 Mark Mitchell <mark@codesourcery.com> 2002-09-25 Mark Mitchell <mark@codesourcery.com>
* doc/invoke.texi: Add more -Wabi examples. * doc/invoke.texi: Add more -Wabi examples.
......
...@@ -243,11 +243,12 @@ const_double_htab_eq (x, y) ...@@ -243,11 +243,12 @@ const_double_htab_eq (x, y)
if (GET_MODE (a) != GET_MODE (b)) if (GET_MODE (a) != GET_MODE (b))
return 0; return 0;
for (i = 0; i < sizeof(CONST_DOUBLE_FORMAT)-1; i++) if (GET_MODE (a) == VOIDmode)
if (XWINT (a, i) != XWINT (b, i)) return (CONST_DOUBLE_LOW (a) == CONST_DOUBLE_LOW (b)
return 0; && CONST_DOUBLE_HIGH (a) == CONST_DOUBLE_HIGH (b));
else
return 1; return real_identical (CONST_DOUBLE_REAL_VALUE (a),
CONST_DOUBLE_REAL_VALUE (b));
} }
/* Returns a hash code for X (which is a really a mem_attrs *). */ /* Returns a hash code for X (which is a really a mem_attrs *). */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment