]> sourceware.org Git - glibc.git/commitdiff
hurd: Fix build with GCC 9
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 14 Nov 2018 00:36:11 +0000 (01:36 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 14 Nov 2018 00:36:44 +0000 (01:36 +0100)
* 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.

ChangeLog
sysdeps/mach/hurd/dl-sysdep.c

index 837c167a0bc5f0561c53183db4f1a68e1dbe6006..149f991b7084f9d1759e32d04f464f0d0b3ac550 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-11-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * 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.
+
 2018-11-13  Florian Weimer  <fweimer@redhat.com>
 
        * malloc/malloc.c (fastbin_push_entry): New function.
index b72913d3baaed1d90a4847c89333a5de258827ca..f53abe8de1043b06ab799dfcd8eacd58e04c62f5 100644 (file)
@@ -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.  */
This page took 0.06311 seconds and 5 git commands to generate.