From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19492 invoked by alias); 23 Oct 2012 22:33:30 -0000 Received: (qmail 19465 invoked by uid 48); 23 Oct 2012 22:33:17 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/53198] [4.6/4.7 Regression] gcc wrongly emits "array subscript is above array bounds" for simple arrays Date: Tue, 23 Oct 2012 22:33: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: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: Known to fail 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-10/txt/msg02125.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D53198 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.8.0 --- Comment #4 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2012-10-23 22:33:15 UTC --- (In reply to comment #3) > Created attachment 27801 [details] > another testcase - from xorg mouse driver This warns with GCC 4.8 r192379: pr53198.c: In function =E2=80=98CheckProtocol=E2=80=99: pr53198.c:35:30: warning: array subscript is above array bounds [-Warray-bounds] for (i =3D 0; internalNames[i]; i++) ^ It doesn't warn with gcc 4.5.1