Skip to contentSkip to conversation

gcc: add patches for or1k specific gcc version

PATCH New Thomas Petazzoni 2 participants 2 messages Feb 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: add patches for or1k specific gcc version

This commit adds a number of patches from package/gcc/5.4.0 to package/gcc/musl-5.4.0, so that they apply to the or1k specific gcc version. All patches from package/gcc/5.4.0 that are not architecture specific and not related to the musl C library have been added to package/gcc/musl-5.4.0/.

Note that doing a symbolic link does not work, as some patches from package/gcc/5.4.0 do not apply as-is to the or1k gcc version.

The most important patch is 850-libstdcxx-uclibc-c99.patch, which fixes a number of build issues.

Fixes:

http://autobuild.buildroot.net/results/eebf4ce5ecb896e54912cfa21268e81ff5fb6593/
(alljoyn)

http://autobuild.buildroot.net/results/8dbf406898a59e36ac6a1e16f543b6260da775c8/
(jsoncpp)

http://autobuild.buildroot.net/results/206fbd5473c8c6840489990cb2552566c62ef3c8/
(dawgic)

---
 package/gcc/musl-5.4.0/100-uclibc-conf.patch       |  15 ++
 .../gcc/musl-5.4.0/301-missing-execinfo_h.patch    |  13 +
 .../gcc/musl-5.4.0/850-libstdcxx-uclibc-c99.patch  | 273 +++++++++++++++++++++
 package/gcc/musl-5.4.0/860-cilk-wchar.patch        |  56 +++++
 .../930-libgcc-disable-split-stack-nothreads.patch |  14 ++
 5 files changed, 371 insertions(+)
 create mode 100644 package/gcc/musl-5.4.0/100-uclibc-conf.patch
 create mode 100644 package/gcc/musl-5.4.0/301-missing-execinfo_h.patch
 create mode 100644 package/gcc/musl-5.4.0/850-libstdcxx-uclibc-c99.patch
 create mode 100644 package/gcc/musl-5.4.0/860-cilk-wchar.patch
 create mode 100644 package/gcc/musl-5.4.0/930-libgcc-disable-split-stack-nothreads.patch
package/gcc/musl-5.4.0/100-uclibc-conf.patch new file +15 -0
new file mode 100644
index 0000000..73d1f0d
@@ -0,0 +1,15 @@
+Index: b/contrib/regression/objs-gcc.sh
+===================================================================
+--- a/contrib/regression/objs-gcc.sh
++++ b/contrib/regression/objs-gcc.sh
+@@ -106,6 +106,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
package/gcc/musl-5.4.0/301-missing-execinfo_h.patch new file +13 -0
new file mode 100644
index 0000000..2d0e7ba
@@ -0,0 +1,13 @@
+Index: b/boehm-gc/include/gc.h
+===================================================================
+--- a/boehm-gc/include/gc.h
++++ b/boehm-gc/include/gc.h
+@@ -503,7 +503,7 @@
+ #if defined(__linux__) || defined(__GLIBC__)
+ # 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
package/gcc/musl-5.4.0/850-libstdcxx-uclibc-c99.patch new file +273 -0

273 lines not on this page · raw message

package/gcc/musl-5.4.0/860-cilk-wchar.patch new file +56 -0

56 lines not on this page · raw message

package/gcc/musl-5.4.0/930-libgcc-disable-split-stack-nothreads.patch new file +14 -0
new file mode 100644
index 0000000..07f9a73
@@ -0,0 +1,14 @@
+disable split-stack for non-thread builds
+
+Signed-off-by: Waldemar Brodkorb <[email protected]>
+
+diff -Nur gcc-5.3.0.orig/libgcc/config/t-stack gcc-5.3.0/libgcc/config/t-stack
+--- gcc-5.3.0.orig/libgcc/config/t-stack	2010-10-01 21:31:49.000000000 +0200
++++ gcc-5.3.0/libgcc/config/t-stack	2016-03-07 03:25:32.000000000 +0100
+@@ -1,4 +1,6 @@
+ # Makefile fragment to provide generic support for -fsplit-stack.
+ # This should be used in config.host for any host which supports
+ # -fsplit-stack.
++ifeq ($(enable_threads),yes)
+ LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
++endif
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 gcc: add patches for or1k specific gcc version

Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

This commit adds a number of patches from package/gcc/5.4.0 to package/gcc/musl-5.4.0, so that they apply to the or1k specific gcc version. All patches from package/gcc/5.4.0 that are not architecture specific and not related to the musl C library have been added to package/gcc/musl-5.4.0/.

Note that doing a symbolic link does not work, as some patches from package/gcc/5.4.0 do not apply as-is to the or1k gcc version.

The most important patch is 850-libstdcxx-uclibc-c99.patch, which fixes a number of build issues.

Fixes:

http://autobuild.buildroot.net/results/eebf4ce5ecb896e54912cfa21268e81ff5fb6593/
(alljoyn)

Quoted 7 lines

http://autobuild.buildroot.net/results/8dbf406898a59e36ac6a1e16f543b6260da775c8/
(jsoncpp)

http://autobuild.buildroot.net/results/206fbd5473c8c6840489990cb2552566c62ef3c8/
(dawgic)

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard