http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48245
--- Comment #1 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> 2011-03-23 10:58:36 UTC --- > Before revision 171039 the test was unsupported: > > UNSUPPORTED: /opt/gcc/p_work/gcc/testsuite/gcc.dg/lto/pr46940_0.c > > because the test for 'check_linker_plugin_available' in > /opt/gcc/p_work/gcc/testsuite/lib/target-supports.exp returned > > gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found > > while following revision 171039 the same test compiles and executes without > error. Which linker do you use, and what's the value of HAVE_LTO_PLUGIN in gcc/auto-host.h? Could you check the gcc/config.log snippet for the linker plugin support test. If, as I assume, you're using the Darwin linker, HAVE_LTO_PLUGIN should be 0 and you should get the following error for the linker_plugin test: gcc: error: -fuse-linker-plugin is not supported in this configuration Rainer