diff options
author | Douglas B Rupp <rupp@gnat.com> | 2001-11-19 07:17:28 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-11-19 07:17:28 -0500 |
commit | 394f41b6ccd34809f140d3361952abe1aa9d2ec0 (patch) | |
tree | a9366575c5661f64c2aeb0cc3e9fe4ea04f87315 | |
parent | aa6ad1a68bf94672cbc9f4c3aef60640cbc95a0a (diff) | |
download | gcc-394f41b6ccd34809f140d3361952abe1aa9d2ec0.zip gcc-394f41b6ccd34809f140d3361952abe1aa9d2ec0.tar.gz gcc-394f41b6ccd34809f140d3361952abe1aa9d2ec0.tar.bz2 |
xm-vms.h: Don't define macros that autoconf handles.
* config/alpha/xm-vms.h: Don't define macros that autoconf handles.
(SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
* gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
From-SVN: r47170
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/alpha/xm-vms.h | 23 | ||||
-rw-r--r-- | gcc/gcc.c | 4 |
3 files changed, 14 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cdce1b9..4f58268 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Mon Nov 19 07:21:35 2001 Douglas B. Rupp <rupp@gnat.com> + + * config/alpha/xm-vms.h: Don't define macros that autoconf handles. + (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility. + * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h. + 2001-11-19 Jason Merrill <jason@redhat.com> * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing diff --git a/gcc/config/alpha/xm-vms.h b/gcc/config/alpha/xm-vms.h index 08b9739..5ab7ab8 100644 --- a/gcc/config/alpha/xm-vms.h +++ b/gcc/config/alpha/xm-vms.h @@ -38,10 +38,16 @@ Boston, MA 02111-1307, USA. */ #define HOST_WIDE_INT long long #define HOST_BITS_PER_WIDE_INT 64 +/* Override values in stdlib.h since gcc uses __posix_exit */ #undef SUCCESS_EXIT_CODE -#define SUCCESS_EXIT_CODE 1 +#define SUCCESS_EXIT_CODE 0 #undef FATAL_EXIT_CODE -#define FATAL_EXIT_CODE (44 | 0x10000000) /* Abort, and no DCL message. */ +#define FATAL_EXIT_CODE (1) +#ifdef exit +#undef exit +#endif +#define exit __posix_exit +void __posix_exit (int); /* A couple of conditionals for execution machine are controlled here. */ #ifndef VMS @@ -61,20 +67,7 @@ Boston, MA 02111-1307, USA. */ /* Define a local equivalent (sort of) for unlink */ #define unlink remove -#define HAVE_VPRINTF -#define HAVE_PUTENV -#define HAVE_STRERROR -#define HAVE_ATOLL - -#define HAVE_FCNTL_H 1 -#define HAVE_STDLIB_H 1 -#define HAVE_UNISTD_H 1 -#define HAVE_STRING_H 1 -#define HAVE_LIMITS_H 1 -#define HAVE_STDDEF_H 1 -#define HAVE_TIME_H 1 #define STDC_HEADERS 1 -#define HAVE_STRINGIZE 1 #define HOST_EXECUTABLE_SUFFIX ".exe" #define HOST_OBJECT_SUFFIX ".obj" @@ -81,10 +81,6 @@ compilation is specified by a string called a "spec". */ #include "prefix.h" #include "gcc.h" -#ifdef VMS -#define exit __posix_exit -#endif - #ifdef HAVE_SYS_RESOURCE_H #include <sys/resource.h> #endif |