This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: mips-tdep.c: Sign-extend pointers for n32


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


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