1 /* Base configuration file for all FreeBSD targets. 2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 GCC is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with GCC; see the file COPYING. If not, write to 18 the Free Software Foundation, 51 Franklin Street, Fifth Floor, 19 Boston, MA 02110-1301, USA. */ 20 21 /* Common FreeBSD configuration. 22 All FreeBSD architectures should include this file, which will specify 23 their commonalities. 24 Adapted from gcc/config/i386/freebsd-elf.h by 25 David O'Brien <obrien@FreeBSD.org>. 26 Further work by David O'Brien <obrien@FreeBSD.org> and 27 Loren J. Rittle <ljrittle@acm.org>. */ 28 29 /* $FreeBSD: stable/12/contrib/gcc/config/freebsd.h 229715 2012-01-06 18:37:49Z andreast $ */ 30 31 /* In case we need to know. */ 32 #define USING_CONFIG_FREEBSD 1 33 34 /* This defines which switch letters take arguments. On FreeBSD, most of 35 the normal cases (defined in gcc.c) apply, and we also have -h* and 36 -z* options (for the linker) (coming from SVR4). 37 We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */ 38 39 #undef SWITCH_TAKES_ARG 40 #define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR)) 41 42 #undef WORD_SWITCH_TAKES_ARG 43 #define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR)) 44 45 #undef TARGET_OS_CPP_BUILTINS 46 #define TARGET_OS_CPP_BUILTINS() FBSD_TARGET_OS_CPP_BUILTINS() 47 48 #undef CPP_SPEC 49 #define CPP_SPEC FBSD_CPP_SPEC 50 51 #undef STARTFILE_SPEC 52 #define STARTFILE_SPEC FBSD_STARTFILE_SPEC 53 54 #undef ENDFILE_SPEC 55 #define ENDFILE_SPEC FBSD_ENDFILE_SPEC 56 57 #undef LIB_SPEC 58 #define LIB_SPEC FBSD_LIB_SPEC 59 60 61 /************************[ Target stuff ]***********************************/ 62 63 /* All FreeBSD Architectures support the ELF object file format. */ 64 #undef OBJECT_FORMAT_ELF 65 #define OBJECT_FORMAT_ELF 1 66 #undef TARGET_ELF 67 #define TARGET_ELF 1 68 69 /* Don't assume anything about the header files. */ 70 #undef NO_IMPLICIT_EXTERN_C 71 #define NO_IMPLICIT_EXTERN_C 1 72 73 /* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */ 74 #undef SIZE_TYPE 75 #define SIZE_TYPE FBSD_SIZE_TYPE 76 #undef PTRDIFF_TYPE 77 #define PTRDIFF_TYPE FBSD_PTRDIFF_TYPE 78 79 #undef WCHAR_TYPE 80 #define WCHAR_TYPE "int" 81 #undef WCHAR_TYPE_SIZE 82 #define WCHAR_TYPE_SIZE 32 83 #undef WINT_TYPE 84 #define WINT_TYPE "int" 85 #undef WINT_TYPE_SIZE 86 #define WINT_TYPE_SIZE 32 87 88 #ifdef FREEBSD_NATIVE 89 #define LIBSTDCXX_PROFILE "-lstdc++_p" 90 #endif 91 #define MATH_LIBRARY_PROFILE "-lm_p" 92 93 /* Code generation parameters. */ 94 95 /* Writing `int' for a bitfield forces int alignment for the structure. */ 96 /* XXX: ok for Alpha?? */ 97 #undef PCC_BITFIELD_TYPE_MATTERS 98 #define PCC_BITFIELD_TYPE_MATTERS 1 99 100 /* Use periods rather than dollar signs in special g++ assembler names. 101 This ensures the configuration knows our system correctly so we can link 102 with libraries compiled with the native cc. */ 103 #undef NO_DOLLAR_IN_LABEL 104 105 /* Define this so we can compile MS code for use with WINE. */ 106 #define HANDLE_PRAGMA_PACK_PUSH_POP 1 107 108 #define TARGET_POSIX_IO 109