This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bad sparc64 code when returning structure with leading float



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]