This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Examples of GCC plugins
- From: Mikhail Maltsev <maltsevm at gmail dot com>
- To: gcc mailing list <gcc at gcc dot gnu dot org>, Sandra Loosemore <sandra at codesourcery dot com>
- Date: Sat, 14 Mar 2015 18:22:29 +0300
- Subject: Examples of GCC plugins
- Authentication-results: sourceware.org; auth=none
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