diff mbox series

Add quotes for -fconstexpr-depth= in an error message.

Message ID 78339846-75a4-522f-d1dc-50322d02a3ec@suse.cz
State New
Headers show
Series Add quotes for -fconstexpr-depth= in an error message. | expand

Commit Message

Martin Liška Aug. 29, 2018, 8:27 a.m. UTC
Hi.

That's just simple patch that wraps an option name
in an error message into apostrophes.

Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.

Ready to be installed?
Martin

gcc/cp/ChangeLog:

2018-08-28  Martin Liska  <mliska@suse.cz>

	* constexpr.c (cxx_eval_call_expression): Add quotes
	to -fconstexpr-depth=.
---
 gcc/cp/constexpr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin Liška Sept. 12, 2018, 10:17 a.m. UTC | #1
PING^1

On 8/29/18 10:27 AM, Martin Liška wrote:
> Hi.
> 
> That's just simple patch that wraps an option name
> in an error message into apostrophes.
> 
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
> 
> Ready to be installed?
> Martin
> 
> gcc/cp/ChangeLog:
> 
> 2018-08-28  Martin Liska  <mliska@suse.cz>
> 
> 	* constexpr.c (cxx_eval_call_expression): Add quotes
> 	to -fconstexpr-depth=.
> ---
>  gcc/cp/constexpr.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
>
Nathan Sidwell Sept. 12, 2018, 10:29 a.m. UTC | #2
On 9/12/18 6:17 AM, Martin Liška wrote:
> PING^1
> 

>> gcc/cp/ChangeLog:
>>
>> 2018-08-28  Martin Liska  <mliska@suse.cz>
>>
>> 	* constexpr.c (cxx_eval_call_expression): Add quotes
>> 	to -fconstexpr-depth=.

ok, thanks
diff mbox series

Patch

diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index f646519135f..15ec13e3cb1 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -1669,7 +1669,7 @@  cxx_eval_call_expression (const constexpr_ctx *ctx, tree t,
     {
       if (!ctx->quiet)
 	error ("%<constexpr%> evaluation depth exceeds maximum of %d (use "
-	       "-fconstexpr-depth= to increase the maximum)",
+	       "%<-fconstexpr-depth=%> to increase the maximum)",
 	       max_constexpr_depth);
       *non_constant_p = true;
       result = error_mark_node;