Commit 6fdf191d by Jason Merrill Committed by Jason Merrill

* cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.

From-SVN: r32312
parent 3c18f2d1
......@@ -38,6 +38,7 @@ Fri Mar 3 07:38:34 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
(SET_CPP_PEDANTIC): New macro.
* cpplib.c (do_include): Don't bother checking system_header_p.
(do_warning, do_ident, do_assert, do_unassert): Likewise.
* cppinit.c (cpp_handle_option): Use SET_CPP_PEDANTIC.
* function.h (struct expr_status): Add x_arg_space_so_far.
(arg_space_so_far): New macro.
......
......@@ -1196,10 +1196,10 @@ cpp_handle_option (pfile, argc, argv)
case 'p':
if (!strcmp (argv[i], "-pedantic"))
CPP_PEDANTIC (pfile) = 1;
SET_CPP_PEDANTIC (pfile);
else if (!strcmp (argv[i], "-pedantic-errors"))
{
CPP_PEDANTIC (pfile) = 1;
SET_CPP_PEDANTIC (pfile);
opts->pedantic_errors = 1;
}
break;
......
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