diff mbox series

c++: Add -std=gnu++20 option [PR93958]

Message ID 20200229200537.863798-1-polacek@redhat.com
State New
Headers show
Series c++: Add -std=gnu++20 option [PR93958] | expand

Commit Message

Marek Polacek Feb. 29, 2020, 8:05 p.m. UTC
One missing bit from r10-6656.  The docs and target-supports.exp
already handle -std=gnu++20.

Ok?

2020-02-29  Marek Polacek  <polacek@redhat.com>

	PR c++/93958 - add missing -std=gnu++20.
	* c.opt: Add -std=gnu++20.
---
 gcc/c-family/c.opt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


base-commit: 38b1722d5d44c52e06a8694b8fa36793735e27d1

Comments

Jason Merrill March 2, 2020, 4:54 p.m. UTC | #1
On 2/29/20 3:05 PM, Marek Polacek wrote:
> One missing bit from r10-6656.  The docs and target-supports.exp
> already handle -std=gnu++20.

OK.

> 
> 2020-02-29  Marek Polacek  <polacek@redhat.com>
> 
> 	PR c++/93958 - add missing -std=gnu++20.
> 	* c.opt: Add -std=gnu++20.
> ---
>   gcc/c-family/c.opt | 6 +++++-
>   1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
> index b7e4fe146b2..1cd585fa71d 100644
> --- a/gcc/c-family/c.opt
> +++ b/gcc/c-family/c.opt
> @@ -2149,7 +2149,11 @@ Conform to the ISO 2017 C++ standard with GNU extensions.
>   
>   std=gnu++2a
>   C++ ObjC++
> -Conform to the ISO 2020(?) C++ draft standard with GNU extensions (experimental and incomplete support).
> +Conform to the ISO 2020 C++ draft standard with GNU extensions (experimental and incomplete support).
> +
> +std=gnu++20
> +C++ ObjC++ Alias(std=gnu++2a)
> +Conform to the ISO 2020 C++ draft standard with GNU extensions (experimental and incomplete support).
>   
>   std=gnu11
>   C ObjC
> 
> base-commit: 38b1722d5d44c52e06a8694b8fa36793735e27d1
>
diff mbox series

Patch

diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt
index b7e4fe146b2..1cd585fa71d 100644
--- a/gcc/c-family/c.opt
+++ b/gcc/c-family/c.opt
@@ -2149,7 +2149,11 @@  Conform to the ISO 2017 C++ standard with GNU extensions.
 
 std=gnu++2a
 C++ ObjC++
-Conform to the ISO 2020(?) C++ draft standard with GNU extensions (experimental and incomplete support).
+Conform to the ISO 2020 C++ draft standard with GNU extensions (experimental and incomplete support).
+
+std=gnu++20
+C++ ObjC++ Alias(std=gnu++2a)
+Conform to the ISO 2020 C++ draft standard with GNU extensions (experimental and incomplete support).
 
 std=gnu11
 C ObjC