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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-15 20:13:59 
UTC ---
It still doesn't work:

[hjl@gnu-6 pr13278]$ cat foo.c
int foo(void)
{
  return 0;
}
[hjl@gnu-6 pr13278]$ cat bar.c
int bar (void)
{
  return 0;
}
[hjl@gnu-6 pr13278]$ cat main.c
extern int foo ();
extern int bar ();

int
main ()
{
  return foo () + bar ();
}
[hjl@gnu-6 pr13278]$ make
/usr/gcc-4.7.0-x32/bin/gcc    -c -o main.o main.c
/usr/gcc-4.7.0-x32/bin/gcc    -c -o bar.o bar.c
/usr/gcc-4.7.0-x32/bin/gcc -flto -fno-fat-lto-objects -c -o foo.o foo.c
ar -o lib.a --plugin
/usr/gcc-4.7.0-x32/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/liblto_plugin.so
-rcsD bar.o foo.o
/usr/gcc-4.7.0-x32/bin/gcc -flto -o x main.o lib.a
main.o: In function `main':
main.c:(.text+0xf): undefined reference to `foo'
collect2: error: ld returned 1 exit status
make: *** [x] Error 1
[hjl@gnu-6 pr13278]$

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to