This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

STDC_0_IN_SYSTEM_HEADERS (was: CPP PATCH: T_VOID)


This makes the macro a boolean.  OK to commit?

Neil.

	* cppmacro.c (STDC_0_IN_SYSTEM_HEADERS): Define to 0 if
	undefined.  Remove #ifdef check.
	* config/i386/sol2.h, config/rs6000/sol2.h, config/sparc/sol2.h:
	Define STDC_0_IN_SYSTEM_HEADERS to 1.

Index: cppmacro.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cppmacro.c,v
retrieving revision 1.16
diff -u -p -r1.16 cppmacro.c
--- cppmacro.c	2000/10/30 22:29:00	1.16
+++ cppmacro.c	2000/10/31 19:08:51
@@ -29,6 +29,10 @@ Foundation, 59 Temple Place - Suite 330,
 #include "cpplib.h"
 #include "cpphash.h"
 
+#ifndef STDC_0_IN_SYSTEM_HEADERS
+#define STDC_0_IN_SYSTEM_HEADERS 0 /* Boolean macro.  */
+#endif
+
 struct cpp_macro
 {
   cpp_hashnode **params;	/* Parameters, if any.  */
@@ -189,11 +193,9 @@ builtin_macro (pfile, token)
       {
 	int stdc = 1;
 
-#ifdef STDC_0_IN_SYSTEM_HEADERS
-	if (CPP_IN_SYSTEM_HEADER (pfile)
+	if (STDC_0_IN_SYSTEM_HEADERS && CPP_IN_SYSTEM_HEADER (pfile)
 	    && pfile->spec_nodes.n__STRICT_ANSI__->type == NT_VOID)
 	  stdc = 0;
-#endif
 	make_number_token (pfile, token, stdc);
       }
       break;
Index: config/i386/sol2.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/sol2.h,v
retrieving revision 1.8
diff -u -p -r1.8 sol2.h
--- sol2.h	2000/09/25 13:03:19	1.8
+++ sol2.h	2000/10/31 19:08:54
@@ -127,7 +127,7 @@ Boston, MA 02111-1307, USA.  */
    || (CHAR) == 'h' \
    || (CHAR) == 'z')
 
-#define STDC_0_IN_SYSTEM_HEADERS
+#define STDC_0_IN_SYSTEM_HEADERS 1
 
 #undef LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX "."
Index: config/rs6000/sol2.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/rs6000/sol2.h,v
retrieving revision 1.7
diff -u -p -r1.7 sol2.h
--- sol2.h	2000/09/25 10:11:22	1.7
+++ sol2.h	2000/10/31 19:09:03
@@ -171,4 +171,4 @@ while (0)
 #undef	MULTILIB_DEFAULTS
 #define	MULTILIB_DEFAULTS { "mlittle", "mcall-solaris" }
 
-#define STDC_0_IN_SYSTEM_HEADERS
+#define STDC_0_IN_SYSTEM_HEADERS 1
Index: config/sparc/sol2.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/sparc/sol2.h,v
retrieving revision 1.22
diff -u -p -r1.22 sol2.h
--- sol2.h	2000/08/14 20:55:11	1.22
+++ sol2.h	2000/10/31 19:09:03
@@ -185,7 +185,7 @@ Boston, MA 02111-1307, USA.  */
 /* But indicate that it isn't supported by the hardware.  */
 #define WIDEST_HARDWARE_FP_SIZE 64
 
-#define STDC_0_IN_SYSTEM_HEADERS
+#define STDC_0_IN_SYSTEM_HEADERS 1
 
 #define MULDI3_LIBCALL "__mul64"
 #define DIVDI3_LIBCALL "__div64"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]