This is the mail archive of the gcc-patches@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: plugins & PCH are incompatible ...


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


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