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
gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On > Behalf Of Bingfeng Mei > Sent: 13 March 2009 16:35 > To: gcc@gcc.gnu.org > Cc: Adrian Ashley > Subject: Understand BLKmode and returning structure in register. > > Hello, > I came across an issue regarding BLKmode

Understand BLKmode and returning structure in register.

2009-03-13 Thread Bingfeng Mei
Hello, I came across an issue regarding BLKmode and returning structure in register. For following code, I try to return the structure in register instead of memory. extern void abort(); typedef struct { short x; short y; } COMPLEX; COMPLEX foo (void) __attribute__ ((noinline)); COMPLE