diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2001-05-16 09:38:47 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2001-05-16 09:38:47 +0000 |
commit | e61fc951a52634dc106f21e55742f5214d726677 (patch) | |
tree | 6302c78824df476ea57a2d3a6ff72ccdcb08ce0f | |
parent | cc469ee98e2f333a76532552fa96ec845a17a03a (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cpplex.c | 4 |
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)) |