This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: âxref_tagâ lacks a public declaration


ludovic.courtes@inria.fr (Ludovic CourtÃs) writes:

> Ian Lance Taylor <iant@google.com> writes:
>
>> ludovic.courtes@inria.fr (Ludovic CourtÃs) writes:
>>
>>>>>   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, <cp/cp-tree.h> declares a different âxref_tagâ function,
>>>>> so it seems that the above declaration cannot just be added to
>>>>> âc-common.hâ.
>>>>>
>>>>> 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++.
>>>
>>> How would you recommend to work around the problem in the meantime?
>>
>> Add the extern declaration in the plugin, rather than relying on a
>> header file.
>
> Iâm doing this already but I think providing the declaration is a better
> long-term solution.

Of course.  The long-term solution is a patch like the one you sent.  My
paragraph quoted above is my answer to your question about what you
should do in the meantime.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]