From 5e14bb97937dda422effcf2750b40e342e83ccc8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 24 Apr 2018 16:33:47 +0000 Subject: Fix Hurd glibc build with GCC 8. The build of glibc for Hurd has been failing with GCC mainline because of the checks that aliases have the same type as the symbol aliased; the Hurd dl-sysdep.c has a macro that defines aliases without using the proper type. When GCC 8 branches (soon), I intend to make it the default version in build-many-glibcs.py, so these failures would mean the default build-many-glibcs.py build fails for Hurd again. This patch fixes the Hurd build with GCC 8 by changing the macro that defines the problem aliases to use the correct type for them. An include of is needed to avoid this use of typeof resulting in an error for __access_noerrno not being declared. Tested compilation for i686-gnu with build-many-glibcs.py. * sysdeps/mach/hurd/dl-sysdep.c: Include . (check_no_hidden): Use type of original function when declaring alias. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 67c129b47d..efa8d39391 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2018-04-24 Joseph Myers + * sysdeps/mach/hurd/dl-sysdep.c: Include . + (check_no_hidden): Use type of original function when declaring + alias. + * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SECCOMP_GET_METADATA): New enum value and macro. * sysdeps/unix/sysv/linux/bits/ptrace-shared.h -- cgit v1.2.3