summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 2c85148c685..0f7ba1777e8 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -97,6 +97,16 @@ Boston, MA 02111-1307, USA. */
%{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}}"
#endif
+#define LINUX_TARGET_OS_CPP_BUILTINS() \
+ do { \
+ builtin_define ("__gnu_linux__"); \
+ builtin_define_std ("linux"); \
+ builtin_define_std ("unix"); \
+ builtin_assert ("system=linux"); \
+ builtin_assert ("system=unix"); \
+ builtin_assert ("system=posix"); \
+ } while (0)
+
#if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif