aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-10-23 19:48:55 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2012-10-23 19:49:57 +0800
commit83507cc564adba7e66ee20a36bf9c50e4d280cc1 (patch)
treef8ed3b83e202eff8da913eec8fedd4bd3d954770 /gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
parent20c5bf758150dcfc13af1fce22e20256d29e150a (diff)
downloadtoolchain_gcc-83507cc564adba7e66ee20a36bf9c50e4d280cc1.tar.gz
toolchain_gcc-83507cc564adba7e66ee20a36bf9c50e4d280cc1.tar.bz2
toolchain_gcc-83507cc564adba7e66ee20a36bf9c50e4d280cc1.zip
Add MIPS Android support and default to little-endian
Used to be local NDK patch at $NDK/build/tools/toolchain-patches/ gcc/0007-Add-MIPS-Android-support-and-default-to-Little-Endia.patch Change-Id: Idd91e833ad64defdf93d95a8d4bf99f898c358a1
Diffstat (limited to 'gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c')
-rw-r--r--gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c b/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
index 11f53dd31..bad608280 100644
--- a/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
+++ b/gcc-4.4.3/gcc/unwind-dw2-fde-glibc.c
@@ -46,8 +46,10 @@
#include "gthr.h"
#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \
- && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
- || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
+ && ((defined(__BIONIC__) && (defined(mips) || defined(__mips__))) \
+ || (__GLIBC__ > 2 \
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
+ || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG))))
#include <link.h>