mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-20 01:25:03 +08:00
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.
This commit is contained in:
parent
a6f400239d
commit
697b94cfae
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user