Welcome the build infrastructure for gcc41
[dragonfly.git] / gnu / usr.bin / cc41 / cc_prep / config / dragonfly.h
blob7c6f6650e012ff2e538fbdaa7759a65411218c59
1 /* $DragonFly: src/gnu/usr.bin/cc41/cc_prep/config/dragonfly.h,v 1.1 2006/09/27 12:10:33 corecode Exp $ */
3 /* Base configuration file for all DragonFly targets.
4 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
13 GCC is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING. If not, write to
20 the Free Software Foundation, 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
23 /* Common DragonFly configuration.
24 All DragonFly architectures should include this file, which will specify
25 their commonalities.
27 Adapted from gcc/config/freebsd.h by
28 Joerg Sonnenberger <joerg@bec.de>
30 Adapted from gcc/config/i386/freebsd-elf.h by
31 David O'Brien <obrien@FreeBSD.org>.
32 Further work by David O'Brien <obrien@FreeBSD.org> and
33 Loren J. Rittle <ljrittle@acm.org>. */
36 /* This defines which switch letters take arguments. On DragonFly, most of
37 the normal cases (defined in gcc.c) apply, and we also have -h* and
38 -z* options (for the linker) (coming from SVR4).
39 We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
41 #undef SWITCH_TAKES_ARG
42 #define SWITCH_TAKES_ARG(CHAR) (DFBSD_SWITCH_TAKES_ARG(CHAR))
44 #undef WORD_SWITCH_TAKES_ARG
45 #define WORD_SWITCH_TAKES_ARG(STR) (DFBSD_WORD_SWITCH_TAKES_ARG(STR))
47 #undef TARGET_OS_CPP_BUILTINS
48 #define TARGET_OS_CPP_BUILTINS() DFBSD_TARGET_OS_CPP_BUILTINS()
50 #undef CPP_SPEC
51 #define CPP_SPEC DFBSD_CPP_SPEC
53 #undef STARTFILE_SPEC
54 #define STARTFILE_SPEC DFBSD_STARTFILE_SPEC
56 #undef ENDFILE_SPEC
57 #define ENDFILE_SPEC DFBSD_ENDFILE_SPEC
59 #undef LIB_SPEC
60 #define LIB_SPEC DFBSD_LIB_SPEC
62 #undef LINK_COMMAND_SPEC
63 #define LINK_COMMAND_SPEC DFBSD_LINK_COMMAND_SPEC
65 /************************[ Target stuff ]***********************************/
67 /* All DragonFly Architectures support the ELF object file format. */
68 #undef OBJECT_FORMAT_ELF
69 #define OBJECT_FORMAT_ELF
71 /* Don't assume anything about the header files. */
72 #undef NO_IMPLICIT_EXTERN_C
73 #define NO_IMPLICIT_EXTERN_C 1
75 /* Make gcc agree with DragonFly's standard headers (<machine/stdint.h>, etc...) */
77 #undef WCHAR_TYPE
78 #define WCHAR_TYPE "int"
80 #define MATH_LIBRARY_PROFILE "-lm_p"
82 /* Code generation parameters. */
84 /* Use periods rather than dollar signs in special g++ assembler names.
85 This ensures the configuration knows our system correctly so we can link
86 with libraries compiled with the native cc. */
87 #undef NO_DOLLAR_IN_LABEL
89 /* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW.
90 This enables the test coverage code to use file locking when exiting a
91 program, which avoids race conditions if the program has forked. */
92 #define TARGET_HAS_F_SETLKW
94 #define DFBSD_MAJOR 1