Hi, I added a few includes i need to define some new primitives.
Basile, i included two "c-family/*.h" files, but be aware that currently GCC does not install this headers in the c-family directory but in the directly in the plugin/include root directory with all other headers. I posted a patch some times ago to solve that (because it breaks includes of C++ plugin headers) for the trunk. Unfortunately, the patch hasn't been reviewed yet. See http://old.nabble.com/-PLUGIN--c-family-files-installation-td32038394.html Once again, Debian maintainers applied a similar patch for a long time and thus theses files are in the c-family directory (but only for Debian users). So i don't know if you should apply the patch as is or remove the "c-family/" prefix in the includes. Romain Geissler gcc/ 2011-07-21 Romain Geissler <romain.geiss...@gmail.com> * melt-run.proto.h: Include "c-family/c-pragma.h", "c-family/c-pretty-print.h", "cpplib.h" and "langhooks.h". Index: gcc/melt-run.proto.h =================================================================== --- gcc/melt-run.proto.h (revision 176395) +++ gcc/melt-run.proto.h (working copy) @@ -52,6 +52,8 @@ along with GCC; see the file COPYING3. #include "timevar.h" #include "ggc.h" #include "cgraph.h" +#include "c-family/c-pragma.h" +#include "c-family/c-pretty-print.h" #include "diagnostic.h" #include "flags.h" #include "toplev.h" @@ -61,6 +63,8 @@ along with GCC; see the file COPYING3. #include "prefix.h" #include "md5.h" #include "cppdefault.h" +#include "cpplib.h" +#include "langhooks.h" /* MELT specific includes */