1 /* Definitions of target machine for GNU compiler. VxWorks i386 version.
2 Copyright (C) 1998, 2002 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
22 #define TARGET_VERSION fprintf (stderr, " (80386, VxWorks BSD syntax)");
24 #define TARGET_OS_CPP_BUILTINS() \
27 builtin_define ("__vxworks"); \
28 builtin_assert ("system=unix"); \
31 builtin_define ("CPU=I80386"); \
32 else if (TARGET_486) \
33 builtin_define ("CPU=I80486"); \
34 else if (TARGET_PENTIUM) \
36 builtin_define ("CPU=PENTIUM"); \
37 builtin_define ("CPU_VARIANT=PENTIUM"); \
39 else if (TARGET_PENTIUMPRO) \
41 builtin_define ("CPU=PENTIUM"); \
42 builtin_define ("CPU_VARIANT=PENTIUMPRO"); \
47 #define HANDLE_SYSV_PRAGMA
49 /* VxWorks does all the library stuff itself. */
54 /* VxWorks uses object files, not loadable images. make linker just
58 #define LINK_SPEC "-r"
60 /* VxWorks provides the functionality of crt0.o and friends itself. */
63 #define STARTFILE_SPEC ""
66 #define ENDFILE_SPEC ""