Commit 2c8f43e6 by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

config.gcc (LIBC_GLIBC, [...]): Move constants to top level.

	* config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
	to top level.
	* config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
	definitions ...
	* config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
	New macro.
	* config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.

From-SVN: r162315
parent b08e0339
2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
* config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
to top level.
* config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
definitions ...
* config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
New macro.
* config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
2010-07-19 Richard Sandiford <rdsandiford@googlemail.com> 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
* gengtype.c (start_root_entry): New function, split out from * gengtype.c (start_root_entry): New function, split out from
......
...@@ -405,6 +405,9 @@ case ${target} in ...@@ -405,6 +405,9 @@ case ${target} in
;; ;;
esac esac
# Common C libraries.
tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
# Common parts for widely ported systems. # Common parts for widely ported systems.
case ${target} in case ${target} in
*-*-darwin*) *-*-darwin*)
...@@ -508,8 +511,6 @@ case ${target} in ...@@ -508,8 +511,6 @@ case ${target} in
*-*-gnu*) *-*-gnu*)
tmake_file="$tmake_file t-gnu";; tmake_file="$tmake_file t-gnu";;
esac esac
# Common C libraries.
tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3"
# glibc / uclibc / bionic switch. # glibc / uclibc / bionic switch.
# uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD. # uclibc and bionic aren't usable for GNU/Hurd and neither for GNU/k*BSD.
case $target in case $target in
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
{ \ { \
TARGET_BPABI_CPP_BUILTINS(); \ TARGET_BPABI_CPP_BUILTINS(); \
LINUX_TARGET_OS_CPP_BUILTINS(); \ LINUX_TARGET_OS_CPP_BUILTINS(); \
ANDROID_TARGET_OS_CPP_BUILTINS(); \
} \ } \
while (false) while (false)
......
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
along with GCC; see the file COPYING3. If not see along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#define ANDROID_TARGET_OS_CPP_BUILTINS() \
do { \
if (OPTION_ANDROID) \
builtin_define ("__ANDROID__"); \
} while (0)
#if ANDROID_DEFAULT #if ANDROID_DEFAULT
# define NOANDROID "mno-android" # define NOANDROID "mno-android"
#else #else
......
...@@ -96,8 +96,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -96,8 +96,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
builtin_assert ("system=linux"); \ builtin_assert ("system=linux"); \
builtin_assert ("system=unix"); \ builtin_assert ("system=unix"); \
builtin_assert ("system=posix"); \ builtin_assert ("system=posix"); \
if (OPTION_ANDROID) \
builtin_define ("__ANDROID__"); \
} while (0) } while (0)
#if defined(HAVE_LD_EH_FRAME_HDR) #if defined(HAVE_LD_EH_FRAME_HDR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment