malloc protoype in egcs

Jeffrey A Law law@cygnus.com
Mon Sep 22 23:12:00 GMT 1997


  In message < m0xDN4g-0004ecC@ocean.lucon.org >you write:
  > In my current prototyping patch, I used
  > 
  > extern GENERIC_PTR xmalloc              PROTO((unsigned));
  > extern GENERIC_PTR xrealloc             PROTO((GENERIC_PTR, unsigned));
  > extern GENERIC_PTR xcalloc              PROTO((unsigned, unsigned));
  > 
  > The reasons I used unsigned instead of ssize_t are
  > 
  > 1. ssize_t may be available when building gcc.
  > 2. ssize_t may not be correct for the malloc being used.
  > 
  > The drawback is "unsigned" may not be correct either. But we only
  > need to worry about it in the file where xmalloc/xrealloc/xcalloc
  > are defined. Unless it is worse than no prototype at all, which is
  > the case today, I think "unsigned" is a better choice.
  > 
  > Any ideas?
Ignore this for now.  I've asked you to punt this issue several
time so that we can concentrate on getting the other patches
that don't have technical problems installed.

Please please please punt this issue until we get the
non-controversial stuff in.

Similarly for the braindamage with the rtl.def & tree.def related
patches.

Jeff



More information about the Gcc mailing list