* vxppc.h (CPP_SPEC): Fix support for vararg functions.
authorMike Stump <mrs@wrs.com>
Mon, 17 May 1999 00:30:56 +0000 (00:30 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 May 1999 00:30:56 +0000 (18:30 -0600)
From-SVN: r26957

gcc/ChangeLog
gcc/config/rs6000/vxppc.h

index 9dd84d77fa97da81e489344b5754d1fb21eb42d4..8fe370bc9540a23368e40153a1b8afa2b7f943f3 100644 (file)
@@ -1,3 +1,7 @@
+1999-05-17  Mike Stump  <mrs@wrs.com>
+
+       * rs6000/vxppc.h (CPP_SPEC): Fix support for vararg functions.
+
 Sat May 15 14:22:40 1999  Jeffrey A Law  (law@cygnus.com)
 
        * fixinc/hackshell.tpl: Fix mis-applied patch.
index 63466e3663087a47c92ef9995e3a41b29539b27c..37b92dc7591f4780a3f064665636f0b2fd9d7088 100644 (file)
@@ -28,21 +28,25 @@ Boston, MA 02111-1307, USA.  */
    There is probably other stuff missing.  */
 
 #undef CPP_SPEC
-#define CPP_SPEC "\
-%{posix: -D_POSIX_SOURCE} \
-%{mrelocatable*: -D_RELOCATABLE} \
-%{!mcpu*: \
-  %{mpowerpc*: -D_ARCH_PPC -DCPU=PPC603} \
-  %{!mno-powerpc: -D_ARCH_PPC -DCPU=PPC603}} \
-%{mcpu=powerpc: -D_ARCH_PPC -DCPU=PPC603} \
-%{mcpu=403: -D_ARCH_PPC -DCPU=PPC403} \
-%{mcpu=601: -D_ARCH_PPC -D_ARCH_PWR -DCPU=PPC601} \
-%{mcpu=603: -D_ARCH_PPC -DCPU=PPC603} \
-%{mcpu=604: -D_ARCH_PPC -DCPU=PPC604}"
+#define CPP_SPEC "%{posix: -D_POSIX_SOURCE} %(cpp_sysv) %(cpp_endian) %(cpp_cpu) \
+%{mads: %(cpp_os_ads) } \
+%{myellowknife: %(cpp_os_yellowknife) } \
+%{mmvme: %(cpp_os_mvme) } \
+%{msim: %(cpp_os_sim) } \
+%{mcall-linux: %(cpp_os_linux) } \
+%{mcall-solaris: %(cpp_os_solaris) } \
+%{!mads: %{!myellowknife: %{!mmvme: %{!msim: %{!mcall-linux: %{!mcall-solaris: %(cpp_os_default) }}}}}} \
+%{!DCPU=*: \
+  %{!mcpu*: -DCPU=PPC603} \
+  %{mcpu=powerpc: -DCPU=PPC603} \
+  %{mcpu=403: -DCPU=PPC403} \
+  %{mcpu=601: -DCPU=PPC601} \
+  %{mcpu=603: -DCPU=PPC603} \
+  %{mcpu=604: -DCPU=PPC604}}"
 
 #undef CPP_PREDEFINES
 #define CPP_PREDEFINES "\
--D__vxworks -D__vxworks__ -Asystem(vxworks) -Asystem(embedded) \
+-D__vxworks -Asystem(vxworks) -Asystem(embedded) \
 -Acpu(powerpc) -Amachine(powerpc)"
 
 /* VxWorks does all the library stuff itself.  */