Commit bd2328c6 by Manfred Hollstein

typeck.c (build_binary_op_nodefault): Correctly place parens around && and || in expression.

�
	* typeck.c (build_binary_op_nodefault): Correctly place parens around
	&& and || in expression.

From-SVN: r18504
parent 90b4710b
...@@ -3822,10 +3822,10 @@ build_binary_op_nodefault (code, orig_op0, orig_op1, error_code) ...@@ -3822,10 +3822,10 @@ build_binary_op_nodefault (code, orig_op0, orig_op1, error_code)
else if ((resultcode == EQ_EXPR || resultcode == NE_EXPR) else if ((resultcode == EQ_EXPR || resultcode == NE_EXPR)
&& ((op0_signed && TREE_CODE (orig_op1) == INTEGER_CST && ((op0_signed && TREE_CODE (orig_op1) == INTEGER_CST
&& int_fits_type_p (orig_op1, && int_fits_type_p (orig_op1,
signed_type (result_type)) signed_type (result_type)))
|| (op1_signed && TREE_CODE (orig_op0) == INTEGER_CST || (op1_signed && TREE_CODE (orig_op0) == INTEGER_CST
&& int_fits_type_p (orig_op0, && int_fits_type_p (orig_op0,
signed_type (result_type)))))) signed_type (result_type)))))
/* OK */; /* OK */;
else else
warning ("comparison between signed and unsigned"); warning ("comparison between signed and unsigned");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment