OSDN Git Service

2002-05-30 Marc Espie <espie@openbsd.org>
[pf3gnuchains/gcc-fork.git] / gcc / config / sparc / openbsd64.h
1 /* Configuration file for sparc64 OpenBSD target.
2    Copyright (C) 1999 Free Software Foundation, Inc.
3
4 This file is part of GCC.
5
6 GCC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GCC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20
21 #undef TARGET_VERSION
22 #define TARGET_VERSION fprintf (stderr, " (sparc64 OpenBSD ELF)")
23
24 /* XXX - do we really want HARD_QUAD? */
25 #undef TARGET_DEFAULT
26 #define TARGET_DEFAULT \
27 (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_HARD_QUAD \
28  + MASK_APP_REGS + MASK_FPU + MASK_STACK_BIAS + MASK_LONG_DOUBLE_128)
29
30 #undef SPARC_DEFAULT_CMODEL
31 #define SPARC_DEFAULT_CMODEL CM_MEDMID
32
33 /* Run-time target specifications.  */
34 #undef CPP_PREDEFINES
35 #define CPP_PREDEFINES "-D__unix__ -D__sparc__ -D__sparc64__ -D__sparcv9__ -D__sparc_v9__ -D__arch64__ -D__ELF__ -D__OpenBSD__ -Asystem(unix) -Asystem(OpenBSD) -Acpu(sparc) -Amachine(sparc)"
36
37 #undef CPP_SUBTARGET_SPEC
38 #define CPP_SUBTARGET_SPEC ""
39
40 #undef MD_EXEC_PREFIX
41 #undef MD_STARTFILE_PREFIX
42
43 #undef ASM_SPEC
44 #define ASM_SPEC "\
45 %{v:-V} -s %{fpic:-K PIC} %{fPIC:-K PIC} \
46 %{mlittle-endian:-EL} \
47 %(asm_cpu) %(asm_arch) \
48 "
49
50 /* Layout of source language data types.  */
51 #undef WCHAR_TYPE
52 #define WCHAR_TYPE "int"
53
54 #undef WCHAR_TYPE_SIZE
55 #define WCHAR_TYPE_SIZE 32
56
57 #undef LONG_DOUBLE_TYPE_SIZE
58 #define LONG_DOUBLE_TYPE_SIZE 128
59
60 #undef LINK_SPEC
61 #define LINK_SPEC \
62   "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \
63    %{shared:-shared} %{R*} \
64    %{static:-Bstatic} \
65    %{!static:-Bdynamic} \
66    %{assert*} \
67    %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}"
68
69 /* As an elf system, we need crtbegin/crtend stuff.  */
70 #undef STARTFILE_SPEC
71 #define STARTFILE_SPEC "\
72         %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
73         crtbegin%O%s} %{shared:crtbeginS%O%s}"
74 #undef ENDFILE_SPEC
75 #define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"