public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH]C++/PR80188: Add correct  marco call to error_at call in maybe_complain_about_tail_call
@ 2017-10-07 15:48 Nicholas Krause
  0 siblings, 0 replies; only message in thread
From: Nicholas Krause @ 2017-10-07 15:48 UTC (permalink / raw)
  To: gcc-patches

This fixes maybe_complain_about_tail_call to in correctly use the marco, _ around reason in the
call to error_at. This fixes the issue with only the first part of the function being
correctly translated to English when translation is done. Passes standard testing on 
x86_64_linux_gnu without any new regressions. Ok for trunk?

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

diff --git a/gcc/calls.c b/gcc/calls.c
index 72cf9e016c8..38b4dc7617b 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1515,7 +1515,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", _(reason));
 }
 
 /* Fill in ARGS_SIZE and ARGS array based on the parameters found in
-- 
2.11.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-07 15:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-07 15:48 [PATCH]C++/PR80188: Add correct marco call to error_at call in maybe_complain_about_tail_call Nicholas Krause

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).