aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorWalter Lee <walt@tilera.com>2016-06-28 16:20:58 +0000
committerWalter Lee <walt@gcc.gnu.org>2016-06-28 16:20:58 +0000
commitba6be749f94e6033b8b5bcc23939b7b2f68b7c3f (patch)
tree638f376e9acfc023865e875b759805bc82409281 /libgcc
parent77d93c476d047864789829fc6d05a224aee5e85c (diff)
downloadgcc-ba6be749f94e6033b8b5bcc23939b7b2f68b7c3f.zip
gcc-ba6be749f94e6033b8b5bcc23939b7b2f68b7c3f.tar.gz
gcc-ba6be749f94e6033b8b5bcc23939b7b2f68b7c3f.tar.bz2
linux.h: Do not include arch/icache.h
gcc/ChangeLog * config/tilegx/linux.h: Do not include arch/icache.h (CLEAR_INSN_CACHE): Provide inlined definition directly. * config/tilepro/linux.h: Do not include arch/icache.h (CLEAR_INSN_CACHE): Provide inlined definition directly. libgcc/ChangeLog * config/tilepro/atomic.h: Do not include arch/spr_def.h and asm/unistd.h. (SPR_CMPEXCH_VALUE): Define for tilegx. (__NR_FAST_cmpxchg): Define for tilepro. (__NR_FAST_atomic_update): Define for tilepro. (__NR_FAST_cmpxchg64): Define for tilepro. From-SVN: r237824
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog9
-rw-r--r--libgcc/config/tilepro/atomic.h6
2 files changed, 13 insertions, 2 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index db5616a..8f758e3 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,12 @@
+2016-06-28 Walter Lee <walt@tilera.com>
+
+ * config/tilepro/atomic.h: Do not include arch/spr_def.h and
+ asm/unistd.h.
+ (SPR_CMPEXCH_VALUE): Define for tilegx.
+ (__NR_FAST_cmpxchg): Define for tilepro.
+ (__NR_FAST_atomic_update): Define for tilepro.
+ (__NR_FAST_cmpxchg64): Define for tilepro.
+
2016-06-23 Jakub Sejdak <jakub.sejdak@phoesys.com>
* config.host: Add suport for arm*-*-phoenix* targets.
diff --git a/libgcc/config/tilepro/atomic.h b/libgcc/config/tilepro/atomic.h
index 78fa9a9..6abe6e1 100644
--- a/libgcc/config/tilepro/atomic.h
+++ b/libgcc/config/tilepro/atomic.h
@@ -93,9 +93,11 @@
#endif
#ifdef __tilegx__
-#include <arch/spr_def.h>
+#define SPR_CMPEXCH_VALUE 0x2780
#else
-#include <asm/unistd.h>
+#define __NR_FAST_cmpxchg -1
+#define __NR_FAST_atomic_update -2
+#define __NR_FAST_cmpxchg64 -3
#endif