mssip.h trouble

Patrik Stridvall ps at leissner.se
Tue Sep 10 14:15:28 CDT 2002


> Patrik Stridvall wrote:
> 
> > So it seems that if we add a -malign-double to CFLAGS we can
> > remove the warning in pshpack8.h since now it will hopefully
> > work correctly. 
> 
> Yes.  However, the -malign-double option obviously causes GCC
> to produce code that in some cases does not conform to the
> Linux/i386 ABI.  So, if Wine were to call any standard 
> library routines whose ABI is affected by -malign-double
> (because a parameter is a structure type which is layed
> out differently), we'd have a problem here ...

Arrgggghhhhhhhh!!! :-(

The alternative would be to add an explict __attribute__((aligned(8)))
to all types larger than 4 bytes that can be used by #pragma pack(8)
aligned structures.

Of course potentially all types could teoretically be used so that
would be VERY ugly...



More information about the wine-devel mailing list