diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-11 05:00:10 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-11 05:00:10 +0000 |
commit | bdb135dc4990d5ab925fd2fb9575211283571e75 (patch) | |
tree | af1e1fa46f394fa5c6e120f0b3af4810b34f7578 /gcc/fold-const.c | |
parent | c23c6f48b0df6921b0c52856a0c7268850f47ad1 (diff) | |
download | gcc-bdb135dc4990d5ab925fd2fb9575211283571e75.tar.gz |
* fold-const.c (operand_equal_p) <INTEGER_CST, REAL_CST, VECTOR_CST>:
Don't check for TREE_CONSTANT_OVERFLOW when comparing constants.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118685 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 7c769d5c42e..e1c3c1fafd2 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2545,24 +2545,16 @@ operand_equal_p (tree arg0, tree arg1, unsigned int flags) switch (TREE_CODE (arg0)) { case INTEGER_CST: - return (! TREE_CONSTANT_OVERFLOW (arg0) - && ! TREE_CONSTANT_OVERFLOW (arg1) - && tree_int_cst_equal (arg0, arg1)); + return tree_int_cst_equal (arg0, arg1); case REAL_CST: - return (! TREE_CONSTANT_OVERFLOW (arg0) - && ! TREE_CONSTANT_OVERFLOW (arg1) - && REAL_VALUES_IDENTICAL (TREE_REAL_CST (arg0), - TREE_REAL_CST (arg1))); + return REAL_VALUES_IDENTICAL (TREE_REAL_CST (arg0), + TREE_REAL_CST (arg1)); case VECTOR_CST: { tree v1, v2; - if (TREE_CONSTANT_OVERFLOW (arg0) - || TREE_CONSTANT_OVERFLOW (arg1)) - return 0; - v1 = TREE_VECTOR_CST_ELTS (arg0); v2 = TREE_VECTOR_CST_ELTS (arg1); while (v1 && v2) |