binutils214 stage 2/4.
[dragonfly.git] / gnu / usr.bin / cc3 / cc_tools / dragonfly-native.h
CommitLineData
d2b48af8 1/* $FreeBSD: src/gnu/usr.bin/cc/cc_tools/freebsd-native.h,v 1.23 2003/07/11 05:33:24 kan Exp $ */
17030342 2/* $DragonFly: src/gnu/usr.bin/cc3/cc_tools/Attic/dragonfly-native.h,v 1.2 2004/02/02 05:43:12 dillon Exp $
d2b48af8
JS
3*/
4
5/* FREEBSD_NATIVE is defined when gcc is integrated into the FreeBSD
6 source tree so it can be configured appropriately without using
7 the GNU configure/build mechanism. */
8
9#define FREEBSD_NATIVE 1
10
11/* Fake out gcc/config/freebsd<version>.h. */
12#define FBSD_MAJOR 4
13
14#undef SYSTEM_INCLUDE_DIR /* We don't need one for now. */
15#undef TOOL_INCLUDE_DIR /* We don't need one for now. */
16#undef LOCAL_INCLUDE_DIR /* We don't wish to support one. */
17
18/* Look for the include files in the system-defined places. */
19#define GPLUSPLUS_INCLUDE_DIR PREFIX"/include/c++/3.3"
20#define GPLUSPLUS_BACKWARD_INCLUDE_DIR PREFIX"/include/c++/3.3/backward"
21#define GCC_INCLUDE_DIR PREFIX"/include"
22#ifdef CROSS_COMPILE
23#define CROSS_INCLUDE_DIR PREFIX"/include"
24#else
25#define STANDARD_INCLUDE_DIR PREFIX"/include"
26#endif
27
28/* Under FreeBSD, the normal location of the compiler back ends is the
29 /usr/libexec directory.
30
31 ``cc --print-search-dirs'' gives:
32 install: STANDARD_EXEC_PREFIX/(null)
33 programs: /usr/libexec/<OBJFORMAT>/:STANDARD_EXEC_PREFIX:MD_EXEC_PREFIX
34 libraries: MD_EXEC_PREFIX:MD_STARTFILE_PREFIX:STANDARD_STARTFILE_PREFIX
35*/
36#undef TOOLDIR_BASE_PREFIX /* Old?? This is not documented. */
37#undef STANDARD_BINDIR_PREFIX /* We don't need one for now. */
38#define STANDARD_EXEC_PREFIX PREFIX"/libexec/gcc3/"
39#undef MD_EXEC_PREFIX /* We don't want one. */
40#define FBSD_DATA_PREFIX PREFIX"/libdata/gcc/"
41
17030342
MD
42/*
43 * XXX at the moment crt1.o, crti.o, and crtn.o are generated from
44 * /usr/lib/libcsu and placed in /usr/lib. crtbegin* and crtend* are
45 * generated from the gcc dist and placed in /usr/lib/cc3.
46 *
47 */
d2b48af8
JS
48/* Under FreeBSD, the normal location of the various *crt*.o files is the
49 /usr/lib directory. */
50
17030342
MD
51#define STANDARD_STARTFILE_PREFIX1 PREFIX"/lib/"
52#define STANDARD_STARTFILE_PREFIX2 PREFIX"/lib/gcc3/"
53#define STANDARD_STARTFILE_PREFIX3 ""
54#define STANDARD_STARTFILE_PREFIX4 ""
55#undef MD_STARTFILE_PREFIX
d2b48af8
JS
56
57/* For the native system compiler, we actually build libgcc in a profiled
58 version. So we should use it with -pg. */
59#define LIBGCC_SPEC "%{shared: -lgcc_pic} \
60 %{!shared: %{!pg: -lgcc} %{pg: -lgcc_p}}"
61#define LIBSTDCXX_PROFILE "-lstdc++_p"
62#define MATH_LIBRARY_PROFILE "-lm_p"
63#define FORTRAN_LIBRARY_PROFILE "-lg2c_p"
64
65/* FreeBSD is 4.4BSD derived */
66#define bsd4_4
67
68/* Dike out [stupid, IMHO] libiberty functions. */
69#define xmalloc_set_program_name(dummy)
70#define xmalloc malloc
71#define xcalloc calloc
72#define xrealloc realloc
73#define xstrdup strdup
74#define xstrerror strerror
75
76/* And now they want to replace ctype.h.... grr... [stupid, IMHO] */
77#define xxxISDIGIT isdigit
78#define xxxISGRAPH isgraph
79#define xxxISLOWER islower
80#define xxxISSPACE isspace
81#define xxxTOUPPER toupper