]> gcc.gnu.org Git - gcc.git/blame - gcc/config/rs6000/freebsd.h
Update copyright years.
[gcc.git] / gcc / config / rs6000 / freebsd.h
CommitLineData
b91da81f 1/* Definitions for PowerPC running FreeBSD using the ELF format
8d9254fc 2 Copyright (C) 2001-2020 Free Software Foundation, Inc.
b91da81f
DB
3 Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4
5de601cf 5 This file is part of GCC.
b91da81f 6
5de601cf
NC
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
2f83c7d6 9 by the Free Software Foundation; either version 3, or (at your
5de601cf 10 option) any later version.
b91da81f 11
5de601cf
NC
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
b91da81f 16
5de601cf 17 You should have received a copy of the GNU General Public License
2f83c7d6
NC
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
b91da81f 20
62045234
AM
21/* Undef gnu-user.h macros we don't want. */
22#undef CPLUSPLUS_CPP_SPEC
23#undef LINK_GCC_C_SEQUENCE_SPEC
24
6f317ef3 25/* Override the defaults, which exist to force the proper definition. */
b91da81f
DB
26
27#undef CPP_OS_DEFAULT_SPEC
28#define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)"
29
30#undef STARTFILE_DEFAULT_SPEC
31#define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"
32
33#undef ENDFILE_DEFAULT_SPEC
34#define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"
35
36#undef LIB_DEFAULT_SPEC
37#define LIB_DEFAULT_SPEC "%(lib_freebsd)"
38
39#undef LINK_START_DEFAULT_SPEC
40#define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)"
41
42#undef LINK_OS_DEFAULT_SPEC
43#define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
44
5b51b1f5 45/* XXX: This is wrong for many platforms in sysv4.h.
c1207243 46 We should work on getting that definition fixed. */
5b51b1f5
DB
47#undef LINK_SHLIB_SPEC
48#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
49
b91da81f
DB
50
51/************************[ Target stuff ]***********************************/
52
53/* Define the actual types of some ANSI-mandated types.
54 Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
55 c-common.c, and config/<arch>/<arch>.h. */
56
5b51b1f5
DB
57#undef SIZE_TYPE
58#define SIZE_TYPE "unsigned int"
59
b91da81f
DB
60/* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
61#undef WCHAR_TYPE
62
b91da81f
DB
63#undef WCHAR_TYPE_SIZE
64#define WCHAR_TYPE_SIZE 32
65
dfa95e19
AT
66/* We don't need to generate entries in .fixup, except when
67 -mrelocatable or -mrelocatable-lib is given. */
68#undef RELOCATABLE_NEEDS_FIXUP
69#define RELOCATABLE_NEEDS_FIXUP \
4d967549 70 (rs6000_isa_flags & rs6000_isa_flags_explicit & OPTION_MASK_RELOCATABLE)
dfa95e19 71
3d36d470
UW
72/* Use standard DWARF numbering for DWARF debugging information. */
73#define RS6000_USE_DWARF_NUMBERING
a26f86dc
AT
74
75#define POWERPC_FREEBSD
This page took 5.583216 seconds and 5 git commands to generate.