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. Sample output: Cannot create temporary file in /root/srcdevel/gcc/testdir/: Permission denied ./z.sh: line 13: 6115 Aborted TMP=$PWD/testdir i486-linux-uclibc-gcc -o t t.c Please ACK or comment. Thanks. -- vda