Remove change log entries for error.c
[official-gcc.git] / gcc / config / i386 / netbsd.h
blob8f5ba201e9a166ed8d5a7e210ad7d5a34ec2e4e9
1 /* This is tested by i386gas.h. */
2 #define YES_UNDERSCORES
4 #include <i386/gstabs.h>
6 /* Get generic NetBSD definitions. */
7 #include <netbsd.h>
9 /* This goes away when the math-emulator is fixed */
10 #undef TARGET_SUBTARGET_DEFAULT
11 #define TARGET_SUBTARGET_DEFAULT \
12 (MASK_80387 | MASK_IEEE_FP | MASK_FLOAT_RETURNS | MASK_NO_FANCY_MATH_387)
14 #undef CPP_PREDEFINES
15 #define CPP_PREDEFINES "-Dunix -D__NetBSD__ \
16 -Asystem=unix -Asystem=bsd -Asystem=NetBSD"
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 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
40 we want to retain compatibility with older gcc versions. */
41 #define DEFAULT_PCC_STRUCT_RETURN 0
43 /* i386 netbsd still uses old binutils that don't insert nops by default
44 when the .align directive demands to insert extra space in the text
45 segment. */
46 #undef ASM_OUTPUT_ALIGN
47 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
48 if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
50 /* Profiling routines, partially copied from i386/osfrose.h. */
52 /* Redefine this to use %eax instead of %edx. */
53 #undef FUNCTION_PROFILER
54 #define FUNCTION_PROFILER(FILE, LABELNO) \
55 { \
56 if (flag_pic) \
57 { \
58 fprintf (FILE, "\tcall mcount@PLT\n"); \
59 } \
60 else \
61 { \
62 fprintf (FILE, "\tcall mcount\n"); \
63 } \
66 /* Until they use ELF or something that handles dwarf2 unwinds
67 and initialization stuff better. */
68 #define DWARF2_UNWIND_INFO 0