about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-14 01:36:11 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-11-14 01:36:44 +0100
commit8c6c3fb0bceba87045eccadcfa50129ea95a6ebf (patch)
tree4a519dfcd84f45314adc2efc00190225db667a0b /sysdeps
parent6923f6db1e688dedcf3a6556da76e0bf24a41872 (diff)
downloadglibc-8c6c3fb0bceba87045eccadcfa50129ea95a6ebf.tar.gz
glibc-8c6c3fb0bceba87045eccadcfa50129ea95a6ebf.tar.xz
glibc-8c6c3fb0bceba87045eccadcfa50129ea95a6ebf.zip
hurd: Fix build with GCC 9
	* sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
	__attribute_copy__ to copy attributes from name. Drop static qualifier
	to avoid warnings about leaf attribute not having effect on static
	functions.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index b72913d3ba..f53abe8de1 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -283,8 +283,9 @@ _dl_sysdep_start_cleanup (void)
 /* This macro checks that the function does not get renamed to be hidden: we do
    need these to be overridable by libc's.  */
 #define check_no_hidden(name)				\
-  static __typeof (name) __check_##name##_no_hidden	\
-       __attribute__ ((alias (#name)));
+  __typeof (name) __check_##name##_no_hidden		\
+       __attribute__ ((alias (#name)))			\
+       __attribute_copy__ (name);
 
 /* Open FILE_NAME and return a Hurd I/O for it in *PORT, or return an
    error.  If STAT is non-zero, stat the file into that stat buffer.  */