public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/gccgo] libstdc++: Avoid illegal argument to verbose in dg-test callback
@ 2020-07-12 17:21 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2020-07-12 17:21 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:697b94cfaef4a958132faf0cf4b35b15dfb29acc

commit 697b94cfaef4a958132faf0cf4b35b15dfb29acc
Author: Matthias Kretz <kretz@kde.org>
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  <kretz@kde.org>
    
            * 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  <kretz@kde.org>
+
+	* testsuite/lib/libstdc++.exp: Avoid illegal argument to verbose.
+
 2020-04-19  Jonathan Wakely  <jwakely@redhat.com>
 
 	* 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-12 17:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-12 17:21 [gcc/devel/gccgo] libstdc++: Avoid illegal argument to verbose in dg-test callback Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).