1 /* Definitions for target OS TPF for GNU compiler, for IBM S/390 hardware
2 Copyright (C) 2003 Free Software Foundation, Inc.
3 Contributed by P.J. Darcy (darcypj@us.ibm.com),
4 Hartmut Penner (hpenner@de.ibm.com), and
5 Ulrich Weigand (uweigand@de.ibm.com).
7 This file is part of GCC.
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
11 Software Foundation; either version 2, or (at your option) any later
14 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING. If not, write to the Free
21 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
27 /* TPF wants the following macros defined/undefined as follows. */
29 #define ASM_APP_ON "#APP\n"
31 #define ASM_APP_OFF "#NO_APP\n"
32 #define NO_IMPLICIT_EXTERN_C
33 #define TARGET_HAS_F_SETLKW
35 #undef MD_STARTFILE_PREFIX
38 #define SIZE_TYPE ("long unsigned int")
40 #define PTRDIFF_TYPE ("long int")
42 #define WCHAR_TYPE "int"
43 #undef WCHAR_TYPE_SIZE
44 #define WCHAR_TYPE_SIZE 32
47 /* Basic record keeping for the TPF OS name. */
49 #define TARGET_VERSION fprintf (stderr, " (TPF: zSeries)");
51 /* TPF OS specific stack-pointer offset. */
52 #undef STACK_POINTER_OFFSET
53 #define STACK_POINTER_OFFSET 280
55 /* When building for TPF, set a generic default target that is 64 bits. */
57 #define TARGET_DEFAULT 0x33
59 /* TPF OS specific compiler settings. */
60 #undef TARGET_OS_CPP_BUILTINS
61 #define TARGET_OS_CPP_BUILTINS() \
64 builtin_define_std ("tpf"); \
65 builtin_assert ("system=tpf"); \
66 builtin_define ("__ELF__"); \
69 builtin_define ("__PIC__"); \
70 builtin_define ("__pic__"); \
76 /* Make TPF specific spec file settings here. */
79 #define STARTFILE_SPEC \
81 %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
82 %{!p:%{profile:gcrt1.o%s} \
83 %{!profile:crt1.o%s}}}} \
84 crti.o%s %{static:crtbeginT.o%s} \
85 %{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
88 #define ENDFILE_SPEC \
89 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
91 /* The GNU C++ standard library requires that these macros be defined. */
92 #undef CPLUSPLUS_CPP_SPEC
93 #define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
96 #define ASM_SPEC "%{m31&m64}%{mesa&mzarch}%{march=*}"
99 #define LIB_SPEC "%{pthread:-lpthread} -lc"
101 #undef TARGET_C99_FUNCTIONS
102 #define TARGET_C99_FUNCTIONS 1
111 %{rdynamic:-export-dynamic} \
112 %{!dynamic-linker:-dynamic-linker /lib/ld64.so}}}"
114 #endif /* ! _TPF_H */