public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: ludovic.courtes@inria.fr (Ludovic Courtès)
Cc: gcc@gcc.gnu.org
Subject: Re: ‘xref_tag’ lacks a public declaration
Date: Wed, 16 Mar 2011 14:38:00 -0000	[thread overview]
Message-ID: <mcraagvt9kh.fsf@google.com> (raw)
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")

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

> ‘c-common.h’ 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, <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++.  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

  reply	other threads:[~2011-03-16 14:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-16  9:50 Ludovic Courtès
2011-03-16 14:38 ` Ian Lance Taylor [this message]
2011-03-16 14:54   ` Ludovic Courtès
2011-03-16 15:17     ` Ian Lance Taylor
2011-03-16 15:28       ` Ludovic Courtès
2011-03-16 17:24         ` Ian Lance Taylor
2011-03-17  9:07   ` Ludovic Courtès
2011-03-18  1:27     ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mcraagvt9kh.fsf@google.com \
    --to=iant@google.com \
    --cc=gcc@gcc.gnu.org \
    --cc=ludovic.courtes@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).