3c5eef98bd
The signal trampoline detection for NetBSD 7 and later is still broken. Support for NetBSD 6.99 has been removed along with supporte for 32-bit DragonFly. The modifications to the testsuite were misguided and have also been removed.
24 lines
861 B
Text
24 lines
861 B
Text
--- libstdc++-v3/testsuite/lib/libstdc++.exp.orig
|
|
+++ libstdc++-v3/testsuite/lib/libstdc++.exp
|
|
@@ -902,17 +902,18 @@
|
|
set f [open $src "w"]
|
|
puts $f "#include <locale>"
|
|
puts $f "#include <cstdio>"
|
|
- puts $f "using namespace std;"
|
|
+ puts $f "using namespace std;"
|
|
puts $f "int main (int argc, char** argv)"
|
|
puts $f "{"
|
|
+ puts $f " const char* mlx = *(argv + 1);"
|
|
puts $f " try"
|
|
puts $f " {"
|
|
- puts $f " locale(*(argv + 1));"
|
|
+ puts $f " locale((char*)(mlx));"
|
|
puts $f " return 0;"
|
|
puts $f " }"
|
|
puts $f " catch(...)"
|
|
puts $f " {"
|
|
- puts $f " printf(\"locale '%s' not supported\\n\", *(argv + 1));"
|
|
+ puts $f " printf(\"locale '%s' not supported\\n\", mlx);"
|
|
puts $f " return 1;"
|
|
puts $f " }"
|
|
puts $f "}"
|