re PR c/28768 (Preprocessor doesn't parse tokens correctly?)
libcpp: PR c/28768 PR preprocessor/14634 * lex.c (lex_string): Pedwarn for unterminated literals. libgomp: * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument to AC_DEFINE. * configure: Regenerate. gcc/testsuite: * gcc.dg/cpp/include2.c, gcc.dg/cpp/macspace1.c, gcc.dg/cpp/macspace2.c, gcc.dg/cpp/multiline.c, gcc.dg/cpp/trad/literals-2.c: Update expected diagnostics. From-SVN: r116915
This commit is contained in:
parent
48de786822
commit
c663e30103
11 changed files with 99 additions and 16 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
PR c/28768
|
||||
PR preprocessor/14634
|
||||
* lex.c (lex_string): Pedwarn for unterminated literals.
|
||||
|
||||
2006-09-08 Eric Christopher <echristo@apple.com>
|
||||
|
||||
* configure.ac: Add 64-bit HWI support for i?86-darwin.
|
||||
|
|
|
@ -646,6 +646,10 @@ lex_string (cpp_reader *pfile, cpp_token *token, const uchar *base)
|
|||
cpp_error (pfile, CPP_DL_WARNING,
|
||||
"null character(s) preserved in literal");
|
||||
|
||||
if (type == CPP_OTHER && CPP_OPTION (pfile, lang) != CLK_ASM)
|
||||
cpp_error (pfile, CPP_DL_PEDWARN, "missing terminating %c character",
|
||||
(int) terminator);
|
||||
|
||||
pfile->buffer->cur = cur;
|
||||
create_literal (pfile, token, base, cur - base, type);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue