1 |
282 |
jeremybenn |
/* Definitions for PowerPC running FreeBSD using the ELF format
|
2 |
|
|
Copyright (C) 2001, 2003, 2007, 2009 Free Software Foundation, Inc.
|
3 |
|
|
Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
|
4 |
|
|
|
5 |
|
|
This file is part of GCC.
|
6 |
|
|
|
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
|
9 |
|
|
by the Free Software Foundation; either version 3, or (at your
|
10 |
|
|
option) any later version.
|
11 |
|
|
|
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.
|
16 |
|
|
|
17 |
|
|
You should have received a copy of the GNU General Public License
|
18 |
|
|
along with GCC; see the file COPYING3. If not see
|
19 |
|
|
<http://www.gnu.org/licenses/>. */
|
20 |
|
|
|
21 |
|
|
/* Override the defaults, which exist to force the proper definition. */
|
22 |
|
|
|
23 |
|
|
#undef CPP_OS_DEFAULT_SPEC
|
24 |
|
|
#define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)"
|
25 |
|
|
|
26 |
|
|
#undef STARTFILE_DEFAULT_SPEC
|
27 |
|
|
#define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"
|
28 |
|
|
|
29 |
|
|
#undef ENDFILE_DEFAULT_SPEC
|
30 |
|
|
#define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"
|
31 |
|
|
|
32 |
|
|
#undef LIB_DEFAULT_SPEC
|
33 |
|
|
#define LIB_DEFAULT_SPEC "%(lib_freebsd)"
|
34 |
|
|
|
35 |
|
|
#undef LINK_START_DEFAULT_SPEC
|
36 |
|
|
#define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)"
|
37 |
|
|
|
38 |
|
|
#undef LINK_OS_DEFAULT_SPEC
|
39 |
|
|
#define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
|
40 |
|
|
|
41 |
|
|
/* XXX: This is wrong for many platforms in sysv4.h.
|
42 |
|
|
We should work on getting that definition fixed. */
|
43 |
|
|
#undef LINK_SHLIB_SPEC
|
44 |
|
|
#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
/************************[ Target stuff ]***********************************/
|
48 |
|
|
|
49 |
|
|
/* Define the actual types of some ANSI-mandated types.
|
50 |
|
|
Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
|
51 |
|
|
c-common.c, and config/<arch>/<arch>.h. */
|
52 |
|
|
|
53 |
|
|
#undef SIZE_TYPE
|
54 |
|
|
#define SIZE_TYPE "unsigned int"
|
55 |
|
|
|
56 |
|
|
/* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
|
57 |
|
|
#undef WCHAR_TYPE
|
58 |
|
|
|
59 |
|
|
#undef WCHAR_TYPE_SIZE
|
60 |
|
|
#define WCHAR_TYPE_SIZE 32
|
61 |
|
|
|
62 |
|
|
#undef TARGET_VERSION
|
63 |
|
|
#define TARGET_VERSION fprintf (stderr, " (FreeBSD/PowerPC ELF)");
|
64 |
|
|
|
65 |
|
|
/* Override rs6000.h definition. */
|
66 |
|
|
#undef ASM_APP_ON
|
67 |
|
|
#define ASM_APP_ON "#APP\n"
|
68 |
|
|
|
69 |
|
|
/* Override rs6000.h definition. */
|
70 |
|
|
#undef ASM_APP_OFF
|
71 |
|
|
#define ASM_APP_OFF "#NO_APP\n"
|
72 |
|
|
/* Define SVR4_ASM_SPEC, we use GAS by default. See svr4.h for details. */
|
73 |
|
|
#define SVR4_ASM_SPEC \
|
74 |
|
|
"%{v:-V} %{Wa,*:%*}"
|