[committed] libstdc++: Fix name of temporary source used by dejagnu checks
Jonathan Wakely
jwakely@redhat.com
Thu Sep 17 18:07:26 GMT 2026
The v3_check_preprocessor_condition proc takes an argument to use as the
filename, but was then passing it to v3_try_preprocess as the literal
string 'name' instead of using the variable, $name.
libstdc++-v3/ChangeLog:
* testsuite/lib/libstdc++.exp (v3_check_preprocessor_condition):
Use argument as filename for preprocessing.
---
Pushed to trunk.
libstdc++-v3/testsuite/lib/libstdc++.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp
index 4cdf90d3864b..b2b1934a5240 100644
--- a/libstdc++-v3/testsuite/lib/libstdc++.exp
+++ b/libstdc++-v3/testsuite/lib/libstdc++.exp
@@ -1176,7 +1176,7 @@ proc v3_check_preprocessor_condition { name cond { inc "" } } {
"
set flags "$cxxflags $DEFAULT_CXXFLAGS -Werror"
- return [v3_try_preprocess name $code $flags]
+ return [v3_try_preprocess $name $code $flags]
}
# Return 1 if libstdc++ defines macro for the current target, 0 otherwise.
--
2.55.0
More information about the Libstdc++
mailing list