get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2195376,
    "url": "http://patchwork.ozlabs.org/api/patches/2195376/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260210215430.1863636-1-ppalka@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260210215430.1863636-1-ppalka@redhat.com>",
    "list_archive_url": null,
    "date": "2026-02-10T21:54:30",
    "name": "libstdc++: Clear padding bits in std::atomic ctor in C++11 [PR114865]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "faafb9a847a92942bcd9a2cd14e1743cd0707ce0",
    "submitter": {
        "id": 78319,
        "url": "http://patchwork.ozlabs.org/api/people/78319/?format=api",
        "name": "Patrick Palka",
        "email": "ppalka@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260210215430.1863636-1-ppalka@redhat.com/mbox/",
    "series": [
        {
            "id": 491743,
            "url": "http://patchwork.ozlabs.org/api/series/491743/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=491743",
            "date": "2026-02-10T21:54:30",
            "name": "libstdc++: Clear padding bits in std::atomic ctor in C++11 [PR114865]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/491743/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2195376/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2195376/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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=F5ndSQnu;\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=F5ndSQnu",
            "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 4f9b3B1ZHZz1xvg\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 11 Feb 2026 08:55:32 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 583814BA23DB\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 10 Feb 2026 21:55:30 +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 144A54BA2E1B\n for <gcc-patches@gcc.gnu.org>; Tue, 10 Feb 2026 21:54:39 +0000 (GMT)",
            "from mail-qt1-f199.google.com (mail-qt1-f199.google.com\n [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-59-TxwiO23cMoK0SEQXQUsqIQ-1; Tue, 10 Feb 2026 16:54:37 -0500",
            "by mail-qt1-f199.google.com with SMTP id\n d75a77b69052e-506545ce649so12399401cf.1\n for <gcc-patches@gcc.gnu.org>; Tue, 10 Feb 2026 13:54:37 -0800 (PST)",
            "from idea ([2600:4040:aa68:6000:9e8e:99ff:fed1:71f])\n by smtp.gmail.com with ESMTPSA id\n d75a77b69052e-50682f08490sm41431cf.9.2026.02.10.13.54.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 10 Feb 2026 13:54:34 -0800 (PST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 583814BA23DB",
            "OpenDKIM Filter v2.11.0 sourceware.org 144A54BA2E1B"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 144A54BA2E1B",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 144A54BA2E1B",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1770760479; cv=none;\n b=g68sM/NVRhamC0go5zMn/5GM90KM/gcUn9GgQdh3uKBaiExxG0TUAwFY5Zby1cdNf4d7RfPTXjB2GsydtSh748x6fBzW1frpbF7PGpB4Yntd93K/7GBJT8W6CjjiZmSPBynZqU851ml8IVdySi2vW82FZHBZtS4rUL21sK7i9xk=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1770760479; c=relaxed/simple;\n bh=QlZBdqE4uSpbr1en297ieAremRIOVJ2+aSkYHSiC+iI=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=i9gJQ750jAnF9hpU6DzkCJ93VnR9NLI5MGuO/zDx3p9Bnk0IKhE355AmPykJL5T/ctK6KZHqWD9bQs9gM2SVFhj0ArjTEknbvDSBz9ahFPLfYbDqr5gjmZtxoDs/TPRg0d3Op+kOwu0yXIhDW308K5UjHcsNLyzE5kUkM+UUvqI=",
        "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=1770760478;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=IvpQBlE9C1YzQKrguJX07xvOpI+4jyMxvoCEmh5zvbI=;\n b=F5ndSQnu/anQrCmgsX0+jIlR28RHcKuhDcOcvD2ftTm6f1E4a8I3YoZDNqqGPz7WhMNEJL\n 9XLZMATn0NGV/1U7TdQHeeKEn5sLmixT6KV6GvlkNLQsVRsAq+iaMOt2qD2QXOQHuHW+Ak\n O/9wqpPFhMQJv3HL2+CqOiv+bZoer/A=",
        "X-MC-Unique": "TxwiO23cMoK0SEQXQUsqIQ-1",
        "X-Mimecast-MFC-AGG-ID": "TxwiO23cMoK0SEQXQUsqIQ_1770760477",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1770760476; x=1771365276;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=IvpQBlE9C1YzQKrguJX07xvOpI+4jyMxvoCEmh5zvbI=;\n b=ByzBjYZkzcE71aCIWZqfHds4a0m88efrMeVCcoRnv1BVS0GD4EFRBwnt/KXGPZ3sKh\n gql5jPbf9pt8OkTb0PemWqv3LS5v9kzHvdHI+A1PMzS6nmFo0mFjZotoaNrtxvrux/56\n OpzRr+2xgs53Fhzts97LjF5RlG9YqHC0eCE4leNECWBsjWPpGWmsqE7UBAWjK+tZv8AY\n Gc5TEqQWLg0Pkn0K0mxYhilS2QcfTyZY6sm5Y2W+xO9LeEJjdGoQt/bxHQfpGehBkcH4\n C/0r89X62J5ru6y4vqxhVCwXUGn/arfUlp6T+PCj6qVPwYEBL1Dw4BZBrktnRlWYFkfE\n XRyA==",
        "X-Gm-Message-State": "AOJu0Ywn44Aj4LsxGBgCDraUS4SM+feJjge0EOfWjym54XYDiuJH/r+u\n gXzduW0QUWU0wfu0uaZboF9gwkBRTJbA8nu3IRGimVnglc+8eIzlSe0ehARz8DH+N79P5gAF9Oe\n +01Ir7mcmIbRWJ9aLv8dYtSph3sQNKYtePv3meFXMyr+rmfCgydZo+1ZTx7s2QEU0JlfWzqEpH1\n 63BzGo8R/ZU551/PapTmSKGS45o66ZbBWMLjDaFQGN",
        "X-Gm-Gg": "AZuq6aLVa4zQobd3rczBPlVOq+067OcbnGMZs7ISK8bubSOAwcS/u/y51fgsZOh3mEH\n 6UYc8sQ7q92fGRy4DAi9ZALbERbOzPuyDKUt24Wse8UpyxE8jULDeGvNX2hKytS7WF7xYKrIn9p\n N4L2p8P5U0M977AfcaLzXyOKcyVn5KWiA+RmGgA7V5vsPPq08xGyPciOhdmHtdz+h6lpGam1tpb\n /SQZCbLIZkkj80jTpO9eOPMQ0rxVEzt6oeIVCCYwG2hiHV4JuJOIcG/AbjreXqDchesvhBCT5YF\n knnKLfx6WEnmQaQG0EFGnL5l1MN+o3o+xPj/BDc+iZyxY0ELyIEcZIAh1UtEYYv1DsxldmdJlbE\n RPXseVF8LHHM=",
        "X-Received": [
            "by 2002:a05:622a:104:b0:4f4:b372:db38 with SMTP id\n d75a77b69052e-5068260da15mr3050671cf.5.1770760476158;\n Tue, 10 Feb 2026 13:54:36 -0800 (PST)",
            "by 2002:a05:622a:104:b0:4f4:b372:db38 with SMTP id\n d75a77b69052e-5068260da15mr3050521cf.5.1770760475681;\n Tue, 10 Feb 2026 13:54:35 -0800 (PST)"
        ],
        "From": "Patrick Palka <ppalka@redhat.com>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "libstdc++@gcc.gnu.org,\n\tPatrick Palka <ppalka@redhat.com>",
        "Subject": "[PATCH] libstdc++: Clear padding bits in std::atomic ctor in C++11\n [PR114865]",
        "Date": "Tue, 10 Feb 2026 16:54:30 -0500",
        "Message-ID": "<20260210215430.1863636-1-ppalka@redhat.com>",
        "X-Mailer": "git-send-email 2.53.0.68.g864f55e190",
        "MIME-Version": "1.0",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "0PXHaRYTLxNiR2WRm1lc9UsOm7BQ3kA9CA0pG8itSqw_1770760477",
        "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": "Tested on x86_64-pc-linux-gnu with GLIBCXX_TESTSUITE_STDS=11,14,20,\ndoes this look OK for trunk and backports (after r16-7199 gets\nbackported)?  Also tested with Clang 21.\n\n-- >8 --\n\nAfter the front end change r16-7199 both GCC and Clang allow\nnon-empty constexpr constructor bodies in C++11 as an extension,\nso we can unconditionally enable the __builtin_clear_padding logic\nin std::atomic's constructor.\n\n\tPR libstdc++/114865\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/std/atomic (atomic<_Tp>::atomic(_Tp))\n\t[C++11]: Enable __builtin_clear_padding logic.\n\t* testsuite/29_atomics/atomic/cons/static_zero_padding.cc\n\t[C++11]: Enable test verifying cleared padding bits for a\n\tstd::atomic local variable.\n---\n libstdc++-v3/include/std/atomic                              | 5 ++++-\n .../testsuite/29_atomics/atomic/cons/static_zero_padding.cc  | 2 --\n 2 files changed, 4 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/libstdc++-v3/include/std/atomic b/libstdc++-v3/include/std/atomic\nindex 56dbe7bf5b95..306667e3c633 100644\n--- a/libstdc++-v3/include/std/atomic\n+++ b/libstdc++-v3/include/std/atomic\n@@ -247,14 +247,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n       atomic& operator=(const atomic&) = delete;\n       atomic& operator=(const atomic&) volatile = delete;\n \n+#pragma GCC diagnostic push\n+#pragma GCC diagnostic ignored \"-Wc++14-extensions\" // constexpr ctor body\n       constexpr atomic(_Tp __i) noexcept : _M_i(__i)\n       {\n-#if __cplusplus >= 201402L && __has_builtin(__builtin_clear_padding)\n+#if __has_builtin(__builtin_clear_padding)\n \tif _GLIBCXX17_CONSTEXPR (__atomic_impl::__maybe_has_padding<_Tp>())\n \t  if (!std::__is_constant_evaluated())\n \t    __builtin_clear_padding(std::__addressof(_M_i));\n #endif\n       }\n+#pragma GCC diagnostic pop\n \n       operator _Tp() const noexcept\n       { return load(); }\ndiff --git a/libstdc++-v3/testsuite/29_atomics/atomic/cons/static_zero_padding.cc b/libstdc++-v3/testsuite/29_atomics/atomic/cons/static_zero_padding.cc\nindex 506513647c6c..e3594fb1c8ea 100644\n--- a/libstdc++-v3/testsuite/29_atomics/atomic/cons/static_zero_padding.cc\n+++ b/libstdc++-v3/testsuite/29_atomics/atomic/cons/static_zero_padding.cc\n@@ -57,9 +57,7 @@ void test_struct(std::atomic<T>& g, const T& zp)\n \n   std::atomic<T> l(T{1, 2});\n   std::memcpy(&t, &zp, sizeof(T));\n-#if __cplusplus >= 201402L // Remove once PR114865 is fixed\n   VERIFY( l.compare_exchange_strong(t, d) );\n-#endif\n \n   constexpr std::atomic<T> cl(T{1, 2});\n }\n",
    "prefixes": []
}