This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: plugins & PCH are incompatible ...
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 28 Apr 2009 13:13:30 +0000 (UTC)
- Subject: Re: plugins & PCH are incompatible ...
- References: <49F6F5DC.9000104@starynkevitch.net>
On Tue, 28 Apr 2009, Basile STARYNKEVITCH wrote:
> 2009-04-28 Basile Starynkevitch <basile@starynkevitch.net>
> * plugin.c: Added include of "c-common.h" for pch_file.
In general including a front-end header from non-front-end code indicates
a bug somewhere. (Yes, various existing files include c-common.h /
c-tree.h / c-pragma.h that shouldn't.) In this case, what would happen
when building the compiler for a non-C language where the variable whose
declaration you are using does not exist at all?
--
Joseph S. Myers
joseph@codesourcery.com