This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/36282] New: Spurious warning "asm declaration ignored due to conflict with previous rename"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]