aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8
diff options
context:
space:
mode:
authorBen Cheng <bccheng@google.com>2013-12-12 11:02:13 -0800
committerBen Cheng <bccheng@google.com>2013-12-12 11:10:56 -0800
commit97b307cf1625028ac1bb14547ae25d5ceb515df6 (patch)
tree6c80b077997b28a26cbd0984ae7fd20a4a605e22 /gcc-4.8
parent03518e5fd50ca1389a55a9d443d7277ec03d1cde (diff)
downloadtoolchain_gcc-97b307cf1625028ac1bb14547ae25d5ceb515df6.tar.gz
toolchain_gcc-97b307cf1625028ac1bb14547ae25d5ceb515df6.tar.bz2
toolchain_gcc-97b307cf1625028ac1bb14547ae25d5ceb515df6.zip
Add built-in macro __ANDROID__ for aarch64-linux-android-gcc
This is to match the existing behavior of 32-bit toolchains. For example in gcc/config/arm/linux-eabi.h it has the following: do { TARGET_BPABI_CPP_BUILTINS(); GNU_USER_TARGET_OS_CPP_BUILTINS(); ANDROID_TARGET_OS_CPP_BUILTINS(); } while (false) I'll try to upstream this patch. Change-Id: I22aa6ba5a0d7b5c9cd5a314f7079dc1edd2d382c
Diffstat (limited to 'gcc-4.8')
-rw-r--r--gcc-4.8/gcc/config/aarch64/aarch64-linux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/config/aarch64/aarch64-linux.h b/gcc-4.8/gcc/config/aarch64/aarch64-linux.h
index 83efad447..2bdae7ac5 100644
--- a/gcc-4.8/gcc/config/aarch64/aarch64-linux.h
+++ b/gcc-4.8/gcc/config/aarch64/aarch64-linux.h
@@ -40,6 +40,7 @@
do \
{ \
GNU_USER_TARGET_OS_CPP_BUILTINS(); \
+ ANDROID_TARGET_OS_CPP_BUILTINS(); \
} \
while (0)