Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / gcc / config / vxworks.h
blob38fb967695ace5d1280671b73e1e77a09b94d374
1 /* Common VxWorks target definitions for GCC.
2 Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
3 Contributed by Wind River Systems.
5 This file is part of GCC.
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 2, or (at your option)
10 any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 /* Specify what to link with. */
23 /* VxWorks does all the library stuff itself. */
24 #undef LIB_SPEC
25 #define LIB_SPEC ""
27 #undef LINK_SPEC
28 #define LINK_SPEC "-r"
30 /* VxWorks provides the functionality of crt0.o and friends itself. */
31 #undef STARTFILE_SPEC
32 #define STARTFILE_SPEC ""
34 #undef ENDFILE_SPEC
35 #define ENDFILE_SPEC ""
37 /* VxWorks cannot have dots in constructor labels, because it uses a
38 mutant variation of collect2 that generates C code instead of
39 assembly. Thus each constructor label must be a legitimate C
40 symbol. FIXME: Have VxWorks use real collect2 instead. */
42 #undef NO_DOLLAR_IN_LABEL
43 #define NO_DOT_IN_LABEL
45 /* We want #pragma pack(n) enabled and expect to inherit the proper
46 definition of HANDLE_SYSV_PRAGMA from elfos.h for that purpose. */
48 /* No underscore is prepended to any C symbol name. */
49 #undef USER_LABEL_PREFIX
50 #define USER_LABEL_PREFIX ""
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
58 /* Dwarf2 unwind info is not supported. */
59 #define DWARF2_UNWIND_INFO 0
60 /* Weak symbols and link-once sections are not enabled by default. */
61 #define DEFAULT_USE_WEAK 0
63 /* Only supported debug format is Dwarf2. */
64 #undef DBX_DEBUGGING_INFO