Browse Source

arm: workaround GCC PR target/53735 with fork()

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer 12 years ago
parent
commit
7e5737f1f1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libpthread/nptl/sysdeps/unix/sysv/linux/fork.c

+ 4 - 0
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;