Mercurial > emacs
annotate src/m/mips-siemens.h @ 15094:77e6de616e58
(FRAME_TERMCAP_P) [WINDOWSNT && !HAVE_NTGUI]:
Remove conditional for HAVE_NTGUI.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 26 Apr 1996 19:56:17 +0000 |
parents | e84b5426ed37 |
children | c4cd6784bbcc |
rev | line source |
---|---|
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
1 /* m- file for Mips machines. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
2 Copyright (C) 1987, 1992, 1993, 1995 Free Software Foundation, Inc. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
3 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
4 This file contains some changes for our SVR4 based SINIX-Mips 5.4. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
5 I hope this is helpful to port the emacs to our RM?00 series and |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
6 maybe to the DC/OSx (Mips-based) machines of Pyramid Inc. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
7 (Marco.Walther@mch.sni.de) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
8 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
9 This file is part of GNU Emacs. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
10 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
11 GNU Emacs is free software; you can redistribute it and/or modify |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
12 it under the terms of the GNU General Public License as published by |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
13 the Free Software Foundation; either version 2, or (at your option) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
14 any later version. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
15 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
16 GNU Emacs is distributed in the hope that it will be useful, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
17 but WITHOUT ANY WARRANTY; without even the implied warranty of |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
19 GNU General Public License for more details. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
20 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
21 You should have received a copy of the GNU General Public License |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
22 along with GNU Emacs; see the file COPYING. If not, write to |
14186
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
13365
diff
changeset
|
23 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
ee40177f6c68
Update FSF's address in the preamble.
Erik Naggum <erik@naggum.no>
parents:
13365
diff
changeset
|
24 Boston, MA 02111-1307, USA. */ |
7034 | 25 |
26 | |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
27 /* The following line tells the configuration script what sort of |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
28 operating system this machine is likely to run. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
29 USUAL-OPSYS="note" |
7034 | 30 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
31 NOTE-START |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
32 Use m-mips4.h for RISCOS version 4; use s-bsd4-3.h with the BSD world. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
33 Note that the proper m- file for the Decstation is m-pmax.h. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
34 This is the m- file for SNI RM*00 machines. Use s- sinix5-4.h file! |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
35 With this the file mips-siemens.h is obsolete. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
36 NOTE-END */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
37 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
38 /* Define BIG_ENDIAN iff lowest-numbered byte in a word |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
39 is the most significant byte. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
40 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
41 #define BIG_ENDIAN |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
42 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
43 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
44 * group of arguments and treat it as an array of the arguments. */ |
7035
39895883bb2e
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7034
diff
changeset
|
45 |
7826
6c242e506369
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7121
diff
changeset
|
46 #define NO_ARG_ARRAY |
6c242e506369
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7121
diff
changeset
|
47 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
48 /* Define WORD_MACHINE if addresses and such have |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
49 * to be corrected before they can be used as byte counts. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
50 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
51 #undef WORD_MACHINE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
52 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
53 /* Define how to take a char and sign-extend into an int. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
54 On machines where char is signed, this is a no-op. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
55 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
56 #define SIGN_EXTEND_CHAR(c) ((signed char)(c)) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
57 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
58 /* Now define a symbol for the cpu type, if your compiler |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
59 does not define it automatically: |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
60 Ones defined so far include vax, m68000, ns16000, pyramid, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
61 orion, tahoe, APOLLO and many others */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
62 #ifndef mips |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
63 # define mips |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
64 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
65 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
66 /* Use type int rather than a union, to represent Lisp_Object */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
67 /* This is desirable for most machines. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
68 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
69 #define NO_UNION_TYPE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
70 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
71 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
72 the 24-bit bit field into an int. In other words, if bit fields |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
73 are always unsigned. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
74 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
75 If you use NO_UNION_TYPE, this flag does not matter. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
76 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
77 #define EXPLICIT_SIGN_EXTEND |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
78 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
79 /* Data type of load average, as read out of kmem. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
80 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
81 #define LOAD_AVE_TYPE long |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
82 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
83 /* Convert that into an integer that is 100 for a load average of 1.0 */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
84 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
85 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / 256.0) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
86 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
87 /* CDC EP/IX 1.4.3 uses /unix */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
88 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
89 #undef KERNEL_FILE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
90 #define KERNEL_FILE "/unix" |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
91 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
92 /* Define CANNOT_DUMP on machines where unexec does not work. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
93 Then the function dump-emacs will not be defined |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
94 and temacs will do (load "loadup") automatically unless told otherwise. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
95 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
96 #undef CANNOT_DUMP |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
97 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
98 /* Define VIRT_ADDR_VARIES if the virtual addresses of |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
99 pure and impure space as loaded can vary, and even their |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
100 relative order cannot be relied on. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
101 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
102 Otherwise Emacs assumes that text space precedes data space, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
103 numerically. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
104 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
105 /* #define VIRT_ADDR_VARIES */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
106 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
107 /* Define C_ALLOCA if this machine does not support a true alloca |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
108 and the one written in C should be used instead. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
109 Define HAVE_ALLOCA to say that the system provides a properly |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
110 working alloca function and it should be used. |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
111 Define neither one if an assembler-language alloca |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
112 in the file alloca.s should be used. */ |
7826
6c242e506369
*** empty log message ***
Richard M. Stallman <rms@gnu.org>
parents:
7121
diff
changeset
|
113 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
114 #ifdef __GNUC__ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
115 #define HAVE_ALLOCA |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
116 #else |
9517 | 117 #define C_ALLOCA |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
118 #endif |
9517 | 119 |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
120 /* Define NO_REMAP if memory segmentation makes it not work well |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
121 to change the boundary between the text section and data section |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
122 when Emacs is dumped. If you define this, the preloaded Lisp |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
123 code will not be sharable; but that's better than failing completely. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
124 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
125 #define NO_REMAP |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
126 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
127 /* Describe layout of the address space in an executing process. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
128 /* MARCO ??? |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
129 */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
130 #define TEXT_START 0x400000 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
131 /* |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
132 #define DATA_START 0x10000000 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
133 #define DATA_SEG_BITS 0x10000000 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
134 */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
135 #ifdef UNEXEC |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
136 #undef UNEXEC |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
137 #endif |
14255
e84b5426ed37
(UNEXEC): unexsni.o renamed from unexelfsni.o.
Karl Heuer <kwzh@gnu.org>
parents:
14186
diff
changeset
|
138 #define UNEXEC unexsni.o |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
139 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
140 #undef ORDINARY_LINK |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
141 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
142 #undef LIBS_DEBUG |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
143 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
144 /* Alter some of the options used when linking. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
145 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
146 #define LIBS_MACHINE -lmld |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
147 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xt.o |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
148 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
149 #ifdef LIB_STANDARD |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
150 #undef LIB_STANDARD |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
151 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
152 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
153 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
154 #ifdef __GNUC__ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
155 #define C_DEBUG_SWITCH |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
156 #define C_OPTIMIZE_SWITCH -O |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
157 #define LD_SWITCH_MACHINE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
158 #else |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
159 #define C_DEBUG_SWITCH -DSYSV |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
160 #define C_OPTIMIZE_SWITCH -DSYSV |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
161 #define LD_SWITCH_MACHINE |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
162 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
163 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
164 #if defined(HAVE_X_WINDOWS) && defined(HAVE_X11) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
165 #define HAVE_VFORK /* Graciously provided by libX.a */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
166 #endif |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
167 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
168 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
169 /* The standard definitions of these macros would work ok, |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
170 but these are faster because the constants are short. */ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
171 |
13365
2cd15d90fec6
(SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h
Karl Heuer <kwzh@gnu.org>
parents:
11113
diff
changeset
|
172 #define XUINT(a) (((unsigned)(a) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS)) |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
173 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
174 #define XSET(var, type, ptr) \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
175 ((var) = \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
176 ((int)(type) << VALBITS) \ |
13365
2cd15d90fec6
(SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h
Karl Heuer <kwzh@gnu.org>
parents:
11113
diff
changeset
|
177 + (((unsigned) (ptr) << (BITS_PER_INT-VALBITS)) >> (BITS_PER_INT-VALBITS))) |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
178 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
179 #define XSETINT(a, b) XSET(a, XTYPE(a), b) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
180 #define XSETUINT(a, b) XSET(a, XTYPE(a), b) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
181 #define XSETPNTR(a, b) XSET(a, XTYPE(a), b) |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
182 |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
183 #define XUNMARK(a) \ |
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
184 ((a) = \ |
13365
2cd15d90fec6
(SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h
Karl Heuer <kwzh@gnu.org>
parents:
11113
diff
changeset
|
185 (((unsigned)(a) << (BITS_PER_INT-GCTYPEBITS-VALBITS)) \ |
2cd15d90fec6
(SHORTBITS, INTBITS, LONGBITS): Deleted; now in config.h
Karl Heuer <kwzh@gnu.org>
parents:
11113
diff
changeset
|
186 >> (BITS_PER_INT-GCTYPEBITS-VALBITS))) |
11113
da5800b0c012
(UNEXEC): Override the definition.
Richard M. Stallman <rms@gnu.org>
parents:
9517
diff
changeset
|
187 |