http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48245



--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-03-23 
14:56:37 UTC ---

> 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



The linker is



@(#)PROGRAM:ld  PROJECT:ld64-97.17

llvm version 2.9svn, from Apple Clang 1.7 (build 77)



on x86_64-apple-darwin10.7.0, and



@(#)PROGRAM:ld  PROJECT:ld64-85.2.1



on powerpc-apple-darwin9.



In gcc/auto-host.h I have



...

/* Define to the level of your linker's plugin support. */

#ifndef USED_FOR_TARGET

#define HAVE_LTO_PLUGIN 0

#endif

...



and in gcc/config.log



...

| #define LTOPLUGINSONAME "liblto_plugin.so"

...

configure:23133: checking linker plugin support

configure:23163: result: 0

...

gcc_cv_lto_plugin=0

...

enable_plugin='yes'

...

pluginlibs=''

...

#define LTOPLUGINSONAME "liblto_plugin.so"

...



I have grepped the different *.log files, but I did not see any



gcc: error: -fuse-linker-plugin is not supported in this configuration

Reply via email to