aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r--gcc/cpplex.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c
index 1d98b05..c0b5e02 100644
--- a/gcc/cpplex.c
+++ b/gcc/cpplex.c
@@ -686,12 +686,10 @@ parse_string (pfile, token, terminator)
break;
}
+ if (! cpp_sys_macro_p (pfile))
+ cpp_pedwarn (pfile, "multi-line string constants are deprecated");
if (pfile->mlstring_pos.line == 0)
- {
- pfile->mlstring_pos = pfile->lexer_pos;
- if (CPP_PEDANTIC (pfile))
- cpp_pedwarn (pfile, "multi-line string constant");
- }
+ pfile->mlstring_pos = pfile->lexer_pos;
handle_newline (buffer, c); /* Stores to read_ahead. */
c = '\n';