[git commit] arm: workaround GCC PR target/53735 with fork()
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Jan 8 08:43:01 UTC 2013
commit: http://git.uclibc.org/uClibc/commit/?id=7e5737f1f16c7c49509f37aa499bf1daab327247
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 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
index 78e2724..0db32d8 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -58,6 +58,10 @@ fresetlockfiles (void)
}
pid_t
+#if defined __arm__ && defined __thumb__ && __GNUC_PREREQ (4,6) && !__GNUC_PREREQ (4,8)
+/* GCC PR target/53735 */
+attribute_optimize("O2")
+#endif
fork (void)
{
pid_t pid;
More information about the uClibc-cvs
mailing list