OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [i386/] [vxworks.h] - Blame information for rev 820

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
/* IA32 VxWorks target definitions for GNU compiler.
2
   Copyright (C) 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
3
   Updated by CodeSourcery, LLC.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 3, or (at your option)
10
any later version.
11
 
12
GCC is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with GCC; see the file COPYING3.  If not see
19
<http://www.gnu.org/licenses/>.  */
20
 
21
#define HANDLE_SYSV_PRAGMA 1
22
 
23
#undef  TARGET_VERSION
24
#define TARGET_VERSION fprintf (stderr, " (80586, VxWorks syntax)");
25
 
26
#undef  ASM_SPEC
27
#define ASM_SPEC "%{v:-v} %{Qy:} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}"
28
 
29
#define VXWORKS_CPU_DEFINE()                            \
30
  do                                                    \
31
    {                                                   \
32
      if (TARGET_386)                                   \
33
        builtin_define ("CPU=I80386");                  \
34
      else if (TARGET_486)                              \
35
        builtin_define ("CPU=I80486");                  \
36
      else if (TARGET_PENTIUM)                          \
37
        {                                               \
38
          builtin_define ("CPU=PENTIUM");               \
39
          builtin_define ("CPU_VARIANT=PENTIUM");       \
40
        }                                               \
41
      else if (TARGET_PENTIUMPRO)                       \
42
        {                                               \
43
          builtin_define ("CPU=PENTIUM2");              \
44
          builtin_define ("CPU_VARIANT=PENTIUMPRO");    \
45
        }                                               \
46
      else if (TARGET_PENTIUM4)                         \
47
        {                                               \
48
          builtin_define ("CPU=PENTIUM4");              \
49
          builtin_define ("CPU_VARIANT=PENTIUM4");      \
50
        }                                               \
51
    }                                                   \
52
  while (0)
53
 
54
#define TARGET_OS_CPP_BUILTINS()                \
55
  do                                            \
56
    {                                           \
57
      builtin_define ("__vxworks");             \
58
      builtin_define ("__VXWORKS__");           \
59
      builtin_assert ("system=unix");           \
60
                                                \
61
      VXWORKS_CPU_DEFINE();                     \
62
    }                                           \
63
  while (0)
64
 
65
#undef  CPP_SPEC
66
#define CPP_SPEC VXWORKS_ADDITIONAL_CPP_SPEC
67
#undef  LIB_SPEC
68
#define LIB_SPEC VXWORKS_LIB_SPEC
69
#undef  STARTFILE_SPEC
70
#define STARTFILE_SPEC VXWORKS_STARTFILE_SPEC
71
#undef  ENDFILE_SPEC
72
#define ENDFILE_SPEC VXWORKS_ENDFILE_SPEC
73
#undef  LINK_SPEC
74
#define LINK_SPEC VXWORKS_LINK_SPEC
75
 
76
#undef  SUBTARGET_SWITCHES
77
#define SUBTARGET_SWITCHES EXTRA_SUBTARGET_SWITCHES
78
 
79
#undef SUBTARGET_OVERRIDE_OPTIONS
80
#define SUBTARGET_OVERRIDE_OPTIONS VXWORKS_OVERRIDE_OPTIONS
81
 
82
/* No _mcount profiling on VxWorks.  */
83
#undef FUNCTION_PROFILER
84
#define FUNCTION_PROFILER(FILE,LABELNO) VXWORKS_FUNCTION_PROFILER(FILE,LABELNO)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.