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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [config/] [vx-common.h] - Blame information for rev 832

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

Line No. Rev Author Line
1 38 julius
/* Target-independent configuration for VxWorks and VxWorks AE.
2
   Copyright (C) 2005, 2007 Free Software Foundation, Inc.
3
   Contributed by by CodeSourcery, LLC.
4
 
5
This file is part of GCC.
6
 
7
GCC is free software; you can redistribute it and/or modify it under
8
the terms of the GNU General Public License as published by the Free
9
Software Foundation; either version 3, or (at your option) any later
10
version.
11
 
12
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13
WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15
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
/* VxWorks headers are C++-aware.  */
22
#undef  NO_IMPLICIT_EXTERN_C
23
#define NO_IMPLICIT_EXTERN_C
24
 
25
/* Most of these will probably be overridden by subsequent headers.  We
26
   undefine them here just in case, and define VXWORKS_ versions of each,
27
   to be used in port-specific vxworks.h.  */
28
#undef LIB_SPEC
29
#undef LINK_SPEC
30
#undef LIBGCC_SPEC
31
#define LIBGCC_SPEC VXWORKS_LIBGCC_SPEC
32
#undef STARTFILE_SPEC
33
#undef ENDFILE_SPEC
34
 
35
/* Most of these macros are overridden in "config/vxworks.h" or
36
   "config/vxworksae.h" and are here merely for documentation
37
   purposes.  */
38
#define VXWORKS_ADDITIONAL_CPP_SPEC ""
39
#define VXWORKS_LIB_SPEC ""
40
#define VXWORKS_LINK_SPEC ""
41
#define VXWORKS_LIBGCC_SPEC ""
42
#define VXWORKS_STARTFILE_SPEC ""
43
#define VXWORKS_ENDFILE_SPEC ""
44
 
45
/* VxWorks cannot have dots in constructor labels, because it uses a
46
   mutant variation of collect2 that generates C code instead of
47
   assembly.  Thus each constructor label must be a legitimate C
48
   symbol.  FIXME: Have VxWorks use real collect2 instead.  */
49
#undef NO_DOLLAR_IN_LABEL
50
#define NO_DOT_IN_LABEL
51
 
52
/* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures.  */
53
#undef WCHAR_TYPE
54
#define WCHAR_TYPE "short unsigned int"
55
#undef WCHAR_TYPE_SIZE
56
#define WCHAR_TYPE_SIZE 16
57
 
58
/* Dwarf2 unwind info is not supported.  */
59
#define DWARF2_UNWIND_INFO 0
60
 
61
/* VxWorks uses DWARF2.  */
62
#define DWARF2_DEBUGGING_INFO 1
63
#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
64
 
65
/* None of these other formats is supported.  */
66
#undef DWARF_DEBUGGING_INFO
67
#undef DBX_DEBUGGING_INFO
68
#undef SDB_DEBUGGING_INFO
69
#undef XCOFF_DEBUGGING_INFO
70
#undef VMS_DEBUGGING_INFO
71
 
72
/* Kernel mode doesn't have ctors/dtors, but RTP mode does.  */
73
#define TARGET_HAVE_CTORS_DTORS false
74
#define VXWORKS_OVERRIDE_OPTIONS /* empty */
75
 
76
/* No math library needed.  */
77
#define MATH_LIBRARY ""
78
 
79
/* No profiling.  */
80
#define VXWORKS_FUNCTION_PROFILER(FILE, LABELNO) do     \
81
{                                                       \
82
  sorry ("profiler support for VxWorks");               \
83
} while (0)
84
 
85
/* We occasionally need to distinguish between the VxWorks variants.  */
86
#define VXWORKS_KIND_NORMAL  1
87
#define VXWORKS_KIND_AE      2

powered by: WebSVN 2.1.0

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