1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby/internal
卜部昌平 e9fb2bc873 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.
2020-09-25 11:38:33 +09:00
..
arithmetic Add RB_ prefix for size_t to number conversion. 2020-09-06 15:37:54 +12:00
attr sync NDEBUG, RUBY_DEBUG, and RUBY_NDEBUG (#3327) 2020-08-07 14:01:13 +09:00
compiler_is
core ROBJECT_IV_INDEX_TBL: convert into an inline function 2020-08-19 14:30:57 +09:00
has RBIMPL_HAS_CPP_ATTRIBUTE: handle SunPro 2020-08-21 11:04:54 +09:00
intern Removed rb_find_file_ext_safe and rb_find_file_safe 2020-09-23 09:09:36 +09:00
anyargs.h
arithmetic.h
assume.h Revert "RBIMPL_UNREACHABLE_RETURN: evaluate the argument" 2020-06-29 12:33:17 +09:00
cast.h
compiler_is.h
compiler_since.h
config.h Fix a typo [ci skip] 2020-08-29 12:31:05 +09:00
constant_p.h
core.h
ctype.h
dllexport.h
dosish.h
error.h
eval.h
event.h
fl_type.h Introduce Ractor mechanism for parallel execution 2020-09-03 21:11:06 +09:00
gc.h
glob.h
globals.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
interpreter.h
iterator.h
memory.h Get rid of redefinition of memcpy on mingw 2020-05-26 16:58:40 +09:00
method.h
module.h
newobj.h
rgengc.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
scan_args.h Added UNREACHABLE_RETURN 2020-05-21 13:31:36 +09:00
special_consts.h
static_assert.h
stdalign.h RBIMPL_ALIGNOF: do not use __alignof__ 2020-09-25 11:38:33 +09:00
stdbool.h
symbol.h
token_paste.h
value.h
value_type.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
variable.h
warning_push.h
xmalloc.h