OSDN Git Service

2007-07-04 Richard Guenther <rguenther@suse.de>
[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     {                                   \
27       builtin_define ("CPU=SH7000");    \
28       VXWORKS_OS_CPP_BUILTINS ();       \
29     }                                   \
30   while (0)
31
32 #undef SUBTARGET_OVERRIDE_OPTIONS
33 #define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS
34
35 #undef SUBTARGET_CPP_SPEC
36 #define SUBTARGET_CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
37
38 #undef SUBTARGET_LINK_EMUL_SUFFIX
39 #define SUBTARGET_LINK_EMUL_SUFFIX "_vxworks"
40
41 #undef LIB_SPEC
42 #define LIB_SPEC VXWORKS_LIB_SPEC
43 #undef LINK_SPEC
44 #define LINK_SPEC VXWORKS_LINK_SPEC " " SH_LINK_SPEC
45 #undef STARTFILE_SPEC
46 #define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
47 #undef ENDFILE_SPEC
48 #define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC
49
50 #undef TARGET_VERSION
51 #define TARGET_VERSION  fputs (" (SH/VxWorks)", stderr);
52
53 /* There is no default multilib.  */
54 #undef MULTILIB_DEFAULTS
55
56 #undef FUNCTION_PROFILER
57 #define FUNCTION_PROFILER VXWORKS_FUNCTION_PROFILER