More alloca patches

Richard Henderson rth@cygnus.com
Mon Nov 1 16:14:00 GMT 1999


On Mon, Nov 01, 1999 at 04:20:23PM -0700, Mark P. Mitchell wrote:
> 	* bitmap.h (BITMAP_XMALLOC): New macro.

I don't think this is the right approach here.  We're allocating 
3 words which should just IMO be allocated on the stack as normal
local storage.

I don't think it's that difficult interface-wise to do something like

> !   uid_volatile = BITMAP_XMALLOC ();

   bitmap_head uid_volatile_head;
   uid_volatile = bitmap_initialize (&uid_volatile_head);

I think what we're currently doing is being over-general for no
visible benefit.

Michael, you originally wrote this stuff, did you have a particular
reason for this method?


r~


More information about the Gcc-patches mailing list