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:
&
"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
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