get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2217391,
    "url": "http://patchwork.ozlabs.org/api/patches/2217391/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/18690e78c365d74591a1a4431cbe03a25aea08f4.camel@tugraz.at/",
    "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": "<18690e78c365d74591a1a4431cbe03a25aea08f4.camel@tugraz.at>",
    "list_archive_url": null,
    "date": "2026-03-28T14:37:11",
    "name": "[C] Fix ICE related to field members that are arrays of pointers to structs [PR124625]",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "34d4e018eb10da72a3789baa5f4027244169d425",
    "submitter": {
        "id": 85465,
        "url": "http://patchwork.ozlabs.org/api/people/85465/?format=api",
        "name": "Martin Uecker",
        "email": "uecker@tugraz.at"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/18690e78c365d74591a1a4431cbe03a25aea08f4.camel@tugraz.at/mbox/",
    "series": [
        {
            "id": 497870,
            "url": "http://patchwork.ozlabs.org/api/series/497870/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=497870",
            "date": "2026-03-28T14:37:11",
            "name": "[C] Fix ICE related to field members that are arrays of pointers to structs [PR124625]",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497870/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2217391/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2217391/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=tugraz.at header.i=@tugraz.at header.a=rsa-sha256\n header.s=mailrelay header.b=frXdkJof;\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=tugraz.at header.i=@tugraz.at header.a=rsa-sha256\n header.s=mailrelay header.b=frXdkJof",
            "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=tugraz.at",
            "sourceware.org; spf=pass smtp.mailfrom=tugraz.at",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=129.27.2.202"
        ],
        "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 4fjg9R2Vn5z1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 01:38:16 +1100 (AEDT)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 728094BA23F1\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 14:38:12 +0000 (GMT)",
            "from mailrelay.tugraz.at (mailrelay.tugraz.at [129.27.2.202])\n by sourceware.org (Postfix) with ESMTPS id 3BE3E4BA23F9\n for <gcc-patches@gcc.gnu.org>; Sat, 28 Mar 2026 14:37:22 +0000 (GMT)",
            "from [192.168.0.221] (84-115-216-228.cable.dynamic.surfer.at\n [84.115.216.228])\n by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4fjg8804D8z9s1y;\n Sat, 28 Mar 2026 15:37:11 +0100 (CET)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 728094BA23F1",
            "OpenDKIM Filter v2.11.0 sourceware.org 3BE3E4BA23F9"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 3BE3E4BA23F9",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 3BE3E4BA23F9",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774708644; cv=none;\n b=TF9TaB7pER7ZzTbtx7aOm5sSqdj9CgIJGKxriTR1i8G7d8VJQxQI6fHz7HYpNNnSOqkwz0Kzl35t1f87jo9eK47hatrXzjeqWOM2xcJdfwpiSfgDOnz7ZUo8yWv2VlEPXuZypQuqo9jt2c105FrGj0cSn+nYhEwLJqYyQCvp6NQ=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774708644; c=relaxed/simple;\n bh=T23ukMhAvMFdbrLnhF8ytKIc7ZDyYT3N8mVvR3Uh7U8=;\n h=DKIM-Signature:Message-ID:Subject:From:To:Date:MIME-Version;\n b=Nf/wpl1aedkbOymhCc7qlVNE79/WzwM/MPeFOfKkd7rBweGRM4nVjQHVPn5wMYv7dUZJx0I63mM3T1LG0I727B09+3A31q4cryMRs+j5iqHcgCIGDSqXW/HGaS+R4QBsKX5qoa6Nr93medGrK+qcvdQhvazKrOr6y8PyNIvxOiM=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at;\n s=mailrelay; t=1774708632;\n bh=ohyDdtLK3OA7qC8u6APy5HsKHO4kJkjZuFrG2TD8N5o=;\n h=Subject:From:To:Cc:Date;\n b=frXdkJofAbMEhZ6IP9on0RjqS68lZn1i76rclOcpHwPlSoSuiYgoLe3GAMLH1r47l\n H2+ZP1Sz9Cqt+1hSWFCATTECl/FtVyFN/+jFof9ffC8AJzmrq+jwlc7FLOqLUK1Kso\n qv6qtsgc4dGIVoNoEVnI00hd2EWFdC2V7O/MBPmg=",
        "Message-ID": "<18690e78c365d74591a1a4431cbe03a25aea08f4.camel@tugraz.at>",
        "Subject": "[C PATCH] Fix ICE related to field members that are arrays of\n pointers to structs [PR124625]",
        "From": "Martin Uecker <uecker@tugraz.at>",
        "To": "gcc-patches@gcc.gnu.org",
        "Cc": "Richard Biener <rguenther@suse.de>, Joseph Myers <josmyers@redhat.com>",
        "Date": "Sat, 28 Mar 2026 15:37:11 +0100",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "quoted-printable",
        "User-Agent": "Evolution 3.56.2-0+deb13u1 ",
        "MIME-Version": "1.0",
        "X-TUG-Backscatter-control": "G/VXY7/6zeyuAY/PU2/0qw",
        "X-Scanned-By": "MIMEDefang 2.74 on 129.27.10.117",
        "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": "Bootstrapped and regression tested on x86_64.\n\n\n    We get a checking error in verify_type, because I did not copy\n    TYPE_REVERSE_STORAGE_ORDER over from the original when reconstructing\n    derived types during the contruction of canonical types.\n    \n            PR c/124635\n    \n    gcc/c/ChangeLog:\n            * c-typeck.cc (c_reconstruct_complex_type): Copy\n            TYPE_REVERSE_STORAGE_ORDER.\n    \n    gcc/testsuite/ChangeLog:\n            * gcc.dg/pr124635.c: New test.",
    "diff": "diff --git a/gcc/c/c-typeck.cc b/gcc/c/c-typeck.cc\nindex 4452bb32728..043e49794ca 100644\n--- a/gcc/c/c-typeck.cc\n+++ b/gcc/c/c-typeck.cc\n@@ -548,8 +548,14 @@ c_reconstruct_complex_type (tree type, tree bottom)\n     }\n   else if (TREE_CODE (type) == ARRAY_TYPE)\n     {\n+      bool rso = TYPE_REVERSE_STORAGE_ORDER (type);\n       inner = c_reconstruct_complex_type (TREE_TYPE (type), bottom);\n       outer = c_build_array_type (inner, TYPE_DOMAIN (type));\n+      if (rso)\n+\t{\n+\t  outer = build_distinct_type_copy (outer);\n+\t  TYPE_REVERSE_STORAGE_ORDER (outer) = 1;\n+\t}\n \n       gcc_checking_assert (C_TYPE_VARIABLE_SIZE (type)\n \t\t\t   == C_TYPE_VARIABLE_SIZE (outer));\ndiff --git a/gcc/testsuite/gcc.dg/pr124635.c b/gcc/testsuite/gcc.dg/pr124635.c\nnew file mode 100644\nindex 00000000000..59883ba2365\n--- /dev/null\n+++ b/gcc/testsuite/gcc.dg/pr124635.c\n@@ -0,0 +1,10 @@\n+/* { dg-do compile } */\n+/* { dg-options \"-std=c23 -g\" } */\n+\n+#pragma scalar_storage_order big-endian\n+\n+struct S {\n+  struct S *s[1];\n+  char c;\n+};\n+\n",
    "prefixes": [
        "C"
    ]
}