]>
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. | |
d1e082c2 | 3 | Copyright (C) 1994-2013 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 | ||
0d64f74c DE |
16 | /* Don't default to pcc-struct-return, so that we can return small structures |
17 | and unions in registers, which is slightly more efficient. */ | |
18 | #define DEFAULT_PCC_STRUCT_RETURN 0 | |
19 | ||
0d64f74c DE |
20 | #undef FUNCTION_VALUE |
21 | #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE)) | |
22 | ||
23 | #undef LIBCALL_VALUE | |
c5c76735 | 24 | #define LIBCALL_VALUE(MODE) \ |
dcc21c4c | 25 | m68k_libcall_value (MODE) |
0d64f74c DE |
26 | |
27 | #undef FUNCTION_VALUE_REGNO_P | |
3bfe36dc KH |
28 | #define FUNCTION_VALUE_REGNO_P(N) \ |
29 | ((N) == D0_REG || (TARGET_68881 && (N) == FP0_REG)) | |
0d64f74c DE |
30 | |
31 | #undef NEEDS_UNTYPED_CALL | |
32 | #define NEEDS_UNTYPED_CALL 1 | |
9b3b5e8d | 33 | |
a7fbe404 NB |
34 | /* Target OS builtins. */ |
35 | #define TARGET_OS_CPP_BUILTINS() \ | |
36 | do \ | |
37 | { \ | |
18330d28 BI |
38 | builtin_define ("__embedded__"); \ |
39 | } \ | |
a7fbe404 | 40 | while (0) |
77c871e6 | 41 | |
0f220a3e | 42 | /* Override the default LIB_SPEC from gcc.c. We don't currently support |
2ebfd230 | 43 | profiling, or libg.a. */ |
77c871e6 | 44 | |
f5c4bc60 | 45 | #undef LIB_SPEC |
0f220a3e | 46 | #define LIB_SPEC "-lc" |
77c871e6 | 47 | |
0f220a3e JW |
48 | /* Make this be null, since we want the crt0.o to come from the linker |
49 | script */ | |
77c871e6 | 50 | |
f5c4bc60 | 51 | #undef STARTFILE_SPEC |
0f220a3e | 52 | #define STARTFILE_SPEC "" |