charset.c (UCS_LIMIT): New macro.
* charset.c (UCS_LIMIT): New macro. (ucn_valid_in_identifier): Use it instead of a hardcoded constant. (_cpp_valid_ucn): Issue a pedantic warning for UCNs larger than UCS_LIMIT outside of identifiers in C and in C++2a or later. From-SVN: r276167
Showing
- gcc/testsuite/ChangeLog 8 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/cpp/ucn-1.C 2 additions, 0 deletionsgcc/testsuite/g++.dg/cpp/ucn-1.C
- gcc/testsuite/g++.dg/cpp2a/ucn1.C 7 additions, 0 deletionsgcc/testsuite/g++.dg/cpp2a/ucn1.C
- gcc/testsuite/gcc.dg/attr-alias-5.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/attr-alias-5.c
- gcc/testsuite/gcc.dg/cpp/ucs.c 4 additions, 2 deletionsgcc/testsuite/gcc.dg/cpp/ucs.c
- gcc/testsuite/gcc.dg/cpp/utf8-5byte-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/cpp/utf8-5byte-1.c
- libcpp/ChangeLog 7 additions, 0 deletionslibcpp/ChangeLog
- libcpp/charset.c 14 additions, 1 deletionlibcpp/charset.c
Loading
Please register or sign in to comment