1 /* IA32 VxWorks target definitions for GNU compiler.
2 Copyright (C) 2003, 2004, 2005 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 2, or (at your option)
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 COPYING. If not, write to
19 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
22 #define HANDLE_SYSV_PRAGMA 1
25 #define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)");
28 #define ASM_SPEC "%{v:-v} %{Qy:} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
30 #define VXWORKS_CPU_DEFINE() \
34 builtin_define ("CPU=I80386"); \
35 else if (TARGET_486) \
36 builtin_define ("CPU=I80486"); \
37 else if (TARGET_PENTIUM) \
39 builtin_define ("CPU=PENTIUM"); \
40 builtin_define ("CPU_VARIANT=PENTIUM"); \
42 else if (TARGET_PENTIUMPRO) \
44 builtin_define ("CPU=PENTIUM2"); \
45 builtin_define ("CPU_VARIANT=PENTIUMPRO"); \
47 else if (TARGET_PENTIUM4) \
49 builtin_define ("CPU=PENTIUM4"); \
50 builtin_define ("CPU_VARIANT=PENTIUM4"); \
55 #define TARGET_OS_CPP_BUILTINS() \
58 builtin_define ("__vxworks"); \
59 builtin_define ("__VXWORKS__"); \
60 builtin_assert ("system=unix"); \
62 VXWORKS_CPU_DEFINE(); \
67 #define CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
69 #define LIB_SPEC VXWORKS_LIB_SPEC
71 #define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
73 #define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC
75 #define LINK_SPEC VXWORKS_LINK_SPEC
77 #undef SUBTARGET_SWITCHES
78 #define SUBTARGET_SWITCHES EXTRA_SUBTARGET_SWITCHES
80 #undef SUBTARGET_OVERRIDE_OPTIONS
81 #define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS
83 /* No _mcount profiling on VxWorks. */
84 #undef FUNCTION_PROFILER
85 #define FUNCTION_PROFILER(FILE,LABELNO) VXWORKS_FUNCTION_PROFILER(FILE,LABELNO)