mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-21 19:35:28 -05:00
libstdc++: Fix testsuite breakage in r16-7593-g39edc2aea24f9a
Fix my broken r16-7593-g39edc2aea24f9a commit which was an incomplete version of what I originally tested. libstdc++-v3/ChangeLog: * testsuite/lib/libstdc++.exp (v3-minimum-std): Remove second and third args in favour of using globals.
This commit is contained in:
committed by
Jonathan Wakely
parent
36a5d12cca
commit
8d8725bedd
@@ -478,18 +478,18 @@ if { [info procs saved-dg-test] == [list] } {
|
||||
set v3_default_std 20
|
||||
set v3_max_std 26
|
||||
|
||||
# Find the minimum standard required by a test, if higher than the default_std.
|
||||
proc v3-minimum-std { test default_std max_std } {
|
||||
# Find the minimum standard required by a test, if higher than $v3_default_std.
|
||||
proc v3-minimum-std { test } {
|
||||
global v3_default_std
|
||||
global v3_max_std
|
||||
for {set s $default_std} {$s <= $v3_max_std} {incr s 3} {
|
||||
for {set s $v3_default_std} {$s <= $v3_max_std} {incr s 3} {
|
||||
if [search_for $test "\{ dg-do * \{ target c++$s"] {
|
||||
return $s
|
||||
} elseif [search_for $test "\{ dg-require-effective-target c++$s"] {
|
||||
return $s
|
||||
}
|
||||
}
|
||||
return $default_std
|
||||
return $v3_default_std
|
||||
}
|
||||
|
||||
# Allow v3_std_list to be set in configuration files, e.g., ~/.dejagnurc
|
||||
|
||||
Reference in New Issue
Block a user