From patchwork Fri Feb 11 23:23:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 1591899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JwV6c1TfWz9sFq for ; Sat, 12 Feb 2022 10:23:36 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 04F69385803F for ; Fri, 11 Feb 2022 23:23:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 127DB385841B for ; Fri, 11 Feb 2022 23:23:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 127DB385841B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com IronPort-SDR: tuUKeZqx7mZMU9qPQkG4p/gwOfmWiIy6RbCfjY61dhJr5v1hHmAZRn2mWE0Nh50FMIUooUpkrD PRlEVF6kfDx8YG/cVlT1rIXBg8jL9HxnJ3foMwGZWkBJUbw8BNWYW9kDBTStb7g+pg/Jn0gfA4 3zEufmNr87W/2v2a7lCtipsQtUiUgTYptrcyxAwaq8JvbGMYe36T5ur0cgbS7RHe0BMvaDDgAV HIJzONMJoAM3IkE/dYOM003K6FHpgQBIYqlgwSAMIWS5PFH4zczTnTgetWW3KUx71uPBCv4999 8HtvJ2sgeS9iCqLfpvj7V3eZ X-IronPort-AV: E=Sophos;i="5.88,361,1635235200"; d="scan'208";a="71866585" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 11 Feb 2022 15:23:11 -0800 IronPort-SDR: 6c0eMolDogIrte+JGn7qCYvxAtcT6fiGpAg9bCiSvlE2gywZnmm6fSWP2Sq/C0dikgaX4soZ6M 1XMh15M0w5CefsJJGl61gIuJdxMIY9SrawQdEVrFYLmGhld6HdnkaZs3rERJ++f5ZDSleyRAV5 7c8eYZVPr+rLWc9oYh4Kz+R4/F1k4QXVPWLwwflliiYHdP0qbUWL0Q6SrXkpuObpHBCBjtzH4y VBxctWqZDEK3EyD1Pnz+A3giXbpAqBdCZNuqJW8B2tqSiUDhX39n+k/RlZqq4tySlKVgFNFpz3 uDQ= Date: Fri, 11 Feb 2022 23:23:05 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Subject: [committed] preprocessor: Extract messages from cpp_*_at calls for translation Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-Spam-Status: No, score=-3120.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" The logic in libcpp/Makefile.in listing diagnostic functions in a call to xgettext was missing cpp_warning_at, cpp_pedwarning_at and cpp_error_at, so resulting in some messages not being extracted for translation; add those functions to those for which messages are extracted. Tested with "make cpplib.pot". Applied to mainline. * Makefile.in (po/$(PACKAGE).pot): Also handle cpp_warning_at, cpp_pedwarning_at and cpp_error_at. diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in index 9e4c3fe5c16..08d48def0bc 100644 --- a/libcpp/Makefile.in +++ b/libcpp/Makefile.in @@ -252,10 +252,13 @@ po/$(PACKAGE).pot: $(libcpp_a_SOURCES) --keyword=cpp_warning:3 \ --keyword=cpp_pedwarning:3 \ --keyword=cpp_warning_syshdr:3 \ + --keyword=cpp_warning_at:4 \ + --keyword=cpp_pedwarning_at:4 \ --keyword=cpp_error_with_line:5 \ --keyword=cpp_warning_with_line:5 \ --keyword=cpp_pedwarning_with_line:5 \ --keyword=cpp_warning_with_line_syshdr:5 \ + --keyword=cpp_error_at:4 \ --keyword=cpp_errno:3 \ --keyword=SYNTAX_ERROR --keyword=SYNTAX_ERROR2 \ --copyright-holder="Free Software Foundation, Inc." \