diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-11-14 00:07:27 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-11-14 00:07:27 +0000 |
commit | 62aa7862114c21c6a4f38e4113b5ce37c435d489 (patch) | |
tree | 1ed9b899bbe18e155415baaf3f9f4beafd425fb0 /gcc/tree.c | |
parent | a59e9a3a19b8ae18b9922541ebfc8cdd13858f1b (diff) | |
download | ppe42-gcc-62aa7862114c21c6a4f38e4113b5ce37c435d489.tar.gz ppe42-gcc-62aa7862114c21c6a4f38e4113b5ce37c435d489.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@16472 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 2129f8491e1..ecd6961daf6 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) |