diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cpplex.c | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46b849d..313038a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-05-16 Nathan Sidwell <nathan@codesourcery.com> + + * cpplex.c (_cpp_lex_token, '/' case): Comments can't appear + after stage3. + 2001-05-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> * README.ALTOS: Remove obsolete file. diff --git a/gcc/cpplex.c b/gcc/cpplex.c index f25913f..a63b24f 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)) |