aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-08-14 21:35:00 +0000
committerAnthony G. Basile <blueness@gentoo.org>2016-08-14 21:35:00 +0000
commit0a73a45bdb0579a5152e80b75ba0b431abbcc072 (patch)
tree676b05cd60e72ffe3e303ec7dd5618fc274e20f1 /4.9.4/uclibc
parentdocument boehm-gc uclibc/execinfo.h patches (diff)
downloadgcc-patches-0a73a45bdb0579a5152e80b75ba0b431abbcc072.tar.gz
gcc-patches-0a73a45bdb0579a5152e80b75ba0b431abbcc072.tar.bz2
gcc-patches-0a73a45bdb0579a5152e80b75ba0b431abbcc072.zip
initial 4.9.4 patchset based on last 4.9.3 patchset
Diffstat (limited to '4.9.4/uclibc')
-rw-r--r--4.9.4/uclibc/90_all_100-uclibc-conf.patch33
-rw-r--r--4.9.4/uclibc/90_all_301-missing-execinfo_h.patch17
-rw-r--r--4.9.4/uclibc/90_all_302-c99-snprintf.patch13
3 files changed, 63 insertions, 0 deletions
diff --git a/4.9.4/uclibc/90_all_100-uclibc-conf.patch b/4.9.4/uclibc/90_all_100-uclibc-conf.patch
new file mode 100644
index 0000000..3460f9e
--- /dev/null
+++ b/4.9.4/uclibc/90_all_100-uclibc-conf.patch
@@ -0,0 +1,33 @@
+--- gcc/contrib/regression/objs-gcc.sh
++++ gcc/contrib/regression/objs-gcc.sh
+@@ -105,6 +105,10 @@
+ then
+ make all-gdb all-dejagnu all-ld || exit 1
+ make install-gdb install-dejagnu install-ld || exit 1
++elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
++ then
++ make all-gdb all-dejagnu all-ld || exit 1
++ make install-gdb install-dejagnu install-ld || exit 1
+ elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
+ make bootstrap || exit 1
+ make install || exit 1
+--- gcc/libjava/classpath/ltconfig
++++ gcc/libjava/classpath/ltconfig
+@@ -603,7 +603,7 @@
+
+ # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
+ case $host_os in
+-linux-gnu*) ;;
++linux-gnu*|linux-uclibc*) ;;
+ linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
+ esac
+
+@@ -1251,7 +1251,7 @@
+ ;;
+
+ # This must be Linux ELF.
+-linux-gnu*)
++linux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
diff --git a/4.9.4/uclibc/90_all_301-missing-execinfo_h.patch b/4.9.4/uclibc/90_all_301-missing-execinfo_h.patch
new file mode 100644
index 0000000..13ed51a
--- /dev/null
+++ b/4.9.4/uclibc/90_all_301-missing-execinfo_h.patch
@@ -0,0 +1,17 @@
+https://github.com/ivmai/bdwgc/commit/76b3d3a57583fdb19152f4d911b11725e31b4a06
+
+2007-12-18 Hans Boehm <Hans.Boehm@hp.com> (really Radek Polak)
+
+ * include/gc.h: Don't define GC_HAVE_BUILTIN_BACKTRACE for uclibc.
+
+--- a/boehm-gc/include/gc.h
++++ b/boehm-gc/include/gc.h
+@@ -500,7 +500,7 @@
+ #ifdef __linux__
+ # include <features.h>
+ # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
+- && !defined(__ia64__)
++ && !defined(__ia64__) && !defined(__UCLIBC__)
+ # ifndef GC_HAVE_BUILTIN_BACKTRACE
+ # define GC_HAVE_BUILTIN_BACKTRACE
+ # endif
diff --git a/4.9.4/uclibc/90_all_302-c99-snprintf.patch b/4.9.4/uclibc/90_all_302-c99-snprintf.patch
new file mode 100644
index 0000000..ba51a0e
--- /dev/null
+++ b/4.9.4/uclibc/90_all_302-c99-snprintf.patch
@@ -0,0 +1,13 @@
+Index: gcc-4.3.0/libstdc++-v3/include/c_global/cstdio
+===================================================================
+--- gcc-4.3.0/libstdc++-v3/include/c_global/cstdio (revision 129202)
++++ gcc-4.3.0/libstdc++-v3/include/c_global/cstdio (working copy)
+@@ -144,7 +144,7 @@
+
+ _GLIBCXX_END_NAMESPACE
+
+-#if _GLIBCXX_USE_C99
++#if _GLIBCXX_USE_C99 || defined __UCLIBC__
+
+ #undef snprintf
+ #undef vfscanf