diff mbox series

[Committed] Reject -fno-multiflags [PR114314]

Message ID 20240312035928.150874-1-quic_apinski@quicinc.com
State New
Headers show
Series [Committed] Reject -fno-multiflags [PR114314] | expand

Commit Message

Andrew Pinski March 12, 2024, 3:59 a.m. UTC
When -fmultiflags option support was added in r13-3693-g6b1a2474f9e422,
it accidently allowed -fno-multiflags which then would pass on to cc1.
This fixes that oversight.

Committed as obvious after bootstrap/test on x86_64-linux-gnu.

gcc/ChangeLog:

	PR driver/114314
	* common.opt (fmultiflags): Add RejectNegative.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
---
 gcc/common.opt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrew Pinski March 12, 2024, 6:40 a.m. UTC | #1
> -----Original Message-----
> From: Andrew Pinski (QUIC) <quic_apinski@quicinc.com>
> Sent: Monday, March 11, 2024 8:59 PM
> To: gcc-patches@gcc.gnu.org
> Cc: Andrew Pinski (QUIC) <quic_apinski@quicinc.com>
> Subject: [Committed] Reject -fno-multiflags [PR114314]
> 
> When -fmultiflags option support was added in r13-3693-g6b1a2474f9e422,
> it accidently allowed -fno-multiflags which then would pass on to cc1.
> This fixes that oversight.
> 
> Committed as obvious after bootstrap/test on x86_64-linux-gnu.

Note I also committed this to the GCC 13 branch too.

Thanks,
Andrew

> 
> gcc/ChangeLog:
> 
> 	PR driver/114314
> 	* common.opt (fmultiflags): Add RejectNegative.
> 
> Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
> ---
>  gcc/common.opt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gcc/common.opt b/gcc/common.opt index
> 51c4a17da83..1ad0169bd6f 100644
> --- a/gcc/common.opt
> +++ b/gcc/common.opt
> @@ -2295,7 +2295,7 @@ Common Var(flag_move_loop_stores)
> Optimization  Move stores out of loops.
> 
>  fmultiflags
> -Common Driver
> +Common Driver RejectNegative
>  Building block for specs-based multilib-aware TFLAGS.
> 
>  fdce
> --
> 2.43.0
diff mbox series

Patch

diff --git a/gcc/common.opt b/gcc/common.opt
index 51c4a17da83..1ad0169bd6f 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -2295,7 +2295,7 @@  Common Var(flag_move_loop_stores) Optimization
 Move stores out of loops.
 
 fmultiflags
-Common Driver
+Common Driver RejectNegative
 Building block for specs-based multilib-aware TFLAGS.
 
 fdce