Commit 6f3a2e23 by Kai Tietz Committed by Kai Tietz

re PR preprocessor/37215 (ICE on 'gcc -E -dM -fpreprocessed - < /dev/null')

        PR preprocessor/37215
        * c-ppoutput.c (preprocess_file): Check for nonempty buffer.

From-SVN: r189016
parent 4b3650e3
2012-06-27 Kai Tietz <ktietz@redhat.com>
PR preprocessor/37215
* c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
* c-common.h (c_common_print_pch_checksum): Remove.
......
......@@ -86,7 +86,7 @@ preprocess_file (cpp_reader *pfile)
{
/* A successful cpp_read_main_file guarantees that we can call
cpp_scan_nooutput or cpp_get_token next. */
if (flag_no_output)
if (flag_no_output && pfile->buffer)
{
/* Scan -included buffers, then the main file. */
while (pfile->buffer->prev)
......
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