linux.h: Define __gnu_linux__ wherever __linux__ is defined...
authorMark Mitchell <mark@codesourcery.com>
Sat, 13 Apr 2002 19:21:08 +0000 (19:21 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Sat, 13 Apr 2002 19:21:08 +0000 (19:21 +0000)
* 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

24 files changed:
gcc/ChangeLog
gcc/config/alpha/linux.h
gcc/config/arm/linux-elf.h
gcc/config/cris/aout.h
gcc/config/cris/linux.h
gcc/config/i370/linux.h
gcc/config/i386/gnu.h
gcc/config/i386/linux-aout.h
gcc/config/i386/linux-oldld.h
gcc/config/i386/linux.h
gcc/config/i386/linux64.h
gcc/config/ia64/linux.h
gcc/config/m68k/linux-aout.h
gcc/config/m68k/linux.h
gcc/config/mips/linux.h
gcc/config/pa/pa-linux.h
gcc/config/pj/linux.h
gcc/config/rs6000/sysv4.h
gcc/config/s390/linux.h
gcc/config/sh/linux.h
gcc/config/sparc/linux-aout.h
gcc/config/sparc/linux.h
gcc/config/sparc/linux64.h
gcc/config/xtensa/linux.h

index b0243de561972d9289b7a2c071888e7a663e1399..a6d4aab9659aea92631bdb66d463d723f4d9f1ab 100644 (file)
@@ -1,3 +1,30 @@
+2002-04-13  Mark Mitchell  <mark@codesourcery.com>
+
+       * 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.
+
 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
 
        * stmt.c (check_unique_operand_names): Expect operand names to
index 721153a03c3cde733c71878ccf2ea98e7c91f811..7c4057fabbeec8b99c1a329535191791d7adcade 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler,
    for Alpha Linux-based GNU systems.
-   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998, 2002 Free Software Foundation, Inc.
    Contributed by Richard Henderson.
 
 This file is part of GNU CC.
@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES \
-  "-Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__"
+  "-Dgnu_linux -Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__"
 
 /* The GNU C++ standard library requires that these macros be defined.  */
 #undef CPLUSPLUS_CPP_SPEC
index 74f7e7ef99998259f3ed211cf1b317aca57436ed..86e48c898cfae334526355ff38b8f22ad77db789 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for ARM running Linux-based GNU systems using ELF
-   Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001 
+   Copyright (C) 1993, 1994, 1997, 1998, 1999, 2000, 2001, 2002 
    Free Software Foundation, Inc.
    Contributed by Philip Blundell <philb@gnu.org>
 
@@ -87,7 +87,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef  CPP_PREDEFINES
 #define CPP_PREDEFINES \
-"-Dunix -Dlinux -D__ELF__ \
+"-Dunix -Dgnu_linux -Dlinux -D__ELF__ \
 -Asystem=unix -Asystem=posix"
 
 /* Allow #sccs in preprocessor.  */
index dc998f1b0fe84e14077b6264d4f1a790292c94b4..ce906e79592d35cef8311bfe60dacd2852f74760 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for GCC.  Part of the machine description for CRIS.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    Contributed by Axis Communications.  Written by Hans-Peter Nilsson.
 
 This file is part of GCC.
@@ -65,7 +65,7 @@ Boston, MA 02111-1307, USA.  */
 #undef CRIS_CPP_SUBTARGET_SPEC
 #define CRIS_CPP_SUBTARGET_SPEC \
  "-D__AOUT__\
-  %{melinux:-D__linux__ -D__unix__ -D__elinux__ -D__uclinux__\
+  %{melinux:-D__gnu_linux__ -D__linux__ -D__unix__ -D__elinux__ -D__uclinux__\
     %{!nostdinc:\
       %{!mbest-lib-options:%{isystem*}}\
       -isystem elinux/include%s\
index 5949937ef719e5dfa9146c7e930d995ccaef4b28..6962d742dd7b01623ea2f5ed5cf8954fd7c62f62 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for GCC.  Part of the machine description for CRIS.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
    Contributed by Axis Communications.  Written by Hans-Peter Nilsson.
 
 This file is part of GCC.
@@ -47,7 +47,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef CRIS_CPP_SUBTARGET_SPEC
 #define CRIS_CPP_SUBTARGET_SPEC \
-  "-D__linux__ -D__unix__  -D__ELF__\
+  "-D__gnu_linux__ __linux__ -D__unix__  -D__ELF__\
    %{pthread:-D_REENTRANT}\
    %{fPIC|fpic: -D__PIC__ -D__pic__}\
    %{!fleading-underscore:-fno-leading-underscore -D__NO_UNDERSCORES__}\
index 52a343859498260ac3a6af0a239dfdbc10a5d279..6cc95c041b4760e6b86fd72d29ceb3b1687e3107 100644 (file)
@@ -35,7 +35,7 @@ Boston, MA 02111-1307, USA.  */
 /* Names to predefine in the preprocessor for this target machine.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-DGCC -Dgcc -D__ELF__ -Dunix -Dlinux -Asystem=posix -Acpu=i370 -Amachine=i370"
+#define CPP_PREDEFINES "-DGCC -Dgcc -D__ELF__ -Dunix -Dgnu_linux -Dlinux -Asystem=posix -Acpu=i370 -Amachine=i370"
 
 /* Options for this target machine.  */
 
@@ -86,7 +86,7 @@ Boston, MA 02111-1307, USA.  */
 #endif
 
 #ifndef CPP_OS_LINUX_SPEC
-#define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__ \
+#define CPP_OS_LINUX_SPEC "-D__unix__ -D__gnu_linux__ -D__linux__ \
 %{!ansi: -Dunix -Dlinux } \
 -Asystem=unix -Asystem=linux"
 #endif
index 0214c05771fe455109dacf22c8fb327e31765233..fb80d0fa7933fde32896a6ec9a1c6a32b7e606da 100644 (file)
@@ -5,7 +5,7 @@
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "-D__ELF__ -DMACH -Asystem=mach \
-  -Dunix -Asystem=unix -Asystem=posix -D__GNU__ -Asystem=gnu"
+  -Dunix -Asystem=unix -Asystem=posix -Dgnu_hurd -D__GNU__ -Asystem=gnu"
 
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) \
index 9bcbfe7045c95f7c20e34e93fdd6e98379c748f7..a4ea805c2101ad6473fc801d1e8ed7d97b73bb58 100644 (file)
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
 /* Specify predefined symbols in preprocessor.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-Dunix -Dgnu_linux -Dlinux -Asystem=posix"
 
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
index 6a6139683e85342e60c693b7b907819da8c76f9d..a1453d9873aae37209a921193c707452377613d3 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions for Intel 386 running Linux-based GNU systems with pre-BFD
    a.out linkers.
-   Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1997, 1998, 2002 Free Software Foundation, Inc.
    Contributed by Michael Meissner (meissner@cygnus.com)
 
 This file is part of GNU CC.
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
 /* Specify predefined symbols in preprocessor.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-Dunix -Dgnu_linux -Dlinux -Asystem=posix"
 
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE}"
index 282a11b05a7b68f3d1e5f113c2be180d8ee83c7c..89b661bb25eadc92abffbb571f903bca6852a7f8 100644 (file)
@@ -84,7 +84,7 @@ Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE_SIZE BITS_PER_WORD
     
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dgnu_linux -Dlinux -Asystem=posix"
 
 #undef CPP_SPEC
 #ifdef USE_GNULIBC_1
index a969ab9906e00db706153c73c08366b6f1575b0e..82ff36ac91c6c65a54a793bdac7608ff74510f83 100644 (file)
@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA.  */
 #define TARGET_VERSION fprintf (stderr, " (x86-64 Linux/ELF)");
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dlinux -Asystem(posix)"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -Dgnu_linux -Dlinux -Asystem(posix)"
 
 #undef CPP_SPEC
 #define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{!m32:-D__LONG_MAX__=9223372036854775807L}"
index 51ba60f1635887506900af55c80dfc15f9ea1730..d54b45926841a19a78ec122b9ddb2b878e2a5c4b 100644 (file)
@@ -11,8 +11,8 @@
 
 /* ??? Maybe this should be in sysv4.h?  */
 #define CPP_PREDEFINES "\
-  -D__linux -D__linux__ -D_LONGLONG -Dlinux -Dunix \
-  -Asystem=linux"
+  -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG -Dgnu_linux
+  -Dlinux -Dunix -Asystem=linux"
 
 /* Need to override linux.h STARTFILE_SPEC, since it has crtbeginT.o in.  */
 #undef STARTFILE_SPEC
index f7bb33726ad86013488966ac34c3815b43add992..7b9293ae9e746653435d51ba919822ccde64e205 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for Motorola m68k running Linux-based GNU systems.
-   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_COMMENT_START "|"
 
 #define CPP_PREDEFINES \
-  "-Dunix -Dmc68000 -Dmc68020 -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
+  "-Dunix -Dmc68000 -Dmc68020 -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
 
 #undef CPP_SPEC
 #if TARGET_DEFAULT & MASK_68881
index b1ec977736473391e07ea514d78069b3b5495cc8..e5208e604f7656aa9cb90ef860a7bd48056522dd 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions for Motorola 68k running Linux-based GNU systems with
    ELF format.
-   Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -113,7 +113,7 @@ Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE_SIZE BITS_PER_WORD
 
 #define CPP_PREDEFINES \
-  "-D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
+  "-D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
 
 #undef CPP_SPEC
 #ifdef USE_GNULIBC_1
index c63c461d8475d722359ba19f3a4c6da046702fdc..738e1f644db8481802fde196723237ae7abe4a3d 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for MIPS running Linux-based GNU systems with ELF format.
-   Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -134,11 +134,11 @@ void FN ()                                                        \
 #undef CPP_PREDEFINES
 #if TARGET_ENDIAN_DEFAULT == 0
 #define CPP_PREDEFINES "-DMIPSEL -D_MIPSEL -Dunix -Dmips -D_mips \
--DR3000 -D_R3000 -Dlinux -Asystem=posix -Acpu=mips \
+-DR3000 -D_R3000 -Dgnu_linux -Dlinux -Asystem=posix -Acpu=mips \
 -Amachine=mips -D__ELF__ -D__PIC__ -D__pic__"
 #else
 #define CPP_PREDEFINES "-DMIPSEB -D_MIPSEB -Dunix -Dmips -D_mips \
--DR3000 -D_R3000 -Dlinux -Asystem=posix -Acpu=mips \
+-DR3000 -D_R3000 -Dgnu_linux -Dlinux -Asystem=posix -Acpu=mips \
 -Amachine=mips -D__ELF__ -D__PIC__ -D__pic__"
 #endif
 
index 16599ef171a2e250fced0d5c2bf49ca5eb70d774..ffae14dfc75aecc0e9d18eaf575a2f0de8283f21 100644 (file)
@@ -58,7 +58,7 @@ Boston, MA 02111-1307, USA.  */
     } while (0)
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
 
 #undef LIB_SPEC
 #define LIB_SPEC \
index 1b79c6178f72c35bffc0edf6567d14c415c0e63d..1404a55be73a3f34342344fd5a40e9356feea815 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for a picoJava Linux-based GNU system.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
 #undef STARTFILE_SPEC
 #undef ENDFILE_SPEC
 
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__pj__ -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__pj__ -Dgnu_linux -Dlinux -Asystem=posix"
 #define STARTFILE_SPEC "crt1.o%s crti.o%s crtbegin.o%s"
 #define ENDFILE_SPEC   "crtend.o%s crtn.o%s"
 
index 6b5f48a12ec8ab0836031c07e758a4c9cb7d71c5..6b97d7777d97da65dc743221a2562c9cc1e19bde 100644 (file)
@@ -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.  */
index 5ce0a714e720e2e3c0185e434c8b91278a2fa984..365971485e5f616ec1f407cf2badb7437c5f3b5e 100644 (file)
@@ -54,7 +54,7 @@ Boston, MA 02111-1307, USA.  */
 #define NO_BUILTIN_PTRDIFF_TYPE
 
 #define CPP_PREDEFINES \
-  "-Dunix -Asystem(unix) -Dlinux -Asystem(linux) -D__ELF__ \
+  "-Dunix -Asystem(unix) -Dgnu_linux -Dlinux -Asystem(linux) -D__ELF__ \
    -Acpu(s390) -Amachine(s390) -D__s390__"
 
 #define CPP_ARCH31_SPEC \
index be5bcb581489b4b26ab97b05fa9af02abb686238..a6f94b61f597429c555397236b46eb0598ced2ed 100644 (file)
@@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA.  */
 
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sh__ -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sh__ -Dgnu_linux -Dlinux -Asystem=posix"
 
 #undef SUBTARGET_ASM_ENDIAN_SPEC
 #define SUBTARGET_ASM_ENDIAN_SPEC "%{!mb:-little}"
index bed72db14f6aa367d2e2493743588520985b97b3..b5930d9ae3c213f1f39b75e69ade009b3a2463a2 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for SPARC running Linux-based GNU systems with a.out.
-   Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999, 2002 Free Software Foundation, Inc.
    Contributed by Eddie C. Dost (ecd@skynet.be)
 
 This file is part of GNU CC.
@@ -60,7 +60,7 @@ Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE_SIZE 32
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dsparc -Dlinux -Asystem=unix -Asystem=posix"
+#define CPP_PREDEFINES "-Dunix -Dsparc -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix"
 
 #undef CPP_SUBTARGET_SPEC
 #define CPP_SUBTARGET_SPEC \
index f7ae4d7f9f1570ecb995964c3a877356f9f7ba76..119fe345e0f44bba908d6b34f80a4efe35fd83d2 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for SPARC running Linux-based GNU systems with ELF.
-   Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
    Contributed by Eddie C. Dost (ecd@skynet.be)
 
 This file is part of GNU CC.
@@ -101,7 +101,7 @@ Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE_SIZE 32
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sparc__ -Dlinux -Asystem=unix -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sparc__ -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix"
 
 #undef CPP_SUBTARGET_SPEC
 #ifdef USE_GNULIBC_1
index 9540efc40d70f162e441618cf40aeb0691e6d56a..13bd25cc348cc944979a65ce07593df54bebd24e 100644 (file)
@@ -169,7 +169,7 @@ ENDFILE_SPEC_COMMON
 #endif
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D_LONGLONG -D__sparc__ -Dlinux -Asystem=unix -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D_LONGLONG -D__sparc__ -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix"
 
 #undef CPP_SUBTARGET_SPEC
 #define CPP_SUBTARGET_SPEC "\
index 04c6b7f3d6dba2a700a58f0d41ee0d5b0e1b8e54..afe35ddca6b2a6fadf49b2262eb891180538d4c3 100644 (file)
@@ -1,6 +1,6 @@
 /* Xtensa Linux configuration.
    Derived from the configuration for GCC for Intel i386 running Linux.
-   Copyright (C) 2001 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -52,7 +52,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES \
  "-D__XTENSA__ -D__ELF__ -Acpu=xtensa -Amachine=xtensa \
-  -Dunix -Dlinux -Asystem=posix"
+  -Dunix -Dgnu_linux -Dlinux -Asystem=posix"
 
 #undef LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX     "."