Greetings All,
I have this patch formatted in git, I was unable to figure out how the whole 
svn works. I
am new to svn. Here is the patch below so any comments on this patch or how to 
format it
properly would be great:
>From a86173b1cab13a8fe5615c53005adcfafb97415f Mon Sep 17 00:00:00 2001
From: Nicholas Krause <xerofo...@gmail.com>
Date: Fri, 29 Sep 2017 11:39:46 -0400
Subject: [PATCH] Fix maybe_complain_about_tail_call_arises
 This patch fixes, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80188 which 
 reports that the char* pointer reason is not being translated properly when 
the 
 error message from the function, maybe_complain_about_tail_call arises. Fix it 
 by wrapping it in the N_ marco to translate to the proper lanuage of the user. 
 No new testcases are required due to the triviality of the bug.

Signed-off-by: Nicholas Krause <xerofo...@gmail.com>
---
 gcc/calls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/calls.c b/gcc/calls.c
index 6bd025ed197..cfdd6b2cf6b 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1516,7 +1516,7 @@ maybe_complain_about_tail_call (tree call_expr, const 
char *reason)
   if (!CALL_EXPR_MUST_TAIL_CALL (call_expr))
     return;
 
-  error_at (EXPR_LOCATION (call_expr), "cannot tail-call: %s", reason);
+  error_at (EXPR_LOCATION (call_expr), "cannot tail-call: %s", N_(reason));
 }
 
 /* Fill in ARGS_SIZE and ARGS array based on the parameters found in
-- 
2.11.0

Reply via email to