This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
dump SET_CPP_PEDANTIC
- To: gcc-patches at gcc dot gnu dot org
- Subject: dump SET_CPP_PEDANTIC
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Fri, 3 Mar 2000 16:11:08 -0800
- Cc: jason at cygnus dot com
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
{