diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-15 16:20:46 +0100 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-15 22:20:38 +0100 |
commit | fb26050409473f5be54465beca114b7e48de43aa (patch) | |
tree | 8ce13ac9d0c19ecee5e6e83c718b8d901b0da46d /gcc/c-family | |
parent | 0b3c2eed35d608d6541ecf004a9576b4eae0b4ef (diff) |
c++: Add -std=c++20.
It's probably past time for this, but definitely now that we're done with
the final committee meeting of C++20. This patch only adds the option and
adjusts the testsuite to recognize it; more extensive changes can wait for
the published standard.
gcc/ChangeLog
2020-02-15 Jason Merrill <jason@redhat.com>
* doc/invoke.texi (C Dialect Options): Add -std=c++20.
gcc/c-family/ChangeLog
2020-02-15 Jason Merrill <jason@redhat.com>
* c.opt: Add -std=c++20.
gcc/testsuite/ChangeLog
2020-02-15 Jason Merrill <jason@redhat.com>
* lib/target-supports.exp (check_effective_target_c++2a_only): Also
look for -std=*++20.
(check_effective_target_concepts): Use check_effective_target_c++2a.
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-family/c.opt | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index e4250724e84..bcab260859f 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2020-02-15 Jason Merrill <jason@redhat.com> + + * c.opt: Add -std=c++20. + 2020-02-14 Eric Botcazou <ebotcazou@adacore.com> * c-ada-spec.c: Include bitmap.h. diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 814ed17f7c4..b7e4fe146b2 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -2071,7 +2071,11 @@ Conform to the ISO 2017 C++ standard. std=c++2a C++ ObjC++ -Conform to the ISO 2020(?) C++ draft standard (experimental and incomplete support). +Conform to the ISO 2020 C++ draft standard (experimental and incomplete support). + +std=c++20 +C++ ObjC++ Alias(std=c++2a) +Conform to the ISO 2020 C++ draft standard (experimental and incomplete support). std=c11 C ObjC |