This is the mail archive of the gcc-bugs@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: PCH merge: bootstrap failure, gengtype consumes all file descriptors


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


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