Mercurial > emacs
annotate src/m/alpha.h @ 91180:583ca8a88936
(describe-char): Handle a composition of the new
format.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 04 Dec 2007 06:05:28 +0000 |
parents | 424b655804ca |
children | 606f2d163a64 |
rev | line source |
---|---|
8836 | 1 /* machine description file For the alpha chip. |
75227
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
2 Copyright (C) 1994, 1997, 1999, 2001, 2002, 2003, 2004, |
e90d04cd455a
Update copyright for years from Emacs 21 to present (mainly adding
Glenn Morris <rgm@gnu.org>
parents:
68651
diff
changeset
|
3 2005, 2006, 2007 Free Software Foundation, Inc. |
8836 | 4 |
5 This file is part of GNU Emacs. | |
6 | |
7 GNU Emacs is free software; you can redistribute it and/or modify | |
8 it under the terms of the GNU General Public License as published by | |
78258
6aba169c4b1f
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
76212
diff
changeset
|
9 the Free Software Foundation; either version 3, or (at your option) |
8836 | 10 any later version. |
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 | |
18 along with GNU Emacs; see the file COPYING. If not, write to | |
64083 | 19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
20 Boston, MA 02110-1301, USA. */ | |
8836 | 21 |
22 | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
48428
diff
changeset
|
23 /* The following line tells the configuration script what sort of |
8836 | 24 operating system this machine is likely to run. |
25 USUAL-OPSYS="note" | |
26 | |
27 NOTE-START | |
28 Use -opsystem=osf1 | |
29 NOTE-END | |
30 | |
31 */ | |
32 | |
28647 | 33 #ifndef _LP64 |
29912 | 34 #define _LP64 /* This doesn't appear to be necessary |
35 on OSF 4/5 -- fx. */ | |
28647 | 36 #endif |
8836 | 37 |
78499 | 38 /* 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
|
39 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
|
40 |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
41 #undef WORDS_BIG_ENDIAN |
23f72b18b420
(WORDS_BIG_ENDIAN): define or undef appropriately, superseding BIG_ENDIAN.
Karl Heuer <kwzh@gnu.org>
parents:
8892
diff
changeset
|
42 |
8836 | 43 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a |
44 * group of arguments and treat it as an array of the arguments. */ | |
45 | |
46 #define NO_ARG_ARRAY | |
47 | |
48 /* Now define a symbol for the cpu type, if your compiler | |
49 does not define it automatically: | |
50 Ones defined so far include vax, m68000, ns16000, pyramid, | |
51 orion, tahoe, APOLLO and many others */ | |
52 | |
53 /* __alpha defined automatically */ | |
54 | |
55 | |
56 /* Use type EMACS_INT rather than a union, to represent Lisp_Object */ | |
57 /* This is desirable for most machines. */ | |
58 #define NO_UNION_TYPE | |
59 | |
60 /* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend | |
61 the 24-bit bit field into an int. In other words, if bit fields | |
62 are always unsigned. | |
63 | |
64 If you use NO_UNION_TYPE, this flag does not matter. */ | |
65 | |
66 #define EXPLICIT_SIGN_EXTEND | |
67 | |
68 /* Data type of load average, as read out of kmem. */ | |
69 | |
70 #define LOAD_AVE_TYPE long | |
71 | |
72 /* Convert that into an integer that is 100 for a load average of 1.0 */ | |
73 | |
74 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | |
75 | |
76 /* 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
|
77 with X. [Who wrote that?] */ |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
78 |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
79 /* 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
|
80 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
|
81 "alpha-dec-osf3.2". */ |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
82 |
10035163f8d5
(LD_SWITCH_MACHINE) [!__GNUC__]: Don't define.
Karl Heuer <kwzh@gnu.org>
parents:
11696
diff
changeset
|
83 /* 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
|
84 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
|
85 right now. Feel free to play if you want. */ |
8836 | 86 |
12301
69f08a14593b
(malloc, realloc): If not _MALLOC_INTERNAL, always use void *.
Richard M. Stallman <rms@gnu.org>
parents:
12235
diff
changeset
|
87 /* #define SYSTEM_MALLOC */ |
8836 | 88 |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
89 #ifdef __ELF__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
90 /* 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
|
91 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
|
92 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
|
93 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
|
94 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
|
95 # ifdef __GNUC__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
96 # 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
|
97 # else |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
98 # 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
|
99 # endif |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
100 #endif |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
101 |
15851
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
102 #ifdef __ELF__ |
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
103 #undef UNEXEC |
16119
8b44e50334a8
(UNEXEC): Use unexelf.c.
Richard M. Stallman <rms@gnu.org>
parents:
15851
diff
changeset
|
104 #define UNEXEC unexelf.o |
47512
a1fefb8caf04
[LINUX]: Don't define DATA_START.
Andreas Schwab <schwab@suse.de>
parents:
46651
diff
changeset
|
105 #ifndef LINUX |
46651
9f027dd3047f
(BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
Ken Raeburn <raeburn@raeburn.org>
parents:
44601
diff
changeset
|
106 #define DATA_START 0x140000000 |
15851
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
107 #endif |
47512
a1fefb8caf04
[LINUX]: Don't define DATA_START.
Andreas Schwab <schwab@suse.de>
parents:
46651
diff
changeset
|
108 #endif |
15851
9aaeb5dc2851
[__ELF__] (UNEXEC): Use unexelf1.c.
Richard M. Stallman <rms@gnu.org>
parents:
15850
diff
changeset
|
109 |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
110 #ifndef __ELF__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
111 |
8836 | 112 /* Describe layout of the address space in an executing process. */ |
113 | |
114 #define TEXT_START 0x120000000 | |
115 #define DATA_START 0x140000000 | |
116 | |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
117 /* 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
|
118 |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
119 #define UNEXEC unexalpha.o |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
120 |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
121 #endif /* notdef __ELF__ */ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
122 |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
123 #if defined (LINUX) && __GNU_LIBRARY__ - 0 < 6 |
13616
0e584934cd9e
[LINUX] (LINUX_SBRK_BUG): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
13534
diff
changeset
|
124 /* This controls a conditional in main. */ |
0e584934cd9e
[LINUX] (LINUX_SBRK_BUG): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
13534
diff
changeset
|
125 #define LINUX_SBRK_BUG |
0e584934cd9e
[LINUX] (LINUX_SBRK_BUG): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
13534
diff
changeset
|
126 #endif |
8836 | 127 |
15850
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
128 /* 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
|
129 termio and struct termios are mutually incompatible. */ |
12827
b0f8f54fe739
[linux] (COFF, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
12825
diff
changeset
|
130 #define NO_TERMIO |
b0f8f54fe739
[linux] (COFF, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
12825
diff
changeset
|
131 |
20031
6b1b51bc8b17
Test __OpenBSD__ along with __NetBSD__.
Richard M. Stallman <rms@gnu.org>
parents:
18101
diff
changeset
|
132 #if defined (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
|
133 # define TEXT_END ({ extern int _etext; &_etext; }) |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
134 # ifndef __ELF__ |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
135 # define COFF |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
136 # define DATA_END ({ extern int _EDATA; &_EDATA; }) |
d6c4d581ad25
[__ELF__ && __GNUC__] (C_SWITCH_MACHINE): Add -fno-common.
Richard M. Stallman <rms@gnu.org>
parents:
15719
diff
changeset
|
137 # endif /* notdef __ELF__ */ |
12827
b0f8f54fe739
[linux] (COFF, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
12825
diff
changeset
|
138 #endif |
20031
6b1b51bc8b17
Test __OpenBSD__ along with __NetBSD__.
Richard M. Stallman <rms@gnu.org>
parents:
18101
diff
changeset
|
139 |
6b1b51bc8b17
Test __OpenBSD__ along with __NetBSD__.
Richard M. Stallman <rms@gnu.org>
parents:
18101
diff
changeset
|
140 #if (defined (__NetBSD__) || defined (__OpenBSD__)) && defined (__ELF__) |
6b1b51bc8b17
Test __OpenBSD__ along with __NetBSD__.
Richard M. Stallman <rms@gnu.org>
parents:
18101
diff
changeset
|
141 #define HAVE_TEXT_START |
6b1b51bc8b17
Test __OpenBSD__ along with __NetBSD__.
Richard M. Stallman <rms@gnu.org>
parents:
18101
diff
changeset
|
142 #endif |
20201
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
143 |
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
144 /* 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
|
145 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
|
146 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
|
147 this avoids the assembler bug. */ |
09b52c2bc2f1
(DBL_MIN_REPLACEMENT): New macro.
Paul Eggert <eggert@twinsun.com>
parents:
20031
diff
changeset
|
148 #define DBL_MIN_REPLACEMENT 2.2250738585072019e-308 |
52401 | 149 |
150 /* arch-tag: 978cb578-1e25-4a60-819b-adae0972aa78 | |
151 (do not change this comment) */ |