This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Examples of GCC plugins
- From: Aditya K <hiraditya at msn dot com>
- To: Mikhail Maltsev <maltsevm at gmail dot com>, gcc mailing list <gcc at gcc dot gnu dot org>, Sandra Loosemore <sandra at codesourcery dot com>
- Date: Sun, 15 Mar 2015 04:59:16 +0000
- Subject: RE: Examples of GCC plugins
- Authentication-results: sourceware.org; auth=none
- References: <55045235 dot 7030505 at gmail dot com>
----------------------------------------
> Date: Sat, 14 Mar 2015 18:22:29 +0300
> From: maltsevm@gmail.com
> To: gcc@gcc.gnu.org; sandra@codesourcery.com
> Subject: Examples of GCC plugins
>
> Hi, all.
>
> When I first tried to write a simple plugin for GCC, it turned out that
> existing docs on plugins
> (https://gcc.gnu.org/onlinedocs/gccint/Plugins.html#Plugins) are rather
> brief, so I had to refer to the GCC source code. When I grepped the
> source looking for one of plugin API functions, I found this directory:
> gcc/testsuite/gcc.dg/plugin.
>
> Plugins in that directory were very helpful as a starting point. I
> think, they are definitely worth being mentioned in documentation (maybe
> I was inattentive and missed some link to them?) or perhaps even
> separated from testsuite (of course, I don't mean removing something
> from testsuite, but rather adding a separate Makefile, not dependent on
> DejaGNU). Any thoughts on this?
>
> --
> Regards,
> Mikhail Maltsev
I think that will be very helpful to mention this in the documentation.
-Aditya