OSDN Git Service

NPTL: fork: relief register pressure on arm thumb1
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 20 Dec 2013 13:05:12 +0000 (14:05 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 20 Dec 2013 13:08:04 +0000 (14:08 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libpthread/nptl/sysdeps/unix/sysv/linux/fork.c

index 0db32d8..af40410 100644 (file)
@@ -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)