libcpp/ChangeLog 2019-09-19 Lewis Hyatt <lhyatt@gmail.com> PR c/67224 * charset.c (_cpp_valid_utf8): New function to help lex UTF-8 tokens. * internal.h (_cpp_valid_utf8): Declare. * lex.c (forms_identifier_p): Use it to recognize UTF-8 identifiers. (_cpp_lex_direct): Handle UTF-8 in identifiers and CPP_OTHER tokens. Do all work in "default" case to avoid slowing down typical code paths. Also handle $ and UCN in the default case for consistency. gcc/Changelog 2019-09-19 Lewis Hyatt <lhyatt@gmail.com> PR c/67224 * doc/cpp.texi: Document support for extended characters in identifiers. * doc/cppopts.texi: Likewise. gcc/testsuite/ChangeLog 2019-09-19 Lewis Hyatt <lhyatt@gmail.com> PR c/67224 * c-c++-common/cpp/ucnid-2011-1-utf8.c: New test. * g++.dg/cpp/ucnid-1-utf8.C: New test. * g++.dg/cpp/ucnid-2-utf8.C: New test. * g++.dg/cpp/ucnid-3-utf8.C: New test. * g++.dg/cpp/ucnid-4-utf8.C: New test. * g++.dg/other/ucnid-1-utf8.C: New test. * gcc.dg/cpp/ucnid-1-utf8.c: New test. * gcc.dg/cpp/ucnid-10-utf8.c: New test. * gcc.dg/cpp/ucnid-11-utf8.c: New test. * gcc.dg/cpp/ucnid-12-utf8.c: New test. * gcc.dg/cpp/ucnid-13-utf8.c: New test. * gcc.dg/cpp/ucnid-14-utf8.c: New test. * gcc.dg/cpp/ucnid-15-utf8.c: New test. * gcc.dg/cpp/ucnid-2-utf8.c: New test. * gcc.dg/cpp/ucnid-3-utf8.c: New test. * gcc.dg/cpp/ucnid-4-utf8.c: New test. * gcc.dg/cpp/ucnid-6-utf8.c: New test. * gcc.dg/cpp/ucnid-7-utf8.c: New test. * gcc.dg/cpp/ucnid-9-utf8.c: New test. * gcc.dg/ucnid-1-utf8.c: New test. * gcc.dg/ucnid-10-utf8.c: New test. * gcc.dg/ucnid-11-utf8.c: New test. * gcc.dg/ucnid-12-utf8.c: New test. * gcc.dg/ucnid-13-utf8.c: New test. * gcc.dg/ucnid-14-utf8.c: New test. * gcc.dg/ucnid-15-utf8.c: New test. * gcc.dg/ucnid-16-utf8.c: New test. * gcc.dg/ucnid-2-utf8.c: New test. * gcc.dg/ucnid-3-utf8.c: New test. * gcc.dg/ucnid-4-utf8.c: New test. * gcc.dg/ucnid-5-utf8.c: New test. * gcc.dg/ucnid-6-utf8.c: New test. * gcc.dg/ucnid-7-utf8.c: New test. * gcc.dg/ucnid-8-utf8.c: New test. * gcc.dg/ucnid-9-utf8.c: New test. From-SVN: r275979
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| diagnostic-pragma-1.c | Loading commit data... | |
| diagnostic-pragma-2.c | Loading commit data... | |
| ffile-prefix-map.c | Loading commit data... | |
| fmacro-prefix-map.c | Loading commit data... | |
| fmax-include-depth-1a.h | Loading commit data... | |
| fmax-include-depth-1b.h | Loading commit data... | |
| fmax-include-depth.c | Loading commit data... | |
| line-1.c | Loading commit data... | |
| macro-arg-count-1.c | Loading commit data... | |
| macro-arg-count-2.c | Loading commit data... | |
| normalize-3.c | Loading commit data... | |
| openacc-define-1.c | Loading commit data... | |
| openacc-define-2.c | Loading commit data... | |
| openacc-define-3.c | Loading commit data... | |
| openmp-define-1.c | Loading commit data... | |
| openmp-define-2.c | Loading commit data... | |
| openmp-define-3.c | Loading commit data... | |
| pr45457.c | Loading commit data... | |
| pr57580.c | Loading commit data... | |
| pr58844-1.c | Loading commit data... | |
| pr58844-2.c | Loading commit data... | |
| pr60400-1.h | Loading commit data... | |
| pr60400-2.h | Loading commit data... | |
| pr60400.c | Loading commit data... | |
| pr63831-1.c | Loading commit data... | |
| pr63831-2.c | Loading commit data... | |
| pr65238-1.c | Loading commit data... | |
| pr88974.c | Loading commit data... | |
| pr91639-one.h | Loading commit data... | |
| pr91639-two.h | Loading commit data... | |
| pr91639.c | Loading commit data... | |
| ucnid-2011-1-utf8.c | Loading commit data... | |
| ucnid-2011-1.c | Loading commit data... | |
| va-opt-2.c | Loading commit data... | |
| va-opt-3.c | Loading commit data... | |
| va-opt-error.c | Loading commit data... | |
| va-opt-pedantic.c | Loading commit data... | |
| va-opt.c | Loading commit data... | |
| warning-directive-1.c | Loading commit data... | |
| warning-directive-2.c | Loading commit data... | |
| warning-directive-3.c | Loading commit data... | |
| warning-directive-4.c | Loading commit data... | |
| warning-zero-in-literals-1.c | Loading commit data... | |
| warning-zero-location-2.c | Loading commit data... | |
| warning-zero-location.c | Loading commit data... |