[ruby-cvs:62245] ngoto:r55082 (trunk): Use RB_GNUC_EXTENSION_BLOCK instead of __extension__

ngoto at ruby-lang.org ngoto at ruby-lang.org
Fri May 20 21:29:06 JST 2016


ngoto	2016-05-20 21:29:06 +0900 (Fri, 20 May 2016)

  New Revision: 55082

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

  Log:
    Use RB_GNUC_EXTENSION_BLOCK instead of __extension__
    
    * include/ruby/defines.h (RB_GNUC_EXTENSION, RB_GNUC_EXTENSION_BLOCK):
      macros for skipping __extension__ on non-GCC compilers.
    * eval_error.c (warn_print): use RB_GNUC_EXTENSION_BLOCK instead of
      __extension__ because __extension__ is a GNU extension.
      Fix compile error on Solaris 10 with Oracle Solaris Studio 12.x.
      [Bug #12397] [ruby-dev:49629].
    * internal.h (rb_fstring_cstr, rb_fstring_enc_cstr): ditto
    * include/ruby/encoding.h (rb_enc_str_new, rb_enc_str_new_cstr): ditto
    * include/ruby/intern.h (rb_str_new, rb_str_new_cstr,
      rb_usascii_str_new, rb_utf8_str_new, rb_tainted_str_new_cstr,
      rb_usascii_str_new_cstr, rb_utf8_str_new_cstr,
      rb_external_str_new_cstr, rb_locale_str_new_cstr,
      rb_str_buf_new_cstr, rb_str_cat_cstr, rb_exc_new_cstr): ditto

  Modified files:
    trunk/ChangeLog
    trunk/eval_error.c
    trunk/include/ruby/defines.h
    trunk/include/ruby/encoding.h
    trunk/include/ruby/intern.h
    trunk/internal.h


More information about the ruby-cvs mailing list