public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de> To: gcc-gnats@gcc.gnu.org Subject: c/7696: Spurious shift warning Date: Fri, 23 Aug 2002 05:06:00 -0000 [thread overview] Message-ID: <200208231148.g7NBm8VS018532@sykes.suse.de> (raw) >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:
next reply other threads:[~2002-08-23 11:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-08-23 5:06 Andreas Schwab [this message] 2003-01-08 2:15 bangerth 2003-04-06 12:26 Christian Ehrhardt 2003-04-06 15:26 Falk Hueffner
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200208231148.g7NBm8VS018532@sykes.suse.de \ --to=schwab@suse.de \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).