{"id":2224922,"url":"http://patchwork.ozlabs.org/api/patches/2224922/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260419144707.549245-1-ibuclaw@gdcproject.org/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260419144707.549245-1-ibuclaw@gdcproject.org>","list_archive_url":null,"date":"2026-04-19T14:47:07","name":"[committed] libphobos: Add @gcc.attributes.callingConvention","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"6d9ec0b6a84b3599e22e88ff0b27e3ce6be68f44","submitter":{"id":46728,"url":"http://patchwork.ozlabs.org/api/people/46728/?format=json","name":"Iain Buclaw","email":"ibuclaw@gdcproject.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260419144707.549245-1-ibuclaw@gdcproject.org/mbox/","series":[{"id":500512,"url":"http://patchwork.ozlabs.org/api/series/500512/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=500512","date":"2026-04-19T14:47:07","name":"[committed] libphobos: Add @gcc.attributes.callingConvention","version":1,"mbox":"http://patchwork.ozlabs.org/series/500512/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2224922/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2224922/checks/","tags":{},"related":[],"headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gdcproject.org header.i=@gdcproject.org\n header.a=rsa-sha256 header.s=MBO0001 header.b=CwsM108E;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=gdcproject.org header.i=@gdcproject.org\n header.a=rsa-sha256 header.s=MBO0001 header.b=CwsM108E","sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=gdcproject.org","sourceware.org; spf=pass smtp.mailfrom=gdcproject.org","server2.sourceware.org;\n arc=none smtp.remote-ip=80.241.56.172","outgoing_mbo_mout; dkim=none;\n spf=pass (outgoing_mbo_mout: domain of ibuclaw@gdcproject.org designates\n 2001:67c:2050:b231:465::202 as permitted sender)\n smtp.mailfrom=ibuclaw@gdcproject.org"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fzBLV3Yywz1yGt\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 20 Apr 2026 00:48:02 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 832924CCCA02\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 19 Apr 2026 14:48:00 +0000 (GMT)","from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172])\n by sourceware.org (Postfix) with ESMTPS id 050FD4AA6FFF\n for <gcc-patches@gcc.gnu.org>; Sun, 19 Apr 2026 14:47:12 +0000 (GMT)","from smtp202.mailbox.org (smtp202.mailbox.org\n [IPv6:2001:67c:2050:b231:465::202])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4fzBKV6L9qz9tWh;\n Sun, 19 Apr 2026 16:47:10 +0200 (CEST)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 832924CCCA02","OpenDKIM Filter v2.11.0 sourceware.org 050FD4AA6FFF"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 050FD4AA6FFF","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 050FD4AA6FFF","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776610033; cv=none;\n b=B7COQz1p4ugu0vvDNoX5+x3vWtIcMCw6TuRLPNR43nFaFlCwan0GlP7ybbuSu3r1cSaOai8obFTsCPLDXQ9gL1FXfIP0aZp2KAeYQo14del2Cmykip3jyy7STM5bQ95QCFyKEjyVgKVqEeo7NaSlN9+XEaPGjGV9k87m6LpyG5M=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776610033; c=relaxed/simple;\n bh=yaNVb3pgOa3H4kzrUtEazMkeABNlqNI0mfkxzZkCMS4=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=c+nT2QppR3kRkfhYoMO2nDTQvlCjNTF5s5XgrZcKyZG0Blvp0N09B+1IaJO10AxyPmA7HSCukS8PKieteXDRjTyN0cPvEORjA1LTnIiMHqA0kaWa3G57PWMuBeNQaVwFBhZ3+xHHd0dlspONzbfSn7XWHc1A8JsXLa6xRkvHf7c=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gdcproject.org;\n s=MBO0001; t=1776610030;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding;\n bh=vcDXGKhmN1yK5LTmCWxVcXSa6QMRSbn779pPH6hinpQ=;\n b=CwsM108Eg/cfDJ8hszeiE7ICCbHxKmcc6eC7t7IIyUwjOuK+2BqXECSd2BOvSgVosIi4CG\n s1VFGUqUJ7K0qnCyf99iDKpb3upxn8IOri9SzsR2/2ADKN7Fy4fUZ8A2lYrqXm0y5fbTwn\n nqMYZ0/bS3e27/+2+K0YYQBEYq3E4beF01Pm8vGAoznhboWU8L+/+PCFBK3VeIjlADEjCV\n 7xo9ugeA+D3U0ETTupf0tZSL0VP7pfUUFwvuS4VusrZmu8s4qfjHXHAXsGalaANGW/+kqd\n 4Njw/Xltxh9QrhxahO6mVCskf32uMHBAqyzrORAnjZaR8hMzB1n6EH6mq4bOZw==","From":"Iain Buclaw <ibuclaw@gdcproject.org>","To":"gcc-patches@gcc.gnu.org","Cc":"Iain Buclaw <ibuclaw@gdcproject.org>","Subject":"[committed][PATCH] libphobos: Add @gcc.attributes.callingConvention","Date":"Sun, 19 Apr 2026 16:47:07 +0200","Message-ID":"<20260419144707.549245-1-ibuclaw@gdcproject.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-Rspamd-Queue-Id":"4fzBKV6L9qz9tWh","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"Hi,\n\nThis patch adds the symbol @gcc.attributes.callingConvention for\ncompatibility with LDC, ignores any values passed to it, they will\npredominately be LDC-specific anyway.\n\nTested bootstrap and committed to mainline.\n\nRegards,\nIain.\n\n---\nlibphobos/ChangeLog:\n\n\t* libdruntime/gcc/attributes.d (callingConvention): New UDA.\n---\n libphobos/libdruntime/gcc/attributes.d | 3 +++\n 1 file changed, 3 insertions(+)","diff":"diff --git a/libphobos/libdruntime/gcc/attributes.d b/libphobos/libdruntime/gcc/attributes.d\nindex a69cb904009..c78c27f4227 100644\n--- a/libphobos/libdruntime/gcc/attributes.d\n+++ b/libphobos/libdruntime/gcc/attributes.d\n@@ -629,6 +629,9 @@ auto allocSize(A...)(A arguments)\n  */\n alias assumeUsed = used;\n \n+/// This attribute is ignored.\n+auto callingConvention(string) => false;\n+\n /// This attribute has no effect.\n enum dynamicCompile = false;\n \n","prefixes":["committed"]}