[Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282 Bernhard Reutner-Fischer changed: What|Removed |Added CC||hubicka at ucw dot cz --- Comment #4 from Bernhard Reutner-Fischer 2013-03-22 12:59:10 UTC --- (In reply to comment #3) > Confirmed. > > Still the same with gcc version 4.7.2 (Debian 4.7.2-5): > $ cat < #pragma weak __pthread_initialize > extern void *memcpy(void *dest, const void *src, int n); > extern typeof(memcpy) memcpy asm("__GI_memcpy"); > EOF > :2:14: warning: conflicting types for built-in function ‘memcpy’ > [enabled by default] > :3:1: warning: asm declaration ignored due to conflict with previous > rename [-Wpragmas] Works as expected if one provides a decl before the #pragma: $ cat <:4:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas] Honza, does that ring a bell, by chance?
[Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename"
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282 Bernhard Reutner-Fischer changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2013-03-21 CC||aldot at gcc dot gnu.org Ever Confirmed|0 |1 --- Comment #3 from Bernhard Reutner-Fischer 2013-03-21 18:21:00 UTC --- Confirmed. Still the same with gcc version 4.7.2 (Debian 4.7.2-5): $ cat <:2:14: warning: conflicting types for built-in function ‘memcpy’ [enabled by default] :3:1: warning: asm declaration ignored due to conflict with previous rename [-Wpragmas]
[Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename"
--- Comment #2 from raj dot khem at gmail dot com 2010-02-17 06:18 --- this warning also triggers with current head/4.5.0 -- raj dot khem at gmail dot com changed: What|Removed |Added CC||raj dot khem at gmail dot ||com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282
[Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename"
--- Comment #1 from vda dot linux at googlemail dot com 2008-05-20 19:48 --- Simplified case: #pragma weak __pthread_initialize extern void *memcpy(void *dest, const void *src, int n); extern typeof(memcpy) memcpy asm("__GI_memcpy"); void f(void) {} -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282