From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2136) id 3CC5A396E869; Wed, 17 Jun 2020 20:33:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3CC5A396E869 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592426019; bh=7ofBD+TMGiT2zhKAuzqzuixQxtO9hr5qLj4NyK+8/gM=; h=From:To:Subject:Date:From; b=dOqy+wtq8eyu/wIhZ/1mOz4UuMZe4nMMN+c79s5C1JlPyuzkExYPNoxxh8TSxi6A+ Q5OHqtPim8t/Ky96XTrPAD/K2FrskmRPkzvN0OVS7hC5x8/AnewojgZhSDTaHamgMP m2Z+E+nXBkhnXmK0L9CSU7sXZuCtjcKpPPJyj+nI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Aldy Hernandez To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc/devel/ranger] libstdc++: Avoid illegal argument to verbose in dg-test callback X-Act-Checkin: gcc X-Git-Author: Matthias Kretz X-Git-Refname: refs/heads/devel/ranger X-Git-Oldrev: a6f400239d792ddcff106be22b04fdf3f9b2894a X-Git-Newrev: 697b94cfaef4a958132faf0cf4b35b15dfb29acc Message-Id: <20200617203339.3CC5A396E869@sourceware.org> Date: Wed, 17 Jun 2020 20:33:39 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jun 2020 20:33:39 -0000 https://gcc.gnu.org/g:697b94cfaef4a958132faf0cf4b35b15dfb29acc commit 697b94cfaef4a958132faf0cf4b35b15dfb29acc Author: Matthias Kretz Date: Mon Apr 20 15:29:41 2020 +0100 libstdc++: Avoid illegal argument to verbose in dg-test callback If extra_tool_flags starts with a dash, an error like 'ERROR: verbose: illegal argument: -march=native -O2 -std=c++17' is printed. This is easily fixed by inserting a double dash before the variable. 2020-04-20 Matthias Kretz * testsuite/lib/libstdc++.exp: Avoid illegal argument to verbose. Diff: --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/testsuite/lib/libstdc++.exp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index fde5ac1bf37..b30b1d096e8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2020-04-20 Matthias Kretz + + * testsuite/lib/libstdc++.exp: Avoid illegal argument to verbose. + 2020-04-19 Jonathan Wakely * include/bits/stl_queue.h (queue): Define operator<=> for C++20. diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 10a7e748464..7f4532c55b2 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -408,7 +408,7 @@ proc libstdc++-dg-test { prog do_what extra_tool_flags } { set options "" if { $extra_tool_flags != "" } { verbose -log "extra_tool_flags are:" - verbose -log $extra_tool_flags + verbose -log -- $extra_tool_flags if { [string first "-x c" $extra_tool_flags ] != -1 } { verbose -log "compiling and executing as C, not C++" set edit_tool_flags $extra_tool_flags