|
From: | hjl.tools at gmail dot com |
Subject: | [Bug ld/12314] No LTO, LD silently links to non-IR code |
Date: | Sun, 23 Jan 2011 19:12:30 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12314 --- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-23 19:12:29 UTC --- I checked in a different fix with commit baf9b44566e088687f28f9fe476122876c1d2f4d. Now you will get /usr/gcc-4.6/bin/gcc -B./ -O -flto -c -o bar.o bar.c ar cr libbar.a bar.o /usr/gcc-4.6/bin/gcc -B./ -O -flto -fuse-linker-plugin -o prog1 -L. main.c -lbar foo.c /tmp/cc9q7ek9.ltrans0.ltrans.o: In function `main': cc9q7ek9.ltrans0.o:(.text+0x5): undefined reference to `bar' collect2: ld returned 1 exit status make: *** [prog1] Error 1 -- 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.
[Prev in Thread] | Current Thread | [Next in Thread] |