Skip to content
Snippets Groups Projects
Commit 5f38bf14 authored by Joseph Myers's avatar Joseph Myers
Browse files

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.
parent 5f895f22
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment