diff options
author | Douglas B Rupp <rupp@gnat.com> | 2002-01-15 09:34:56 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2002-01-15 09:34:56 -0500 |
commit | 0e83ceb1b98bc601d6509f47417b37af63cd81d6 (patch) | |
tree | 2d3741d98db375c1bfe9eb45b48d99e89bbf5b04 /gcc/gcc.c | |
parent | 9a52433e8a3895cfef67eabcf9d0021b67827026 (diff) | |
download | gcc-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |