]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cpplex.c (skip_escaped_newlines): Don't warn for spaces between backslash and newline...
authorSylvain Pion <Sylvain.Pion@sophia.inria.fr>
Wed, 6 Dec 2000 20:12:59 +0000 (21:12 +0100)
committerNeil Booth <neil@gcc.gnu.org>
Wed, 6 Dec 2000 20:12:59 +0000 (20:12 +0000)
        * cpplex.c (skip_escaped_newlines): Don't warn for spaces between
        backslash and newline, when inside a comment.

From-SVN: r38072

gcc/ChangeLog
gcc/cpplex.c

index ae3456796f657fd9ce3bde55f44457187f2b013b..ccd750adcba8de6ff574d4cd0bb5721fae94c548 100644 (file)
@@ -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
index f6818300f3dc7c9642958acbcb6ee00b2c95b3de..17a89b9b67cab4db4b3f02fae4d1e9e7ff936b0c 100644 (file)
@@ -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");