vxworks.h revision 132718
1/* Definitions of target machine for GCC. VxWorks i586 version. 2 Copyright (C) 2003 Free Software Foundation, Inc. 3 4This file is part of GCC. 5 6GCC is free software; you can redistribute it and/or modify 7it under the terms of the GNU General Public License as published by 8the Free Software Foundation; either version 2, or (at your option) 9any later version. 10 11GCC is distributed in the hope that it will be useful, 12but WITHOUT ANY WARRANTY; without even the implied warranty of 13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14GNU General Public License for more details. 15 16You should have received a copy of the GNU General Public License 17along with GCC; see the file COPYING. If not, write to 18the Free Software Foundation, 59 Temple Place - Suite 330, 19Boston, MA 02111-1307, USA. */ 20 21 22#define HANDLE_SYSV_PRAGMA 1 23 24#undef TARGET_VERSION 25#define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)"); 26 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 */ 30 31#define LPREFIX "L" 32 33/* Assembler pseudos to introduce constants of various size. */ 34 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. */ 38 39 40#define ASM_OUTPUT_ALIGN(FILE,LOG) \ 41 if ((LOG)!=0) fprintf ((FILE), "\t.balign %d\n", 1<<(LOG)) 42 43#undef ASM_SPEC 44#define ASM_SPEC "%{v:-V} %{Qy:} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}" 45 46#define TARGET_OS_CPP_BUILTINS() \ 47 do \ 48 { \ 49 builtin_define ("__vxworks"); \ 50 builtin_assert ("system=unix"); \ 51 \ 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) 73 74 75