From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17588 invoked by alias); 20 Jan 2013 20:17:55 -0000 Received: (qmail 17534 invoked by uid 48); 20 Jan 2013 20:17:34 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56051] Wrong expression evaluation Date: Sun, 20 Jan 2013 20:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-01/txt/msg01915.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56051 --- Comment #6 from Marc Glisse 2013-01-20 20:17:31 UTC --- (In reply to comment #5) > Yeah, I'm afraid assuming you never do 1 << 31 is going to break simply way too > much code in the wild. I noticed that clang warns for 1 << 31, and with -fsanitize=shift tells you if there is 1<