diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae3456796f65..ccd750adcba8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-12-06 Sylvain Pion + + * cpplex.c (skip_escaped_newlines): Don't warn for spaces between + backslash and newline, when inside a comment. + 2000-12-06 Joseph S. Myers * invoke.texi: Use @table @samp instead of @itemize @minus for diff --git a/gcc/cpplex.c b/gcc/cpplex.c index f6818300f3dc..17a89b9b67ca 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -246,7 +246,7 @@ skip_escaped_newlines (buffer, next) break; } - if (space) + if (space && !buffer->pfile->state.lexing_comment) cpp_warning (buffer->pfile, "backslash and newline separated by space");