1 /* This is tested by i386gas.h. */
2 #define YES_UNDERSCORES
4 #include <i386/gstabs.h>
6 /* Get perform_* macros to build libgcc.a. */
7 #include <i386/perform.h>
9 /* Get generic NetBSD definitions. */
12 /* This goes away when the math-emulator is fixed */
14 #define TARGET_DEFAULT \
15 (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)
18 #define CPP_PREDEFINES "-Dunix -D__NetBSD__ \
19 -Asystem(unix) -Asystem(bsd) -Asystem(NetBSD)"
22 #define SIZE_TYPE "unsigned int"
25 #define PTRDIFF_TYPE "int"
28 #define WCHAR_TYPE "int"
31 #define WCHAR_UNSIGNED 0
33 #undef WCHAR_TYPE_SIZE
34 #define WCHAR_TYPE_SIZE 32
37 #define ASM_APP_ON "#APP\n"
40 #define ASM_APP_OFF "#NO_APP\n"
42 /* The following macros are stolen from i386v4.h */
43 /* These have to be defined to get PIC code correct */
45 /* This is how to output an element of a case-vector that is relative.
46 This is only used for PIC code. See comments by the `casesi' insn in
47 i386.md for an explanation of the expression this outputs. */
49 #undef ASM_OUTPUT_ADDR_DIFF_ELT
50 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
51 fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
53 /* Indicate that jump tables go in the text section. This is
54 necessary when compiling PIC code. */
56 #define JUMP_TABLES_IN_TEXT_SECTION 1
58 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
59 we want to retain compatibility with older gcc versions. */
60 #define DEFAULT_PCC_STRUCT_RETURN 0
62 /* i386 netbsd still uses old binutils that don't insert nops by default
63 when the .align directive demands to insert extra space in the text
65 #undef ASM_OUTPUT_ALIGN
66 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
67 if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
69 /* Profiling routines, partially copied from i386/osfrose.h. */
71 /* Redefine this to use %eax instead of %edx. */
72 #undef FUNCTION_PROFILER
73 #define FUNCTION_PROFILER(FILE, LABELNO) \
77 fprintf (FILE, "\tcall mcount@PLT\n"); \
81 fprintf (FILE, "\tcall mcount\n"); \
85 /* Until they use ELF or something that handles dwarf2 unwinds
86 and initialization stuff better. */
87 #define DWARF2_UNWIND_INFO 0