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 46b849da7d43980bb145516c6b712a1a9326a2f9..313038aebb8e8a2be9105cb37fa85272599b3605 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 f25913f20981828ba93a8e93c4c0e3588dc9a5c6..a63b24f63d45666efc19cd7c16287c6e4adf6151 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))