Initial revision
[official-gcc.git] / gcc / config / i386 / netbsd.h
blob8262fb041958a091fe696223a83d7c61b2ac5f99
1 /* This goes away when the math-emulator is fixed */
2 #define TARGET_CPU_DEFAULT 0400 /* TARGET_NO_FANCY_MATH_387 */
4 /* This is tested by i386gas.h. */
5 #define YES_UNDERSCORES
7 #include <i386/gstabs.h>
9 /* Get perform_* macros to build libgcc.a. */
10 #include <i386/perform.h>
12 /* Get generic NetBSD definitions. */
13 #include <netbsd.h>
15 #undef CPP_PREDEFINES
16 #define CPP_PREDEFINES "-Dunix -Di386 -D__NetBSD__ -Asystem(unix) -Asystem(NetBSD) -Acpu(i386) -Amachine(i386)"
18 #undef SIZE_TYPE
19 #define SIZE_TYPE "unsigned int"
21 #undef PTRDIFF_TYPE
22 #define PTRDIFF_TYPE "int"
24 #undef WCHAR_TYPE
25 #define WCHAR_TYPE "int"
27 #undef WCHAR_UNSIGNED
28 #define WCHAR_UNSIGNED 0
30 #undef WCHAR_TYPE_SIZE
31 #define WCHAR_TYPE_SIZE 32
33 #undef ASM_APP_ON
34 #define ASM_APP_ON "#APP\n"
36 #undef ASM_APP_OFF
37 #define ASM_APP_OFF "#NO_APP\n"
39 /* The following macros are stolen from i386v4.h */
40 /* These have to be defined to get PIC code correct */
42 /* This is how to output an element of a case-vector that is relative.
43 This is only used for PIC code. See comments by the `casesi' insn in
44 i386.md for an explanation of the expression this outputs. */
46 #undef ASM_OUTPUT_ADDR_DIFF_ELT
47 #define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, VALUE, REL) \
48 fprintf (FILE, "\t.long _GLOBAL_OFFSET_TABLE_+[.-%s%d]\n", LPREFIX, VALUE)
50 /* Indicate that jump tables go in the text section. This is
51 necessary when compiling PIC code. */
53 #define JUMP_TABLES_IN_TEXT_SECTION
55 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
56 we want to retain compatibility with older gcc versions. */
57 #define DEFAULT_PCC_STRUCT_RETURN 0
59 /* Profiling routines, partially copied from i386/osfrose.h. */
61 /* Redefine this to use %eax instead of %edx. */
62 #undef FUNCTION_PROFILER
63 #define FUNCTION_PROFILER(FILE, LABELNO) \
64 { \
65 if (flag_pic) \
66 { \
67 fprintf (FILE, "\tcall mcount@PLT\n"); \
68 } \
69 else \
70 { \
71 fprintf (FILE, "\tcall mcount\n"); \
72 } \