mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-13 06:06:48 +08:00
cpplex.c (lex_line): Drop the EOF token for unknown directives in assembler.
* cpplex.c (lex_line): Drop the EOF token for unknown directives in assembler. From-SVN: r36545
This commit is contained in:
parent
c2f099e7fa
commit
7eea5554ce
@ -1,3 +1,8 @@
|
||||
Tue 19-Sep-2000 22:38:57 BST Neil Booth <NeilB@earthling.net>
|
||||
|
||||
* cpplex.c (lex_line): Drop the EOF token for unknown
|
||||
directives in assembler.
|
||||
|
||||
2000-09-19 David Edelsohn <edelsohn@gnu.org>
|
||||
|
||||
* configure.in: Allow enable_threads_flag value of "aix". Define
|
||||
|
10
gcc/cpplex.c
10
gcc/cpplex.c
@ -1669,11 +1669,6 @@ lex_line (pfile, list)
|
||||
first->flags |= BOL;
|
||||
pfile->first_directive_token = first;
|
||||
|
||||
/* Drop the EOF unless really at EOF or in a directive. */
|
||||
if (!(cur_token == first || pfile->state.in_directive
|
||||
|| !pfile->done_initializing))
|
||||
list->tokens_used--;
|
||||
|
||||
/* Don't complain about the null directive, nor directives in
|
||||
assembly source: we don't know where the comments are, and # may
|
||||
introduce assembler pseudo-ops. Don't complain about invalid
|
||||
@ -1697,6 +1692,11 @@ lex_line (pfile, list)
|
||||
goto retry;
|
||||
}
|
||||
|
||||
/* Drop the EOF unless really at EOF or in a directive. */
|
||||
if (cur_token != first && !KNOWN_DIRECTIVE (list)
|
||||
&& pfile->done_initializing)
|
||||
list->tokens_used--;
|
||||
|
||||
pfile->state.in_lex_line = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user