1 /* Definitions of target machine for GNU compiler, for 680X0 based Plexus 2 Computers running SYSVR2 3 Copyright (C) 1990, 1994, 1996 Free Software Foundation, Inc. 4 Contributed by Randy Welch (rwelch@netcom.com). 5 6 This file is part of GNU CC. 7 8 GNU CC is free software; you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 2, or (at your option) 11 any later version. 12 13 GNU CC is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with GNU CC; see the file COPYING. If not, write to 20 the Free Software Foundation, 59 Temple Place - Suite 330, 21 Boston, MA 02111-1307, USA. */ 22 23 24 /* The Plexus port of gcc requires you to use gas ( either 1.3X with COFF 25 patches or 2.X ), If you use gas 2.X you have to use binutils-2.X. 26 27 With using gas-2.X the Plexus gcc port is now capable of generating 28 output suitable for use by gdb-4.X ( send mail to above address for 29 info on getting gdb patches or other GNU items for the Plexus ) 30 31 This is configured for label output default by gas as LXXX instead of 32 plexus cc/as combination requires .LXXX */ 33 34 #include "m68k/m68k.h" 35 36 /* Define __HAVE_68881 in preprocessor only if -m68881 is specified. 37 This will control the use of inline 68881 insns in certain macros. */ 38 39 #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68020) 40 41 /* Don't try using XFmode. */ 42 #undef LONG_DOUBLE_TYPE_SIZE 43 #define LONG_DOUBLE_TYPE_SIZE 64 44 45 #define CPP_SPEC "%{m68881:-D__HAVE_68881__}" 46 #define CPP_PREDEFINES "-Dm68 -Dunix -Dplexus -Asystem=unix -Acpu=m68k -Amachine=m68k" 47 48 #if TARGET_DEFAULT & MASK_68020 49 #define ASM_SPEC \ 50 "%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}" 51 #undef STRICT_ALIGNMENT 52 #define STRICT_ALIGNMENT 0 53 #else 54 #define ASM_SPEC\ 55 "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!mc68020:-mc68000}}" 56 #endif 57 58 /***************************************************************************/ 59 /* Un comment the following if you want adb to be able to follow a core */ 60 /* file if you compile a program with -O */ 61 /***************************************************************************/ 62 /* #define FRAME_POINTER_REQUIRED */ 63 64 /* Let's be compatible with the Plexus C compiler by default. Why not? */ 65 #define PLEXUS_CC_COMPAT 66 67 #ifdef PLEXUS_CC_COMPAT 68 #define STRUCTURE_SIZE_BOUNDARY 16 /* for compatibility with cc */ 69 #undef STACK_BOUNDARY 70 #define STACK_BOUNDARY 32 /* ditto */ 71 #endif 72 73 #undef NEED_PROBE 74 #define NEED_PROBE -132 /* plexus needs a stack probe */ 75 76 /***********************************************************************/ 77 /* if you have binutils-2.X and gas-2.X running you can generate code */ 78 /* that gdb can understand ( gdb support available for 4.11 ) */ 79 /* */ 80 /* If you use gas-1.3X don't define this as the version of the coff */ 81 /* patches for gas-1.3x ( stabs in coff ) does not generate coff debug */ 82 /* syms */ 83 /***********************************************************************/ 84 #define HAVE_GAS_2_X 85 86 #ifdef HAVE_GAS_2_X 87 #undef DBX_DEBUGGING_INFO 88 #define SDB_DEBUGGING_INFO 1 89 90 #undef ASM_FILE_START 91 #define ASM_FILE_START(FILE) \ 92 output_file_directive((FILE), main_input_filename) 93 94 #else 95 #undef DBX_DEBUGGING_INFO /* no real debugger */ 96 #undef SDB_DEBUGGING_INFO 97 #endif 98 #define TARGET_MEM_FUNCTIONS 99 100 /***********************************************************************/ 101 /* items for collect2 */ 102 /***********************************************************************/ 103 104 #define NM_FLAGS "" 105 106 #define SIZE_TYPE "int" 107