]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
lex.c (_cpp_lex_direct): Use CPP_DL_NOTE instead of CPP_DL_PEDWARN...
authorJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Jul 2018 18:10:57 +0000 (20:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Jul 2018 18:10:57 +0000 (20:10 +0200)
commit0c86a39db2888ddd17b21d0822b0907e4661d8b6
treef900c8a020892d4af02d171ffe5ed7c3a00eb702
parent0ef03fe3d09f799b457eccf83247976e9a6da77d
lex.c (_cpp_lex_direct): Use CPP_DL_NOTE instead of CPP_DL_PEDWARN...

* lex.c (_cpp_lex_direct): Use CPP_DL_NOTE instead of CPP_DL_PEDWARN,
CPP_DL_WARNING or CPP_DL_ERROR for note that diagnostics for C++ style
comments is reported only once per file and guard those calls on the
preceding cpp_error returning true.

* gcc.dg/cpp/pr61854-c90.c (foo): Expect a note, rather than error.
* gcc.dg/cpp/pr61854-c94.c (foo): Likewise.
* gcc.dg/cpp/pr61854-4.c (foo): Likewise.
* gcc.dg/cpp/pr61854-8.c: New test.

From-SVN: r262832
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/pr61854-4.c
gcc/testsuite/gcc.dg/cpp/pr61854-8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/pr61854-c90.c
gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
libcpp/ChangeLog
libcpp/lex.c