Index: gcc/c-family/c-common.c =================================================================== --- gcc/c-family/c-common.c (revision 232768) +++ gcc/c-family/c-common.c (working copy) @@ -11596,6 +11596,11 @@ || code_right == PLUS_EXPR || code_right == MINUS_EXPR) warning_at (EXPR_LOC_OR_LOC (arg_right, loc), OPT_Wparentheses, "suggest parentheses around arithmetic in operand of %<|%>"); + /* Check cases like (x instead of %<|%> when joining booleans"); /* Check cases like x|y==z */ else if (TREE_CODE_CLASS (code_left) == tcc_comparison) warning_at (EXPR_LOC_OR_LOC (arg_left, loc), OPT_Wparentheses, @@ -11642,6 +11647,11 @@ else if (code_right == MINUS_EXPR) warning_at (EXPR_LOC_OR_LOC (arg_right, loc), OPT_Wparentheses, "suggest parentheses around %<-%> in operand of %<&%>"); + /* Check cases like (x instead of %<&%> when joining booleans"); /* Check cases like x&y==z */ else if (TREE_CODE_CLASS (code_left) == tcc_comparison) warning_at (EXPR_LOC_OR_LOC (arg_left, loc), OPT_Wparentheses,