1 /* Target-independent configuration for VxWorks and VxWorks AE. 2 Copyright (C) 2005-2019 Free Software Foundation, Inc. 3 Contributed 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 /* Most of these will probably be overridden by subsequent headers. We 22 undefine them here just in case, and define VXWORKS_ versions of each, 23 to be used in port-specific vxworks.h. */ 24 #undef LIB_SPEC 25 #undef LINK_SPEC 26 #undef LIBGCC_SPEC 27 #define LIBGCC_SPEC VXWORKS_LIBGCC_SPEC 28 #undef STARTFILE_SPEC 29 #undef ENDFILE_SPEC 30 31 /* Most of these macros are overridden in "config/vxworks.h" or 32 "config/vxworksae.h" and are here merely for documentation 33 purposes. */ 34 #define VXWORKS_ADDITIONAL_CPP_SPEC "" 35 #define VXWORKS_LIB_SPEC "" 36 #define VXWORKS_LINK_SPEC "" 37 #define VXWORKS_LIBGCC_SPEC "" 38 #define VXWORKS_STARTFILE_SPEC "" 39 #define VXWORKS_ENDFILE_SPEC "" 40 41 /* VxWorks cannot have dots in constructor labels, because it uses a 42 mutant variation of collect2 that generates C code instead of 43 assembly. Thus each constructor label must be a legitimate C 44 symbol. FIXME: Have VxWorks use real collect2 instead. */ 45 #undef NO_DOLLAR_IN_LABEL 46 #define NO_DOT_IN_LABEL 47 48 /* VxWorks uses wchar_t == unsigned short (UCS2) on all architectures. */ 49 #undef WCHAR_TYPE 50 #define WCHAR_TYPE "short unsigned int" 51 #undef WCHAR_TYPE_SIZE 52 #define WCHAR_TYPE_SIZE 16 53 54 /* Likewise wint_t. */ 55 #undef WINT_TYPE 56 #define WINT_TYPE "short unsigned int" 57 #undef WINT_TYPE_SIZE 58 #define WINT_TYPE_SIZE 16 59 60 /* Dwarf2 unwind info is supported. */ 61 #undef DWARF2_UNWIND_INFO 62 #define DWARF2_UNWIND_INFO 1 63 64 /* VxWorks uses DWARF2. */ 65 #define DWARF2_DEBUGGING_INFO 1 66 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG 67 68 /* None of these other formats is supported. */ 69 #undef DBX_DEBUGGING_INFO 70 #undef XCOFF_DEBUGGING_INFO 71 #undef VMS_DEBUGGING_INFO 72 73 /* Kernel mode doesn't have ctors/dtors, but RTP mode does. */ 74 #define TARGET_HAVE_CTORS_DTORS false 75 #define VXWORKS_OVERRIDE_OPTIONS /* empty */ 76 77 /* No math library needed. */ 78 #define MATH_LIBRARY "" 79 80 /* No profiling. */ 81 #define VXWORKS_FUNCTION_PROFILER(FILE, LABELNO) do \ 82 { \ 83 sorry ("profiler support for VxWorks"); \ 84 } while (0) 85 86 /* We occasionally need to distinguish between the VxWorks variants. */ 87 #define VXWORKS_KIND_NORMAL 1 88 #define VXWORKS_KIND_AE 2 89 90 /* 91 * libitm is not supported on VxWorks. Rather than providing stub 92 * no-op _ITM_registerTMCloneTable/_ITM_deregisterTMCloneTable 93 * functions, simply prevent crtstuff from even referring to those. 94 */ 95 #define USE_TM_CLONE_REGISTRY 0 96