This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cpplib: Multi-line string warning tweak


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;
 	      


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]