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

Re: egcs-19980531, warning patches [part 1/2]



  In message <9806080420.AA37828@rios1.watson.ibm.com>you write:
  > 	I don't understand what Jeff's demonstration that the HPUX kernel
  > does not contain the symbol calloc proves.
Actually, that was a 4.4BSD kernel, not hpux.

What is shows is that if we start using calloc, and I want to compile
my 4.4 kernel with egcs, then I may now have to start providing calloc
for the kernel to link.

While it is simple to add the routine to the kernel, the fact that
gcc requires such routines to be added to the kernel has been a
source of major complaints for kernel developers for years.

Kernel developers, after protest, have added memcpy, memset and other
routines to their kernels so they can be compiled with gcc.  Making
them add more routines does not help us from a public relations
standpoint.

Granted, this will only be needed if one tries to do block profiling
of the kernel, but I don't want to see us starting adding references
to new library routines in libgcc.  It's just the wrong thing to do
for what is supposed to be support routines for things the compiler
can't do itself (ie floating point emulation, wide integer operations,
some EH things, etc).



jeff


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