summaryrefslogtreecommitdiff
path: root/gcc/cppfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r--gcc/cppfiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c
index 04f067da9d1..a4edd5da33b 100644
--- a/gcc/cppfiles.c
+++ b/gcc/cppfiles.c
@@ -615,7 +615,8 @@ stack_file (cpp_reader *pfile, _cpp_file *file, bool import)
/* Stack the buffer. */
buffer = cpp_push_buffer (pfile, file->buffer, file->st.st_size,
- CPP_OPTION (pfile, preprocessed), 0);
+ CPP_OPTION (pfile, preprocessed),
+ ! pfile->buffer);
buffer->file = file;
/* Initialize controlling macro state. */