2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / m68k / netbsd.h
blob2b4fd855a9f93074faa074e992bca6479fc79af1
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 } \
10 while (0)
12 #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68881|MASK_68020)
14 #define EXTRA_SPECS \
15 { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
17 /* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified.
18 This will control the use of inline 68881 insns in certain macros. */
20 #undef CPP_SPEC
21 #define CPP_SPEC \
22 "%{!msoft-float:-D__HAVE_68881__ -D__HAVE_FPU__} %(netbsd_cpp_spec)"
24 #undef ASM_SPEC
25 #define ASM_SPEC "%{m68030} %{m68040} %{m68060} %{fpic|fpie:-k} %{fPIC|fPIE:-k -K}"
27 #define AS_NEEDS_DASH_FOR_PIPED_INPUT
30 /* Make gcc agree with <machine/ansi.h> */
32 #undef SIZE_TYPE
33 #define SIZE_TYPE "unsigned int"
35 #undef PTRDIFF_TYPE
36 #define PTRDIFF_TYPE "int"
38 /* Every structure or union's size must be a multiple of 2 bytes. */
40 #define STRUCTURE_SIZE_BOUNDARY 16
42 /* This is BSD, so it wants DBX format. */
44 #define DBX_DEBUGGING_INFO 1
46 /* Do not break .stabs pseudos into continuations. */
48 #define DBX_CONTIN_LENGTH 0
50 /* This is the char to use for continuation (in case we need to turn
51 continuation back on). */
53 #define DBX_CONTIN_CHAR '?'
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 /* Until they use ELF or something that handles dwarf2 unwinds
60 and initialization stuff better. */
61 #define DWARF2_UNWIND_INFO 0