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

login
register
mail settings
Submitter Ilya Enkovich
Date Feb. 21, 2012, 9:45 a.m.
Message ID <CAMbmDYYWQH12uR89NSzgY_DhQTJxfUgTWYneiN4LaUzBTmXUcg@mail.gmail.com>
Download mbox | patch
Permalink /patch/142275/
State New
Headers show

Comments

Ilya Enkovich - Feb. 21, 2012, 9:45 a.m.
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.

Patch

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)