diff options
author | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-27 14:03:08 +0000 |
---|---|---|
committer | ktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-06-27 14:03:08 +0000 |
commit | 3d9c25ecc960f76828b5a9cd8a7da93f9474f2ad (patch) | |
tree | f84c5eb5f7c6730e19450216db7706ba71e73eff /gcc/c-family/c-ppoutput.c | |
parent | 9136feff6d5f6eeae8722abf162ff4ba6ca55551 (diff) | |
download | gcc-3d9c25ecc960f76828b5a9cd8a7da93f9474f2ad.tar.gz |
PR preprocessor/37215
* c-ppoutput.c (preprocess_file): Check for nonempty buffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189016 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-family/c-ppoutput.c')
-rw-r--r-- | gcc/c-family/c-ppoutput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-family/c-ppoutput.c b/gcc/c-family/c-ppoutput.c index df46ce4c1f5..862d15d5885 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) |