aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/plugins.texi
diff options
context:
space:
mode:
authorRafael Avila de Espindola <espindola@google.com>2009-05-27 12:57:59 +0000
committerRafael Espindola <espindola@gcc.gnu.org>2009-05-27 12:57:59 +0000
commit3e17e31d47109a840eb32e24dfd59ca9a49c8bfa (patch)
treea67f0eebb357d7ecd40cf64d83c7d946d9b0b498 /gcc/doc/plugins.texi
parent5e370570a5cbdb9cb615e8167ae3dee3612bae8a (diff)
downloadgcc-3e17e31d47109a840eb32e24dfd59ca9a49c8bfa.zip
gcc-3e17e31d47109a840eb32e24dfd59ca9a49c8bfa.tar.gz
gcc-3e17e31d47109a840eb32e24dfd59ca9a49c8bfa.tar.bz2
attribute_plugin.c: Include gcc-plugin.h first.
2009-05-27 Rafael Avila de Espindola <espindola@google.com> * g++.dg/plugin/attribute_plugin.c: Include gcc-plugin.h first. * g++.dg/plugin/dumb_plugin.c: Include gcc-plugin.h first. * g++.dg/plugin/selfassign.c: Include gcc-plugin.h first. * gcc.dg/plugin/selfassign.c: Include gcc-plugin.h first. 2009-05-27 Rafael Avila de Espindola <espindola@google.com> * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h with it. * doc/plugins.texi: Document that gcc-plugin.h must be the first to be included. * gcc-plugin.h: Include config.h and system.h. (IN_GCC): Define if not defined. From-SVN: r147908
Diffstat (limited to 'gcc/doc/plugins.texi')
-rw-r--r--gcc/doc/plugins.texi2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/doc/plugins.texi b/gcc/doc/plugins.texi
index 7f2f5a5..287619c 100644
--- a/gcc/doc/plugins.texi
+++ b/gcc/doc/plugins.texi
@@ -30,6 +30,8 @@ Plugins are activated by the compiler at specific events as defined in
call @code{register_callback} specifying the name of the event and
address of the callback function that will handle that event.
+The header @file{gcc-plugin.h} must be the first gcc header to be included.
+
@subsection Plugin initialization
Every plugin should export a function called @code{plugin_init} that