1 #define TARGET_OS_CPP_BUILTINS() \
4 NETBSD_OS_CPP_BUILTINS_AOUT(); \
8 #define TARGET_VERSION fprintf (stderr, " (NetBSD/i386 a.out)");
10 /* This goes away when the math-emulator is fixed */
11 #undef TARGET_SUBTARGET_DEFAULT
12 #define TARGET_SUBTARGET_DEFAULT \
13 (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)
15 #undef SUBTARGET_EXTRA_SPECS
16 #define SUBTARGET_EXTRA_SPECS \
17 { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
20 #define CPP_SPEC "%(netbsd_cpp_spec)"
24 #define SIZE_TYPE "unsigned int"
27 #define PTRDIFF_TYPE "int"
30 #define ASM_APP_ON "#APP\n"
33 #define ASM_APP_OFF "#NO_APP\n"
35 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
36 we want to retain compatibility with older gcc versions. */
37 #define DEFAULT_PCC_STRUCT_RETURN 0
39 /* i386 netbsd still uses old binutils that don't insert nops by default
40 when the .align directive demands to insert extra space in the text
42 #undef ASM_OUTPUT_ALIGN
43 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
44 if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
46 /* Profiling routines, partially copied from i386/osfrose.h. */
48 /* Redefine this to use %eax instead of %edx. */
49 #undef FUNCTION_PROFILER
50 #define FUNCTION_PROFILER(FILE, LABELNO) \
54 fprintf (FILE, "\tcall mcount@PLT\n"); \
58 fprintf (FILE, "\tcall mcount\n"); \
62 /* Until they use ELF or something that handles dwarf2 unwinds
63 and initialization stuff better. */
64 #define DWARF2_UNWIND_INFO 0
66 /* Redefine this so that it becomes "_GLOBAL_OFFSET_TABLE_" when the label
68 #undef GOT_SYMBOL_NAME
69 #define GOT_SYMBOL_NAME "GLOBAL_OFFSET_TABLE_"
71 /* Attempt to enable execute permissions on the stack. */
72 #define ENABLE_EXECUTE_STACK NETBSD_ENABLE_EXECUTE_STACK