]> code.delx.au - gnu-emacs/blob - src/s/irix6-5.h
(bcopy) [IRIX6]: Don't special-case definition of
[gnu-emacs] / src / s / irix6-5.h
1 #define IRIX6
2 #define IRIX6_5
3 #include "irix5-0.h"
4
5 #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */
6 #define _LP64 /* lisp.h takes care of the rest */
7 #endif /* _MIPS_SZLONG */
8
9 /* This macro definition, which we inherited from irix5-0.h,
10 is needed in configure on Irix 5, but gets in the way there
11 on Irix 6. So get rid of it except in Makefile.in where we need it. */
12 #ifndef THIS_IS_MAKEFILE
13 #undef C_SWITCH_SYSTEM
14 #endif
15
16 /* The only supported configuration of GCC under IRIX6.x produces
17 n32 MIPS ABI binaries and also supports -g. */
18 #ifdef __GNUC__
19 #undef C_DEBUG_SWITCH
20 #define C_DEBUG_SWITCH -g
21 #else
22 /* Optimize, inaccurate debugging, increase limit on size of what's
23 optimized.
24
25 This should also be applicable other than on Irix 6.5, but I don't
26 know for which compiler versions. -- fx */
27 #define C_DEBUG_SWITCH -g3 -O -OPT:Olimit=3500
28 #endif
29
30 #undef SA_RESTART
31
32 /* Cancel the #define that is in irix5-0.h. */
33 #undef ospeed
34
35 /* If we keep the #defines from usg5-4.h, we lose when using the X
36 headers because (at least) the bzero definition breaks their use of
37 strings.h. Including strings.h here gets us prototypes for them.
38 (They're in libc though also they seem to be intrinsics in the SGI
39 (Cray) compiler at least at version 7.3). -- fx */
40 #undef bcopy
41 #undef bcmp
42 #undef bzero
43 #ifndef NOT_C_CODE
44 #include <strings.h>
45 #endif
46
47 #undef TIOCSIGSEND /* defined in usg5-4.h */