summary refs log tree commit diff
path: root/hurd/thread-self.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2016-11-15 21:44:36 +0000
committerJoseph Myers <joseph@codesourcery.com>2016-11-15 21:44:36 +0000
commitf07820b7d13846431bb1c291414b6286cc5f5cbf (patch)
treeb2f9fe242c04e800da2a4de3ee868fbc5e6351bc /hurd/thread-self.c
parent6ab707ba03605e11677e92db84fb65948c2fe908 (diff)
downloadglibc-f07820b7d13846431bb1c291414b6286cc5f5cbf.tar.gz
glibc-f07820b7d13846431bb1c291414b6286cc5f5cbf.tar.xz
glibc-f07820b7d13846431bb1c291414b6286cc5f5cbf.zip
Make SH ucontext always match current kernels.
As discussed in the thread starting at
<https://sourceware.org/ml/libc-alpha/2015-06/msg00657.html>, there
are various problems with the sigcontext / mcontext / ucontext
structures on SH.  The soft-float SH4 case in fact does not build at
present, with errors processing
sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.sym with gen-as-const.awk
("error: 'mcontext_t {aka struct <anonymous>}' has no member named
'fpregs'").

Linux 4.8 (commit bbe6c77857c38f4acbdc4fc70399515226d1859a) moved to
always using the same sigcontext structure on SH, with room for
floating-point registers whether or not present on the processor.
This patch makes the glibc header match.

Tested (compilation only) for sh4-linux-gnu hard float, and in
conjunction with other fixes for soft float.

	* sysdeps/unix/sysv/linux/sh/sys/ucontext.h [__SH4__ || __SH4A__]:
	Make code unconditional.
	[!(__SH4__ || __SH4A__)]: Remove conditional code.
Diffstat (limited to 'hurd/thread-self.c')
0 files changed, 0 insertions, 0 deletions