On Tuesday 20 May 2008 21:35, Denys Vlasenko wrote:
> On Tuesday 20 May 2008 20:52, Bernhard Fischer wrote:
> > >which should change nothing - __pthread_initialize is not mentined
> > >anywhere else
> > >in forward.i.c - and run the second command - it will NOT warn!
> > >
> > >Looks like gcc bug to me.
> >
> > hmz. I'll try to reproduce this sometimes in the next days. Do you have
> > a small standalone testcase that exposes this alleged bug that you could
> > put into the gcc bugzilla, by chance?
>
> Not yet.
Here is it. 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
$ 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36282
--
vda
_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc