diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-04-02 19:38:54 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-04-02 20:35:36 +0800 |
commit | 18f0873ec950f1496e55c2bd68b9debd1b0bb4ce (patch) | |
tree | 585d5d70f0ad26944c3d44ad73e5be2aecfa62da | |
parent | fa511ab381bbecc4d999047a8de3f164ac99b908 (diff) | |
download | toolchain_gcc-18f0873ec950f1496e55c2bd68b9debd1b0bb4ce.tar.gz toolchain_gcc-18f0873ec950f1496e55c2bd68b9debd1b0bb4ce.tar.bz2 toolchain_gcc-18f0873ec950f1496e55c2bd68b9debd1b0bb4ce.zip |
[4.8] Fix ARM GCC fail to links code using 64-bit atomic built-in
For ARM w/o dmb a helper function is called for 64-bit atomic
built-in, which call __write when helper version is too old.
Change to call write instead for Android.
See http://code.google.com/p/android/issues/detail?id=41297
e42abc641966570528522d61ba625e926e979ac7
Change-Id: I15498b73eebdbd5f4d62aafa943290ca341378bb
-rw-r--r-- | gcc-4.8/libgcc/config/arm/linux-atomic-64bit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc-4.8/libgcc/config/arm/linux-atomic-64bit.c b/gcc-4.8/libgcc/config/arm/linux-atomic-64bit.c index 7aa8dfcb3..1f82472d6 100644 --- a/gcc-4.8/libgcc/config/arm/linux-atomic-64bit.c +++ b/gcc-4.8/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 (); } }; |