[git commit nptl] pthread_mutex_timedlock: always build with optimizations
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Mon Apr 12 13:09:25 UTC 2010
commit: http://git.uclibc.org/uClibc/commit/?id=62c4a3cae413564bbb5ca6b8a7e93d0135d7843f
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl
avoids breakage with DODEBUG and lll_timedlock() constraints
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
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 a4ee25d..d6ab60e 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)
--
1.6.3.3
More information about the uClibc-cvs
mailing list