Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sparc/openbsd64.h @ 0:a06113de4d67
first commit
author | kent <kent@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Jul 2009 14:47:48 +0900 |
parents | |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a06113de4d67 |
---|---|
1 /* Configuration file for sparc64 OpenBSD target. | |
2 Copyright (C) 1999, 2005, 2007 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 3, 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 COPYING3. If not see | |
18 <http://www.gnu.org/licenses/>. */ | |
19 | |
20 #undef TARGET_VERSION | |
21 #define TARGET_VERSION fprintf (stderr, " (sparc64 OpenBSD ELF)") | |
22 | |
23 /* XXX - do we really want HARD_QUAD? */ | |
24 #undef TARGET_DEFAULT | |
25 #define TARGET_DEFAULT \ | |
26 (MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_HARD_QUAD \ | |
27 + MASK_APP_REGS + MASK_FPU + MASK_STACK_BIAS + MASK_LONG_DOUBLE_128) | |
28 | |
29 #undef SPARC_DEFAULT_CMODEL | |
30 #define SPARC_DEFAULT_CMODEL CM_MEDMID | |
31 | |
32 /* Target OS builtins. */ | |
33 #define TARGET_OS_CPP_BUILTINS() \ | |
34 do \ | |
35 { \ | |
36 builtin_define ("__unix__"); \ | |
37 builtin_define ("__OpenBSD__"); \ | |
38 builtin_assert ("system=unix"); \ | |
39 builtin_assert ("system=OpenBSD"); \ | |
40 builtin_define ("__sparc64__"); \ | |
41 builtin_define ("__sparcv9__"); \ | |
42 builtin_define ("__sparc_v9__"); \ | |
43 builtin_define ("__arch64__"); \ | |
44 } \ | |
45 while (0) | |
46 | |
47 #undef CPP_SUBTARGET_SPEC | |
48 #define CPP_SUBTARGET_SPEC "" | |
49 | |
50 #undef MD_EXEC_PREFIX | |
51 #undef MD_STARTFILE_PREFIX | |
52 | |
53 /* Inherited from sp64-elf. */ | |
54 #undef NO_IMPLICIT_EXTERN_C | |
55 | |
56 #undef ASM_SPEC | |
57 #define ASM_SPEC "\ | |
58 %{v:-V} -s %{fpic|fPIC|fpie|fPIE:-K PIC} \ | |
59 %{mlittle-endian:-EL} \ | |
60 %(asm_cpu) %(asm_arch) \ | |
61 " | |
62 | |
63 /* Layout of source language data types. */ | |
64 #undef WCHAR_TYPE | |
65 #define WCHAR_TYPE "int" | |
66 | |
67 #undef WCHAR_TYPE_SIZE | |
68 #define WCHAR_TYPE_SIZE 32 | |
69 | |
70 #undef LONG_DOUBLE_TYPE_SIZE | |
71 #define LONG_DOUBLE_TYPE_SIZE 128 | |
72 | |
73 #undef LINK_SPEC | |
74 #define LINK_SPEC \ | |
75 "%{!shared:%{!nostdlib:%{!r*:%{!e*:-e __start}}}} \ | |
76 %{shared:-shared} %{R*} \ | |
77 %{static:-Bstatic} \ | |
78 %{!static:-Bdynamic} \ | |
79 %{assert*} \ | |
80 %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.so}" | |
81 | |
82 /* As an elf system, we need crtbegin/crtend stuff. */ | |
83 #undef STARTFILE_SPEC | |
84 #define STARTFILE_SPEC "\ | |
85 %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \ | |
86 crtbegin%O%s} %{shared:crtbeginS%O%s}" | |
87 #undef ENDFILE_SPEC | |
88 #define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}" |