diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-03-03 11:32:32 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-03-03 11:32:32 +0000 |
commit | c691145a655ed6fe191c2f7ce3220f19e46d2c3f (patch) | |
tree | 13a0b2cea1a5401bbb4f81dfe7b01474a61b9a00 /gcc/cpplex.c | |
parent | 4073aad5b5460710695ff3d15315e16c6549311e (diff) | |
download | gcc-c691145a655ed6fe191c2f7ce3220f19e46d2c3f.zip gcc-c691145a655ed6fe191c2f7ce3220f19e46d2c3f.tar.gz gcc-c691145a655ed6fe191c2f7ce3220f19e46d2c3f.tar.bz2 |
cpp.texi: Update.
* cpp.texi: Update.
* cppexp.c (parse_number): Update.
* cpplex.c (parse_string): Pedwarn if multiline string does not
result from a system header's macro.
* cpplib.h (sys_objmacro_p): Rename sys_macro_p.
* cppmacro.c (sys_objmacro_p): Rename sys_macro_p. Return true
for function-like macros too.
* c-lex.c (parse_number): Update.
From-SVN: r40211
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 8 |
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'; |