get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2230093,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230093/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260429074945.65588-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": "<20260429074945.65588-1-tkaminsk@redhat.com>",
    "date": "2026-04-29T07:48:56",
    "name": "libstdc++: Test ATOMIC_*_LOCK_FREE macros for <stdatomic.h>",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8cadd7cee2ac93c4b5ddba685646dee486ff1398",
    "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/20260429074945.65588-1-tkaminsk@redhat.com/mbox/",
    "series": [
        {
            "id": 502011,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/502011/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502011",
            "date": "2026-04-29T07:48:56",
            "name": "libstdc++: Test ATOMIC_*_LOCK_FREE macros for <stdatomic.h>",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/502011/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2230093/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2230093/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=DnB8u7P/;\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=DnB8u7P/",
            "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.129.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 4g58c509c4z1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:50:27 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 9E3BC4BABF0C\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 07:50:25 +0000 (GMT)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 7B31E4BABF0C\n for <gcc-patches@gcc.gnu.org>; Wed, 29 Apr 2026 07:49:51 +0000 (GMT)",
            "from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-665-STNcpl3xOcGNjdGGhBZeEg-1; Wed,\n 29 Apr 2026 03:49:49 -0400",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 4A7E81800370; Wed, 29 Apr 2026 07:49:48 +0000 (UTC)",
            "from localhost (unknown [10.44.50.3])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 86A3C180047F; Wed, 29 Apr 2026 07:49:47 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 9E3BC4BABF0C",
            "OpenDKIM Filter v2.11.0 sourceware.org 7B31E4BABF0C"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 7B31E4BABF0C",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 7B31E4BABF0C",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777448991; cv=none;\n b=hBM55rS+DkGLTFh5Nvcq0R45wjXGCWvlrW/Kewz900lwjsIi1r2IT6yohPN7ZswHxjIPW1snmTugyNKA/4PGdTXcQ4WmxApt52i3mTtCbfUOPolbuolusJ8c2ifkdpojAsd2dUzlOeWpZhWsjZLM7SMVXn3YCX7zGw5tRpImHVs=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777448991; c=relaxed/simple;\n bh=xfkNTUmlaGUK2N85qQuERgil3ZqD/NnYuZ+b7su3ymQ=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=LIwL7igmmVIwV/FMFcEdNnQHervODJVyg1cFlKsn9B7t+ZLhWWYfEmCXdUqJC2jzBFoTEEsGbQayEdjvRLd2KNqgUT/4m8m72x9BMOEscuMxAc8HkDJjYMqI6vPi+LKxCvjxYDvPdtcY0UwHfV8r2y8ChSxwyp8cYlq858rpMlU=",
        "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=1777448991;\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=bGLruV3s0X/BmBdA608023ONQAuybbw7HL3urPAs8js=;\n b=DnB8u7P/dtIqzKJ2QRpKP9WbuChlTfwB9ljBpDXxgW/1Uhs6cUtnt+DTCCzIK0GyJG+E/d\n oQuOK+PfutdcZKULYTxTCXuxVyixixhPWdRuQ07dBLqwzujNQu3z+bPb4bTgQW/galrD5m\n wMxoWXn/WJEFOT5PIWuxDS35hFQLsTU=",
        "X-MC-Unique": "STNcpl3xOcGNjdGGhBZeEg-1",
        "X-Mimecast-MFC-AGG-ID": "STNcpl3xOcGNjdGGhBZeEg_1777448988",
        "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++: Test ATOMIC_*_LOCK_FREE macros for <stdatomic.h>",
        "Date": "Wed, 29 Apr 2026 09:48:56 +0200",
        "Message-ID": "<20260429074945.65588-1-tkaminsk@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "uqfftQjkwnMTT6fAQTKRwABB1po8nWWXb7MmI0QsOtI_1777448988",
        "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": "Coverage for LWG 4480, \"<stdatomic.h> should provide ATOMIC_CHAR8_T_LOCK_FREE\".\n\nlibstdc++-v3/ChangeLog:\n\n\t* testsuite/29_atomics/headers/stdatomic.h/macros.cc:\n\tCopy of ../atomic/macros.cc with header include changed.\n---\nKeeping the FSF copyright header, as it is plain copy with minimal\nmodificaiton.\n\nTested on x86_64-linux. OK for trunk?\n\n .../29_atomics/headers/stdatomic.h/macros.cc  | 96 +++++++++++++++++++\n 1 file changed, 96 insertions(+)\n create mode 100644 libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/macros.cc",
    "diff": "diff --git a/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/macros.cc b/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/macros.cc\nnew file mode 100644\nindex 00000000000..e76b611e676\n--- /dev/null\n+++ b/libstdc++-v3/testsuite/29_atomics/headers/stdatomic.h/macros.cc\n@@ -0,0 +1,96 @@\n+// { dg-do preprocess { target c++23 } }\n+\n+// Copyright (C) 2026 Free Software Foundation, Inc.\n+//\n+// This file is part of the GNU ISO C++ Library.  This library is free\n+// software; you can redistribute it and/or modify it under the\n+// terms of the GNU General Public License as published by the\n+// Free Software Foundation; either version 3, or (at your option)\n+// any later version.\n+\n+// This library is distributed in the hope that it will be useful,\n+// but WITHOUT ANY WARRANTY; without even the implied warranty of\n+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+// GNU General Public License for more details.\n+\n+// You should have received a copy of the GNU General Public License along\n+// with this library; see the file COPYING3.  If not see\n+// <http://www.gnu.org/licenses/>.\n+\n+#include <stdatomic.h>\n+\n+#ifndef ATOMIC_BOOL_LOCK_FREE \n+# error \"ATOMIC_BOOL_LOCK_FREE must be a macro\"\n+#elif ATOMIC_BOOL_LOCK_FREE != 1 && ATOMIC_BOOL_LOCK_FREE != 2\n+# error \"ATOMIC_BOOL_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_CHAR_LOCK_FREE \n+# error \"ATOMIC_CHAR_LOCK_FREE must be a macro\"\n+#elif ATOMIC_CHAR_LOCK_FREE != 1 && ATOMIC_CHAR_LOCK_FREE != 2\n+# error \"ATOMIC_CHAR_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifdef _GLIBCXX_USE_CHAR8_T\n+# ifndef ATOMIC_CHAR8_T_LOCK_FREE\n+#  error \"ATOMIC_CHAR8_T_LOCK_FREE must be a macro\"\n+# elif ATOMIC_CHAR8_T_LOCK_FREE != 1 && ATOMIC_CHAR8_T_LOCK_FREE != 2\n+#  error \"ATOMIC_CHAR8_T_LOCK_FREE must be 1 or 2\"\n+# endif\n+#endif\n+\n+#ifndef ATOMIC_CHAR16_T_LOCK_FREE \n+# error \"ATOMIC_CHAR16_T_LOCK_FREE must be a macro\"\n+#elif ATOMIC_CHAR16_T_LOCK_FREE != 1 && ATOMIC_CHAR16_T_LOCK_FREE != 2\n+# error \"ATOMIC_CHAR16_T_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_CHAR32_T_LOCK_FREE \n+# error \"ATOMIC_CHAR32_T_LOCK_FREE must be a macro\"\n+#elif ATOMIC_CHAR32_T_LOCK_FREE != 1 && ATOMIC_CHAR32_T_LOCK_FREE != 2\n+# error \"ATOMIC_CHAR32_T_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_WCHAR_T_LOCK_FREE \n+# error \"ATOMIC_WCHAR_T_LOCK_FREE must be a macro\"\n+#elif ATOMIC_WCHAR_T_LOCK_FREE != 1 && ATOMIC_WCHAR_T_LOCK_FREE != 2\n+# error \"ATOMIC_WCHAR_T_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_SHORT_LOCK_FREE \n+# error \"ATOMIC_SHORT_LOCK_FREE must be a macro\"\n+#elif ATOMIC_SHORT_LOCK_FREE != 1 && ATOMIC_SHORT_LOCK_FREE != 2\n+# error \"ATOMIC_SHORT_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_INT_LOCK_FREE \n+# error \"ATOMIC_INT_LOCK_FREE must be a macro\"\n+#elif ATOMIC_INT_LOCK_FREE != 1 && ATOMIC_INT_LOCK_FREE != 2\n+# error \"ATOMIC_INT_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_LONG_LOCK_FREE \n+# error \"ATOMIC_LONG_LOCK_FREE must be a macro\"\n+#elif ATOMIC_LONG_LOCK_FREE != 1 && ATOMIC_LONG_LOCK_FREE != 2\n+# error \"ATOMIC_LONG_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_LLONG_LOCK_FREE \n+# error \"ATOMIC_LLONG_LOCK_FREE must be a macro\"\n+#elif ATOMIC_LLONG_LOCK_FREE != 1 && ATOMIC_LLONG_LOCK_FREE != 2\n+# error \"ATOMIC_LLONG_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_POINTER_LOCK_FREE \n+# error \"ATOMIC_POINTER_LOCK_FREE must be a macro\"\n+#elif ATOMIC_POINTER_LOCK_FREE != 1 && ATOMIC_POINTER_LOCK_FREE != 2\n+# error \"ATOMIC_POINTER_LOCK_FREE must be 1 or 2\"\n+#endif\n+\n+#ifndef ATOMIC_FLAG_INIT\n+    #error \"ATOMIC_FLAG_INIT_must_be_a_macro\"\n+#endif\n+\n+#ifndef ATOMIC_VAR_INIT\n+    #error \"ATOMIC_VAR_INIT_must_be_a_macro\"\n+#endif\n",
    "prefixes": []
}