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]

dump SET_CPP_PEDANTIC


The convention is that cpp_handle_option modifies the options
structure directly.

zw


	* cppinit.c (cpp_handle_option): Set opts->pedantic directly.
	* cpplib.h: Delete SET_CPP_PEDANTIC.

===================================================================
Index: cppinit.c
--- cppinit.c	2000/03/03 17:09:46	1.47
+++ cppinit.c	2000/03/04 00:08:02
@@ -1196,10 +1196,10 @@ cpp_handle_option (pfile, argc, argv)
       
       case 'p':
 	if (!strcmp (argv[i], "-pedantic"))
-	  SET_CPP_PEDANTIC (pfile);
+	  opts->pedantic = 1;
 	else if (!strcmp (argv[i], "-pedantic-errors"))
 	  {
-	    SET_CPP_PEDANTIC (pfile);
+	    opts->pedantic = 1;
 	    opts->pedantic_errors = 1;
 	  }
 	break;
===================================================================
Index: cpplib.h
--- cpplib.h	2000/03/03 00:09:22	1.61
+++ cpplib.h	2000/03/04 00:08:02
@@ -514,8 +514,6 @@ struct cpp_options {
 #define CPP_PEDANTIC(PFILE) \
   (CPP_OPTIONS (PFILE)->pedantic && !CPP_BUFFER (pfile)->system_header_p)
 
-#define SET_CPP_PEDANTIC(PFILE) (CPP_OPTIONS (PFILE)->pedantic = 1)
-
 /* List of directories to look for include files in. */
 struct file_name_list
 {

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