From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 22FF63858D39; Mon, 1 Aug 2022 08:30:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22FF63858D39 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/106496] New: [13 Regression] bootstrap fail with out of bounds subscript warning on i686-darwin9 Date: Mon, 01 Aug 2022 08:30:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Aug 2022 08:30:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106496 Bug ID: 106496 Summary: [13 Regression] bootstrap fail with out of bounds subscript warning on i686-darwin9 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: iains at gcc dot gnu.org Target Milestone: --- Created attachment 53393 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53393&action=3Dedit preprocessed source, unreduced the following fail occurs for the stage2 build where Werror is in force. In file included from /src-local/gcc-master/gcc/hash-table.h:248, from /src-local/gcc-master/gcc/coretypes.h:486, from /src-local/gcc-master/gcc/tree-ssa-threadbackward.cc:2= 2: In member function =E2=80=98T& vec::operator[](unsigned int= ) [with T =3D basic_block_def*; A =3D va_heap]=E2=80=99, inlined from =E2=80=98const T& vec::operator[](unsigned int) const [w= ith T =3D basic_block_def*]=E2=80=99 at /src-local/gcc-master/gcc/vec.h:1486:20, inlined from =E2=80=98bool back_threader_profitability::profitable_path_= p(const vec&, tree, edge, bool*)=E2=80=99 at /src-local/gcc-master/gcc/tree-ssa-threadbackward.cc:781:37: /src-local/gcc-master/gcc/vec.h:890:19: warning: array subscript 4294967294= is above array bounds of =E2=80=98basic_block_def* [1]=E2=80=99 [-Warray-bound= s] 890 | return m_vecdata[ix]; | ~~~~~~~~~^ /src-local/gcc-master/gcc/vec.h: In member function =E2=80=98bool back_threader_profitability::profitable_path_p(const vec&, tree, edge, bool*)=E2=80=99: /src-local/gcc-master/gcc/vec.h:635:5: note: while referencing =E2=80=98vec::m_vecdata=E2=80=99 635 | T m_vecdata[1];=