aboutsummaryrefslogtreecommitdiff
path: root/build/tools/toolchain-patches/gcc
AgeCommit message (Collapse)Author
2015-04-06Always enable the fix of cortex-a53 erratum 843419 for NDK toolchains.Lai Wei-Chih
Change-Id: I7952d4c2b9655bca605c8a25027cd35d730dd540
2015-03-02Fix failing Fix-PR-target-63209.patchIlya Konstantinov
Fix the patch to apply on gcc revision 7e8c3dad070b469494f5e8e09ee73cd99bb84c12.
2014-12-18Remove GCC 4.6Andrew Hsieh
Change-Id: I840e7a2183e956e27e5dd93357ef2a2dd49fd40b
2014-12-09Add mipsr6Andrew Hsieh
This is internal-only ABI for -mips32r6 enough to generate mips32r6 STL libraries in prebuilts/ndk. "mips" (r1) remains the only supported 32-bit ABI for MIPS Change-Id: I2ede51fccd57680d1405749da80ad837e2816795
2014-12-05misc fixes in r10dAndrew Hsieh
1. Remove hack for server where android-13,15,17 were missing 2. Remove --disable-libquadmath 3. Fixed build-gnu-libstdc++.sh thumb build where "-ffunction-sections -fdata-sections" were dropped 4. Fixed llvm clang3.5/windows build where mingw-64 complains about -fPIC 5. Fixed bashism in make-standalone-toolchain.sh 6. Fixed "package-release.sh --separate-64" 7. Relaxed patch-sources.sh against non-existance patch directory 8. Refresh build/tools/toolchain-patches/gcc/0010-Fix-PR-target-63209.patch 9. Fixed warning about unused vars in cpu-features.c 10. Fixed sources/android/support/Android.mk about -fvisibility-inlines-hidden is only foo C++ 11. Fixed tests/build/check-armeabi-v7a-prebuilts/build.sh on MacOSX 10.6.8 12. Fixed tests/build/issue64679-prctl/build.sh to include GLES2/gl2ext.h which can be compiled alone now 13. Excluded tests/device/b8708181-Vector4/jni/Vector4.cpp from clang3.4 14. Removed some comments in tests/device/test-libc++-*-full/jni/Android.mk 15. misc run-test.sh fixes 16. Disable integrated-as for clang in tests/build/issue79115-confusing-ld.gold-warning Change-Id: I0afb2c00642dd61d81fd4842532d1b3c4029655b
2014-11-07Revise gcc4.9 local patchesAndrew Hsieh
After aosp/toolchain/gcc ba21122c63b06a70b620c8990c517b87198ad05b and 39dbe572beead93798002c03b4897afaf018cd04 which break it Change-Id: I9f66dd7ae29414e5a4f25019223dac648da05875
2014-10-27Remove two local patches for aosp/toolchain/gccAndrew Hsieh
Due to merge of the following patches: 2d56bf64aecbd0ffa1f682674f2840a3573f0e6a ab0bb7b89f358e00e28155be52ff96e25947f761 Change-Id: I5591d98b8baa6beb358893727d98918bd37039e5
2014-10-16Update GCC NDK local patchesAndrew Hsieh
All patches shoule be pushed to aosp/toolchain/gcc. Put it here to document what's absent from aosp/toolchain/gcc for the GCC toolchain in coming r10c Change-Id: Iff025a58b4f950fe75e19677fa09d8163cee8de7
2014-04-23Update NDK gcc local patches after gcc4.9 rebeaseAndrew Hsieh
Change-Id: I88ca8648a7740372859143f08f19cc11a6c81f4f
2014-04-18Add gcc-4.9/binutils-2.24Andrew Hsieh
Now gcc4.8 also compile with binutils-2.24 as well (from 2.23) Change-Id: I249dd4414182d2b42c231ca9dbe1e2ec960b995e
2014-03-07Rename local patch against gcc about renaming libstdc++.so to ↵Andrew Hsieh
libgnustl_shared.so The local patch gcc/0006-Disable-libstdc-versioning.patch now actually only does renaming libstdc++.so to libgnustl_shared.so. The part which disables versioning was pushed out to toolchain/gcc 4a0927423d51f594b870e58b3eb51574327f8b0e Change-Id: I0a3523bf296929e172ecd028e6ff2103ffc22a94
2013-11-04Misc fixesAndrew Hsieh
1. dev-cleanup.sh sources/android/gccunwind/libs and sources/cxx-stl/llvm-libc++/libs 2. Remove tests/build/c++-stl-source-extensions from windows and darwin packages because it contains identical files in the view of case-insensitive FS. Test coverage in linux shall be enough. 3. Unpack RS stuffs in packaging currently in tar ball 4. delete one more gcc4.7 patch forgotten in 60e87b828a08bc307e71d4359b23b68a1fe6104c 5. test libc++ in tests/standalone/run.sh Change-Id: Ia0e8ff79a44dc4d26ded8b49e48a21f8d5697d0c
2013-10-31Remove clang3.2, gcc4.7 and binutils-2.22Andrew Hsieh
Both clang3.2 and gcc4.7 (which uses binutils-2.22) are deprecated and will be removed from r9c Change-Id: I8101ece53fef6e2e32d393ec0fb3d1ecbee5a02a
2013-09-23fix float-abi; misc fixesAndrew Hsieh
"-float-abi soft" for armeabi and armeabi-v7a, unspecified for the rest plus some misc fixes Change-Id: I99c60cd9341285181f73c11f928b787ed0b30315
2013-08-07Misc fixesAndrew Hsieh
1. Fixed to create bin/$TOOLCHAIN_PREFIX-clang[++] in addition to bin/clang[++] 2. Fixed to rebuild stlport inside /tmp/ndk-$USER 3. Adjusted gcc local patch after 4.8.1 and mclinker rebase 4. Uncomment "@echo off" in find-win-host.cmd 5. Cleanup compiler-rt subdir 6. Use wine 1.7 for 64-bit testing standalone toolchain Change-Id: I7e74c4b67c81b2f7276e466c2899037cd100d73a
2013-07-26Remove obsolete GCC 4.4.3 toolchain.David 'Digit' Turner
This remove the 4.4.3 toolchain from the NDK, and slightly updates documentation to not mention it anymore. Change-Id: Ia42cd54e3a4e88ba5ee3ea35d9ee3cc4b9237ca2
2013-04-08Refresh local patchesAndrew Hsieh
Both are minor: 1) mclinker: match 8deec88b4819c6e4003feb22a06a2f75ebe186ec Only line changes 2) gcc: minor border line changes Change-Id: I7b4d6e577c3b78acaf88da05c7a24095da2fc87b
2013-04-02Download/Build/Use GCC 4.8Andrew Hsieh
Change-Id: I230ea06de58b9765eb684f31f28444faf93e4508
2013-01-11Push out first half of local patch Disable libstdc versioningAndrew Hsieh
See https://android-review.googlesource.com/#/c/45269 Change-Id: Idbe9d639213a9e4f07c0521f1d502866dbd75ce3
2012-10-23Push out 20 NDK local patches to toolchain repoAndrew Hsieh
Change-Id: Idc9041b1cf427211cd3008e18d38baf8ea8effcb
2012-10-04Merge "Build GCC 4.7/binutils-2.22"Andrew Hsieh
2012-10-04Fix missing gthr-default.h on libstdc++ build with gcc-4.7Pavel Chupin
This issue prevents from building libstdc++ without building gcc-4.7 at the same time due to source tree dependency. Patch is temporary. This issue should be fixed in gcc trunk first and then backported into 4.7. Change-Id: I05ea11f357b572f0b3df934db0830e61a01439d4 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2012-10-04Build GCC 4.7/binutils-2.22Andrew Hsieh
Change-Id: I87deafce18a33e564e8040b75d72b16d615e429b
2012-08-28Tune patch for toolchain changes on enabling USE_PT_GNU_EH_FRAMEPavel Chupin
This patch should be merged only after https://android-review.googlesource.com/#/c/42250 Change-Id: Idee42e708575cd6ac79c8e88a4dcfe9eadd52722 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2012-08-06Tune patch to apply on top of gcc-4.6 toolchainPavel Chupin
Should be merged ONLY after https://android-review.googlesource.com/#/c/40435 Change-Id: I313a22c3e075204089143245055eeec81ff67027 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2012-05-29Enable assembler/linker default "-z noexecstack -z relro -z now" for securityAndrew Hsieh
"--noexecstack" for assembler and "-z noexecstack" for linker enable NX protection against buffer overflow attacks by enabling NX bit on stack and heap. "-z relro -z now" for linker hardens internal data sections after linking against security vulnerabilities due to memory corruption. See http://www.akkadia.org/drepper/nonselsec.pdf (section 6) http://tk-blog.blogspot.com/2009/02/relro-not-so-well-known-memory.html For those who really needs it, these features can be disabled by 1. Passing "--execstack" to assembler and "-z execstack" to linker to disable NX protection. Passing "-z norelro -z lazy" to linker to disable second protection. 2. In NDK jni/Android.mk, set the following LOCAL_DISABLE_NO_EXECUTE=true: to disable "--noexecstack" and "-z noexecstack" DISABLE_RELRO=true: to disable "-z relro -z now" see $NDK/docs/ANDROID-MK.html for details Change-Id: I5a482001178d5d8140f053712a132865ca2abf66
2012-05-24Remove -mno-shared as default in MIPS toolchainAndrew Hsieh
-fPIC (or -fpic if supported) is default for Android toolchain. Without explicitly specifying one of -mshared, -fpic, -fPIC, -fpie, or -fPIE, MIPS compiler adds -mno-shared which turns off PIC. Fixed it not to add -mno-shared as default. Change-Id: Id499e332fc5e9a33a221ee947d124468f405f16a
2012-05-14Update toolchain-patchesAndrew Hsieh
Update patches to apply toolchain source @ 2012-05-12, which includes toolchain/build.git: https://android-review.googlesource.com/#/c/35566/ https://android-review.googlesource.com/#/c/36112/ https://android-review.googlesource.com/#/c/36451/ https://android-review.googlesource.com/#/c/36421/ https://android-review.googlesource.com/#/c/36454/ toolchain/binutils.git: https://android-review.googlesource.com/#/c/36417/ toolchain/gcc.git: https://android-review.googlesource.com/#/c/36286/ toolchain/gdb.git: https://android-review.googlesource.com/#/c/36423/ Removed redundant patches to gcc/gcc-4.6/gcc/config/i386/linux.h and gcc/gcc-4.6/gcc/config/linux-android.h Removed over-patches to build/configure and build/Makefile.in Change-Id: Ib15e63561aa3c05b6e0d18bfda656781397b175d
2012-05-09gcc-4.6: Disable sincos optimization.David 'Digit' Turner
This adds a local NDK-specific patch to GCC-4.6 to disable sincos optimization. See patch commit-message for details. This is required because legacy Android platforms don't implement sincos() in their libm.so Change-Id: I89f3d45e53019bd79067f8edc22544a8c8695606
2012-05-06Port local NDK patches to GCC 4.6David 'Digit' Turner
This patch ports all local NDK patches to the GCC 4.6 codebase. The changes should not affect the GCC 4.4.3 sources/patches. After applying this, re-run download-toolchain-sources.sh, then do the following to build binaries for GCC 4.6: build/tools/build-gcc.sh $SRC_DIR $NDK_DIR $TOOLCHAIN_NAME --binutils-version=2.21 Where $TOOLCHAIN_NAME can be: arm-linux-androideabi-4.6 x86-4.6 mipsel-linux-android-4.6 Note that specifying binutils 2.21 is mandatory (the build will fail with 2.19, which is the default). + Update download-toolchain-sources.sh to download the mpc sources necessary for 4.6 Change-Id: Id5ffb5ec5305c3e99d6cdcf26da66de3f6fe27fd
2012-04-24Update NDK local patchsetDavid 'Digit' Turner
This patch modifies our local NDK patches by rebasing them against a more recent version of the toolchain sources (2012-04-20, while the old ones were based on 2011-02-23). Note that this removes certain local patches that are now in the toolchain tree. This allows us to integrate many bugfixes into the toolchain build. Note: This is the first in a series of several patches that will add support fro GCC 4.6 and GDB 7.1.x/7.3.x. For now, the local patches still only apply to gcc 4.4.3 and gdb 6.6. If you want to check this patch, you should do the following: - download the source tree _before_ applying this patch: download-toolchain-sources.sh /tmp/ndk-src1 - download the source tree _after_ applying this patch: download-toolchain-sources.sh /tmp/ndk-src2 - compare the two source trees in details, e.g. with: meld /tmp/ndk-src1 /tmp/ndk-src2 All the differences are supposed to come from upstream. Change-Id: I881b231bec3ac04d1cd1de298aa96e44b46e44bb
2012-04-06Change toolchain name from mips-linux-android to mipsel-linux-android,Chao-Ying Fu
because the target triplet requires el for MIPS little-endian targets. Change-Id: I1ff6b888c2d7e2517ce00979dfa3719616d13d71
2012-03-10[MIPS] Patches to be applied to gcc, gdb and buildRaghu Gandham
Change-Id: I2ae77a93c872ae17eecf7d40ad145eae1da540cd Signed-off-by: Chao-Ying Fu <fu@mips.com>
2011-12-03Fix standalone toolchain C++ linking issue.David 'Digit' Turner
Gets rid of a regression introduced with NDK r7 This patches gets rid of libstdc++.so in the standalone toolchain installation, because when used at link time, it generated executables and shared libraries that could not be properly loaded by the dynamic linker. Instead, one has to link with -lgnustl_shared now to be able to use the shared version of the GNU STL with the standalone toolchain. You can still use -lstdc++ but this will always use the static version of the library, just as before NDK r7. + fix tests/run-standalone-tests.sh Change-Id: Ib992ce6f5a97bbd02cc318748636dca766b80857
2011-10-10gnustl_shared: New C++ runtimeDavid 'Digit' Turner
This patch fixes build-gnu-libstdc++.sh to work properly and generate libgnustl_shared.so from the GNU libstdc++ sources. This is done by a custom patch to the gcc toolchain source tree to force the generation of libgnustl_shared.so from the same objects than libstdc++.so. This is required because there is no way to change the internal DT_SONAME of a given shared library, so a simple rename will not work. We also ensure that libgnustl_static.a is properly generated and used by the make-standalone-toolchain.sh script (which uses copy-libstdcxx.sh) + Update definitions.mk to make "gnustl_shared" available in APP_STL + Update documentation to reflect that STLport now supports RTTI + Update documentation to reflect the new gnustl_shared runtime Change-Id: Ie3ffaf825ba2d65eca027ec0be5e320d0ee39cbc
2011-10-07build-gnu-libstdc++.sh: refinementsDavid 'Digit' Turner
+ Add a patch to disable libtool versioning when building the GNU libstdc++.so Change-Id: I450513be84e00d02dd52a49ffccf18cfc9064e81
2011-07-13Use the correct CRT files with shared link optionMark D Horn
Change-Id: I0b89d13cbc65f19fc10aa1db92f59c2779054fa1 Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2011-07-05Enable Intel Atom performance patch to GCCMark D Horn
Update to tip of Googles gcc project repo to pulling in critical performance patch for Atom on small functions. Change-Id: I0c52a068fad1351fa632b23c2b9f673f82cd091e Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2011-07-02Fix x86 Default Toolchain configurationMark D Horn
Change-Id: I630451a2a7a7aef0cf2f71a97e36120d45635029 Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2011-06-20Remove arm-eabi-4.4.0 supportDavid 'Digit' Turner
The arm-eabi-4.4.0 was deprecated a long time ago, now remove any support for it from the NDK to simplify things. Change-Id: I41e65539824673466a1fc4c22bbd0d42a49d1394
2011-05-26Fix Eclair crash when loading gnustl-linked shared libraryDavid 'Digit' Turner
This adds a local gcc patch to prevent exception or rtti aware machine code linked against gnustl_static from crashing on Eclair and older platform releases. This is really a work-around for dynamic linker bug. Nothing that should be sent to upstream. Change-Id: I6b50c8024fa4500a2732d8d712e03d555989c6ab
2011-04-07build-gcc.sh: Support building x86-4.4.3 with GNU libstdc++David 'Digit' Turner
This patch allows build-gcc.sh to properly generate an x86-4.4.3 toolchain with a working GNU libstdc++. This is done by providing a few local toolchain patches. Change-Id: I4ba04ad595b8e6f4f874855c694b16f999806ca5
2011-03-10Update NDK toolchain sources to 2011-02-22David 'Digit' Turner
Changes the reference git date for the toolchain source download script, and removes two local patches that are no longer needed since they are now in android.git.kernel.org/toolchain/... Change-Id: I75a660112db51edd4d511d7daa2faac0878a4b9a
2011-02-24Fix compilation of gcc-4.4.0 on OS X 10.6Martin Storsjo
This is a backport of the fix for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180, fixed upstream since gcc 4.4.2. Change-Id: I5f9a253d5717b04886ce00fcdffc0c73c4ae5e54
2011-02-20Fix GNU STL crash on Android 2.1 and older.David 'Digit' Turner
Due to a bug in the implementation of __cxa_finalize() that was only fixed in Android 2.2, any code linked with gnustl_static would crash when running on Android 2.1 or older. This adds a local patch to libsupc++ to detect the problem at runtime and avoid the crash. Note that this results in a leak of a thread-specific storage key on these older platforms. Change-Id: Ia40ea9dc3ea5b0d3d3c1c3fae0556778a16c8ef6
2011-01-08arm-linux-androideabi: Use -fpic by default instead of -fPICandroid-sdk-2.3.4_r1android-cts-2.3_r5android-cts-2.3_r4android-cts-2.3_r3android-cts-2.3_r2android-cts-2.3_r12android-cts-2.3_r11android-cts-2.3_r10android-cts-2.3_r1android-2.3.7_r1android-2.3.6_r1android-2.3.6_r0.9android-2.3.5_r1android-2.3.4_r1android-2.3.4_r0.9android-2.3.3_r1aandroid-2.3.3_r1.1android-2.3.3_r1gingerbread-releasegingerbread-mr4-releasegingerbreadDavid 'Digit' Turner
Used to prevent a performance degradation compared to arm-eabi when using the standalone toolchain. NDK toolchain not affected. Change-Id: I4c603974fdc16dd6eb7be68dd0b72c4a98f25484
2010-12-13Fix gnustl float/double iostream crashes.David 'Digit' Turner
Also remove wchar_t-related compiler warnings when building the STLport sources. Change-Id: I5e377f8f1e05719bb3033e42d701e2a30f1121d6
2010-11-24Add C++ exceptions and RTTI support.David 'Digit' Turner
This enables C++ exceptions and RTTI support to the NDK toolchain through a local patch. C++ sources are still built with -fno-exceptions and -fno-rtti by default for compatibility purpose, so use -fexceptions and/or -frtti in your LOCAL_CPPFLAGS to enable these features. You will also need to link against libsupc++.a directly with: LOCAL_LDLIBS := -lsupc++ + Add two device tests to check that the features work properly. Change-Id: I41956a04997336d8135aaef291a1579267e0ad2a