From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27067 invoked by alias); 23 Aug 2002 11:56:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27047 invoked by uid 71); 23 Aug 2002 11:56:02 -0000 Resent-Date: 23 Aug 2002 11:56:02 -0000 Resent-Message-ID: <20020823115602.27046.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Andreas Schwab Received: (qmail 22744 invoked from network); 23 Aug 2002 11:48:09 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 23 Aug 2002 11:48:09 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id 07A1D146E5 for ; Fri, 23 Aug 2002 13:48:09 +0200 (MEST) Message-Id: <200208231148.g7NBm8VS018532@sykes.suse.de> Date: Fri, 23 Aug 2002 05:06:00 -0000 From: Andreas Schwab To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c/7696: Spurious shift warning X-SW-Source: 2002-08/txt/msg00487.txt.bz2 List-Id: >Number: 7696 >Category: c >Synopsis: Spurious shift warning >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Aug 23 04:56:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.2 >Organization: >Environment: System: Linux sykes 2.4.18-SMP #1 SMP Thu May 16 09:03:14 UTC 2002 ia64 unknown unknown GNU/Linux Architecture: ia64 host: ia64-suse-linux-gnu build: ia64-suse-linux-gnu target: ia64-suse-linux-gnu configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit ia64-suse-linux >Description: There is a spurious warning about shift count too big, although the operand ist cast to the proper type. >How-To-Repeat: $ cat shift.c struct ia64_psr { unsigned long cpl : 2; }; unsigned long foo (struct ia64_psr *c) { return (unsigned long) c->cpl << 62; } $ gcc -O2 -g -Wall -c -o shift.o shift.c shift.c: In function `foo': shift.c:7: warning: left shift count >= width of type >Fix: >Release-Note: >Audit-Trail: >Unformatted: