From e49a7bed21e764110ba28fa0d54717d8a5213584 Mon Sep 17 00:00:00 2001 From: ngoto Date: Wed, 16 Jul 2014 11:04:01 +0000 Subject: * 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 --- vm_core.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm_core.h') 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; -- cgit v1.2.3