summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-30 18:32:12 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-30 19:16:40 +0100
commit53c4826506f49cc3aebefed294a6e4af8bea4133 (patch)
treecb4457426308d9cbc4af9c3958f888a120d4468a
parent037a5ae08a3e4dca516bc112fbfa1d1f05d1e67b (diff)
bfin: fix clashing with newer gcc
See here for a discussion about the problem: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779 Latest gcc/binutils git can generate a working uClibc-ng toolchain. Binaries tested on Arcturus uCBF54x board via chroot from original firmware.
-rw-r--r--libc/sysdeps/linux/bfin/sys/ucontext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/bfin/sys/ucontext.h b/libc/sysdeps/linux/bfin/sys/ucontext.h
index 4b3654da3..b6e3a404a 100644
--- a/libc/sysdeps/linux/bfin/sys/ucontext.h
+++ b/libc/sysdeps/linux/bfin/sys/ucontext.h
@@ -32,6 +32,11 @@ typedef int greg_t;
/* Container for all general registers. */
typedef greg_t gregset_t[NGREG];
+/* There is no user thread context implementation for bfin, avoid
+ clashing with gcc symbols, see:
+ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779
+*/
+#if 0
/* Number of each register is the `gregset_t' array. */
enum
{
@@ -130,6 +135,7 @@ enum
REG_SEQSTAT = 46
#define REG_SEQSTAT REG_SEQSTAT
};
+#endif
/* Context to describe whole processor state. */
typedef struct