aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgcc/config
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-04-14 23:54:08 (GMT)
committerAndrew Hsieh <andrewhsieh@google.com>2014-04-22 22:34:42 (GMT)
commit5c179d5d43e6abe6eb5652fc0218a7add0845d0b (patch)
treebf6ae182f24c156e1e6fb5530a96330e0bad7972 /gcc-4.9/libgcc/config
parent9511967c9ccf1a35599b1903125d08ad2f426df7 (diff)
downloadtoolchain_gcc-5c179d5d43e6abe6eb5652fc0218a7add0845d0b.zip
toolchain_gcc-5c179d5d43e6abe6eb5652fc0218a7add0845d0b.tar.gz
toolchain_gcc-5c179d5d43e6abe6eb5652fc0218a7add0845d0b.tar.bz2
[4.9] Fix ARM GCC fail to links code using 64-bit atomic built-in
See 18f0873ec950f1496e55c2bd68b9debd1b0bb4ce Change-Id: Ibfadd5a581a7002752902ace324c96d9415bc64a
Diffstat (limited to 'gcc-4.9/libgcc/config')
-rw-r--r--gcc-4.9/libgcc/config/arm/linux-atomic-64bit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.9/libgcc/config/arm/linux-atomic-64bit.c b/gcc-4.9/libgcc/config/arm/linux-atomic-64bit.c
index 5b8c6e2..5c1f970 100644
--- a/gcc-4.9/libgcc/config/arm/linux-atomic-64bit.c
+++ b/gcc-4.9/libgcc/config/arm/linux-atomic-64bit.c
@@ -56,7 +56,11 @@ static void __check_for_sync8_kernelhelper (void)
for the user - I'm not sure I can rely on much else being
available at this point, so do the same as generic-morestack.c
write () and abort (). */
+#if !defined(__ANDROID__)
__write (2 /* stderr. */, err, sizeof (err));
+#else
+ write (2 /* stderr. */, err, sizeof (err));
+#endif
abort ();
}
};