From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E90C3858C5E; Mon, 24 Apr 2023 18:41:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E90C3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682361693; bh=qVazeAftLwUckeOD/+9pWgP2kURrfkK/Noq4J3aV4dY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hu5yiPr/hbLnARVyvZ1DlmzoGbNkpSd+BE4ZET660b6hGFaoI32Vlnm6ODc7Dtr+C QTHXaU1TdtOOWc3yQ1ijcmr6P7Kquh0GTumDr1dzxsNj5FZf1RfYGldMs+CHkLf8Nj sRxYyZJkdK+wXE6u0cA5fchxMSBBkHCOKYcWUriU= From: "gjl 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: Mon, 24 Apr 2023 18:41:32 +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: gjl 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: cc attachments.created 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 Georg-Johann Lay changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gjl at gcc dot gnu.org --- Comment #19 from Georg-Johann Lay --- Created attachment 54912 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54912&action=3Dedit pr105532.diff: Proposed patch for the AVR backend Here is a proposed, untested patch. gcc/ PR target/105532 * config/avr/avr.cc (opts.h): Include it. (avr_option_override): Set --param_min_pagesize=3D0. gcc/testsuite/ PR target/105532 * gcc.target/avr/torture/pr105532.c: New test.=