aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-05-16 09:38:47 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-05-16 09:38:47 +0000
commite61fc951a52634dc106f21e55742f5214d726677 (patch)
tree6302c78824df476ea57a2d3a6ff72ccdcb08ce0f /gcc
parentcc469ee98e2f333a76532552fa96ec845a17a03a (diff)
downloadgcc-e61fc951a52634dc106f21e55742f5214d726677.zip
gcc-e61fc951a52634dc106f21e55742f5214d726677.tar.gz
gcc-e61fc951a52634dc106f21e55742f5214d726677.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cpplex.c4
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))