aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/alpha
diff options
context:
space:
mode:
authorDouglas B Rupp <rupp@gnat.com>2004-04-29 15:28:42 +0000
committerDouglas Rupp <rupp@gcc.gnu.org>2004-04-29 15:28:42 +0000
commit8fd583973e51d76536f33d0d57120bf69e43f408 (patch)
tree7cc52a06db61f0e92a9c98a34aa14fcf0072b299 /gcc/config/alpha
parentd935a36e27c5a15e05cabdc6b6e9b6d68538a14f (diff)
downloadgcc-8fd583973e51d76536f33d0d57120bf69e43f408.zip
gcc-8fd583973e51d76536f33d0d57120bf69e43f408.tar.gz
gcc-8fd583973e51d76536f33d0d57120bf69e43f408.tar.bz2
gcc.c (DELETE_IF_ORDINARY): New macro default definition.
* gcc.c (DELETE_IF_ORDINARY): New macro default definition. (delete_if_ordinary): Use above macro. * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition. Update copyright. * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro. * libiberty/mkstemps.c (mkstemps) [VMS]: Remove special open option. Update copyright. From-SVN: r81290
Diffstat (limited to 'gcc/config/alpha')
-rw-r--r--gcc/config/alpha/xm-vms.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/config/alpha/xm-vms.h b/gcc/config/alpha/xm-vms.h
index bdac52e..cf18b2f 100644
--- a/gcc/config/alpha/xm-vms.h
+++ b/gcc/config/alpha/xm-vms.h
@@ -1,5 +1,5 @@
/* Configuration for GNU C-compiler for openVMS/Alpha.
- Copyright (C) 1996, 1997, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2001, 2004 Free Software Foundation, Inc.
Contributed by Klaus Kaempf (kkaempf@progis.de).
This file is part of GCC.
@@ -43,3 +43,15 @@ Boston, MA 02111-1307, USA. */
#define HOST_OBJECT_SUFFIX ".obj"
#define DUMPFILE_FORMAT "_%02d_"
+
+#define DELETE_IF_ORDINARY(NAME,ST,VERBOSE_FLAG) \
+do \
+ { \
+ while (stat (NAME, &ST) >= 0 && S_ISREG (ST.st_mode)) \
+ if (unlink (NAME) < 0) \
+ { \
+ if (VERBOSE_FLAG) \
+ perror_with_name (NAME); \
+ break; \
+ } \
+ } while (0)