2005-11-29 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2005 22:18:04 +0000 (22:18 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 29 Nov 2005 22:18:04 +0000 (22:18 +0000)
        * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
        the if.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107682 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fold-const.c

index 8a73665..031d15e 100644 (file)
@@ -1,5 +1,10 @@
 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
 
+       * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
+       the if.
+
+2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
+
        * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
        (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
        (negate_expr): Here.
index 2718af1..c818011 100644 (file)
@@ -1059,6 +1059,7 @@ negate_expr (tree t)
       if (INTEGRAL_TYPE_P (type))
         return fold_build2 (PLUS_EXPR, type, TREE_OPERAND (t, 0),
                             build_int_cst (type, 1));
+      break;
       
     case INTEGER_CST:
       tem = fold_negate_const (t, type);