Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / gcc / config / i386 / vxi386.h
1 /* Definitions of target machine for GNU compiler.  VxWorks i386 version.
2    Copyright (C) 1998 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 CPP_CPU_SPEC
22 #define CPP_CPU_SPEC "\
23 -Asystem(unix) -Acpu(i386) -Amachine(i386) \
24 %{!ansi:-Di386} -D__i386 -D__i386__ \
25 %{march=i386:-DCPU=I80386} \
26 %{march=i486:-DCPU=I80486 %(cpp_486)} \
27 %{march=pentium:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUM %(cpp_586)} \
28 %{march=pentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \
29 %{!march=*: \
30  %{mcpu=i386:-DCPU=I80386} \
31  %{mcpu=i486:-DCPU=I80486 %(cpp_486)} %{m486:-DCPU=I80486 %(cpp_486)} \
32  %{mpentium:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUM %(cpp_586)} \
33  %{mcpu=pentium:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUM %(cpp_586)} \
34  %{mpentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \
35  %{mcpu=pentiumpro:-DCPU=PENTIUM -DCPU_VARIANT=PENTIUMPRO %(cpp_686)} \
36  %{!mcpu*:%{!m486:%{!mpentium*:-DCPU=I80386 %(cpp_cpu_default)}}}}"
37
38 #include "i386/i386-aout.h"
39
40 #define HANDLE_SYSV_PRAGMA
41
42 #undef CPP_PREDEFINES
43 #define CPP_PREDEFINES "-D__vxworks -D__i386__"
44
45 /* VxWorks does all the library stuff itself.  */
46
47 #undef LIB_SPEC
48 #define LIB_SPEC ""
49
50 /* VxWorks uses object files, not loadable images.  make linker just
51    combine objects. */
52
53 #undef LINK_SPEC
54 #define LINK_SPEC "-r"
55
56 /* VxWorks provides the functionality of crt0.o and friends itself.  */
57
58 #undef STARTFILE_SPEC
59 #define STARTFILE_SPEC ""
60
61 #undef ENDFILE_SPEC
62 #define ENDFILE_SPEC ""