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.
> Does the following patch help?
> 
> 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* tsystem.h [inhibit_libc] (calloc, realloc): New prototypes.

   It does.

-- 
Rask Ingemann Lambertsen


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