[PATCH] gcc cannot deal with full /tmp

Joseph S. Myers joseph@codesourcery.com
Mon Jul 28 19:19:00 GMT 2008


On Mon, 28 Jul 2008, Denys Vlasenko wrote:

> Hi,
> 
> This is a trivial fix for
> https://bugzilla.redhat.com/show_bug.cgi?id=203231
> 
> This bug is actually in libiberty, thus I post the patch to both gcc and
> binutils list.
> 
> Bug description:
> mkstemps() loops TMP_MAX times even if open error is fatal. This creates
> an impression that gcc hung (TMP_MAX is ~200000). Moreover, when it does
> finish looping and returns to make_temp_file(), make_temp_file()
> just abort()s without good error message.
> 
> The patch deals with both problems.

This probably needs testing for MinGW; Windows has its own error reporting 
mechanisms and I don't know if you'll get the desired POSIX errno values.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Binutils mailing list