From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76636 invoked by alias); 29 Sep 2017 17:31:13 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 76623 invoked by uid 89); 29 Sep 2017 17:31:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-io0-f175.google.com Received: from mail-io0-f175.google.com (HELO mail-io0-f175.google.com) (209.85.223.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 29 Sep 2017 17:31:11 +0000 Received: by mail-io0-f175.google.com with SMTP id 21so410841iof.6 for ; Fri, 29 Sep 2017 10:31:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=iMVYx2tdIr+CJ1tYITuyF5tAyoeKyPmblkNq1uOsOE0=; b=kuAcC7sG793I53q23CbVHmUhSYPGSKK0pZCQf+2fy1iNNNaPA0Q/BSThsNLMkB0S9r dEL+TxMrrj6u+sXNV2T35rvc0i2Ot2BNPnZQPErHk+7UenUGjSSQtNpRhDg5lQQo0N2u Uk/p4GktyN8JMcYtw8mV5T3c/4H5ETcUmvNVn3C9638LZGYPaB3wqLb6Etz5XISoGiyy pcSMXONZfnZIcWVNXrOvGo0+nRQ35CdoMnf7eg4PgsOh7efPtEiPwDkTKYuS7u9dabCO oFChiY4MWkUklSQvac8fLUdiAFkLPUEtK9pHS7pEQPatdsPM9jegoBZvjTEOphKsHQZb BDFw== X-Gm-Message-State: AMCzsaX3HnDitlYvsJk1SkLAvZY20mO7/u337+fKxM6zvo4eSlgPIuPG 40JWg508mOmnaQOLNr7A9kq1Jg== X-Google-Smtp-Source: AOwi7QAv/+S6IOriyxvwbw+w1TuRJ6l12GUaiQCf2UNNqlzy92UDMAQgh6HCTY+hfpQSBmJYYrPHjw== X-Received: by 10.107.63.67 with SMTP id m64mr13204995ioa.104.1506706269971; Fri, 29 Sep 2017 10:31:09 -0700 (PDT) Received: from [192.168.1.100] (173-230-163-230.cable.teksavvy.com. [173.230.163.230]) by smtp.googlemail.com with ESMTPSA id k76sm1979020ita.4.2017.09.29.10.31.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Sep 2017 10:31:09 -0700 (PDT) To: gcc-patches@gcc.gnu.org From: nick Subject: Patch that fix PR80188 Message-ID: Date: Fri, 29 Sep 2017 17:31:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg01978.txt.bz2 Greetings, I don't have write access so can someone commit this bug fix as it fixes, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80188. Author: Nicholas Krause Date: Fri Sep 29 11:39:46 2017 -0400 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_ macro to translate to the proper language of the user. No new test cases are required due to the triviality of the bug. 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 Thanks, Nick