]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Move flag_plugin_added out of invoke_plugin_callbacks.
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Apr 2010 16:29:10 +0000 (16:29 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Apr 2010 16:29:10 +0000 (16:29 +0000)
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

gcc/ChangeLog
gcc/plugin.h

index 5daa045df5f876bb7f38e94e5855c29420d6f014..23f10f33905f87151e09f8ed9a1679c7903f9e4c 100644 (file)
@@ -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
index 94663dd4a10c53fd2ec05251a6e50d4967fa7509..3269641df0acac26b670638cb97b1098bed01c07 100644 (file)
@@ -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