diff mbox

Missing plugin header files

Message ID 4950619a-afe4-4e20-a424-d7663fd9f9d3@BAMAIL02.ba.imgtec.org
State New
Headers show

Commit Message

Steve Ellcey Jan. 14, 2015, 9:43 p.m. UTC
I tried compiling an empty plugin that just included gcc-plugin.h and
plugin-version.h and found that these header files were included from
gcc-plugin.h but not in the list of header files to be copied to the
plugin include directory.

OK to checkin?

Steve Ellcey
sellcey@imgtec.com

2015-01-14  Steve Ellcey  <sellcey@mips.com>

	* Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
	cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, builtins.def,
	chkp-builtins.def, and pass-instances.def

Comments

Richard Biener Jan. 15, 2015, 8:44 a.m. UTC | #1
On Wed, Jan 14, 2015 at 10:43 PM, Steve Ellcey <sellcey@imgtec.com> wrote:
> I tried compiling an empty plugin that just included gcc-plugin.h and
> plugin-version.h and found that these header files were included from
> gcc-plugin.h but not in the list of header files to be copied to the
> plugin include directory.
>
> OK to checkin?

Ok.

Thanks,
Richard.

> Steve Ellcey
> sellcey@imgtec.com
>
> 2015-01-14  Steve Ellcey  <sellcey@mips.com>
>
>         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
>         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, builtins.def,
>         chkp-builtins.def, and pass-instances.def
>
>
> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> index 44a4214..abe2d0d 100644
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -3228,7 +3228,8 @@ PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
>    tree-ssa-loop.h tree-ssa-loop-ivopts.h tree-ssa-loop-manip.h \
>    tree-ssa-loop-niter.h tree-ssa-ter.h tree-ssa-threadedge.h \
>    tree-ssa-threadupdate.h inchash.h wide-int.h signop.h hash-map.h \
> -  hash-set.h pass-instances.def
> +  hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \
> +  lcm.h builtins.def chkp-builtins.def pass-instances.def
>
>  # generate the 'build fragment' b-header-vars
>  s-header-vars: Makefile
Prathamesh Kulkarni Jan. 15, 2015, 6:22 p.m. UTC | #2
On 15 January 2015 at 14:14, Richard Biener <richard.guenther@gmail.com> wrote:
> On Wed, Jan 14, 2015 at 10:43 PM, Steve Ellcey <sellcey@imgtec.com> wrote:
>> I tried compiling an empty plugin that just included gcc-plugin.h and
>> plugin-version.h and found that these header files were included from
>> gcc-plugin.h but not in the list of header files to be copied to the
>> plugin include directory.
>>
>> OK to checkin?
>
> Ok.
>
> Thanks,
> Richard.
>
>> Steve Ellcey
>> sellcey@imgtec.com
>>
>> 2015-01-14  Steve Ellcey  <sellcey@mips.com>
>>
>>         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
>>         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, builtins.def,
>>         chkp-builtins.def, and pass-instances.def
>>
Should pass-instances.def be removed from ChangeLog since it was
already present in PLUGIN_HEADERS ?

Thanks,
Prathamesh
>>
>> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
>> index 44a4214..abe2d0d 100644
>> --- a/gcc/Makefile.in
>> +++ b/gcc/Makefile.in
>> @@ -3228,7 +3228,8 @@ PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
>>    tree-ssa-loop.h tree-ssa-loop-ivopts.h tree-ssa-loop-manip.h \
>>    tree-ssa-loop-niter.h tree-ssa-ter.h tree-ssa-threadedge.h \
>>    tree-ssa-threadupdate.h inchash.h wide-int.h signop.h hash-map.h \
>> -  hash-set.h pass-instances.def
>> +  hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \
>> +  lcm.h builtins.def chkp-builtins.def pass-instances.def
>>
>>  # generate the 'build fragment' b-header-vars
>>  s-header-vars: Makefile
Steve Ellcey Jan. 15, 2015, 6:30 p.m. UTC | #3
> >>
> >> 2015-01-14  Steve Ellcey  <sellcey@mips.com>
> >>
> >>         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
> >>         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, builtins.def,
> >>         chkp-builtins.def, and pass-instances.def
> >>
> Should pass-instances.def be removed from ChangeLog since it was
> already present in PLUGIN_HEADERS ?
> 
> Thanks,
> Prathamesh

Looks like a cut-n-paste error on my part when I copied the file names
from Makefile.in to ChangeLog.  I will fix the ChangeLog entry.

Steve Ellcey
Prathamesh Kulkarni Jan. 15, 2015, 7:16 p.m. UTC | #4
On 16 January 2015 at 00:00, Steve Ellcey <sellcey@imgtec.com> wrote:
>
>> >>
>> >> 2015-01-14  Steve Ellcey  <sellcey@mips.com>
>> >>
>> >>         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
>> >>         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, builtins.def,
>> >>         chkp-builtins.def, and pass-instances.def
>> >>
>> Should pass-instances.def be removed from ChangeLog since it was
>> already present in PLUGIN_HEADERS ?
>>
>> Thanks,
>> Prathamesh
>
> Looks like a cut-n-paste error on my part when I copied the file names
> from Makefile.in to ChangeLog.  I will fix the ChangeLog entry.
Thanks for the patch, I missed to put headers in PLUGIN_HEADERS
after putting includes in gcc-plugin.h. -:(

Regards,
Prathamesh
>
> Steve Ellcey
>
diff mbox

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 44a4214..abe2d0d 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -3228,7 +3228,8 @@  PLUGIN_HEADERS = $(TREE_H) $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
   tree-ssa-loop.h tree-ssa-loop-ivopts.h tree-ssa-loop-manip.h \
   tree-ssa-loop-niter.h tree-ssa-ter.h tree-ssa-threadedge.h \
   tree-ssa-threadupdate.h inchash.h wide-int.h signop.h hash-map.h \
-  hash-set.h pass-instances.def
+  hash-set.h dominance.h cfg.h cfgrtl.h cfganal.h cfgbuild.h cfgcleanup.h \
+  lcm.h builtins.def chkp-builtins.def pass-instances.def
 
 # generate the 'build fragment' b-header-vars
 s-header-vars: Makefile