summaryrefslogtreecommitdiff
path: root/gcc/config/gnu.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gcc.gnu.org>1995-02-14 00:38:07 +0000
committerRoland McGrath <roland@gcc.gnu.org>1995-02-14 00:38:07 +0000
commita2d15ba6d353caccefda575751cc26803ff2369d (patch)
treecb7a9b01fc940c702ac16164db0d82afa8b309e5 /gcc/config/gnu.h
parentb0e806fd0d948fdae881ebbeddcd311152891cfd (diff)
downloadgcc-a2d15ba6d353caccefda575751cc26803ff2369d.tar.gz
(GNU_CPP_PREDEFINES): New macro.
From-SVN: r8948
Diffstat (limited to 'gcc/config/gnu.h')
-rw-r--r--gcc/config/gnu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config/gnu.h b/gcc/config/gnu.h
index f565f292714..a279b109ccf 100644
--- a/gcc/config/gnu.h
+++ b/gcc/config/gnu.h
@@ -1,5 +1,12 @@
/* Configuration common to all targets running the GNU system. */
+/* Macro to produce CPP_PREDEFINES for GNU on a given machine. */
+#define GNU_CPP_PREDEFINES(machine) \
+"-D" machine " -Acpu(" machine ") -Amachine(" machine ")"
+"-Dunix -Asystem(unix) \
+-DMACH -Asystem(mach) \
+-D__GNU__ -Asystem(gnu) -D__HURD__"
+
/* Provide GCC options for standard feature-test macros. */
#undef CPP_SPEC
#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{bsd:-D_BSD_SOURCE}"