* tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.

From-SVN: r31038
This commit is contained in:
Richard Kenner 1999-12-20 21:23:30 +00:00 committed by Richard Kenner
parent b701041288
commit e545d37f6d
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
Mon Dec 20 15:00:04 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first.
* expr.c (store_constructor): New argument SIZE; pass to clear_storage.
(store_constructor_field, expand_expr): Pass new arg.

View File

@ -1425,6 +1425,10 @@ real_value_from_int_cst (type, i)
REAL_VALUE_TYPE d;
#ifdef REAL_ARITHMETIC
/* Clear all bits of the real value type so that we can later do
bitwise comparisons to see if two values are the same. */
bzero ((char *) &d, sizeof d);
if (! TREE_UNSIGNED (TREE_TYPE (i)))
REAL_VALUE_FROM_INT (d, TREE_INT_CST_LOW (i), TREE_INT_CST_HIGH (i),
TYPE_MODE (type));