From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 373733858D35; Sat, 1 Jul 2023 21:52:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 373733858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688248375; bh=Q8LQR+k83fZnjcmF0dD2LkdcN3BJVroMm67GhTlnLUE=; h=From:To:Subject:Date:From; b=uKjnhxeSR+s6/kwHL4MvyjqiCWbS7PpN2QVEj8p2NJj7hPFmP0kic5XAcKgpu0w3c CUkdUaQlMx+fLtX3znDfk5ms1ihpPGxCKS4jy0VayqzIQ1aAaALk/a3fg/rPpD6LVq 7H6WMx3+T/PsF+clVbz0DlNr4r72A8aY8ef3Bu3g= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/110515] New: [14 Regression] llvm-15.0.7 possibly invalid code on -O3 Date: Sat, 01 Jul 2023 21:52:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110515 Bug ID: 110515 Summary: [14 Regression] llvm-15.0.7 possibly invalid code on -O3 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Created attachment 55447 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55447&action=3Dedit DwarfCompileUnit.cpp Initially the failure is observed on r14-2233-gfca6d9c12f5bf0 where llvm-15= .0.7 test suite fails a single test: Failed Tests (1): LLVM :: DebugInfo/X86/vla-multi.ll I think I shrunk it down to DwarfCompileUnit.cpp: $ g++ -std=3Dc++14 DwarfCompileUnit.cpp -O2 $cxxflags -o bug-O2 && ./bug-O2 Illegal instruction (core dumped) $ g++ -std=3Dc++14 DwarfCompileUnit.cpp -O1 $cxxflags -o bug-O1 && ./bug-O1 It's a very fragile test: - any inlines I try seem to repair the test - -fno-strict-aliasing unbreaks it (I believe the code is strict-aliasing clean) - optimization option changes repair the test $ g++ -v Using built-in specs. COLLECT_GCC=3D/<>/gcc-14.0.0/bin/g++ COLLECT_LTO_WRAPPER=3D/<>/gcc-14.0.0/libexec/gcc/x86_64-unknown-linux-= gnu/14.0.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 99999999 (experimental) (GCC)=