xref: /openbsd-src/gnu/usr.bin/gcc/gcc/config/rs6000/vxppc.h (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 /* Definitions of target machine for GNU compiler.  Vxworks PowerPC version.
2    Copyright (C) 1996, 2000 Free Software Foundation, Inc.
3 
4 This file is part of GNU CC.
5 
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10 
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING.  If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA.  */
20 
21 /* This file just exists to give specs for the PowerPC running on VxWorks.  */
22 
23 /* Reset defaults */
24 #undef	CPP_OS_DEFAULT_SPEC
25 #define CPP_OS_DEFAULT_SPEC "%(cpp_os_vxworks)"
26 
27 #undef	LIB_DEFAULT_SPEC
28 #define LIB_DEFAULT_SPEC "%(lib_vxworks)"
29 
30 #undef	STARTFILE_DEFAULT_SPEC
31 #define STARTFILE_DEFAULT_SPEC "%(startfile_vxworks)"
32 
33 #undef	ENDFILE_DEFAULT_SPEC
34 #define ENDFILE_DEFAULT_SPEC "%(endfile_vxworks)"
35 
36 #undef	LINK_START_DEFAULT_SPEC
37 #define LINK_START_DEFAULT_SPEC "%(link_start_vxworks)"
38 
39 #undef	LINK_OS_DEFAULT_SPEC
40 #define LINK_OS_DEFAULT_SPEC "%(link_os_vxworks)"
41 
42 #undef TARGET_OS_CPP_BUILTINS
43 #define TARGET_OS_CPP_BUILTINS()          \
44   do                                      \
45     {                                     \
46       builtin_define ("__vxworks");       \
47       builtin_define ("__vxworks__");     \
48       builtin_assert ("system=vxworks");  \
49       builtin_assert ("system=embedded"); \
50       builtin_assert ("cpu=powerpc");     \
51       builtin_assert ("machine=powerpc"); \
52     }                                     \
53   while (0)
54 
55 /* We use stabs-in-elf for debugging */
56 #undef PREFERRED_DEBUGGING_TYPE
57 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
58