From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18373 invoked by alias); 9 Jun 2014 17:00:42 -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 18360 invoked by uid 89); 9 Jun 2014 17:00:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Jun 2014 17:00:40 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s59H0cNj022566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 9 Jun 2014 13:00:38 -0400 Received: from barimba (ovpn-113-103.phx2.redhat.com [10.3.113.103]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s59H0a7w001518 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Mon, 9 Jun 2014 13:00:37 -0400 From: Tom Tromey To: Manuel =?utf-8?B?TMOzcGV6LUliw6HDsWV6?= Cc: Gcc Patch List Subject: Re: [PATCH 2/5] c_diagnostic_ignored_function hack References: Date: Mon, 09 Jun 2014 17:00:00 -0000 In-Reply-To: ("Manuel \=\?utf-8\?B\?TMOzcGV6LUliw6HDsWV6Iidz\?\= message of "Fri, 16 May 2014 18:29:13 +0200") Message-ID: <87vbsayq4r.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-06/txt/msg00737.txt.bz2 >>>>> "Manuel" =3D=3D Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez writes: Tom> This patch makes it possible to suppress the function-name display in Tom> a straightforward way: it adds a new global which the plugin can set Tom> to declare the name of the dummy function. Manuel> Otherwise, why not override the lang_hook itself? This way the plug= in Manuel> can provide its own lang_hook so that your proposed Manuel> c_print_error_function lives in the plugin itself. I've changed my local tree to use this approach, as it seemed simplest. Thanks for the suggestion. Tom