From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28536 invoked by alias); 14 Nov 2012 19:31:42 -0000 Received: (qmail 28454 invoked by uid 48); 14 Nov 2012 19:31:18 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/55079] [4.8 regression] false positive -Warray-bounds (also seen at -O3 bootstrap) Date: Wed, 14 Nov 2012 19:31: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Summary 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" Content-Transfer-Encoding: quoted-printable 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-11/txt/msg01281.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55079 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.8 regression] false |[4.8 regression] false |positive -Warray-bounds |positive -Warray-bounds | |(also seen at -O3 | |bootstrap) --- Comment #8 from Jan Hubicka 2012-11-14 19:= 31:16 UTC --- Hi, at -O3 bootstrap we have false positive on simplify-rtx.c ../../gcc/simplify-rtx.c: In function =E2=80=98rtx_def* simplify_plus_minus= (rtx_code, machine_mode, rtx, rtx)=E2=80=99: ../../gcc/simplify-rtx.c:4285:63: warning: array subscript is below array bounds [-Warray-bounds] while (j-- && simplify_plus_minus_op_data_cmp (ops[j].op, save.o= p)); the siplified testcase is as follows: int a[8]; void test(unsigned int n) { unsigned int i; unsigned int j; if (n<8) for (j=3D0;j