[Bug middle-end/36282] Spurious warning asm declaration ignored due to conflict with previous rename

2013-03-22 Thread aldot at gcc dot gnu.org

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282

Bernhard Reutner-Fischer aldot at gcc dot gnu.org changed:

   What|Removed |Added

 CC||hubicka at ucw dot cz

--- Comment #4 from Bernhard Reutner-Fischer aldot at gcc dot gnu.org 
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 EOF | gcc -x c -c - -o /dev/null
 #pragma weak __pthread_initialize
 extern void *memcpy(void *dest, const void *src, int n);
 extern typeof(memcpy) memcpy asm(__GI_memcpy);
 EOF
 stdin:2:14: warning: conflicting types for built-in function ‘memcpy’
 [enabled by default]
 stdin: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 EOF | gcc -fno-builtin -x c -c - -o /dev/null
extern void __pthread_initialize (void);
#pragma weak __pthread_initialize
extern void *memcpy(void *dest, const void *src, int n);
extern typeof(memcpy) memcpy asm(__GI_memcpy);
EOF
$ cat EOF | gcc -fno-builtin -x c -c - -o /dev/null
#pragma weak __pthread_initialize
extern void __pthread_initialize (void);
extern void *memcpy(void *dest, const void *src, int n);
extern typeof(memcpy) memcpy asm(__GI_memcpy);
EOF
stdin: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

2013-03-21 Thread aldot at gcc dot gnu.org

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282

Bernhard Reutner-Fischer aldot at gcc dot gnu.org 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 aldot at gcc dot gnu.org 
2013-03-21 18:21:00 UTC ---
Confirmed.

Still the same with gcc version 4.7.2 (Debian 4.7.2-5):
$ cat EOF | gcc -x c -c - -o /dev/null
#pragma weak __pthread_initialize
extern void *memcpy(void *dest, const void *src, int n);
extern typeof(memcpy) memcpy asm(__GI_memcpy);
EOF
stdin:2:14: warning: conflicting types for built-in function ‘memcpy’
[enabled by default]
stdin: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

2010-02-16 Thread raj dot khem at gmail dot com


--- 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

2008-05-20 Thread vda dot linux at googlemail dot com


--- 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