Commit 55040b34 by H.J. Lu Committed by H.J. Lu

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.

From-SVN: r158905
parent 46e70c4e
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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment