http://sourceware.org/bugzilla/show_bug.cgi?id=14851
--- Comment #1 from Paolo Bonzini <bonzini at gnu dot org> 2012-11-16 09:03:12 UTC --- Correct test case: g1.c: int f() { printf("strong"); return 82; } int g() { printf("strong"); return 83; } g2.c: #include <stdio.h> static int weak_f() { return 42; } static int weak_g() { return 43; } typeof(weak_f) f __attribute__((__weak__, __alias__("weak_f"))); typeof(weak_g) g __attribute__((__weak__, __alias__("weak_g"))); int main() { printf("%d/%d\n", f(), g()); } g3.c: static int default_f() { return 42; } static int default_g() { return 43; } static typeof(default_f) weak_f __attribute__((__weakref__("f"))); static typeof(default_g) weak_g __attribute__((__weakref__("g"))); int main() { printf("%d/%d\n", (weak_f?:default_f)(), (weak_g?:default_g)()); } -- 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