GCCSDK on Solaris/Sparc

Nick Burrett nick at dsvr.net
Thu Jan 4 08:43:18 PST 2001


Peter Naulls <peter at erble.freeserve.co.uk> writes:

> In message <m38zorjn8f.fsf at nick.ws.noc.dsvr.net>
>           Nick Burrett <nick at dsvr.net> wrote:
> 
> > > Here's my endian.h - this is from ARM Linux:
> > > 
> > > Perhaps you can make your own with appropriate mods.
> > 
> > I think the problem is that we need a generic way of detecting the
> > endianness of the host computer at configure time without relying on
> > the endian.h headers.
> 
> configure is supposed be able to do this; although I do seem to remember
> some nastiness with Jikes when this subject came up - esp. in regard to
> ARM's ordering of words in doubles.

Yeah, a quick grep suggests AC_C_BIGENDIAN which will define WORDS_BIGENDIAN
if true.
 
ARM's ordering of words in doubles is a specical case and I know that
autoconf is only testing the integer layout.  GCC hard-codes the ARM
double ordering knowledge.


Nick.



More information about the gcc mailing list