This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix mips-tfile causing gdb to crash on Tru64


Roger Sayle <roger@eyesopen.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
> TARGET_WORDS_BIG_ENDIAN.

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.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]