]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/sparc/openbsd64.h
Add --enable-default-pie option to GCC configure
[thirdparty/gcc.git] / gcc / config / sparc / openbsd64.h
CommitLineData
91f0fcee 1/* Configuration file for sparc64 OpenBSD target.
5624e564 2 Copyright (C) 1999-2015 Free Software Foundation, Inc.
91f0fcee
ME
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
2f83c7d6 8the Free Software Foundation; either version 3, or (at your option)
91f0fcee
ME
9any later version.
10
11GCC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
2f83c7d6
NC
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
91f0fcee 19
91f0fcee
ME
20/* XXX - do we really want HARD_QUAD? */
21#undef TARGET_DEFAULT
22#define TARGET_DEFAULT \
23(MASK_V9 + MASK_PTR64 + MASK_64BIT + MASK_HARD_QUAD \
24 + MASK_APP_REGS + MASK_FPU + MASK_STACK_BIAS + MASK_LONG_DOUBLE_128)
25
26#undef SPARC_DEFAULT_CMODEL
27#define SPARC_DEFAULT_CMODEL CM_MEDMID
28
9b8466f4 29/* Target OS builtins. */
9b8466f4
NB
30#define TARGET_OS_CPP_BUILTINS() \
31 do \
32 { \
33 builtin_define ("__unix__"); \
34 builtin_define ("__OpenBSD__"); \
35 builtin_assert ("system=unix"); \
36 builtin_assert ("system=OpenBSD"); \
37 builtin_define ("__sparc64__"); \
38 builtin_define ("__sparcv9__"); \
39 builtin_define ("__sparc_v9__"); \
40 builtin_define ("__arch64__"); \
9b8466f4
NB
41 } \
42 while (0)
91f0fcee 43
81b47219
EB
44/* Inherited from sp64-elf. */
45#undef NO_IMPLICIT_EXTERN_C
46
91f0fcee
ME
47#undef ASM_SPEC
48#define ASM_SPEC "\
428b3812 49-s %{" FPIE_OR_FPIC_SPEC ":-K PIC} \
91f0fcee
ME
50%(asm_cpu) %(asm_arch) \
51"
52
53/* Layout of source language data types. */
54#undef WCHAR_TYPE
55#define WCHAR_TYPE "int"
56
57#undef WCHAR_TYPE_SIZE
58#define WCHAR_TYPE_SIZE 32
59
60#undef LONG_DOUBLE_TYPE_SIZE
61#define LONG_DOUBLE_TYPE_SIZE 128
62
63#undef LINK_SPEC
64#define LINK_SPEC \
7aed7dfc 65 "%{!shared:%{!nostdlib:%{!r:%{!e*:-e __start}}}} \
91f0fcee
ME
66 %{shared:-shared} %{R*} \
67 %{static:-Bstatic} \
68 %{!static:-Bdynamic} \
69 %{assert*} \
e59dabd2 70 -dynamic-linker /usr/libexec/ld.so"
91f0fcee
ME
71
72/* As an elf system, we need crtbegin/crtend stuff. */
73#undef STARTFILE_SPEC
74#define STARTFILE_SPEC "\
75 %{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
76 crtbegin%O%s} %{shared:crtbeginS%O%s}"
77#undef ENDFILE_SPEC
78#define ENDFILE_SPEC "%{!shared:crtend%O%s} %{shared:crtendS%O%s}"