fold-const.c (negate_expr): Add break after the if.
authorAndrew Pinski <pinskia@physics.uc.edu>
Tue, 29 Nov 2005 22:18:04 +0000 (22:18 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Tue, 29 Nov 2005 22:18:04 +0000 (14:18 -0800)
2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>

        * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
        the if.

From-SVN: r107682

gcc/ChangeLog
gcc/fold-const.c

index 8a736655b6f7b8e8c0c670727cfaf02696fb6509..031d15e7d06f901261183aaa7586b6e9f9c97a97 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 2718af1490ff3e22411c55ecc4f4538706aa7114..c818011bb6d7bc412ffd1f1888618fc9e196cc70 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);