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 b...@broadcom.com writes:
In foo function, compute_record_mode
Bingfeng Mei b...@broadcom.com 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).
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));
...@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 and returning
structure in register