This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][C] Move C lang_decl and lang_type to language specific header (need help with gc)
On Thu, 20 Aug 2009, Richard Guenther wrote:
> On Thu, 20 Aug 2009, Richard Guenther wrote:
>
> >
> > This removes lang_decl for C (it's empty) and moves lang_type to
> > c-lang.h. This avoids having two different lang_decl / lang_type
> > definitions in the cc1plus executable (and thus cc1plus build with -flto
> > fails).
> >
> > I need help with the GTY machinery - either I get undefined
> > references to gt_pch_nx_lang_decl or I get incomplete lang_type
> > in gtype-desc.c. Any ideas?
> >
> > The lang_decl removal bootstrapped and tested ok.
>
> The following seems to work. Ok if it bootstraps and tests ok?
The C changes are OK. Is the problem that c-common.c (or some other file
shared by C and C++) includes c-tree.h (which is meant to be only for C,
not C++)?
--
Joseph S. Myers
joseph@codesourcery.com