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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-10-17 20:55:24 
UTC ---
I got

[...@gnu-32 prev-gcc]$ ./xgcc -B./ -O2  /tmp/foo.i -fuse-linker-plugin 
-fwhopr=jobserver
[...@gnu-32 prev-gcc]$ cat /tmp/foo.i
char pstat_getstatic ();
char (*f) () = pstat_getstatic;
int
main ()
{
  return f != pstat_getstatic;
}
[...@gnu-32 prev-gcc]$ ./xgcc -B./ -O2  /tmp/foo.i -fuse-linker-plugin 
-fwhopr=jobserver
[...@gnu-32 prev-gcc]$ ./xgcc -B./ -O2  /tmp/foo.i -fuse-linker-plugin 
ld.gold: /tmp/ccdoQXrS.o: in function main:foo.i(.text+0x9): error: undefined
reference to 'pstat_getstatic'
ld.gold: /tmp/ccdoQXrS.o: in function f:foo.i(.data+0x0): error: undefined
reference to 'pstat_getstatic'
collect2: ld returned 1 exit status
[...@gnu-32 prev-gcc]$ 

Revision 165569 breaks -fwhopr=jobserver.

Reply via email to