]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/m68k/m68kemb.h
(ext_shift_insns, ext_shift_amounts): new arrays.
[thirdparty/gcc.git] / gcc / config / m68k / m68kemb.h
CommitLineData
0d64f74c
DE
1/* Definitions of target machine for GNU compiler. "embedded" 68XXX.
2 This is meant to be included after m68k.h.
9b3b5e8d 3 Copyright (C) 1994, 1995 Free Software Foundation, Inc. */
0d64f74c
DE
4
5#define PTRDIFF_TYPE "long int"
6#define SIZE_TYPE "long unsigned int"
7
8/* In order for bitfields to work on a 68000, or with -mnobitfield, we must
9 define either PCC_BITFIELD_TYPE_MATTERS or STRUCTURE_SIZE_BOUNDARY.
10 Defining STRUCTURE_SIZE_BOUNDARY results in structure packing problems,
11 so we define PCC_BITFIELD_TYPE_MATTERS. */
12#define PCC_BITFIELD_TYPE_MATTERS 1
13
14/* Undef PCC_STATIC_STRUCT_RETURN so that we get a re-entrant calling
15 convention. */
16#undef PCC_STATIC_STRUCT_RETURN
17
18/* Don't default to pcc-struct-return, so that we can return small structures
19 and unions in registers, which is slightly more efficient. */
20#define DEFAULT_PCC_STRUCT_RETURN 0
21
22/* Return floating point values in a fp register. This make fp code a
23 little bit faster. It also makes -msoft-float code incompatible with
24 -m68881 code, so people have to be careful not to mix the two. */
25#undef FUNCTION_VALUE
26#define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))
27
28#undef LIBCALL_VALUE
29#define LIBCALL_VALUE(MODE) \
30 gen_rtx (REG, (MODE), \
31 ((TARGET_68881 \
32 && ((MODE) == SFmode || (MODE) == DFmode || (MODE) == XFmode)) \
33 ? 16 : 0))
34
35#undef FUNCTION_VALUE_REGNO_P
36#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (TARGET_68881 && (N) == 16))
37
38#undef NEEDS_UNTYPED_CALL
39#define NEEDS_UNTYPED_CALL 1
9b3b5e8d 40
77c871e6
MM
41#undef CPP_PREDEFINES
42#define CPP_PREDEFINES "-Dmc68000 -D__embedded__ -Asystem(embedded) \
43 -Amachine(mc68000)"
44
45#undef LINK_SPEC
46#define LINK_SPEC "\
47 %{midp: %{!Ttext*: -Ttext 0x00010000}} \
48 %{mbcc: %{!Ttext*: -Ttext 0x00003000}} \
49 %{mmvme135: %{!Ttext*: -Ttext 0x00005000}} \
50 %{mmvme162: %{!Ttext*: -Ttext 0x00010000}}"
51
52/* Use the target specific crt0 and libgloss/newlib libraries if desired */
53#undef STARTFILE_SPEC
54#define STARTFILE_SPEC "\
55 %{midp: idp-crt0.o} \
56 %{mbcc: bcc-crt0.o} \
57 %{mmvme135: mvme135-crt0.o} \
58 %{mmvme162: mvme162-crt0.o}"
59
03fd6b98
JW
60 /* We must always include -lc at least once. If we use a board specific
61 library, we must include -lc before and after the board specific
62 library. */
77c871e6
MM
63#undef LIB_SPEC
64#define LIB_SPEC "\
03fd6b98
JW
65 -lc \
66 %{mmvme135:-lmvme135 -lc} \
67 %{mmvme162:-lmvme162 -lc} \
68 %{midp:-lidp -lc} \
69 %{mbcc:-lbcc -lc}"
77c871e6
MM
70
71#undef SUBTARGET_SWITCHES
72#define SUBTARGET_SWITCHES \
73 { "mvme135", 0 }, \
74 { "mvme162", 0 }, \
75 { "bcc", 0}, \
9231564d 76 { "idp", 0 },