Use proper ABI alignment rules for fields in structs (xambug# 4123).
authorPaolo Molaro <lupus@oddwiz.org>
Thu, 29 Mar 2012 13:36:31 +0000 (15:36 +0200)
committerPaolo Molaro <lupus@oddwiz.org>
Thu, 29 Mar 2012 13:42:55 +0000 (15:42 +0200)
commit706aaed7c772e00b9cec76f8452ef5f1cedfb5e6
tree3fe5536bcbdde80365d391c10e56bcae3c8c9251
parent999f8f7ca8257cc9ee603aec533fe9642c0674bb
Use proper ABI alignment rules for fields in structs (xambug# 4123).
* mono/metadata.c: __alignof__ doesn't provide the ABI value which
is needed when interoperating with C code, but a compiler-assumed
optimal value. Always use the ABI value from now on.
Hopefully not too many programs depended on the invalid values.
* tests/libtest.c: remove workaround for the same bug.
mono/metadata/metadata.c
mono/tests/libtest.c