Patch to remove re-assert warnings on powerpc-*-linux-*

Daniel Jacobowitz drow@false.org
Fri Mar 26 21:26:00 GMT 1999


This patch removes "system(unix) re-asserted" type warnings from
powerpc-*-linux-*, which cpplib now produces and cause all the excess error
tests in testsuite to fail with --enable-c-cpplib.

The original place these were asserted was in rs6000/linux.h in
CPP_PREDEFINES.

I'm a little dubious about the %{!ansi: -Dunix -Dlinux} for the same reason;
CPP_PREDEFINES unconditionally defines those two symbols.  Should it not? 
Should the asserts be in the spec rather than the predefines?


Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|     CMU, CS class of 2002      |
|   Debian GNU/Linux Developer    __   Part-Time Systems Programmer  |
|         dan@debian.org         |  |        drow@cs.cmu.edu         |
\--------------------------------/  \--------------------------------/


Sat Mar 27 00:10:35 1999  Daniel Jacobowitz <dan@debian.org>

	* config/rs6000/sysv4.h (CPP_OS_LINUX_SPEC): Remove extra
	-Asystem(unix) and -Asystem(linux), along with useless
	redefinition.

Index: gcc/config/rs6000/sysv4.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/rs6000/sysv4.h,v
retrieving revision 1.17
diff -u -r1.17 sysv4.h
--- sysv4.h	1999/01/22 09:30:07	1.17
+++ sysv4.h	1999/03/27 05:00:54
@@ -1330,12 +1330,7 @@
 
 #ifndef CPP_OS_LINUX_SPEC
 #define CPP_OS_LINUX_SPEC "-D__unix__ -D__linux__ \
-%{!ansi: -Dunix -Dlinux } \
--Asystem(unix) -Asystem(linux)"
-#endif
-
-#ifndef CPP_OS_LINUX_SPEC
-#define CPP_OS_LINUX_SPEC ""
+%{!ansi: -Dunix -Dlinux }"
 #endif
 
 /* Solaris support.  */



More information about the Gcc-patches mailing list