openbsd64.h revision 102780
1102780Skan/* Configuration file for sparc64 OpenBSD target.
2102780Skan   Copyright (C) 1999 Free Software Foundation, Inc.
3102780Skan
4102780SkanThis file is part of GCC.
5102780Skan
6102780SkanGCC is free software; you can redistribute it and/or modify
7102780Skanit under the terms of the GNU General Public License as published by
8102780Skanthe Free Software Foundation; either version 2, or (at your option)
9102780Skanany later version.
10102780Skan
11102780SkanGCC is distributed in the hope that it will be useful,
12102780Skanbut WITHOUT ANY WARRANTY; without even the implied warranty of
13102780SkanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14102780SkanGNU General Public License for more details.
15102780Skan
16102780SkanYou should have received a copy of the GNU General Public License
17102780Skanalong with GCC; see the file COPYING.  If not, write to
18102780Skanthe Free Software Foundation, 59 Temple Place - Suite 330,
19102780SkanBoston, MA 02111-1307, USA.  */
20102780Skan
21102780Skan#undef TARGET_VERSION
22102780Skan#define TARGET_VERSION fprintf (stderr, " (sparc64 OpenBSD ELF)")
23102780Skan
24102780Skan/* XXX - do we really want HARD_QUAD? */
25102780Skan#undef TARGET_DEFAULT
26102780Skan#define TARGET_DEFAULT \
27102780Skan(MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_HARD_QUAD \
28102780Skan + MASK_APP_REGS + MASK_FPU + MASK_STACK_BIAS + MASK_LONG_DOUBLE_128)
29102780Skan
30102780Skan#undef SPARC_DEFAULT_CMODEL
31102780Skan#define SPARC_DEFAULT_CMODEL CM_MEDMID
32102780Skan
33102780Skan/* Run-time target specifications.  */
34102780Skan#undef CPP_PREDEFINES
35102780Skan#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)"
36102780Skan
37102780Skan#undef CPP_SUBTARGET_SPEC
38102780Skan#define CPP_SUBTARGET_SPEC ""
39102780Skan
40102780Skan#undef MD_EXEC_PREFIX
41102780Skan#undef MD_STARTFILE_PREFIX
42102780Skan
43102780Skan#undef ASM_SPEC
44102780Skan#define ASM_SPEC "\
45102780Skan%{v:-V} -s %{fpic:-K PIC} %{fPIC:-K PIC} \
46102780Skan%{mlittle-endian:-EL} \
47102780Skan%(asm_cpu) %(asm_arch) \
48102780Skan"
49102780Skan
50102780Skan/* Layout of source language data types.  */
51102780Skan#undef WCHAR_TYPE
52102780Skan#define WCHAR_TYPE "int"
53102780Skan
54102780Skan#undef WCHAR_TYPE_SIZE
55102780Skan#define WCHAR_TYPE_SIZE 32
56102780Skan
57102780Skan#undef LONG_DOUBLE_TYPE_SIZE
58102780Skan#define LONG_DOUBLE_TYPE_SIZE 128
59102780Skan
60102780Skan#undef LINK_SPEC
61102780Skan#define LINK_SPEC \
62102780Skan  "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \
63102780Skan   %{shared:-shared} %{R*} \
64102780Skan   %{static:-Bstatic} \
65102780Skan   %{!static:-Bdynamic} \
66102780Skan   %{assert*} \
67102780Skan   %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}"
68102780Skan
69102780Skan/* As an elf system, we need crtbegin/crtend stuff.  */
70102780Skan#undef STARTFILE_SPEC
71102780Skan#define STARTFILE_SPEC "\
72102780Skan        %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
73102780Skan        crtbegin%O%s} %{shared:crtbeginS%O%s}"
74102780Skan#undef ENDFILE_SPEC
75102780Skan#define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"
76