| Message ID | 20260408114334.4165134-1-torbjorn.svensson@foss.st.com |
|---|---|
| State | New |
| Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 925CD4BA2E0D for <patchwork@sourceware.org>; Wed, 8 Apr 2026 11:44:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 925CD4BA2E0D Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256 header.s=selector2 header.b=QJM3TZUI X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11010002.outbound.protection.outlook.com [52.101.84.2]) by sourceware.org (Postfix) with ESMTPS id 47B1E4BA2E09 for <gcc-patches@gcc.gnu.org>; Wed, 8 Apr 2026 11:43:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47B1E4BA2E09 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 47B1E4BA2E09 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=52.101.84.2 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1775648633; cv=pass; b=mJP9cqORygwbcDVVqkFvYvijVUnl78EpmTgGpDwcAusdsdtudPvEpA9So/tLhHVzZuLc2m3XuFKcwUM/lrMJU7m0Kl0qapmBxshBlTXEbZvLaHxfkc/O4nLQHNLcSYQJOgoSVSztuxAqZfhXf6d+T46OrgG6qsc+V2ucyRzoFJI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1775648633; c=relaxed/simple; bh=x7xy9tF0Tdj/tzi+KiOU4UVE9GxKcHbeaylz0ezkk9c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=P5n2X8+AuwZ8Cs0FaE9CeVOB/5GbIRRud9u5wYOMkc4go2IwgKWbRDnyxWbF0fUbndC8+3Dy3RsGRcWoT2odwQcBNDY5bxx2zks5CkJ7w29NIct5l37Z2ZKK7yjmnWFVuBk4XIMEa9p+c/zP8Kfw44tUmi32/M6K/WmTtvudgXA= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47B1E4BA2E09 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UXbBke7HokSi8k0nSb7w32MqAEfyDdFH+Xstg+0pcWGSCglApWl7fo94qJIAsVO6p9Oh3e8SIPd2nSV/KbTmjMfc1RS4cz2nvTwpV9aDF3JwoZusIif2RmhQ6ijtL1Y2/A6Oo9yXE96pYySkaI7//pKEzoIDyz2SoYThP9rqCDWLRMtz+KYbfQTyVlUU4UyAwdzzK+p4sMPrkFO6GMUuf5a9OFIK0G3eb5+mT6cMHHaBq5UdBRObJoLS0ZUB4/4ckm5+lk96eySR5LkgD7sNyuMkW6rNaMVSbNZ86a6fROBdp8Td2o0uSfpbHTQLar9E22cWV3S6YowZ49qBYKX73A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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; bh=mwL4KaTrVbhQak2UAazRHUHBiyFDXhG9YVFT93urWTs=; b=vuQ87CXwJruZZ0B50iQUR4oq2A9t4nEQWkFAZCixZ9PCyIiPf1jz0S4ZidqGFMI7vg+gWl6YHdepGMXQFzYa7NHlfzcWs9/MDXbRSaBhHrG9LhF1A7gCwGfnhuhkeResAI30iGxPIsslp4nweYvSmCd6CRY4ixcWEe4vzEckl1+hjvEdCPcDRcS9kWcsFMXNAzSqFkTFkl1vnxCDW8CU6kgk6SjKsoOGhi+3vEccPTk99tyyFmfsi0KRZTABfPSkQk06sbvg8KZiGQ+oxB7Bb+0etpByIgJPCb703gXDGpveHk3uLhu8s/lPNKkNC5Jti9P9y41iU92VBLlq5gJT8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 164.130.1.60) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=foss.st.com; dmarc=fail (p=none sp=none pct=100) action=none header.from=foss.st.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mwL4KaTrVbhQak2UAazRHUHBiyFDXhG9YVFT93urWTs=; b=QJM3TZUIRpfnivNa/xjkmvqlz6aEoV+oXr1THXlimYlnz6W7vD5sVn7fkyEiWyIYwckmlb5F/cIq6M4/mD+x3nphMEuyC44VWL77GsseoMcLOdabLqKTmSbmmtAG6BgF/N477SUFCZtZuMdM/KsOjpPKKpi9SzGFmkkUabn7upR7BxqtLaiHvzxLZjtDiz8Ytwu2xuTVCyFJPd/6DBeTc9iLgVeD8xIXwKs0IKYV9Sy/57EqhB5c2hRH2NoKB4lqv9Il49XZsv5aqJIsaVshl5K79SBdw10g3zSRfdo4Z4c2cigxLdgcVQakY/hayN0BKn6OwrZMU+fwzxtzS/ZMIA== Received: from DU6P191CA0003.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:540::29) by DU4PR10MB9470.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:5f1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9769.17; Wed, 8 Apr 2026 11:43:49 +0000 Received: from DB1PEPF00039234.eurprd03.prod.outlook.com (2603:10a6:10:540:cafe::75) by DU6P191CA0003.outlook.office365.com (2603:10a6:10:540::29) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.9769.37 via Frontend Transport; Wed, 8 Apr 2026 11:43:49 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 164.130.1.60) smtp.mailfrom=foss.st.com; dkim=none (message not signed) 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 designate 164.130.1.60 as permitted sender) receiver=protection.outlook.com; client-ip=164.130.1.60; helo=smtpO365.st.com; Received: from smtpO365.st.com (164.130.1.60) by DB1PEPF00039234.mail.protection.outlook.com (10.167.8.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9723.19 via Frontend Transport; Wed, 8 Apr 2026 11:43:49 +0000 Received: from STKDAG1NODE2.st.com (10.75.128.133) by smtpO365.st.com (10.250.44.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Wed, 8 Apr 2026 13:46:33 +0200 Received: from jkgcxl0012.jkg.st.com (10.74.22.122) by STKDAG1NODE2.st.com (10.75.128.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.29; Wed, 8 Apr 2026 13:43:48 +0200 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 (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; ARA:13230040|82310400026|42112799006|1800799024|36860700016|376014|56012099003|18002099003; X-Microsoft-Antispam-Message-Info: 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:; IPV:CAL; SFV:NSPM; H:smtpO365.st.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(82310400026)(42112799006)(1800799024)(36860700016)(376014)(56012099003)(18002099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 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: 12c423c6-f967-4fc6-e2d1-08de956419a9 X-MS-Exchange-CrossTenant-Id: 75e027c9-20d5-47d5-b82f-77d7cd041e8f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=75e027c9-20d5-47d5-b82f-77d7cd041e8f; Ip=[164.130.1.60]; Helo=[smtpO365.st.com] X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF00039234.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR10MB9470 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org 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>, <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>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
| Series |
testsuite: munge absolute paths like compiler do on Windows
|
|
Checks
| Context | Check | Description |
|---|---|---|
| linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | success | Build passed |
| linaro-tcwg-bot/tcwg_gcc_build--master-arm | success | Build passed |
Commit Message
Torbjorn SVENSSON
April 8, 2026, 11:38 a.m. UTC
Without this patch, I see errors like:
FAIL: 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)
Obviously, the path is illegal on Windows since the colon is a reserved character.
With below patch, I instead get:
PASS: 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)
There is no impact of this change on Linux when testing an arm-none-eabi toolchain.
Ok for trunk?
--
GCC munges absolute paths on Windows by replacing the colon with a dash.
gcc/testsuite/ChangeLog:
* g++.dg/modules/modules.exp: Replace colon with dash on
Windows.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
gcc/testsuite/g++.dg/modules/modules.exp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/g++.dg/modules/modules.exp b/gcc/testsuite/g++.dg/modules/modules.exp index 2c7365db1cc..aa351b73e0e 100644 --- a/gcc/testsuite/g++.dg/modules/modules.exp +++ b/gcc/testsuite/g++.dg/modules/modules.exp @@ -83,7 +83,10 @@ proc host_header_path {hname} { # Return the pathname CMI munged like the compiler. proc munge_cmi {cmi} { - if { [string index $cmi 0] == "/" } { + if { [string index $cmi 1] == ":" && [info exists ::env(OS)] && [string match "Windows*" $::env(OS)] } { + # Windows paths like C:/some/path should be munged to C-/some/path + set cmi [string replace $cmi 1 1 "-"] + } elseif { [string index $cmi 0] == "/" } { set cmi [string range $cmi 1 end] } else { set cmi ",/$cmi"