aboutsummaryrefslogtreecommitdiffstats
path: root/src/m
diff options
context:
space:
mode:
authorDan Nicolaescu2008-07-17 13:57:13 +0000
committerDan Nicolaescu2008-07-17 13:57:13 +0000
commit2749d28e1bd80262749657ee4a60e5b1f75b6cb8 (patch)
tree91c13313ccdf107e1df4a206e184c1c488af3c2c /src/m
parent6fb5f7dad5ede99f033dbbfc8539764354a4177b (diff)
downloademacs-2749d28e1bd80262749657ee4a60e5b1f75b6cb8.tar.gz
emacs-2749d28e1bd80262749657ee4a60e5b1f75b6cb8.zip
* ecrt0.c: Remove code depending on m68000, not used anymore.
* fns.c (hash_remove): Make static. * lisp.h (hash_remove): Don't prototype. * m/ibmrs6000.h: * m/ibms390x.h: * m/macppc.h: Remove boilerplate comments. * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on Solaris, which does not need them. * m/vax.h: Remove comments about unsupported systems. * s/darwin.h: Reorganize ifdefs.
Diffstat (limited to 'src/m')
-rw-r--r--src/m/ibmrs6000.h93
-rw-r--r--src/m/ibms390x.h24
-rw-r--r--src/m/macppc.h19
-rw-r--r--src/m/sparc.h15
-rw-r--r--src/m/vax.h18
5 files changed, 31 insertions, 138 deletions
diff --git a/src/m/ibmrs6000.h b/src/m/ibmrs6000.h
index 7268cf64441..c3474254281 100644
--- a/src/m/ibmrs6000.h
+++ b/src/m/ibmrs6000.h
@@ -22,15 +22,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 operating system this machine is likely to run. 22 operating system this machine is likely to run.
23 USUAL-OPSYS="aix3-1" */ 23 USUAL-OPSYS="aix3-1" */
24 24
25/* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
26 is the most significant byte. */
27
28#ifdef USG5_4
29#undef WORDS_BIG_ENDIAN
30#else
31#define WORDS_BIG_ENDIAN
32#endif
33
34/* Define NO_ARG_ARRAY if you cannot take the address of the first of a 25/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
35 * group of arguments and treat it as an array of the arguments. */ 26 * group of arguments and treat it as an array of the arguments. */
36 27
@@ -49,33 +40,40 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
49 40
50#define NO_REMAP 41#define NO_REMAP
51 42
52#ifndef USG5_4
53#define TEXT_START 0x10000000
54#define TEXT_END 0
55#define DATA_START 0x20000000
56#define DATA_END 0
57#endif
58
59/* The data segment in this machine always starts at address 0x20000000. 43/* The data segment in this machine always starts at address 0x20000000.
60 An address of data cannot be stored correctly in a Lisp object; 44 An address of data cannot be stored correctly in a Lisp object;
61 we always lose the high bits. We must tell XPNTR to add them back. */ 45 we always lose the high bits. We must tell XPNTR to add them back. */
62 46
63#ifndef USG5_4 47#ifndef USG5_4
48#define TEXT_START 0x10000000
49#define TEXT_END 0
50#define DATA_START 0x20000000
51#define DATA_END 0
52#define WORDS_BIG_ENDIAN
64#define DATA_SEG_BITS 0x20000000 53#define DATA_SEG_BITS 0x20000000
65#else 54#define C_SWITCH_MACHINE -D_BSD
66#define DATA_SEG_BITS 0
67#endif
68 55
69#undef ADDR_CORRECT 56/* sfreed@unm.edu says add -bI:/usr/lpp/X11/bin/smt.exp for AIX 3.2.4. */
70#define ADDR_CORRECT(x) ((int)(x)) 57/* marc@sti.com (Marc Pawliger) says ibmrs6000.inp is needed to avoid
58 linker error for updated X11R5 libraries, which references pthread library
59 which most machines don't have. We use the name .inp instead of .imp
60 because .inp is a better convention to use in make-dist for naming
61 random input files. */
62#ifdef THIS_IS_MAKEFILE /* Don't use this in configure. */
63#define LD_SWITCH_MACHINE -Wl,-bnodelcsect
64#endif /* THIS_IS_MAKEFILE */
71 65
72/* Here override various assumptions in ymakefile */ 66/* Avoid gcc 2.7.x collect2 bug by using /bin/ld instead. */
67#if __GNUC__ == 2 && __GNUC_MINOR__ == 7
68#define LD_SWITCH_SITE -B/bin/
69#endif
73 70
74#ifndef USG5 71#ifndef NLIST_STRUCT
75#define C_SWITCH_MACHINE -D_BSD 72/* AIX supposedly doesn't use this interface, but on the RS/6000
73 it apparently does. */
74#define NLIST_STRUCT
76#endif 75#endif
77 76
78#ifdef AIX
79/* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless 77/* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless
80 on older versions of X where it happens to exist. */ 78 on older versions of X where it happens to exist. */
81#ifdef HAVE_LIBPTHREADS 79#ifdef HAVE_LIBPTHREADS
@@ -84,13 +82,15 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
84/* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */ 82/* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */
85#define LIBS_MACHINE -lrts -lIM -liconv 83#define LIBS_MACHINE -lrts -lIM -liconv
86#endif 84#endif
87#else 85
88#ifdef USG5_4 86#else /* USG5_4 */
87#undef WORDS_BIG_ENDIAN
88#define DATA_SEG_BITS 0
89#define LIBS_MACHINE 89#define LIBS_MACHINE
90#else 90#endif /* USG5_4 */
91#define LIBS_MACHINE -lIM 91
92#endif 92#undef ADDR_CORRECT
93#endif 93#define ADDR_CORRECT(x) ((int)(x))
94 94
95#define START_FILES 95#define START_FILES
96/*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/ 96/*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/
@@ -106,36 +106,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
106 106
107#define ORDINARY_LINK 107#define ORDINARY_LINK
108 108
109#ifndef USG5_4
110/* sfreed@unm.edu says add -bI:/usr/lpp/X11/bin/smt.exp for AIX 3.2.4. */
111/* marc@sti.com (Marc Pawliger) says ibmrs6000.inp is needed to avoid
112 linker error for updated X11R5 libraries, which references pthread library
113 which most machines don't have. We use the name .inp instead of .imp
114 because .inp is a better convention to use in make-dist for naming
115 random input files. */
116#ifdef THIS_IS_MAKEFILE /* Don't use this in configure. */
117#ifdef AIX
118#define LD_SWITCH_MACHINE -Wl,-bnodelcsect
119#else /* not AIX */
120#ifdef HAVE_AIX_SMT_EXP
121#define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp,-bI:/usr/lpp/X11/bin/smt.exp
122#else
123#define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp
124#endif
125#endif /* not AIX */
126#endif /* THIS_IS_MAKEFILE */
127
128/* Avoid gcc 2.7.x collect2 bug by using /bin/ld instead. */
129#if __GNUC__ == 2 && __GNUC_MINOR__ == 7
130#define LD_SWITCH_SITE -B/bin/
131#endif
132
133#ifndef NLIST_STRUCT
134/* AIX supposedly doesn't use this interface, but on the RS/6000
135 it apparently does. */
136#define NLIST_STRUCT
137#endif
138#endif /* USG5_4 */
139
140/* arch-tag: 028318ee-a7ae-4a08-804d-cc1e6588d003 109/* arch-tag: 028318ee-a7ae-4a08-804d-cc1e6588d003
141 (do not change this comment) */ 110 (do not change this comment) */
diff --git a/src/m/ibms390x.h b/src/m/ibms390x.h
index e7f9a98145f..bcddabd0aac 100644
--- a/src/m/ibms390x.h
+++ b/src/m/ibms390x.h
@@ -87,30 +87,6 @@ NOTE-END */
87 87
88#undef NO_REMAP 88#undef NO_REMAP
89 89
90/* Some really obscure 4.2-based systems (like Sequent DYNIX)
91 * do not support asynchronous I/O (using SIGIO) on sockets,
92 * even though it works fine on tty's. If you have one of
93 * these systems, define the following, and then use it in
94 * config.h (or elsewhere) to decide when (not) to use SIGIO.
95 *
96 * You'd think this would go in an operating-system description file,
97 * but since it only occurs on some, but not all, BSD systems, the
98 * reasonable place to select for it is in the machine description
99 * file.
100 */
101
102#undef NO_SOCK_SIGIO
103
104
105/* After adding support for a new system, modify the large case
106 statement in the `configure' script to recognize reasonable
107 configuration names, and add a description of the system to
108 `etc/MACHINES'.
109
110 If you've just fixed a problem in an existing configuration file,
111 you should also check `etc/MACHINES' to make sure its descriptions
112 of known problems in that configuration should be updated. */
113
114/* On the 64 bit architecture, we can use 60 bits for addresses */ 90/* On the 64 bit architecture, we can use 60 bits for addresses */
115 91
116#define VALBITS 60 92#define VALBITS 60
diff --git a/src/m/macppc.h b/src/m/macppc.h
index eeb9990562e..fc2c8f9d361 100644
--- a/src/m/macppc.h
+++ b/src/m/macppc.h
@@ -27,11 +27,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
27 27
28#define NO_ARG_ARRAY 28#define NO_ARG_ARRAY
29 29
30/* Now define a symbol for the cpu type, if your compiler
31 does not define it automatically:
32 Ones defined so far include vax, m68000, ns16000, pyramid,
33 orion, tahoe, APOLLO and many others */
34
35/* Data type of load average, as read out of kmem. */ 30/* Data type of load average, as read out of kmem. */
36 31
37#define LOAD_AVE_TYPE long 32#define LOAD_AVE_TYPE long
@@ -40,20 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
40 35
41#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) 36#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
42 37
43/* Some really obscure 4.2-based systems (like Sequent DYNIX)
44 * do not support asynchronous I/O (using SIGIO) on sockets,
45 * even though it works fine on tty's. If you have one of
46 * these systems, define the following, and then use it in
47 * config.h (or elsewhere) to decide when (not) to use SIGIO.
48 *
49 * You'd think this would go in an operating-system description file,
50 * but since it only occurs on some, but not all, BSD systems, the
51 * reasonable place to select for it is in the machine description
52 * file.
53 */
54
55/* #define NO_SOCK_SIGIO */
56
57#if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__) 38#if defined (GNU_LINUX) || defined (__NetBSD__) || defined (__OpenBSD__)
58# define TEXT_END ({ extern int _etext; &_etext; }) 39# define TEXT_END ({ extern int _etext; &_etext; })
59#endif 40#endif
diff --git a/src/m/sparc.h b/src/m/sparc.h
index e75094fa7de..c4d7c0698f4 100644
--- a/src/m/sparc.h
+++ b/src/m/sparc.h
@@ -55,21 +55,6 @@ NOTE-END */
55 55
56#define SEGMENT_MASK (SEGSIZ - 1) 56#define SEGMENT_MASK (SEGSIZ - 1)
57 57
58#if !defined (__NetBSD__) && !defined (__linux__) && !defined (__OpenBSD__)
59/* This really belongs in s/sun.h. */
60
61/* Say that the text segment of a.out includes the header;
62 the header actually occupies the first few bytes of the text segment
63 and is counted in hdr.a_text. */
64
65#define A_TEXT_OFFSET(HDR) sizeof (HDR)
66
67/* This is the offset of the executable's text, from the start of the file. */
68
69#define A_TEXT_SEEK(HDR) (N_TXTOFF (hdr) + sizeof (hdr))
70
71#endif /* not __NetBSD__ and not __linux__ and not __OpenBSD__ */
72
73#ifdef __arch64__ /* GCC, 64-bit ABI. */ 58#ifdef __arch64__ /* GCC, 64-bit ABI. */
74#define BITS_PER_LONG 64 59#define BITS_PER_LONG 64
75#ifdef __linux__ 60#ifdef __linux__
diff --git a/src/m/vax.h b/src/m/vax.h
index 7a08deb6830..d412deacd99 100644
--- a/src/m/vax.h
+++ b/src/m/vax.h
@@ -25,24 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25NOTE-START 25NOTE-START
26The vax (-machine=vax) runs zillions of different operating systems. 26The vax (-machine=vax) runs zillions of different operating systems.
27 27
28Vax running Berkeley Unix (-opsystem=bsd4-1, -opsystem=bsd4-2 or
29 -opsystem=bsd4-3)
30
31 Works.
32
33Vax running Ultrix (-opsystem=bsd4-2)
34
35 Works. See under Ultrix in share-lib/MACHINES for problems using X
36 windows on Ultrix.
37
38Vax running System V rel 2 (-opsystem=usg5-2)
39
40 18.27 Works.
41
42Vax running System V rel 0 (-opsystem=usg5-0)
43
44 Works as of 18.36.
45
46Vax running VMS (-opsystem=vms) 28Vax running VMS (-opsystem=vms)
47 29
48 18.36 believed to work. Addition of features is necessary to make 30 18.36 believed to work. Addition of features is necessary to make