summaryrefslogtreecommitdiffstats
path: root/package/gcc/4.8.3/302-c99-snprintf.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-15 18:37:59 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-08-17 09:16:27 +0200
commitf3d19b047aa38244e4eee7e826d68d54bb18101a (patch)
treedcba1bc540da8e157099a5d6aa853ab89dbcf34b /package/gcc/4.8.3/302-c99-snprintf.patch
parent48f182ece057b8dedf72a0c601310d72b3d91a86 (diff)
downloadbuildroot-f3d19b047aa38244e4eee7e826d68d54bb18101a.tar.gz
buildroot-f3d19b047aa38244e4eee7e826d68d54bb18101a.zip
gcc/4.8: add patch to enable more C++ features with uClibc
This commit fixes bug #7250, by allowing more libstdc++ features to be enabled with uClibc. libstdc++ wants an absolutely complete C99 support in the C library before enabling *any* feature that needs some C99 functions. However, uClibc doesn't provide C99 complex numbers, so libstdc++ disables a lot of C++ standard methods, even though they are not related to C99 complex numbers. A partial solution already existed in the patch 302-c99-snprintf.patch, but this commit replaces it by the more complete 850-libstdcxx-uclibc-c99.patch, which is highly inspired by https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58393, except that it doesn't rely on configure.ac checks, but simply on testing defined(__UCLIBC__) like was done in 302-c99-snprintf.patch. This allows to avoid having to autoreconf gcc, which is quite complicated to achieve. Reported-by: Richard <tarka.t.otter@gmail.com> Cc: Richard <tarka.t.otter@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc/4.8.3/302-c99-snprintf.patch')
-rw-r--r--package/gcc/4.8.3/302-c99-snprintf.patch13
1 files changed, 0 insertions, 13 deletions
diff --git a/package/gcc/4.8.3/302-c99-snprintf.patch b/package/gcc/4.8.3/302-c99-snprintf.patch
deleted file mode 100644
index cd4d2ccfb6..0000000000
--- a/package/gcc/4.8.3/302-c99-snprintf.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: gcc-4.8.0/libstdc++-v3/include/c_global/cstdio
-===================================================================
---- gcc-4.8.0.orig/libstdc++-v3/include/c_global/cstdio 2013-02-03 18:54:05.000000000 +0100
-+++ gcc-4.8.0/libstdc++-v3/include/c_global/cstdio 2013-03-23 17:39:32.000000000 +0100
-@@ -138,7 +138,7 @@
- using ::vsprintf;
- } // namespace
-
--#if _GLIBCXX_USE_C99
-+#if _GLIBCXX_USE_C99 || defined __UCLIBC__
-
- #undef snprintf
- #undef vfscanf
OpenPOWER on IntegriCloud