ruby-changes:38668
From: akr <ko1@a...>
Date: Wed, 3 Jun 2015 21:01:09 +0900 (JST)
Subject: [ruby-changes:38668] akr:r50749 (trunk): * configure.in: Don't check __int128.
akr 2015-06-03 21:00:50 +0900 (Wed, 03 Jun 2015) New Revision: 50749 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50749 Log: * configure.in: Don't check __int128. * ext/rbconfig/sizeof/extconf.rb: Check __int128. * ext/rbconfig/sizeof/depend: sizes.c depends on ext/rbconfig/sizeof/extconf.rb. * template/sizes.c.tmpl: Detect check_sizeof. Modified files: trunk/ChangeLog trunk/configure.in trunk/ext/rbconfig/sizeof/depend trunk/ext/rbconfig/sizeof/extconf.rb trunk/template/sizes.c.tmpl Index: configure.in =================================================================== --- configure.in (revision 50748) +++ configure.in (revision 50749) @@ -1379,7 +1379,6 @@ RUBY_CHECK_SIZEOF(short) https://github.com/ruby/ruby/blob/trunk/configure.in#L1379 RUBY_CHECK_SIZEOF(long, [int], [ILP LP]) RUBY_CHECK_SIZEOF(long long) RUBY_CHECK_SIZEOF(__int64) -RUBY_CHECK_SIZEOF(__int128) RUBY_CHECK_SIZEOF(off_t) RUBY_CHECK_SIZEOF(void*, [int long "long long"], [ILP LP LLP]) RUBY_CHECK_SIZEOF(float) @@ -1867,7 +1866,6 @@ typedef $1 t; int s = sizeof(t) == 42;]) https://github.com/ruby/ruby/blob/trunk/configure.in#L1866 ["$ac_cv_sizeof_long"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long"], ["$ac_cv_sizeof_long_long"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long long"], ["$ac_cv_sizeof___int64"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])__int64"], - ["$ac_cv_sizeof___int128"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])__int128"], [ rb_cv_type_$1=no])])]) if test "${rb_cv_type_$1}" != no; then AC_DEFINE([HAVE_]AS_TR_CPP($1), 1) @@ -1889,8 +1887,6 @@ RUBY_DEFINT(int32_t, 4) https://github.com/ruby/ruby/blob/trunk/configure.in#L1887 RUBY_DEFINT(uint32_t, 4, unsigned) RUBY_DEFINT(int64_t, 8) RUBY_DEFINT(uint64_t, 8, unsigned) -RUBY_DEFINT(int128_t, 16) -RUBY_DEFINT(uint128_t, 16, unsigned) RUBY_DEFINT(intptr_t, void*) RUBY_DEFINT(uintptr_t, void*, unsigned) RUBY_DEFINT(ssize_t, size_t, [], [@%:@include <sys/types.h>]) dnl may differ from int, so not use AC_TYPE_SSIZE_T. Index: ChangeLog =================================================================== --- ChangeLog (revision 50748) +++ ChangeLog (revision 50749) @@ -1,3 +1,14 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jun 3 21:00:47 2015 Tanaka Akira <akr@f...> + + * configure.in: Don't check __int128. + + * ext/rbconfig/sizeof/extconf.rb: Check __int128. + + * ext/rbconfig/sizeof/depend: sizes.c depends on + ext/rbconfig/sizeof/extconf.rb. + + * template/sizes.c.tmpl: Detect check_sizeof. + Wed Jun 3 20:07:07 2015 Koichi Sasada <ko1@a...> * class.c (clone_method): remove redundant check for me->def != NULL. Index: ext/rbconfig/sizeof/depend =================================================================== --- ext/rbconfig/sizeof/depend (revision 50748) +++ ext/rbconfig/sizeof/depend (revision 50749) @@ -1,6 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ext/rbconfig/sizeof/depend#L1 -sizes.c: $(top_srcdir)/tool/generic_erb.rb $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in +sizes.c: $(top_srcdir)/tool/generic_erb.rb $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in $(top_srcdir)/ext/rbconfig/sizeof/extconf.rb $(Q) $(RUBY) $(top_srcdir)/tool/generic_erb.rb --output=$@ \ - $(top_srcdir)/template/sizes.c.tmpl $(top_srcdir)/configure.in + $(top_srcdir)/template/sizes.c.tmpl \ + $(top_srcdir)/configure.in \ + $(top_srcdir)/ext/rbconfig/sizeof/extconf.rb # AUTOGENERATED DEPENDENCIES START sizes.o: $(RUBY_EXTCONF_H) Index: ext/rbconfig/sizeof/extconf.rb =================================================================== --- ext/rbconfig/sizeof/extconf.rb (revision 50748) +++ ext/rbconfig/sizeof/extconf.rb (revision 50749) @@ -1,3 +1,4 @@ https://github.com/ruby/ruby/blob/trunk/ext/rbconfig/sizeof/extconf.rb#L1 $srcs = %w[sizes.c] $distcleanfiles.concat($srcs) +check_sizeof('__int128') create_makefile('rbconfig/sizeof') Index: template/sizes.c.tmpl =================================================================== --- template/sizes.c.tmpl (revision 50748) +++ template/sizes.c.tmpl (revision 50749) @@ -6,7 +6,8 @@ class String https://github.com/ruby/ruby/blob/trunk/template/sizes.c.tmpl#L6 strip.upcase.tr_s("^A-Z0-9_*", "_").tr_s("*", "P") end end -types = ARGF.grep(/^\s*RUBY_CHECK_SIZEOF\((\w[^\[\],#]*)[^#]*\)/) {$1} +types = ARGF.grep(/^\s*RUBY_CHECK_SIZEOF\((\w[^\[\],#]*)[^#]*\)| + ^\s*check_sizeof\('(\w+)'/x) {$+} conditions = { "long long" => 'defined(HAVE_TRUE_LONG_LONG)', } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/