/* Target-independent configuration for VxWorks and VxWorks AE.
Copyright (C) 2005 Free Software Foundation, Inc.
Contributed by by CodeSourcery, LLC.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to the Free
Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA. *//* VxWorks headers are C++-aware. */
#undefNO_IMPLICIT_EXTERN_C
#defineNO_IMPLICIT_EXTERN_C/* Most of these will probably be overridden by subsequent headers. We
undefine them here just in case, and define VXWORKS_ versions of each,
to be used in port-specific vxworks.h. */
#undefLIB_SPEC
#undefLINK_SPEC
#undefLIBGCC_SPEC
#defineLIBGCC_SPEC VXWORKS_LIBGCC_SPEC
#undefSTARTFILE_SPEC
#undefENDFILE_SPEC/* Most of these macros are overridden in "config/vxworks.h" or
"config/vxworksae.h" and are here merely for documentation
purposes. */
#defineVXWORKS_ADDITIONAL_CPP_SPEC""
#defineVXWORKS_LIB_SPEC""
#defineVXWORKS_LINK_SPEC""
#defineVXWORKS_LIBGCC_SPEC""
#defineVXWORKS_STARTFILE_SPEC""
#defineVXWORKS_ENDFILE_SPEC""/* VxWorks cannot have dots in constructor labels, because it uses a
mutant variation of collect2 that generates C code instead of
assembly. Thus each constructor label must be a legitimate C
symbol. FIXME: Have VxWorks use real collect2 instead. */
#undefNO_DOLLAR_IN_LABEL
#defineNO_DOT_IN_LABEL/* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures. */
#undefWCHAR_TYPE
#defineWCHAR_TYPE"short unsigned int"
#undefWCHAR_TYPE_SIZE
#defineWCHAR_TYPE_SIZE 16
/* Dwarf2 unwind info is not supported. */
#defineDWARF2_UNWIND_INFO 0
/* VxWorks uses DWARF2. */
#defineDWARF2_DEBUGGING_INFO 1
#definePREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
/* None of these other formats is supported. */
#undefDWARF_DEBUGGING_INFO
#undefDBX_DEBUGGING_INFO
#undefSDB_DEBUGGING_INFO
#undefXCOFF_DEBUGGING_INFO
#undefVMS_DEBUGGING_INFO/* Kernel mode doesn't have ctors/dtors, but RTP mode does. */
#defineTARGET_HAVE_CTORS_DTORS false
#defineVXWORKS_OVERRIDE_OPTIONS/* empty *//* No math library needed. */
#defineMATH_LIBRARY""/* No profiling. */
#defineVXWORKS_FUNCTION_PROFILER(FILE, LABELNO) do \
{ \
sorry ("profiler support for VxWorks"); \
} while (0)
/* We occasionally need to distinguish between the VxWorks variants. */
#defineVXWORKS_KIND_NORMAL 1
#defineVXWORKS_KIND_AE 2