$ /scratch/obj.i686/gcc-4.3/./gcc/xgcc -B/scratch/obj.i686/gcc-4.3/./gcc/ -B/opt/i686/gcc-4.3//i686-linux-gnu/bin/ -B/opt/i686/gcc-4.3//i686-linux-gnu/lib/ -c f?.i -combine -o /dev/null /tmp/ccqmLD9J.s: Assembler messages: /tmp/ccqmLD9J.s:3: Error: symbol `__gthrw_pthread_once' is already defined
$ cat f1.i static __gthrw_pthread_once __attribute__ ((__weakref__ ("pthread_once"))); $ cat f2.i static __gthrw_pthread_once __attribute__ ((__weakref__ ("pthread_once"))); It fails to drop duplicate weakrefs: $ /scratch/obj.i686/gcc-4.3/./gcc/xgcc -B/scratch/obj.i686/gcc-4.3/./gcc/ -B/opt/i686/gcc-4.3//i686-linux-gnu/bin/ -B/opt/i686/gcc-4.3//i686-linux-gnu/lib/ -S f?.i -combine -o - .file "f1.i" .weakref __gthrw_pthread_once,pthread_once .weakref __gthrw_pthread_once,pthread_once .ident "GCC: (GNU) 4.3.0 20070410 (experimental)" .section .note.GNU-stack,"",@progbits -- Summary: duplicate weakref emitted with IMA Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: assemble-failure Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: aldot at gcc dot gnu dot org GCC build triplet: i686-linux-gnu GCC host triplet: i686-linux-gnu GCC target triplet: i686-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31537