From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 371A53858D34; Fri, 5 Apr 2024 17:42:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 371A53858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712338929; bh=vTSBQGec8zrZwiE2J/Wj8NBGAHcj7DOWyYdFvHZor2s=; h=From:To:Subject:Date:From; b=ZDPX5SW3K0s0lyglmgoaFlw4tpJ2RBANLPv1ihXzzJ+j+K3/mG19cqNAEWFvzUCrV xhrP62vi28f+tcXToFfB5CpPqi8JGm5ykclSNdDIckqf+AK1Tam2NZTDfVdK8pkh4M q+X45KEa/8UPaBa1Ajuoq1gvAb/qfgMdGMUHRI5U= From: "patrick at rivosinc dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/114608] New: [14 Regression] Undefined reference in output asm with -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf Date: Fri, 05 Apr 2024 17:42:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: patrick at rivosinc dot com 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 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114608 Bug ID: 114608 Summary: [14 Regression] Undefined reference in output asm with -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: patrick at rivosinc dot com Target Milestone: --- Program: static short a[7]; void b() { a[6] =3D 0; } Compiler flags: -fipa-reference -fipa-reference-addressable -fsection-anchors -gbtf Godbolt diff between 13.2 and 14.0: RISC-V: https://godbolt.org/z/7d1nodoMz X86: https://godbolt.org/z/YGdej7Y7c Godbolt showing failure: RISCV: https://godbolt.org/z/fd3cKP6jM X86: https://godbolt.org/z/h3WhzK4nG Found via fuzzer.=