More __FreeBSD__ -> __DragonFly__ translation
[dragonfly.git] / gnu / usr.bin / cc3 / cc_tools / freebsd-native.h
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/freebsd-native.h,v 1.3 2004/01/20 19:31:18 drhodus Exp $
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 5
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
42 /* Under FreeBSD, the normal location of the various *crt*.o files is the
43    /usr/lib directory.  */
44
45 #define STANDARD_STARTFILE_PREFIX       PREFIX"/lib/gcc3"
46 #ifdef CROSS_COMPILE
47 #define CROSS_STARTFILE_PREFIX          PREFIX"/lib/gcc3"
48 #endif
49 #undef  MD_STARTFILE_PREFIX             /* We don't need one for now. */
50
51 /* For the native system compiler, we actually build libgcc in a profiled
52    version.  So we should use it with -pg.  */
53 #define LIBGCC_SPEC             "%{shared: -lgcc_pic} \
54     %{!shared: %{!pg: -lgcc} %{pg: -lgcc_p}}"
55 #define LIBSTDCXX_PROFILE       "-lstdc++_p"
56 #define MATH_LIBRARY_PROFILE    "-lm_p"
57 #define FORTRAN_LIBRARY_PROFILE "-lg2c_p"
58
59 /* FreeBSD is 4.4BSD derived */
60 #define bsd4_4
61
62 /* Dike out [stupid, IMHO] libiberty functions.  */
63 #define xmalloc_set_program_name(dummy)
64 #define xmalloc         malloc
65 #define xcalloc         calloc
66 #define xrealloc        realloc
67 #define xstrdup         strdup
68 #define xstrerror       strerror
69
70 /* And now they want to replace ctype.h.... grr... [stupid, IMHO] */
71 #define xxxISDIGIT      isdigit
72 #define xxxISGRAPH      isgraph
73 #define xxxISLOWER      islower
74 #define xxxISSPACE      isspace
75 #define xxxTOUPPER      toupper