This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
GCC 3.4.0 fails to boot with a non-GCC C compiler
- From: Joe Buck <Joe dot Buck at synopsys dot COM>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 7 Apr 2004 11:44:08 -0700
- Subject: GCC 3.4.0 fails to boot with a non-GCC C compiler
- References: <40743E01.2020502@codesourcery.com>
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.