This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: emulating tls for systems without
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 2 Jul 2007 15:32:06 +0200
- Subject: Re: emulating tls for systems without
- References: <20060920143207.GO12531@devserv.devel.redhat.com> <20060921015910.GE5186@redhat.com> <20061004211212.GA15142@redhat.com> <20070702100005.GX5690@sygehus.dk> <20070702121608.GB7012@devserv.devel.redhat.com>
On Mon, Jul 02, 2007 at 08:16:08AM -0400, Jakub Jelinek wrote:
> On Mon, Jul 02, 2007 at 12:00:05PM +0200, Rask Ingemann Lambertsen wrote:
> >
> > /n/12/rask/src/all/libgcc/../gcc/emutls.c: In function '__emutls_get_address':
> > /n/12/rask/src/all/libgcc/../gcc/emutls.c:156: warning: implicit declaration of function 'calloc'
> > /n/12/rask/src/all/libgcc/../gcc/emutls.c:156: warning: incompatible implicit declaration of built-in function 'calloc'
> > /n/12/rask/src/all/libgcc/../gcc/emutls.c:168: warning: implicit declaration of function 'realloc'
> > /n/12/rask/src/all/libgcc/../gcc/emutls.c:168: warning: assignment makes pointer from integer without a cast
>
> You haven't mentioned this is a -Dinhibit_libc build, but it must be IMHO.
It appears to be, yes. I'm trying to bootstrap trunk revision 126176 on
x86_64-unknown-linux-gnu. The command line which produces the warnings is
this:
/home/rask/build/gcc-x86_64-unknown-linux-gnu/./gcc/xgcc -B/home/rask/build/gcc-x86_64-unknown-linux-gnu/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -g -O2 -O2
-O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I/n/12/rask/src/all/libgcc -I/n/12/rask/src/all/libgcc/. -I/n/12/rask/src/all/libgcc/../gcc -I/n/12/rask/src/all/libgcc/../include -I/n/12/rask/src/all/libgcc/../libdecnumber/bid -I/n/12/rask/src/all/libgcc/../libdecnumber -I../../libdecnumber -o emutls_s.o -MT emutls_s.o -MD -MP -MF emutls_s.dep -DSHARED -fexceptions -c /n/12/rask/src/all/libgcc/../gcc/emutls.c
> Does the following patch help?
I'll try it.
--
Rask Ingemann Lambertsen