From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 414953858C62; Tue, 18 Jul 2023 23:22:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 414953858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1689722558; bh=7WRs8qiGgq1W+znX61R4eqwUUrB5qqqV3uQq2p4z2S4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CTu5ZcROAZyBZoyKl6lsTsILVbGv1GLn336Wa7pPclKhLhQ9DEzi5/5tcDAr3DoWT IE1EyiEOUctsGqEMmKFG6Duy99TMWSdswnF9ipmEDpxqHHQa9F/7JoO8tk/X4pAOEF aGkUVyiPriEIpUIJHVGYWyXUTSxBjKP9xhZvYHe4= From: "rjmccall at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110728] should __attribute__((cleanup())) callback get invoked for indirect edges of asm goto Date: Tue, 18 Jul 2023 23:22:37 +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: rjmccall at gmail dot com 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=3D110728 --- Comment #5 from John McCall --- > If this gets changed in GCC, I'd be happy to modify clang to match that u= pdated behavior. Policy-wise, I don't think clang would accept a patch making this UB (effectively what not calling the destructor/cleanup means) instead of ill-formed unless a standards body forced us to. Not calling the destructor/cleanup seems like clearly undesirable behavior, and if we can define that away in the compiler with relative ease, we should.=