Support compilation for Android platform. Reimplement -mandroid.
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Thu, 27 May 2010 12:06:58 +0000 (12:06 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Thu, 27 May 2010 12:06:58 +0000 (12:06 +0000)
commit51b9db927f5dca75792b11cbc91266d6b842a6b2
tree7ad832699f9e9bad16de80149c717b4f8e7cab5c
parent74c7025321da74e985e225350c32edd3996a4a1e
Support compilation for Android platform.  Reimplement -mandroid.

* config.gcc (*linux*): Include linux-android.h and linux-android.opt.
(*android*): Set ANDROID_DEFAULT.
(arm*-*-linux*): Include linux-android.h.
(arm*-*-eabi*): Don't include previous -mandroid implementation.
* config/arm/eabi.h: Remove, move Android-specific parts ...
* config/linux-android.h: ... here.  New file.
* config/arm/eabi.opt: Rename to ...
* config/linux-android.opt: ... this.
(mandroid): Allow -mno-android option.  Initialize based on
ANDROID_DEFAULT.
* config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
Move logic to corresponding LINUX_TARGET_* macros.
(TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
* config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
(STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
Android definitions.
(LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
* doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
Document.

From-SVN: r159918
gcc/ChangeLog
gcc/config.gcc
gcc/config/arm/eabi.h [deleted file]
gcc/config/arm/eabi.opt [deleted file]
gcc/config/arm/linux-eabi.h
gcc/config/linux-android.h [new file with mode: 0644]
gcc/config/linux-android.opt [new file with mode: 0644]
gcc/config/linux.h
gcc/doc/invoke.texi