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).
6 This file is part of GNU CC.
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)
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.
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. */
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.
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 )
31 This is configured for label output default by gas as LXXX instead of
32 plexus cc/as combination requires .LXXX */
34 #include "m68k/m68k.h"
36 /* Define __HAVE_68881 in preprocessor only if -m68881 is specified.
37 This will control the use of inline 68881 insns in certain macros. */
39 #define TARGET_DEFAULT (MASK_BITFIELD|MASK_68020)
41 /* Don't try using XFmode. */
42 #undef LONG_DOUBLE_TYPE_SIZE
43 #define LONG_DOUBLE_TYPE_SIZE 64
45 #define CPP_SPEC "%{m68881:-D__HAVE_68881__}"
46 #define CPP_PREDEFINES "-Dm68 -Dunix -Dplexus -Asystem=unix -Acpu=m68k -Amachine=m68k"
48 #if TARGET_DEFAULT & MASK_68020
50 "%{m68000:-mc68000}%{mc68000:-mc68000}%{!mc68000:%{!m68000:-mc68020}}"
51 #undef STRICT_ALIGNMENT
52 #define STRICT_ALIGNMENT 0
55 "%{m68020:-mc68020}%{mc68020:-mc68020}%{!mc68020:%{!mc68020:-mc68000}}"
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 */
64 /* Let's be compatible with the Plexus C compiler by default. Why not? */
65 #define PLEXUS_CC_COMPAT
67 #ifdef PLEXUS_CC_COMPAT
68 #define STRUCTURE_SIZE_BOUNDARY 16 /* for compatibility with cc */
70 #define STACK_BOUNDARY 32 /* ditto */
74 #define NEED_PROBE -132 /* plexus needs a stack probe */
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 ) */
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 */
83 /***********************************************************************/
87 #undef DBX_DEBUGGING_INFO
88 #define SDB_DEBUGGING_INFO 1
91 #define ASM_FILE_START(FILE) \
92 output_file_directive((FILE), main_input_filename)
95 #undef DBX_DEBUGGING_INFO /* no real debugger */
96 #undef SDB_DEBUGGING_INFO
98 #define TARGET_MEM_FUNCTIONS
100 /***********************************************************************/
101 /* items for collect2 */
102 /***********************************************************************/
106 #define SIZE_TYPE "int"