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