summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2010-12-20 20:09:24 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2010-12-20 20:09:24 +0000
commitb5a54c037a966cd7dd64ccc972e75d678f8dea00 (patch)
treea6e8e8f100327d1539de9ab12a543692b410a252 /gcc/config/linux.h
parent5385594074b33ef05ad5eb5a02b902b7be02f529 (diff)
downloadgcc-b5a54c037a966cd7dd64ccc972e75d678f8dea00.tar.gz
linux.h (OPTION_GLIBC): Define differently if SINGLE_LIBC.
* config/alpha/linux.h (OPTION_GLIBC): Define differently if SINGLE_LIBC. * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define differently if SINGLE_LIBC. * config/rs6000/linux.h (OPTION_GLIBC): Define differently if SINGLE_LIBC. * config/rs6000/linux64.h (OPTION_GLIBC): Define differently if SINGLE_LIBC. * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define SINGLE_LIBC instead of OPTION_GLIBC. (*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC. (bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define DEFAULT_LIBC or use linux.opt. From-SVN: r168094
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 1c4ea1c7bb0..d53468e4e2e 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -80,9 +80,15 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define LIB_SPEC LINUX_TARGET_LIB_SPEC
/* C libraries supported on Linux. */
+#ifdef SINGLE_LIBC
+#define OPTION_GLIBC (DEFAULT_LIBC == LIBC_GLIBC)
+#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
+#define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
+#else
#define OPTION_GLIBC (linux_libc == LIBC_GLIBC)
#define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
#define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
+#endif
#define LINUX_TARGET_OS_CPP_BUILTINS() \
do { \