Commit e6e8c772 by Neil Booth Committed by Neil Booth

cppmain.c (cpp_preprocess_file): Loop to pop any -included buffers.

	* cppmain.c (cpp_preprocess_file): Loop to pop any -included
	buffers.

From-SVN: r58933
parent ffdf5eae
2002-11-08 Neil Booth <neil@daikokuya.co.uk>
* cppmain.c (cpp_preprocess_file): Loop to pop any -included
buffers.
2002-11-08 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (two anonymous test insns): New.
......
......@@ -78,7 +78,12 @@ cpp_preprocess_file (pfile, in_fname, out_stream)
/* A successful cpp_read_main_file guarantees that we can call
cpp_scan_nooutput or cpp_get_token next. */
if (options->no_output)
cpp_scan_nooutput (pfile);
{
/* Scan -included buffers, then the main file. */
while (pfile->buffer->prev)
cpp_scan_nooutput (pfile);
cpp_scan_nooutput (pfile);
}
else if (options->traditional)
scan_translation_unit_trad (pfile);
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment