cpplex.c (_cpp_lex_token, '/' case): Comments can't appear after stage3.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 16 May 2001 09:38:47 +0000 (09:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 16 May 2001 09:38:47 +0000 (09:38 +0000)
* cpplex.c (_cpp_lex_token, '/' case): Comments can't appear
after stage3.

From-SVN: r42144

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))