Message ID | 20240206165825.3602755-1-torbjorn.svensson@foss.st.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1676461dyb; Tue, 6 Feb 2024 09:00:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW8q1DgRgMMnu8AkzWdAkR5YEiRacpuIzOGNC2f2xlb2C6DjmYymxoDc9EAC7h0zIXxDFaqyeqbYrSdT8Hvtn55p06xug== X-Google-Smtp-Source: AGHT+IFUfn3pDcydlqA/4dt8xEMOUQ+WIsOlQ4XX4e1mLfgnYncJVo71RFFnUgbKsw+7z1QxYfGE X-Received: by 2002:a25:ac52:0:b0:dc6:9ea9:8154 with SMTP id r18-20020a25ac52000000b00dc69ea98154mr2246450ybd.13.1707238831165; Tue, 06 Feb 2024 09:00:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707238831; cv=pass; d=google.com; s=arc-20160816; b=eMYAF3NppSnRAG74WqXDdArem0Y9/7l7KgKRBe1J60V8N6+ia74dai8+eoL7CYsbLw HuZ3QceJoOub5MqHLoYhOYQovMwQ9UzFi/7xgKUViicHfHIViswk7JfoGwJYlKUWGHPB 5bBsqjY4b7QEJYbJdouTvUhlRYKVFgZVDmb+CCYEh+oQjXmeKf3KZvme0FhbgSwAOWxD JUok+nMSFsODnOh9LQPa5sfaZZfaeFjUSZttN4enibU6UY0yvlRXXpptsZqcgFFR7Huc 1oTTh3ikoFMIJa6/DWoiLbZ+eHQgCFqKIpnlLWinbSA7NiN/Rdmh2kk4mzLurVxn+Djl krKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=pewn0u3lwz/fCNl8DZwHOvGTmpAnDfuMHtu+ee1laC4=; fh=68Nx2EUO9ttgct4vCDlIf5AemkVE1vVUDCNUTIZd0wk=; b=U6NMUt7NgDRP31rDTPUSevLi81ioxNZpxxBlUJJV/wFnbDTRE0UGLOnUrK7aQ2+80J n2CQKVfzNe/tl1jeP47OXVFIHpUe65AkkSU3NhLcbfxaIanYX4VQwxwYCENCCeAZNTOm Vx/CVwCxsG7wmqiIyzn9OPmqNtKnP7/SfWb4YGdudOuhJFEfZsWsZfkJhgOOfbSdokvx Mo2PagZOqtJOpFPaePtrhjauaEciHJGlDJ93ni6ZudDPDXNCuMYRKkq9r4l1PM3xT79E o4BlBDegjRxOf2K84fCp8xWz+ErEOh/1IJRLdPlooAq/G5dF49kArdPFt41KBPRlXimv Eliw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=nEi+IrPp; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com X-Forwarded-Encrypted: i=1; AJvYcCUX1b0gx/ZRfPd8WvZ0fsstvDWSEZaiEE3YoIo7G2mVZSV9/AilLvKPU8KOgdEcgvgwEf3IO7VZx6NNspzU/EJw+xdBKQ== Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id f96-20020a25a469000000b00dc6ccb4ab3fsi1262585ybi.533.2024.02.06.09.00.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 09:00:30 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=nEi+IrPp; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DA5693858298 for <ouuuleilei@gmail.com>; Tue, 6 Feb 2024 17:00:27 +0000 (GMT) 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 CA9A53858C53 for <gcc-patches@gcc.gnu.org>; Tue, 6 Feb 2024 16:59:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CA9A53858C53 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 CA9A53858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707238762; cv=none; b=k2wOrCinrZ9jps/tKQeZYhJvUCU6Y40OqB6OTIhamqeKsj6TzC7DyG84LansQKMo3waDSaw0DjCsImMkZ6kt1Xg66aiuwaO0NqZuSzeZFdSku51FWPncHsopZVORFTb2BD+B3mPh4zZZ/brrPpya1DCbUNJYraXD9Y9BjAjaANc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707238762; c=relaxed/simple; bh=8w344WdOzJdqv5C3mLPvzRUzC+s88s8IAKcMK5MmouU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BYsHhzvCeojoTesOwAWSniuTypHTJ6yO360Ll4AAqLE7jMBiknNcqCloRnJNg3SbK/udDjzZZVkhMwyFXfQtEkO9KEEY//lzKaktGn1sfURQr+N8xSCJqveu/BB/N9iFlSL7GTUkwRvpjCgfnvn1Ovz8fuIqYZScIhkt9IH3ljs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 416EtjnB025623; Tue, 6 Feb 2024 17:59:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=selector1; bh=pewn0u3lwz/fCNl8DZwH OvGTmpAnDfuMHtu+ee1laC4=; b=nEi+IrPpHZxBmotdOlcgrOA1iOQlpwYnn49C 2Nr79CHM53yz3O9eXH952p0drW+0sCjmeXqVVQ1+mEecTSoLZq8A7JFSQjcfRYz4 sFebIM5z+hIyDemO6/qCcSA5q1Nnm20aeOFHR0sg7X2OcgI3y6QnIGKI0BADkqc+ /1tkpJb7gF/rkBl5k2W9tPCG7DQW+VhN3iCVBaKYppVwOtSCHuEI6Fbr0XFDJMn4 Sa2hicW4E6fB0eiQERcVIiPIC5O5oidhcIgwGkmzRjoMdUD9dO0WDrOQw5k2Kfof hoF7+dOhLAlAadkmdrh2UUI53m4R01Gfn229VyRLfyn9fImf4Q== 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 3w1f63m7ae-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Feb 2024 17:59:16 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2EBB0100058; Tue, 6 Feb 2024 17:59:15 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id F41002676C3; Tue, 6 Feb 2024 17:59:14 +0100 (CET) Received: from jkgcxl0004.jkg.st.com (10.74.22.255) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 6 Feb 2024 17:59:14 +0100 From: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> To: <gcc-patches@gcc.gnu.org> CC: <mikestump@comcast.net>, =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> Subject: [PATCH] testsuite: Pattern does not match when using --specs=nano.specs Date: Tue, 6 Feb 2024 17:58:26 +0100 Message-ID: <20240206165825.3602755-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.74.22.255] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-06_10,2024-01-31_01,2023-05-22_02 X-Spam-Status: No, score=-11.3 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, T_SCC_BODY_TEXT_LINE 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.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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790169664542180963 X-GMAIL-MSGID: 1790169664542180963 |
Series |
testsuite: Pattern does not match when using --specs=nano.specs
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Torbjorn SVENSSON
Feb. 6, 2024, 4:58 p.m. UTC
Ok for trunk and releases/gcc-13?
---
When running the testsuite for newlib nano, the --specs=nano.specs
option is used. This option prepends cpp_unique_options with
"-isystem =/include/newlib-nano" so that the newlib nano header files
override the newlib standard ones. As the -isystem option is prepended,
the -quiet option is no longer the first option to cc1. Adjust the test
accordingly.
Patch has been verified on Windows and Linux.
gcc/testsuite/ChangeLog:
* gcc.misc-tests/options.exp: Allow other options before the
-quite option for cc1.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
gcc/testsuite/gcc.misc-tests/options.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Feb 6, 2024, at 8:58 AM, Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> wrote: > > Ok for trunk and releases/gcc-13? Ok. If .* goes across newlines, you might want to not use .. > - if {![regexp -- "/${compiler}(\\.exe)? -quiet.*$compiler_pattern" $gcc_output]} { > + if {![regexp -- "/${compiler}(\\.exe)? .*-quiet.*$compiler_pattern" $gcc_output]} {
diff --git a/gcc/testsuite/gcc.misc-tests/options.exp b/gcc/testsuite/gcc.misc-tests/options.exp index ec026ecf77d..e7fcde87585 100644 --- a/gcc/testsuite/gcc.misc-tests/options.exp +++ b/gcc/testsuite/gcc.misc-tests/options.exp @@ -57,7 +57,7 @@ proc check_for_all_options {language gcc_options compiler_pattern as_pattern ld_ remote_file build delete $dumpfile } - if {![regexp -- "/${compiler}(\\.exe)? -quiet.*$compiler_pattern" $gcc_output]} { + if {![regexp -- "/${compiler}(\\.exe)? .*-quiet.*$compiler_pattern" $gcc_output]} { fail "$test (compiler options)" return }