2007-01-03 Paul Brook <paul@codesourcery.com>
[official-gcc.git] / gcc / config / arm / freebsd.h
blob6bae83def6327fe24af43d77ca8c102e32b3759a
1 /* Definitions for StrongARM running FreeBSD using the ELF format
2 Copyright (C) 2001, 2004 Free Software Foundation, Inc.
3 Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
5 This file is part of GCC.
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 2, or (at your
10 option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
23 #undef SUBTARGET_EXTRA_SPECS
24 #define SUBTARGET_EXTRA_SPECS \
25 { "fbsd_dynamic_linker", FBSD_DYNAMIC_LINKER }
27 #undef SUBTARGET_CPP_SPEC
28 #define SUBTARGET_CPP_SPEC FBSD_CPP_SPEC
30 #undef LINK_SPEC
31 #define LINK_SPEC " \
32 %{p:%nconsider using `-pg' instead of `-p' with gprof(1) } \
33 %{v:-V} \
34 %{assert*} %{R*} %{rpath*} %{defsym*} \
35 %{shared:-Bshareable %{h*} %{soname*}} \
36 %{!shared: \
37 %{!static: \
38 %{rdynamic:-export-dynamic} \
39 %{!dynamic-linker:-dynamic-linker %(fbsd_dynamic_linker) }} \
40 %{static:-Bstatic}} \
41 %{symbolic:-Bsymbolic}"
44 /************************[ Target stuff ]***********************************/
46 /* Define the actual types of some ANSI-mandated types.
47 Needs to agree with <machine/ansi.h>. GCC defaults come from c-decl.c,
48 c-common.c, and config/<arch>/<arch>.h. */
50 /* arm.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
52 #undef SIZE_TYPE
53 #define SIZE_TYPE "unsigned int"
55 #undef PTRDIFF_TYPE
56 #define PTRDIFF_TYPE "int"
58 /* We use the GCC defaults here. */
59 #undef WCHAR_TYPE
61 #undef WCHAR_TYPE_SIZE
62 #define WCHAR_TYPE_SIZE 32
64 #undef SUBTARGET_CPU_DEFAULT
65 #define SUBTARGET_CPU_DEFAULT TARGET_CPU_strongarm
67 #undef TARGET_VERSION
68 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/StrongARM ELF)");