[git commit] NPTL: fork: relief register pressure on arm thumb1

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Fri Dec 20 13:08:04 UTC 2013


commit: http://git.uclibc.org/uClibc/commit/?id=7bec7d6325c9e46767eb46abab0fd941c14ac0e5
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libpthread/nptl/sysdeps/unix/sysv/linux/fork.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
index 0db32d8..af40410 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/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)


More information about the uClibc-cvs mailing list