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.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 /* Override the defaults, which exist to force the proper definition. */
23 #undef CPP_OS_DEFAULT_SPEC
24 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)"
26 #undef STARTFILE_DEFAULT_SPEC
27 #define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)"
29 #undef ENDFILE_DEFAULT_SPEC
30 #define ENDFILE_DEFAULT_SPEC "%(endfile_freebsd)"
32 #undef LIB_DEFAULT_SPEC
33 #define LIB_DEFAULT_SPEC "%(lib_freebsd)"
35 #undef LINK_START_DEFAULT_SPEC
36 #define LINK_START_DEFAULT_SPEC "%(link_start_freebsd)"
38 #undef LINK_OS_DEFAULT_SPEC
39 #define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)"
42 /************************[ Target stuff ]***********************************/
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. */
48 /* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */
52 #define WCHAR_UNSIGNED 0
54 #undef WCHAR_TYPE_SIZE
55 #define WCHAR_TYPE_SIZE 32
58 #define TARGET_VERSION fprintf (stderr, " (FreeBSD/PowerPC ELF)");
60 /* Override rs6000.h definition. */
62 #define ASM_APP_ON "#APP\n"
64 /* Override rs6000.h definition. */
66 #define ASM_APP_OFF "#NO_APP\n"