Просмотр исходного кода

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 лет назад
Родитель
Сommit
62c4a3cae4
1 измененных файлов с 5 добавлено и 1 удалено
  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)