From 62c4a3cae413564bbb5ca6b8a7e93d0135d7843f Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 12 Apr 2010 15:04:23 +0200 Subject: pthread_mutex_timedlock: always build with optimizations avoids breakage with DODEBUG and lll_timedlock() constraints Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/pthread_mutex_timedlock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libpthread') 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 #include - +/* 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) -- cgit v1.2.3