aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha/linux.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2015-05-08 08:30:40 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2015-05-08 08:30:40 +0000
commit07ad804bfdbe0fa3406c5f2ff51d7c4c29a783c8 (patch)
tree73c9528e184baf4728ee97183e4d15220368f796 /gcc/config/alpha/linux.h
parent755658a56b57beca14b5fb70afdf1e588a058f7f (diff)
downloadgcc-07ad804bfdbe0fa3406c5f2ff51d7c4c29a783c8.zip
gcc-07ad804bfdbe0fa3406c5f2ff51d7c4c29a783c8.tar.gz
gcc-07ad804bfdbe0fa3406c5f2ff51d7c4c29a783c8.tar.bz2
[PATCH 0/13] Add musl support to GCC
2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com> * config/glibc-stdint.h (OPTION_MUSL): Define. (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE): Change the definition based on OPTION_MUSL for 64 bit targets. * config/linux.h (OPTION_MUSL): Redefine. * config/alpha/linux.h (OPTION_MUSL): Redefine. * config/rs6000/linux.h (OPTION_MUSL): Redefine. * config/rs6000/linux64.h (OPTION_MUSL): Redefine. From-SVN: r222905
Diffstat (limited to 'gcc/config/alpha/linux.h')
-rw-r--r--gcc/config/alpha/linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/alpha/linux.h b/gcc/config/alpha/linux.h
index c567f43..475ea06 100644
--- a/gcc/config/alpha/linux.h
+++ b/gcc/config/alpha/linux.h
@@ -61,10 +61,14 @@ along with GCC; see the file COPYING3. If not see
#define OPTION_GLIBC (DEFAULT_LIBC == LIBC_GLIBC)
#define OPTION_UCLIBC (DEFAULT_LIBC == LIBC_UCLIBC)
#define OPTION_BIONIC (DEFAULT_LIBC == LIBC_BIONIC)
+#undef OPTION_MUSL
+#define OPTION_MUSL (DEFAULT_LIBC == LIBC_MUSL)
#else
#define OPTION_GLIBC (linux_libc == LIBC_GLIBC)
#define OPTION_UCLIBC (linux_libc == LIBC_UCLIBC)
#define OPTION_BIONIC (linux_libc == LIBC_BIONIC)
+#undef OPTION_MUSL
+#define OPTION_MUSL (linux_libc == LIBC_MUSL)
#endif
/* Determine what functions are present at the runtime;