GCC 3.4.0 fails to boot with a non-GCC C compiler

Joe Buck Joe.Buck@synopsys.COM
Wed Apr 7 18:45:00 GMT 2004


gcc 3.4.0-pre failed to build on HP-UX with HP's C compiler.  It's likely
to fail with other non-gcc C compilers as well.

The reason is that intl/gettextP.h contains

#ifdef _LIBC
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
static inline nls_uint32
SWAP (i)
     nls_uint32 i;
{
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24);
}
#endif

"inline" is not valid C89.





More information about the Gcc mailing list