mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 14:50:17 +00:00
Work around a ppc clang inlining bug
This commit is contained in:
parent
9b6c937b00
commit
96509a9dce
@ -27,6 +27,9 @@
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#if defined __clang__ && defined __powerpc64__
|
||||
#define UGLY_INLINE_HACK
|
||||
#endif
|
||||
#include <aio_misc.h>
|
||||
|
||||
#ifndef aio_create_helper_thread
|
||||
|
@ -35,7 +35,13 @@ __aio_start_notify_thread (void)
|
||||
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);
|
||||
}
|
||||
|
||||
extern inline int
|
||||
extern
|
||||
/* clang fails to inline properly in one case, and then linking fails
|
||||
because the function was discarded, so ensure it's kept. */
|
||||
#ifndef UGLY_INLINE_HACK
|
||||
inline
|
||||
#endif
|
||||
int
|
||||
__aio_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
|
||||
void *arg)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user