summaryrefslogtreecommitdiff
path: root/include/ruby/internal/stdalign.h
AgeCommit message (Collapse)Author
2020-09-25enrich comment卜部昌平
Added description and URL about nested flexible array member. Notes: Merged: https://github.com/ruby/ruby/pull/3570
2020-09-25RBIMPL_ALIGNOF: do not use constexpr卜部昌平
Was definitely a bad idea to use constexpr. It is not ubiquitous. Notes: Merged: https://github.com/ruby/ruby/pull/3570
2020-09-25RBIMPL_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: Merged: https://github.com/ruby/ruby/pull/3570
2020-05-11sed -i 's|ruby/impl|ruby/internal|'卜部昌平
To fix build failures. Notes: Merged: https://github.com/ruby/ruby/pull/3079
2020-05-11mv include/ruby/{impl,internal}卜部昌平
Devs do not love "impl". Notes: Merged: https://github.com/ruby/ruby/pull/3079