From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1BA0E3858C54; Thu, 22 Jun 2023 12:02:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BA0E3858C54 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687435336; bh=ksBucGFBYHr1m5qIqlcglJ0zceAHdOVSOc+z7jxP5mk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fynfRbyAXpYETVT40J/J95+kuNDGMzLJvTnwYf+8PupAsfEL4eQ8W8BvL2amwuXtp zTWDpmcngU2beSB0IhRkZ9+3MLskglQqi1n1BwshtD6qQgVGFhqDziE2QMfsXw2rGU 93ISmHtFiuzpAKXIeQj534cac0RzF3cE57v6RO84= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/110334] [13/14 Regresssion] unused functions not eliminated before LTO streaming Date: Thu, 22 Jun 2023 12:02:15 +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: 13.1.1 X-Bugzilla-Keywords: lto, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D110334 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #5 from Richard Biener --- So the CTOR we call is built (well, cloned from that) via implicitly_declare_fn (kind=3Dsfk_inheriting_constructor, type=3D, const_p=3Dfalse, pattern_fn=3D, inherited_parms=3D) at /space/rguenther/src/gcc11queue/gcc/cp/method.cc:3245 and 'pattern_fn' has the always_inline attribute here but we don't seem to copy that anywhere? -fno-new-inheriting-ctors also "fixes" the optimization issue for me. So do we fail to copy DECL_ATTRIBUTES for these kind of implicitely declared functions (which are in fact explicitely declared?!)?=