RE: Understand BLKmode and returning structure in register.

2009-03-17 Thread Bingfeng Mei
Original Message- > From: Richard Sandiford [mailto:rdsandif...@googlemail.com] > Sent: 16 March 2009 22:14 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org; Adrian Ashley > Subject: Re: Understand BLKmode and returning structure in register. > > "Bingfeng Mei" writes: &

Re: Understand BLKmode and returning structure in register.

2009-03-16 Thread Richard Sandiford
"Bingfeng Mei" writes: > In foo function, compute_record_mode function will set the mode for > struct COMPLEX as BLKmode partly because STRICT_ALIGNMENT is 1 on my > target. In TARGET_RETURN_IN_MEMORY hook, I return 1 for BLKmode type > and 0 otherwise for small size (<8) (like MIPS). Thus, this

RE: Understand BLKmode and returning structure in register.

2009-03-13 Thread Bingfeng Mei
I found that compiling for mips with -mabi=n32 produces such inefficient code. When -mabi=n32, mips_return_in_memory returns 0 if size is small regardless BLKmode or not. .type foo, @function foo: .frame $sp,16,$31 # vars= 16, regs= 0/0, args= 0, gp= 0 a