From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C026B385189C; Wed, 23 Nov 2022 17:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C026B385189C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669226187; bh=mUWh01vi3ZBiCfPxQikg6eWGR5n9U9uxPNN3aA36nH0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=clWVE1k9Y5to8vgVxW0GnDgDkI07kY8uuyXWljHEfx90tmRkmgpWhInTfSh7nHgMK LIza19zkdcXvbfW8WJAX3dQwtsNYHTDfc1o5Sbb51CD2kI/zlW3uGLsfI++L9Rhs4W ujASeyTfBlLKI0El7btwzMoov/NfmDeyns/go0Hc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105523] Wrong warning array subscript [0] is outside array bounds Date: Wed, 23 Nov 2022 17:56:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105523 --- Comment #9 from Andrew Pinski --- (In reply to rudi from comment #5) > Compiling atf with gcc-12.1.0 for the NXP iMX8 target results in the same > error. >=20 > CFLAGS=3D+=E2=80=9C --param=3Dmin-pagesize=3D0=E2=80=9D allows the build = to complete. Yes ATF needs to have that addded to their makefile as it is a firmware whi= ch has memory at 0. Note this PR is about AVR only as that target always have memory at 0. Most other targets should not set --param=3Dmin-pagesize=3D0 by default (there are a few others); it is up to the firmware software to get = set this option to tell GCC there is memory at location 0; because we want to w= arn about the normal user case. Firmware is a special case and all.=