From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2962 invoked by alias); 30 Mar 2009 01:38:55 -0000 Received: (qmail 2373 invoked by uid 48); 30 Mar 2009 01:38:36 -0000 Date: Mon, 30 Mar 2009 01:38:00 -0000 Message-ID: <20090330013836.2372.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/37985] unsigned char shift lacks "statement with no effect" warning In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tromey at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-03/txt/msg02160.txt.bz2 ------- Comment #2 from tromey at gcc dot gnu dot org 2009-03-30 01:38 ------- convert_to_integer sets TREE_NO_WARNING on the shift, causing cc1 to later bypass the warning. #0 convert_to_integer (type=0xb7cf62d8, expr=0xb7cee630) at ../../trunk/gcc/convert.c:542 #1 0x080a7069 in convert (type=0xb7cf62d8, expr=0xb7cee630) at ../../trunk/gcc/c-convert.c:101 #2 0x080a4769 in build_binary_op (location=334, code=RSHIFT_EXPR, orig_op0=0xb7cef1e0, orig_op1=0xb7d09054, convert_p=1) at ../../trunk/gcc/c-typeck.c:8573 #3 0x0808bb56 in parser_build_binary_op (location=334, code=RSHIFT_EXPR, arg1= {value = 0xb7cef1e0, original_code = ERROR_MARK}, arg2= {value = 0xb7d09054, original_code = ERROR_MARK}) at ../../trunk/gcc/c-typeck.c:2794 #4 0x080fb741 in c_parser_binary_expression (parser=0xb7d80850, after=0x0) at ../../trunk/gcc/c-parser.c:4738 -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37985