cpplib: Multi-line string warning tweak

Neil Booth neil@daikokuya.demon.co.uk
Sat Mar 3 03:47:00 GMT 2001


I'd not got the warning quite right for multi-line strings.

This fixes it; it will go in mainline and branch.

Neil.

	* cpplex.c (parse_string): Unconditionally pedwarn.

Index: cpplex.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cpplex.c,v
retrieving revision 1.131
diff -u -p -r1.131 cpplex.c
--- cpplex.c	2001/03/03 11:32:31	1.131
+++ cpplex.c	2001/03/03 11:38:43
@@ -686,8 +686,7 @@ parse_string (pfile, token, terminator)
 	      break;
 	    }
 
-	  if (! cpp_sys_macro_p (pfile))
-	    cpp_pedwarn (pfile, "multi-line string constants are deprecated");
+	  cpp_pedwarn (pfile, "multi-line string literals are deprecated");
 	  if (pfile->mlstring_pos.line == 0)
 	    pfile->mlstring_pos = pfile->lexer_pos;
 	      



More information about the Gcc-patches mailing list