diff options
author | tglek <tglek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-14 01:38:33 +0000 |
---|---|---|
committer | tglek <tglek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-05-14 01:38:33 +0000 |
commit | e3fced1ac7503512a9ccdcb5da732f2513b7a2cd (patch) | |
tree | 79caa93c375ec4191d07fcb56826aa922c1e1518 /gcc/plugin.h | |
parent | 9ee55131e58408014be9ee79da60968c264cc760 (diff) | |
download | gcc-e3fced1ac7503512a9ccdcb5da732f2513b7a2cd.tar.gz |
2009-05-13 Taras Glek <tglek@mozilla.com>
gcc/
* attribs.c moved out attribute registration into register_attribute
* doc/plugins.texi Documented register_attribute and PLUGIN_ATTRIBUTES
* gcc-plugin.h Added forward decl for register_attribute
* plugin.c Added PLUGIN_ATTRIBUTES boilerplate
* plugin.h Added PLUGIN_ATTRIBUTES
gcc/testsuite/
* g++.dg/plugin/attribute_plugin-test-1.C Testcase input for custom attributes and decl smashing
* g++.dg/plugin/attribute_plugin.c Testcase plugin to test user attributes
* g++.dg/plugin/dumb_plugin.c Fixed typo
* g++.dg/plugin/plugin.exp Added attribute_plugin test
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/plugin.h')
-rw-r--r-- | gcc/plugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/plugin.h b/gcc/plugin.h index c1f566ba80f..b610b23ed93 100644 --- a/gcc/plugin.h +++ b/gcc/plugin.h @@ -22,6 +22,8 @@ along with GCC; see the file COPYING3. If not see #include "gcc-plugin.h" +struct attribute_spec; + extern void add_new_plugin (const char *); extern void parse_plugin_arg_opt (const char *); extern void invoke_plugin_callbacks (enum plugin_event, void *); @@ -33,4 +35,8 @@ extern void print_plugins_versions (FILE *file, const char *indent); extern void print_plugins_help (FILE *file, const char *indent); extern void finalize_plugins (void); +/* In attribs.c. */ + +extern void register_attribute (const struct attribute_spec *attr); + #endif /* PLUGIN_H */ |