2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / i386 / vxworks.h
blob5ded098b9d310f375c7777942c276ed3d5813fa6
1 /* Definitions of target machine for GCC. VxWorks i586 version.
2 Copyright (C) 2003 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC 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.
11 GCC 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 GCC; 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 HANDLE_SYSV_PRAGMA 1
24 #undef TARGET_VERSION
25 #define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)");
27 /* Prefix for internally generated assembler labels. If we aren't using
28 underscores, we are using prefix `.'s to identify labels that should
29 be ignored, as in `i386/gas.h' --karl@cs.umb.edu */
31 #define LPREFIX "L"
33 /* Assembler pseudos to introduce constants of various size. */
35 #define ASM_SHORT "\t.word\t"
36 #define ASM_LONG "\t.long\t"
37 #define ASM_QUAD "\t.quad\t" /* Should not be used for 32bit compilation. */
40 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
41 if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG))
43 #undef ASM_SPEC
44 #define ASM_SPEC "%{v:-V} %{Qy:} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
46 #define TARGET_OS_CPP_BUILTINS() \
47 do \
48 { \
49 builtin_define ("__vxworks"); \
50 builtin_assert ("system=unix"); \
52 if (TARGET_386) \
53 builtin_define ("CPU=I80386"); \
54 else if (TARGET_486) \
55 builtin_define ("CPU=I80486"); \
56 else if (TARGET_PENTIUM) \
57 { \
58 builtin_define ("CPU=PENTIUM"); \
59 builtin_define ("CPU_VARIANT=PENTIUM"); \
60 } \
61 else if (TARGET_PENTIUMPRO) \
62 { \
63 builtin_define ("CPU=PENTIUM2"); \
64 builtin_define ("CPU_VARIANT=PENTIUMPRO"); \
65 } \
66 else if (TARGET_PENTIUM4) \
67 { \
68 builtin_define ("CPU=PENTIUM4"); \
69 builtin_define ("CPU_VARIANT=PENTIUM4"); \
70 } \
71 } \
72 while (0)