Mercurial > hg > CbC > CbC_gcc
annotate gcc/config/i386/vxworks.h @ 67:f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
author | nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 22 Mar 2011 17:18:12 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
rev | line source |
---|---|
0 | 1 /* IA32 VxWorks target definitions for GNU compiler. |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
2 Copyright (C) 2003, 2004, 2005, 2007, 2010 Free Software Foundation, Inc. |
0 | 3 Updated by CodeSourcery, LLC. |
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 | |
9 the Free Software Foundation; either version 3, or (at your option) | |
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 | |
18 along with GCC; see the file COPYING3. If not see | |
19 <http://www.gnu.org/licenses/>. */ | |
20 | |
21 #undef TARGET_VERSION | |
22 #define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)"); | |
23 | |
24 #undef ASM_SPEC | |
67
f6334be47118
update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
25 #define ASM_SPEC "" |
0 | 26 |
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) | |
52 | |
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 | |
63 | |
64 #undef SUBTARGET_SWITCHES | |
65 #define SUBTARGET_SWITCHES EXTRA_SUBTARGET_SWITCHES | |
66 | |
67 #undef SUBTARGET_OVERRIDE_OPTIONS | |
68 #define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS | |
69 | |
70 /* No _mcount profiling on VxWorks. */ | |
71 #undef FUNCTION_PROFILER | |
72 #define FUNCTION_PROFILER(FILE,LABELNO) VXWORKS_FUNCTION_PROFILER(FILE,LABELNO) | |
73 | |
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 |