From: Nathan Sidwell Date: Wed, 16 May 2001 09:38:47 +0000 (+0000) Subject: cpplex.c (_cpp_lex_token, '/' case): Comments can't appear after stage3. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e61fc951a52634dc106f21e55742f5214d726677;p=gcc.git cpplex.c (_cpp_lex_token, '/' case): Comments can't appear after stage3. * cpplex.c (_cpp_lex_token, '/' case): Comments can't appear after stage3. From-SVN: r42144 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46b849da7d4..313038aebb8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-05-16 Nathan Sidwell + + * cpplex.c (_cpp_lex_token, '/' case): Comments can't appear + after stage3. + 2001-05-16 Gerald Pfeifer * README.ALTOS: Remove obsolete file. diff --git a/gcc/cpplex.c b/gcc/cpplex.c index f25913f2098..a63b24f63d4 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1010,7 +1010,9 @@ _cpp_lex_token (pfile, result) ACCEPT_CHAR (CPP_DIV_EQ); if (c != '/' && c != '*') break; - + if (buffer->from_stage3) + break; + if (c == '*') { if (skip_block_comment (pfile))