Browse Source

Do not support localised optimizations this helps to have a global -O level

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Khem Raj 8 years ago
parent
commit
8e43a1a143
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libpthread/nptl/pthread_mutex_timedlock.c

+ 2 - 0
libpthread/nptl/pthread_mutex_timedlock.c

@@ -28,7 +28,9 @@
  * error: can't find a register in class ‘GENERAL_REGS’ while reloading ‘asm’
  */
 int
+#ifndef  __OPTIMIZE__
 attribute_optimize("Os")
+#endif
 pthread_mutex_timedlock (
      pthread_mutex_t *mutex,
      const struct timespec *abstime)