summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/config/m88k/dolph.h
blob: 48c0378636a03b8af9001c178df5a2c4083968cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* Definitions of target machine for GNU compiler.
   Motorola m88100 running the Dolphin UNIX System V/88 Release 3.2,
   Version 3.8/7.83 and 3.6/5.86
   Copyright (C) 1992, 1993 Free Software Foundation, Inc.

This file is part of GNU CC.

GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.

GNU CC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING.  If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.  */

#include "m88k/sysv3.h"

#define SDB_ALLOW_FORWARD_REFERENCES
#define SDB_ALLOW_UNKNOWN_REFERENCES

/* Override m88k/sysv3.h */

#undef	CPP_PREDEFINES
#define CPP_PREDEFINES "-Dm88000 -Dm88k -DOCS88 -DDOLPHIN -Dunix -DsysV88 -D__CLASSIFY_TYPE__=2 -Asystem(unix) -Asystem(svr3) -Acpu(m88k) -Amachine(m88k)" 

/* 
  If you want to detect dereferencing of NULL pointers, uncomment the
  following two lines. Alternatively, edit the appropriate specs file.
  
  #undef LINK_SPEC
  #define LINK_SPEC "gcc.ld%s"
  
  */

#undef CPU_DEFAULT
#define CPU_DEFAULT MASK_88000

#undef INITIALIZE_TRAMPOLINE 
#define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT)			\
{									\
  emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 40)), FNADDR); \
  emit_move_insn (gen_rtx (MEM, SImode, plus_constant (TRAMP, 36)), CXT); \
  emit_call_insn (gen_call( gen_rtx (MEM, SImode,			\
				     gen_rtx(SYMBOL_REF,Pmode,		\
					     "__enable_execute_stack")), \
			   const0_rtx));				\
}