aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authorngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-16 11:04:01 +0000
committerngoto <ngoto@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-16 11:04:01 +0000
commite49a7bed21e764110ba28fa0d54717d8a5213584 (patch)
tree1c843b01570b686210985a12376b93b2028b6040 /vm_core.h
parent25ece76ec8ed073af6150452deec0ff4b35101ce (diff)
downloadruby-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 39dce05c99..b284351b52 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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;