comparison gcc/config/s390/tpf.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 /* Definitions for target OS TPF for GNU compiler, for IBM S/390 hardware 1 /* Definitions for target OS TPF for GNU compiler, for IBM S/390 hardware
2 Copyright (C) 2003-2017 Free Software Foundation, Inc. 2 Copyright (C) 2003-2018 Free Software Foundation, Inc.
3 Contributed by P.J. Darcy (darcypj@us.ibm.com), 3 Contributed by P.J. Darcy (darcypj@us.ibm.com),
4 Hartmut Penner (hpenner@de.ibm.com), and 4 Hartmut Penner (hpenner@de.ibm.com), and
5 Ulrich Weigand (uweigand@de.ibm.com). 5 Ulrich Weigand (uweigand@de.ibm.com).
6 6
7 This file is part of GCC. 7 This file is part of GCC.
8 8
9 GCC is free software; you can redistribute it and/or modify it under 9 GCC is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free 10 the terms of the GNU General Public License as published by the Free
28 #define TARGET_TPF 1 28 #define TARGET_TPF 1
29 #undef ASM_APP_ON 29 #undef ASM_APP_ON
30 #define ASM_APP_ON "#APP\n" 30 #define ASM_APP_ON "#APP\n"
31 #undef ASM_APP_OFF 31 #undef ASM_APP_OFF
32 #define ASM_APP_OFF "#NO_APP\n" 32 #define ASM_APP_OFF "#NO_APP\n"
33 #define NO_IMPLICIT_EXTERN_C
34 #define TARGET_POSIX_IO 33 #define TARGET_POSIX_IO
35 34
36 #undef SIZE_TYPE 35 #undef SIZE_TYPE
37 #define SIZE_TYPE ("long unsigned int") 36 #define SIZE_TYPE ("long unsigned int")
38 #undef PTRDIFF_TYPE 37 #undef PTRDIFF_TYPE
43 #define WCHAR_TYPE_SIZE 32 42 #define WCHAR_TYPE_SIZE 32
44 43
45 44
46 /* TPF OS specific stack-pointer offset. */ 45 /* TPF OS specific stack-pointer offset. */
47 #undef STACK_POINTER_OFFSET 46 #undef STACK_POINTER_OFFSET
48 #define STACK_POINTER_OFFSET 448 47 #define STACK_POINTER_OFFSET 448
49 48
50 /* When building for TPF, set a generic default target that is 64 bits. Also 49 /* When building for TPF, set a generic default target that is 64 bits. Also
51 enable TPF profiling support and the standard backchain by default. */ 50 enable TPF profiling support and the standard backchain by default. */
52 #undef TARGET_DEFAULT 51 #undef TARGET_DEFAULT
53 #define TARGET_DEFAULT (MASK_TPF_PROFILING | MASK_64BIT | MASK_ZARCH \ 52 #define TARGET_DEFAULT (MASK_TPF_PROFILING | MASK_64BIT | MASK_ZARCH \
93 /* Rewrite -march=arch* options to the original CPU name in order to 92 /* Rewrite -march=arch* options to the original CPU name in order to
94 make it work with older binutils. */ 93 make it work with older binutils. */
95 #undef ASM_SPEC 94 #undef ASM_SPEC
96 #define ASM_SPEC \ 95 #define ASM_SPEC \
97 "%{m31&m64}%{mesa&mzarch}%{march=z*}" \ 96 "%{m31&m64}%{mesa&mzarch}%{march=z*}" \
98 "%{march=arch3:-march=g5}" \
99 "%{march=arch5:-march=z900}" \ 97 "%{march=arch5:-march=z900}" \
100 "%{march=arch6:-march=z990}" \ 98 "%{march=arch6:-march=z990}" \
101 "%{march=arch7:-march=z9-ec}" \ 99 "%{march=arch7:-march=z9-ec}" \
102 "%{march=arch8:-march=z10}" \ 100 "%{march=arch8:-march=z10}" \
103 "%{march=arch9:-march=z196}" \ 101 "%{march=arch9:-march=z196}" \
105 "%{march=arch11:-march=z13}" \ 103 "%{march=arch11:-march=z13}" \
106 " -alshd=%b.lst" 104 " -alshd=%b.lst"
107 105
108 #undef LIB_SPEC 106 #undef LIB_SPEC
109 #define LIB_SPEC "-lCTIS -lCISO -lCLBM -lCTAL -lCFVS -lCTBX -lCTXO \ 107 #define LIB_SPEC "-lCTIS -lCISO -lCLBM -lCTAL -lCFVS -lCTBX -lCTXO \
110 -lCJ00 -lCTDF -lCOMX -lCOMS -lCTHD -lCTAD -lTPFSTUB" 108 -lCJ00 -lCTDF -lCOMX -lCOMS -lCTHD -lCTAD -lTPFSTUB"
111 109
112 #define ENTRY_SPEC "%{mmain:-entry=_start} \ 110 #define ENTRY_SPEC "%{mmain:-entry=_start} \
113 %{!mmain:-entry=0}" 111 %{!mmain:-entry=0}"
114 112
115 /* All linking is done shared on TPF-OS. */ 113 /* All linking is done shared on TPF-OS. */
116 /* FIXME: When binutils patch for new emulation is committed 114 /* FIXME: When binutils patch for new emulation is committed
117 then change emulation to elf64_s390_tpf. */ 115 then change emulation to elf64_s390_tpf. */
118 #undef LINK_SPEC 116 #undef LINK_SPEC