summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-29 16:29:10 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-29 16:29:10 +0000
commitccb7e201577eaad9ccab63b857efbbc48e570069 (patch)
treef52d5d8e1160a7cbde1a731e8b9916ccb92177d2
parent08cfd855e6d06aeb592f1c0a6f331692c42624a3 (diff)
downloadgcc-ccb7e201577eaad9ccab63b857efbbc48e570069.tar.gz
Move flag_plugin_added out of invoke_plugin_callbacks.
2010-04-29 H.J. Lu <hongjiu.lu@intel.com> PR bootstrap/43935 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158905 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/plugin.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5daa045df5f..23f10f33905 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR bootstrap/43935
+ * plugin.h (flag_plugin_added): Moved out of
+ invoke_plugin_callbacks.
+
2010-04-29 Richard Guenther <rguenther@suse.de>
PR bootstrap/43935
diff --git a/gcc/plugin.h b/gcc/plugin.h
index 94663dd4a10..3269641df0a 100644
--- a/gcc/plugin.h
+++ b/gcc/plugin.h
@@ -35,6 +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);
+extern bool flag_plugin_added;
+
/* Called from inside GCC. Invoke all plugin callbacks registered with
the specified event.
Return PLUGEVT_SUCCESS if at least one callback was called,
@@ -49,8 +51,6 @@ invoke_plugin_callbacks (int event ATTRIBUTE_UNUSED,
{
#ifdef ENABLE_PLUGIN
/* True iff at least one plugin has been added. */
- extern bool flag_plugin_added;
-
if (flag_plugin_added)
return invoke_plugin_callbacks_full (event, gcc_data);
#endif