]> git.eshelyaron.com Git - emacs.git/commitdiff
* s/usg5-4.h (ADDR_CORRECT): Remove, unused.
authorDan Nicolaescu <dann@ics.uci.edu>
Wed, 23 Jul 2008 08:29:24 +0000 (08:29 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Wed, 23 Jul 2008 08:29:24 +0000 (08:29 +0000)
* unexaix.c (ADDR_CORRECT): Remove conditional, the only user
defines it.
* unexec.c (ADDR_CORRECT): Define unconditionally.

* m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.

admin/CPP-DEFINES
src/ChangeLog
src/m/ibmrs6000.h
src/s/usg5-4.h
src/unexaix.c
src/unexec.c

index cb60bd5f2cc1a4ca315e12aaa45feb44395bb4b2..675695d24248ebe0a49bb888c1b0153d10ee7b17 100644 (file)
@@ -52,7 +52,6 @@ subprocesses    System can use subprocesses (for M-x shell for example).  Define
 ** Defines from src/m/*.h and src/s/*.h.  Some of these might not be used in the code anymore, so they can be removed.  The HAVE_* definitions are probably handled by autoconf, so it might be possible to just remove them from src/[sm]/*.h.
 
 
-ADDR_CORRECT
 AIX
 AMPERSAND_FULL_NAME
 A_TEXT_OFFSET
index 8651558ad9ecd5762ba4522df2130260921cbcc8..be233c512f533aea68ab0bb7164ecbfc382b8686 100644 (file)
@@ -1,5 +1,12 @@
 2008-07-23  Dan Nicolaescu  <dann@ics.uci.edu>
 
+       * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
+       * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
+       defines it.
+       * unexec.c (ADDR_CORRECT): Define unconditionally.
+
+       * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
+
        * unexec.c: Remove code depending on !COFF and USG, the file is
        not used for such systems.
 
index 90fd21b5cd15c97527861719ca3e80fc5d296ce5..2d8681185ad607139409796c0dc36a4c66e19806 100644 (file)
@@ -83,9 +83,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define LIBS_MACHINE
 #endif /* USG5_4 */
 
-#undef ADDR_CORRECT
-#define ADDR_CORRECT(x) ((int)(x))
-
 #define START_FILES
 /*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/
 #define BROKEN_FIONREAD
index 7ce4790fb763b5da8c781707558a41cb5f4258f3..c729203b671136e80a8befa1ba28e2c0ef519e73 100644 (file)
@@ -85,10 +85,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define rindex strrchr
 #endif /* ! defined (HAVE_RINDEX) */
 
-/* Compiler bug bites on many systems when default ADDR_CORRECT is used.  */
-
-#define ADDR_CORRECT(x) (x)
-
 /* Use terminfo instead of termcap.  */
 
 #define TERMINFO
index c8395101f62e9e731f63c3e7e42a56e47caf0e4a..ac9743f8c4bdf085b62731074de8566815f46082 100644 (file)
@@ -103,14 +103,6 @@ static int adjust_lnnoptrs (int, int, char *);
 
 static int pagemask;
 
-/* Correct an int which is the bit pattern of a pointer to a byte
-   into an int which is the number of a byte.
-   This is a no-op on ordinary machines, but not on all.  */
-
-#ifndef ADDR_CORRECT   /* Let m-*.h files override this definition */
-#define ADDR_CORRECT(x) ((char *)(x) - (char*)0)
-#endif
-
 #ifdef emacs
 #include "lisp.h"
 
index a1f962bd606400f4b5d52c692d731656f737b555..e3381d6d6ae048bfd899367c78dca80f0f8e8cae 100644 (file)
@@ -117,15 +117,6 @@ the bits that must be zero on such a boundary.
 This macro can be used to generate statements to adjust or
 initialize nonstandard fields in the file header
 
-* ADDR_CORRECT(ADDR)
-
-Macro to correct an int which is the bit pattern of a pointer to a byte
-into an int which is the number of a byte.
-
-This macro has a default definition which is usually right.
-This default definition is a no-op on most machines (where a
-pointer looks like an int) but not on all machines.
-
 */
 
 #ifndef emacs
@@ -209,9 +200,7 @@ static int pagemask;
    into an int which is the number of a byte.
    This is a no-op on ordinary machines, but not on all.  */
 
-#ifndef ADDR_CORRECT   /* Let m-*.h files override this definition */
 #define ADDR_CORRECT(x) ((char *)(x) - (char*)0)
-#endif
 
 #ifdef emacs