From d29350c02f67827c3357b0da5ca62d4ca8733be1 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Sat, 13 Apr 2002 19:21:08 +0000 Subject: linux.h: Define __gnu_linux__ wherever __linux__ is defined... * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is defined, and __gnu_hurd__ wherever __GNU__ is defined. * arm/linux-elf.h: Likewise. * cris/aout.h: Likewise. * cris/linux.h: Likewise. * i370/linux.h: Likewise. * i386/gnu.h: Likewise. * i386/linux-aout.h: Likewise. * i386/linux-oldld.h: Likewise. * i386/linux.h: Likewise. * i386/linux64.h: Likewise. * ia64/linux.h: Likewise. * m68k/linux-aout.h: Likewise. * m68k/linux.h: Likewise. * mips/linux.h: Likewise. * pa/pa-linux.h: Likewise. * pj/linux.h: Likewise. * rs6000/sysv4.h: Likewise. * s390/linux.h: Likewise. * sh/linux.h: Likewise. * sparc/linux-aout.h: Likewise. * sparc/linux.h: Likewise. * sparc/linux64.h: Likewise. * xtensa/linux.h: Likewise. From-SVN: r52279 --- gcc/config/rs6000/sysv4.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'gcc/config/rs6000/sysv4.h') diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h index 6b5f48a..6b97d77 100644 --- a/gcc/config/rs6000/sysv4.h +++ b/gcc/config/rs6000/sysv4.h @@ -1221,18 +1221,18 @@ do { \ #endif #ifdef USE_GNULIBC_1 -#define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__ \ -%{!undef: \ - %{!ansi: \ - %{!std=*:-Dunix -D__unix -Dlinux -D__linux} \ - %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} \ +#define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \ +%{!undef: \ + %{!ansi: \ + %{!std=*:-Dunix -D__unix -Dlinux -D__linux} \ + %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} \ -Asystem=unix -Asystem=posix" #else -#define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__ \ -%{!undef: \ - %{!ansi: \ - %{!std=*:-Dunix -D__unix -Dlinux -D__linux} \ - %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} \ +#define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \ +%{!undef: \ + %{!ansi: \ + %{!std=*:-Dunix -D__unix -Dlinux -D__linux} \ + %{std=gnu*:-Dunix -D__unix -Dlinux -D__linux}}} \ -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}" #endif @@ -1256,9 +1256,9 @@ do { \ %{rdynamic:-export-dynamic} \ %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}" -#define CPP_OS_GNU_SPEC "-D__unix__ -D__GNU__ \ -%{!undef: \ - %{!ansi: -Dunix -D__unix}} \ +#define CPP_OS_GNU_SPEC "-D__unix__ -Dgnu_hurd -D__GNU__ \ +%{!undef: \ + %{!ansi: -Dunix -D__unix}} \ -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}" /* NetBSD support. */ -- cgit v1.1