OSDN Git Service

PR target/21623:
[pf3gnuchains/gcc-fork.git] / gcc / config / sh / vxworks.h
1 /* Definitions of target machine for GCC,
2    for SuperH with targeting the VXWorks run time environment. 
3    Copyright (C) 2003, 2004 Free Software Foundation, Inc.
4    Contributed by CodeSourcery, LLC.
5    
6 This file is part of GCC.
7
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING.  If not, write to
20 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.  */
22
23
24 #define TARGET_OS_CPP_BUILTINS()        \
25   do {                                  \
26     builtin_define ("__vxworks");       \
27     builtin_define ("CPU=SH7000");              \
28   } while (0)
29
30 /* VxWorks does all the library stuff itself.  */
31 #undef  LIB_SPEC
32 #define LIB_SPEC        ""
33
34 /* VxWorks uses object files, not loadable images.  Make the linker just
35    combine objects.  */
36 #undef  LINK_SPEC
37 #define LINK_SPEC       "-r"
38
39 /* VxWorks provides the functionality of crt0.o and friends itself.  */
40 #undef  STARTFILE_SPEC
41 #define STARTFILE_SPEC  ""
42
43 #undef  ENDFILE_SPEC
44 #define ENDFILE_SPEC    ""
45
46 #undef  TARGET_VERSION
47 #define TARGET_VERSION  fputs (" (SH/VxWorks)", stderr);
48
49 /* There is no default multilib.  */
50 #undef MULTILIB_DEFAULTS