This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Bad sparc64 code when returning structure with leading float
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Re: Bad sparc64 code when returning structure with leading float
- From: Olivier Hainque <hainque at act-europe dot fr>
- Date: Fri, 5 Jan 2001 17:31:16 +0100 (CET)
- References: <14933.61027.359997.673369@berlin.int.act-europe.fr>
Hello again :)
Just a short update, in case that could help ...
> From the following C code :
>
> /* db.c */
>
> typedef struct {
> float f;
> int i;
> int j;
> } datablock_t;
>
[...]
> We get assembly code for the datablock function that simply "forgets" the j field in
> the return value :
The problem seems to disappear if the float field is not in first position in the
structure. This was the reason of the "leading" word in the subject line :)
Thank you very much again in advance for your help,
Best Regards,
Olivier