-
- Downloads
preprocessor: Disable trigraphs for C2x
ISO C2x removes trigraphs, so disable them accordingly for -std=c2x (they can still be enabled using -trigraphs). Bootstrapped with no regressions for x86_64-pc-linux-gnu. libcpp/ * init.cc (lang_defaults): Disable trigraphs for C2x. gcc/testsuite/ * gcc.dg/cpp/c11-trigraphs-1.c, gcc.dg/cpp/c2x-trigraphs-1.c, gcc.dg/cpp/c2x-trigraphs-2.c: New tests.
Showing
- gcc/testsuite/gcc.dg/cpp/c11-trigraphs-1.c 5 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/c11-trigraphs-1.c
- gcc/testsuite/gcc.dg/cpp/c2x-trigraphs-1.c 10 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/c2x-trigraphs-1.c
- gcc/testsuite/gcc.dg/cpp/c2x-trigraphs-2.c 5 additions, 0 deletionsgcc/testsuite/gcc.dg/cpp/c2x-trigraphs-2.c
- libcpp/init.cc 1 addition, 1 deletionlibcpp/init.cc
Loading
Please register or sign in to comment