aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index f396a9d..f4e8857 100644
--- a/gcc/cppmacro.c
+++ b/gcc/cppmacro.c
@@ -1138,6 +1138,10 @@ cpp_sys_macro_p (cpp_reader *pfile)
void
cpp_scan_nooutput (cpp_reader *pfile)
{
+ /* Request a CPP_EOF token at the end of this file, rather than
+ transparently continuing with the including file. */
+ pfile->buffer->return_at_eof = true;
+
if (CPP_OPTION (pfile, traditional))
while (_cpp_read_logical_line_trad (pfile))
;