[ruby-cvs:55452] nagachika:r48302 (ruby_2_1): merge revision(s) 48288: [Backport #9681]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Thu Nov 6 22:46:52 JST 2014


nagachika	2014-11-06 22:46:46 +0900 (Thu, 06 Nov 2014)

  New Revision: 48302

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

  Log:
    merge revision(s) 48288: [Backport #9681]
    
    * compile.c (compile_data_alloc): add padding when strict alignment
      is required for memory access. Currently, the padding is enabled
      only when the CPU is 32-bit SPARC and the compiler is GCC.
      [Bug #9681] [ruby-core:61715]
    
    * compile.c (STRICT_ALIGNMENT): defined if strict alignment is required
    
    * compile.c (ALIGNMENT_SIZE, ALIGNMENT_SIZE_MASK, PADDING_SIZE_MAX):
      new macros for alignemnt word size, bit mask, max size of padding.
    
    * compile.c (calc_padding): new function to calculate padding size.

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/compile.c
    branches/ruby_2_1/version.h


More information about the ruby-cvs mailing list