]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/vms/xm-vms.h
Update copyright years.
[thirdparty/gcc.git] / gcc / config / vms / xm-vms.h
CommitLineData
71cd2220
DR
1/* Configuration for GCC for hosting on VMS
2 using a Unix style C library.
99dee823 3 Copyright (C) 1996-2021 Free Software Foundation, Inc.
aacdb8bb 4
7ec022b2 5This file is part of GCC.
aacdb8bb 6
7ec022b2 7GCC is free software; you can redistribute it and/or modify
aacdb8bb 8it under the terms of the GNU General Public License as published by
2f83c7d6 9the Free Software Foundation; either version 3, or (at your option)
aacdb8bb
RK
10any later version.
11
7ec022b2 12GCC is distributed in the hope that it will be useful,
aacdb8bb
RK
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
2f83c7d6
NC
18along with GCC; see the file COPYING3. If not see
19<http://www.gnu.org/licenses/>. */
aacdb8bb 20
aacdb8bb
RK
21/* A couple of conditionals for execution machine are controlled here. */
22#ifndef VMS
23#define VMS
24#endif
25
a6e50ecb 26/* Causes exit() to be redefined to __posix_exit() and
71cd2220 27 Posix compatible failure and success codes to be used. */
a6e50ecb
DR
28#define _POSIX_EXIT 1
29
71cd2220 30/* Open files in stream mode if not otherwise explicitly specified. */
1dfc5385
DR
31#define __UNIX_FOPEN 1
32
71cd2220 33/* Write to stdout using fputc to avoid record terminators in pipes. */
b230e057
DR
34#define __UNIX_FWRITE 1
35
aacdb8bb 36#define STDC_HEADERS 1
aacdb8bb 37
45936a85
DD
38#define HOST_EXECUTABLE_SUFFIX ".exe"
39#define HOST_OBJECT_SUFFIX ".obj"
6baf9874
DR
40
41#define DUMPFILE_FORMAT "_%02d_"
8fd58397
DR
42
43#define DELETE_IF_ORDINARY(NAME,ST,VERBOSE_FLAG) \
44do \
45 { \
46 while (stat (NAME, &ST) >= 0 && S_ISREG (ST.st_mode)) \
47 if (unlink (NAME) < 0) \
48 { \
49 if (VERBOSE_FLAG) \
50 perror_with_name (NAME); \
51 break; \
52 } \
53 } while (0)
71cd2220 54
e2b30a44
TG
55/* If 64 bit pointers are used, use 64 bit specifier. */
56
57#if (defined (__INITIAL_POINTER_SIZE) && __INITIAL_POINTER_SIZE == 64) \
58 || defined (__LONG_POINTERS)
59#define HOST_LONG_FORMAT "ll"
60#define HOST_PTR_PRINTF "%llp"
61#endif
62
71cd2220 63#define STANDARD_STARTFILE_PREFIX "/gnu/lib/"