http://sourceware.org/bugzilla/show_bug.cgi?id=12248
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-23 23:39:05 UTC --- Created attachment 5136 --> http://sourceware.org/bugzilla/attachment.cgi?id=5136 A new testcase -pass-through is a hack, not a real solution. Here is a testcase where __udivdi3 in div.c should override the one in libgcc.a: [...@gnu-6 pr12245-2]$ make /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O2 -fwhole-program -flto=jobserver -fuse-linker-plugin -c -o y.o y.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O2 -fwhole-program -flto=jobserver -fuse-linker-plugin -c -o x.o x.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -c -o div.o div.c ar rv libdiv.a div.o r - div.o /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -B./ -o foo -O2 -fwhole-program -flto=jobserver -fuse-linker-plugin y.o x.o libdiv.a ./foo 2145852098 make: *** [all] Aborted [...@gnu-6 pr12245-2]$ make clean rm -f *.o foo a.out [...@gnu-6 pr12245-2]$ make CFLAGS=-O3 /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O3 -c -o y.o y.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O3 -c -o x.o x.c /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -O3 -c -o div.o div.c ar rv libdiv.a div.o r - div.o /export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -m32 -B./ -o foo -O3 y.o x.o libdiv.a ./foo 1 [...@gnu-6 pr12245-2]$ -- 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils