ruby-changes:49728
From: shyouhei <ko1@a...>
Date: Mon, 15 Jan 2018 16:30:48 +0900 (JST)
Subject: [ruby-changes:49728] shyouhei:r61845 (trunk): ruby_aligned_char no longer needed.
shyouhei 2018-01-15 16:30:43 +0900 (Mon, 15 Jan 2018) New Revision: 61845 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61845 Log: ruby_aligned_char no longer needed. Modified files: trunk/compile.c trunk/include/ruby/ruby.h Index: compile.c =================================================================== --- compile.c (revision 61844) +++ compile.c (revision 61845) @@ -8077,7 +8077,7 @@ struct ibf_dump { https://github.com/ruby/ruby/blob/trunk/compile.c#L8077 rb_iseq_t * iseq_alloc(void); struct ibf_load { - const ruby_aligned_char *buff; + const RUBY_ALIGNAS(sizeof(VALUE)) char *buff; const struct ibf_header *header; ID *id_list; /* [id0, ...] */ VALUE iseq_list; /* [iseq0, ...] */ Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 61844) +++ include/ruby/ruby.h (revision 61845) @@ -950,8 +950,6 @@ enum ruby_rstring_flags { https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L950 RSTRING_ENUM_END }; -typedef RUBY_ALIGNAS(SIZEOF_VALUE) char ruby_aligned_char; - struct RString { struct RBasic basic; union { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/