Mercurial > emacs
annotate src/m/pmax.h @ 96171:5cb1baeb8096
*** empty log message ***
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 21 Jun 2008 19:48:40 +0000 |
parents | 7e5b32f86a4c |
children |
rev | line source |
---|---|
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
1 /* Machine description file for DEC MIPS machines. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
2 |
94714
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79755
diff
changeset
|
3 Copyright (C) 1992, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79755
diff
changeset
|
4 2008 Free Software Foundation, Inc. |
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
5 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
6 This file is part of GNU Emacs. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
7 |
94714
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79755
diff
changeset
|
8 GNU Emacs is free software: you can redistribute it and/or modify |
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
9 it under the terms of the GNU General Public License as published by |
94714
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79755
diff
changeset
|
10 the Free Software Foundation, either version 3 of the License, or |
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79755
diff
changeset
|
11 (at your option) any later version. |
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
12 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
13 GNU Emacs is distributed in the hope that it will be useful, |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
16 GNU General Public License for more details. |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
17 |
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
18 You should have received a copy of the GNU General Public License |
94714
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
79755
diff
changeset
|
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
75935
e032dd450ea7
Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents:
69562
diff
changeset
|
20 |
1113 | 21 |
456 | 22 #include "mips.h" |
23 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45959
diff
changeset
|
24 /* The following line tells the configuration script what sort of |
456 | 25 operating system this machine is likely to run. |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45959
diff
changeset
|
26 USUAL-OPSYS="note" |
1113 | 27 |
28 NOTE-START | |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
29 The operating system would be either osf1, ultrix, or NetBSD. |
1113 | 30 NOTE-END */ |
456 | 31 |
45959
b8ede252555b
(START_FILES): Define START_FILES for NetBSD and
Pavel Janík <Pavel@Janik.cz>
parents:
44601
diff
changeset
|
32 #ifndef __MIPSEB__ |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
33 #undef WORDS_BIG_ENDIAN |
45959
b8ede252555b
(START_FILES): Define START_FILES for NetBSD and
Pavel Janík <Pavel@Janik.cz>
parents:
44601
diff
changeset
|
34 #endif |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
35 #if defined (__NetBSD__) |
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
36 #define BROKEN_NOCOMBRELOC |
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
37 #else |
1113 | 38 #undef LIB_STANDARD |
39 #undef START_FILES | |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
40 #endif |
1113 | 41 #undef COFF |
42 #undef TERMINFO | |
43 #define MAIL_USE_FLOCK | |
44 #define HAVE_UNION_WAIT | |
456 | 45 |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
46 |
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
47 #ifdef MACH |
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
48 #define START_FILES pre-crt0.o /usr/lib/crt0.o |
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
49 #else |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
50 #if !defined (__NetBSD__) |
456 | 51 /* This line starts being needed with ultrix 4.0. */ |
1113 | 52 /* You must delete it for version 3.1. */ |
456 | 53 #define START_FILES pre-crt0.o /usr/lib/cmplrs/cc/crt0.o |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
54 #endif |
69562
ca4e0ee2a8f8
(BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
Eli Zaretskii <eliz@gnu.org>
parents:
52401
diff
changeset
|
55 #endif |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
56 |
456 | 57 /* Supposedly the following will overcome a kernel bug. */ |
58 #undef LD_SWITCH_MACHINE | |
59 #undef DATA_START | |
60 #define DATA_START 0x10000000 | |
61 #define DATA_SEG_BITS 0x10000000 | |
62 | |
1582
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
63 #if 0 |
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
64 /* I don't see any such conflict in Ultrix 4.2, 4.2a, or 4.3. And |
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
65 the relocating allocator is a real win. -JimB */ |
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
66 |
456 | 67 /* In Ultrix 4.1, XvmsAlloc.o in libX11.a seems to insist |
68 on defining malloc itself. This should avoid conflicting with it. */ | |
69 #define SYSTEM_MALLOC | |
1582
689f1697d285
* m/pmax.h: Don't define SYSTEM_MALLOC; this was only necessary
Jim Blandy <jimb@redhat.com>
parents:
1113
diff
changeset
|
70 #endif |
1113 | 71 |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
72 /* Override what mips.h says about this. */ |
27923
325eddf4eb21
(START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: Don't define.
Gerd Moellmann <gerd@gnu.org>
parents:
19795
diff
changeset
|
73 #if !defined (__NetBSD__) |
1113 | 74 #undef LINKER |
27923
325eddf4eb21
(START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: Don't define.
Gerd Moellmann <gerd@gnu.org>
parents:
19795
diff
changeset
|
75 #endif |
1113 | 76 |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
77 #ifdef ultrix |
1113 | 78 /* Ultrix 4.2 (perhaps also 4.1) implements O_NONBLOCK |
79 but it doesn't work right; | |
80 and it causes hanging in read_process_output. */ | |
81 #define BROKEN_O_NONBLOCK | |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
82 #endif |
1113 | 83 |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
84 #ifndef __NetBSD__ |
3571
6c1a1b79536c
* config.h.in (HAVE_LIBDNET): New macro, to be defined by
Jim Blandy <jimb@redhat.com>
parents:
3406
diff
changeset
|
85 /* mcc@timessqr.gc.cuny.edu says this makes Emacs work with DECnet. */ |
6c1a1b79536c
* config.h.in (HAVE_LIBDNET): New macro, to be defined by
Jim Blandy <jimb@redhat.com>
parents:
3406
diff
changeset
|
86 #ifdef HAVE_LIBDNET |
3396
56ffd7d79f05
(LIBS_MACHINE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
1582
diff
changeset
|
87 #define LIBS_MACHINE -ldnet |
3571
6c1a1b79536c
* config.h.in (HAVE_LIBDNET): New macro, to be defined by
Jim Blandy <jimb@redhat.com>
parents:
3406
diff
changeset
|
88 #endif |
3403 | 89 |
3406
829998469d86
(KERNEL_FILE): New override definition.
Richard M. Stallman <rms@gnu.org>
parents:
3403
diff
changeset
|
90 /* mcc@timessqr.gc.cuny.edu says it is /vmunix on Ultrix 4.2a. */ |
3403 | 91 #undef KERNEL_FILE |
3406
829998469d86
(KERNEL_FILE): New override definition.
Richard M. Stallman <rms@gnu.org>
parents:
3403
diff
changeset
|
92 #define KERNEL_FILE "/vmunix" |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
93 #endif |
4001
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
94 |
16484
96df462c5f15
(BROKEN_O_NONBLOCK): Define only if Ultrix.
Richard M. Stallman <rms@gnu.org>
parents:
14036
diff
changeset
|
95 #ifdef ultrix |
4001
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
96 /* Jim Wilson writes: |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
97 [...] The X11 include files that Dec distributes with Ultrix |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
98 are bogus. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
99 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
100 When __STDC__ is defined (which is true with gcc), the X11 include files |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
101 try to define prototypes. The prototypes however use types which haven't |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
102 been defined yet, and thus we get syntax/parse errors. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
103 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
104 You can not fix this by changing the include files, because the prototypes |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
105 create circular dependencies, in particular Xutil.h depends on types defined |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
106 in Xlib.h, and Xlib.h depends on types defined in Xutil.h. So, no matter |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
107 which order you try to include them in, it will still fail. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
108 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
109 Compiling with -DNeedFunctionPrototypes=0 will solve the problem by |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
110 directly inhibiting the bad prototypes. This could perhaps just be put in |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
111 an a Ultrix configuration file. |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
112 |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
113 Using the MIT X11 distribution instead of the one provided by Dec will |
20abae0de304
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
Jim Blandy <jimb@redhat.com>
parents:
3571
diff
changeset
|
114 also solve the problem, but I doubt you can convince everyone to do this. */ |
6889
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
115 /* Addendum: the MIT X11 distribution neglects to define certain symbols |
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
116 when NeedFunctionPrototypes is 0, but still tries to use them when |
14036 | 117 NeedVarargsPrototypes is 1 (which is its default value). So if we're |
6889
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
118 going to disable non-variadic prototypes, we also need to disable |
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
119 variadic prototypes. --kwzh@gnu.ai.mit.edu */ |
8b9decfed36f
(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
Karl Heuer <kwzh@gnu.org>
parents:
5256
diff
changeset
|
120 #define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0 -DNeedVarargsPrototypes=0 |
12419
818d7bcf63b0
[MACH]: Use built-in alloca, set START_FILES.
Richard M. Stallman <rms@gnu.org>
parents:
9095
diff
changeset
|
121 #endif |
5256
cd8db400928f
(SET_CHILD_PTY_PGRP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4001
diff
changeset
|
122 |
cd8db400928f
(SET_CHILD_PTY_PGRP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4001
diff
changeset
|
123 /* Enable a fix in process.c. */ |
cd8db400928f
(SET_CHILD_PTY_PGRP): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
4001
diff
changeset
|
124 #define SET_CHILD_PTY_PGRP |
52401 | 125 |
126 /* arch-tag: 45d5070e-d2b7-479f-b336-3fd497c36e15 | |
127 (do not change this comment) */ |