summaryrefslogtreecommitdiff
path: root/gcc/c-opts.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-05 21:09:04 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-05 21:09:04 +0000
commit5980b792186185e4d0fa815c632333e89eef568e (patch)
tree6f45ea10cc3b770af76f39b0e228d8dd47795cfb /gcc/c-opts.c
parent1f271085f5e23ba29a47e59f09a646f3e5978e4b (diff)
downloadgcc-5980b792186185e4d0fa815c632333e89eef568e.tar.gz
* c-opts.c (finish_options): Set include_cursor to disable premature
calls to push_command_line_include from cpp_scan_nooutput. Fixes bug reported by DJ Delorie. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73281 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r--gcc/c-opts.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c
index bbabe891b66..e6264ab5a0e 100644
--- a/gcc/c-opts.c
+++ b/gcc/c-opts.c
@@ -1440,7 +1440,11 @@ finish_options (const char *tif)
if (opt->code == OPT_imacros
&& cpp_push_include (parse_in, opt->arg))
- cpp_scan_nooutput (parse_in);
+ {
+ /* Disable push_command_line_include callback for now. */
+ include_cursor = deferred_count + 1;
+ cpp_scan_nooutput (parse_in);
+ }
}
}