diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-30 18:15:13 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-30 18:15:13 +0000 |
commit | 448e28777ac33b750245196dc94ff8832d2d8023 (patch) | |
tree | b2cba3207f5b9a1ff7b4789dccdf4b0727a0d40c /gcc/toplev.c | |
parent | fc51ca3b0a90f92662c19e8d4d908f8bc6106006 (diff) | |
download | gcc-448e28777ac33b750245196dc94ff8832d2d8023.tar.gz |
* toplev.c (documented_lang_options): Recognize -include,
-imacros, -iwithprefix, -iwithprefixbefore.
* cpplib.c (cpp_start_read): Process -imacros and -include
switches at the same time and in command-line order, after
initializing the dependency-output code. Emit properly nested
#line directives for them. Emit a #line for the main file
before processing these switches, and don't do it again
afterward.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22689 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index e575bb443ed..6ca6b93d1c1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1047,16 +1047,20 @@ documented_lang_options[] = { "-I", "" }, { "-U", "" }, { "-idirafter", "" }, + { "-imacros", "" }, + { "-include", "" }, { "-iprefix", "" }, { "-isystem", "" }, + { "-iwithprefix", "" }, + { "-iwithprefixbefore", "" }, { "-lang-c", "" }, { "-lang-c89", "" }, { "-lang-c++", "" }, + { "-remap", "" }, { "-nostdinc", "" }, { "-nostdinc++", "" }, { "-trigraphs", "" }, { "-undef", "" }, - { "-remap", "" }, #define DEFINE_LANG_NAME(NAME) { NULL, NAME }, |