]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/gcc/config/rs6000/freebsd.h
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / gcc / config / rs6000 / freebsd.h
1 /* Definitions for PowerPC running FreeBSD using the ELF format
2    Copyright (C) 2001, 2003 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 2, 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 COPYING.  If not, write to the
19    Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
20    MA 02110-1301, USA.  */
21
22 /* Override the defaults, which exist to force the proper definition.  */
23
24 #undef  CPP_OS_DEFAULT_SPEC
25 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)"
26
27 #undef  CPP_OS_FREEBSD_SPEC
28 #define CPP_OS_FREEBSD_SPEC     "\
29   -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \
30   -Acpu=powerpc -Amachine=powerpc "
31
32 #undef  STARTFILE_DEFAULT_SPEC
33 #define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"
34
35 #undef  ENDFILE_DEFAULT_SPEC
36 #define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"
37
38 #undef  LIB_DEFAULT_SPEC
39 #define LIB_DEFAULT_SPEC "%(lib_freebsd)"
40
41 #undef  LINK_START_DEFAULT_SPEC
42 #define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)"
43
44 #undef  LINK_OS_DEFAULT_SPEC
45 #define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
46
47 /* XXX: This is wrong for many platforms in sysv4.h.
48    We should work on getting that definition fixed.  */
49 #undef  LINK_SHLIB_SPEC
50 #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}"
51
52
53 /************************[  Target stuff  ]***********************************/
54
55 /* Define the actual types of some ANSI-mandated types.  
56    Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
57    c-common.c, and config/<arch>/<arch>.h.  */
58
59 #undef  SIZE_TYPE
60 #define SIZE_TYPE "unsigned int"
61
62 /* rs6000.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
63 #undef WCHAR_TYPE
64
65 #undef  WCHAR_TYPE_SIZE
66 #define WCHAR_TYPE_SIZE 32
67
68 #undef  TARGET_VERSION
69 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/PowerPC ELF)");
70
71 /* Override rs6000.h definition.  */
72 #undef  ASM_APP_ON
73 #define ASM_APP_ON "#APP\n"
74
75 /* Override rs6000.h definition.  */
76 #undef  ASM_APP_OFF
77 #define ASM_APP_OFF "#NO_APP\n"