Don't define HAVE_ALLOCA, C_ALLOCA and STACK_DIRECTION, now set by autoconf.
[bpt/emacs.git] / src / m / delta.h
1 /* Machine description file for the Motorola Delta.
2 Tested on mvme147 board using R3V7 without X. Tested with gcc.
3 Tested on mvme167 board using R3V7 without X. Tested with cc, gnucc, gcc.
4 Copyright (C) 1986, 1993, 1994, 1999, 2002 Free Software Foundation, Inc.
5
6 This file is part of GNU Emacs.
7
8 GNU Emacs 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 Emacs 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 Emacs; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
22
23
24 /* The following line tells the configuration script what sort of
25 operating system this machine is likely to run.
26 USUAL-OPSYS="usg5-3" */
27
28 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
29 is the most significant byte. */
30
31 #define WORDS_BIG_ENDIAN
32
33 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
34 * group of arguments and treat it as an array of the arguments. */
35
36 /* #define NO_ARG_ARRAY */
37
38 /* Define WORD_MACHINE if addresses and such have
39 * to be corrected before they can be used as byte counts. */
40
41 /* #define WORD_MACHINE */
42
43 /* Now define a symbol for the cpu type, if your compiler
44 does not define it automatically:
45 Ones defined so far include vax, m68000, ns16000, pyramid,
46 orion, tahoe, APOLLO and many others */
47
48 #define m68000
49 #define MOTOROLA_DELTA
50
51 /* Use type int rather than a union, to represent Lisp_Object */
52 /* This is desirable for most machines. */
53
54 #define NO_UNION_TYPE
55
56 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
57 the bit field into an int. In other words, if bit fields
58 are always unsigned.
59
60 If you use NO_UNION_TYPE, this flag does not matter. */
61
62 #define EXPLICIT_SIGN_EXTEND
63
64 /* Data type of load average, as read out of kmem. */
65
66 /* #define LOAD_AVE_TYPE long */
67
68 /* Convert that into an integer that is 100 for a load average of 1.0 */
69
70 /* #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) */
71
72 /* Define CANNOT_DUMP on machines where unexec does not work.
73 Then the function dump-emacs will not be defined
74 and temacs will do (load "loadup") automatically unless told otherwise. */
75
76 /* #define CANNOT_DUMP */
77
78 /* Define VIRT_ADDR_VARIES if the virtual addresses of
79 pure and impure space as loaded can vary, and even their
80 relative order cannot be relied on.
81
82 Otherwise Emacs assumes that data space precedes text space,
83 numerically. */
84
85 /* #define VIRT_ADDR_VARIES */
86
87 /* Define NO_REMAP if memory segmentation makes it not work well
88 to change the boundary between the text section and data section
89 when Emacs is dumped. If you define this, the preloaded Lisp
90 code will not be sharable; but that's better than failing completely. */
91
92 #define NO_REMAP
93
94 /* Some really obscure 4.2-based systems (like Sequent DYNIX)
95 * do not support asynchronous I/O (using SIGIO) on sockets,
96 * even though it works fine on tty's. If you have one of
97 * these systems, define the following, and then use it in
98 * config.h (or elsewhere) to decide when (not) to use SIGIO.
99 *
100 * You'd think this would go in an operating-system description file,
101 * but since it only occurs on some, but not all, BSD systems, the
102 * reasonable place to select for it is in the machine description
103 * file.
104 */
105
106 /* #define NO_SOCK_SIGIO */
107
108 \f
109 /* Undefine this if you don't want the machine slow down when a buffer
110 is modified. */
111
112 #define CLASH_DETECTION
113
114 /* Machine specific stuff */
115 #define HAVE_PTYS
116 #define SYSV_PTYS
117 #ifdef HAVE_INET_SOCKETS /* this comes from autoconf */
118 # define HAVE_SOCKETS /* NSE may or may not have been installed */
119 #endif
120 #define SIGNALS_VIA_CHARACTERS
121 #define BROKEN_CLOSEDIR /* builtin closedir is interruptible */
122 #undef HAVE_BCOPY /* b* functions are just stubs to mem* ones */
123 #define bcopy(from,to,bytes) memcpy(to,from,bytes)
124 #define bzero(to,bytes) memset(to,0,bytes)
125 #define bcmp memcmp
126 #define memmove(t,f,s) safe_bcopy(f,t,s) /* for overlapping copies */
127 #undef KERNEL_FILE
128 #define KERNEL_FILE "/sysv68"
129 #undef LDAV_SYMBOL
130
131 /* The standard C library is -lc881, not -lc.
132 -lbsd brings sigblock and sigsetmask.
133 DO NOT USE -lPW. That version of alloca is broken in versions R3V5,
134 R3V6, R3V7. -riku@field.fi -pot@cnuce.cnr.it. */
135
136 #define LIB_STANDARD -lc881
137 #define LIB_MATH -lm881
138 #define LIBS_TERMCAP -lcurses
139 #define LIBS_SYSTEM -lbsd
140 #undef sigsetmask
141
142 #ifdef HAVE_X_WINDOWS
143 # define HAVE_RANDOM
144 # define BROKEN_FIONREAD /* pearce@ll.mit.edu says this is needed. */
145 # define HAVE_XSCREENNUMBEROFSCREEN
146 # undef LIB_X11_LIB /* no shared libraries */
147 # define LIB_X11_LIB -lX11
148 # undef USG_SHARED_LIBRARIES /* once again, no shared libs */
149 # undef LIBX11_SYSTEM /* no -lpt as usg5-3.h expects */
150 # define LIBX11_SYSTEM -lnls -lnsl_s
151 #endif /* HAVE_X_WINDOWS */
152
153 #ifdef __GNUC__
154 /* Use builtin alloca. Also be sure that no other ones are tried out. */
155 # define alloca __builtin_alloca
156 /* Union lisp objects do not yet work as of 19.15. */
157 /* # undef NO_UNION_TYPE */
158
159 /* We are assuming here that the `true' GNU gcc has not been
160 installed, and we are using the gnucc provided by Motorola. No
161 support exists for compiling with GNU gcc, as I do not have it on
162 my machine to try it out. -pot@cnuce.cnr.it
163 If __STDC__ is defined gnucc has been called without the -traditional
164 option, that is, we are inside configure. If THIS_IS_CONFIGURE is
165 not defined, then configure is trying to figure out what the right
166 option for real compilation are.
167 Let us set -traditional, because gmalloc.c includes <stddef.h>, and
168 we don't have that (as of SYSV68 R3V7). */
169 # define C_SWITCH_MACHINE -mfp0ret -traditional -Dconst= -fdelayed-branch -fstrength-reduce -fno-inline -fcaller-saves
170 # define LIB_GCC /lib/gnulib881
171
172 #else
173 /* Not __GNUC__, use the alloca in alloca.s. */
174
175 /* Try to guess if we are using the Green Hills Compiler */
176 # if defined mc68000 && defined MC68000
177 /* Required only for use with Green Hills compiler:
178 -ga Because alloca relies on stack frames. This option forces
179 the Green Hills compiler to create stack frames even for
180 functions with few local variables. */
181 # define C_SWITCH_MACHINE -ga -O
182 # define GAP_USE_BCOPY /* *++to = *++from is inefficient */
183 # define BCOPY_UPWARD_SAFE 0
184 # define BCOPY_DOWNWARD_SAFE 1 /* bcopy does: mov.b (%a1)+,(%a0)+ */
185 # else
186 /* We are using the standard AT&T Portable C Compiler */
187 # define SWITCH_ENUM_BUG
188 # endif
189
190 #endif /* not __GNUC__ */