Use macro CPP_PEDANTIC (PF) instead of directly using
it's definition: CPP_OPTION (PF, cpp_pedantic).

[libcpp]
* directives.c (_cpp_handle_directive): Use CPP_PEDANTIC macro.
* macro.c (parse_params): Likewise.

Bootstrapped on x86_64-unknown-linux-gnu.
OK for trunk ?

Thanks and Regards,
Prathamesh
Index: libcpp/directives.c
===================================================================
--- libcpp/directives.c	(revision 209778)
+++ libcpp/directives.c	(working copy)
@@ -403,7 +403,7 @@ _cpp_handle_directive (cpp_reader *pfile
 
   if (was_parsing_args)
     {
-      if (CPP_OPTION (pfile, cpp_pedantic))
+      if (CPP_PEDANTIC (pfile))
 	cpp_error (pfile, CPP_DL_PEDWARN,
 	     "embedding a directive within macro arguments is not portable");
       pfile->state.parsing_args = 0;
Index: libcpp/macro.c
===================================================================
--- libcpp/macro.c	(revision 209778)
+++ libcpp/macro.c	(working copy)
@@ -2794,13 +2794,13 @@ parse_params (cpp_reader *pfile, cpp_mac
 				   pfile->spec_nodes.n__VA_ARGS__);
 	      pfile->state.va_args_ok = 1;
 	      if (! CPP_OPTION (pfile, c99)
-		  && CPP_OPTION (pfile, cpp_pedantic)
+		  && CPP_PEDANTIC (pfile)
 		  && CPP_OPTION (pfile, warn_variadic_macros))
 		cpp_pedwarning
                   (pfile, CPP_W_VARIADIC_MACROS,
 		   "anonymous variadic macros were introduced in C99");
 	    }
-	  else if (CPP_OPTION (pfile, cpp_pedantic)
+	  else if (CPP_PEDANTIC (pfile)
 		   && CPP_OPTION (pfile, warn_variadic_macros))
 	    cpp_pedwarning (pfile, CPP_W_VARIADIC_MACROS,
 		            "ISO C does not permit named variadic macros");

Reply via email to