summaryrefslogtreecommitdiffstats
path: root/0023-glibcxx-use-c99.patch
diff options
context:
space:
mode:
Diffstat (limited to '0023-glibcxx-use-c99.patch')
-rw-r--r--0023-glibcxx-use-c99.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/0023-glibcxx-use-c99.patch b/0023-glibcxx-use-c99.patch
new file mode 100644
index 0000000..3c546e0
--- /dev/null
+++ b/0023-glibcxx-use-c99.patch
@@ -0,0 +1,85 @@
+--- origsrc/gcc-5.3.0/libstdc++-v3/acinclude.m4 2015-11-24 07:25:07.000000000 -0600
++++ src/gcc-5.3.0/libstdc++-v3/acinclude.m4 2016-02-04 17:42:34.609707600 -0600
+@@ -925,7 +925,7 @@ AC_DEFUN([GLIBCXX_ENABLE_C99], [
+ # Long term, -std=c++0x could be even better, could manage to explicitly
+ # request C99 facilities to the underlying C headers.
+ ac_save_CXXFLAGS="$CXXFLAGS"
+- CXXFLAGS="$CXXFLAGS -std=c++98"
++ CXXFLAGS="$CXXFLAGS -std=c++11"
+ ac_save_LIBS="$LIBS"
+ ac_save_gcc_no_link="$gcc_no_link"
+
+@@ -1128,7 +1128,6 @@
+
+ # Option parsed, now set things appropriately.
+ if test x"$glibcxx_cv_c99_math" = x"no" ||
+- test x"$glibcxx_cv_c99_complex" = x"no" ||
+ test x"$glibcxx_cv_c99_stdio" = x"no" ||
+ test x"$glibcxx_cv_c99_stdlib" = x"no" ||
+ test x"$glibcxx_cv_c99_wchar" = x"no"; then
+@@ -1136,7 +1135,7 @@
+ else
+ AC_DEFINE(_GLIBCXX_USE_C99, 1,
+ [Define if C99 functions or macros from <wchar.h>, <math.h>,
+- <complex.h>, <stdio.h>, and <stdlib.h> can be used or exposed.])
++ <stdio.h>, and <stdlib.h> can be used or exposed.])
+ fi
+
+ gcc_no_link="$ac_save_gcc_no_link"
+@@ -1448,7 +1447,7 @@ AC_DEFUN([GLIBCXX_CHECK_C99_TR1], [
+ # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__
+ # undefined and fake C99 facilities may be spuriously enabled.
+ ac_save_CXXFLAGS="$CXXFLAGS"
+- CXXFLAGS="$CXXFLAGS -std=c++98"
++ CXXFLAGS="$CXXFLAGS -std=c++11"
+
+ # Check for the existence of <complex.h> complex math functions used
+ # by tr1/complex.
+--- origsrc/gcc-5.3.0/libstdc++-v3/linkage.m4 2013-02-11 11:50:13.000000000 -0600
++++ src/gcc-5.3.0/libstdc++-v3/linkage.m4 2016-02-12 00:28:50.419067100 -0600
+@@ -333,7 +333,7 @@
+ AC_DEFUN([GLIBCXX_CHECK_STDLIB_SUPPORT], [
+ ac_test_CXXFLAGS="${CXXFLAGS+set}"
+ ac_save_CXXFLAGS="$CXXFLAGS"
+- CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
++ CXXFLAGS='-std=gnu++11 -fno-builtin -D_GNU_SOURCE'
+
+ GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_1(at_quick_exit)
+ GLIBCXX_CHECK_STDLIB_DECL_AND_LINKAGE_1(quick_exit)
+--- origsrc/gcc-5.3.0/libstdc++-v3/configure 2015-11-26 07:51:04.000000000 -0600
++++ src/gcc-5.3.0/libstdc++-v3/configure 2016-02-04 17:43:03.473372800 -0600
+@@ -16646,7 +16646,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+ # Long term, -std=c++0x could be even better, could manage to explicitly
+ # request C99 facilities to the underlying C headers.
+ ac_save_CXXFLAGS="$CXXFLAGS"
+- CXXFLAGS="$CXXFLAGS -std=c++98"
++ CXXFLAGS="$CXXFLAGS -std=c++11"
+ ac_save_LIBS="$LIBS"
+ ac_save_gcc_no_link="$gcc_no_link"
+
+@@ -17270,7 +17270,6 @@
+
+ # Option parsed, now set things appropriately.
+ if test x"$glibcxx_cv_c99_math" = x"no" ||
+- test x"$glibcxx_cv_c99_complex" = x"no" ||
+ test x"$glibcxx_cv_c99_stdio" = x"no" ||
+ test x"$glibcxx_cv_c99_stdlib" = x"no" ||
+ test x"$glibcxx_cv_c99_wchar" = x"no"; then
+@@ -18887,7 +18886,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+ # Use -std=c++98 because the default (-std=gnu++98) leaves __STRICT_ANSI__
+ # undefined and fake C99 facilities may be spuriously enabled.
+ ac_save_CXXFLAGS="$CXXFLAGS"
+- CXXFLAGS="$CXXFLAGS -std=c++98"
++ CXXFLAGS="$CXXFLAGS -std=c++11"
+
+ # Check for the existence of <complex.h> complex math functions used
+ # by tr1/complex.
+@@ -26704,7 +26704,7 @@
+
+ ac_test_CXXFLAGS="${CXXFLAGS+set}"
+ ac_save_CXXFLAGS="$CXXFLAGS"
+- CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
++ CXXFLAGS='-std=gnu++11 -fno-builtin -D_GNU_SOURCE'
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for at_quick_exit declaration" >&5