diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-01-13 01:00:01 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-13 01:00:01 +0000 |
commit | 7e96d768fe4e8fa821372cc7c7cd707efb917a3b (patch) | |
tree | 954953c60f9ccf103dbd07196bae6f6aedd8d36c /gcc/cppinit.c | |
parent | 23de1fbfd0e36837e18117cb79a5f336a375eb40 (diff) | |
download | gcc-7e96d768fe4e8fa821372cc7c7cd707efb917a3b.zip gcc-7e96d768fe4e8fa821372cc7c7cd707efb917a3b.tar.gz gcc-7e96d768fe4e8fa821372cc7c7cd707efb917a3b.tar.bz2 |
cppinit.c (cpp_handle_option): help_only is now part of the cpp_options structure.
* 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.
From-SVN: r38971
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 50896b8..c3347c9 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; |