cppinit.c (cpp_handle_option): Set opts->pedantic directly.
authorZack Weinberg <zack@wolery.cumb.org>
Sat, 4 Mar 2000 00:11:40 +0000 (00:11 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Sat, 4 Mar 2000 00:11:40 +0000 (00:11 +0000)
* cppinit.c (cpp_handle_option): Set opts->pedantic directly.
* cpplib.h: Delete SET_CPP_PEDANTIC.

From-SVN: r32318

gcc/ChangeLog
gcc/cppinit.c
gcc/cpplib.h

index 88d54ea87d359ff4b7c581ba8ec4ad73471de438..68b870c42b06c0deef51d7159e2954a2f2065dd7 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-03  Zack Weinberg  <zack@wolery.cumb.org>
+
+       * cppinit.c (cpp_handle_option): Set opts->pedantic directly.
+       * cpplib.h: Delete SET_CPP_PEDANTIC.
+
 Fri Mar  3 14:56:12 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
index b869c54ffe50e661c739d1ace65417d411ef0c2c..cbd4ce9db87fb2458f623ed6a53953beeb076250 100644 (file)
@@ -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 5a69064324bc8aa7ceb003863c4aaa92dc1fbe38..85d07442b8cafabff07cdb72e29c079c41567837 100644 (file)
@@ -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
 {