Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / config / i386 / vxworks.h
blob09861e4930c4176dbe3bd1d1aeb41fe7f0a49ef0
1 /* IA32 VxWorks target definitions for GNU compiler.
2 Copyright (C) 2003, 2004, 2005, 2007, 2010 Free Software Foundation, Inc.
3 Updated by CodeSourcery, LLC.
5 This file is part of GCC.
7 GCC 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 3, or (at your option)
10 any later version.
12 GCC 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 GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 #undef TARGET_VERSION
22 #define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)");
24 #undef ASM_SPEC
25 #define ASM_SPEC ""
27 #define TARGET_OS_CPP_BUILTINS() \
28 do \
29 { \
30 VXWORKS_OS_CPP_BUILTINS (); \
31 if (TARGET_386) \
32 builtin_define ("CPU=I80386"); \
33 else if (TARGET_486) \
34 builtin_define ("CPU=I80486"); \
35 else if (TARGET_PENTIUM) \
36 { \
37 builtin_define ("CPU=PENTIUM"); \
38 builtin_define ("CPU_VARIANT=PENTIUM"); \
39 } \
40 else if (TARGET_PENTIUMPRO) \
41 { \
42 builtin_define ("CPU=PENTIUM2"); \
43 builtin_define ("CPU_VARIANT=PENTIUMPRO"); \
44 } \
45 else if (TARGET_PENTIUM4) \
46 { \
47 builtin_define ("CPU=PENTIUM4"); \
48 builtin_define ("CPU_VARIANT=PENTIUM4"); \
49 } \
50 } \
51 while (0)
53 #undef CPP_SPEC
54 #define CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
55 #undef LIB_SPEC
56 #define LIB_SPEC VXWORKS_LIB_SPEC
57 #undef STARTFILE_SPEC
58 #define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
59 #undef ENDFILE_SPEC
60 #define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC
61 #undef LINK_SPEC
62 #define LINK_SPEC VXWORKS_LINK_SPEC
64 #undef SUBTARGET_SWITCHES
65 #define SUBTARGET_SWITCHES EXTRA_SUBTARGET_SWITCHES
67 #undef SUBTARGET_OVERRIDE_OPTIONS
68 #define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS
70 /* No _mcount profiling on VxWorks. */
71 #undef FUNCTION_PROFILER
72 #define FUNCTION_PROFILER(FILE,LABELNO) VXWORKS_FUNCTION_PROFILER(FILE,LABELNO)
74 /* We cannot use PC-relative accesses for VxWorks PIC because there is no
75 fixed gap between segments. */
76 #undef ASM_PREFERRED_EH_DATA_FORMAT