* fold-const.c (fold_comparison): New subroutine of fold_binary
commit6a451e879bb24436563e257b4741d9342a7378d4
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Feb 2006 18:56:31 +0000 (24 18:56 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Feb 2006 18:56:31 +0000 (24 18:56 +0000)
treeccf3fc8283c40f79587b2af4234aee4b98221395
parent949d56405f2ff50f1d98306fcb5f7f7f9bff638c
* fold-const.c (fold_comparison): New subroutine of fold_binary
containing transformations common to both the equality and
ordering relational operators, factored out of fold_binary.
(fold_binary): Separate out the equality operators (EQ_EXPR
and NE_EXPR) from the ordering operators (LT_EXPR, GT_EXPR,
LE_EXPR and GE_EXPR), calling fold_comparison to perform the
transformations common to both.
(fold_div_compare): Fix latent bugs in the previously unreachable
LT_EXPR and GE_EXPR cases.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111423 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c