aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc
Commit message (Collapse)AuthorAgeFilesLines
* Merge "[4.7] x32: Backport x32 support into 4.7"Andrew Hsieh2013-04-2248-317/+1181
|\
| * [4.7] x32: Backport x32 support into 4.7Pavel Chupin2013-04-1848-317/+1181
| | | | | | | | | | | | | | | | This patch contains all gcc changes required to build x32 compiler. They are backported from 4.8/trunk. Change-Id: I923f639c1f0cee5812b0f555a39bab0bd0723865 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | Fix GCC4.4.3/4.6/4.7 to supress -export-dynamic for statically linked programsAndrew Hsieh2013-04-121-2/+3
|/ | | | | | | | | r191401 | jingyu | 2012-09-18 01:33:05 +0800 (Tue, 18 Sep 2012) | 6 lines 2012-09-17 Ben Cheng <bccheng@google.com * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the dynamic linker commands for statically linked programs. Change-Id: Ib8a27fb054ddb12242d500ef8b3ceb2b0215cb3e
* Misc fixesAndrew Hsieh2013-04-041-1/+1
| | | | | | | | | | 1. Fixed darwin build of GCC 4.8/X86 by removing trailing ',' from the last item of enum. Not discovered before because GCC 4.8 now builds with -Wall -Werror, and gcc-4.2.1 in darwin is picky about that 2. Fixed -fuse-ld=mcld Change-Id: I7b65edfb76841f14c3290acb5a98f556d00e1139
* Use READELF_FOR_TARGET in GCC 4.6/4.7Andrew Hsieh2013-03-262-3/+7
| | | | | | | | | | | | | | | | | | | | | | In darwin where readelf isn't available, gcc/configure fails to set HAVE_LD_PERSONALITY_RELAXATION for MIPS, causes TARGET_WRITABLE_EH_FRAME=1 and flag_dwarf2_cfi_asm=0 (ie. disable CFI directive), and fails ld.mcld It's curious that the successful detection of the /tmp/ndk-$USER/gcc/binutils-2.21/readelf requires binutils to exist in the GCC's source tree, according to gcc/configure. Other tools (objdump, nm, ld, as, etc) can be successfully located because of OBJDUMP_FOR_TARGET, NM_FOR_TARGET, etc. Fix to look for READELF_FOR_TARGET in gcc/configure See https://android-review.googlesource.com/#/c/54760 https://android-review.googlesource.com/#/c/54770 https://android-review.googlesource.com/#/c/54710 Change-Id: I8b057a70d43389d3d9d02b5c54b8365ebe6487d1
* Fixed GCC 4.7 ICE in redirect_eh_edge_1, at tree-eh.c:2214Andrew Hsieh2013-03-082-0/+25
| | | | | | | | | | | | | | http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191571 2012-09-17 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/54563 * tree-ssa-math-opts.c (execute_cse_sincos): Call gimple_purge_dead_eh_edges if last call has been changed. * g++.dg/torture/pr54563.C: New test. See https://code.google.com/p/android/issues/detail?id=52909 Change-Id: Ib0f8d0dd2faa5a8f0bdeb160da2e2cd0c24f5757
* Fixed GCC 4.6/4.7 ICE gen_thumb_movhi_clobber at config/arm/arm.md:5832Andrew Hsieh2013-03-052-1/+2
| | | | | | | See issue https://code.google.com/p/android/issues/detail?id=52732, and fix http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00732.html Change-Id: If4759a637e5fb6f9c351c11b79d7f9f682ca2ab2
* Fix MIPS GCC to emit -m elf32ltsmip for linkerAndrew Hsieh2013-02-281-0/+1
| | | | | | | | | | ARM/X86 GCC in NDK explicitly emit -m armelf_linux_eabi and -m elf_i386, respectively, for linker. Fix MIPS to do the same, to help mclinker which is built vanilla and relies on either filename (eg. eg. arm-linux-androideabi-ld.mcd implies arm) or -mtriple/-march/-m to figure out the target Change-Id: I236786d0e90a3152225de1eea5e73e3de4ac3f84
* Add mclinker support: -fuse-ld=mcldAndrew Hsieh2013-02-213-0/+21
| | | | | | http://code.google.com/p/mclinker/ Change-Id: Ic9d88a86298eddaccf3c7da8405efb2b2f0d3e70
* Use memalign instead of posix_memalign in GCC x86 mm_malloc.hAndrew Hsieh2013-02-201-0/+6
| | | | | | | | | | | | | | posix_memalign doesn't exist in NDK. Code inludes ?mmintrin.h which in turn includes mm_malloc.h may fail to link For AOSP platform build which uses the same compiler, add -DHAVE_POSIX_MEMALIGN to restore the original behavior. Other than non-zero return value which _mm_alloc already ignores, both paths are functioanlly identical (under the hood dlmalloc.c in 32-bit ensure alignment is at least 16-byte) Change-Id: I55e9bb8b80e1b55baa9744920df10fcf83218300
* Merge "Remove march/mtune/mfpmath hardcoded values"Andrew Hsieh2013-01-311-2/+1
|\
| * Remove march/mtune/mfpmath hardcoded valuesPavel Chupin2013-01-311-2/+1
| | | | | | | | | | | | | | | | They should be passed in configure to work correctly. See https://android-review.googlesource.com/50815 Change-Id: I2aeb0375132ba985a51c397ee386af1ff4a47c32 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* | Fix GCC 4.7 ICE in build_data_member_initialization, at cp/semantics.c:5790Andrew Hsieh2013-01-252-2/+22
|/ | | | | | | | 2013-01-03 Jason Merrill <jason@redhat.com> PR c++/55856 * semantics.c (build_data_member_initialization): Handle DECL_EXPR. Change-Id: Ib34c16c4bc714875a49831ef8fb1691b392640cd
* Fix x86 GCC4.7 segfault in i386.c distance_non_agu_define_in_bb()Andrew Hsieh2013-01-224-33/+30
| | | | | | | | | | | | | | | | | | | | | | | | line #16514 "if (prev == BB_HEAD(bb))" causes segfault due to bb==NULL when compiling external/llvm/lib/Transforms/Scalar/SROA.cpp BUG: 8047767 ------------------------------------------------------------------ r186451 | vries | 2012-04-14 05:17:41 -0700 (Sat, 14 Apr 2012) | 13 lines 2012-04-14 Tom de Vries <tom@codesourcery.com> * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by call to delete_insn. Remove code to reorder BASIC_BLOCK note and DELETED_LABEL note, and move it to ... * cfgrtl.c (delete_insn): ... here. Change return type to void. (delete_insn_and_edges): Likewise. (delete_insn_chain): Handle new return type of delete_insn. Delete chain backwards rather than forwards. * rtl.h (delete_insn, delete_insn_and_edges): Change return type to void. * cfglayout.c (fixup_reorder_chain): Delete unused label. Change-Id: Ibc069a4267d063586003d49a805fb794f4041465
* Fix OpenMPAndrew Hsieh2012-12-276-11/+15
| | | | | | | | | | | | | | Based on 1271761f530c0050154e8d526b95f952df551751, 92c478dba755a1a2f6f00ff390666acbffd41982, and 51df2e98d22e2c6f5d2a16860bc8fc3644179c1d. With the following modifications: 1. Translate -pthread to -lc instead of -lpthread Android doesn't have (has pthread* in libc.so instead) 2. Because of 1., we can restore to the original order of LINUX_OR_ANDROID_LD Change-Id: I505250c32b9908cb17bb269dc26e73c91669c07f
* Support OpenMP+Bionic on ICS/GCC-4.7.2 for task parallelismGeunsik Lim2012-12-252-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch supports OpenMP library to parallelize the existing C/C++ code (e.g: for task parallelism) rapidly/easily without any modification of android platform on multicore embedded devices. The original patch is made by Keith Obenschain (using GCC 4.4.3). . Archive - https://android-review.googlesource.com/#/c/34491/ I just moved GCC version from 4.4.3 to 4.7.2 for ktoolchain version 2.5. The patch is good to me when I evaluate a lot of C/C++ source code with OpenMP's #parama. we move the version of OpenMP from version 2.5 to version 3.1. Please, refer to the "kandroid toolchain" menu in www.kandroid.org to compile source code including bionic and openmp library on real Android devices. http://kandroid.org/board/board.php?board=toolchain&command=body&no=16 I tested Openmp library with the latest GCC 4.7.2 on Android/ARM devices as following. Please refer to the below example. geunsik@rhel6$> ./arm-linux-androideabi-gcc openmptest.c -L /usr/local/ktoolchain-cortexa9-ver2.5-20120515-bionic/arm-linux-androideabi/lib -lgomp -o openmptest [ENTER] geunsik@rhel6$> geunsik@rhel6$> geunsik@rhel6$> file ./openmptest ./openmptest: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), not stripped Change-Id: I20cb3c1ac5c000445c043310158179723bd69fe2 Signed-off-by: Geunsik Lim <leemgs@gmail.com> Acked-by: Geunsik Lim <geunsik.lim@gmail.com>
* Enable MIPS floating-point madd/msub/nmadd/nmsub/recip/rsqrt with 32-bit FPU.Chao-ying Fu2012-12-112-9/+4
|
* Backport r193554 to GCC4.7/x86 resotre earlier cmov behaviorAndrew Hsieh2012-12-062-2/+7
| | | | | | See http://gcc.gnu.org/viewcvs?view=revision&revision=193554 Change-Id: I069da55efd2d75fc8b5ad518090660131d6fec05
* Merge "[GCC 4.7] Backport a gimplify fix."Ben Cheng2012-12-051-0/+9
|\
| * [GCC 4.7] Backport a gimplify fix.Ben Cheng2012-12-051-0/+9
| | | | | | | | | | | | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55245 Change-Id: I3de4a11e2de0a144c70d5ce43f7b5bccb68fb671
* | Fixed GCC elides lambdasAndrew Hsieh2012-12-043-11/+56
|/ | | | | | | | | | | | | | | | | | | | | | | | See http://code.google.com/p/android/issues/detail?id=35933 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54170 Backport of r194098 to both GCC 4.6 and 4.7 /cp 2012-12-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54170 * cvt.c (cp_convert_to_pointer): Don't discard side-effects from expressions of nullptr_t. * typeck.c (build_ptrmemfunc): Likewise. /testsuite 2012-12-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54170 * g++.dg/cpp0x/lambda/lambda-nullptr.C: New. Change-Id: I4c90f9e06262a54796302773b36eb5bac7b4f1fa
* Enable armv7/thumb2 multilib for arm-eabi.Ben Cheng2012-11-291-12/+17
| | | | | | | | | | | Configured multilib: > arm-eabi-gcc -print-multi-lib .; thumb;@mthumb thumb/thumb2;@mthumb@march=armv7 Change-Id: Ie6d951929432610a7317dd37bdf12cb97544e1b4
* Merge "Add -fstack-protector-strong to GCC 4.7"Andrew Hsieh2012-11-025-7/+235
|\
| * Add -fstack-protector-strong to GCC 4.7Andrew Hsieh2012-11-015-7/+235
| | | | | | | | | | | | See http://patchwork.ozlabs.org/patch/165025/ Change-Id: I369d8459cfe5baaf42ae9861fd7d8df8f90e48c2
* | Merge "Add -mstack-protector-guard= to x86 compilers"Andrew Hsieh2012-11-024-4/+30
|\ \
| * | Add -mstack-protector-guard= to x86 compilersAndrew Hsieh2012-11-014-4/+30
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To choose between "global" (default) and "tls" (new) for -fstack-protector, -fstack-protector-all, and -fstack-protector-strong (GCC 4.6+). Note that this alone doesn't enable any -fstack-protector* For NDK: The default "global" generates code backward compatible with older bionic For AOSP: build may add "-mstack-protector-guard=tls" to build platform code with new bionic (*1) Related CL: https://android-review.googlesource.com/#/c/45416 (*1) https://android-review.googlesource.com/#/c/45784 Change-Id: Iedf5b7ae5148572db2e35f0add93bc3d13511304
* / Fix dom optimization which removes goto in dalvik dexoptPavel Chupin2012-11-012-19/+89
|/ | | | | | | | | | | | | | | | | | | | | | Can be seen in logcat by messages: E dalvikvm: Out-of-order map item: 0 then 0x70 E dalvikvm: ERROR: Byte swap + verify failed BZ: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54985 Backport r192745 and children r192746, r192754, r192852: PR tree-optimization/54985 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function * extracted from thread_across_edge. (thread_across_edge): Use it in all cases where we might thread across a back edge. * gcc.c-torture/execute/pr54985.c: New test. Change-Id: I45e0185b1b729de91749272d62d3d331fcf1cf71 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Merge "Simplify GCC 4.7 BASE-VER"Andrew Hsieh2012-10-301-1/+1
|\
| * Simplify GCC 4.7 BASE-VERAndrew Hsieh2012-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | Change 4.7.2 -> 4.7 In NDK gnu-libstdc++ is built seperately and copied over to standalone. This change simplifies script doing that and make it less sensitive to future minor version upgrade Change-Id: I92e213906301cb48cdb53c64f205e82d60464be7
* | Return to %gs:20 code generation for -fstack-protector on x86Pavel Chupin2012-10-301-4/+4
|/ | | | | | | | | After https://android-review.googlesource.com/#/c/45416 bionic provides stack-protector random value per each thread at %gs:20. Therefore return compiler back to %gs:20 code gen, same as for glibc. Change-Id: I76c68f0c99846d247f34e0ea781a7f1c305659b9 Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
* Merge "Port MIPS Android support to GCC-4.6/4.7"Andrew Hsieh2012-10-233-11/+50
|\
| * Port MIPS Android support to GCC-4.6/4.7Andrew Hsieh2012-10-233-11/+50
| | | | | | | | | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ gcc/0008-Port-MIPS-Android-support-to-GCC-4.6.patch Change-Id: I486ea194683b370dcb038488a92fadef7e2da1ac
* | Merge "Enable x86/arm gcc defaults"Andrew Hsieh2012-10-233-4/+12
|\|
| * Enable x86/arm gcc defaultsAndrew Hsieh2012-10-233-4/+12
| | | | | | | | | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ gcc/0004-Enable-x86-gcc-defaults.patch Change-Id: I6cb6ba8b29b7ba4f242f788a57bf0460289f0cbd
* | Enable assembler linker default for securityAndrew Hsieh2012-10-235-5/+17
|/ | | | | | | Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ gcc/0009-Enable-assembler-linker-default-for-security.patch Change-Id: I0211ee770e9d4db036361390fcb5892d4e39356f
* Merge "[4.7] Add -fuse-ld="Andrew Hsieh2012-10-098-40/+243
|\
| * [4.7] Add -fuse-ld=Andrew Hsieh2012-10-098-40/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Google ref 54218-p2 2011-06-27 Doug Kwan <dougkwan@google.com> Google ref 41164-p2 Backport upstream patch under review. 2011-01-19 NNick Clifton <nickc@redhat.com> Matthias Klose <doko@debian.org> * configure.ac (gcc_cv_gold_srcdir): New cached variable - contains the location of the gold sources. (ORIGINAL_GOLD_FOR_TARGET): New substituted variable - contains the name of the locally built gold executable. * configure: Regenerate. * collect2.c (main): Detect the -use-gold and -use-ld switches and select the appropriate linker, if found. If a linker cannot be found and collect2 is executing in verbose mode then report the search paths examined. * exec-tool.in: Detect the -use-gold and -use-ld switches and select the appropriate linker, if found. Add support for -v switch. Report problems locating linker executable. * gcc.c (LINK_COMMAND_SPEC): Translate -fuse-ld=gold into -use-gold and -fuse-ld=bfd into -use-ld. * common.opt: Add fuse-ld=gold and fuse-ld=bfd. * opts.c (comman_handle_option): Ignore -fuse-ld=gold and -fuse-ld=bfd. * doc/invoke.texi: Document the new options. Change-Id: I659dd3f53b8ee23667fec0d7d77efc90155cdf43
* | Merge "[4.7] Fix crash on null context in GCC 4.6 ↵Andrew Hsieh2012-10-091-1/+1
|\ \ | | | | | | | | | cp/mangle.c::write_unscoped_name"
| * | [4.7] Fix crash on null context in GCC 4.6 cp/mangle.c::write_unscoped_nameAndrew Hsieh2012-10-091-1/+1
| |/ | | | | | | | | | | | | See related CL: 737fc2a978ff2364d91e634a6b990979df60058f for GCC 4.6 Change-Id: Ie630c2ef24555fd138f9499913619efb993f141b
* / [4.7] 64-bit long double for bionicAndrew Hsieh2012-10-0916-9/+160
|/ | | | | | | See Related CL 65cadbba7f7e816b4b2bff752808b7429d0d0f2a done to GCC 4.6 Change-Id: Ia2da804331e82e47f62925a8e9ab819507501fc9
* [4.7] Disable warning: the mangling of <va_list> has changed in GCC 4.4Andrew Hsieh2012-10-081-0/+13
| | | | | | | | Please see commit message of the same fix for 4.6 and 4.4.3 GCC 4.6 a9fcd9b1ecb8954f67738a94b8553ab234d6def5 GCC 4.4.3 329ca6fa5d9972ad6dad8387036b4dbe9cfa1f27 Change-Id: I74847332d32fdcda7dcad4fc03013cb96109ac39
* Backport r186560 and r185958 from gcc trunk to gcc-4.7/gcc/configAndrew Hsieh2012-10-043-18/+67
| | | | Change-Id: Ic600504cdb0bed5a01f8b0bf6232be60fb45eea2
* Initial check-in of gcc 4.7.2.Ben Cheng2012-10-0140192-0/+7165627
Change-Id: I4a2f5a921c21741a0e18bda986d77e5f1bef0365