freebsd.h revision 90075
1/* Definitions for PowerPC running FreeBSD using the ELF format
2   Copyright (C) 2001 Free Software Foundation, Inc.
3   Contributed by David E. O'Brien <obrien@FreeBSD.org> and BSDi.
4
5This file is part of GNU CC.
6
7GNU CC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GNU CC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU CC; see the file COPYING.  If not, write to
19the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
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
42/************************[  Target stuff  ]***********************************/
43
44/* Define the actual types of some ANSI-mandated types.
45   Needs to agree with <machine/ansi.h>.  GCC defaults come from c-decl.c,
46   c-common.c, and config/<arch>/<arch>.h.  */
47
48/* rs6000.h gets this wrong for FreeBSD.  We use the GCC defaults instead.  */
49#undef WCHAR_TYPE
50
51#undef  WCHAR_UNSIGNED
52#define WCHAR_UNSIGNED 0
53
54#undef  WCHAR_TYPE_SIZE
55#define WCHAR_TYPE_SIZE 32
56
57#undef  TARGET_VERSION
58#define TARGET_VERSION fprintf (stderr, " (FreeBSD/PowerPC ELF)");
59
60/* Override rs6000.h definition.  */
61#undef  ASM_APP_ON
62#define ASM_APP_ON "#APP\n"
63
64/* Override rs6000.h definition.  */
65#undef  ASM_APP_OFF
66#define ASM_APP_OFF "#NO_APP\n"
67