get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220890,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220890/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260408114334.4165134-1-torbjorn.svensson@foss.st.com/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260408114334.4165134-1-torbjorn.svensson@foss.st.com>",
    "date": "2026-04-08T11:38:54",
    "name": "testsuite: munge absolute paths like compiler do on Windows",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "851c8ac88b4e246e2d926c56985a0d2db0a9c072",
    "submitter": {
        "id": 84848,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/84848/?format=api",
        "name": "Torbjörn SVENSSON",
        "email": "torbjorn.svensson@foss.st.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260408114334.4165134-1-torbjorn.svensson@foss.st.com/mbox/",
    "series": [
        {
            "id": 499123,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499123/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499123",
            "date": "2026-04-08T11:38:54",
            "name": "testsuite: munge absolute paths like compiler do on Windows",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499123/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220890/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220890/checks/",
    "tags": {},
    "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=QJM3TZUI;\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 (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=QJM3TZUI",
            "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.84.2"
        ],
        "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 4frLnj2sJvz1yD6\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 21:44:24 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id E58804BA2E11\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Apr 2026 11:44:21 +0000 (GMT)",
            "from DB3PR0202CU003.outbound.protection.outlook.com\n (mail-northeuropeazon11010002.outbound.protection.outlook.com [52.101.84.2])\n by sourceware.org (Postfix) with ESMTPS id 47B1E4BA2E09\n for <gcc-patches@gcc.gnu.org>; Wed,  8 Apr 2026 11:43:53 +0000 (GMT)",
            "from DU6P191CA0003.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:540::29)\n by DU4PR10MB9470.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:5f1::16) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17; Wed, 8 Apr\n 2026 11:43:49 +0000",
            "from DB1PEPF00039234.eurprd03.prod.outlook.com\n (2603:10a6:10:540:cafe::75) by DU6P191CA0003.outlook.office365.com\n (2603:10a6:10:540::29) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.37 via Frontend Transport; Wed,\n 8 Apr 2026 11:43:49 +0000",
            "from smtpO365.st.com (164.130.1.60) by\n DB1PEPF00039234.mail.protection.outlook.com (10.167.8.107) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9723.19 via Frontend Transport; Wed, 8 Apr 2026 11:43:49 +0000",
            "from STKDAG1NODE2.st.com (10.75.128.133) by smtpO365.st.com\n (10.250.44.72) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Wed, 8 Apr\n 2026 13:46:33 +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; Wed, 8 Apr\n 2026 13:43:48 +0200"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org E58804BA2E11",
            "OpenDKIM Filter v2.11.0 sourceware.org 47B1E4BA2E09"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 47B1E4BA2E09",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 47B1E4BA2E09",
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1775648633; cv=pass;\n b=mJP9cqORygwbcDVVqkFvYvijVUnl78EpmTgGpDwcAusdsdtudPvEpA9So/tLhHVzZuLc2m3XuFKcwUM/lrMJU7m0Kl0qapmBxshBlTXEbZvLaHxfkc/O4nLQHNLcSYQJOgoSVSztuxAqZfhXf6d+T46OrgG6qsc+V2ucyRzoFJI=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=UXbBke7HokSi8k0nSb7w32MqAEfyDdFH+Xstg+0pcWGSCglApWl7fo94qJIAsVO6p9Oh3e8SIPd2nSV/KbTmjMfc1RS4cz2nvTwpV9aDF3JwoZusIif2RmhQ6ijtL1Y2/A6Oo9yXE96pYySkaI7//pKEzoIDyz2SoYThP9rqCDWLRMtz+KYbfQTyVlUU4UyAwdzzK+p4sMPrkFO6GMUuf5a9OFIK0G3eb5+mT6cMHHaBq5UdBRObJoLS0ZUB4/4ckm5+lk96eySR5LkgD7sNyuMkW6rNaMVSbNZ86a6fROBdp8Td2o0uSfpbHTQLar9E22cWV3S6YowZ49qBYKX73A=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775648633; c=relaxed/simple;\n bh=x7xy9tF0Tdj/tzi+KiOU4UVE9GxKcHbeaylz0ezkk9c=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=P5n2X8+AuwZ8Cs0FaE9CeVOB/5GbIRRud9u5wYOMkc4go2IwgKWbRDnyxWbF0fUbndC8+3Dy3RsGRcWoT2odwQcBNDY5bxx2zks5CkJ7w29NIct5l37Z2ZKK7yjmnWFVuBk4XIMEa9p+c/zP8Kfw44tUmi32/M6K/WmTtvudgXA=",
            "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=mwL4KaTrVbhQak2UAazRHUHBiyFDXhG9YVFT93urWTs=;\n b=vuQ87CXwJruZZ0B50iQUR4oq2A9t4nEQWkFAZCixZ9PCyIiPf1jz0S4ZidqGFMI7vg+gWl6YHdepGMXQFzYa7NHlfzcWs9/MDXbRSaBhHrG9LhF1A7gCwGfnhuhkeResAI30iGxPIsslp4nweYvSmCd6CRY4ixcWEe4vzEckl1+hjvEdCPcDRcS9kWcsFMXNAzSqFkTFkl1vnxCDW8CU6kgk6SjKsoOGhi+3vEccPTk99tyyFmfsi0KRZTABfPSkQk06sbvg8KZiGQ+oxB7Bb+0etpByIgJPCb703gXDGpveHk3uLhu8s/lPNKkNC5Jti9P9y41iU92VBLlq5gJT8A=="
        ],
        "ARC-Authentication-Results": [
            "i=2; server2.sourceware.org",
            "i=1; mx.microsoft.com 1; spf=fail (sender ip is\n 164.130.1.60) 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=mwL4KaTrVbhQak2UAazRHUHBiyFDXhG9YVFT93urWTs=;\n b=QJM3TZUIRpfnivNa/xjkmvqlz6aEoV+oXr1THXlimYlnz6W7vD5sVn7fkyEiWyIYwckmlb5F/cIq6M4/mD+x3nphMEuyC44VWL77GsseoMcLOdabLqKTmSbmmtAG6BgF/N477SUFCZtZuMdM/KsOjpPKKpi9SzGFmkkUabn7upR7BxqtLaiHvzxLZjtDiz8Ytwu2xuTVCyFJPd/6DBeTc9iLgVeD8xIXwKs0IKYV9Sy/57EqhB5c2hRH2NoKB4lqv9Il49XZsv5aqJIsaVshl5K79SBdw10g3zSRfdo4Z4c2cigxLdgcVQakY/hayN0BKn6OwrZMU+fwzxtzS/ZMIA==",
        "X-MS-Exchange-Authentication-Results": "spf=fail (sender IP is 164.130.1.60)\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.60 as permitted sender) receiver=protection.outlook.com;\n client-ip=164.130.1.60; helo=smtpO365.st.com;",
        "From": "=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>",
        "To": "<gcc-patches@gcc.gnu.org>, <rguenther@suse.de>",
        "CC": "=?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com>",
        "Subject": "[PATCH] testsuite: munge absolute paths like compiler do on Windows",
        "Date": "Wed, 8 Apr 2026 13:38:54 +0200",
        "Message-ID": "<20260408114334.4165134-1-torbjorn.svensson@foss.st.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"UTF-8\"",
        "Content-Transfer-Encoding": "8bit",
        "X-Originating-IP": "[10.74.22.122]",
        "X-ClientProxiedBy": "STKCAS1NODE1.st.com (10.75.128.134) To STKDAG1NODE2.st.com\n (10.75.128.133)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "DB1PEPF00039234:EE_|DU4PR10MB9470:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "12c423c6-f967-4fc6-e2d1-08de956419a9",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;\n ARA:13230040|82310400026|42112799006|1800799024|36860700016|376014|56012099003|18002099003;",
        "X-Microsoft-Antispam-Message-Info": "\n JSzqdbHKIpfgHlGLxKgvt1A3LmdlI6J9KJkha7xVozl0+rb1O5jQytACqIYt3L0V73rx2fx8Anmud1Et8IR3jaHnExpykX+xIBWEr18fJ1B6NvytgvuqI2jQnohfi61pkujOtFm+91JbTMAq9d/jiuUrcXgDVjV9ffwfEhNuWrdrSpLyjaJZLYp9i2YJ/6BJrtC0yeg3PxlUhwgHW6BHn+WOJjI1IZjy0z/ihyZrAQxYjyS0uI1OgU6kedESLV7Mqx1M2bg4w9MI2dEmErGiOIsWVsMwd5rRTwvpCA4hheqr3prz6bKvW7G2jMeHA/5pSZvbzRCCY4WTRwbzsDPwn+jmcJfPcIIO8A3Y8GIdIQf86THTMcAszNDs9q3FQDoNp9a4R7Nn566KKGsSeM/ePXkVvSjrHnFCbtMIjHPq510n1gKm9X7ClkM/FJ56UN3jt1lMQvcGgfdqUJOauvQ3phQBwiDwT9fU22tDmPHZyyEvnZ+qf4m+N7IQ08YWWHrakHv3oJ/PLMB2Pb0zqG2CoxldNtEySV/WTTFnMjrJF278AixT5UZVd7fppDka3JEjvwCpFqgAZrjHeOLyc74CbjRZiJQQqdLksydw82p4jSW3aVNOwNWqUYEInjjL55si/8WyTqkALL3IIPEC6SonzBPkF6DzOyAfVWSy2kvEm8vFo3Ejf+0SOtU3dmG6un7c7FVKpzwEc3QLQEM3mywhaZM34aQF0HHxNBLa2OwS3Y8=",
        "X-Forefront-Antispam-Report": "CIP:164.130.1.60; CTRY:IT; LANG:en; SCL:1; SRV:;\n IPV:CAL; SFV:NSPM; H:smtpO365.st.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(82310400026)(42112799006)(1800799024)(36860700016)(376014)(56012099003)(18002099003);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n V515nnUbt6LInVCoB6KzVGHe333IrTHsOsm/opMdlnS3d0BlyEWEIGj1yiPWibcfol+6lgZSbgWbvl5DjIueBkZehc2wuzy6O9jG8Fy+DYVCHw6TFpQn3tmeNzA9Ftc+9k8H/mqwQ8b4CVkDEITaklRxKFp6U/xybfbcmfKS+3hqHE5mIDT8jrIYJTlOXKVcaVS9y5eg1Ih8yWjZKEVWcd/2+wSVx2hLWnQF42PCZroiOwUOisduMpSubHCfOAUoRauPB12faliY87SrKRtoE3X8vX+5DSejdFIMQ+IP9pBjzsip58r9bNLsw5mkJvSLvieIxX4KLxwW/gU/5MTx46VbAw9kQsTkyl+i68zE+Fp/A/EqUPOkHZeBMaFrGcvo/TMRsNyt/EtguXuZ4qYwPH3WYpve9QMBfRfOhou2iwoFYv4edFCmRIGsMASG46uK",
        "X-OriginatorOrg": "foss.st.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "08 Apr 2026 11:43:49.1878 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 12c423c6-f967-4fc6-e2d1-08de956419a9",
        "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.60];\n Helo=[smtpO365.st.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n DB1PEPF00039234.eurprd03.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DU4PR10MB9470",
        "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": "Without this patch, I see errors like:\n\nFAIL: g++.dg/modules/compile-std1.C module-cmi <bits/stdc++.h> (gcm.cache/,/T:/build/r16-8473-g5cc0ead3625fe6/arm-none-eabi/include/c++/16.0.1/arm-none-eabi/thumb/v6-m/nofp/bits/stdc++.h.gcm)\n\nObviously, the path is illegal on Windows since the colon is a reserved character.\nWith below patch, I instead get:\n\nPASS: g++.dg/modules/compile-std1.C module-cmi <bits/stdc++.h> (gcm.cache/T-/build/r16-8473-g5cc0ead3625fe6/arm-none-eabi/include/c++/16.0.1/arm-none-eabi/thumb/v6-m/nofp/bits/stdc++.h.gcm)\n\nThere is no impact of this change on Linux when testing an arm-none-eabi toolchain.\n\nOk for trunk?\n\n--\n\nGCC munges absolute paths on Windows by replacing the colon with a dash.\n\ngcc/testsuite/ChangeLog:\n\n\t* g++.dg/modules/modules.exp: Replace colon with dash on\n\tWindows.\n\nSigned-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>\n---\n gcc/testsuite/g++.dg/modules/modules.exp | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/gcc/testsuite/g++.dg/modules/modules.exp b/gcc/testsuite/g++.dg/modules/modules.exp\nindex 2c7365db1cc..aa351b73e0e 100644\n--- a/gcc/testsuite/g++.dg/modules/modules.exp\n+++ b/gcc/testsuite/g++.dg/modules/modules.exp\n@@ -83,7 +83,10 @@ proc host_header_path {hname} {\n \n # Return the pathname CMI munged like the compiler.\n proc munge_cmi {cmi} {\n-    if { [string index $cmi 0] == \"/\" } {\n+    if { [string index $cmi 1] == \":\" && [info exists ::env(OS)] && [string match \"Windows*\" $::env(OS)] } {\n+\t# Windows paths like C:/some/path should be munged to C-/some/path\n+\tset cmi [string replace $cmi 1 1 \"-\"]\n+    } elseif { [string index $cmi 0] == \"/\" } {\n \tset cmi [string range $cmi 1 end]\n     } else {\n \tset cmi \",/$cmi\"\n",
    "prefixes": []
}