public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/48418] [4.6/4.7/4.8 Regression] Bit shift operator >>= Date: Wed, 09 Jan 2013 14:51:00 -0000 [thread overview] Message-ID: <bug-48418-4-ssOM6Y42iV@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-48418-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48418 --- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-09 14:51:17 UTC --- Author: jakub Date: Wed Jan 9 14:51:09 2013 New Revision: 195051 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195051 Log: PR c/48418 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is either negative or bigger or equal to type precision of the first operand. * typeck.c (cp_build_binary_op): For LSHIFT_EXPR and RSHIFT_EXPR, call maybe_constant_value for the negative or too big shift count warnings. * c-c++-common/pr48418.c: New test. Added: trunk/gcc/testsuite/c-c++-common/pr48418.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog
next prev parent reply other threads:[~2013-01-09 14:51 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-04-02 20:30 [Bug c/48418] New: " lisp2d at lisp2d dot net 2011-04-02 21:07 ` [Bug c/48418] " ebotcazou at gcc dot gnu.org 2011-04-02 21:43 ` d.g.gorbachev at gmail dot com 2011-04-03 11:09 ` [Bug c/48418] [4.5/4.6/4.7 Regression] " rguenth at gcc dot gnu.org 2011-04-03 11:21 ` joseph at codesourcery dot com 2011-04-10 10:47 ` rguenth at gcc dot gnu.org 2011-04-28 15:23 ` rguenth at gcc dot gnu.org 2011-08-24 20:52 ` pinskia at gcc dot gnu.org 2011-08-25 7:19 ` rguenth at gcc dot gnu.org 2012-07-02 11:25 ` [Bug c/48418] [4.5/4.6/4.7/4.8 " rguenth at gcc dot gnu.org 2013-01-08 14:45 ` [Bug c/48418] [4.6/4.7/4.8 " jakub at gcc dot gnu.org 2013-01-09 14:51 ` jakub at gcc dot gnu.org [this message] 2013-01-09 15:03 ` [Bug c/48418] [4.6/4.7 " jakub at gcc dot gnu.org 2013-02-01 9:11 ` jakub at gcc dot gnu.org
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=bug-48418-4-ssOM6Y42iV@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).