aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorDouglas B Rupp <rupp@gnat.com>2002-01-15 09:34:56 -0500
committerRichard Kenner <kenner@gcc.gnu.org>2002-01-15 09:34:56 -0500
commit0e83ceb1b98bc601d6509f47417b37af63cd81d6 (patch)
tree2d3741d98db375c1bfe9eb45b48d99e89bbf5b04 /gcc/gcc.c
parent9a52433e8a3895cfef67eabcf9d0021b67827026 (diff)
downloadgcc-0e83ceb1b98bc601d6509f47417b37af63cd81d6.zip
gcc-0e83ceb1b98bc601d6509f47417b37af63cd81d6.tar.gz
gcc-0e83ceb1b98bc601d6509f47417b37af63cd81d6.tar.bz2
mkstemps.c (mkstemps): On VMS, open temp file with option that causes it to be deleted when closed.
* libiberty/mkstemps.c (mkstemps): On VMS, open temp file with option that causes it to be deleted when closed. * gcc/gcc.c (delete_if_ordinary): Backout previous change. From-SVN: r48872
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index d5472d3..65ee5fa 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -2110,9 +2110,7 @@ delete_if_ordinary (name)
if (i == 'y' || i == 'Y')
#endif /* DEBUG */
- /* On VMS, more than one version of the temporary file may have been
- created. This ensures we delete all of them. */
- while (stat (name, &st) >= 0 && S_ISREG (st.st_mode))
+ if (stat (name, &st) >= 0 && S_ISREG (st.st_mode))
if (unlink (name) < 0)
if (verbose_flag)
perror_with_name (name);