* lex.c (_cpp_lex_direct): Use CPP_DL_NOTE instead of CPP_DL_PEDWARN,
commitd6148817539c67f49a91e1905a2381153d7cfb92
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 18:10:57 +0000 (17 18:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Jul 2018 18:10:57 +0000 (17 18:10 +0000)
treef900c8a020892d4af02d171ffe5ed7c3a00eb702
parent3436cb1b6ba4babb0b20129fbbcd0ad4ae770b0b
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@262832 138bc75d-0d04-0410-961f-82ee72b054a4
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