Commit 49634cde by Zack Weinberg Committed by Zack Weinberg

cppinit.c (cpp_handle_option): Set opts->pedantic directly.

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

From-SVN: r32318
parent dd841181
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> 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 * expr.c (expand_expr, case COMPONENT_REF): Use bitfield case if
......
...@@ -1196,10 +1196,10 @@ cpp_handle_option (pfile, argc, argv) ...@@ -1196,10 +1196,10 @@ cpp_handle_option (pfile, argc, argv)
case 'p': case 'p':
if (!strcmp (argv[i], "-pedantic")) if (!strcmp (argv[i], "-pedantic"))
SET_CPP_PEDANTIC (pfile); opts->pedantic = 1;
else if (!strcmp (argv[i], "-pedantic-errors")) else if (!strcmp (argv[i], "-pedantic-errors"))
{ {
SET_CPP_PEDANTIC (pfile); opts->pedantic = 1;
opts->pedantic_errors = 1; opts->pedantic_errors = 1;
} }
break; break;
......
...@@ -514,8 +514,6 @@ struct cpp_options { ...@@ -514,8 +514,6 @@ struct cpp_options {
#define CPP_PEDANTIC(PFILE) \ #define CPP_PEDANTIC(PFILE) \
(CPP_OPTIONS (PFILE)->pedantic && !CPP_BUFFER (pfile)->system_header_p) (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. */ /* List of directories to look for include files in. */
struct file_name_list struct file_name_list
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment