diff options
author | Than McIntosh <thanm@google.com> | 2016-01-14 14:08:29 -0500 |
---|---|---|
committer | Than McIntosh <thanm@google.com> | 2016-01-14 15:04:35 -0500 |
commit | f1c3ad6cac0465017759cce0cb381ce66760d907 (patch) | |
tree | c6ce0987896c065c8422660cbf7fa19667595f69 /gcc-4.9/gcc/config | |
parent | 9d871e98c80898042fb8cfd20a58feadae1ba60c (diff) | |
download | toolchain_gcc-f1c3ad6cac0465017759cce0cb381ce66760d907.tar.gz toolchain_gcc-f1c3ad6cac0465017759cce0cb381ce66760d907.tar.bz2 toolchain_gcc-f1c3ad6cac0465017759cce0cb381ce66760d907.zip |
Fix toolchain/gcc build for mingw.
Theses changes are intended to restore the ability to build
toolchain/gcc cross compiler for non-Android targets (in this specific
case, to allow us to compile toolchain/gcc as part of the mingw-w64
build).
What has happened over time is that references android-specific
synbols and constructs have crept into the non-target-specific
portions of the gcc code. I've done my best to push these things
back into the config/* subtree.
Bug: 26523949
Change-Id: I59334e791875632d51093207c298052a034d2f4a
Diffstat (limited to 'gcc-4.9/gcc/config')
-rw-r--r-- | gcc-4.9/gcc/config/linux-android.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/config/linux-android.h b/gcc-4.9/gcc/config/linux-android.h index d8a66c7fe..76654c34b 100644 --- a/gcc-4.9/gcc/config/linux-android.h +++ b/gcc-4.9/gcc/config/linux-android.h @@ -60,3 +60,13 @@ #define ANDROID_ENDFILE_SPEC \ "%{shared: crtend_so%O%s;: crtend_android%O%s}" + +#define PROFILE_OR_COV_LINK_SPEC \ + "%{fprofile-arcs|fprofile-generate*|coverage:-lgcov " \ + LINUX_OR_ANDROID_LD("", "-lgcc") "}" SANITIZER_SPEC + +// +// For Android apparently we want to temporarily +// disable __cxa_throw_bad_array_new_length +// +#define DISABLE_CXA_THROW_BAD_ARRAY_NEW_LENGTH 1 |