OSDN Git Service

pthread_mutex_timedlock: always build with optimizations
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 12 Apr 2010 13:04:23 +0000 (15:04 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 12 Apr 2010 13:06:05 +0000 (15:06 +0200)
avoids breakage with DODEBUG and lll_timedlock() constraints

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libpthread/nptl/pthread_mutex_timedlock.c

index a4ee25d..d6ab60e 100644 (file)
 #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)