root/trunk/src/m/ibmrs6000.h

Revision 4220, 6.0 kB (checked in by miyoshi, 8 months ago)

Sync up with Emacs22.2.

  • Property svn:eol-style set to native
Line 
1 /* R2 AIX machine/system dependent defines
2    Copyright (C) 1988, 2001, 2002, 2003, 2004, 2005,
3                  2006, 2007, 2008  Free Software Foundation, Inc.
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
9 the Free Software Foundation; either version 3, or (at your option)
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
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.  */
21
22
23 /* The following line tells the configuration script what sort of
24    operating system this machine is likely to run.
25    USUAL-OPSYS="aix3-1"  */
26
27 /* Define WORDS_BIG_ENDIAN if lowest-numbered byte in a word
28    is the most significant byte.  */
29
30 #ifdef USG5_4
31 #undef WORDS_BIG_ENDIAN
32 #else
33 #define WORDS_BIG_ENDIAN
34 #endif
35
36 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
37  * group of arguments and treat it as an array of the arguments.  */
38
39 #define NO_ARG_ARRAY
40
41 /* Now define a symbol for the cpu type, if your compiler
42    does not define it automatically.  */
43
44 #define IBMR2AIX
45
46 /* Use type int rather than a union, to represent Lisp_Object */
47 /* This is desirable for most machines.  */
48
49 #define NO_UNION_TYPE
50
51 /* Define CANNOT_DUMP on machines where unexec does not work.
52    Then the function dump-emacs will not be defined
53    and temacs will do (load "loadup") automatically unless told otherwise.  */
54 #ifdef USG5_4
55 #define CANNOT_DUMP
56 #endif
57
58 #ifndef UNEXEC
59 #define UNEXEC unexaix.o
60 #endif
61
62 /* Define addresses, macros, change some setup for dump */
63
64 #define NO_REMAP
65
66 #ifndef USG5_4
67 #define TEXT_START 0x10000000
68 #define TEXT_END 0
69 #define DATA_START 0x20000000
70 #define DATA_END 0
71 #endif
72
73 /* The data segment in this machine always starts at address 0x20000000.
74    An address of data cannot be stored correctly in a Lisp object;
75    we always lose the high bits.  We must tell XPNTR to add them back.  */
76
77 #ifndef USG5_4
78 #define DATA_SEG_BITS 0x20000000
79 #else
80 #define DATA_SEG_BITS 0
81 #endif
82
83 #ifdef CANNOT_DUMP
84 /* Define shared memory segment symbols */
85
86 #define PURE_SEG_BITS 0x30000000
87
88 /* Use shared memory.  */
89 /* This is turned off because it does not always work.  See etc/AIX.DUMP.  */
90 /* #define HAVE_SHM */
91 #define SHMKEY 5305035          /* used for shared memory code segments */
92 #endif /* CANNOT_DUMP */
93
94 #define N_BADMAG(x) BADMAG(x)
95 #define N_TXTOFF(x) A_TEXTPOS(x)
96 #define N_SYMOFF(x) A_SYMPOS(x)
97 #define A_TEXT_OFFSET(HDR) sizeof(HDR)
98 /* #define ADJUST_EXEC_HEADER \
99     unexec_text_start += sizeof(hdr); \
100     unexec_data_start = ohdr.a_dbase
101 */
102 #undef ADDR_CORRECT
103 #define ADDR_CORRECT(x) ((int)(x))
104
105 /* Define C_ALLOCA if this machine does not support a true alloca
106    and the one written in C should be used instead.
107    Define HAVE_ALLOCA to say that the system provides a properly
108    working alloca function and it should be used.
109    Define neither one if an assembler-language alloca
110    in the file alloca.s should be used.  */
111
112 /* Note: aix3-2.h defines HAVE_ALLOCA; aix3-1.h doesn't.  */
113 #ifndef HAVE_ALLOCA
114 #define C_ALLOCA
115 #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
116 #endif
117
118 /* Specify the font for X to use.
119    This used to be Rom14.500; that's nice on the X server shipped with
120    the RS/6000, but it's not available on other servers.  */
121 #define X_DEFAULT_FONT "fixed"
122
123 /* Here override various assumptions in ymakefile */
124
125 #ifdef AIXHFT
126 #define OBJECTS_MACHINE hftctl.o
127 #endif
128
129 #ifndef USG5
130 #define C_SWITCH_MACHINE -D_BSD
131 #endif
132
133 #ifdef AIX3_2
134 /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless
135    on older versions of X where it happens to exist.  */
136 #ifdef HAVE_LIBPTHREADS
137 #define LIBS_MACHINE -lrts -lIM -liconv -lpthreads
138 #else
139 /* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2.  */
140 #define LIBS_MACHINE -lrts -lIM -liconv
141 #endif
142 #else
143 #ifdef USG5_4
144 #define LIBS_MACHINE
145 #else
146 #define LIBS_MACHINE -lIM
147 #endif
148 #endif
149
150 #define START_FILES
151 #define HAVE_SYSVIPC
152 /*** BUILD 9008 - FIONREAD problem still exists in X-Windows. ***/
153 #define BROKEN_FIONREAD
154 /* As we define BROKEN_FIONREAD, SIGIO will be undefined in systty.h.
155    But, on AIX, SIGAIO, SIGPTY, and SIGPOLL are defined as SIGIO,
156    which causes compilation error at init_signals in sysdep.c.  So, we
157    define these macros so that syssignal.h detects them and undefine
158    SIGAIO, SIGPTY and SIGPOLL.  */
159 #define BROKEN_SIGAIO
160 #define BROKEN_SIGPTY
161 #define BROKEN_SIGPOLL
162
163 /* Don't try to include sioctl.h or ptem.h.  */
164 #undef NEED_SIOCTL
165 #undef NEED_PTEM_H
166
167 #define ORDINARY_LINK
168
169 #ifndef USG5_4
170 /* sfreed@unm.edu says add -bI:/usr/lpp/X11/bin/smt.exp for AIX 3.2.4.  */
171 /* marc@sti.com (Marc Pawliger) says ibmrs6000.inp is needed to avoid
172    linker error for updated X11R5 libraries, which references pthread library
173    which most machines don't have.  We use the name .inp instead of .imp
174    because .inp is a better convention to use in make-dist for naming
175    random input files.  */
176 #ifdef THIS_IS_MAKEFILE /* Don't use this in configure.  */
177 #ifdef AIX4
178 #define LD_SWITCH_MACHINE -Wl,-bnodelcsect
179 #else /* not AIX4 */
180 #ifdef HAVE_AIX_SMT_EXP
181 #define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp,-bI:/usr/lpp/X11/bin/smt.exp
182 #else
183 #define LD_SWITCH_MACHINE -Wl,-bnso,-bnodelcsect,-bI:/lib/syscalls.exp,-bI:$(srcdir)/m/ibmrs6000.inp
184 #endif
185 #endif /* not AIX4 */
186 #endif /* THIS_IS_MAKEFILE */
187
188 /* Avoid gcc 2.7.x collect2 bug by using /bin/ld instead.  */
189 #if __GNUC__ == 2 && __GNUC_MINOR__ == 7
190 #define LD_SWITCH_SITE -B/bin/
191 #endif
192
193 #ifndef NLIST_STRUCT
194 /* AIX supposedly doesn't use this interface, but on the RS/6000
195    it apparently does.  */
196 #define NLIST_STRUCT
197 #endif
198 #endif /* USG5_4 */
Note: See TracBrowser for help on using the browser.