From 8bce9e986f8ef941b4d34b6579261fd5df9722c6 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 29 Nov 2005 22:18:04 +0000 Subject: [PATCH] fold-const.c (negate_expr): Add break after the if. 2005-11-29 Andrew Pinski * fold-const.c (negate_expr) : Add break after the if. From-SVN: r107682 --- gcc/ChangeLog | 5 +++++ gcc/fold-const.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a736655b6f..031d15e7d06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-29 Andrew Pinski + + * fold-const.c (negate_expr) : Add break after + the if. + 2005-11-29 Andrew Pinski * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 2718af1490f..c818011bb6d 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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); -- 2.30.2