summaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-24 10:09:06 +0000
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>2008-10-24 10:09:06 +0000
commit82012ffee75f593d1d0e48a4d1b2fa4843d8955d (patch)
tree700b750bc17a07e7749365330c49e0f595aaa435 /gcc/value-prof.c
parentc215ee9eb154ed539056d33520b0a1f132d47148 (diff)
downloadgcc-82012ffee75f593d1d0e48a4d1b2fa4843d8955d.tar.gz
2008-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c/7543 * value-prof.c (gimple_stringop_fixed_value): Use parentheses around bit operation. * profile.c (is_edge_inconsistent): Likewise. * fold-const.c (truth_value_p): Move from here... * tree.h (truth_value_p): ... to here. * c-tree.h (c_expr): Update description of original_code. * c-typeck.c (parser_build_unary_op): Set original_code. (parser_build_binary_op): Update call to warn_about_parentheses. * c-common.c (warn_about_parentheses): Take two additional arguments of the operands. Use a switch. Quote operators appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P. Add warning about !x | y and !x & y. * c-common.h (warn_about_parentheses): Update declaration. cp/ * typeck.c (build_x_binary_op): Update call to warn_about_parentheses. * parser.c (cp_parser_binary_expression): Add note about passing the correct code for unary expressions. testsuite/ * gcc.dg/Wparentheses-11.c: New. * g++.dg/warn/Wparentheses-25.C: New. XFAILED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141340 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 1900faa5299..120a68d61e8 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -1296,7 +1296,7 @@ gimple_stringop_fixed_value (gimple stmt, tree value, int prob, gcov_type count,
{
edge_iterator ei;
for (ei = ei_start (bb->succs); (e34 = ei_safe_edge (ei)); )
- if (!e34->flags & EDGE_ABNORMAL)
+ if (!(e34->flags & EDGE_ABNORMAL))
break;
}
else