diff options
Diffstat (limited to 'gcc/f')
-rw-r--r-- | gcc/f/lex.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/f/lex.c b/gcc/f/lex.c index ea0ef05..d5aaa158 100644 --- a/gcc/f/lex.c +++ b/gcc/f/lex.c @@ -1412,6 +1412,12 @@ ffelex_hash_ (FILE *finput) input_filename = old_input_filename; error ("Use `#line ...' instead of `# ...' in first line"); } + if (c == '\n' || c == EOF) + { + if (token != NULL && !ffelex_kludge_flag_) + ffelex_token_kill (token); + return c; + } } else error ("invalid #-line"); |