aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1997-11-14 00:07:27 +0000
committerJim Wilson <wilson@gcc.gnu.org>1997-11-13 16:07:27 -0800
commit41c9120baf04bf432d39a11298f2550292581922 (patch)
tree1ed9b899bbe18e155415baaf3f9f4beafd425fb0 /gcc/tree.c
parent323d8e7b661297d87002730d2e3f55bca134baaf (diff)
downloadgcc-41c9120baf04bf432d39a11298f2550292581922.zip
gcc-41c9120baf04bf432d39a11298f2550292581922.tar.gz
gcc-41c9120baf04bf432d39a11298f2550292581922.tar.bz2
patch from paul eggert to fix -0.0/0.0 confusion that breaks glibc
* real.h (REAL_VALUES_IDENTICAL): New macro. * expr.c (is_zeros_p): Don't consider -0.0 to be all zeros. * fold-const.c (operand_equal_p): Don't consider -0.0 to be identical to 0.0. * tree.c (simple_cst_equal): Don't consider -0.0 to have the same tree structure as 0.0. * varasm.c (immed_real_const_1): Use new REAL_VALUES_IDENTICAL macro instead of doing it by hand. From-SVN: r16472
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 2129f84..ecd6961 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -3840,7 +3840,7 @@ simple_cst_equal (t1, t2)
&& TREE_INT_CST_HIGH (t1) == TREE_INT_CST_HIGH (t2);
case REAL_CST:
- return REAL_VALUES_EQUAL (TREE_REAL_CST (t1), TREE_REAL_CST (t2));
+ return REAL_VALUES_IDENTICAL (TREE_REAL_CST (t1), TREE_REAL_CST (t2));
case STRING_CST:
return TREE_STRING_LENGTH (t1) == TREE_STRING_LENGTH (t2)