summaryrefslogtreecommitdiffstats
path: root/package/gcc/4.8-arc/302-c99-snprintf.patch
diff options
context:
space:
mode:
authorMischa Jonker <mischa.jonker@synopsys.com>2013-07-18 23:47:52 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2013-07-19 11:53:21 +0200
commit381654d8a84072baf6742dd8697d65e3a55a5ef5 (patch)
treee0bf524913a37de9dbbf12de914565f612882703 /package/gcc/4.8-arc/302-c99-snprintf.patch
parent983dd6426e7ed0df54c1e38d74bd6578b80d8e7b (diff)
downloadbuildroot-381654d8a84072baf6742dd8697d65e3a55a5ef5.tar.gz
buildroot-381654d8a84072baf6742dd8697d65e3a55a5ef5.zip
arc: gcc: Go from 4.4.7 to 4.8 for ARC
This fixes multiple issues, including: - 'operand out of range' errors (due to defaulting to medium calls instead of short calls) - library dependencies that were not being found Signed-off-by: Mischa Jonker <mjonker@synopsys.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/gcc/4.8-arc/302-c99-snprintf.patch')
-rw-r--r--package/gcc/4.8-arc/302-c99-snprintf.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/gcc/4.8-arc/302-c99-snprintf.patch b/package/gcc/4.8-arc/302-c99-snprintf.patch
new file mode 100644
index 0000000000..cd4d2ccfb6
--- /dev/null
+++ b/package/gcc/4.8-arc/302-c99-snprintf.patch
@@ -0,0 +1,13 @@
+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