public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36282]  New: Spurious warning "asm declaration ignored due to conflict with previous rename"
@ 2008-05-20 19:45 vda dot linux at googlemail dot com
  2008-05-20 19:48 ` [Bug middle-end/36282] " vda dot linux at googlemail dot com
  2010-02-17  6:18 ` raj dot khem at gmail dot com
  0 siblings, 2 replies; 13+ messages in thread
From: vda dot linux at googlemail dot com @ 2008-05-20 19:45 UTC (permalink / raw)
  To: gcc-bugs

Just run "gcc -c test.c" on this:

#pragma weak __pthread_initialize
extern void *memcpy (void *__restrict __dest,
       __const void *__restrict __src, int __n)
     __attribute__ ((__nothrow__)) __attribute__ ((__nonnull__ (1, 2)));
extern __typeof (memcpy) memcpy __asm__ ("" "__GI_memcpy") __attribute__
((visibility ("hidden")));

void f(void) {}

$ gcc -c test.c
test.c:5: warning: asm declaration ignored due to conflict with previous rename

With "#pragma weak __pthread_initialize" line commented out, it does not
happen.

$ gcc -v
Using built-in specs.
Target: i386-pc-linux-gnu
Configured with: ../gcc-4.2.1/configure --prefix=/usr/app/gcc-4.2.1
--exec-prefix=/usr/app/gcc-4.2.1 --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/app/gcc-4.2.1/libexec --datadir=/usr/app/gcc-4.2.1/share
--sysconfdir=/etc --sharedstatedir=/usr/app/gcc-4.2.1/var/com
--localstatedir=/usr/app/gcc-4.2.1/var --libdir=/usr/lib
--includedir=/usr/include --infodir=/usr/info --mandir=/usr/man
--with-slibdir=/usr/app/gcc-4.2.1/lib --with-local-prefix=/usr/local
--with-gxx-include-dir=/usr/app/gcc-4.2.1/include/g++-v3
--enable-languages=c,c++ --without-system-zlib --disable-nls
--enable-threads=posix i386-pc-linux-gnu
Thread model: posix
gcc version 4.2.1


-- 
           Summary: Spurious warning "asm declaration ignored due to
                    conflict with previous rename"
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: vda dot linux at googlemail dot com
 GCC build triplet: i386-pc-linux-gnu
  GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-12-22  2:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36282-4@http.gcc.gnu.org/bugzilla/>
2013-03-21 18:21 ` [Bug middle-end/36282] Spurious warning "asm declaration ignored due to conflict with previous rename" aldot at gcc dot gnu.org
2013-04-11  8:00 ` [Bug middle-end/36282] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2014-03-13 14:05 ` jakub at gcc dot gnu.org
2014-03-13 20:56 ` jakub at gcc dot gnu.org
2014-03-13 20:57 ` [Bug middle-end/36282] [4.7/4.8 " jakub at gcc dot gnu.org
2014-04-10  7:48 ` jakub at gcc dot gnu.org
2014-04-10  8:04 ` [Bug middle-end/36282] [4.7 " jakub at gcc dot gnu.org
2014-06-12 12:53 ` rguenth at gcc dot gnu.org
2014-06-12 12:53 ` rguenth at gcc dot gnu.org
2021-08-29 21:54 ` pinskia at gcc dot gnu.org
2021-12-22  2:09 ` pinskia at gcc dot gnu.org
2008-05-20 19:45 [Bug c/36282] New: " vda dot linux at googlemail dot com
2008-05-20 19:48 ` [Bug middle-end/36282] " vda dot linux at googlemail dot com
2010-02-17  6:18 ` raj dot khem at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).