ruby-changes:39472
From: nagachika <ko1@a...>
Date: Wed, 12 Aug 2015 23:58:27 +0900 (JST)
Subject: [ruby-changes:39472] nagachika:r51553 (ruby_2_2): merge revision(s) 50104, 50105: [Backport #10906]
nagachika 2015-08-12 23:58:06 +0900 (Wed, 12 Aug 2015) New Revision: 51553 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51553 Log: merge revision(s) 50104,50105: [Backport #10906] * ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906] ruby itself (including numeric.c) is built with strict compile options including -std=iso9899:1999, but ext/date is not. By the way -std=iso9899:1999 is not only a warning option but also changes behavior like MACRO definitions for example INFINITY. gcc on Solaris affect this. Modified directories: branches/ruby_2_2/ Modified files: branches/ruby_2_2/ChangeLog branches/ruby_2_2/ext/date/extconf.rb branches/ruby_2_2/version.h Index: ruby_2_2/ChangeLog =================================================================== --- ruby_2_2/ChangeLog (revision 51552) +++ ruby_2_2/ChangeLog (revision 51553) @@ -1,3 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ChangeLog#L1 +Wed Aug 12 23:57:01 2015 NARUSE, Yui <naruse@r...> + + * ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906] + ruby itself (including numeric.c) is built with strict compile + options including -std=iso9899:1999, but ext/date is not. + By the way -std=iso9899:1999 is not only a warning option but also + changes behavior like MACRO definitions for example INFINITY. + gcc on Solaris affect this. + Wed Aug 12 23:53:39 2015 NAKAMURA Usaku <usa@r...> * win32/win32.c (waitpid): return immediately if interrupted. Index: ruby_2_2/ext/date/extconf.rb =================================================================== --- ruby_2_2/ext/date/extconf.rb (revision 51552) +++ ruby_2_2/ext/date/extconf.rb (revision 51553) @@ -1,2 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/ext/date/extconf.rb#L1 require 'mkmf' +if try_cflags("-std=iso9899:1999") + $CFLAGS += " " << "-std=iso9899:1999" +end create_makefile('date_core') Index: ruby_2_2/version.h =================================================================== --- ruby_2_2/version.h (revision 51552) +++ ruby_2_2/version.h (revision 51553) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_2/version.h#L1 #define RUBY_VERSION "2.2.3" #define RUBY_RELEASE_DATE "2015-08-12" -#define RUBY_PATCHLEVEL 159 +#define RUBY_PATCHLEVEL 160 #define RUBY_RELEASE_YEAR 2015 #define RUBY_RELEASE_MONTH 8 Property changes on: ruby_2_2 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r50104-50105 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/