(in m32rx patch): Replace "." with "@." when preceeded by a capital letter
[official-gcc.git] / gcc / config / freebsd.h
blobe618beb7652ce73d0d00fb2d34ff3e5306f5c519
1 /* Base configuration file for all FreeBSD targets.
2 Copyright (C) 1999, 2000, 2001 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)
9 any later version.
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
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>. */
30 /* In case we need to know. */
31 #define USING_CONFIG_FREEBSD 1
33 /* This defines which switch letters take arguments. On FreeBSD, most of
34 the normal cases (defined in gcc.c) apply, and we also have -h* and
35 -z* options (for the linker) (coming from SVR4).
36 We also have -R (alias --rpath), no -z, --soname (-h), --assert etc. */
38 #undef SWITCH_TAKES_ARG
39 #define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
41 #undef WORD_SWITCH_TAKES_ARG
42 #define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
44 #undef CPP_PREDEFINES
45 #define CPP_PREDEFINES FBSD_CPP_PREDEFINES
47 #undef CPP_SPEC
48 #define CPP_SPEC FBSD_CPP_SPEC
50 #undef STARTFILE_SPEC
51 #define STARTFILE_SPEC FBSD_STARTFILE_SPEC
53 #undef ENDFILE_SPEC
54 #define ENDFILE_SPEC FBSD_ENDFILE_SPEC
56 #undef LIB_SPEC
57 #define LIB_SPEC FBSD_LIB_SPEC
60 /************************[ Target stuff ]***********************************/
62 /* Don't assume anything about the header files. */
63 #undef NO_IMPLICIT_EXTERN_C
64 #define NO_IMPLICIT_EXTERN_C
66 /* Allow #sccs in preprocessor. */
67 #undef SCCS_DIRECTIVE
68 #define SCCS_DIRECTIVE
70 /* Make gcc agree with FreeBSD's standard headers (<machine/ansi.h>, etc...) */
72 #undef WCHAR_TYPE
73 #define WCHAR_TYPE "int"
75 #undef WCHAR_UNSIGNED
76 #define WCHAR_UNSIGNED 0
78 /* Code generation parameters. */
80 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
81 we want to retain compatibility with older gcc versions
82 (even though the SVR4 ABI for the i386 says that records and unions are
83 returned in memory). */
84 #undef DEFAULT_PCC_STRUCT_RETURN
85 #define DEFAULT_PCC_STRUCT_RETURN 0
87 /* Use periods rather than dollar signs in special g++ assembler names.
88 This ensures the configuration knows our system correctly so we can link
89 with libraries compiled with the native cc. */
90 #undef NO_DOLLAR_IN_LABEL
92 /* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW.
93 This enables the test coverage code to use file locking when exiting a
94 program, which avoids race conditions if the program has forked. */
95 #define TARGET_HAS_F_SETLKW
97 /* The prefix to add to user-visible assembler symbols.
98 For System V Release 4 & ELF the convention is *not* to prepend a leading
99 underscore onto user-level symbol names. Some CPU files such as
100 config/sparc/sparc.h set this wrong for ELF. */
102 #undef USER_LABEL_PREFIX
103 #define USER_LABEL_PREFIX ""
105 /* Handle #pragma weak and #pragma pack. */
106 #undef HANDLE_SYSV_PRAGMA
107 #define HANDLE_SYSV_PRAGMA
109 /************************[ Assembler stuff ]********************************/
111 #undef IDENT_ASM_OP
112 #define IDENT_ASM_OP "\t.ident\t"
114 /************************[ Debugger stuff ]*********************************/
116 /* All ELF targets can support DWARF-2. */
117 #undef DWARF2_DEBUGGING_INFO
118 #define DWARF2_DEBUGGING_INFO
120 /* This is BSD, so we want the DBX format. */
121 #undef DBX_DEBUGGING_INFO
122 #define DBX_DEBUGGING_INFO
124 /* Even though this is BSD, ELF and the GNU tools operates better with dwarf2
125 than stabs. Since we don't have any native tools to be compatible with,
126 defaulting to dwarf2 is OK. */
127 #undef PREFERRED_DEBUGGING_TYPE
128 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG