[Bug target/61977] powerpc preprocessor breaks on lines that end with "vector"

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 31 17:51:00 GMT 2015


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.



More information about the Gcc-bugs mailing list