annotate src/m/acorn.h @ 12692:2ab29b042213

*** empty log message ***
author Michael Kifer <kifer@cs.stonybrook.edu>
date Thu, 27 Jul 1995 19:39:47 +0000
parents 23f72b18b420
children 1d4654a97585
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9023
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
1 /* Machine description file for Acorn RISCiX machines.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
2 Copyright (C) 1994 Free Software Foundation, Inc.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
3
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
4 This file is part of GNU Emacs.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
5
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
9 any later version.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
10
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
14 GNU General Public License for more details.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
15
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
19
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
20
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
21
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
22 /* The following three symbols give information on
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
23 the size of various data types. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
24
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
25 #define SHORTBITS 16 /* Number of bits in a short */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
26
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
27 #define INTBITS 32 /* Number of bits in an int */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
28
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
29 #define LONGBITS 32 /* Number of bits in a long */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
30
9095
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 9024
diff changeset
31 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
9023
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
32 is the most significant byte. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
33
9095
23f72b18b420 (WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents: 9024
diff changeset
34 #undef WORDS_BIG_ENDIAN
9023
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
35
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
36 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
37 * group of arguments and treat it as an array of the arguments. We can't
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
38 * do this on the arm with gcc, since the first 4 args are in registers. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
39
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
40 #ifdef __GNUC__
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
41 #define NO_ARG_ARRAY
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
42 #else
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
43 #undef NO_ARG_ARRAY
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
44 #endif
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
45
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
46 /* Define WORD_MACHINE if addresses and such have
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
47 * to be corrected before they can be used as byte counts. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
48
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
49 #undef WORD_MACHINE
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
50
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
51 /* Define how to take a char and sign-extend into an int.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
52 On machines where char is signed, this is a no-op. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
53
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
54 /* ARM note - The RISCiX Norcroft C Compiler has ALL
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
55 non-32-bit types as unsigned */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
56
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
57 #define SIGN_EXTEND_CHAR(c) (((int)(c) << 24) >> 24)
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
58
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
59 /* Now define a symbol for the cpu type, if your compiler
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
60 does not define it automatically:
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
61 Ones defined so far include vax, m68000, ns16000, pyramid,
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
62 orion, tahoe, APOLLO and many others */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
63
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
64 /* ARM note - this is done by the Norcroft compiler - symbol is `__arm' */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
65
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
66 /* Use type int rather than a union, to represent Lisp_Object */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
67 /* This is desirable for most machines. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
68
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
69 #define NO_UNION_TYPE
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
70
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
71 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
72 the 24-bit bit field into an int. In other words, if bit fields
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
73 are always unsigned.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
74
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
75 If you use NO_UNION_TYPE, this flag does not matter. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
76
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
77 #define EXPLICIT_SIGN_EXTEND
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
78
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
79 #ifdef LDAV_SYMBOL
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
80 #undef LDAV_SYMBOL
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
81 #endif
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
82
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
83 #define LDAV_SYMBOL "_iavenrun"
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
84
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
85
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
86 /* Data type of load average, as read out of kmem. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
87
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
88 #define LOAD_AVE_TYPE long
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
89
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
90 /* Convert that into an integer that is 100 for a load average of 1.0 */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
91
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
92 /*
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
93 * Scale factor for scaled integers used to count
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
94 * %cpu time and load averages.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
95 */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
96
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
97 /* FSHIFT and FSCALE are defined in param.h, but are required by
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
98 LOAD_AVE_CVT, so they need to be defined here. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
99
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
100 #ifndef FSHIFT
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
101 #define FSHIFT 8 /* bits to right of fixed binary point */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
102 #endif
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
103
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
104 #ifndef FSCALE
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
105 #define FSCALE (1<<FSHIFT)
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
106 #endif
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
107
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
108 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
109
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
110 /* Define CANNOT_DUMP on machines where unexec does not work.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
111 Then the function dump-emacs will not be defined
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
112 and temacs will do (load "loadup") automatically unless told otherwise. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
113
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
114 #undef CANNOT_DUMP
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
115
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
116 /* Define VIRT_ADDR_VARIES if the virtual addresses of
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
117 pure and impure space as loaded can vary, and even their
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
118 relative order cannot be relied on.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
119
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
120 Otherwise Emacs assumes that text space precedes data space,
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
121 numerically. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
122
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
123 #undef VIRT_ADDR_VARIES
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
124
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
125 /* This prevents Emacs dumping an unsqueezed binary with the
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
126 SQUEEZE bit set in the magic number. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
127
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
128 #define ADJUST_EXEC_HEADER {hdr.a_magic &= ~MF_SQUEEZED;}
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
129
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
130 /* Define C_ALLOCA if this machine does not support a true alloca
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
131 and the one written in C should be used instead.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
132 Define HAVE_ALLOCA to say that the system provides a properly
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
133 working alloca function and it should be used.
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
134 Define neither one if an assembler-language alloca
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
135 in the file alloca.s should be used. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
136
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
137 #ifdef __GNUC__
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
138
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
139 /* Use builtin alloca. Also be sure that no other ones are tried out. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
140 #define alloca __builtin_alloca
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
141 #define HAVE_ALLOCA
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
142
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
143 /* Keep gcc/RISCiX happy - it uses __gccmain where other versions of
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
144 gcc use __main, because of a library routine name clash. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
145 #define __main __gccmain
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
146
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
147 #else
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
148 #define C_ALLOCA
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
149 #undef HAVE_ALLOCA
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
150 #endif /* __GNUC__ */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
151
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
152 /* Define NO_REMAP if memory segmentation makes it not work well
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
153 to change the boundary between the text section and data section
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
154 when Emacs is dumped. If you define this, the preloaded Lisp
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
155 code will not be sharable; but that's better than failing completely. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
156
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
157 #define NO_REMAP
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
158
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
159
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
160 #ifndef NOT_C_CODE
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
161 #define TEXT_START 0x8000
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
162 #define DATA_END &_edata
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
163 extern int _edata;
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
164 #define etext _etext
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
165 #endif
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
166
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
167 /* Avoid debugging library */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
168 #define LIBS_DEBUG
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
169
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
170 /* Avoid sharing libc */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
171 #define LIB_STANDARD -lc_n
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
172
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
173 /* Avoid sharing libX11 */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
174 #define LIB_X11_LIB -lX11_n
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
175
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
176 /* All kinds of symbol definitions, so as to avoid multiply defined symbol
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
177 errors from the RISCiX linker. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
178
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
179 #ifdef __GNUC__
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
180 #define C_DEBUG_SWITCH
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
181
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
182 #define C_OPTIMIZE_SWITCH -O1 -fomit-frame-pointer -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree -D___type=
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
183
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
184 #else
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
185 #define C_DEBUG_SWITCH -O -w -g -Dgetopt=gnu_getopt -Dopterr=gnu_opterr -Doptind=gnu_optind -Doptarg=gnu_optarg -Dcfree=gnu_cfree
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
186 #endif
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
187
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
188 /* Turn this on to avoid the emacs malloc and use standard one */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
189
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
190 #undef SYSTEM_MALLOC
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
191
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
192 /* Use <dirent.h>. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
193 #define SYSV_SYSTEM_DIR
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
194
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
195 /* For the portable alloca */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
196 #define STACK_DIRECTION -1
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
197
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
198 #ifdef NO_REMAP
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
199 /* CRT0_O is defined in s/riscix1-1.h or s/riscix1-2.h, as appropriate. */
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
200 #define START_FILES pre-crt0.o CRT0_O
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
201 #else
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
202 Cannot
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
203 do
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
204 this
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
205 yet
1f1081c31047 Initial revision
Richard M. Stallman <rms@gnu.org>
parents:
diff changeset
206 #endif