diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/c-family/c-ppoutput.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 056f2ae..dbab100 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/gcc/c-family/c-ppoutput.c b/gcc/c-family/c-ppoutput.c index df46ce4..862d15d 100644 --- a/gcc/c-family/c-ppoutput.c +++ b/gcc/c-family/c-ppoutput.c @@ -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) |
