get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2223148/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2223148,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223148/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260414143908.930196-1-tkaminsk@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "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
    },
    "msgid": "<20260414143908.930196-1-tkaminsk@redhat.com>",
    "date": "2026-04-14T14:35:22",
    "name": "libstdc++: Define __cpp_lib_stdbit_h and __cpp_lib_stdckdint_h feature test macros.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "0a39402e7a8ff877394b6ad69287389bad86017a",
    "submitter": {
        "id": 90409,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/90409/?format=api",
        "name": "Tomasz Kamiński",
        "email": "tkaminsk@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260414143908.930196-1-tkaminsk@redhat.com/mbox/",
    "series": [
        {
            "id": 499858,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499858/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499858",
            "date": "2026-04-14T14:35:22",
            "name": "libstdc++: Define __cpp_lib_stdbit_h and __cpp_lib_stdckdint_h feature test macros.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499858/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223148/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223148/checks/",
    "tags": {},
    "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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=UicQ4aiv;\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 (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=UicQ4aiv",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com",
            "sourceware.org; spf=pass smtp.mailfrom=redhat.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.124"
        ],
        "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 4fw6PG3qPVz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 00:39:45 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 2C8C34BA2E11\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 14:39:43 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id E24124BA2E08\n for <gcc-patches@gcc.gnu.org>; Tue, 14 Apr 2026 14:39:15 +0000 (GMT)",
            "from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-422-1-MpfjnnPe6NDogp9VLRPg-1; Tue,\n 14 Apr 2026 10:39:12 -0400",
            "from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 0DE9D1955D96; Tue, 14 Apr 2026 14:39:11 +0000 (UTC)",
            "from localhost (unknown [10.44.33.215])\n by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 604993000C1D; Tue, 14 Apr 2026 14:39:10 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 2C8C34BA2E11",
            "OpenDKIM Filter v2.11.0 sourceware.org E24124BA2E08"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org E24124BA2E08",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org E24124BA2E08",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776177556; cv=none;\n b=CgS4UperSCYVKVgNK8mLZ0OqwUzPxwHXZVpOIv81ic3+TXQmimJbr7665NjV0lkUvVTmYcYsiaeH4qWJupes7qbcVfgTxj0HEYhlYGyKPDNbDQkRaIliCbTxWJSwZbX60E0JsPSWv1kwY98kOMjTxmXBjeS7HEp3sUVmBw9WeE4=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776177556; c=relaxed/simple;\n bh=SuTKzLj55UL4dsxuB/bwIKJ7YXnn3qkHt/yxtMIH97k=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=hJ2kVfMTG6dItLXW3c8fChtu/NvLAlqiAa80nkaHQxcATd2HO14KdYPbf7/YBRbqAKsOde38WBJdlrzWqoVPx7NQheHoKccncJAuXk9xgEbsOXoGT+b2BDiYWIdMEMf8yC9ZUSkCHzmZFZX5Ap6yw0iRH9tosvKqxA3UIfXFUuE=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776177555;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=ed7wlwlFLiVcBwVG5vY11ezicQNa/lur3yO89+SP6cs=;\n b=UicQ4aivwJedF2V9ngC3TWCiUO+O62HATHPm2H/9JR/cf1DWV8SITTNTR1XHmKUEDoaAQ/\n fL4wJkaxo1VzkYelJddcwH8alH9ZUHwau+0mXA3AleLZIxu/11AjqECKx6yzyGPQ4mnK4M\n nXeGQbY7vX2A9w4FYLUw1Ai3UYf8IhY=",
        "X-MC-Unique": "1-MpfjnnPe6NDogp9VLRPg-1",
        "X-Mimecast-MFC-AGG-ID": "1-MpfjnnPe6NDogp9VLRPg_1776177551",
        "From": "=?utf-8?q?Tomasz_Kami=C5=84ski?= <tkaminsk@redhat.com>",
        "To": "libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org",
        "Subject": "[PATCH] libstdc++: Define __cpp_lib_stdbit_h and\n __cpp_lib_stdckdint_h feature test macros.",
        "Date": "Tue, 14 Apr 2026 16:35:22 +0200",
        "Message-ID": "<20260414143908.930196-1-tkaminsk@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.4",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "76TJHbla621duHO4lYHpKuSPgMu7UAuZqskGSjcdtLE_1776177551",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Transfer-Encoding": "8bit",
        "content-type": "text/plain; charset=\"US-ASCII\"; x-default=true",
        "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": "This implements LWG4550: Need new feature test macros for <stdckdint.h>\nand <stdbit.h>.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/version.def (stdbit_h, stdckdint_h): Define.\n\t* include/bits/version.h: Regenerate.\n\t* include/c_compatibility/stdbit.h (__cpp_lib_stdbit_h): Define\n\tand use it in guards.\n\t* include/c_compatibility/stdckdint.h (__cpp_lib_stdckdint_h):\n\tDefine and use it in guards.\n---\nTesting on x86_64-linux. Dedicated tests 20_util/stdbit* and 26_numerics/stdckint*\nalready passes, so valus seem correct. \n\n libstdc++-v3/include/bits/version.def         | 16 +++++++++++++++\n libstdc++-v3/include/bits/version.h           | 20 +++++++++++++++++++\n libstdc++-v3/include/c_compatibility/stdbit.h |  8 ++++++--\n .../include/c_compatibility/stdckdint.h       |  8 ++++++--\n 4 files changed, 48 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/libstdc++-v3/include/bits/version.def b/libstdc++-v3/include/bits/version.def\nindex 94fc1f85993..13dba4d6378 100644\n--- a/libstdc++-v3/include/bits/version.def\n+++ b/libstdc++-v3/include/bits/version.def\n@@ -1871,6 +1871,22 @@ ftms = {\n   };\n };\n \n+ftms = {\n+  name = stdbit_h;\n+  values = {\n+    v = 202603;\n+    cxxmin = 26;\n+  };\n+};\n+\n+ftms = {\n+  name = stdckdint_h;\n+  values = {\n+    v = 202603;\n+    cxxmin = 26;\n+  };\n+};\n+\n ftms = {\n   name = adaptor_iterator_pair_constructor;\n   values = {\ndiff --git a/libstdc++-v3/include/bits/version.h b/libstdc++-v3/include/bits/version.h\nindex 402e67580eb..743f7e29fe2 100644\n--- a/libstdc++-v3/include/bits/version.h\n+++ b/libstdc++-v3/include/bits/version.h\n@@ -2076,6 +2076,26 @@\n #endif /* !defined(__cpp_lib_stdatomic_h) */\n #undef __glibcxx_want_stdatomic_h\n \n+#if !defined(__cpp_lib_stdbit_h)\n+# if (__cplusplus >  202302L)\n+#  define __glibcxx_stdbit_h 202603L\n+#  if defined(__glibcxx_want_all) || defined(__glibcxx_want_stdbit_h)\n+#   define __cpp_lib_stdbit_h 202603L\n+#  endif\n+# endif\n+#endif /* !defined(__cpp_lib_stdbit_h) */\n+#undef __glibcxx_want_stdbit_h\n+\n+#if !defined(__cpp_lib_stdckdint_h)\n+# if (__cplusplus >  202302L)\n+#  define __glibcxx_stdckdint_h 202603L\n+#  if defined(__glibcxx_want_all) || defined(__glibcxx_want_stdckdint_h)\n+#   define __cpp_lib_stdckdint_h 202603L\n+#  endif\n+# endif\n+#endif /* !defined(__cpp_lib_stdckdint_h) */\n+#undef __glibcxx_want_stdckdint_h\n+\n #if !defined(__cpp_lib_adaptor_iterator_pair_constructor)\n # if (__cplusplus >= 202100L) && _GLIBCXX_HOSTED\n #  define __glibcxx_adaptor_iterator_pair_constructor 202106L\ndiff --git a/libstdc++-v3/include/c_compatibility/stdbit.h b/libstdc++-v3/include/c_compatibility/stdbit.h\nindex 1fb691e36c1..fa4ec0414c6 100644\n--- a/libstdc++-v3/include/c_compatibility/stdbit.h\n+++ b/libstdc++-v3/include/c_compatibility/stdbit.h\n@@ -29,7 +29,11 @@\n #ifndef _GLIBCXX_STDBIT_H\n #define _GLIBCXX_STDBIT_H\n \n-#if __cplusplus > 202302L\n+#define __glibcxx_want_stdbit_h\n+#include <bits/version.h>\n+\n+#ifdef __cpp_lib_stdbit_h // C++ >= 26\n+\n #include <bit>\n \n #define __STDC_VERSION_STDBIT_H__ 202311L\n@@ -577,6 +581,6 @@ _GLIBCXX_STDBIT_FUNC(stdc_bit_floor);\n _GLIBCXX_STDBIT_FUNC(stdc_bit_ceil);\n #undef _GLIBCXX_STDBIT_FUNC\n #endif // !DOXYGEN\n-#endif // C++26\n+#endif // __cpp_lib_stdbit_h\n \n #endif // _GLIBCXX_STDBIT_H\ndiff --git a/libstdc++-v3/include/c_compatibility/stdckdint.h b/libstdc++-v3/include/c_compatibility/stdckdint.h\nindex 5bdf4dc7b24..0f0b30cc899 100644\n--- a/libstdc++-v3/include/c_compatibility/stdckdint.h\n+++ b/libstdc++-v3/include/c_compatibility/stdckdint.h\n@@ -29,7 +29,11 @@\n #ifndef _GLIBCXX_STDCKDINT_H\n #define _GLIBCXX_STDCKDINT_H\n \n-#if __cplusplus > 202302L\n+#define __glibcxx_want_stdckdint_h\n+#include <bits/version.h>\n+\n+#ifdef __cpp_lib_stdckdint_h // C++ >= 26\n+\n #include <type_traits>\n #include <concepts>\n \n@@ -96,6 +100,6 @@ using __gnu_cxx::ckd_sub;\n using __gnu_cxx::ckd_mul;\n #endif\n \n-#endif // C++26\n+#endif // __cpp_lib_stdckdint_h\n \n #endif // _GLIBCXX_STDCKDINT_H\n",
    "prefixes": []
}