comparison gcc/config/linux.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Definitions for systems using the Linux kernel, with or without 1 /* Definitions for systems using the Linux kernel, with or without
2 MMU, using ELF at the compiler level but possibly FLT for final 2 MMU, using ELF at the compiler level but possibly FLT for final
3 linked executables and shared libraries in some no-MMU cases, and 3 linked executables and shared libraries in some no-MMU cases, and
4 possibly with a choice of libc implementations. 4 possibly with a choice of libc implementations.
5 Copyright (C) 1995-2018 Free Software Foundation, Inc. 5 Copyright (C) 1995-2020 Free Software Foundation, Inc.
6 Contributed by Eric Youngdale. 6 Contributed by Eric Youngdale.
7 Modified for stabs-in-ELF by H.J. Lu (hjl@lucon.org). 7 Modified for stabs-in-ELF by H.J. Lu (hjl@lucon.org).
8 8
9 This file is part of GCC. 9 This file is part of GCC.
10 10
49 builtin_define_std ("linux"); \ 49 builtin_define_std ("linux"); \
50 builtin_define_std ("unix"); \ 50 builtin_define_std ("unix"); \
51 builtin_assert ("system=linux"); \ 51 builtin_assert ("system=linux"); \
52 builtin_assert ("system=unix"); \ 52 builtin_assert ("system=unix"); \
53 builtin_assert ("system=posix"); \ 53 builtin_assert ("system=posix"); \
54 } while (0)
55
56 #define GNU_USER_TARGET_D_OS_VERSIONS() \
57 do { \
58 builtin_version ("linux"); \
59 if (OPTION_GLIBC) \
60 builtin_version ("CRuntime_Glibc"); \
61 else if (OPTION_UCLIBC) \
62 builtin_version ("CRuntime_UClibc"); \
63 else if (OPTION_BIONIC) \
64 builtin_version ("CRuntime_Bionic"); \
65 else if (OPTION_MUSL) \
66 builtin_version ("CRuntime_Musl"); \
54 } while (0) 67 } while (0)
55 68
56 /* Determine which dynamic linker to use depending on whether GLIBC or 69 /* Determine which dynamic linker to use depending on whether GLIBC or
57 uClibc or Bionic or musl is the default C library and whether 70 uClibc or Bionic or musl is the default C library and whether
58 -muclibc or -mglibc or -mbionic or -mmusl has been passed to change 71 -muclibc or -mglibc or -mbionic or -mmusl has been passed to change