Initial revision
[official-gcc.git] / gcc / config / alpha / xm-vms.h
blobc96423a6e5ae69f75b985dd9a53f3923ab403d80
1 /* Configuration for GNU C-compiler for openVMS/Alpha.
2 Copyright (C) 1996 Free Software Foundation, Inc.
3 Contributed by Klaus Kaempf (kkaempf@progis.de).
5 This file is part of GNU CC.
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.
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.
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. */
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. */
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <string.h>
34 #ifdef __DECC
35 #undef FILE_TYPE
36 #endif
38 #undef HOST_BITS_PER_LONG
39 #define HOST_BITS_PER_LONG 32
41 #define HOST_WIDE_INT long long
42 #define HOST_BITS_PER_WIDE_INT 64
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. */
49 /* A couple of conditionals for execution machine are controlled here. */
50 #ifndef VMS
51 #define VMS
52 #endif
54 /* Define a local equivalent (sort of) for unlink */
55 #define unlink remove
56 #define NEED_ATEXIT
58 #define NO_SYS_PARAMS_H /* Don't have <sys/params.h> */
59 #define NO_STAB_H /* Don't have <stab.h> */
60 #define USE_C_ALLOCA /* Using alloca.c */
62 #define HAVE_FCNTL_H 1
63 #define HAVE_STDLIB_H 1
64 #define HAVE_UNISTD_H 1
65 #define HAVE_STRING_H 1
66 #define STDC_HEADERS 1
68 /* Use ANSI/SYSV style byte manipulation routines instead of BSD ones. */
70 #define bcopy(s,d,n) memcpy((d),(s),(n))
71 #define bzero(d,n) memset((d),0,(n))
72 #define bcmp(l,r,n) memcmp((l),(r),(n))
74 #define index strchr
75 #define rindex strrchr
77 #if __STDC__
78 extern void *alloca (size_t);
79 #else
80 extern char *alloca (unsigned int);
81 #endif
83 #define OBJECT_SUFFIX ".obj"
84 #define EXECUTABLE_SUFFIX ".exe"
85 #define DIR_SEPARATOR ']'
86 #define PATH_SEPARATOR ','