OSDN Git Service

2005-07-19 James A. Morrison <phython@gcc.gnu.org>
authorphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jul 2005 03:30:58 +0000 (03:30 +0000)
committerphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jul 2005 03:30:58 +0000 (03:30 +0000)
commit8040d1c5b709efbb7114f788e44b4099cb9a8190
tree1deede4acfc6d0df887b5c1c33abf9c83e1ea611
parentc75b4594282e6b33803b8332acba704d057f8d97
2005-07-19  James A. Morrison  <phython@gcc.gnu.org>

        * fold-const.c (tree_expr_nonnegative_p): Only return true for
        ABS_EXPR when flag_wrapv is false because of INT_MIN.
        (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
        of an ABS_EXPR.
        (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
        ABS_EXPR<x>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102184 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-abs-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-abs-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/fold-abs-3.c [new file with mode: 0644]