1 /* NETBSD_NATIVE is defined when gcc is integrated into the NetBSD
2 source tree so it can be configured appropriately without using
3 the GNU configure/build mechanism. */
7 /* Look for the include files in the system-defined places. */
9 #undef GPLUSPLUS_INCLUDE_DIR
10 #define GPLUSPLUS_INCLUDE_DIR "/usr/include/g++"
12 #undef GCC_INCLUDE_DIR
13 #define GCC_INCLUDE_DIR "/usr/include"
15 #undef INCLUDE_DEFAULTS
16 #define INCLUDE_DEFAULTS \
18 { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1 }, \
19 { GCC_INCLUDE_DIR, "GCC", 0, 0 }, \
23 /* Under NetBSD, the normal location of the compiler back ends is the
24 /usr/libexec directory. */
26 #undef STANDARD_EXEC_PREFIX
27 #define STANDARD_EXEC_PREFIX "/usr/libexec/"
29 /* Under NetBSD, the normal location of the various *crt*.o files is the
30 /usr/lib directory. */
32 #undef STANDARD_STARTFILE_PREFIX
33 #define STANDARD_STARTFILE_PREFIX "/usr/lib/"
35 #endif /* NETBSD_NATIVE */
38 /* Provide a LIB_SPEC appropriate for NetBSD. Just select the appropriate
39 libc, depending on whether we're doing profiling; if `-posix' is specified,
40 link against the appropriate libposix first. Don't include libc when
41 linking a shared library. */
57 /* Provide a LIBGCC_SPEC appropriate for NetBSD. We also want to exclude
58 libgcc with -symbolic. */
67 %{shared: -lgcc_pic} \
71 #define LIBGCC_SPEC "%{!shared:%{!symbolic: -lgcc}}"
74 /* When building shared libraries, the initialization and finalization
75 functions for the library are .init and .fini respectively. */
77 #define COLLECT_SHARED_INIT_FUNC(STREAM,FUNC) \
79 fprintf ((STREAM), "void __init() __asm__ (\".init\");"); \
80 fprintf ((STREAM), "void __init() {\n\t%s();\n}\n", (FUNC)); \
83 #define COLLECT_SHARED_FINI_FUNC(STREAM,FUNC) \
85 fprintf ((STREAM), "void __fini() __asm__ (\".fini\");"); \
86 fprintf ((STREAM), "void __fini() {\n\t%s();\n}\n", (FUNC)); \
89 /* Allow #sccs in preprocessor. */
92 #define SCCS_DIRECTIVE
94 #undef TARGET_HAS_F_SETLKW
95 #define TARGET_HAS_F_SETLKW
97 /* Implicit library calls should use memcpy, not bcopy, etc. */
99 #undef TARGET_MEM_FUNCTIONS
100 #define TARGET_MEM_FUNCTIONS 1
102 /* Handle #pragma weak and #pragma pack. */
104 #define HANDLE_SYSV_PRAGMA
107 /* Define some types that are the same on all NetBSD platforms,
108 making them agree with <machine/ansi.h>. */
111 #define WCHAR_TYPE "int"
113 #undef WCHAR_TYPE_SIZE
114 #define WCHAR_TYPE_SIZE 32
117 #define WINT_TYPE "int"