Re: [PATCH] rs6000: Fix formatting of -mfuture warning [PR126738]

Avinash Jayakar <[email protected]>
Newsgroups gmane.comp.gcc.patches
Message-ID <[email protected]>
On Mon, 2026-08-10 at 13:14 +0530, Kishan Parmar wrote:
> Hello,
> 
> The warning for the undocumented -mfuture option is missing the
> terminating '%' characters in the option markup, resulting in
> malformed
> diagnostics.
> 
> Add the missing '%' characters so that -mfuture and -mcpu=future are
> properly quoted in the warning message.
> 
> 2026-08-10  Kishan Parmar  <[email protected]>
> 	    Göran Uddeborg <[email protected]>
> 
> gcc/ChangeLog:
        PR target/126738

Hi Kishan,

If this has not been upstreamed yet please consider adding this line
here.

Thanks,
Avinash

> 	* config/rs6000/rs6000.opt: Fix formatting of the -mfuture
> warning.
> 
> Thank You,
> Kishan
> 
> ---
>  gcc/config/rs6000/rs6000.opt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gcc/config/rs6000/rs6000.opt
> b/gcc/config/rs6000/rs6000.opt
> index d9e9de92b21..8632e106458 100644
> --- a/gcc/config/rs6000/rs6000.opt
> +++ b/gcc/config/rs6000/rs6000.opt
> @@ -597,7 +597,7 @@ Target Undocumented Mask(POWER11)
> Var(rs6000_isa_flags) WarnRemoved
>  
>  ;; Potential future machine
>  mfuture
> -Target Undocumented Mask(FUTURE) Var(rs6000_isa_flags) Warn(Do not
> use %<-mfuture>, use %<-mcpu=future>)
> +Target Undocumented Mask(FUTURE) Var(rs6000_isa_flags) Warn(Do not
> use %<-mfuture%>, use %<-mcpu=future%>)
>  
>  mdense-math
>  Target Mask(DMF) Var(rs6000_isa_flags)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.