diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-22 01:08:15 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-22 01:08:15 +0000 |
commit | 4dea50301131fce132dc8311d8948c9ea5578d00 (patch) | |
tree | 1d55e560fd73eeccf6fc4b3735ce8031a42f73bc /struct.c | |
parent | 0ce408bd70d60fc54b1abc8d8e1961364ce7f572 (diff) | |
download | ruby-4dea50301131fce132dc8311d8948c9ea5578d00.tar.gz |
define PACKED_STRUCT_UNALIGNED correctly
Defining PACKED_STRUCT_UNALIGNED to a noop in ruby/config.h (via
`configure') prevents the definition in include/ruby/defines.h
from working
This should have been fixed in r46914, so there's a size
regression for some objects since Ruby 2.2+. I do not believe
we can backport to existing releases, either, since it can
affect ABI.
Add a test for Time objects on common x86-based platforms to
check for future regressions.
* configure.in: remove PACKED_STRUCT_UNALIGNED definition
* test/ruby/test_time.rb (test_memsize): new test for x86
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions