diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-08 09:43:01 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-01-08 09:43:01 +0100 |
commit | 7e5737f1f16c7c49509f37aa499bf1daab327247 (patch) | |
tree | 5a228fb6556fcae08c7d2bad3bf116ae45a54cf6 /libpthread/nptl/sysdeps/unix/sysv/linux | |
parent | ff6efa4488b338e0a72f574b26e4fff669acab8d (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/sysv/linux')
-rw-r--r-- | 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 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; |