summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2008-07-10 02:49:28 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2008-07-10 02:49:28 +0000
commitd27836baf24f2caa7c28d06ef5158ca9e310e1e0 (patch)
tree09d662be3c2c026ca5a10a06c59e3da6fe2551a4
parentf24160c105a86fef4ab4527252d5fdf56f946514 (diff)
downloademacs-d27836baf24f2caa7c28d06ef5158ca9e310e1e0.tar.gz
* m/template.h:
* m/sparc.h: * m/mips.h: * m/m68k.h: * m/iris4d.h: * m/intel386.h: * m/ibms390x.h: * m/ibms390.h: * m/ia64.h: * m/hp800.h: * m/arm.h: * m/amdx86-64.h: Remove dead code and references to unused and compiler defined symbols.
-rw-r--r--src/ChangeLog14
-rw-r--r--src/m/amdx86-64.h5
-rw-r--r--src/m/arm.h5
-rw-r--r--src/m/hp800.h13
-rw-r--r--src/m/ia64.h5
-rw-r--r--src/m/ibms390.h12
-rw-r--r--src/m/ibms390x.h5
-rw-r--r--src/m/intel386.h23
-rw-r--r--src/m/iris4d.h21
-rw-r--r--src/m/m68k.h5
-rw-r--r--src/m/macppc.h17
-rw-r--r--src/m/mips.h5
-rw-r--r--src/m/sparc.h6
-rw-r--r--src/m/template.h10
14 files changed, 17 insertions, 129 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 21cecfb4080..c1d199fc1a7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,19 @@
2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
+ * m/template.h:
+ * m/sparc.h:
+ * m/mips.h:
+ * m/m68k.h:
+ * m/iris4d.h:
+ * m/intel386.h:
+ * m/ibms390x.h:
+ * m/ibms390.h:
+ * m/ia64.h:
+ * m/hp800.h:
+ * m/arm.h:
+ * m/amdx86-64.h: Remove dead code and references to unused
+ and compiler defined symbols.
+
* unexmips.c:
* unexelf.c: Remove references to desupported systems.
diff --git a/src/m/amdx86-64.h b/src/m/amdx86-64.h
index 2d7ce3bd01f..20e09adc597 100644
--- a/src/m/amdx86-64.h
+++ b/src/m/amdx86-64.h
@@ -43,11 +43,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-/* #define WORD_MACHINE */
-
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically:
Ones defined so far include vax, m68000, ns16000, pyramid,
diff --git a/src/m/arm.h b/src/m/arm.h
index c548f7eb168..d87d461d8f3 100644
--- a/src/m/arm.h
+++ b/src/m/arm.h
@@ -34,11 +34,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#undef NO_ARG_ARRAY
#endif
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#undef WORD_MACHINE
-
/* Define how to take a char and sign-extend into an int.
On machines where char is signed, this is a no-op. */
diff --git a/src/m/hp800.h b/src/m/hp800.h
index 1a1a6abc465..27c22f7b957 100644
--- a/src/m/hp800.h
+++ b/src/m/hp800.h
@@ -32,19 +32,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#undef WORD_MACHINE
-
-/* Now define a symbol for the cpu type, if your compiler
- does not define it automatically:
- Ones defined so far include vax, m68000, ns16000, pyramid,
- orion, tahoe, APOLLO and many others */
-#ifndef hp9000s800
-# define hp9000s800
-#endif
-
/* Use type int rather than a union, to represent Lisp_Object */
/* This is desirable for most machines. */
diff --git a/src/m/ia64.h b/src/m/ia64.h
index 1bdaf69c15e..ecd3a801760 100644
--- a/src/m/ia64.h
+++ b/src/m/ia64.h
@@ -31,11 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- to be corrected before they can be used as byte counts. */
-
-/* #define WORD_MACHINE */
-
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically:
Ones defined so far include vax, m68000, ns16000, pyramid,
diff --git a/src/m/ibms390.h b/src/m/ibms390.h
index cffc6c0691e..15081b0cfae 100644
--- a/src/m/ibms390.h
+++ b/src/m/ibms390.h
@@ -32,18 +32,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#define WORD_MACHINE
-
-/* Now define a symbol for the cpu type, if your compiler
- does not define it automatically:
- Ones defined so far include vax, m68000, ns16000, pyramid,
- orion, tahoe, APOLLO and many others */
-
-#define s390
-
/* Use type int rather than a union, to represent Lisp_Object */
/* This is desirable for most machines. */
diff --git a/src/m/ibms390x.h b/src/m/ibms390x.h
index 61e2a3836ea..a3afd23f599 100644
--- a/src/m/ibms390x.h
+++ b/src/m/ibms390x.h
@@ -45,11 +45,6 @@ NOTE-END */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#define WORD_MACHINE
-
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically:
Ones defined so far include vax, m68000, ns16000, pyramid,
diff --git a/src/m/intel386.h b/src/m/intel386.h
index a42af80ec43..540760cd575 100644
--- a/src/m/intel386.h
+++ b/src/m/intel386.h
@@ -57,18 +57,6 @@ NOTE-END */
/* #define NO_ARG_ARRAY */
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-/* #define WORD_MACHINE */
-
-/* Now define a symbol for the cpu type, if your compiler
- does not define it automatically:
- Ones defined so far include vax, m68000, ns16000, pyramid,
- orion, tahoe, APOLLO and many others */
-
-#define INTEL386
-
/* Use type int rather than a union, to represent Lisp_Object */
#define NO_UNION_TYPE
@@ -96,17 +84,6 @@ NOTE-END */
And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */
#define LIBS_MACHINE -lkvm -lelf
-#ifndef SOLARIS2_4
-/* J.W.hawtin@lut.ac.uk says Solaris 2.1 on the X86 has FSCALE defined in a
- system header. */
-#else /* SOLARIS2_4 */
-#ifndef __GNUC__
-#if 0 /* wisner@gryphon.com says this screws up cpp */
-#define C_SWITCH_MACHINE -Xa
-#endif
-#endif /* not __GNUC__ */
-#endif /* SOLARIS2_4 */
-
/* configure thinks solaris X86 has gethostname, but it does not work,
so undefine it. */
#undef HAVE_GETHOSTNAME
diff --git a/src/m/iris4d.h b/src/m/iris4d.h
index bcff842fc35..89eee47d49b 100644
--- a/src/m/iris4d.h
+++ b/src/m/iris4d.h
@@ -28,11 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#undef WORD_MACHINE
-
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically:
Ones defined so far include vax, m68000, ns16000, pyramid,
@@ -59,22 +54,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define EXPLICIT_SIGN_EXTEND
-/* jg@genmagic.genmagic.com (John Giannandrea) says this is unnecessary. */
-#if 0
-/* Data type of load average, as read out of kmem. */
-
-#define LOAD_AVE_TYPE long /* This doesn't quite work on the 4D */
-
-/* Convert that into an integer that is 100 for a load average of 1.0 */
-
-#define LOAD_AVE_CVT(x) (int)(((double)(x)*100)/1024.0)
-
-/* s-iris3-6.h uses /vmunix */
-
-#undef KERNEL_FILE
-#define KERNEL_FILE "/unix"
-#endif
-
/* Define CANNOT_DUMP on machines where unexec does not work.
Then the function dump-emacs will not be defined
and temacs will do (load "loadup") automatically unless told otherwise. */
diff --git a/src/m/m68k.h b/src/m/m68k.h
index 0ef44f597f8..a62c8795180 100644
--- a/src/m/m68k.h
+++ b/src/m/m68k.h
@@ -32,11 +32,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
/* #define NO_ARG_ARRAY */
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-/* #define WORD_MACHINE */
-
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically. */
diff --git a/src/m/macppc.h b/src/m/macppc.h
index 4adfcb50e7b..eb263526c2d 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/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-/* #define WORD_MACHINE */
-
/* Now define a symbol for the cpu type, if your compiler
does not define it automatically:
Ones defined so far include vax, m68000, ns16000, pyramid,
@@ -89,18 +84,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#endif
#endif
-#if 0 /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
- even with identical GCC, as, ld. Let's take it out until we
- know what's really going on here. */
-/* GCC 2.95 and newer on GNU/Linux PPC changed the load address to
- 0x10000000. */
-#if defined __linux__
-#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
-#define DATA_SEG_BITS 0x10000000
-#endif
-#endif
-#endif /* 0 */
-
#ifdef _ARCH_PPC64
#ifndef _LP64
#define _LP64
diff --git a/src/m/mips.h b/src/m/mips.h
index 877e4e4c900..7b9d658639d 100644
--- a/src/m/mips.h
+++ b/src/m/mips.h
@@ -39,11 +39,6 @@ NOTE-END */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#undef WORD_MACHINE
-
/* Define how to take a char and sign-extend into an int.
On machines where char is signed, this is a no-op. */
diff --git a/src/m/sparc.h b/src/m/sparc.h
index 7113b8b1fce..233bf96d7c7 100644
--- a/src/m/sparc.h
+++ b/src/m/sparc.h
@@ -36,11 +36,7 @@ NOTE-END */
#define NO_ARG_ARRAY
-/* Say this machine is a sparc. Probably already defined. */
-
-#ifndef __sparc__
-#define __sparc__
-#endif
+/* __sparc__ is defined by the compiler by default. */
/* Use type int rather than a union, to represent Lisp_Object */
diff --git a/src/m/template.h b/src/m/template.h
index 4a7a73db937..e447fba7b4b 100644
--- a/src/m/template.h
+++ b/src/m/template.h
@@ -32,15 +32,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define NO_ARG_ARRAY
-/* Define WORD_MACHINE if addresses and such have
- * to be corrected before they can be used as byte counts. */
-
-#define WORD_MACHINE
-
/* Now define a symbol for the cpu type, if your compiler
- does not define it automatically:
- Ones defined so far include vax, m68000, ns16000, pyramid,
- orion, tahoe, APOLLO and many others */
+ does not define it automatically.
+ Ones defined so far include m68k and many others */
/* Use type int rather than a union, to represent Lisp_Object */
/* This is desirable for most machines. */