This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[google/gcc-4_6_2-mobile, PATCH] Enable __ANDROID__ macro for Android x86 target
- From: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Jing Yu <jingyu at google dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, pavel dot v dot chupin at gmail dot com
- Date: Tue, 21 Feb 2012 13:45:39 +0400
- Subject: [google/gcc-4_6_2-mobile, PATCH] Enable __ANDROID__ macro for Android x86 target
- Authentication-results: mr.google.com; spf=pass (google.com: domain of enkovich.gnu@gmail.com designates 10.68.218.229 as permitted sender) smtp.mail=enkovich.gnu@gmail.com; dkim=pass header.i=enkovich.gnu@gmail.com
Hello,
Here is a patch to enable __ANDROID__ macro on x86 Android targets.
Currently it is enabled for ARM only. OK for google/gcc-4_6_2-mobile
branch?
Thanks
Ilya
--
2012-02-21 Enkovich Ilya <ilya.enkovich@intel.com>
* gcc/config/i386/linux.h (TARGET_OS_CPP_BUILTINS): Add
ANDROID_TARGET_OS_CPP_BUILTINS.
Index: gcc/config/i386/linux.h
===================================================================
--- gcc/config/i386/linux.h (revision 184395)
+++ gcc/config/i386/linux.h (working copy)
@@ -73,6 +73,7 @@
do \
{ \
LINUX_TARGET_OS_CPP_BUILTINS(); \
+ ANDROID_TARGET_OS_CPP_BUILTINS(); \
} \
while (0)