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: [RFC] Fight dependencies in C front end on middle-end include files


2010/5/16 Uros Bizjak <ubizjak@gmail.com>:
> Hello!

> This commit broke plugin test on x86_64-pc-linux-gnu:

I did not see this. Do I have to enable plugins explicitly?

> UNRESOLVED: one_time_plugin.c compilation, -I.
> -I/home/uros/gcc-svn/trunk/gcc/testsuite
> -I/home/uros/gcc-svn/trunk/gcc/testsuite/../../gcc
> -I/home/uros/gcc-build/gcc/testsuite/gcc/../../../gcc
> -I/home/uros/gcc-svn/trunk/gcc/testsuite/../../include
> -I/home/uros/gcc-svn/trunk/gcc/testsuite/../../libcpp/include
> -DIN_GCC -fPIC -shared
>
> The error says:
>
> In file included from
> /home/uros/gcc-svn/trunk/gcc/testsuite/../../gcc/gimple.h:27:0,
> ? ? ? ? ? ? ? ? from
> /home/uros/gcc-svn/trunk/gcc/testsuite/gcc.dg/plugin/one_time_plugin.c:8:
> /home/uros/gcc-svn/trunk/gcc/testsuite/../../gcc/vecprim.h:24:1: error:
> expected ';', ',' or ')' before 'MEM_STAT_DECL'

Could you try with this patch please?

Ciao!
Steven


Index: gcc-plugin.h
===================================================================
--- gcc-plugin.h	(revision 159450)
+++ gcc-plugin.h	(working copy)
@@ -27,6 +27,7 @@ along with GCC; see the file COPYING3.
 #include "config.h"
 #include "system.h"
 #include "highlev-plugin-common.h"
+#include "ggc.h"
 #include "hashtab.h"

 /* Event names.  */


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