diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-03-04 00:11:40 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-03-04 00:11:40 +0000 |
commit | 49634cde481046798cf98c775317df99a5cade05 (patch) | |
tree | 53e7a3d6280ee35d570b4808e60371a4e9184a83 /gcc | |
parent | dd8411811438d608ab8a13834abc4b62bb59442f (diff) | |
download | gcc-49634cde481046798cf98c775317df99a5cade05.zip gcc-49634cde481046798cf98c775317df99a5cade05.tar.gz gcc-49634cde481046798cf98c775317df99a5cade05.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cppinit.c | 4 | ||||
-rw-r--r-- | gcc/cpplib.h | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 88d54ea..68b870c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/cppinit.c b/gcc/cppinit.c index b869c54..cbd4ce9 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -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; diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 5a69064..85d0744 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -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 { |