Import lang/gcc5-aux based on gcc-5.1
This compiler package is not like the lang/gcc4* packages, but rather
the lang/gcc-aux package which exists to bring GNAT, the Ada language
compiler. The lang/gcc-aux package is based on gcc-4.9, and this
package is based on gcc-5. This is the first gcc5 package in pkgsrc,
and it does support C, C++, ObjC, and Fortran in addition to Ada thus
it is very useful, but it does have a different purpose than other
gcc ports.
This port has had minimal testing. I verified GNAT passes 100% of the
testsuite on NetBSD 6.1/amd64, but it has not been tested on any
NetBSD 5, 7.0 or 7.99 platform yet. I don't have any hardware, so it
will require using a VM or having others report failure/success. Due
to similarity with lang/gcc-aux, chances are good that it will build
and function properly on other platforms.
See http://gcc.gnu.org/gcc-5/changes.html for more information about
improvements over the gcc-4.9 series.
2015-06-15 11:46:27 +02:00
|
|
|
--- libstdc++-v3/testsuite/lib/libstdc++.exp.orig
|
|
|
|
+++ libstdc++-v3/testsuite/lib/libstdc++.exp
|
2016-08-28 19:59:36 +02:00
|
|
|
@@ -902,17 +902,18 @@
|
Import lang/gcc5-aux based on gcc-5.1
This compiler package is not like the lang/gcc4* packages, but rather
the lang/gcc-aux package which exists to bring GNAT, the Ada language
compiler. The lang/gcc-aux package is based on gcc-4.9, and this
package is based on gcc-5. This is the first gcc5 package in pkgsrc,
and it does support C, C++, ObjC, and Fortran in addition to Ada thus
it is very useful, but it does have a different purpose than other
gcc ports.
This port has had minimal testing. I verified GNAT passes 100% of the
testsuite on NetBSD 6.1/amd64, but it has not been tested on any
NetBSD 5, 7.0 or 7.99 platform yet. I don't have any hardware, so it
will require using a VM or having others report failure/success. Due
to similarity with lang/gcc-aux, chances are good that it will build
and function properly on other platforms.
See http://gcc.gnu.org/gcc-5/changes.html for more information about
improvements over the gcc-4.9 series.
2015-06-15 11:46:27 +02:00
|
|
|
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 "}"
|