From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nikam.ms.mff.cuni.cz (nikam.ms.mff.cuni.cz [195.113.20.16]) by sourceware.org (Postfix) with ESMTPS id 96B93385042F; Fri, 12 May 2023 14:29:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 96B93385042F Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=ucw.cz Authentication-Results: sourceware.org; spf=none smtp.mailfrom=kam.mff.cuni.cz Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 1BAF128AA15; Fri, 12 May 2023 16:29:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1683901750; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4fjQwSP+OedfL+PFCmMh6bzZsnYgvrhFvPA14dMbn64=; b=efZphuH0P5+GYk7yLFPvxhvRQoAIm671+WFh/EVx8FQleAbPJUAg4AYSWvcorLdoD/edjE g1CIGpP9wl3JfIomhdDGx1qHz7XOJiwHOt+FNDaAduSqPuhNX8O7Qu+pQvh+/KOjjq961Y ECS4EWNgIWCMwIor5J5y+9VnImNxuj0= Date: Fri, 12 May 2023 16:29:10 +0200 From: Jan Hubicka To: "amonakov at gcc dot gnu.org" Cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug c++/106943] GCC building clang/llvm with LTO flags causes ICE in clang Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > > Indeed it is quite long time problem with clang not building with lifetime > > DSE and strict aliasing. I wonder why this is not fixed on clang side? > > Because the problems were not communicated? I knew that Firefox needed > -flifetime-dse=1, but it's the first time I hear that any such problems in > Clang/LLVM were identified. > > 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 not manifesting > because LLVM is built without LTO? I think opensuse package outs-out LTO probably for this reason. I am sometimes using LLVM as benchmark of LTO and PGO, so it would be great to have this enabled in the packages, but I had no time to do that so far. LLVM built with LTO and PGO builds quite a lot faster. I was filling bugreport for that some time ago and it seems that the bugreport linked above has quite good analysis about what breaks.