summaryrefslogtreecommitdiff
path: root/gcc/doc/plugins.texi
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@gcc.gnu.org>2010-06-09 11:40:28 +0100
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-06-09 11:40:28 +0100
commit2d7f5f9b5f54aae8eaaaa6e430422ecbbfe91f4d (patch)
tree2a02e0c255a32712fe3a4acc240d7ac19d537f2e /gcc/doc/plugins.texi
parentff5dfc4869aad7bedad9e749e6eed7d5f783b970 (diff)
downloadgcc-2d7f5f9b5f54aae8eaaaa6e430422ecbbfe91f4d.tar.gz
re PR testsuite/42843 (--enable-build-with-cxx plugin tests fail)
gcc: PR testsuite/42843 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C". * doc/plugins.texi (Plugin license check): Update information on type of plugin_is_GPL_compatible. * Makefile.in (PLUGINCC): Define as $(COMPILER). (PLUGINCFLAGS): Define as $(COMPILER_FLAGS). gcc/testsuite: PR testsuite/42843 * gcc.dg/plugin/selfassign.c (pass_warn_self_assign): Use enumerator TV_NONE to initialize tv_id field. * g++.dg/plugin/selfassign.c (pass_warn_self_assign): Likewise. * gcc.dg/plugin/one_time_plugin.c (one_pass): Likewise. * g++.dg/plugin/dumb_plugin.c (pass_dumb_plugin_example): Likewise. Include toplev.h . * gcc.dg/plugin/finish_unit_plugin.c: Include cgraph.h. * g++.dg/plugin/attribute_plugin.c: Include toplev.h and plugin.h . * g++.dg/plugin/pragma_plugin.c: Include toplev.h . From-SVN: r160461
Diffstat (limited to 'gcc/doc/plugins.texi')
-rw-r--r--gcc/doc/plugins.texi6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/doc/plugins.texi b/gcc/doc/plugins.texi
index 77000fee646..5a560424993 100644
--- a/gcc/doc/plugins.texi
+++ b/gcc/doc/plugins.texi
@@ -50,8 +50,10 @@ fatal error: plugin <name> is not licensed under a GPL-compatible license
compilation terminated
@end smallexample
-The type of the symbol is irrelevant. The compiler merely asserts that
-it exists in the global scope. Something like this is enough:
+The declared type of the symbol should be int, to match a forward declaration
+in @file{gcc-plugin.h} that suppresses C++ mangling. It does not need to be in
+any allocated section, though. The compiler merely asserts that
+the symbol exists in the global scope. Something like this is enough:
@smallexample
int plugin_is_GPL_compatible;