From c673abe4578346cd680a1b1890ef63d81091af0a Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Wed, 6 Dec 2000 21:12:59 +0100 Subject: [PATCH] cpplex.c (skip_escaped_newlines): Don't warn for spaces between backslash and newline, when inside a comment. * cpplex.c (skip_escaped_newlines): Don't warn for spaces between backslash and newline, when inside a comment. From-SVN: r38072 --- gcc/ChangeLog | 5 +++++ gcc/cpplex.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae3456796f6..ccd750adcba 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 f6818300f3d..17a89b9b67c 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");