public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] arm: fix option quoting in error messages.
@ 2022-03-07 10:27 Martin Liška
  2022-03-07 10:37 ` Kyrylo Tkachov
  2022-03-07 13:14 ` Richard Earnshaw
  0 siblings, 2 replies; 4+ messages in thread
From: Martin Liška @ 2022-03-07 10:27 UTC (permalink / raw)
  To: gcc-patches; +Cc: Christophe Lyon

This fixes option quoting in error messages.

Ready to be installed?
Thanks,
Martin

	PR target/104794

gcc/ChangeLog:

	* config/arm/arm.cc (arm_option_override_internal): Fix quoting
	of options in error messages.
	(arm_option_reconfigure_globals): Likewise.
---
  gcc/config/arm/arm.cc | 6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
index c1103d9fad6..4bf1ef0517d 100644
--- a/gcc/config/arm/arm.cc
+++ b/gcc/config/arm/arm.cc
@@ -3185,8 +3185,8 @@ arm_option_override_internal (struct gcc_options *opts,
    if (arm_stack_protector_guard == SSP_GLOBAL
        && opts->x_arm_stack_protector_guard_offset_str)
      {
-      error ("incompatible options %'-mstack-protector-guard=global%' and"
-	     "%'-mstack-protector-guard-offset=%qs%'",
+      error ("incompatible options %<-mstack-protector-guard=global%> and"
+	     "%<-mstack-protector-guard-offset=%s%>",
  	     arm_stack_protector_guard_offset_str);
      }
  
@@ -3880,7 +3880,7 @@ arm_option_reconfigure_globals (void)
      }
  
    if (!TARGET_HARD_TP && arm_stack_protector_guard == SSP_TLSREG)
-    error("%'-mstack-protector-guard=tls%' needs a hardware TLS register");
+    error("%<-mstack-protector-guard=tls%> needs a hardware TLS register");
  }
  
  /* Perform some validation between the desired architecture and the rest of the
-- 
2.35.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] arm: fix option quoting in error messages.
  2022-03-07 10:27 [PATCH] arm: fix option quoting in error messages Martin Liška
@ 2022-03-07 10:37 ` Kyrylo Tkachov
  2022-03-07 13:14 ` Richard Earnshaw
  1 sibling, 0 replies; 4+ messages in thread
From: Kyrylo Tkachov @ 2022-03-07 10:37 UTC (permalink / raw)
  To: Martin Liška, gcc-patches; +Cc: Christophe Lyon



> -----Original Message-----
> From: Gcc-patches <gcc-patches-
> bounces+kyrylo.tkachov=arm.com@gcc.gnu.org> On Behalf Of Martin Liška
> Sent: Monday, March 7, 2022 10:28 AM
> To: gcc-patches@gcc.gnu.org
> Cc: Christophe Lyon <christophe.lyon@linaro.org>
> Subject: [PATCH] arm: fix option quoting in error messages.
> 
> This fixes option quoting in error messages.
> 
> Ready to be installed?

Ok.
Thanks,
Kyrill

> Thanks,
> Martin
> 
> 	PR target/104794
> 
> gcc/ChangeLog:
> 
> 	* config/arm/arm.cc (arm_option_override_internal): Fix quoting
> 	of options in error messages.
> 	(arm_option_reconfigure_globals): Likewise.
> ---
>   gcc/config/arm/arm.cc | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
> index c1103d9fad6..4bf1ef0517d 100644
> --- a/gcc/config/arm/arm.cc
> +++ b/gcc/config/arm/arm.cc
> @@ -3185,8 +3185,8 @@ arm_option_override_internal (struct gcc_options
> *opts,
>     if (arm_stack_protector_guard == SSP_GLOBAL
>         && opts->x_arm_stack_protector_guard_offset_str)
>       {
> -      error ("incompatible options %'-mstack-protector-guard=global%' and"
> -	     "%'-mstack-protector-guard-offset=%qs%'",
> +      error ("incompatible options %<-mstack-protector-guard=global%> and"
> +	     "%<-mstack-protector-guard-offset=%s%>",
>   	     arm_stack_protector_guard_offset_str);
>       }
> 
> @@ -3880,7 +3880,7 @@ arm_option_reconfigure_globals (void)
>       }
> 
>     if (!TARGET_HARD_TP && arm_stack_protector_guard == SSP_TLSREG)
> -    error("%'-mstack-protector-guard=tls%' needs a hardware TLS register");
> +    error("%<-mstack-protector-guard=tls%> needs a hardware TLS register");
>   }
> 
>   /* Perform some validation between the desired architecture and the rest
> of the
> --
> 2.35.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm: fix option quoting in error messages.
  2022-03-07 10:27 [PATCH] arm: fix option quoting in error messages Martin Liška
  2022-03-07 10:37 ` Kyrylo Tkachov
@ 2022-03-07 13:14 ` Richard Earnshaw
  2022-03-07 13:17   ` Martin Liška
  1 sibling, 1 reply; 4+ messages in thread
From: Richard Earnshaw @ 2022-03-07 13:14 UTC (permalink / raw)
  To: Martin Liška, gcc-patches; +Cc: Christophe Lyon



On 07/03/2022 10:27, Martin Liška wrote:
> This fixes option quoting in error messages.
> 
> Ready to be installed?
> Thanks,
> Martin
> 
>      PR target/104794
> 
> gcc/ChangeLog:
> 
>      * config/arm/arm.cc (arm_option_override_internal): Fix quoting
>      of options in error messages.
>      (arm_option_reconfigure_globals): Likewise.
> ---
>   gcc/config/arm/arm.cc | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
> index c1103d9fad6..4bf1ef0517d 100644
> --- a/gcc/config/arm/arm.cc
> +++ b/gcc/config/arm/arm.cc
> @@ -3185,8 +3185,8 @@ arm_option_override_internal (struct gcc_options 
> *opts,
>     if (arm_stack_protector_guard == SSP_GLOBAL
>         && opts->x_arm_stack_protector_guard_offset_str)
>       {
> -      error ("incompatible options %'-mstack-protector-guard=global%' and"
> -         "%'-mstack-protector-guard-offset=%qs%'",
> +      error ("incompatible options %<-mstack-protector-guard=global%> and"
> +         "%<-mstack-protector-guard-offset=%s%>",

Wasn't the complaint also that there should be a space in the text 
between the 'and"' and the '"%<' on the subsequent line?

R.
>            arm_stack_protector_guard_offset_str);
>       }
> 
> @@ -3880,7 +3880,7 @@ arm_option_reconfigure_globals (void)
>       }
> 
>     if (!TARGET_HARD_TP && arm_stack_protector_guard == SSP_TLSREG)
> -    error("%'-mstack-protector-guard=tls%' needs a hardware TLS 
> register");
> +    error("%<-mstack-protector-guard=tls%> needs a hardware TLS 
> register");
>   }
> 
>   /* Perform some validation between the desired architecture and the 
> rest of the

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm: fix option quoting in error messages.
  2022-03-07 13:14 ` Richard Earnshaw
@ 2022-03-07 13:17   ` Martin Liška
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Liška @ 2022-03-07 13:17 UTC (permalink / raw)
  To: Richard Earnshaw, gcc-patches; +Cc: Christophe Lyon

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

On 3/7/22 14:14, Richard Earnshaw wrote:
> Wasn't the complaint also that there should be a space in the text between the 'and"' and the '"%<' on the subsequent line?

Yeah, I overlooked that.

I'm going to push the following patch.

Cheers,
Martin

[-- Attachment #2: 0001-arm-add-missing-space-to-error.patch --]
[-- Type: text/x-patch, Size: 992 bytes --]

From b1d8198e7df616ea80cb648a2c831e2c21f4319f Mon Sep 17 00:00:00 2001
From: Martin Liska <mliska@suse.cz>
Date: Mon, 7 Mar 2022 14:16:21 +0100
Subject: [PATCH] arm: add missing space to error.

	PR target/104794

gcc/ChangeLog:

	* config/arm/arm.cc (arm_option_override_internal): Add missing
	space.
---
 gcc/config/arm/arm.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/arm/arm.cc b/gcc/config/arm/arm.cc
index 4bf1ef0517d..14b6c804455 100644
--- a/gcc/config/arm/arm.cc
+++ b/gcc/config/arm/arm.cc
@@ -3185,7 +3185,7 @@ arm_option_override_internal (struct gcc_options *opts,
   if (arm_stack_protector_guard == SSP_GLOBAL
       && opts->x_arm_stack_protector_guard_offset_str)
     {
-      error ("incompatible options %<-mstack-protector-guard=global%> and"
+      error ("incompatible options %<-mstack-protector-guard=global%> and "
 	     "%<-mstack-protector-guard-offset=%s%>",
 	     arm_stack_protector_guard_offset_str);
     }
-- 
2.35.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-07 13:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 10:27 [PATCH] arm: fix option quoting in error messages Martin Liška
2022-03-07 10:37 ` Kyrylo Tkachov
2022-03-07 13:14 ` Richard Earnshaw
2022-03-07 13:17   ` Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).