From patchwork Tue Apr 18 13:30:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 751827 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3w6mHP2ZdVz9s4s for ; Tue, 18 Apr 2017 23:31:12 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="IvwdzEZP"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=rIGbxH9XxMg/ETfX YgBBUdGnK8fco+I+Ffx7udvOIEwDtbsz1XaBwLTcHWa1BPXbMcS56LlCUYjvXWeM OLfYHNSL0N5r3JMQ6C9ooZoXdP1VfDiOrTZBve/n/2pIKLYGdsRf4TQFBWa46aUs MVbdNJ5d32esy/oOz6Lnqh7uQjQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=zYhPibOJ+7rIcEYUYlH8il dW9dE=; b=IvwdzEZPdfYjOCjbGwncP/BUMV9yfgOHZZwM854iOKj3J4jOIgaoca Kjkp3xa3xrRxWCW0eJhdqaPZZ/1iQW+HWXo4qrZ+jsO+yx0Aszp5xr8jaLeRCsqA C3wO5xn6q6ptiCSL4E3yBIj4ZDlqxVMgue64G7xX3HBev2imSYqzE= Received: (qmail 69221 invoked by alias); 18 Apr 2017 13:31:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 69188 invoked by uid 89); 18 Apr 2017 13:31:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.162) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Apr 2017 13:30:59 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwR/bcHRirORRW3yMcVao= X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (mail.hightec-rt.com [213.135.1.215]) by smtp.strato.de (RZmta 40.4 DYNA|AUTH) with ESMTPSA id c05af0t3IDUwzbs (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 18 Apr 2017 15:30:58 +0200 (CEST) To: GCC Patches Cc: Denis Chertykov From: Georg-Johann Lay Subject: [patch,avr,committed, trunk + v6] Fix PR79453 Message-ID: <29152683-8bad-f2f9-2e63-233b1f5cda3c@gjlay.de> Date: Tue, 18 Apr 2017 15:30:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 X-IsSubscribed: yes Applied the patchlet below to fix a translation hiccup in the AVR backend. Johann PR target/79453 * config/avr/avr.c (intl.h): Include it. (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _(). Index: config/avr/avr.c =================================================================== --- config/avr/avr.c (revision 246964) +++ config/avr/avr.c (working copy) @@ -20,6 +20,7 @@ #include "config.h" #include "system.h" +#include "intl.h" #include "coretypes.h" #include "backend.h" #include "target.h" @@ -9797,28 +9798,28 @@ avr_pgm_check_var_decl (tree node) case VAR_DECL: if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (node)), as) - reason = "variable"; + reason = _("variable"); break; case PARM_DECL: if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (node)), as) - reason = "function parameter"; + reason = _("function parameter"); break; case FIELD_DECL: if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (node)), as) - reason = "structure field"; + reason = _("structure field"); break; case FUNCTION_DECL: if (as = avr_nonconst_pointer_addrspace (TREE_TYPE (TREE_TYPE (node))), as) - reason = "return type of function"; + reason = _("return type of function"); break; case POINTER_TYPE: if (as = avr_nonconst_pointer_addrspace (node), as) - reason = "pointer"; + reason = _("pointer"); break; }