1 /* Definitions for Linux for s/390 zSeries
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Hartmut Penner (hpenner@de.ibm.com) and
4 Ulrich Weigand (uweigand@de.ibm.com).
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)
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. */
26 #define PTRDIFF_TYPE "long int"
29 #define TARGET_DEFAULT 0x13
32 #define TARGET_VERSION fprintf (stderr, " (Linux for S/390 zSeries 64 bit)");
34 /* Names to predefine in the preprocessor for this target machine. */
37 #define CPP_PREDEFINES \
38 "-Dlinux -Asystem(linux) -Acpu(s390) -Amachine(s390) -D__s390__ -D__s390x__ \
39 -Asystem(unix) -Dunix -D__ELF__ \
40 -D__LONG_MAX__=9223372036854775807L"
44 #define LINK_SPEC "-m elf64_s390 %{shared:-shared} \
48 %{rdynamic:-export-dynamic} \
49 %{!dynamic-linker:-dynamic-linker /lib/ld64.so.1 \
50 -rpath-link=/usr/local/s390x-ibm-linux/lib}} \
53 #define LINK_SPEC "-m elf64_s390 %{shared:-shared} \
57 %{rdynamic:-export-dynamic} \
58 %{!dynamic-linker:-dynamic-linker /lib/ld64.so.1}} \
63 #define INT_ASM_OP "\t.quad\t"
65 #undef PROMOTE_PROTOTYPES
66 #undef MASK_RETURN_ADDR
69 /* With 64 bit new linkage for floating point registers. */
70 #undef CALL_USED_REGISTERS
71 #define CALL_USED_REGISTERS \