[PATCH libXi] Fix bus error on MIPS N32 for bug #38331.

Michał Masłowski mtjm at mtjm.eu
Tue Feb 21 11:53:19 PST 2012


> maybe it is more easy to ask gcc to do this ? you can force a certain alignment
> see: http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html#Type-Attributes

Each structure already has correct alignment, but we manually allocate
them after other structures or arrays (of pointers, ints or chars).
It's not obvious for me if a solution using just alignment attributes
would be simpler and not affect compatibility with programs using the
class info structures.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120221/f7897503/attachment.pgp>


More information about the xorg-devel mailing list