Message ID | 20220930081806.2252641-1-torbjorn.svensson@foss.st.com |
---|---|
State | Accepted, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp371536wrs; Fri, 30 Sep 2022 01:19:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7EtOKm6GJdSJDRrqSdHTs8J0NDe0jmJSlOl+zYvgZZoTmMcWuTeiUMs+ZEQCJFnZ8PL94v X-Received: by 2002:a05:6402:2547:b0:450:668c:9d93 with SMTP id l7-20020a056402254700b00450668c9d93mr7017899edb.92.1664525971758; Fri, 30 Sep 2022 01:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664525971; cv=none; d=google.com; s=arc-20160816; b=RrEEgdRKmwAuWsiJjF5Nbw/GRl1Au6fwPsiNlavZa8PqOEtazNeY/P3pmGwWMCerNE UUnJml/Ay9hkqZAXGatQZZQq619BIRgCnUKgJ4NW+PHCcjmdIxbnJyD9UY+LBZIssAY6 gZ2z2ESRWdy9ihd0LCmonPHERFl37VQIy/5KurLR10UVxMgmdW7yS1BDhIlDgL1MFH5+ 5J0D6DWDW532fFjGfLJIAW0AbP2D5IC0oQTLiJisNd0NS4dP5r4XXo8GchJ48eY1BCUU 9nNdvveCVJ2ejUK5mQnVCrfakw5Qiu+ez8hOQlACdzJlRXcpT5EwLIZ11Wx9VPHX6m3e YB9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=1AvaQUgbMj64k6uGPpWX9eIwi3zS1+EaA25/0zuiZsA=; b=XX39+/1kpIZ61lJjUTORRaN79+sf2smBXkeG6qccTJW3QYW/cd4hgETbs+uCe9ISZE 5jfUWmyRrdH/f3MFm1JIPjyd3vFQvA5bgHiL/wXy2aY8zDTK7Ql9nbOXF0AYMvDke4cL k2xKZk0XYGu3R3Ok+FHYDQg4L4ODBoXzN5KwV2UguJCBLyrJPiqjHhA0KQ/nUjWGeJnk VuQ5fNO/A/WEA4uDTFCHE97F9syY3r9LNuTZqWiKXynte49ZrZSrf+u9wT2S54xwiQMr wsUg9AC5jEf6+I3XHgHz3Ob7+qBjl1/oCeqNZr2dw2nU6lZ+q4vw7GVih6zMRg+rrW3a z1vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="U9zP/reA"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c63-20020a509fc5000000b00456fe996346si1421037edf.72.2022.09.30.01.19.31 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Sep 2022 01:19:31 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="U9zP/reA"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 979C2385DC3B for <ouuuleilei@gmail.com>; Fri, 30 Sep 2022 08:19:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 979C2385DC3B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664525965; bh=1AvaQUgbMj64k6uGPpWX9eIwi3zS1+EaA25/0zuiZsA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=U9zP/reAOR6oz1MxqpVxZ+VzppB4IYQIITYKlmsbWLFk2s//arOugpTJT82U/IoKx QbPkZitBVnMDmJyv/kru2Y25cbo5XP1gif4EpD9XTRxFJDUOcL2FgGXBvrboj08jDU O3AfhTZNhKrA3+YiIkhz44HOGj0qDSTRiVbK3KgE= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id 1411F385C33A for <gcc-patches@gcc.gnu.org>; Fri, 30 Sep 2022 08:18:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1411F385C33A Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28U7L4Wm015678; Fri, 30 Sep 2022 10:18:23 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3jwqashra1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Sep 2022 10:18:23 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D71A310002A; Fri, 30 Sep 2022 10:18:21 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5C4B0216EF4; Fri, 30 Sep 2022 10:18:21 +0200 (CEST) Received: from jkgcxl0002.jkg.st.com (10.75.127.46) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 30 Sep 2022 10:18:20 +0200 To: <gcc-patches@gcc.gnu.org> Subject: [PATCH] testsuite: Colon is reserved on Windows Date: Fri, 30 Sep 2022 10:18:06 +0200 Message-ID: <20220930081806.2252641-1-torbjorn.svensson@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-30_04,2022-09-29_03,2022-06-22_01 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_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 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> From: =?utf-8?q?Torbj=C3=B6rn_SVENSSON_via_Gcc-patches?= <gcc-patches@gcc.gnu.org> Reply-To: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> Cc: jwakely@redhat.com, nathan@acm.org Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745381985425689986?= X-GMAIL-MSGID: =?utf-8?q?1745381985425689986?= |
Series |
testsuite: Colon is reserved on Windows
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Torbjorn SVENSSON
Sept. 30, 2022, 8:18 a.m. UTC
The ':' is reserved in filenames on Windows.
Can't find any specification for this, but when there is no filename
defined in the map file, GCC will replace the ':' with a '-' in the
generated filename for the module.
Without this patch, the test case failes with:
.../ben-1_a.C:4:8: error: failed to write compiled module: Invalid argument
.../ben-1_a.C:4:8: note: compiled module file is 'partitions/module:import.mod'
gcc/testsuite:
* g++.dg/modules/ben-1.map: Replace the colon with dash.
* g++.dg/modules/ben-1_a.C: Likewise
Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
gcc/testsuite/g++.dg/modules/ben-1.map | 2 +-
gcc/testsuite/g++.dg/modules/ben-1_a.C | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Comments
On 9/30/22 04:18, Torbjörn SVENSSON wrote: > The ':' is reserved in filenames on Windows. > Can't find any specification for this, but when there is no filename > defined in the map file, GCC will replace the ':' with a '-' in the > generated filename for the module. Correct (and the specification is in the source code, there's no requirement for any particular mapping, bu I was at least cognizant of windows' dislike of : :) > > Without this patch, the test case failes with: > .../ben-1_a.C:4:8: error: failed to write compiled module: Invalid argument > .../ben-1_a.C:4:8: note: compiled module file is 'partitions/module:import.mod' > > gcc/testsuite: > > * g++.dg/modules/ben-1.map: Replace the colon with dash. > * g++.dg/modules/ben-1_a.C: Likewise ok, thanks > > Co-Authored-By: Yvan ROUX <yvan.roux@foss.st.com> > Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> > --- > gcc/testsuite/g++.dg/modules/ben-1.map | 2 +- > gcc/testsuite/g++.dg/modules/ben-1_a.C | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/gcc/testsuite/g++.dg/modules/ben-1.map b/gcc/testsuite/g++.dg/modules/ben-1.map > index 182183ad089..ad84c11397d 100644 > --- a/gcc/testsuite/g++.dg/modules/ben-1.map > +++ b/gcc/testsuite/g++.dg/modules/ben-1.map > @@ -1,3 +1,3 @@ > $root . > -module:import partitions/module:import.mod > +module:import partitions/module-import.mod > module module.mod > diff --git a/gcc/testsuite/g++.dg/modules/ben-1_a.C b/gcc/testsuite/g++.dg/modules/ben-1_a.C > index 7e9b5661026..f1562eb2c5a 100644 > --- a/gcc/testsuite/g++.dg/modules/ben-1_a.C > +++ b/gcc/testsuite/g++.dg/modules/ben-1_a.C > @@ -2,7 +2,7 @@ > // { dg-additional-files ben-1.map } > > export module module:import; > -// { dg-module-cmi =partitions/module:import.mod } > +// { dg-module-cmi =partitions/module-import.mod } > > export int b() { > return 0;
diff --git a/gcc/testsuite/g++.dg/modules/ben-1.map b/gcc/testsuite/g++.dg/modules/ben-1.map index 182183ad089..ad84c11397d 100644 --- a/gcc/testsuite/g++.dg/modules/ben-1.map +++ b/gcc/testsuite/g++.dg/modules/ben-1.map @@ -1,3 +1,3 @@ $root . -module:import partitions/module:import.mod +module:import partitions/module-import.mod module module.mod diff --git a/gcc/testsuite/g++.dg/modules/ben-1_a.C b/gcc/testsuite/g++.dg/modules/ben-1_a.C index 7e9b5661026..f1562eb2c5a 100644 --- a/gcc/testsuite/g++.dg/modules/ben-1_a.C +++ b/gcc/testsuite/g++.dg/modules/ben-1_a.C @@ -2,7 +2,7 @@ // { dg-additional-files ben-1.map } export module module:import; -// { dg-module-cmi =partitions/module:import.mod } +// { dg-module-cmi =partitions/module-import.mod } export int b() { return 0;