c++: Add -std=c++20.
authorJason Merrill <jason@redhat.com>
Sat, 15 Feb 2020 15:20:46 +0000 (16:20 +0100)
committerJason Merrill <jason@redhat.com>
Sat, 15 Feb 2020 21:20:38 +0000 (22:20 +0100)
commitfb26050409473f5be54465beca114b7e48de43aa
tree8ce13ac9d0c19ecee5e6e83c718b8d901b0da46d
parent0b3c2eed35d608d6541ecf004a9576b4eae0b4ef
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.
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp