This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PCH merge: bootstrap failure, gengtype consumes all file descriptors
> Date: Tue, 11 Jun 2002 01:36:23 -0700
> Cc: ghazi@caip.rutgers.edu, gcc-bugs@gcc.gnu.org, gcc@gcc.gnu.org
> Content-Disposition: inline
> User-Agent: Mutt/1.3.28i
> From: Zack Weinberg <zack@codesourcery.com>
>
> On Mon, Jun 10, 2002 at 08:01:13PM -0700, Geoff Keating wrote:
> > > Can gengtype.c be changed so that we operate on only one of its output
> > > files at a time so as not to consume so many file descriptors?
> >
> > It's possible but not easy. Probably the easiest thing would be to
> > close and re-open the temporary files during processing. Of course,
> > that requires knowing their names...
> >
> > 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.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>