From e61fc951a52634dc106f21e55742f5214d726677 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 16 May 2001 09:38:47 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cpplex.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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))