[ruby-cvs:65614] normal:r58442 (trunk): define PACKED_STRUCT_UNALIGNED correctly

normal at ruby-lang.org normal at ruby-lang.org
Sat Apr 22 10:08:15 JST 2017


normal	2017-04-22 10:08:15 +0900 (Sat, 22 Apr 2017)

  New Revision: 58442

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58442

  Log:
    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

  Modified files:
    trunk/configure.in
    trunk/test/ruby/test_time.rb


More information about the ruby-cvs mailing list