1 /* Configuration for a ns32532 running NetBSD as the target machine. 2 Copyright (C) 1988, 1994, 1995, 1996, 1998, 2002 3 Free Software Foundation, Inc. 4 5 This file is part of GNU CC. 6 7 GNU CC is free software; you can redistribute it and/or modify 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 12 GNU CC is distributed in the hope that it will be useful, 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 18 along with GNU CC; see the file COPYING. If not, write to 19 the Free Software Foundation, 59 Temple Place - Suite 330, 20 Boston, MA 02111-1307, USA. */ 21 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 31 /* Compile for the floating point unit & 32532 by default; 32 Don't assume SB is zero; 33 Don't use bit-field instructions; 34 FPU is 32381; 35 Use multiply-add instructions */ 36 37 #undef TARGET_DEFAULT 38 #define TARGET_DEFAULT \ 39 (MASK_32532 | MASK_NO_SB | MASK_NO_BITFIELD | \ 40 MASK_32381 | MASK_IEEE_COMPARE | MASK_MULT_ADD) 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 76 /* Define a CPP_SPEC appropriate for NetBSD. */ 77 78 #undef CPP_SPEC 79 #define CPP_SPEC NETBSD_CPP_SPEC 80 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 89 /* This is BSD, so it wants DBX format. */ 90 91 #define DBX_DEBUGGING_INFO 1 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 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 107 108 /* Until they use ELF or something that handles dwarf2 unwinds 109 and initialization stuff better. */ 110 #define DWARF2_UNWIND_INFO 0 111