From e545d37f6d993df2f2f56f957603b741ae2b9af8 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 20 Dec 1999 21:23:30 +0000 Subject: * tree.c (real_value_from_int_cst): Clear REAL_VALUE_TYPE object first. From-SVN: r31038 --- gcc/tree.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/tree.c') diff --git a/gcc/tree.c b/gcc/tree.c index 6f6caf9..dd8a6d4 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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)); -- cgit v1.1