]>
Commit | Line | Data |
---|---|---|
2f7a07c2 | 1 | /* Configuration for a ns32532 running NetBSD as the target machine. |
a782515b JT |
2 | Copyright (C) 1988, 1994, 1995, 1996, 1998, 2002 |
3 | Free Software Foundation, Inc. | |
2f7a07c2 | 4 | |
7ec022b2 | 5 | This file is part of GCC. |
2f7a07c2 | 6 | |
7ec022b2 | 7 | GCC is free software; you can redistribute it and/or modify |
2f7a07c2 MM |
8 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
7ec022b2 | 12 | GCC is distributed in the hope that it will be useful, |
2f7a07c2 MM |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
7ec022b2 | 18 | along with GCC; see the file COPYING. If not, write to |
0e29e3c9 | 19 | the Free Software Foundation, 59 Temple Place - Suite 330, |
c8eb9785 | 20 | Boston, MA 02111-1307, USA. */ |
2f7a07c2 | 21 | |
a782515b JT |
22 | |
23 | #define TARGET_OS_CPP_BUILTINS() \ | |
24 | do \ | |
25 | { \ | |
26 | NETBSD_OS_CPP_BUILTINS_AOUT(); \ | |
27 | builtin_define ("__ns32k__"); \ | |
28 | } \ | |
29 | while (0) | |
30 | ||
2f7a07c2 MM |
31 | /* Compile for the floating point unit & 32532 by default; |
32 | Don't assume SB is zero; | |
43a88a8c | 33 | Don't use bit-field instructions; |
4c54e4e4 ID |
34 | FPU is 32381; |
35 | Use multiply-add instructions */ | |
2f7a07c2 | 36 | |
5d7c2819 | 37 | #undef TARGET_DEFAULT |
2eb2901a | 38 | #define TARGET_DEFAULT \ |
5d7c2819 ID |
39 | (MASK_32532 | MASK_NO_SB | MASK_NO_BITFIELD | \ |
40 | MASK_32381 | MASK_IEEE_COMPARE | MASK_MULT_ADD) | |
2f7a07c2 MM |
41 | |
42 | /* 32-bit alignment for efficiency */ | |
43 | ||
44 | #undef POINTER_BOUNDARY | |
45 | #define POINTER_BOUNDARY 32 | |
46 | ||
47 | /* 32-bit alignment for efficiency */ | |
48 | ||
49 | #undef FUNCTION_BOUNDARY | |
50 | #define FUNCTION_BOUNDARY 32 | |
51 | ||
52 | /* 32532 spec says it can handle any alignment. Rumor from tm-ns32k.h | |
53 | tells this might not be actually true (but it's for 32032, perhaps | |
54 | National has fixed the bug for 32532). You might have to change this | |
55 | if the bug still exists. */ | |
56 | ||
57 | #undef STRICT_ALIGNMENT | |
58 | #define STRICT_ALIGNMENT 0 | |
59 | ||
60 | /* Use pc relative addressing whenever possible, | |
61 | it's more efficient than absolute (ns32k.c) | |
62 | You have to fix a bug in gas 1.38.1 to make this work with gas, | |
63 | patch available from jkp@cs.hut.fi. | |
64 | (NetBSD's gas version has this patch already applied) */ | |
65 | ||
66 | #define PC_RELATIVE | |
67 | ||
68 | /* Operand of bsr or jsr should be just the address. */ | |
69 | ||
70 | #define CALL_MEMREF_IMPLICIT | |
71 | ||
72 | /* movd insns may have floating point constant operands. */ | |
73 | ||
74 | #define MOVD_FLOAT_OK | |
75 | ||
a782515b | 76 | /* Define a CPP_SPEC appropriate for NetBSD. */ |
2f7a07c2 | 77 | |
f979570e | 78 | #undef CPP_SPEC |
a782515b | 79 | #define CPP_SPEC NETBSD_CPP_SPEC |
f979570e | 80 | |
2f7a07c2 MM |
81 | /* Make gcc agree with <machine/ansi.h> */ |
82 | ||
83 | #undef SIZE_TYPE | |
84 | #define SIZE_TYPE "unsigned int" | |
85 | ||
86 | #undef PTRDIFF_TYPE | |
87 | #define PTRDIFF_TYPE "int" | |
88 | ||
2f7a07c2 MM |
89 | /* This is BSD, so it wants DBX format. */ |
90 | ||
23532de9 | 91 | #define DBX_DEBUGGING_INFO 1 |
2f7a07c2 MM |
92 | |
93 | /* Do not break .stabs pseudos into continuations. */ | |
94 | ||
95 | #define DBX_CONTIN_LENGTH 0 | |
96 | ||
97 | /* This is the char to use for continuation (in case we need to turn | |
98 | continuation back on). */ | |
99 | ||
100 | #define DBX_CONTIN_CHAR '?' | |
101 | ||
2f7a07c2 MM |
102 | /* Don't default to pcc-struct-return, because gcc is the only compiler, and |
103 | we want to retain compatibility with older gcc versions. */ | |
104 | ||
105 | #undef PCC_STATIC_STRUCT_RETURN | |
106 | #define DEFAULT_PCC_STRUCT_RETURN 0 | |
e4c4f8df JL |
107 | |
108 | /* Until they use ELF or something that handles dwarf2 unwinds | |
109 | and initialization stuff better. */ | |
47a0e5a8 | 110 | #define DWARF2_UNWIND_INFO 0 |