get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2224671,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2224671/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260417172859.1015301-5-torbjorn.svensson@foss.st.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": "<20260417172859.1015301-5-torbjorn.svensson@foss.st.com>",
    "list_archive_url": null,
    "date": "2026-04-17T17:28:58",
    "name": "[24/30] Change `class modref_summary_lto` to `struct modref_summary_lto` to align tags",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "8d724a5ad5a80c78bafb2965c10ea2dc6c656dc6",
    "submitter": {
        "id": 84848,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/84848/?format=api",
        "name": "Torbjörn SVENSSON",
        "email": "torbjorn.svensson@foss.st.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260417172859.1015301-5-torbjorn.svensson@foss.st.com/mbox/",
    "series": [
        {
            "id": 500377,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/500377/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500377",
            "date": "2026-04-17T17:25:07",
            "name": "Align struct/class forward declaration with implementation",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500377/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2224671/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2224671/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=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=iFJzK8AT;\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=foss.st.com header.i=@foss.st.com header.a=rsa-sha256\n header.s=selector2 header.b=iFJzK8AT",
            "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=foss.st.com",
            "sourceware.org; spf=pass smtp.mailfrom=foss.st.com",
            "server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.69.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 4fy2Fg1RNyz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 18 Apr 2026 03:39:51 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 197BE4CD201D\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 17 Apr 2026 17:39:49 +0000 (GMT)",
            "from AM0PR83CU005.outbound.protection.outlook.com\n (mail-westeuropeazon11010068.outbound.protection.outlook.com [52.101.69.68])\n by sourceware.org (Postfix) with ESMTPS id 468FB4D108E0\n for <gcc-patches@gcc.gnu.org>; Fri, 17 Apr 2026 17:29:25 +0000 (GMT)",
            "from CWLP265CA0490.GBRP265.PROD.OUTLOOK.COM (2603:10a6:400:18a::14)\n by GV1PR10MB5890.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:56::10)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9818.25; Fri, 17 Apr\n 2026 17:29:19 +0000",
            "from AMS0EPF000001AB.eurprd05.prod.outlook.com\n (2603:10a6:400:18a:cafe::b7) by CWLP265CA0490.outlook.office365.com\n (2603:10a6:400:18a::14) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.52 via Frontend Transport; Fri,\n 17 Apr 2026 17:29:19 +0000",
            "from smtpO365.st.com (164.130.1.59) by\n AMS0EPF000001AB.mail.protection.outlook.com (10.167.16.151) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9769.17 via Frontend Transport; Fri, 17 Apr 2026 17:29:19 +0000",
            "from STKDAG1NODE2.st.com (10.75.128.133) by smtpo365.st.com\n (10.250.44.71) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 17 Apr\n 2026 19:32:26 +0200",
            "from jkgcxl0012.jkg.st.com (10.74.22.122) by STKDAG1NODE2.st.com\n (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Fri, 17 Apr\n 2026 19:29:13 +0200"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 197BE4CD201D",
            "OpenDKIM Filter v2.11.0 sourceware.org 468FB4D108E0"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 468FB4D108E0",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 468FB4D108E0",
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776446965; cv=pass;\n b=LcWNYLENMpxl91KtZXYHUoEp7lCmjdFqUJ9bKqeAM6W+u8f4K8/aaQ2wbzfOmxJKyF5ZOQTPFeqxroVgdBM4XS4cdIRLXWLbyqmBQPkqoRE7pODiwwGXlMr4ynWM3lkdUjWRa6KqVRmSuqkgZlpfnbT3DPg8S7XMdMvu/1KCvFQ=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=f1Xco8Ae2v8Qy8qiVZ1lRP4OgMc5Fw8ytIhFgiy+/131kMIRqHwShZKEpwwEx8C+yW//PVkzzCsbFaUN3UMdIcNBGdST4TWwYniKIDcUwc1rzHgZ1snZKHegri80/9MVSxca8Dede1l/FkKLDY6lv6ESVNVKWA/wawaPnw5geZ0mtX3axcy0GpBW/ndeBNkYTO8eEQZNSkXvUCMGoTCp9zil2KoO43lDlHcmA4T3nxsGmBCzpYcbIwqL3N5CqBGIx3aLfaDPW9Rk5/JOq1YZmawoUvsJld3NJ+x1/Jb3ceeEoGsvtjyWbSpDsacwyMGP3ktuTwqnTsIeBfjAfxdbYw=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776446965; c=relaxed/simple;\n bh=GT5TRRIsBQJg6KyUevGWOAUMI0Myh6sv95UAUC+P1QY=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=l4dNYZOtZKx+tWVbrbKVLxahDN+2R3TA7ENqjtVmMemLGYxUJz77QOYjvRhjdlpGEwXzAr/LeOl79rpT5t+s/2y+dtXlVubWS0cy1/+JqF2rITO2bsnleHl5P1wR3Z2KjXB2jC0nhYARwKV/ELt0kNJ/sM2tPQbxpB0u7mFU3FE=",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=qftUUSjMy5axulYu2qqbzBmBbmKjEznyvaWlxZoKBP8=;\n b=FXJMXh0tRngPAL/GFj/rdefLO3HmTLoWpNZo/VLRkvggQNYYCQtYcpwZGu328G4abp/+bGxisRZbOWoMD8uuEoJXPQorPq6wItmGUpZi0sElJEvrb86cgd/vuH76J/ZhF2TioD/rehRj3HKY6iNZxhiH6dO0sqG/Kol8ZmI68EI8hyOaBHIxYKhSS+cexocuzdk+hzFg74sCfrIYzDj9QU9oAK8P278a22ORJi9kLGabkrAmPfJZeS/Dtq9yOHiAvb8o0vrBzOKHBa1scuDLemiYqLZuzwBbs4BjoU8IzK63Mg6cwxTLB4BYxKmI7PVsy0eJgfQ+mucWrVmC7DizUQ=="
        ],
        "ARC-Authentication-Results": [
            "i=2; server2.sourceware.org",
            "i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 164.130.1.59) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=foss.st.com;\n dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com;\n dkim=none (message not signed); arc=none (0)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=qftUUSjMy5axulYu2qqbzBmBbmKjEznyvaWlxZoKBP8=;\n b=iFJzK8ATzwLsWWQ1IxDP8cqakGfeZTuKzdufK70OyFHyqYhUnNE5SrOYTfxllrus9Z/XxhJVPaBDzANtTIhnP6CHDEjqjBezPJ1Vn98F3nTMr9S+4U6r5A1inkd9IbAgK4/u0+IeGnUOSKh/5D9FAALN7OSEFyqPI/MLUxli4Dj9zqCZH5qkvXbbDczGWKcQ3LNweVQA4/NS8tzXukKaRho+AdHJXbuW6jRPk2AW6kKTcgCzTO30OMlAwdXUhulvYhzfZZVYXyCRij2GD9XXWzuHdE2dn1PaudffSWwc2CShUaQl0rlzEM9tUsAlxk0EaMqnmSismHG0uO7MN5qhiQ==",
        "X-MS-Exchange-Authentication-Results": "spf=fail (sender IP is 164.130.1.59)\n smtp.mailfrom=foss.st.com; dkim=none (message not signed)\n header.d=none;dmarc=fail action=none header.from=foss.st.com;",
        "Received-SPF": "Fail (protection.outlook.com: domain of foss.st.com does not\n designate 164.130.1.59 as permitted sender) receiver=protection.outlook.com;\n client-ip=164.130.1.59; helo=smtpO365.st.com;",
        "From": "=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>",
        "To": "<gcc-patches@gcc.gnu.org>",
        "CC": "=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>",
        "Subject": "[PATCH 24/30] Change `class modref_summary_lto` to `struct\n modref_summary_lto` to align tags",
        "Date": "Fri, 17 Apr 2026 19:28:58 +0200",
        "Message-ID": "<20260417172859.1015301-5-torbjorn.svensson@foss.st.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260417172506.1015169-2-torbjorn.svensson@foss.st.com>",
        "References": "<20260417172506.1015169-2-torbjorn.svensson@foss.st.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.74.22.122]",
        "X-ClientProxiedBy": "ENXCAS1NODE2.st.com (10.75.128.138) To STKDAG1NODE2.st.com\n (10.75.128.133)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "AMS0EPF000001AB:EE_|GV1PR10MB5890:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "0f980934-4c43-4d11-aa0e-08de9ca6db9d",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|82310400026|376014|42112799006|1800799024|36860700016|22082099003|56012099003|18002099003;",
        "X-Microsoft-Antispam-Message-Info": "\n 8XhXKcbB1yM+qMdPxKVp+Vq7bpxNqHE8blNdg/r5E6VTb6zz90jBu66DxCg1bZ9fYHK/orLpTzEgaN6Bw9mi5FNs9N+mJDdaVwc+P+i44YA7828HT9U5HP3l0SAU/aT2MVgFAROW/KmIlJi2c81NlLVMlTt3DTESg9IrLTZOQ9WaN7CLJkRLH6/fSp9fxhyI1ASv+3xKGtQwq9a/96tYMeIRs4oufnvfwticPDh15NQEoQTRIMCzOrk3flfPaha5vnh6q6Lc89oFibRjydBF4X10hFdMeEbm9Jial/XkV+JMgWrstnlfviE+V+VJxwkawEFYtIWLZ1THyztR+vI7q0CuV8rIH1Lmf+16vhjkLSVjdWahg7NVJfgs+qooELtex71VN6xRb9SvpzOMLBhEnAOwFbWm0szFtN+niF16iVVUhMFXW95IkvG9PCEufE8Sz3vawor1n/tkRVkdoDRFpQAMuJs5vImdvT3Xka68dT5b3vYJ4xz+yy0VIl4kipB6tLXIn6/wzfOIVFHECSPDNJ0AYehFK124w8teHJMECgFy06ICj1soingCIxEwXqT0FDYBZW9FbW9dad+Izb604WMHGPYW0kGB89cFqDVoARWvQLuZPM5Eia/LuRlT+ONZDhYOyNYpFw2R+5GJJH4zJN+1scNu0i38bG2hIKDIa4mcoJy8fGw+op7ocHRUc3C4O4nTXI8Gb8oqDyysrGZKKFyuXHiAW37auYb+S+WufXhyaSprK3epOguiRi0FMDFpI5adWPPXBYY46R72JPRzaQ==",
        "X-Forefront-Antispam-Report": "CIP:164.130.1.59; CTRY:IT; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:smtpO365.st.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(82310400026)(376014)(42112799006)(1800799024)(36860700016)(22082099003)(56012099003)(18002099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n 8Q8SbXxKuEiTJNv82pmRP5eVwlcgybuEraO1kknhA+kL7gd4RpYQytu4RyT1qrEr0p2VpR7hemBwlwNysL2VK7lZ85z5lYAxXhos+9bNtu3V6W0LTuZYAxEC4P0HwQex1rdGfzcUtrf2kHna1WM2d+D8mydV5LuzTIVlaHO8TExEgwb/ahSUI9xHCOHGhEWkRS0RtbUOMsFx+tQ89g3XC2YufXe3DTJTWZ/rScPiFaZtIuFCUxO89AQr5OiYiIyCFzzNCOhxnwlMo+0bMiQZEU0KEicx0CpYP6xxkyY2OuDmrtnlckx961e+/EDwDXAIiiNyHouqhFUzB6SE2zUsl29C2osmZIZsniYAjiThUKaiqBqSXryHzaqS/z762mTqs0aZ2btSm00iLi6F4SDsyp9jZO04oPT6uAr1HxRmjla2omT4+1dHWlfpOdzLLhy/",
        "X-OriginatorOrg": "foss.st.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "17 Apr 2026 17:29:19.5422 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 0f980934-4c43-4d11-aa0e-08de9ca6db9d",
        "X-MS-Exchange-CrossTenant-Id": "75e027c9-20d5-47d5-b82f-77d7cd041e8f",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; Ip=[164.130.1.59];\n Helo=[smtpO365.st.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n AMS0EPF000001AB.eurprd05.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "GV1PR10MB5890",
        "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": "Building GCC with clang gives warnings like:\nwarning: class 'modref_summary_lto' was previously declared as a struct; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags]\n\ngcc/ChangeLog:\n\n\t* ipa-modref.cc: Change `class modref_summary_lto` to `struct\n\tmodref_summary_lto`.\n\nSigned-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>\n---\n gcc/ipa-modref.cc | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/gcc/ipa-modref.cc b/gcc/ipa-modref.cc\nindex 109edac63c7..777e84edf98 100644\n--- a/gcc/ipa-modref.cc\n+++ b/gcc/ipa-modref.cc\n@@ -231,7 +231,7 @@ public:\n   }\n };\n \n-class modref_summary_lto;\n+struct modref_summary_lto;\n \n /* Class (from which there is one global instance) that holds modref summaries\n    for all analyzed functions.  */\n@@ -5325,7 +5325,7 @@ ipa_merge_modref_summary_after_inlining (cgraph_edge *edge)\n   struct cgraph_node *to = (edge->caller->inlined_to\n \t\t\t    ? edge->caller->inlined_to : edge->caller);\n   struct modref_summary *to_info = summaries ? summaries->get (to) : NULL;\n-  class modref_summary_lto *to_info_lto = summaries_lto\n+  struct modref_summary_lto *to_info_lto = summaries_lto\n \t\t\t\t\t  ? summaries_lto->get (to) : NULL;\n \n   if (!to_info && !to_info_lto)\n@@ -5340,7 +5340,7 @@ ipa_merge_modref_summary_after_inlining (cgraph_edge *edge)\n \n   struct modref_summary *callee_info = summaries ? summaries->get (edge->callee)\n \t\t\t\t      : NULL;\n-  class modref_summary_lto *callee_info_lto\n+  struct modref_summary_lto *callee_info_lto\n \t\t = summaries_lto ? summaries_lto->get (edge->callee) : NULL;\n \n   /* Compute effective ECF_CONST, ECF_PURE, ECF_NOVOPS,\n",
    "prefixes": [
        "24/30"
    ]
}