]>
Commit | Line | Data |
---|---|---|
d442d7d9 | 1 | /* IA32 VxWorks target definitions for GNU compiler. |
23a5b65a | 2 | Copyright (C) 2003-2014 Free Software Foundation, Inc. |
d442d7d9 | 3 | Updated by CodeSourcery, LLC. |
55047c9d PE |
4 | |
5 | This file is part of GCC. | |
6 | ||
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 | |
2f83c7d6 | 9 | the Free Software Foundation; either version 3, or (at your option) |
55047c9d PE |
10 | any later version. |
11 | ||
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. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
2f83c7d6 NC |
18 | along with GCC; see the file COPYING3. If not see |
19 | <http://www.gnu.org/licenses/>. */ | |
55047c9d | 20 | |
55047c9d | 21 | #undef ASM_SPEC |
78a14252 | 22 | #define ASM_SPEC "" |
d442d7d9 | 23 | |
cb717c40 | 24 | #define TARGET_OS_CPP_BUILTINS() \ |
d442d7d9 PE |
25 | do \ |
26 | { \ | |
cb717c40 | 27 | VXWORKS_OS_CPP_BUILTINS (); \ |
d442d7d9 PE |
28 | if (TARGET_386) \ |
29 | builtin_define ("CPU=I80386"); \ | |
30 | else if (TARGET_486) \ | |
31 | builtin_define ("CPU=I80486"); \ | |
32 | else if (TARGET_PENTIUM) \ | |
33 | { \ | |
34 | builtin_define ("CPU=PENTIUM"); \ | |
35 | builtin_define ("CPU_VARIANT=PENTIUM"); \ | |
36 | } \ | |
37 | else if (TARGET_PENTIUMPRO) \ | |
38 | { \ | |
39 | builtin_define ("CPU=PENTIUM2"); \ | |
40 | builtin_define ("CPU_VARIANT=PENTIUMPRO"); \ | |
41 | } \ | |
42 | else if (TARGET_PENTIUM4) \ | |
43 | { \ | |
44 | builtin_define ("CPU=PENTIUM4"); \ | |
45 | builtin_define ("CPU_VARIANT=PENTIUM4"); \ | |
46 | } \ | |
cb717c40 | 47 | } \ |
d442d7d9 | 48 | while (0) |
55047c9d | 49 | |
d442d7d9 PE |
50 | #undef CPP_SPEC |
51 | #define CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC | |
52 | #undef LIB_SPEC | |
53 | #define LIB_SPEC VXWORKS_LIB_SPEC | |
54 | #undef STARTFILE_SPEC | |
55 | #define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC | |
56 | #undef ENDFILE_SPEC | |
57 | #define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC | |
58 | #undef LINK_SPEC | |
59 | #define LINK_SPEC VXWORKS_LINK_SPEC | |
60 | ||
61 | #undef SUBTARGET_SWITCHES | |
62 | #define SUBTARGET_SWITCHES EXTRA_SUBTARGET_SWITCHES | |
63 | ||
64 | #undef SUBTARGET_OVERRIDE_OPTIONS | |
65 | #define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS | |
66 | ||
67 | /* No _mcount profiling on VxWorks. */ | |
68 | #undef FUNCTION_PROFILER | |
69 | #define FUNCTION_PROFILER(FILE,LABELNO) VXWORKS_FUNCTION_PROFILER(FILE,LABELNO) | |
10d7f5f3 RS |
70 | |
71 | /* We cannot use PC-relative accesses for VxWorks PIC because there is no | |
72 | fixed gap between segments. */ | |
73 | #undef ASM_PREFERRED_EH_DATA_FORMAT |