https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68881

--- Comment #7 from Uroš Bizjak <ubizjak at gmail dot com> ---
(In reply to Richard Biener from comment #2)
> Works for me but
> https://gcc.gnu.org/ml/gcc-testresults/2016-01/msg01237.html still has it.
> 
> Maybe some as feature stuff?  Tom, what target did you reproduce on?

I'm able to reproduce this on Fedora 23 using -fno-use-linker-plugin:

$ /ssd/uros/gcc-build/gcc/xgcc -B /ssd/uros/gcc-build/gcc -O2 -flto
-fno-use-linker-plugin -c attr-weakref-1_0.c 

$ /ssd/uros/gcc-build/gcc/xgcc -B /ssd/uros/gcc-build/gcc -O2 -flto
-fno-use-linker-plugin -c attr-weakref-1_1.c 

$ /ssd/uros/gcc-build/gcc/xgcc -B /ssd/uros/gcc-build/gcc -O2 -flto
-fno-use-linker-plugin -c attr-weakref-1_2.c 

$ /ssd/uros/gcc-build/gcc/xgcc -B /ssd/uros/gcc-build/gcc -O2 -flto
-fno-use-linker-plugin attr-weakref-1_0.o attr-weakref-1_1.o attr-weakref-1_2.o 
/tmp/ccydxp6I.s: Assembler messages:
/tmp/ccydxp6I.s: Error: symbol definition loop encountered at
`callmealias.lto_priv.1'
/tmp/ccydxp6I.s: Error: symbol definition loop encountered at
`callmealias.lto_priv.0'
lto-wrapper: fatal error: /ssd/uros/gcc-build/gcc/xgcc returned 1 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.

(The compilation works OK w/o -fno-use-linker-plugin.)

Reply via email to