Browse Source

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>
Bernhard Reutner-Fischer 15 years ago
parent
commit
62c4a3cae4
1 changed files with 5 additions and 1 deletions
  1. 5 1
      libpthread/nptl/pthread_mutex_timedlock.c

+ 5 - 1
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 classGENERAL_REGSwhile reloadingasm
+ */
 int
+attribute_optimize("Os")
 pthread_mutex_timedlock (
      pthread_mutex_t *mutex,
      const struct timespec *abstime)