OSDN Git Service

arm: workaround GCC PR target/53735 with fork()
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 8 Jan 2013 08:43:01 +0000 (09:43 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 8 Jan 2013 08:43:01 +0000 (09:43 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libpthread/nptl/sysdeps/unix/sysv/linux/fork.c

index 78e2724..0db32d8 100644 (file)
@@ -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;