bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12293] LTO does not work if all IR objects are sitting in static


From: hjl.tools at gmail dot com
Subject: [Bug ld/12293] LTO does not work if all IR objects are sitting in static archives
Date: Tue, 7 Dec 2010 18:16:34 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12293

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2010-12-07 18:16:24 
UTC ---
I got

address@hidden pr12245-10]$ make
/usr/gcc-4.6/bin/gcc  -O -flto -c -o main.o main.c
/usr/gcc-4.6/bin/gcc  -O -flto -c -o foo.o foo.c
/usr/gcc-4.6/bin/gcc  -O -c -o bar.o bar.c
ar cr prog.o main.o foo.o bar.o
/usr/gcc-4.6/bin/gcc  -O -flto -fuse-linker-plugin  -o prog prog.o
./prog
Hello from foo!
Hello from bar!
address@hidden pr12245-10]$ 

It looks OK to me.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]