[ruby-cvs:55446] usa:r48296 (ruby_2_0_0): * compile.c (compile_data_alloc): add padding when strict alignment

usa at ruby-lang.org usa at ruby-lang.org
Thu Nov 6 17:36:11 JST 2014


usa	2014-11-06 17:36:10 +0900 (Thu, 06 Nov 2014)

  New Revision: 48296

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

  Log:
    * 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 files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/compile.c
    branches/ruby_2_0_0/version.h


More information about the ruby-cvs mailing list