1 /* Base configuration file for all FreeBSD targets.
2 Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC 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)
11 GNU CC 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.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 /* Common FreeBSD configuration.
22 All FreeBSD architectures should include this file, which will specify
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 Adapted for DragonFly by Matthew Dillon <dillon@backplane.com>
32 * $FreeBSD: src/contrib/gcc/config/freebsd.h,v 1.38 2003/07/11 05:08:01 kan Exp $
33 * $DragonFly: src/gnu/usr.bin/cc3/config/Attic/dragonfly.h,v 1.1 2004/02/02 23:35:11 dillon Exp $
36 /* In case we need to know. */
37 #define USING_CONFIG_FREEBSD 1
39 /* This defines which switch letters take arguments. On FreeBSD, most of
40 the normal cases (defined in gcc.c) apply, and we also have -h* and
41 -z* options (for the linker) (coming from SVR4).
42 We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
44 #undef SWITCH_TAKES_ARG
45 #define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
47 #undef WORD_SWITCH_TAKES_ARG
48 #define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
51 /* Obsolete, do not define it. */
53 #undef TARGET_OS_CPP_BUILTINS
54 #define TARGET_OS_CPP_BUILTINS() FBSD_TARGET_OS_CPP_BUILTINS()
57 #define CPP_SPEC FBSD_CPP_SPEC
60 #define STARTFILE_SPEC FBSD_STARTFILE_SPEC
63 #define ENDFILE_SPEC FBSD_ENDFILE_SPEC
66 #define LIB_SPEC FBSD_LIB_SPEC
69 /************************[ Target stuff ]***********************************/
71 /* All FreeBSD Architectures support the ELF object file format. */
72 #undef OBJECT_FORMAT_ELF
73 #define OBJECT_FORMAT_ELF 1
75 /* Don't assume anything about the header files. */
76 #undef NO_IMPLICIT_EXTERN_C
77 #define NO_IMPLICIT_EXTERN_C 1
79 /* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */
82 #define WCHAR_TYPE "int"
85 #define LIBSTDCXX_PROFILE "-lstdc++_p"
87 #define MATH_LIBRARY_PROFILE "-lm_p"
89 /* Code generation parameters. */
91 /* Writing `int' for a bitfield forces int alignment for the structure. */
92 /* XXX: ok for Alpha?? */
93 #undef PCC_BITFIELD_TYPE_MATTERS
94 #define PCC_BITFIELD_TYPE_MATTERS 1
96 /* Use periods rather than dollar signs in special g++ assembler names.
97 This ensures the configuration knows our system correctly so we can link
98 with libraries compiled with the native cc. */
99 #undef NO_DOLLAR_IN_LABEL
101 /* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW.
102 This enables the test coverage code to use file locking when exiting a
103 program, which avoids race conditions if the program has forked. */
104 #define TARGET_HAS_F_SETLKW 1