diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-09-23 10:57:35 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-09-25 11:38:33 +0900 |
commit | e9fb2bc873a55181ac7d581e7252db3754a3209d (patch) | |
tree | 7ea6012f6ed825b0f35d0ffbca3ea275266f2b8d /vm_insnhelper.c | |
parent | fe875be01a501a47a4bf75df9c6b42bb33d9842b (diff) |
RBIMPL_ALIGNOF: do not use __alignof__
It is reported that on a system of i386 System V ABI, GCC returns 8 for
__alignof__(double). OTOH the ABI defines alignments of double to be 4,
and ISO/IEC 9899:2011 reads that _Alignof(double) shall return 4 on such
machine. What we want in ruby is 4 instead of 8 there. We cannot use
__alignof__.
Additionally, both old GCC / old clang return 8 for _Alignof(double) on
such platforms. They are their bugs, and already fixed in recent
versions. But we have to support older compilers for a while. Shall
check sanity of _Alignof.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3570
Diffstat (limited to 'vm_insnhelper.c')
0 files changed, 0 insertions, 0 deletions