[RFC] Fight dependencies in C front end on middle-end include files
Uros Bizjak
ubizjak@gmail.com
Sun May 16 07:43:00 GMT 2010
On 05/16/2010 09:19 AM, Steven Bosscher wrote:
>> This commit broke plugin test on x86_64-pc-linux-gnu:
>
> I did not see this. Do I have to enable plugins explicitly?
Hm, on linux, they are enabled by default.
>> 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. */
>
Yes, this fixed the failure for me.
(The patch also survived bootstrap from incremental build.)
Thanks,
Uros.
More information about the Gcc-patches
mailing list