Mercurial > emacs
annotate src/m/alpha.h @ 97266:80acedef7417
cleanup in s/darwin.h, define DARWIN_OS and use it instead of DARWIN and/or MAC_OSX; also, nsterm.m: small unrelated cleanups
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Mon, 04 Aug 2008 14:39:27 +0000 |
parents | e58e8418725b |
children | e038c1a8307c |
rev | line source |
---|---|
8836 | 1 /* machine description file For the alpha chip. |
94714
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
2 Copyright (C) 1994, 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006, |
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
3 2007, 2008 Free Software Foundation, Inc. |
8836 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
94714
7e5b32f86a4c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
7 GNU Emacs is free software: you can redistribute it and/or modify |
8836 | 8 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:
87649
diff
changeset
|
9 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:
87649
diff
changeset
|
10 (at your option) any later version. |
8836 | 11 |
12 GNU Emacs is distributed in the hope that it will be useful, | |
13 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 GNU General Public License for more details. | |
16 | |
17 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:
87649
diff
changeset
|
18 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
8836 | 19 |
20 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
48428
diff
changeset
|
21 /* The following line tells the configuration script what sort of |
8836 | 22 operating system this machine is likely to run. |
23 USUAL-OPSYS="note" | |
24 | |
25 NOTE-START | |
26 Use -opsystem=osf1 | |
27 NOTE-END | |
28 | |
29 */ | |
30 | |
28647 | 31 #ifndef _LP64 |
29912 | 32 #define _LP64 /* This doesn't appear to be necessary |
33 on OSF 4/5 -- fx. */ | |
28647 | 34 #endif |
8836 | 35 |
78499 | 36 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word |
9095
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
37 is the most significant byte. */ |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
38 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
39 #undef WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
40 |
8836 | 41 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
42 * group of arguments and treat it as an array of the arguments. */ | |
43 | |
44 #define NO_ARG_ARRAY | |
45 | |
46 /* Now define a symbol for the cpu type, if your compiler | |
96732
1e0b67e40d48
* systty.h: Remove code for Aix on 386, unsupported platform.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96643
diff
changeset
|
47 does not define it automatically. */ |
8836 | 48 |
49 /* __alpha defined automatically */ | |
50 | |
51 | |
52 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend | |
53 the 24-bit bit field into an int. In other words, if bit fields | |
54 are always unsigned. | |
55 | |
96602 | 56 This flag only matters if you use USE_LISP_UNION_TYPE. */ |
8836 | 57 |
58 #define EXPLICIT_SIGN_EXTEND | |
59 | |
60 /* Data type of load average, as read out of kmem. */ | |
61 | |
62 #define LOAD_AVE_TYPE long | |
63 | |
64 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
65 | |
66 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | |
67 | |
68 /* GNU malloc and the relocating allocator do not work together | |
11979
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
69 with X. [Who wrote that?] */ |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
70 |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
71 /* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
72 system and the gnu malloc system work with "alpha-dec-osf3.0" and |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
73 "alpha-dec-osf3.2". */ |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
74 |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
75 /* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
76 mallocs work with "alpha-dec-osf2.0", but I daren't break anything |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
77 right now. Feel free to play if you want. */ |
8836 | 78 |
12301
69f08a14593b
(malloc, realloc): If not _MALLOC_INTERNAL, always use void *.
Richard M. Stallman <rms@gnu.org>
parents:
12235
diff
changeset
|
79 /* #define SYSTEM_MALLOC */ |
8836 | 80 |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
81 #ifdef __ELF__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
82 /* With ELF, make sure that all common symbols get allocated to in the |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
83 data section. Otherwise, the dump of temacs may miss variables in |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
84 the shared library that have been initialized. For example, with |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
85 GNU libc, __malloc_initialized would normally be resolved to the |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
86 shared library's .bss section, which is fatal. */ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
87 # ifdef __GNUC__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
88 # define C_SWITCH_MACHINE -fno-common |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
89 # else |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
90 # error What gives? Fix me if DEC Unix supports ELF now. |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
91 # endif |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
92 |
15851
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
93 #undef UNEXEC |
16119
8b44e50334a8
(UNEXEC): Use unexelf.c.
Richard M. Stallman <rms@gnu.org>
parents:
15851
diff
changeset
|
94 #define UNEXEC unexelf.o |
96643
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
95 #ifndef GNU_LINUX |
46651
9f027dd3047f
(BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
Ken Raeburn <raeburn@raeburn.org>
parents:
44601
diff
changeset
|
96 #define DATA_START 0x140000000 |
15851
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
97 #endif |
96643
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
98 |
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
99 #if (defined (__NetBSD__) || defined (__OpenBSD__)) |
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
100 #define HAVE_TEXT_START |
47512
a1fefb8caf04
[LINUX]: Don't define DATA_START.
Andreas Schwab <schwab@suse.de>
parents:
46651
diff
changeset
|
101 #endif |
15851
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
102 |
96643
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
103 #else /* not __ELF__ */ |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
104 |
8836 | 105 /* Describe layout of the address space in an executing process. */ |
106 | |
107 #define TEXT_START 0x120000000 | |
108 #define DATA_START 0x140000000 | |
109 | |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
110 /* The program to be used for unexec. */ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
111 |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
112 #define UNEXEC unexalpha.o |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
113 |
96643
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
114 #endif /* __ELF__ */ |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
115 |
96948
d09831a9672d
* m/alpha.h (LINUX_SBRK_BUG):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96924
diff
changeset
|
116 #if defined (GNU_LINUX) && __GNU_LIBRARY__ - 0 < 6 |
d09831a9672d
* m/alpha.h (LINUX_SBRK_BUG):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96924
diff
changeset
|
117 /* This controls a conditional in main. */ |
d09831a9672d
* m/alpha.h (LINUX_SBRK_BUG):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96924
diff
changeset
|
118 #define LINUX_SBRK_BUG |
d09831a9672d
* m/alpha.h (LINUX_SBRK_BUG):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96924
diff
changeset
|
119 #endif |
d09831a9672d
* m/alpha.h (LINUX_SBRK_BUG):
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96924
diff
changeset
|
120 |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
121 /* On the Alpha it's best to avoid including TERMIO since struct |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
122 termio and struct termios are mutually incompatible. */ |
12827
b0f8f54fe739
[linux] (COFF, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
12825
diff
changeset
|
123 #define NO_TERMIO |
b0f8f54fe739
[linux] (COFF, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
12825
diff
changeset
|
124 |
96643
79121a8f01e3
* config.nt (HAVE_FACES): Remove, unused.
Dan Nicolaescu <dann@ics.uci.edu>
parents:
96602
diff
changeset
|
125 #if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
126 # ifndef __ELF__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
127 # define COFF |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
128 # endif /* notdef __ELF__ */ |
12827
b0f8f54fe739
[linux] (COFF, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
12825
diff
changeset
|
129 #endif |
20031
6b1b51bc8b17
Test __OpenBSD__ along with __NetBSD__.
Richard M. Stallman <rms@gnu.org>
parents:
18101
diff
changeset
|
130 |
20201
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
131 /* Many Alpha implementations (e.g. gas 2.8) can't handle DBL_MIN: |
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
132 they generate code that uses a signaling NaN instead of DBL_MIN. |
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
133 Define DBL_MIN_REPLACEMENT to be the next value larger than DBL_MIN: |
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
134 this avoids the assembler bug. */ |
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
135 #define DBL_MIN_REPLACEMENT 2.2250738585072019e-308 |
52401 | 136 |
137 /* arch-tag: 978cb578-1e25-4a60-819b-adae0972aa78 | |
138 (do not change this comment) */ |