From f7070933b3feac1a4bb0eabb9361ac3e522c7730 Mon Sep 17 00:00:00 2001 From: neil Date: Tue, 4 Mar 2003 07:00:39 +0000 Subject: * Makefile.in: Update. * c-common.c (flag_no_line_commands, flag_no_output, flag_dump_macros, flag_dump_includes): New. * c-common.h (flag_no_line_commands, flag_no_output, flag_dump_macros, flag_dump_includes, preprocess_file): New. (init_c_lex): Update prototype. * c-lex.c (init_c_lex): Update prototype; move some code to c_common_init. * c-opts.c (preprocess_file): Subsume into c_common_init. (c_common_decode_option): Update flags. (c_common_init): Move code from preprocess_file and init_c_lex. (sanitize_cpp_opts): Update. * c-ppoutput.c: New, cppmain.c almost verbatim. * cpphash.h (struct printer): Remove. (struct cpp_reader): Remove print. * cpplib.h (dump_none, dump_only, dump_names, dump_definitions, cpp_preprocess_file): Remove. (struct cpp_options): Remove no_output, no_line_commands, dump_macros and dump_includes. * cppmain.c: Remove. * doc/passes.texi: Update. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63773 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cpplib.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'gcc/cpplib.h') diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 2ed5ed03d70..ebb27666070 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -206,15 +206,6 @@ struct cpp_token typedef unsigned CPPCHAR_SIGNED_T cppchar_t; typedef CPPCHAR_SIGNED_T cppchar_signed_t; -/* Values for opts.dump_macros. - dump_only means inhibit output of the preprocessed text - and instead output the definitions of all user-defined - macros in a form suitable for use as input to cpp. - dump_names means pass #define and the macro name through to output. - dump_definitions means pass the whole definition (plus #define) through -*/ -enum { dump_none = 0, dump_only, dump_names, dump_definitions }; - /* This structure is nested inside struct cpp_reader, and carries all the options visible to the command line. */ struct cpp_options @@ -306,17 +297,10 @@ struct cpp_options /* Nonzero means turn warnings into errors. */ unsigned char warnings_are_errors; - /* Nonzero causes output not to be done, but directives such as - #define that have side effects are still obeyed. */ - unsigned char no_output; - /* Nonzero means we should look for header.gcc files that remap file names. */ unsigned char remap; - /* Nonzero means don't output line number information. */ - unsigned char no_line_commands; - /* Zero means dollar signs are punctuation. */ unsigned char dollars_in_ident; @@ -339,12 +323,6 @@ struct cpp_options bother trying to do macro expansion and whatnot. */ unsigned char preprocessed; - /* Nonzero means dump macros in some fashion - see above. */ - unsigned char dump_macros; - - /* Nonzero means pass #include lines through to the output. */ - unsigned char dump_includes; - /* Print column number in error messages. */ unsigned char show_column; @@ -753,9 +731,6 @@ extern void cpp_prepare_state PARAMS ((cpp_reader *, extern int cpp_read_state PARAMS ((cpp_reader *, const char *, FILE *, struct save_macro_data *)); -/* In cppmain.c */ -extern void cpp_preprocess_file PARAMS ((cpp_reader *, const char *, FILE *)); - #ifdef __cplusplus } #endif -- cgit v1.2.3