diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-04-12 15:04:23 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-04-12 15:06:05 +0200 |
commit | 62c4a3cae413564bbb5ca6b8a7e93d0135d7843f (patch) | |
tree | ed87b5044ee4bfbbe493c7934493c767852c505e /libpthread/nptl | |
parent | 447a9d1cc181395c3e2ea77ea88e45dee4b30ce6 (diff) |
pthread_mutex_timedlock: always build with optimizations
avoids breakage with DODEBUG and lll_timedlock() constraints
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread/nptl')
-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) |