From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6A806388A02F; Sat, 4 Apr 2020 10:11:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6A806388A02F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1585995118; bh=BxJ9jzc2rkxxQ2lCakM08fR5zPCLy4XBTeyQsnbP47Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gnsL4xaWKGCx8LeIf+eX++dxl+55pAjp6/Ot7fx46NwyJZ94bSLuzh4hnT9hSPs3O 3BGCTBkzA80Frc2KUvOuCnIrQGATbSp5uRmJQniQM12VvGDc7GGSfk/3KaRKpvkDdP YIvYRAE5KuYUyT36uXz6aBFEHHI7bCKk6/dJwcP8= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/93369] [10 regression] g++.dg/lto/pr64076 fails Date: Sat, 04 Apr 2020 10:11:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Apr 2020 10:11:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93369 --- Comment #17 from Jan Hubicka --- Note that to fully fix the problem we need to resolve the way aliases works. In this case ODR violation makes one COMDAT section to contain only ctor, w= hile other contains ctor and its thunk. The first COMDAT wins which makes the t= hunk to call alias of a symbol prevailed by different COMDAT. This still work w/o LTO and to immitate what happens in linker correctly we need ability to load both constructors https://gcc.gnu.org/pipermail/gcc-patches/2020-March/542733.html For invalid code like this that does not matter much, but the patch has als= o a valid testcase. I can also however patch around and silence the verifier ICE, but it would = be just symptomatic workaround=