get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226340,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2226340/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260422113908.795344-1-tkaminsk@redhat.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20260422113908.795344-1-tkaminsk@redhat.com>",
    "list_archive_url": null,
    "date": "2026-04-22T11:38:40",
    "name": "libstdc++: Mandate power of two alignment for std::is_sufficiently_aligned.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4fd684a8c96a9848af28dca90a026adb59306687",
    "submitter": {
        "id": 90409,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/90409/?format=api",
        "name": "Tomasz Kamiński",
        "email": "tkaminsk@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260422113908.795344-1-tkaminsk@redhat.com/mbox/",
    "series": [
        {
            "id": 500995,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/500995/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500995",
            "date": "2026-04-22T11:38:40",
            "name": "libstdc++: Mandate power of two alignment for std::is_sufficiently_aligned.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500995/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226340/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226340/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=QQOWTpzh;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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=QQOWTpzh",
            "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 [38.145.34.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 4g0y224PM1z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 21:39:53 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 5E5B44C31818\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 11:39:51 +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 31E324B9700B\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 11:39:13 +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-225-Y04NXoMRMUuDLHuciqUQNA-1; Wed,\n 22 Apr 2026 07:39:11 -0400",
            "from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17])\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 873FA1956067; Wed, 22 Apr 2026 11:39:10 +0000 (UTC)",
            "from localhost (unknown [10.44.48.183])\n by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 0DD801956095; Wed, 22 Apr 2026 11:39:09 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 5E5B44C31818",
            "OpenDKIM Filter v2.11.0 sourceware.org 31E324B9700B"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 31E324B9700B",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 31E324B9700B",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776857953; cv=none;\n b=JHsCVAkoTAwYjCK1OGP1bXLAq4zv4bHr0WPNhOMTD0zXdJP5OVe4mlh+BCrlFwHWdriT41OcqEiX408n9BjxqrgKz7iQlXXVCRTZCYzb/qDYwJfVLLO1GUbz/ZaBk+aermsCoEBQ5MQrOvuhIe4wnXz+Z3sRVNLFX6rjgi76fSY=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776857953; c=relaxed/simple;\n bh=wE/wvgwCPu9CGkbYZsK4sJkQuA42bSGWjQGt42jdk6o=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=ldG/K6D/F8+AXvR59HKvWdi/MAgEA0uZALZALidcuwXTXkvHzTZKMMrE2EfSNdnWBIMyO4g2rEmmOAVZvJWeevn6Ck86D73kLyGBLWS4qssqnLT+JxZ8nxMdlN5jf1jvsLqiUTSh2Me/++BaLwEiS2wxhumzPbkOjDIP+CxKtvY=",
        "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=1776857952;\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=j0EuaT6P7ubxjD9F2jGdi8yPYIeD7EaYUyKfFcOWDJY=;\n b=QQOWTpzhAi9obsfHBvAs/O/Xvs2cGP51pHR77AyhMd+TnLk/mIxkptFpOwKIZQIes1lSon\n Pk7ARqteL0hfugg0yohmKQMDG9t2yaspd4tk1i7rvadh6nbtB6RuNe9zWgtzv1bZpogukN\n cWldXP7ob0k1nGxQ6p5zikbBtNEY2fI=",
        "X-MC-Unique": "Y04NXoMRMUuDLHuciqUQNA-1",
        "X-Mimecast-MFC-AGG-ID": "Y04NXoMRMUuDLHuciqUQNA_1776857950",
        "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++: Mandate power of two alignment for\n std::is_sufficiently_aligned.",
        "Date": "Wed, 22 Apr 2026 13:38:40 +0200",
        "Message-ID": "<20260422113908.795344-1-tkaminsk@redhat.com>",
        "MIME-Version": "1.0",
        "X-Scanned-By": "MIMEDefang 3.0 on 10.30.177.17",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "2hZmx6oUBOMMtnYdpTQyT-2NqaAmC6Hi04f_pNRNbTE_1776857950",
        "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 LWG4290. Missing Mandates clauses on is_sufficiently_aligned.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/align.h (is_sufficiently_aligned): Mandate\n\tthat _Align is power of two.\n\t* testsuite/std/time/format/simple.cc: New test.\n---\nNo adding resolve issue comment, as this is C++26 feature.\n\nTested on x86_64-linux. OK for trunk?\n\n libstdc++-v3/include/bits/align.h                |  5 ++++-\n libstdc++-v3/testsuite/std/time/format/simple.cc | 11 +++++++++++\n 2 files changed, 15 insertions(+), 1 deletion(-)\n create mode 100644 libstdc++-v3/testsuite/std/time/format/simple.cc",
    "diff": "diff --git a/libstdc++-v3/include/bits/align.h b/libstdc++-v3/include/bits/align.h\nindex 1a14e282216..3c8355d0e07 100644\n--- a/libstdc++-v3/include/bits/align.h\n+++ b/libstdc++-v3/include/bits/align.h\n@@ -116,7 +116,10 @@ align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept\n     [[nodiscard,__gnu__::__always_inline__]]\n     inline bool\n     is_sufficiently_aligned(_Tp* __ptr)\n-    { return reinterpret_cast<__UINTPTR_TYPE__>(__ptr) % _Align == 0; }\n+    { \n+      static_assert(std::has_single_bit(_Align));\n+      return reinterpret_cast<__UINTPTR_TYPE__>(__ptr) % _Align == 0;\n+    }\n #endif // __glibcxx_is_sufficiently_aligned\n \n _GLIBCXX_END_NAMESPACE_VERSION\ndiff --git a/libstdc++-v3/testsuite/std/time/format/simple.cc b/libstdc++-v3/testsuite/std/time/format/simple.cc\nnew file mode 100644\nindex 00000000000..db25a460bf7\n--- /dev/null\n+++ b/libstdc++-v3/testsuite/std/time/format/simple.cc\n@@ -0,0 +1,11 @@\n+// { dg-do run { target c++20 } }\n+// { dg-timeout-factor 2 }\n+\n+#include <chrono>\n+#include <vector>\n+#include <testsuite_hooks.h>\n+\n+int main()\n+{\n+  auto s = std::format(\"{:%F %T}\", std::chrono::system_clock::now());\n+}\n",
    "prefixes": []
}