This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/61977] powerpc preprocessor breaks on lines that end with "vector"
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Mar 2015 17:29:14 +0000
- Subject: [Bug target/61977] powerpc preprocessor breaks on lines that end with "vector"
- Auto-submitted: auto-generated
- References: <bug-61977-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61977
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that cpp_peek_token, if it returns CPP_EOF, is fatal in the
preprocessing:
do
{
peektok = _cpp_lex_token (pfile);
if (peektok->type == CPP_EOF)
return peektok;
}
while (index--);
but the macro_to_expand stuff (for which cpp_peek_token has been written, BTW)
really assumes that it can non-destructively peek tokens when needed.