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