]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/m68k/netbsd.h
Merge basic-improvements-branch to trunk
[thirdparty/gcc.git] / gcc / config / m68k / netbsd.h
1 #define TARGET_OS_CPP_BUILTINS() \
2 do \
3 { \
4 NETBSD_OS_CPP_BUILTINS_AOUT(); \
5 builtin_define_std ("unix"); \
6 builtin_define_std ("m68k"); \
7 builtin_define_std ("mc68000"); \
8 builtin_define_std ("mc68020"); \
9 builtin_assert ("cpu=m68k"); \
10 builtin_assert ("machine=m68k"); \
11 } \
12 while (0)
13
14 #include <m68k/m68k.h>
15
16 /* Get generic NetBSD definitions. */
17
18 #include <netbsd.h>
19 #include <netbsd-aout.h>
20
21 #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68881|MASK_68020)
22
23 #define EXTRA_SPECS \
24 { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
25
26 /* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified.
27 This will control the use of inline 68881 insns in certain macros. */
28
29 #undef CPP_SPEC
30 #define CPP_SPEC \
31 "%{!msoft-float:-D__HAVE_68881__ -D__HAVE_FPU__} %(netbsd_cpp_spec)"
32
33 #undef ASM_SPEC
34 #define ASM_SPEC "%{m68030} %{m68040} %{m68060} %{fpic:-k} %{fPIC:-k -K}"
35
36 #define AS_NEEDS_DASH_FOR_PIPED_INPUT
37
38 \f
39 /* Make gcc agree with <machine/ansi.h> */
40
41 #undef SIZE_TYPE
42 #define SIZE_TYPE "unsigned int"
43
44 #undef PTRDIFF_TYPE
45 #define PTRDIFF_TYPE "int"
46
47 /* Every structure or union's size must be a multiple of 2 bytes. */
48
49 #define STRUCTURE_SIZE_BOUNDARY 16
50
51 /* This is BSD, so it wants DBX format. */
52
53 #define DBX_DEBUGGING_INFO 1
54
55 /* Do not break .stabs pseudos into continuations. */
56
57 #define DBX_CONTIN_LENGTH 0
58
59 /* This is the char to use for continuation (in case we need to turn
60 continuation back on). */
61
62 #define DBX_CONTIN_CHAR '?'
63
64 /* Don't default to pcc-struct-return, because gcc is the only compiler, and
65 we want to retain compatibility with older gcc versions. */
66 #define DEFAULT_PCC_STRUCT_RETURN 0
67
68 /* Until they use ELF or something that handles dwarf2 unwinds
69 and initialization stuff better. */
70 #define DWARF2_UNWIND_INFO 0
71