changeset 13097:59916c4b0b79

Add early support for Solaris 2.5 on PowerPCs. [USG5_4] (CANNOT_DUMP): Define this if USG5_4. (UNEXEC): Don't define if already defined. [USG5_4] (DATA_SEG_BITS, LIBS_MACHINE): Alternate definitions. (C_SWITCH_MACHINE, LD_SWITCH_MACHINE, NLIST_STRUCT, WORDS_BIG_ENDIAN) (TEXT_START, DATA_START, TEXT_END, DATA_END): Don't define, if USG5_4.
author Richard M. Stallman <rms@gnu.org>
date Sun, 01 Oct 1995 03:43:42 +0000
parents 6d9a2522f812
children e1d400bc526e
files src/m/ibmrs6000.h
diffstat 1 files changed, 24 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/m/ibmrs6000.h	Sun Oct 01 03:43:11 1995 +0000
+++ b/src/m/ibmrs6000.h	Sun Oct 01 03:43:42 1995 +0000
@@ -34,7 +34,11 @@
 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
    is the most significant byte.  */
 
+#ifdef USG5_4
+#undef WORDS_BIG_ENDIAN
+#else
 #define WORDS_BIG_ENDIAN
+#endif
 
 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
  * group of arguments and treat it as an array of the arguments.  */
@@ -54,24 +58,34 @@
 /* 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.  */
-/* #define CANNOT_DUMP */
+#ifdef USG5_4
+#define CANNOT_DUMP
+#endif
 
+#ifndef UNEXEC
 #define UNEXEC unexaix.o
+#endif
 
 /* Define addresses, macros, change some setup for dump */
 
 #define NO_REMAP
 
+#ifndef USG5_4
 #define TEXT_START 0x10000000
 #define TEXT_END 0
 #define DATA_START 0x20000000
 #define DATA_END 0
+#endif
 
 /* The data segment in this machine always starts at address 0x20000000.
    An address of data cannot be stored correctly in a Lisp object;
    we always lose the high bits.  We must tell XPNTR to add them back.	*/
 
+#ifndef USG5_4
 #define DATA_SEG_BITS 0x20000000
+#else
+#define DATA_SEG_BITS 0
+#endif
 
 #ifdef CANNOT_DUMP
 /* Define shared memory segment symbols */
@@ -119,7 +133,9 @@
 #define OBJECTS_MACHINE hftctl.o
 #endif
 
+#ifndef USG5_4
 #define C_SWITCH_MACHINE -D_BSD
+#endif
 
 #ifdef AIX3_2
 /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless
@@ -131,8 +147,12 @@
 #define LIBS_MACHINE -lrts -lIM -liconv
 #endif
 #else
+#ifdef USG5_4
+#define LIBS_MACHINE
+#else
 #define LIBS_MACHINE -lIM
 #endif
+#endif
 
 #define START_FILES
 #define HAVE_SYSVIPC
@@ -145,6 +165,8 @@
 #undef NEED_PTEM_H
 
 #define ORDINARY_LINK
+
+#ifndef USG5_4
 /* sfreed@unm.edu says add -bI:/usr/lpp/X11/bin/smt.exp for AIX 3.2.4.  */
 /* marc@sti.com (Marc Pawliger) says ibmrs6000.inp is needed to avoid
    linker error for updated X11R5 libraries, which references pthread library
@@ -164,3 +186,4 @@
 /* AIX supposedly doesn't use this interface, but on the RS/6000
    it apparently does.  */
 #define NLIST_STRUCT
+#endif /* USG5_4 */