http://sourceware.org/bugzilla/show_bug.cgi?id=12760
--- Comment #7 from Alan Modra <amodra at gmail dot com> 2011-05-16 13:52:20
UTC ---
modified bar.c testing other warning sym cases
#define linker_warning(x, msg) \
asm(".section .gnu.warning." #x "\n\t.previous"); \
static const char __warn_##x[] \
__attribute__((used, section(".gnu.warning." #x "\n\t#"))) \
= msg
volatile int x;
void bar (void) { x++; }
linker_warning(bar, "should warn about bar");
void notcalled (void) { x--; }
linker_warning(notcalled, "linker bug, should not warn about notcalled");
linker_warning(notdef, "linker bug, should not warn about notdef");
--
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
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils