summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-20 20:09:24 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-20 20:09:24 +0000
commitd9993a193258bc05cecae6ace9ef97ce4f06438a (patch)
treea6e8e8f100327d1539de9ab12a543692b410a252 /gcc/config/linux.h
parentd92c13833b08a9f898fd890d9e93cfa7bc4d7b08 (diff)
downloadgcc-d9993a193258bc05cecae6ace9ef97ce4f06438a.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168094 138bc75d-0d04-0410-961f-82ee72b054a4
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 { \