1 /* $FreeBSD: src/gnu/usr.bin/cc/cc_tools/freebsd-native.h,v 1.23 2003/07/11 05:33:24 kan Exp $ */
2 /* $DragonFly: src/gnu/usr.bin/cc3/cc_tools/Attic/dragonfly-native.h,v 1.3 2004/02/02 23:35:10 dillon Exp $
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. */
9 #define FREEBSD_NATIVE 1
11 /* Fake out gcc/config/freebsd<version>.h. */
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. */
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"
23 #define CROSS_INCLUDE_DIR PREFIX"/include"
25 #define STANDARD_INCLUDE_DIR PREFIX"/include"
28 /* Under FreeBSD, the normal location of the compiler back ends is the
29 /usr/libexec directory.
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
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 #define MD_EXEC_PREFIX PREFIX"/libexec/gcc3/"
40 #define FBSD_DATA_PREFIX PREFIX"/libdata/gcc/"
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.
48 /* Under FreeBSD, the normal location of the various *crt*.o files is the
49 /usr/lib directory. */
51 #define STANDARD_STARTFILE_PREFIX PREFIX"/lib/"
52 #define STANDARD_STARTFILE_PREFIX_1 PREFIX"/lib/gcc3/"
53 #undef MD_STARTFILE_PREFIX
55 /* For the native system compiler, we actually build libgcc in a profiled
56 version. So we should use it with -pg. */
57 #define LIBGCC_SPEC "%{shared: -lgcc_pic} \
58 %{!shared: %{!pg: -lgcc} %{pg: -lgcc_p}}"
59 #define LIBSTDCXX_PROFILE "-lstdc++_p"
60 #define MATH_LIBRARY_PROFILE "-lm_p"
61 #define FORTRAN_LIBRARY_PROFILE "-lg2c_p"
63 /* FreeBSD is 4.4BSD derived */
66 /* Dike out [stupid, IMHO] libiberty functions. */
67 #define xmalloc_set_program_name(dummy)
68 #define xmalloc malloc
69 #define xcalloc calloc
70 #define xrealloc realloc
71 #define xstrdup strdup
72 #define xstrerror strerror
74 /* And now they want to replace ctype.h.... grr... [stupid, IMHO] */
75 #define xxxISDIGIT isdigit
76 #define xxxISGRAPH isgraph
77 #define xxxISLOWER islower
78 #define xxxISSPACE isspace
79 #define xxxTOUPPER toupper