From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3AF08385840A; Fri, 15 Mar 2024 22:08:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3AF08385840A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710540530; bh=zeD3mO9s1opgFzq1/+Xxtlj4godRp7eBPE2+jmiL+SE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KsZ2ftJdYNGd5SlttslzfonLVwT2LLEYMaJj/gvv5sIIs6aMMqREaHxKmPCrO3sUS dhAadqVPlZ2RGp1KWIAosGbM2YAlewgHU2rApMO1rX7hv2+fu3Efq96/+GqSib/TQ2 uNyQ77QP4i87QAUhKyvm5fQ7BDqD/19smBliRx+A= From: "jfb at chromium dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114357] Add a way to not call deconstructors for non-auto decls, like clang's no_destroy attribute Date: Fri, 15 Mar 2024 22:08:50 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jfb at chromium dot 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: --- 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114357 --- Comment #3 from JF Bastien --- The LLVM feature was added for XNU, because the kernel never runs its own global C++ destructors (but the compiler can't know this). It saved a non-trivial amount of code generation.=