source: trunk/src/gcc/gcc/config/freebsd.h@ 1392

Last change on this file since 1392 was 1392, checked in by bird, 22 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.0 KB
Line 
1/* Base configuration file for all FreeBSD targets.
2 Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
3
4This file is part of GNU CC.
5
6GNU CC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU CC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU CC; see the file COPYING. If not, write to
18the Free Software Foundation, 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, 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 <[email protected]>.
26 Further work by David O'Brien <[email protected]> and
27 Loren J. Rittle <[email protected]>. */
28
29
30/* In case we need to know. */
31#define USING_CONFIG_FREEBSD 1
32
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. */
37
38#undef SWITCH_TAKES_ARG
39#define SWITCH_TAKES_ARG(CHAR) (FBSD_SWITCH_TAKES_ARG(CHAR))
40
41#undef WORD_SWITCH_TAKES_ARG
42#define WORD_SWITCH_TAKES_ARG(STR) (FBSD_WORD_SWITCH_TAKES_ARG(STR))
43
44#undef CPP_PREDEFINES
45/* Obsolete, do not define it. */
46
47#undef TARGET_OS_CPP_BUILTINS
48#define TARGET_OS_CPP_BUILTINS() FBSD_TARGET_OS_CPP_BUILTINS()
49
50#undef CPP_SPEC
51#define CPP_SPEC FBSD_CPP_SPEC
52
53#undef STARTFILE_SPEC
54#define STARTFILE_SPEC FBSD_STARTFILE_SPEC
55
56#undef ENDFILE_SPEC
57#define ENDFILE_SPEC FBSD_ENDFILE_SPEC
58
59#undef LIB_SPEC
60#define LIB_SPEC FBSD_LIB_SPEC
61
62
63/************************[ Target stuff ]***********************************/
64
65/* All FreeBSD Architectures support the ELF object file format. */
66#undef OBJECT_FORMAT_ELF
67#define OBJECT_FORMAT_ELF
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
75#undef WCHAR_TYPE
76#define WCHAR_TYPE "int"
77
78#define MATH_LIBRARY_PROFILE "-lm_p"
79
80/* Code generation parameters. */
81
82/* Use periods rather than dollar signs in special g++ assembler names.
83 This ensures the configuration knows our system correctly so we can link
84 with libraries compiled with the native cc. */
85#undef NO_DOLLAR_IN_LABEL
86
87/* Used by libgcc2.c. We support file locking with fcntl / F_SETLKW.
88 This enables the test coverage code to use file locking when exiting a
89 program, which avoids race conditions if the program has forked. */
90#define TARGET_HAS_F_SETLKW
Note: See TracBrowser for help on using the repository browser.