summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/unix
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-01-08 09:43:01 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-01-08 09:43:01 +0100
commit7e5737f1f16c7c49509f37aa499bf1daab327247 (patch)
tree5a228fb6556fcae08c7d2bad3bf116ae45a54cf6 /libpthread/nptl/sysdeps/unix
parentff6efa4488b338e0a72f574b26e4fff669acab8d (diff)
arm: workaround GCC PR target/53735 with fork()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libpthread/nptl/sysdeps/unix')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/fork.c4
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 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;