From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 89D813858C20; Mon, 25 Dec 2023 11:06:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89D813858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703502374; bh=1Zv5bHCTsvL7YBLo1nFFKfnlJcQNWFOtljst2JGpibU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dcLziL8haXJ5Lg87TCix3f7FEOmOVKyVzU0mahsM8dzlkbI42GGVvtmHw5b5tYkvO H92wNG/eyKIG072Zq/2T1SwWJGgmDeFdx/nb35U87Ay4yNs6FHxzjBLmpauutiNCPS KTFvnNYmfmHvvCzMl0uKajAAyx1ZyGoOsqxD8WLM= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/83324] [feature request] Pragma or special syntax for guaranteed tail calls Date: Mon, 25 Dec 2023 11:06:10 +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: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also 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=3D83324 Sam James changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |arsen at gcc dot gnu.org, | |dmalcolm at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D110899 --- Comment #12 from Sam James --- (In reply to David Edelsohn from comment #11) > GIMPLE supports must_tail, but it is not exposed at the sources level / > attributes in GCC. >=20 > CPython is not adding the LLVM JIT at runtime. The proposal is to utilize > LLVM at build time to generate code templates that can be copied into the > CPython binary and patched with relocations. This is now up as https://github.com/python/cpython/pull/113465 and https://github.com/python/cpython/issues/113464. See also PR110899 and https://discourse.llvm.org/t/rfc-exposing-ghccc-calling-convention-as-prese= rve-none-to-clang/74233 (which is linked from the CPython PR for adding the JIT).=