* cpplex.c (_cpp_lex_token, '/' case): Comments can't appear
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 May 2001 09:38:47 +0000 (09:38 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 May 2001 09:38:47 +0000 (09:38 +0000)
after stage3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42144 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cpplex.c

index 46b849d..313038a 100644 (file)
@@ -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.
index f25913f..a63b24f 100644 (file)
@@ -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))