linux.h, [...] (CPP_PREDEFINES): Define __gnu_linux__, not gnu_linux.
authorRichard Henderson <rth@redhat.com>
Mon, 15 Apr 2002 20:35:31 +0000 (13:35 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 15 Apr 2002 20:35:31 +0000 (13:35 -0700)
        * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
        config/i386/linux-aout.h, config/i386/linux-oldld.h,
        config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
        config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
        config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
        config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
        config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
        Define __gnu_linux__, not gnu_linux.
        * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.

From-SVN: r52329

21 files changed:
gcc/ChangeLog
gcc/config/alpha/linux.h
gcc/config/arm/linux-elf.h
gcc/config/i370/linux.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 772c2b0245ca55c22644d590a746cc03f1d9abf3..16e7a14951f3cd6c4788953e991da5b48e1690b0 100644 (file)
@@ -1,3 +1,15 @@
+2002-04-15  Richard Henderson  <rth@redhat.com>
+
+       * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
+       config/i386/linux-aout.h, config/i386/linux-oldld.h,
+       config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
+       config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
+       config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
+       config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
+       config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
+       Define __gnu_linux__, not gnu_linux.
+       * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
+
 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
 
        Remove Chill front end.
index 7c4057fabbeec8b99c1a329535191791d7adcade..21639c5ece0bf5e12ebbf67a02acf9f536f62cf7 100644 (file)
@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES \
-  "-Dgnu_linux -Dlinux -Dunix -Asystem=linux -D_LONGLONG -D__alpha__"
+  "-D__gnu_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 947bd9c922681f6c5052167e4835b30c028f2d42..f1c86d28110b4198e4ca4b087eb9008bc5608f92 100644 (file)
@@ -91,7 +91,7 @@ Boston, MA 02111-1307, USA.  */
 
 #undef  CPP_PREDEFINES
 #define CPP_PREDEFINES \
-"-Dunix -Dgnu_linux -Dlinux -D__ELF__ \
+"-Dunix -D__gnu_linux__ -Dlinux -D__ELF__ \
 -Asystem=unix -Asystem=posix"
 
 /* Allow #sccs in preprocessor.  */
index 6cc95c041b4760e6b86fd72d29ceb3b1687e3107..004b4f2f836574da800e45ce20dcc456318756b7 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 -Dgnu_linux -Dlinux -Asystem=posix -Acpu=i370 -Amachine=i370"
+#define CPP_PREDEFINES "-DGCC -Dgcc -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem=posix -Acpu=i370 -Amachine=i370"
 
 /* Options for this target machine.  */
 
index a4ea805c2101ad6473fc801d1e8ed7d97b73bb58..84d4109a424d0a6289bf3ac4cd34f041c5f26f0c 100644 (file)
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
 /* Specify predefined symbols in preprocessor.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dgnu_linux -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-Dunix -D__gnu_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 a1453d9873aae37209a921193c707452377613d3..476a9ed2ec55e1d6abddcbadeb9fe75ebe60859e 100644 (file)
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
 /* Specify predefined symbols in preprocessor.  */
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dgnu_linux -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-Dunix -D__gnu_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 89b661bb25eadc92abffbb571f903bca6852a7f8..fd4d7a0ccd3ce20b4feb1836fd1d30e2b553cf03 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 -Dgnu_linux -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem=posix"
 
 #undef CPP_SPEC
 #ifdef USE_GNULIBC_1
index 82ff36ac91c6c65a54a793bdac7608ff74510f83..7d5ae8d75396b8be38248bb279117335d8dcb721 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 -Dgnu_linux -Dlinux -Asystem(posix)"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__gnu_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 7f2671ac644baea0dc168fa363c7f08063793edb..30918529caf19a07b23804fd86d082ff5c8e785e 100644 (file)
@@ -11,7 +11,7 @@
 
 /* ??? Maybe this should be in sysv4.h?  */
 #define CPP_PREDEFINES "\
-  -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG -Dgnu_linux \
+  -D__gnu_linux__ -D__linux -D__linux__ -D_LONGLONG \
   -Dlinux -Dunix -Asystem=linux"
 
 /* Need to override linux.h STARTFILE_SPEC, since it has crtbeginT.o in.  */
index 7b9293ae9e746653435d51ba919822ccde64e205..08e2ef574a32e5a0644b15be2e2e4a002c9278fa 100644 (file)
@@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA.  */
 #define ASM_COMMENT_START "|"
 
 #define CPP_PREDEFINES \
-  "-Dunix -Dmc68000 -Dmc68020 -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
+  "-Dunix -Dmc68000 -Dmc68020 -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
 
 #undef CPP_SPEC
 #if TARGET_DEFAULT & MASK_68881
index e5208e604f7656aa9cb90ef860a7bd48056522dd..af7b9285c2c1d17a7483ce1a8eaddfcbc8bec329 100644 (file)
@@ -113,7 +113,7 @@ Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE_SIZE BITS_PER_WORD
 
 #define CPP_PREDEFINES \
-  "-D__ELF__ -Dunix -Dmc68000 -Dmc68020 -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
+  "-D__ELF__ -Dunix -Dmc68000 -Dmc68020 -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=m68k -Amachine=m68k"
 
 #undef CPP_SPEC
 #ifdef USE_GNULIBC_1
index 738e1f644db8481802fde196723237ae7abe4a3d..f1ff69e05046be2652c6ba1831ea7ecc8134af2b 100644 (file)
@@ -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 -Dgnu_linux -Dlinux -Asystem=posix -Acpu=mips \
+-DR3000 -D_R3000 -D__gnu_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 -Dgnu_linux -Dlinux -Asystem=posix -Acpu=mips \
+-DR3000 -D_R3000 -D__gnu_linux__ -Dlinux -Asystem=posix -Acpu=mips \
 -Amachine=mips -D__ELF__ -D__PIC__ -D__pic__"
 #endif
 
index ffae14dfc75aecc0e9d18eaf575a2f0de8283f21..30d3d7cff9a8581a5a1957d81d611cee2cad01a4 100644 (file)
@@ -58,7 +58,7 @@ Boston, MA 02111-1307, USA.  */
     } while (0)
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__hppa__ -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix -Acpu=hppa -Amachine=hppa -Amachine=bigendian"
 
 #undef LIB_SPEC
 #define LIB_SPEC \
index 1404a55be73a3f34342344fd5a40e9356feea815..a073c7a97ce4e6572e2150d317c4447ffe5b99ee 100644 (file)
@@ -26,7 +26,7 @@ Boston, MA 02111-1307, USA.  */
 #undef STARTFILE_SPEC
 #undef ENDFILE_SPEC
 
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__pj__ -Dgnu_linux -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__pj__ -D__gnu_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 6b97d7777d97da65dc743221a2562c9cc1e19bde..95c7e8b9adee9768cd93e1b666d53a37f7428860 100644 (file)
@@ -1256,7 +1256,7 @@ do {                                              \
   %{rdynamic:-export-dynamic} \
   %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
 
-#define CPP_OS_GNU_SPEC "-D__unix__ -Dgnu_hurd -D__GNU__       \
+#define CPP_OS_GNU_SPEC "-D__unix__ -D__gnu_hurd__ -D__GNU__   \
 %{!undef:                                                      \
   %{!ansi: -Dunix -D__unix}}                                   \
 -Asystem=gnu -Asystem=unix -Asystem=posix %{pthread:-D_REENTRANT}"
index 365971485e5f616ec1f407cf2badb7437c5f3b5e..a0336bfecd8596d71d93047577f82d7da415641b 100644 (file)
@@ -54,7 +54,7 @@ Boston, MA 02111-1307, USA.  */
 #define NO_BUILTIN_PTRDIFF_TYPE
 
 #define CPP_PREDEFINES \
-  "-Dunix -Asystem(unix) -Dgnu_linux -Dlinux -Asystem(linux) -D__ELF__ \
+  "-Dunix -Asystem(unix) -D__gnu_linux__ -Dlinux -Asystem(linux) -D__ELF__ \
    -Acpu(s390) -Amachine(s390) -D__s390__"
 
 #define CPP_ARCH31_SPEC \
index a6f94b61f597429c555397236b46eb0598ced2ed..999c6843579bc16409c2ad7c4431e93eabe4d9e3 100644 (file)
@@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA.  */
 
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sh__ -Dgnu_linux -Dlinux -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sh__ -D__gnu_linux__ -Dlinux -Asystem=posix"
 
 #undef SUBTARGET_ASM_ENDIAN_SPEC
 #define SUBTARGET_ASM_ENDIAN_SPEC "%{!mb:-little}"
index b5930d9ae3c213f1f39b75e69ade009b3a2463a2..41d38773ecf9bf4bf56be451daec2b0b01451550 100644 (file)
@@ -60,7 +60,7 @@ Boston, MA 02111-1307, USA.  */
 #define WCHAR_TYPE_SIZE 32
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dunix -Dsparc -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix"
+#define CPP_PREDEFINES "-Dunix -Dsparc -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix"
 
 #undef CPP_SUBTARGET_SPEC
 #define CPP_SUBTARGET_SPEC \
index 119fe345e0f44bba908d6b34f80a4efe35fd83d2..69b7618fe595a14cefac2b8aa499290f429837ba 100644 (file)
@@ -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__ -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D__sparc__ -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix"
 
 #undef CPP_SUBTARGET_SPEC
 #ifdef USE_GNULIBC_1
index 13bd25cc348cc944979a65ce07593df54bebd24e..796bc2c812d3b311d9d52800114e85803d957a4d 100644 (file)
@@ -169,7 +169,7 @@ ENDFILE_SPEC_COMMON
 #endif
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__ELF__ -Dunix -D_LONGLONG -D__sparc__ -Dgnu_linux -Dlinux -Asystem=unix -Asystem=posix"
+#define CPP_PREDEFINES "-D__ELF__ -Dunix -D_LONGLONG -D__sparc__ -D__gnu_linux__ -Dlinux -Asystem=unix -Asystem=posix"
 
 #undef CPP_SUBTARGET_SPEC
 #define CPP_SUBTARGET_SPEC "\
index afe35ddca6b2a6fadf49b2262eb891180538d4c3..9f63b7034499c092d5ff36032a76ad484684782c 100644 (file)
@@ -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 -Dgnu_linux -Dlinux -Asystem=posix"
+  -Dunix -D__gnu_linux__ -Dlinux -Asystem=posix"
 
 #undef LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX     "."