This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix mips-tfile causing gdb to crash on Tru64
- From: Ian Lance Taylor <iant at google dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 12 Sep 2006 10:42:50 -0700
- Subject: Re: [PATCH] Fix mips-tfile causing gdb to crash on Tru64
- References: <Pine.LNX.firstname.lastname@example.org>
Roger Sayle <email@example.com> writes:
> The underlying problem addressed by the above change is that
> mips-tfile doesn't attempt to perform byte-swapping but instead
> writes bytes in its native order. Hence, depending upon the way
> mips-tfile is potentially used this needs to be HOST_WORDS_BIG_ENDIAN
> or BUILD_WORDS_BIG_ENDIAN either of which may be unrelated to
It should be HOST_WORDS_BIG_ENDIAN--that is, it should reflect the
endianness of the host system, not the build system or the target
system. Of course HOST_WORDS_BIG_ENDIAN is poisoned. I think your
patch does the right thing.
I really like to see mips-tfile removed. It makes me sad that we
still have a system which requires it.