]>
Commit | Line | Data |
---|---|---|
0d64f74c DE |
1 | /* Definitions of target machine for GNU compiler. "embedded" 68XXX. |
2 | This is meant to be included after m68k.h. | |
18330d28 | 3 | Copyright (C) 1994, 1995, 1998, 1999, 2004 Free Software Foundation, Inc. */ |
0d64f74c | 4 | |
91171315 DB |
5 | /* Override the SVR4 ABI for this target. */ |
6 | ||
0d64f74c DE |
7 | #define PTRDIFF_TYPE "long int" |
8 | #define SIZE_TYPE "long unsigned int" | |
9 | ||
10 | /* In order for bitfields to work on a 68000, or with -mnobitfield, we must | |
11 | define either PCC_BITFIELD_TYPE_MATTERS or STRUCTURE_SIZE_BOUNDARY. | |
12 | Defining STRUCTURE_SIZE_BOUNDARY results in structure packing problems, | |
13 | so we define PCC_BITFIELD_TYPE_MATTERS. */ | |
14 | #define PCC_BITFIELD_TYPE_MATTERS 1 | |
15 | ||
16 | /* Undef PCC_STATIC_STRUCT_RETURN so that we get a re-entrant calling | |
17 | convention. */ | |
18 | #undef PCC_STATIC_STRUCT_RETURN | |
19 | ||
20 | /* Don't default to pcc-struct-return, so that we can return small structures | |
21 | and unions in registers, which is slightly more efficient. */ | |
22 | #define DEFAULT_PCC_STRUCT_RETURN 0 | |
23 | ||
24 | /* Return floating point values in a fp register. This make fp code a | |
25 | little bit faster. It also makes -msoft-float code incompatible with | |
26 | -m68881 code, so people have to be careful not to mix the two. */ | |
27 | #undef FUNCTION_VALUE | |
28 | #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE)) | |
29 | ||
30 | #undef LIBCALL_VALUE | |
c5c76735 JL |
31 | #define LIBCALL_VALUE(MODE) \ |
32 | gen_rtx_REG ((MODE), \ | |
33 | ((TARGET_68881 \ | |
34 | && ((MODE) == SFmode || (MODE) == DFmode \ | |
35 | || (MODE) == XFmode)) \ | |
0d64f74c DE |
36 | ? 16 : 0)) |
37 | ||
38 | #undef FUNCTION_VALUE_REGNO_P | |
39 | #define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (TARGET_68881 && (N) == 16)) | |
40 | ||
41 | #undef NEEDS_UNTYPED_CALL | |
42 | #define NEEDS_UNTYPED_CALL 1 | |
9b3b5e8d | 43 | |
a7fbe404 NB |
44 | /* Target OS builtins. */ |
45 | #define TARGET_OS_CPP_BUILTINS() \ | |
46 | do \ | |
47 | { \ | |
18330d28 BI |
48 | builtin_define ("__embedded__"); \ |
49 | } \ | |
a7fbe404 | 50 | while (0) |
77c871e6 | 51 | |
0f220a3e | 52 | /* Override the default LIB_SPEC from gcc.c. We don't currently support |
2ebfd230 | 53 | profiling, or libg.a. */ |
77c871e6 | 54 | |
f5c4bc60 | 55 | #undef LIB_SPEC |
0f220a3e | 56 | #define LIB_SPEC "-lc" |
77c871e6 | 57 | |
0f220a3e JW |
58 | /* Make this be null, since we want the crt0.o to come from the linker |
59 | script */ | |
77c871e6 | 60 | |
f5c4bc60 | 61 | #undef STARTFILE_SPEC |
0f220a3e | 62 | #define STARTFILE_SPEC "" |