From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9033 invoked by alias); 16 Mar 2011 14:38:24 -0000 Received: (qmail 8882 invoked by uid 22791); 16 Mar 2011 14:38:23 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 Mar 2011 14:38:17 +0000 Received: from hpaq3.eem.corp.google.com (hpaq3.eem.corp.google.com [172.25.149.3]) by smtp-out.google.com with ESMTP id p2GEcEFm021187 for ; Wed, 16 Mar 2011 07:38:14 -0700 Received: from pzk10 (pzk10.prod.google.com [10.243.19.138]) by hpaq3.eem.corp.google.com with ESMTP id p2GEcBYI020092 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 16 Mar 2011 07:38:13 -0700 Received: by pzk10 with SMTP id 10so358016pzk.7 for ; Wed, 16 Mar 2011 07:38:11 -0700 (PDT) Received: by 10.142.208.16 with SMTP id f16mr50452wfg.58.1300286291428; Wed, 16 Mar 2011 07:38:11 -0700 (PDT) Received: from coign.google.com ([216.239.45.130]) by mx.google.com with ESMTPS id n4sm1243640wfl.2.2011.03.16.07.38.09 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 07:38:10 -0700 (PDT) From: Ian Lance Taylor To: ludovic.courtes@inria.fr (Ludovic =?utf-8?Q?Court=C3=A8s?=) Cc: gcc@gcc.gnu.org Subject: Re: =?utf-8?B?4oCYeHJlZl90YWfigJk=?= lacks a public declaration References: <87y64f9zq6.fsf@inria.fr> Date: Wed, 16 Mar 2011 14:38:00 -0000 In-Reply-To: <87y64f9zq6.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Wed, 16 Mar 2011 10:33:21 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00209.txt.bz2 ludovic.courtes@inria.fr (Ludovic Court=C3=A8s) writes: > =E2=80=98c-common.h=E2=80=99 lacks this declaration: > > extern tree xref_tag (enum tree_code code, tree name); > > AFAICS it makes it impossible for plug-ins to lookup a struct/union/enum > tag. > > Unfortunately, declares a different =E2=80=98xref_tag=E2= =80=99 function, > so it seems that the above declaration cannot just be added to > =E2=80=98c-common.h=E2=80=99. > > Any ideas how to solve this? Any plugin that uses that function is going to be inherently specific to the C frontend, and will not work with C++. So it will have to #include c-tree.h. That in turn would presumably require adding $(C_TREE_H) to PLUGIN_HEADERS in gcc/Makefile.in. Ian