PCH merge: bootstrap failure, gengtype consumes all file descriptors

Zack Weinberg zack@codesourcery.com
Tue Jun 11 09:58:00 GMT 2002


On Tue, Jun 11, 2002 at 09:21:41AM -0700, Geoff Keating wrote:
> > > 
> > > Care to suggest a patch?
> > 
> > We're looking at ~100K of data.  Why not build each file in memory,
> > using say an obstack for each, then blat them all to disk when done?
> 
> That's another solution, but it is not as easy, since I don't think we
> have an obstack_printf, so you'd have to rewrite much more of gengtype.c.

The glibc obstack_printf knows stdio internals, so we can't just steal
it, but I think a portable implementation should be doable.  It's easy
on a system with C99-compliant snprintf, and somewhat harder elsewhere.

zw



More information about the Gcc mailing list