Browse Source

NPTL: fork: relief register pressure on arm thumb1

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 10 years ago
parent
commit
7bec7d6325
1 changed files with 5 additions and 2 deletions
  1. 5 2
      libpthread/nptl/sysdeps/unix/sysv/linux/fork.c

+ 5 - 2
libpthread/nptl/sysdeps/unix/sysv/linux/fork.c

@@ -58,8 +58,11 @@ fresetlockfiles (void)
 }
 
 pid_t
-#if defined __arm__ && defined __thumb__ && __GNUC_PREREQ (4,6) && !__GNUC_PREREQ (4,8)
-/* GCC PR target/53735 */
+#if defined __arm__ && defined __thumb__ && __GNUC_PREREQ (4,6)
+/* GCC PR target/53735
+ * In thumb1 we run out of registers when compiling with Os so relax that
+ * to have more registers available for spilling by using O2 here.
+ */
 attribute_optimize("O2")
 #endif
 fork (void)