aboutsummaryrefslogtreecommitdiff
path: root/gcc/plugin.c
diff options
context:
space:
mode:
authorTaras Glek <tglek@mozilla.com>2009-05-14 01:38:33 +0000
committerTaras Glek <tglek@gcc.gnu.org>2009-05-14 01:38:33 +0000
commitd1c8e08a0c45483b90b09e6cdf12cf8d77876fd6 (patch)
tree79caa93c375ec4191d07fcb56826aa922c1e1518 /gcc/plugin.c
parent1806edae58885e4bde7c0a06ec4afb3726e494e5 (diff)
downloadgcc-d1c8e08a0c45483b90b09e6cdf12cf8d77876fd6.zip
gcc-d1c8e08a0c45483b90b09e6cdf12cf8d77876fd6.tar.gz
gcc-d1c8e08a0c45483b90b09e6cdf12cf8d77876fd6.tar.bz2
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 From-SVN: r147516
Diffstat (limited to 'gcc/plugin.c')
-rw-r--r--gcc/plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/plugin.c b/gcc/plugin.c
index dec336d..923f0ad 100644
--- a/gcc/plugin.c
+++ b/gcc/plugin.c
@@ -493,6 +493,7 @@ register_callback (const char *plugin_name,
case PLUGIN_FINISH_TYPE:
case PLUGIN_FINISH_UNIT:
case PLUGIN_CXX_CP_PRE_GENERICIZE:
+ case PLUGIN_ATTRIBUTES:
case PLUGIN_FINISH:
{
struct callback_info *new_callback;
@@ -534,6 +535,7 @@ invoke_plugin_callbacks (enum plugin_event event, void *gcc_data)
case PLUGIN_FINISH_TYPE:
case PLUGIN_FINISH_UNIT:
case PLUGIN_CXX_CP_PRE_GENERICIZE:
+ case PLUGIN_ATTRIBUTES:
case PLUGIN_FINISH:
{
/* Iterate over every callback registered with this event and