From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED5843858C50; Fri, 28 Jul 2023 16:53:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED5843858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1690563209; bh=46SUcZNzO6OK9rWBWmVaypibZ+nqKFFiFJoGW27+TBA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZakJikk0caeWszOSnuHXF3ukHxbeYeCuFcoS1dnfcV3EIUbdeUIJ+YjezDOMemY1d 5wiWJ5QO/Vhsb5EmDjQVOrsGlp4HQ47F81P6hBmCesJH8Dl07o69J+necvSy0jE6jE VtotCupkUK6D6yS8OV33KA3ZQOrYo92IDeQZfUBI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110846] Noinline attribute on a destructor only honored when on the member function declaration, does not wok on definition Date: Fri, 28 Jul 2023 16:53:29 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: everconfirmed bug_status cf_reconfirmed_on 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=3D110846 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-07-28 --- Comment #1 from Andrew Pinski --- The clone seems not to have the attribute: /app/example.cpp:20:1: note: Inlining test::~test()/10 to void g()/6 with frequency 1.00 _ZN4testD2Ev/10 (test::~test()) @0x7f3fcc1bb220 Type: function definition analyzed Visibility: semantic_interposition public next sharing asm name: 4 References: __gxx_personality_v0/9 (addr)=20 Referring:=20 Function test::~test()/10 is inline copy in void g()/6 Clone of _ZN4testD2Ev/4 Availability: local Function flags: body local Called by: _Z1gv/6 (inlined)=20 Calls: _Z1fv/8=20 Confirmed.=