diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-08-25 15:04:09 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-08-25 15:04:09 +0000 |
commit | 2f06e1a67e8386223e650683a55ce73d4ff0212a (patch) | |
tree | f1b02ae6b14256e8a51a0d1abb1fb752abd4ec66 /gcc/fold-const.c | |
parent | f7f83f3eae191199ade4c1a83b39091ffad35f8b (diff) |
svn merge -r139093:139094 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_3-branchredhat/gcc-4_1-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch@139561 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 438820afecc..12a75ab943c 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -6311,10 +6311,8 @@ fold_widened_comparison (enum tree_code code, tree type, tree arg0, tree arg1) if ((code == EQ_EXPR || code == NE_EXPR || TYPE_UNSIGNED (TREE_TYPE (arg0)) == TYPE_UNSIGNED (shorter_type)) && (TREE_TYPE (arg1_unw) == shorter_type - || (TYPE_PRECISION (shorter_type) - > TYPE_PRECISION (TREE_TYPE (arg1_unw))) || ((TYPE_PRECISION (shorter_type) - == TYPE_PRECISION (TREE_TYPE (arg1_unw))) + >= TYPE_PRECISION (TREE_TYPE (arg1_unw))) && (TYPE_UNSIGNED (shorter_type) == TYPE_UNSIGNED (TREE_TYPE (arg1_unw)))) || (TREE_CODE (arg1_unw) == INTEGER_CST |