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>
* doc/invoke.texi: Add more -Wabi examples.
......
......@@ -243,11 +243,12 @@ const_double_htab_eq (x, y)
if (GET_MODE (a) != GET_MODE (b))
return 0;
for (i = 0; i < sizeof(CONST_DOUBLE_FORMAT)-1; i++)
if (XWINT (a, i) != XWINT (b, i))
return 0;
return 1;
if (GET_MODE (a) == VOIDmode)
return (CONST_DOUBLE_LOW (a) == CONST_DOUBLE_LOW (b)
&& CONST_DOUBLE_HIGH (a) == CONST_DOUBLE_HIGH (b));
else
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 *). */
......
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