From 5d9de0d0a5b5e807c92f01712e8dad06e0dfae75 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 9 Oct 2012 10:01:31 +0000 Subject: re PR c++/54194 (misleading suggestion about arithmetic in operand of '|') 2012-10-09 Paolo Carlini PR c++/54194 * tree.h: Add EXPR_LOC_OR_LOC. c-family/ 2012-10-09 Paolo Carlini PR c++/54194 * c-common.c (warn_about_parentheses): Add location_t parameter; use EXPR_LOC_OR_LOC. * c-common.h: Update declaration. c/ 2012-10-09 Paolo Carlini PR c++/54194 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses call. /cp 2012-10-09 Paolo Carlini PR c++/54194 * typeck.c (build_x_binary_op): Update warn_about_parentheses call. * parser.c (cp_parser_binary_expression): Use SET_EXPR_LOCATION on current.lhs. /testsuite 2012-10-09 Paolo Carlini PR c++/54194 * g++.dg/warn/Wparentheses-26.C: Adjust. * g++.dg/warn/Wparentheses-27.C: New. From-SVN: r192246 --- gcc/c/ChangeLog | 6 ++++++ gcc/c/c-typeck.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'gcc/c') diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 93c72f0..2a3f9a0 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2012-10-09 Paolo Carlini + + PR c++/54194 + * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses + call. + 2012-10-09 Marc Glisse PR c++/54427 diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index ae6b348..4855933 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -3254,7 +3254,8 @@ parser_build_binary_op (location_t location, enum tree_code code, /* Check for cases such as x+y<