aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [4.9] Refresh GCC 4.9 to the 20140514 snapshot.Ben Cheng2014-05-17138-1118/+3836
| | | | | | For critical bug fixes including devirtualization and codegen. Change-Id: I8138d3dc408fc12db5eecb01d2753d39219712f2
* Merge "[4.8, 4.9] Add simplify-got"Andrew Hsieh2014-05-1628-0/+1163
|\
| * [4.8, 4.9] Add simplify-gotCarrot Wei2014-05-1528-0/+1163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This pass optimize GOT_PREL (already exists in toolchain/gcc/gcc-4.6) Backport from svn://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6-mobile UNSPEC_GOT_PREL_SYM is now in new file arm/unspecs.md 4.9 port is slightly different due to changes in gcc passes See Google b/14811006 r173209 | carrot | 2011-04-30 16:07:46 +0800 (Sat, 30 Apr 2011) | 21 lines * hooks.c (hook_rtx_void_null): New function. * hooks.h (hook_rtx_void_null): New prototype. * target.def (got_access): New hook vector declaration. * tree-pass.h (pass_simplify_got): New pass. * timevar.def (TV_SIMPLIFY_GOT): New TV id. * simplify-got.c: New source file. * Makefile.in (simplify-got.o): Add a new file. * passes.c (init_optimization_passes): Add a new pass. * config/arm/arm.c (arm_output_addr_const_extra): Output GOT_PREL relocation. (arm_get_pic_reg): New function. (arm_clear_pic_reg): New function. (arm_can_simplify_got_access): New function. (arm_loaded_global_var): New function. (arm_load_global_address): New function. * config/arm/arm.md (UNSPEC_GOT_PREL_SYM): New UNSPEC symbol. * testsuite/gcc.target/arm/got1.c: New testcase. * testsuite/gcc.target/arm/got2.c: New testcase. Change-Id: I91e881df19bb6937a5fbcc8e6b83d158717c7773
* | [4.9] Fix openmp supportAndrew Hsieh2014-05-145-5/+270
|/ | | | | | | | | See the following CLs for 4.8 c27bd5a265e6aeecefa6bfebe52fcf26b08298cd # Support OpenMP b6c94ff8e836a01ad3598135d19c49c9eb01a173 # needed OpenMP: Better CPU count detection for Linux d88e126b2b303c95d94b939c21f8672637871dbd # Fix openmp support to use libgomp/config/linux Change-Id: Ib85a23669c03bcdc9dd5f83b9a0f18e5cad6033d
* Merge "[4.6] Fix missing _U, _L, etc"Andrew Hsieh2014-05-091-0/+14
|\
| * [4.6] Fix missing _U, _L, etcArseniy Antonov2014-04-291-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Since 5e9b20f7212c23110693a4bd1f122ccac3fece80 bionic rename _U to _CTYPE_U, etc. Detect the presence of _U and define it to _CTYPE_U in case new bionic headers are in used See a1d2625be0186dc4970774bced8787f3f5f234bf Change-Id: I484bc8801d07938df41d0afeb64971a5e38c5c65 Signed-off-by: Arseniy Antonov <arseniy.antonov@intel.com>
* | Merge "Fix GNU4.7/4.8/4.9 libstdc++ for clang"Andrew Hsieh2014-04-296-11/+9
|\ \
| * | Fix GNU4.7/4.8/4.9 libstdc++ for clangAndrew Hsieh2014-04-286-11/+9
| |/ | | | | | | | | | | | | | | 1. Undo fix in ed7057a1ece24733fe30423cd94131deb8ccb2ca which precludes __atomic_fetch_add() now supported by clang >= 3.3 2. __float128 is supported by clang >= 3.4 Change-Id: Ic2856368d83d261e3a27e0e24ccc09743afdc68b
* / [4.9] aarch64: uncomment md_unwind_header; [4.8,4.9] aarch64: enable ↵Andrew Hsieh2014-04-283-12/+1
|/ | | | | | libatomic,libgomp Change-Id: I21bb83a2de8d27b465afb9d45440cd7966f837ee
* [4.8] Backport fix on bad aarch64 codegen in multiple inheritance thunksAndrew Hsieh2014-04-243-1/+137
| | | | | | | | | | | | | | | | | See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59695 http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=206703 2014-01-17 Kugan Vivekanandarajah <kuganv@linaro.org> Backport from mainline 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org> Kugan Vivekanandarajah <kuganv@linaro.org> PR target/59695 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect truncation. Change-Id: I94f2c9ad01ed489b4a167ce67a34365db37a8200
* Merge "[4.6, 4.8] Backport fix PR libstdc++/59392: Fix ARM EABI uncaught ↵Andrew Hsieh2014-04-245-12/+132
|\ | | | | | | throw from unexpected exception handler"
| * [4.6, 4.8] Backport fix PR libstdc++/59392: Fix ARM EABI uncaught throw from ↵Andrew Hsieh2014-04-215-12/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unexpected exception handler http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=208519 2014-03-12 Roland McGrath <mcgrathr@google.com> Mark Seaborn <mseaborn@google.com> libstdc++-v3/ PR libstdc++/59392 * libsupc++/eh_call.cc (__cxa_call_unexpected): Call __do_catch with the address of a null pointer, not with a null pointer to pointer. Copy comment for this case from eh_personality.cc:__cxa_call_unexpected. * testsuite/18_support/bad_exception/59392.cc: New file. Change-Id: I14e060bccb72881ba8d7e24022d429cd304e2ae3
* | [4.9] Fix darwin gcc fails with -fltoAndrew Hsieh2014-04-222-0/+16
| | | | | | | | | | | | | | | | | | | | | | Since since 4.9 "-flto" is the default, but with it error reads: .../ld: error: .../libexec/gcc/arm-linux-androideabi/4.9/liblto_plugin.so Symbol not found: _environ Replace "environ" with "*_NSGetEnviron()" Change-Id: I7f76f938f5b492458a8324a7b68ae42c0c688db6
* | [4.9] Disable sincosAndrew Hsieh2014-04-221-2/+1
| | | | | | | | Change-Id: Ic0fc6346e446f7e69706570a8ae0b4fe11b24f2c
* | [4.9] Fix mips64el-linux-android-4.9 build with new android-20 headersAndrew Hsieh2014-04-221-0/+1
| | | | | | | | | | | | See 4c35ba7730db5b95bd1404e8a334b7c8e2a9834b Change-Id: I8633259421152fa4347c6ac85b628a5d7191d0e8
* | [4.9] Fix missing _U, _L, etcAndrew Hsieh2014-04-221-0/+14
| | | | | | | | | | | | See a1d2625be0186dc4970774bced8787f3f5f234bf Change-Id: I09088abedaaf57be70fdf967d6d1355be1dd82d9
* | [4.9] GCC 4.9: Only quote arguments in pex-win32.c that need it.Ray Donnelly2014-04-221-9/+38
| | | | | | | | | | | | See 3abe78d4e59c075273860ea3682bf7b4499617e2 Change-Id: I96c89b0f7c265237976cb3a49529edeaaa948d41
* | [4.9] Fix aarch64 to use Android specs.Ben Cheng2014-04-221-1/+1
| | | | | | | | | | | | See bb9a7de92c3a7a4ae8a47536e36559673dd886e9 Change-Id: Id96f2d455699a125e773829cb95939438c242aa6
* | [4.9] Add additional multilib option: mfloat-abi=hardAndrew Hsieh2014-04-221-3/+4
| | | | | | | | | | | | See 5be615df32ce970fcccda93cf577e9ce35b1d397 Change-Id: Iabbfcf0080d966e809e1a8521e93de7fcabd03a4
* | [4.9] Fix mips64 to use ABI_64 by defaultIceberg Fu2014-04-221-1/+9
| | | | | | | | | | | | See 1c712bf7621f3859c33fd3afaa61fdcaf3fdfd76 Change-Id: I50488b4fe61380d174ec508a9fdbdde19c519917
* | [4.9] Extend MIPS GCC4.9 -mldc1-sdc1 to control ldxc1/sdxc1 tooIceberg Fu2014-04-222-3/+3
| | | | | | | | | | | | See 79ba8bc76c0534e9f2544af2d1943b1581c84c77 Change-Id: I79a7c1cb378ca3f75d55ca4303a17ecbf7ecff1b
* | [4.9] Add MXU support in gcc4.9 with -mmxuAndrew Hsieh2014-04-222-0/+5
| | | | | | | | | | | | See 793e263d62bb7f85426899cd7a86e821dd38d12a Change-Id: I51aed0f36c14417647bcd651eb5da622b2fb55a6
* | [4.9] Always enable --eh-frame-hdr for static executableH.J. Lu2014-04-2211-5/+128
| | | | | | | | | | | | | | See 5e6cdf76af295c9a39b695ca228cff675e8ff4ae and 23e3137ee2897464b051599b85a09f130d3ad05d Change-Id: Ibda473188e5a10f2a0592f2494ad00ad1f91e04b
* | [4.9] Add stack unwinding directives for __aeabi_idiv0 in libgcc.aBen Cheng2014-04-222-0/+8
| | | | | | | | | | | | See e85b9ca2afe8edbb9fa99c6ce2cc4e52dce18c21 Change-Id: Ic62d25125387a48412c99fbb16e509b79091559d
* | [4.9] Add an internal switch -minline-thumb1-jumptable to ARM gcc4.9Lai Wei-Chih2014-04-224-3/+9
| | | | | | | | | | | | See a3529b2d6b2bcc7136fd67e00e539301942e74d1 Change-Id: Ie1e6f08d437f661096e0ca14b89cb15b7b2dd538
* | [4.9] Fix ARM/GCC-4.9 generates insufficient alignment for NEON vst/vldAndrew Hsieh2014-04-221-2/+6
| | | | | | | | | | | | See d909af3e2469aad87d5c3e79b93c778fd26c03a9 Change-Id: Ie1de9f946f397196bb6f1623f5add86933739484
* | [4.9] Add new GCC/MIPS option -mldc1-sdc1Andrew Hsieh2014-04-222-2/+6
| | | | | | | | | | | | See 6e6510c702f12bc6320681075cc0ba8dc2c814a7 Change-Id: Ic0d11dc74396785a73ae8477e4d5ce46c031f091
* | [4.9] Maintain default visibility for helper functions in libgcc.a.Ben Cheng2014-04-221-0/+10
| | | | | | | | | | | | See 68330d08ea4b3e32dbadcfae109508f386177e68 Change-Id: Icd2f323e66d689f62b61c9819b983f4a3bb13984
* | [4.9] GNU libstdc++ --enable-linux-futexAndrew Hsieh2014-04-222-0/+17
| | | | | | | | | | | | See bf7fbbea63a8ec70c0cf36969af6d9ded9583d16 Change-Id: I8ab5c14fa486c53d7c6abf4c2ca333469632d459
* | [4.9] Use READELF_FOR_TARGET in GCC 4.9Andrew Hsieh2014-04-222-3/+7
| | | | | | | | | | | | See 59f82b394a9ece7ea20714014a0b9800da3a87fe Change-Id: I209ab527ff7ff75d11c24c8b41fc597f7062e1a3
* | [4.9] Use default visibility for the __cxa functions in eh_arm.cc.Ben Cheng2014-04-221-0/+12
| | | | | | | | | | | | See 4e9989f243cd0a5d51f76e6ce98828c7cb6b9246 Change-Id: Icd8571e9e23b5dd23ae52db71019ecc4b5deb8e3
* | [4.9] Fix MIPS GCC to emit -m elf32ltsmip for linkerAndrew Hsieh2014-04-221-0/+1
| | | | | | | | | | | | See 8648b5263208a4e894d9ceaacedb72d48be70c55 Change-Id: I658234d073de514e4aa40fdb8087d5467d8ee9f5
* | [4.9] Add mclinker support: -fuse-ld=mcldAndrew Hsieh2014-04-225-5/+18
| | | | | | | | | | | | | | | | See 06b207c97dfb0d70f1f2ef91b93b665dceae0d27, 04288e6d5db307539ffc86eff17dc7fd5a2eb973 and 6914eb3758e3c3db5f50f89da12193c22a0531c4 Change-Id: I94f901d9187c9bc3a9f2f4e24795c4bf0f3a62c0
* | [4.9] Use memalign instead of posix_memalign in GCC x86 mm_malloc.hAndrew Hsieh2014-04-221-0/+6
| | | | | | | | | | | | See feb0a69677101f361aaf5dbfcdd8b5a7a827900f Change-Id: Icf882ff2441ef88ef5e3c5d4131011d8ef5348cd
* | [4.9] Disable libstdc versioningAndrew Hsieh2014-04-222-2/+2
| | | | | | | | | | | | See f50a81165e305c7339bec78bd3c9cf8a35e1f233 Change-Id: I55451042ed0fe1517e95283c1fefacd0ada63b0b
* | [4.9] Enable _GLIBCXX_HAS_GTHREADS in GCC 4.9Andrew Hsieh2014-04-221-1/+1
| | | | | | | | | | | | See e830d092a4da90315a8c7bbe886582fc6357606d Change-Id: I378448992bc5ca2b2de59369ea3c475dea01cfc5
* | [4.9] Patch GCC libstdc++ to work with Clang in C++11Andrew Hsieh2014-04-221-1/+1
| | | | | | | | | | | | See 0e1e4c378ef579441c3815c6213422f1df530f9b Change-Id: I74314f368c202436ddef80639d7096e943d7fb5d
* | [4.9] Fix ARM GCC fail to links code using 64-bit atomic built-inAndrew Hsieh2014-04-221-0/+4
| | | | | | | | | | | | See 18f0873ec950f1496e55c2bd68b9debd1b0bb4ce Change-Id: Ibfadd5a581a7002752902ace324c96d9415bc64a
* | [4.9] Backport a gimplify fix.Ben Cheng2014-04-221-0/+9
| | | | | | | | | | | | See eceb576ea5b15a7f8f179f131b665afeeba1c6ad Change-Id: Ifd1dec97b9ceed460d10eaaaf4aa923d02ad2c29
* | [4.9] Enable armv7/thumb2 multilib for arm-eabi.Ben Cheng2014-04-221-12/+17
| | | | | | | | | | | | See f541ff89c2d66197e371ed6f85174bd732afd8db Change-Id: Id642af0523d7af414a906836936b41554b730e98
* | [4.9] Handle NULL return value of setlocale() in libstdc++Andrew Hsieh2014-04-223-21/+41
| | | | | | | | | | | | See 9fc377fd2c2dce50298e33e578d7065e285171e0 Change-Id: I3cf4b8efe75fa45c5743fd7c1f6fc8170597c0a7
* | [4.9] Port MIPS Android support to GCC-4.9Andrew Hsieh2014-04-224-2/+12
| | | | | | | | | | | | See 75b9f722caccc5276fc9c236b9ccb3f7888a86f8 Change-Id: Ia941c59bb94ab943c6ccc188b050daf1894d31d2
* | [4.9] Enable x86/arm gcc defaults; Remove march/mtune/mfpmath/-m32 hardcoded ↵Andrew Hsieh2014-04-223-4/+11
| | | | | | | | | | | | | | | | | | values See 8ca3ada77e50f58668ed31fac0d0b929a96ae40a and 19cf682fd52c042ec6b988ef294dacc45fa50944 Change-Id: Ibc672343710b4b414d11c600fe069ed60692c90b
* | [4.9] Enable assembler linker default for securityAndrew Hsieh2014-04-225-5/+17
| | | | | | | | | | | | | | See 5c602438be54c0802c21b299ab8bd94efbfc0c70 and 7e66b0108987a56a58c6150672fe7cf8cf88e69a Change-Id: I674ca1da71a1c41024057b66613a875aac97f99a
* | [4.9] Work-around for Android __cxa_finalize bugDigit' Turner2014-04-221-0/+8
| | | | | | | | Change-Id: Ib479124867ee2c81a761fdb01a80d9cfc681213b
* | [4.9] GCC 4.9.0 official release refreshBen Cheng2014-04-22692-3854/+324197
|/ | | | Change-Id: Ic99a7da8b44b789a48aeec93b33e93944d6e6767
* Pass link -maarch64linux flagAndrew Hsieh2014-04-151-2/+3
| | | | | | | | | | | | | | | | Backport upstream patch which adds -maarch64linux for linker. eg. ld.mcld may support multiple targets, and more likely than not needs explicit emulation switch [AArch64] Define BE loader name. 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com> * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand loader name using mbig-endian. (LINUX_TARGET_LINK_SPEC): Pass linker -m flag. Change-Id: I2d10f85fbdf5c998d17098c1381ecad628922ba0
* Fix mips64el-linux-android-4.8 build with new android-20 headersAndrew Hsieh2014-04-111-0/+1
| | | | | | | In the new header, signal.h no longer includes asm/sigcontext.h which provide truct sigcontext Change-Id: Ic8d6545ddd68e7512d69a4fabe2caf94723dfb2d
* Merge "[4.9] Temporarily disable __cxa_throw_bad_array_new_length"Ben Cheng2014-04-112-2/+5
|\
| * [4.9] Temporarily disable __cxa_throw_bad_array_new_lengthBen Cheng2014-04-102-2/+5
| | | | | | | | | | | | Hack can be removed when it is supported by NDK. Change-Id: I043bb12580442fae48298a51d045b73f9cb568d3