re PR c/46902 (gcc.dg/plugin/plugindir*.c gives ICEs on powerpc-apple-darwin9)
PR gcc/46902 PR testsuite/46912 * plugin.c: Move include of dlfcn.h from here... * system.h: ... to here. From-SVN: r168611
This commit is contained in:
parent
b52956be02
commit
0c5d770e3b
3 changed files with 13 additions and 10 deletions
|
@ -1,4 +1,11 @@
|
|||
2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
|
||||
|
||||
PR gcc/46902
|
||||
PR testsuite/46912
|
||||
* plugin.c: Move include of dlfcn.h from here...
|
||||
* system.h: ... to here.
|
||||
|
||||
2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* doc/cpp.texi (C++ Named Operators): Fix markup for header
|
||||
file name.
|
||||
|
|
|
@ -22,15 +22,6 @@ 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 <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#include "coretypes.h"
|
||||
#include "diagnostic-core.h"
|
||||
#include "tree.h"
|
||||
|
|
|
@ -583,6 +583,11 @@ extern int vsnprintf(char *, size_t, const char *, va_list);
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#if defined (ENABLE_PLUGIN) && defined (HAVE_DLFCN_H)
|
||||
/* If plugin support is enabled, we could use libdl. */
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
/* Get libiberty declarations. */
|
||||
#include "libiberty.h"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue