aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmain.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-13 01:00:01 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-13 01:00:01 +0000
commit7e96d768fe4e8fa821372cc7c7cd707efb917a3b (patch)
tree954953c60f9ccf103dbd07196bae6f6aedd8d36c /gcc/cppmain.c
parent23de1fbfd0e36837e18117cb79a5f336a375eb40 (diff)
downloadgcc-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/cppmain.c')
-rw-r--r--gcc/cppmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c
index dbb86ea..9ef01f5 100644
--- a/gcc/cppmain.c
+++ b/gcc/cppmain.c
@@ -87,7 +87,7 @@ main (argc, argv)
line, it will have set pfile->help_only to indicate this. Exit
successfully. [The library does not exit itself, because
e.g. cc1 needs to print its own --help message at this point.] */
- if (pfile->help_only)
+ if (CPP_OPTION (pfile, help_only))
return (SUCCESS_EXIT_CODE);
/* Open the output now. We must do so even if no_output is on,