r262832 - in /trunk: gcc/testsuite/ChangeLog gc...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Tue Jul 17 18:10:00 GMT 2018
Author: jakub
Date: Tue Jul 17 18:10:57 2018
New Revision: 262832
URL: https://gcc.gnu.org/viewcvs?rev=262832&root=gcc&view=rev
Log:
* 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.
Added:
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-8.c
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-4.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-c90.c
trunk/gcc/testsuite/gcc.dg/cpp/pr61854-c94.c
trunk/libcpp/ChangeLog
trunk/libcpp/lex.c
More information about the Gcc-cvs
mailing list