summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-03-09 05:19:48 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2017-03-09 05:19:55 +0100
commit2f5000670a056361831ae4500b8f66a921afcf19 (patch)
tree072c31117463fb2d5b37563b1b7b3ef1978f9802 /toolchain/gcc
parent958b58e87bdd5c6cc55ff9ad00ddca65cf7de31b (diff)
add different patches to gcc/binutils to fix issues with cris/microblaze/ia64/tile
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/patches/6.3.0/ia64-fix-libgcc.patch17
-rw-r--r--toolchain/gcc/patches/6.3.0/tilegx-fix.patch24
2 files changed, 41 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/6.3.0/ia64-fix-libgcc.patch b/toolchain/gcc/patches/6.3.0/ia64-fix-libgcc.patch
new file mode 100644
index 000000000..f1f3c8d2d
--- /dev/null
+++ b/toolchain/gcc/patches/6.3.0/ia64-fix-libgcc.patch
@@ -0,0 +1,17 @@
+diff -Nur gcc-6.3.0.orig/libgcc/config/ia64/fde-glibc.c gcc-6.3.0/libgcc/config/ia64/fde-glibc.c
+--- gcc-6.3.0.orig/libgcc/config/ia64/fde-glibc.c 2016-01-04 15:30:50.000000000 +0100
++++ gcc-6.3.0/libgcc/config/ia64/fde-glibc.c 2017-03-05 13:07:33.316600613 +0100
+@@ -25,6 +25,8 @@
+ /* Locate the FDE entry for a given address, using glibc ld.so routines
+ to avoid register/deregister calls at DSO load/unload. */
+
++#ifndef inhibit_libc
++
+ #ifndef _GNU_SOURCE
+ #define _GNU_SOURCE 1
+ #endif
+@@ -159,3 +161,4 @@
+
+ return data.ret;
+ }
++#endif
diff --git a/toolchain/gcc/patches/6.3.0/tilegx-fix.patch b/toolchain/gcc/patches/6.3.0/tilegx-fix.patch
new file mode 100644
index 000000000..563ea784d
--- /dev/null
+++ b/toolchain/gcc/patches/6.3.0/tilegx-fix.patch
@@ -0,0 +1,24 @@
+diff -Nur gcc-5.3.0.orig/gcc/config/tilegx/linux.h gcc-5.3.0/gcc/config/tilegx/linux.h
+--- gcc-5.3.0.orig/gcc/config/tilegx/linux.h 2015-01-05 13:33:28.000000000 +0100
++++ gcc-5.3.0/gcc/config/tilegx/linux.h 2016-04-29 07:14:10.534973350 +0200
+@@ -55,8 +55,6 @@
+ /* For __clear_cache in libgcc2.c. */
+ #ifdef IN_LIBGCC2
+
+-#include <arch/icache.h>
+-
+ /* Use the minimum page size of 4K. Alternatively we can call
+ getpagesize() but it introduces a libc dependence. */
+ #undef CLEAR_INSN_CACHE
+diff -Nur gcc-5.3.0.orig/libgcc/config/tilepro/atomic.h gcc-5.3.0/libgcc/config/tilepro/atomic.h
+--- gcc-5.3.0.orig/libgcc/config/tilepro/atomic.h 2015-01-05 13:33:28.000000000 +0100
++++ gcc-5.3.0/libgcc/config/tilepro/atomic.h 2016-04-29 07:15:11.149301459 +0200
+@@ -93,7 +93,7 @@
+ #endif
+
+ #ifdef __tilegx__
+-#include <arch/spr_def.h>
++#define SPR_CMPEXCH_VALUE 0x2780
+ #else
+ #include <asm/unistd.h>
+ #endif