This is the mail archive of the gcc-patches@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]

Re: emulating tls for systems without


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


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