diff options
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/nptl/pthread_mutex_timedlock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libpthread/nptl/pthread_mutex_timedlock.c b/libpthread/nptl/pthread_mutex_timedlock.c index a4ee25de0..d6ab60ec4 100644 --- a/libpthread/nptl/pthread_mutex_timedlock.c +++ b/libpthread/nptl/pthread_mutex_timedlock.c @@ -24,8 +24,12 @@ #include <lowlevellock.h> #include <not-cancel.h> - +/* We need to build this function with optimization to avoid + * lll_timedlock erroring out with + * error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’ + */ int +attribute_optimize("Os") pthread_mutex_timedlock ( pthread_mutex_t *mutex, const struct timespec *abstime) |