[git commit branch/0.9.33] arm: workaround GCC PR target/53735 with fork()
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Jan 8 08:48:50 UTC 2013
commit: http://git.uclibc.org/uClibc/commit/?id=bbbefccc18a5df2fbbc3e91841879fc2c7df1f88
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33
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 6ad9053..6b69635 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c
@@ -60,6 +60,10 @@ fresetlockfiles (void)
extern __typeof(fork) __libc_fork;
pid_t
+#if defined __arm__ && defined __thumb__ && __GNUC_PREREQ (4,6) && !__GNUC_PREREQ (4,8)
+/* GCC PR target/53735 */
+attribute_optimize("O2")
+#endif
__libc_fork (void)
{
pid_t pid;
More information about the uClibc-cvs
mailing list