From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5121 invoked by alias); 26 Oct 2012 09:56:58 -0000 Received: (qmail 4958 invoked by uid 48); 26 Oct 2012 09:56:32 -0000 From: "dimhen at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55079] New: [4.8 regeression] false positive -Warray-bounds Date: Fri, 26 Oct 2012 09:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dimhen at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: 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: 2012-10/txt/msg02421.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55079 Bug #: 55079 Summary: [4.8 regeression] false positive -Warray-bounds Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: dimhen@gmail.com $ cat tst.c int f(unsigned len, int buflen) { unsigned taillen; unsigned slen; unsigned i; int b[17]; /* needed <= 17 to trigger Warning */ int j = 0; /* needed to trigger Warning */ b[0] = 0; taillen= buflen & 7; /* taillen [0..7] */ if(taillen) { /* taillen [1..7] */ slen= 8 - taillen; /* slen [7..1] */ if (len