From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5698D3858D1E; Tue, 16 Apr 2024 15:14:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5698D3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713280486; bh=WjCDHezvhv3u0ApCTo3AE2WUIfNdQYIj9S5qSU7Ncn8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vivhxHu7CiO0CD10dx2lvUVPxEsfAMutZe3YjjGCFX/gAtB2MQl6rOXGoHmEjYmlW IJOOAR11wg9V1AbUNFw4hLKPQpryy6H0thfKxk/uPKjgdJnZ43iKrnlFr6X+ZiSdv4 BBIZ+NqkVl2G2U16h01nTqxIQwH6Rz+YLTe2wnKw= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/113208] [14 Regression] lto1: error: Alias and target's comdat groups differs since r14-5979-g99d114c15523e0 Date: Tue, 16 Apr 2024 15:14:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D113208 --- Comment #31 from Jakub Jelinek --- Created attachment 57960 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57960&action=3Dedit gcc14-pr113208.patch Here is my attempt to optimize it in the C++ FE. The ICE is gone and for pr113208_0.C compiled with -std=3Dc++20 -O1 -fkeep-inline-functions it emits the desirable _ZN6vectorI12QualityValueEC2ERKS1_ ctor in the _ZN6vectorI12QualityValueEC5ERKS1_ comdat group as well as an alias to it. But, compared to e.g. 13.2.1, the alias is for some reason no longer inlined into _ZN1kC2ERKS_ call. Honza, any ideas what I'm doing wrong?=