From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4737C3857023; Fri, 12 May 2023 14:42:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4737C3857023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683902520; bh=TY90dGtgrO3XhU79bxVklZmLSq02z+MYVTasWvDwTlY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=esodzUx7xEiTp7LLNY1TTkZfFS3PYUQLJltRqorAVhoA3F66seJdtzD9DVJEzVrhO tKtlEPcpJSLiRfSqUzV3cMTqJ2ZygYrJIDUzat3Yg2XsntPrYvKHxQn1FaiKNhVY2J 3ubLED8H04Qq9SoatM4QK1bMpCsL1/Hrw+UzyPcU= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106943] GCC building clang/llvm with LTO flags causes ICE in clang Date: Fri, 12 May 2023 14:41:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: needs-reduction, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: WAITING 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=3D106943 --- Comment #16 from Xi Ruoyao --- (In reply to Alexander Monakov from comment #14) > (In reply to Jan Hubicka from comment #13) > > Indeed it is quite long time problem with clang not building with lifet= ime > > DSE and strict aliasing. I wonder why this is not fixed on clang side? >=20 > Because the problems were not communicated? I knew that Firefox needed > -flifetime-dse=3D1, but it's the first time I hear that any such problems= in > Clang/LLVM were identified. >=20 > I could not find any workaround for lifetime-dse in SUSE spec file for > llvm16. Are you saying it was known and worked around somehow? Or it is n= ot > manifesting because LLVM is built without LTO? I guess it's because the "official" way to build LLVM with LTO is performin= g a 2-stage bootstrap and only enable LTO for stage 2 [1], and LLVM/Clang perfo= rms lifetime DSE less aggressively so it does not break itself... [1]: https://releases.llvm.org/16.0.0/docs/BuildingADistribution.html=