Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / gcc / config / alpha / xm-vms.h
1 /* Configuration for GNU C-compiler for openVMS/Alpha.
2    Copyright (C) 1996, 1997 Free Software Foundation, Inc.
3    Contributed by Klaus Kaempf (kkaempf@progis.de).
4
5 This file is part of GNU CC.
6
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
11
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 /* If compiling with DECC, need to fix problem with <stdio.h>
23    which defines a macro called FILE_TYPE that breaks "tree.h".
24    Fortunately it uses #ifndef to suppress multiple inclusions.
25    Three possible cases:
26         1) <stdio.h> has already been included -- ours will be no-op;
27         2) <stdio.h> will be included after us -- "theirs" will be no-op;
28         3) <stdio.h> isn't needed -- including it here shouldn't hurt.
29    In all three cases, the problem macro will be removed here.  */
30
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <string.h>
34 #ifdef __DECC
35 #undef FILE_TYPE
36 #endif
37
38 #undef HOST_BITS_PER_LONG
39 #define HOST_BITS_PER_LONG 32
40
41 #define HOST_WIDE_INT long long
42 #define HOST_BITS_PER_WIDE_INT 64
43
44 #undef SUCCESS_EXIT_CODE
45 #define SUCCESS_EXIT_CODE 1
46 #undef FATAL_EXIT_CODE
47 #define FATAL_EXIT_CODE (44 | 0x10000000)  /* Abort, and no DCL message.  */
48
49 /* A couple of conditionals for execution machine are controlled here.  */
50 #ifndef VMS
51 #define VMS
52 #endif
53
54 #define GCC_INCLUDE_DIR ""
55 /* Specify the list of include file directories.  */
56 #define INCLUDE_DEFAULTS                \
57 {                                       \
58   { "GNU_GXX_INCLUDE:", "G++", 1, 1 },  \
59   { "GNU_CC_INCLUDE:", "GCC", 0, 0 },   \
60   { ".", 0, 0, 1 },                     \
61   { 0, 0, 0, 0 }                        \
62 }
63
64 /* Define a local equivalent (sort of) for unlink */
65 #define unlink remove
66
67 #define NEED_ATEXIT
68 #define HAVE_VPRINTF
69 #define HAVE_PUTENV
70 #define HAVE_STRERROR
71 #define HAVE_ATOLL
72
73 #define NO_SYS_PARAMS_H         /* Don't have <sys/params.h> */
74 #define USE_C_ALLOCA            /* Using alloca.c */
75
76 #define HAVE_FCNTL_H 1
77 #define HAVE_STDLIB_H 1
78 #define HAVE_UNISTD_H 1
79 #define HAVE_STRING_H 1
80 #define HAVE_LIMITS_H 1
81 #define HAVE_STDDEF_H 1
82 #define HAVE_TIME_H 1
83 #define STDC_HEADERS 1
84 #define HAVE_CPP_STRINGIFY 1
85
86 #if __STDC__
87 extern void *alloca (size_t);
88 #else
89 extern char *alloca (unsigned int);
90 #endif
91
92 #define OBJECT_SUFFIX ".obj"
93 #define EXECUTABLE_SUFFIX ".exe"