]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/i386/vxworks.h
vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
[thirdparty/gcc.git] / gcc / config / i386 / vxworks.h
CommitLineData
d442d7d9
PE
1/* IA32 VxWorks target definitions for GNU compiler.
2 Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
3 Updated by CodeSourcery, LLC.
55047c9d
PE
4
5This file is part of GCC.
6
7GCC is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 2, or (at your option)
10any later version.
11
12GCC is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GCC; see the file COPYING. If not, write to
39d14dda
KC
19the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20Boston, MA 02110-1301, USA. */
55047c9d 21
55047c9d
PE
22#define HANDLE_SYSV_PRAGMA 1
23
24#undef TARGET_VERSION
25#define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)");
26
55047c9d 27#undef ASM_SPEC
d442d7d9
PE
28#define ASM_SPEC "%{v:-v} %{Qy:} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
29
cb717c40 30#define TARGET_OS_CPP_BUILTINS() \
d442d7d9
PE
31 do \
32 { \
cb717c40 33 VXWORKS_OS_CPP_BUILTINS (); \
d442d7d9
PE
34 if (TARGET_386) \
35 builtin_define ("CPU=I80386"); \
36 else if (TARGET_486) \
37 builtin_define ("CPU=I80486"); \
38 else if (TARGET_PENTIUM) \
39 { \
40 builtin_define ("CPU=PENTIUM"); \
41 builtin_define ("CPU_VARIANT=PENTIUM"); \
42 } \
43 else if (TARGET_PENTIUMPRO) \
44 { \
45 builtin_define ("CPU=PENTIUM2"); \
46 builtin_define ("CPU_VARIANT=PENTIUMPRO"); \
47 } \
48 else if (TARGET_PENTIUM4) \
49 { \
50 builtin_define ("CPU=PENTIUM4"); \
51 builtin_define ("CPU_VARIANT=PENTIUM4"); \
52 } \
cb717c40 53 } \
d442d7d9 54 while (0)
55047c9d 55
d442d7d9
PE
56#undef CPP_SPEC
57#define CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
58#undef LIB_SPEC
59#define LIB_SPEC VXWORKS_LIB_SPEC
60#undef STARTFILE_SPEC
61#define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
62#undef ENDFILE_SPEC
63#define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC
64#undef LINK_SPEC
65#define LINK_SPEC VXWORKS_LINK_SPEC
66
67#undef SUBTARGET_SWITCHES
68#define SUBTARGET_SWITCHES EXTRA_SUBTARGET_SWITCHES
69
70#undef SUBTARGET_OVERRIDE_OPTIONS
71#define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS
72
73/* No _mcount profiling on VxWorks. */
74#undef FUNCTION_PROFILER
75#define FUNCTION_PROFILER(FILE,LABELNO) VXWORKS_FUNCTION_PROFILER(FILE,LABELNO)
10d7f5f3
RS
76
77/* We cannot use PC-relative accesses for VxWorks PIC because there is no
78 fixed gap between segments. */
79#undef ASM_PREFERRED_EH_DATA_FORMAT