Bad sparc64 code when returning structure with leading float
Olivier Hainque
hainque@act-europe.fr
Fri Jan 5 08:32:00 GMT 2001
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
More information about the Gcc-bugs
mailing list