On Thu, 29 Oct 2009, Toon Moene wrote: > Richard Guenther wrote: > > > On Thu, 29 Oct 2009, Toon Moene wrote: > > > > > You wrote: > > > > > > > I refrained from adding a 4000 file testcase ;) > > > Never mind - I have one. I didn't understand why lto1 said this: > > > > > > /usr/snp/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../x86_64-unknown-linux > > > -gnu/bin/ld: fatal error: could not open/create temporary file > > > > > > while dealing with the largest executable of our weather forecasting > > > system. > > > > > > [ BTW, you could just say ulimit -n 10 before running the test :-) ] > > > > Heh, indeed. Btw, I didn't yet hit the above error. Are you using > > the linker plugin? > > Indeed. Your fix *does* work for that case, no ?
Well, it fixes a leak in lto1 which affected both using the linker plugin and not. The above error seems to be from ld instead or the linker plugin (or maybe collect2). Richard.