This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Fight dependencies in C front end on middle-end include files
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: Uros Bizjak <ubizjak at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Diego Novillo <dnovillo at google dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Sun, 16 May 2010 09:19:18 +0200
- Subject: Re: [RFC] Fight dependencies in C front end on middle-end include files
- References: <4BEF968D.5080605@gmail.com>
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. */