annotate gcc/config/powerpcspe/freebsd.h @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Definitions for PowerPC running FreeBSD using the ELF format
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
2 Copyright (C) 2001-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
3 Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 This file is part of GCC.
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 GCC is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
8 under the terms of the GNU General Public License as published
kono
parents:
diff changeset
9 by the Free Software Foundation; either version 3, or (at your
kono
parents:
diff changeset
10 option) any later version.
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 GCC is distributed in the hope that it will be useful, but WITHOUT
kono
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
kono
parents:
diff changeset
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
kono
parents:
diff changeset
15 License for more details.
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
18 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
19 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 /* Override the defaults, which exist to force the proper definition. */
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #undef CPP_OS_DEFAULT_SPEC
kono
parents:
diff changeset
24 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)"
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 #undef STARTFILE_DEFAULT_SPEC
kono
parents:
diff changeset
27 #define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 #undef ENDFILE_DEFAULT_SPEC
kono
parents:
diff changeset
30 #define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 #undef LIB_DEFAULT_SPEC
kono
parents:
diff changeset
33 #define LIB_DEFAULT_SPEC "%(lib_freebsd)"
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 #undef LINK_START_DEFAULT_SPEC
kono
parents:
diff changeset
36 #define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)"
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 #undef LINK_OS_DEFAULT_SPEC
kono
parents:
diff changeset
39 #define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 /* XXX: This is wrong for many platforms in sysv4.h.
kono
parents:
diff changeset
42 We should work on getting that definition fixed. */
kono
parents:
diff changeset
43 #undef LINK_SHLIB_SPEC
kono
parents:
diff changeset
44 #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 /************************[ Target stuff ]***********************************/
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49 /* Define the actual types of some ANSI-mandated types.
kono
parents:
diff changeset
50 Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
kono
parents:
diff changeset
51 c-common.c, and config/<arch>/<arch>.h. */
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 #undef SIZE_TYPE
kono
parents:
diff changeset
54 #define SIZE_TYPE "unsigned int"
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 /* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
kono
parents:
diff changeset
57 #undef WCHAR_TYPE
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 #undef WCHAR_TYPE_SIZE
kono
parents:
diff changeset
60 #define WCHAR_TYPE_SIZE 32
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 /* Override rs6000.h definition. */
kono
parents:
diff changeset
63 #undef ASM_APP_ON
kono
parents:
diff changeset
64 #define ASM_APP_ON "#APP\n"
kono
parents:
diff changeset
65
kono
parents:
diff changeset
66 /* Override rs6000.h definition. */
kono
parents:
diff changeset
67 #undef ASM_APP_OFF
kono
parents:
diff changeset
68 #define ASM_APP_OFF "#NO_APP\n"
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 /* We don't need to generate entries in .fixup, except when
kono
parents:
diff changeset
71 -mrelocatable or -mrelocatable-lib is given. */
kono
parents:
diff changeset
72 #undef RELOCATABLE_NEEDS_FIXUP
kono
parents:
diff changeset
73 #define RELOCATABLE_NEEDS_FIXUP \
kono
parents:
diff changeset
74 (rs6000_isa_flags & rs6000_isa_flags_explicit & OPTION_MASK_RELOCATABLE)
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 /* Use standard DWARF numbering for DWARF debugging information. */
kono
parents:
diff changeset
77 #define RS6000_USE_DWARF_NUMBERING
kono
parents:
diff changeset
78
kono
parents:
diff changeset
79 #define POWERPC_FREEBSD