X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fplugin.c;h=63d1cae4ede4c2417f7ec6a1a719677fe99b6cb3;hb=9d6f975807ff20c6d426b452e15a684d0815122c;hp=6fd20585b3e8755e36f00ae4a00e06ccc9b17504;hpb=bf776685f651113684e0998256eaa0c9ff7d7add;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/plugin.c b/gcc/plugin.c index 6fd20585b3e..63d1cae4ede 100644 --- a/gcc/plugin.c +++ b/gcc/plugin.c @@ -1,5 +1,5 @@ /* Support for GCC plugin mechanism. - Copyright (C) 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. This file is part of GCC. @@ -22,18 +22,8 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" - -/* If plugin support is not enabled, do not try to execute any code - that may reference libdl. The generic code is still compiled in to - avoid including too many conditional compilation paths in the rest - of the compiler. */ -#ifdef ENABLE_PLUGIN -#include -#endif - #include "coretypes.h" #include "diagnostic-core.h" -#include "toplev.h" #include "tree.h" #include "tree-pass.h" #include "intl.h" @@ -159,7 +149,7 @@ add_new_plugin (const char* plugin_name) plugin_name, ".so", NULL); if (access (plugin_name, R_OK)) fatal_error - ("inacessible plugin file %s expanded from short plugin name %s: %m", + ("inaccessible plugin file %s expanded from short plugin name %s: %m", plugin_name, base_name); } else @@ -430,6 +420,7 @@ register_callback (const char *plugin_name, } /* Fall through. */ case PLUGIN_FINISH_TYPE: + case PLUGIN_FINISH_DECL: case PLUGIN_START_UNIT: case PLUGIN_FINISH_UNIT: case PLUGIN_PRE_GENERICIZE: @@ -506,6 +497,7 @@ invoke_plugin_callbacks_full (int event, void *gcc_data) gcc_assert (event < event_last); /* Fall through. */ case PLUGIN_FINISH_TYPE: + case PLUGIN_FINISH_DECL: case PLUGIN_START_UNIT: case PLUGIN_FINISH_UNIT: case PLUGIN_PRE_GENERICIZE: