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

           Summary: '-fuse-linker-plugin' doesn't work.
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: henry0...@gmail.com


I compiled gcc version 4.6.0 20110314 (prerelease) on Mac OS X 10.6.6.

configure options:
./configure\
    --build=x86_64-apple-darwin10\
    --disable-debug\
    --disable-multilib\
    --enable-threads=posix\
    --disable-bootstrap\
    --enable-version-specific-runtime-libs\
    --enable-languages=c,c++,objc,obj-c++\
    --enable-stage1-checking\
    --disable-nls\
    --enable-werror\
    --enable-lto\
    --enable-gold\
    --enable-ld\
    --with-system-zlib\
    --enable-fully-dynamic-string

And then,
following explanation of '-flto' (
http://gcc.gnu.org/onlinedocs/gcc-4.5.2/gcc/Optimize-Options.html#Optimize-Options
),
I tested my gcc.

$ gcc -flto -c a.c
$ gcc -flto -c b.c
$ gcc -o test -O2 -flto -fuse-linker-plugin a.o b.o
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.

a.c and b.c --> http://www.privatepaste.com/34b31b77a5

My compiling environment:
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
gmp-5.0.1
mpfr-3.0.0
mpc-0.9

Reply via email to