OSDN Git Service

2002-10-31 David O'Brien <obrien@FreeBSD.org>
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / vxi386.h
1 /* Definitions of target machine for GNU compiler.  VxWorks i386 version.
2    Copyright (C) 1998, 2002 Free Software Foundation, Inc.
3
4 This file is part of GNU CC.
5
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)
9 any later version.
10
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.
15
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.  */
20
21 #undef  TARGET_VERSION
22 #define TARGET_VERSION fprintf (stderr, " (80386, VxWorks BSD syntax)"); 
23
24 #define TARGET_OS_CPP_BUILTINS()                        \
25   do                                                    \
26     {                                                   \
27       builtin_define ("__vxworks");                     \
28       builtin_assert ("system=unix");                   \
29                                                         \
30       if (TARGET_386)                                   \
31         builtin_define ("CPU=I80386");                  \
32       else if (TARGET_486)                              \
33         builtin_define ("CPU=I80486");                  \
34       else if (TARGET_PENTIUM)                          \
35         {                                               \
36           builtin_define ("CPU=PENTIUM");               \
37           builtin_define ("CPU_VARIANT=PENTIUM");       \
38         }                                               \
39       else if (TARGET_PENTIUMPRO)                       \
40         {                                               \
41           builtin_define ("CPU=PENTIUM");               \
42           builtin_define ("CPU_VARIANT=PENTIUMPRO");    \
43         }                                               \
44     }                                                   \
45   while (0)
46
47 #define HANDLE_SYSV_PRAGMA
48
49 /* VxWorks does all the library stuff itself.  */
50
51 #undef LIB_SPEC
52 #define LIB_SPEC ""
53
54 /* VxWorks uses object files, not loadable images.  make linker just
55    combine objects.  */
56
57 #undef LINK_SPEC
58 #define LINK_SPEC "-r"
59
60 /* VxWorks provides the functionality of crt0.o and friends itself.  */
61
62 #undef STARTFILE_SPEC
63 #define STARTFILE_SPEC ""
64
65 #undef ENDFILE_SPEC
66 #define ENDFILE_SPEC ""