[ruby-cvs:69607] naruse:r62426 (ruby_2_5): merge revision(s) 61617, 61618: [Backport #14273]

naruse at ruby-lang.org naruse at ruby-lang.org
Fri Feb 16 17:28:48 JST 2018


naruse	2018-02-16 17:28:48 +0900 (Fri, 16 Feb 2018)

  New Revision: 62426

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

  Log:
    merge revision(s) 61617,61618: [Backport #14273]
    
    compile.c: remove more unreachable chunk
    
    * compile.c (remove_unreachable_chunk): remove beyond labels to be
      removed.
    
    compile.c: fix stack consistency error
    
    * compile.c (iseq_peephole_optimize): fix stack consistency error
      from return in loop, by adding extra `pop` when replacing `jump`
      with `leave`, which is never reached but needed to adjust sp
      calculation.  [ruby-core:84589] [Bug #14273]

  Modified directories:
    branches/ruby_2_5/
  Modified files:
    branches/ruby_2_5/compile.c
    branches/ruby_2_5/test/ruby/test_syntax.rb
    branches/ruby_2_5/version.h


More information about the ruby-cvs mailing list