mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
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.
This commit is contained in:
parent
6923f6db1e
commit
8c6c3fb0bc
@ -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.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user