/* Base configuration file for all FreeBSD targets.
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
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. *//* Common FreeBSD configuration.
All FreeBSD architectures should include this file, which will specify
their commonalities.
Adapted from gcc/config/i386/freebsd-elf.h by
David O'Brien <obrien@FreeBSD.org>.
Further work by David O'Brien <obrien@FreeBSD.org> and
Loren J. Rittle <ljrittle@acm.org>. *//* In case we need to know. */
#defineUSING_CONFIG_FREEBSD 1
/* This defines which switch letters take arguments. On FreeBSD, most of
the normal cases (defined in gcc.c) apply, and we also have -h* and
-z* options (for the linker) (coming from SVR4).
We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
#undefSWITCH_TAKES_ARG
#defineSWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
#undefWORD_SWITCH_TAKES_ARG
#defineWORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
#undefTARGET_OS_CPP_BUILTINS
#defineTARGET_OS_CPP_BUILTINS() FBSD_TARGET_OS_CPP_BUILTINS()
#undefCPP_SPEC
#defineCPP_SPEC FBSD_CPP_SPEC
#undefSTARTFILE_SPEC
#defineSTARTFILE_SPEC FBSD_STARTFILE_SPEC
#undefENDFILE_SPEC
#defineENDFILE_SPEC FBSD_ENDFILE_SPEC
#undefLIB_SPEC
#defineLIB_SPEC FBSD_LIB_SPEC
/************************[ Target stuff ]***********************************//* All FreeBSD Architectures support the ELF object file format. */
#undefOBJECT_FORMAT_ELF
#defineOBJECT_FORMAT_ELF/* Don't assume anything about the header files. */
#undefNO_IMPLICIT_EXTERN_C
#defineNO_IMPLICIT_EXTERN_C 1
/* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */
#undefWCHAR_TYPE
#defineWCHAR_TYPE"int"
#defineMATH_LIBRARY_PROFILE"-lm_p"/* Code generation parameters. *//* Use periods rather than dollar signs in special g++ assembler names.
This ensures the configuration knows our system correctly so we can link
with libraries compiled with the native cc. */
#undefNO_DOLLAR_IN_LABEL/* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW.
This enables the test coverage code to use file locking when exiting a
program, which avoids race conditions if the program has forked. */
#defineTARGET_POSIX_IO/* LLVM LOCAL begin */
#ifdefENABLE_LLVM
#defineHANDLE_PRAGMA_PACK_PUSH_POP
#endif/* LLVM LOCAL end */