aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Pion <Sylvain.Pion@sophia.inria.fr>2000-12-06 21:12:59 +0100
committerNeil Booth <neil@gcc.gnu.org>2000-12-06 20:12:59 +0000
commitc673abe4578346cd680a1b1890ef63d81091af0a (patch)
treeaed627d5c43799b62e5e01fa15bd53d3f7ab5c28
parent46142b263c1fe3bc13d9bf0d802ffcfe023285f8 (diff)
downloadgcc-c673abe4578346cd680a1b1890ef63d81091af0a.zip
gcc-c673abe4578346cd680a1b1890ef63d81091af0a.tar.gz
gcc-c673abe4578346cd680a1b1890ef63d81091af0a.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cpplex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ae34567..ccd750a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-06 Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
+
+ * cpplex.c (skip_escaped_newlines): Don't warn for spaces between
+ backslash and newline, when inside a comment.
+
2000-12-06 Joseph S. Myers <jsm28@cam.ac.uk>
* invoke.texi: Use @table @samp instead of @itemize @minus for
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index f681830..17a89b9 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");