aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Kretz <kretz@kde.org>2020-04-20 15:29:41 +0100
committerJonathan Wakely <jwakely@redhat.com>2020-04-20 15:29:44 +0100
commit697b94cfaef4a958132faf0cf4b35b15dfb29acc (patch)
treedfe087b456f8e0835e35847bf77d01afda0a2c1e
parenta6f400239d792ddcff106be22b04fdf3f9b2894a (diff)
downloadgcc-697b94cfaef4a958132faf0cf4b35b15dfb29acc.zip
gcc-697b94cfaef4a958132faf0cf4b35b15dfb29acc.tar.gz
gcc-697b94cfaef4a958132faf0cf4b35b15dfb29acc.tar.bz2
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.
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/testsuite/lib/libstdc++.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index fde5ac1..b30b1d0 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 10a7e74..7f4532c 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