summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-01-24 22:26:24 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-01-24 22:26:24 +0000
commit91b2cffa9fd5956b8d949e06196ab4c37a8a7f9a (patch)
treec8bc73eacc65491d752db354a85560a39d06c262 /sysdeps
parentc739e191d0697e29110d4eb446e537ff336324c6 (diff)
downloadglibc-91b2cffa9fd5956b8d949e06196ab4c37a8a7f9a.tar.gz
Add jmp_buf-macros.h for ColdFire.
This patch adds a jmp_buf-macros.h for ColdFire. In conjunction with a GCC patch to fix the libgcc build failure for ColdFire <https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02064.html> this suffices to restore the build (tested with build-many-glibcs.py). A further patch will be needed for soft-float ColdFire (while the function-calling ABI is the same for hard-float and soft-float ColdFire, it turns out the glibc ABI is not - so another ColdFire variant will be needed in build-many-glibcs.py), but I'll deal with that separately. Tested with build-many-glibcs.py (m68k-linux-gnu and m68k-linux-gnu-coldfire). (There's a localplt test failure for coldfire; that's the only failure in the compilation part of the testsuite.) * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to .... * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here. * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New file.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h6
-rw-r--r--sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h (renamed from sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h)0
2 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h b/sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h
new file mode 100644
index 0000000000..9b25281277
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h
@@ -0,0 +1,6 @@
+#define JMP_BUF_SIZE 256
+#define SIGJMP_BUF_SIZE 256
+#define JMP_BUF_ALIGN 2
+#define SIGJMP_BUF_ALIGN 2
+#define MASK_WAS_SAVED_OFFSET 124
+#define SAVED_MASK_OFFSET 128
diff --git a/sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h b/sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h
index 2f62ecb4b3..2f62ecb4b3 100644
--- a/sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h
+++ b/sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h