This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[google/gcc-4_6_2-mobile, PATCH] Enable __ANDROID__ macro for Android x86 target


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]