From 7e5737f1f16c7c49509f37aa499bf1daab327247 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 8 Jan 2013 09:43:01 +0100 Subject: arm: workaround GCC PR target/53735 with fork() Signed-off-by: Bernhard Reutner-Fischer --- libpthread/nptl/sysdeps/unix/sysv/linux/fork.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpthread/nptl/sysdeps/unix') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/fork.c index 78e272464..0db32d836 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; -- cgit v1.2.3