netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
[official-gcc.git] / gcc / config / sparc / netbsd.h
blob8ae4c5663492c3244e7298c2fcae45b6d680347b
1 #define TARGET_OS_CPP_BUILTINS() \
2 do \
3 { \
4 NETBSD_OS_CPP_BUILTINS_AOUT(); \
5 builtin_define_std ("sparc"); \
6 builtin_assert ("cpu=sparc"); \
7 builtin_assert ("machine=sparc"); \
8 } \
9 while (0)
11 /* Make sure this is undefined. */
12 #undef CPP_PREDEFINES
14 /* What extra spec entries do we need? */
15 #undef SUBTARGET_EXTRA_SPECS
16 #define SUBTARGET_EXTRA_SPECS \
17 { "netbsd_cpp_spec", NETBSD_CPP_SPEC },
19 #undef CPP_SPEC
20 #define CPP_SPEC "%(cpp_cpu) %(netbsd_cpp_spec)"
22 /* Make gcc agree with <machine/ansi.h> */
24 #undef SIZE_TYPE
25 #define SIZE_TYPE "unsigned int"
27 #undef PTRDIFF_TYPE
28 #define PTRDIFF_TYPE "int"
30 /* This is BSD, so it wants DBX format. */
32 #define DBX_DEBUGGING_INFO
34 /* This is the char to use for continuation (in case we need to turn
35 continuation back on). */
37 #define DBX_CONTIN_CHAR '?'
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 #undef DEFAULT_PCC_STRUCT_RETURN
42 #define DEFAULT_PCC_STRUCT_RETURN 0
44 /* Until they use ELF or something that handles dwarf2 unwinds
45 and initialization stuff better. */
46 #define DWARF2_UNWIND_INFO 0