]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix testsuite breakage in r16-7593-g39edc2aea24f9a
authorJonathan Wakely <jwakely@redhat.com>
Fri, 20 Feb 2026 09:17:31 +0000 (09:17 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 20 Feb 2026 09:20:04 +0000 (09:20 +0000)
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.

libstdc++-v3/testsuite/lib/libstdc++.exp

index d2d61a9bed9ccaf1c39691de60111b19ffdfb9b0..4ffbf106b6bffbe6e652875bf5645383ed356c91 100644 (file)
@@ -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