------- Comment #5 from aldot at gcc dot gnu dot org 2008-01-31 15:05 ------- Works with gcc-4.1.2 (if one prunes the 'static' of the weakref; They were required to be public back then):
$ gcc-4.1 pr35034-1.c pr35034-2.c -O0 -S -o - -combine -pipe .file "pr35034-1.c" .text .globl size_of_encoded_value .type size_of_encoded_value, @function size_of_encoded_value: pushl %ebp movl %esp, %ebp popl %ebp ret .size size_of_encoded_value, .-size_of_encoded_value .weakref __gthrw_pthread_once,pthread_once .ident "GCC: (GNU) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)" .section .note.GNU-stack,"",@progbits -- aldot at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |4.1.2 Summary|assembler errors when |[4.3 Regression] assembler |building gcc/unwind-*.c at -|errors when building |O0 or -O1 |gcc/unwind-*.c at -O0 or -O1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35034