diff options
author | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-16 11:04:01 +0000 |
---|---|---|
committer | ngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-07-16 11:04:01 +0000 |
commit | e49a7bed21e764110ba28fa0d54717d8a5213584 (patch) | |
tree | 1c843b01570b686210985a12376b93b2028b6040 /vm_core.h | |
parent | 25ece76ec8ed073af6150452deec0ff4b35101ce (diff) | |
download | ruby-e49a7bed21e764110ba28fa0d54717d8a5213584.tar.gz |
* vm_core.h (struct rb_iseq_struct): temporal workaround of [Bug 10037].
Add padding on big-endian 64-bit architecture (e.g. sparc64).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -205,6 +205,9 @@ struct rb_iseq_struct { ISEQ_TYPE_MAIN, ISEQ_TYPE_DEFINED_GUARD } type; /* instruction sequence type */ +#if defined(WORDS_BIGENDIAN) && (SIZEOF_VALUE > SIZEOF_INT) + char dummy[SIZEOF_VALUE - SIZEOF_INT]; /* [Bug #10037][ruby-core:63721] */ +#endif uint32_t stack_max; /* for stack overflow check */ rb_iseq_location_t location; |