diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-13 01:00:01 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-13 01:00:01 +0000 |
commit | 72b04ca42cc8cde82b0106d3c15f9024a7706923 (patch) | |
tree | 954953c60f9ccf103dbd07196bae6f6aedd8d36c /gcc/cppinit.c | |
parent | 215d428dec85a4c0a5639140a540505c8262796a (diff) | |
download | ppe42-gcc-72b04ca42cc8cde82b0106d3c15f9024a7706923.tar.gz ppe42-gcc-72b04ca42cc8cde82b0106d3c15f9024a7706923.zip |
* cppinit.c (cpp_handle_option): help_only is now part of the
cpp_options structure.
* cpplib.c (cpp_errors, cpp_get_options, cpp_get_callbacks,
cpp_set_callbacks): New functions.
* cpplib.h (cpp_callbacks): Break out as a named structure.
(cpp_options): Move help_only here from cpp_reader.
(CPP_FATAL_ERRORS): Update to use cpp_errors.
(cpp_errors, cpp_get_options, cpp_get_callbacks,
cpp_set_callbacks): New prototypes.
* cppmain.c (main): Update for help_only.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38971 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 50896b88809..c3347c94d71 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -1290,18 +1290,18 @@ cpp_handle_option (pfile, argc, argv) case OPT_h: case OPT__help: print_help (); - pfile->help_only = 1; + CPP_OPTION (pfile, help_only) = 1; break; case OPT_target__help: /* Print if any target specific options. cpplib has none, but make sure help_only gets set. */ - pfile->help_only = 1; + CPP_OPTION (pfile, help_only) = 1; break; /* --version inhibits compilation, -version doesn't. -v means verbose and -version. Historical reasons, don't ask. */ case OPT__version: - pfile->help_only = 1; + CPP_OPTION (pfile, help_only) = 1; goto version; case OPT_v: CPP_OPTION (pfile, verbose) = 1; |