comparison src/s/aix4.h @ 460:223736d75acb r21-2-45

Import from CVS: tag r21-2-45
author cvs
date Mon, 13 Aug 2007 11:43:24 +0200
parents e7ef97881643
children 36b504cdc45f
comparison
equal deleted inserted replaced
459:9d4fd877b885 460:223736d75acb
12 #include "strings.h" 12 #include "strings.h"
13 13
14 /* Forward declarations for xlc warning suppressions */ 14 /* Forward declarations for xlc warning suppressions */
15 struct ether_addr; 15 struct ether_addr;
16 struct sockaddr_dl; 16 struct sockaddr_dl;
17
18 #ifdef __xlC__ /* "eXceLlent C compiler" ?! */
19 #if __xlC__ >= 1200
20 /* IBM's C compiler miscompiles bytecount_to_charcount at high levels
21 of optimization. From IBM's docs:
22
23 -qstrict turns off the following optimizations:
24
25 Performing code motion and scheduling on computations such as loads
26 and floating-point computations that may trigger an exception. */
27 #pragma option_override (bytecount_to_charcount, "opt(strict,yes)")
28 #endif /* recent IBM C compiler */
29 #endif /* IBM's C compiler */
30
17 #endif /* C code */ 31 #endif /* C code */
18 32
19 /* getaddrinfo is broken in AIX 4.3 as per IY04165. 33 /* getaddrinfo is broken in AIX 4.3 as per IY04165.
20 At this time (2/21/2000), there's no PTF available. 34 At this time (2/21/2000), there's no PTF available.
21 -- Mike Sperber <mike@xemacs.org> */ 35 -- Mike Sperber <mike@xemacs.org> */
22 36
23 #undef HAVE_GETADDRINFO 37 #undef HAVE_GETADDRINFO
24
25 #ifdef __xlC__
26 /* IBM's C compiler miscompiles this function. From IBM's docs:
27 -qstrict turns off the following optimizations:
28
29 Performing code motion and scheduling on computations such as loads
30 and floating-point computations that may trigger an exception. */
31 #pragma option_override (bytecount_to_charcount, "opt(strict,yes)")
32 #endif /* IBM's C compiler */