diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-04 07:00:39 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-04 07:00:39 +0000 |
commit | f7070933b3feac1a4bb0eabb9361ac3e522c7730 (patch) | |
tree | 6d2189352e8a28a8545db3e74436f2c90de22536 /gcc/c-common.h | |
parent | 256f9b655aae2e1280a1e9eca87223e52d2d6260 (diff) | |
download | gcc-f7070933b3feac1a4bb0eabb9361ac3e522c7730.tar.gz |
* 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
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r-- | gcc/c-common.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h index 8164fa80942..fb0b6c7364d 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -370,6 +370,24 @@ extern int allow_pch; extern int flag_preprocess_only; +/* Nonzero means don't output line number information. */ + +extern char flag_no_line_commands; + +/* Nonzero causes -E output not to be done, but directives such as + #define that have side effects are still obeyed. */ + +extern char flag_no_output; + +/* Nonzero means dump macros in some fashion; contains the 'D', 'M' or + 'N' of the command line switch. */ + +extern char flag_dump_macros; + +/* Nonzero means pass #include lines through to the output. */ + +extern char flag_dump_includes; + /* The file name to which we should write a precompiled header, or NULL if no header will be written in this compile. */ @@ -1243,7 +1261,7 @@ extern int c_staticp PARAMS ((tree)); extern int c_common_unsafe_for_reeval PARAMS ((tree)); -extern const char *init_c_lex PARAMS ((const char *)); +extern void init_c_lex PARAMS ((void)); extern void cb_register_builtins PARAMS ((cpp_reader *)); @@ -1274,5 +1292,8 @@ extern void c_common_read_pch PARAMS ((cpp_reader *pfile, int fd, const char *orig)); extern void c_common_write_pch PARAMS ((void)); +extern void preprocess_file PARAMS ((cpp_reader *, + const char *, + FILE *)); #endif /* ! GCC_C_COMMON_H */ |