summaryrefslogtreecommitdiff
path: root/gcc/doc/plugins.texi
diff options
context:
space:
mode:
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-27 12:57:59 +0000
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-27 12:57:59 +0000
commita0b14cdf2bb8be79366cb5af2a90492f3237cdf2 (patch)
treea67f0eebb357d7ecd40cf64d83c7d946d9b0b498 /gcc/doc/plugins.texi
parent97903452f9f3c998c3627a360e51b8d0d991248b (diff)
downloadgcc-a0b14cdf2bb8be79366cb5af2a90492f3237cdf2.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147908 138bc75d-0d04-0410-961f-82ee72b054a4
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 7f2f5a510f3..287619c404d 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