get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196644,
    "url": "http://patchwork.ozlabs.org/api/patches/2196644/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260215201501.56504-1-iain@sandoe.co.uk/",
    "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": "<20260215201501.56504-1-iain@sandoe.co.uk>",
    "list_archive_url": null,
    "date": "2026-02-15T20:14:49",
    "name": "[pushed] diagnostics: Fix bootstrap on 32b Darwin hosts.",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "241ce98d94f8ab4d4f83be658a09241c7c673940",
    "submitter": {
        "id": 80672,
        "url": "http://patchwork.ozlabs.org/api/people/80672/?format=api",
        "name": "Iain Sandoe",
        "email": "iains.gcc@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260215201501.56504-1-iain@sandoe.co.uk/mbox/",
    "series": [
        {
            "id": 492232,
            "url": "http://patchwork.ozlabs.org/api/series/492232/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=492232",
            "date": "2026-02-15T20:14:49",
            "name": "[pushed] diagnostics: Fix bootstrap on 32b Darwin hosts.",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492232/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196644/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196644/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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=gedkmihN;\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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=gedkmihN",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "sourceware.org; spf=pass smtp.mailfrom=gmail.com",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.221.68"
        ],
        "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 4fDcbY1gWKz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 07:15:35 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 003224BAD151\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 15 Feb 2026 20:15:31 +0000 (GMT)",
            "from mail-wr1-f68.google.com (mail-wr1-f68.google.com\n [209.85.221.68])\n by sourceware.org (Postfix) with ESMTPS id 538DC4BA23F2\n for <gcc-patches@gcc.gnu.org>; Sun, 15 Feb 2026 20:15:04 +0000 (GMT)",
            "by mail-wr1-f68.google.com with SMTP id\n ffacd0b85a97d-4359228b7c6so1851059f8f.2\n for <gcc-patches@gcc.gnu.org>; Sun, 15 Feb 2026 12:15:04 -0800 (PST)",
            "from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com.\n [81.138.1.83]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4835dd0deeasm340722045e9.12.2026.02.15.12.15.02\n (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);\n Sun, 15 Feb 2026 12:15:02 -0800 (PST)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 003224BAD151",
            "OpenDKIM Filter v2.11.0 sourceware.org 538DC4BA23F2"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 538DC4BA23F2",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 538DC4BA23F2",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1771186504; cv=none;\n b=mvuYIVxKdG3FT+1p9HbaqcYR95y6Nubc0TbVego4NACP5jrf31ArWQfZyHQE01qaPkdTFp7rNAFGPBvmb8DcySNuxt9aZXK+FVoKZfSidLNVAvgvGWWPa3ZN6qotTPYT85ehbeYiR2L+hif7Jzbrkoj7O/XNMXkLPVLteOHUcdM=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1771186504; c=relaxed/simple;\n bh=THmx884D/9VxtCETfzFUAqwLSgnRgCOFMA+VJd1CPuM=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=DB53vzT2r5tTjjJIV+uWWPfxFmbDBPAJtrJ4LlwqtECrPyr1KLpZzCzxzJI42bQZ1Ri1/ZRK2AbiqBBmbYLCOSXqj3ZK2lO755SFqs834h5XjxMxnTd1Azj0iEF/Fo2wLBWHBk4swYqOpK5XHdHwq76P9APi8qh8cPDoIMtNVoQ=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1771186503; x=1771791303; darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=86DDROJK1orR/SZ0JACghA1auGHb8G2F+aScKAeDKd0=;\n b=gedkmihNg/R+du5u/6pFI/PgbwRdJtYj/9IB9H5UYGztWFJlRHw/5q66rbuJL8jUdn\n Q7fCx1Q2G1AP3Sx5/J2SkMsREpSib5VgxZMg+/dr1rMpLmJllGX+NOMHrZdjpwn8yP0b\n gRrY9UtKyx/3U8Q/OjOGqPhPmCbJ24c940AMbR7EJANUNFbdLH+FW59AgJne/vLswB2n\n LxdbWvT+akwC+8cxi7aW9cIvnlgaYb4P/7MCIknTkVP6piCP7bgKpHHtVr/96vXIPOH4\n 4dccFJyUpCzWJQYfEPg18DIn96t4uKuNJvQZxKkU63iMscSIxeqEAPnlQWYSrMst7B66\n rP/g==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771186503; x=1771791303;\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=86DDROJK1orR/SZ0JACghA1auGHb8G2F+aScKAeDKd0=;\n b=pamQdq/j09ofVDhdyyuh6jDLvSQs/NBbcilAdZ4tbx0pFHA7n2DVaWPZPBnubTJwwa\n RMUCu7EmGvPxw7xeTAHR9Bt9JofS8vG7KaF3mLGle/aaE9OGZe8E95mw1+UUmcRIu9b+\n XostfrQs/J5w3nPQkYkY6z2GSLPDqfSzoCXrE6wCVgOEiI3XloNJsExPmky0FdJI5rAc\n B+xjjeEEEiDuvbVQ3ZXBAeyU/IKuWSgsJzFCkOxRm5g5Eb3Ls1Jo2HFlW9YRjBDkRhT/\n eNEAl4640EY4dDkRPtBKuRQ1DVeDLOe9NPWyG/0UlbKGotBDijAbPjYC/9nCnR3GhNzQ\n eB7w==",
        "X-Gm-Message-State": "AOJu0YxoVwzLBpPI6LKF34sue7Xa+7lhUvFmG5m32kq3AkhWk6Qy9OMI\n 6XsC4SnM8FSf9b23mHrH2kJ+U1VMM/4cFvi2df4iipUycT5D0+oQzT41a6I/GZmv",
        "X-Gm-Gg": "AZuq6aIuozOSa+t/PTenC8IvHRooTj7W8wZPy+yH/MLvh9MciAFt8TK20SFNkMDfzED\n 0mImKXX6AxiVhGXnLwEfVpo7OdWu6NPKL7DgOf/X73H723ICMeZV+HfGLgvOeHVnkCwH9sspqWD\n mz0sys6oCyl7u+skToCz1Nn8dZo0wtHyQju9pc94lqPuml3n85xgS2G3/f4C8qq/XQJT0s4MAEh\n DlYFQcPYqfEtp+DgenpgjQGFTlGNK66Shn00BJkzn9+S+YNu93xWDqGDaIXA7i1WrsvhNYg9BJS\n nthwAXxnuhftgYMlv0P25kPiCt+wyWsQwxi7ENFMVfE8bxJDlYDxMNNGlcuaCy2DHYNu4gjHSuj\n tqgMer/coTZz6mS1T6eqvkWmJsyN3pwgqHRJrnf/LDi5/wsR2s7tntpb1lH/e57YLq6RZFesiAa\n IKXEPJ8FD3k0BwAyGpFeFSqC+GS+cfMUJUtraYMLg7qe5xSuL1hakDpZw/lzDkQgySl4RruNf2w\n 3x93JrxSSg=",
        "X-Received": "by 2002:a05:600c:444f:b0:471:1765:839c with SMTP id\n 5b1f17b1804b1-48379bd7414mr87406965e9.20.1771186502877;\n Sun, 15 Feb 2026 12:15:02 -0800 (PST)",
        "From": "Iain Sandoe <iains.gcc@gmail.com>",
        "X-Google-Original-From": "Iain Sandoe <iain@sandoe.co.uk>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "dmalcolm@redhat.com",
        "Subject": "[pushed] diagnostics: Fix bootstrap on 32b Darwin hosts.",
        "Date": "Sun, 15 Feb 2026 20:14:49 +0000",
        "Message-ID": "<20260215201501.56504-1-iain@sandoe.co.uk>",
        "X-Mailer": "git-send-email 2.50.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "I have applied this patch as trivial/obvious and a bootstrap fix\nafter testing it on the affected targets and powerpc64le/x86_64\nLinux.  Thanks,\nIain\n\n--- 8< ---\n\nThe change in r16-7507 misses a cast on the value to pp_scalar which\nleads to a bootstrap fail on 32b hosts where size_t has a different\ndeclaration from the value.  Fixed by applying the fmt_size_t cast.\n\ngcc/ChangeLog:\n\n\t* json.cc (pointer::token::print): Cast the value to pp_scalar\n\twith (fmt_size_t).\n\nSigned-off-by: Iain Sandoe <iain@sandoe.co.uk>\n---\n gcc/json.cc | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/gcc/json.cc b/gcc/json.cc\nindex 3f87e291009..7c541d97262 100644\n--- a/gcc/json.cc\n+++ b/gcc/json.cc\n@@ -151,7 +151,7 @@ pointer::token::print (pretty_printer *pp) const\n       break;\n \n     case kind::array_index:\n-      pp_scalar (pp, HOST_SIZE_T_PRINT_UNSIGNED, m_data.u_index);\n+      pp_scalar (pp, HOST_SIZE_T_PRINT_UNSIGNED, (fmt_size_t) m_data.u_index);\n       break;\n     }\n }\n",
    "prefixes": [
        "pushed"
    ]
}