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