mips-tdep.c: Sign-extend pointers for n32
Daniel Jacobowitz
drow@false.org
Wed Dec 19 15:28:00 GMT 2007
On Wed, Dec 19, 2007 at 03:20:20PM +0000, Maciej W. Rozycki wrote:
> You are quite right here -- I have checked the N32 ABI document and it
> says:
>
> "32-bit integer (int) parameters are always sign-extended when passed in
> registers, whether of signed or unsigned type. [This issue does not arise
> in the o32-bit ABI.]"
What happens to an 8-bit unsigned char? How about an 8-bit signed
char?
> I have regression-tested the following rewrite of the original patch
> using the mipsisa32-sde-elf target, with the mips-sim-sde64/-mips64/-EB
> and mips-sim-sde64/-mips64/-EL boards, with the results the same as the
> original.
What ABI is that? I thought none of the ELF targets used n32 or n64,
but maybe SDE is an exception.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list