[前][次][番号順一覧][スレッド一覧]

ruby-changes:33434

From: nobu <ko1@a...>
Date: Fri, 4 Apr 2014 07:13:59 +0900 (JST)
Subject: [ruby-changes:33434] nobu:r45513 (trunk): configure.in: restore flags

nobu	2014-04-04 07:13:48 +0900 (Fri, 04 Apr 2014)

  New Revision: 45513

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45513

  Log:
    configure.in: restore flags
    
    * configure.in (ac_cv_func___builtin_setjmp): should not skip
      flags restoration in RUBY_WERROR_FLAG by `break`.
      [ruby-dev:48086] [Bug #9698]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 45512)
+++ configure.in	(revision 45513)
@@ -2079,6 +2079,7 @@ if test x"${ac_cv_func___builtin_setjmp} https://github.com/ruby/ruby/blob/trunk/configure.in#L2079
 fi
 AC_CACHE_CHECK(for __builtin_setjmp, ac_cv_func___builtin_setjmp,
     [
+    ac_cv_func___builtin_setjmp=no
     for cast in "" "(void *)"; do
 	RUBY_WERROR_FLAG(
 	[AC_TRY_LINK([@%:@include <setjmp.h>
@@ -2089,9 +2090,9 @@ AC_CACHE_CHECK(for __builtin_setjmp, ac_ https://github.com/ruby/ruby/blob/trunk/configure.in#L2090
 	    void (*volatile f)(void) = t;
 	    if (!__builtin_setjmp($cast jb)) printf("%d\n", f != 0);
 	    ],
-	    [ac_cv_func___builtin_setjmp="yes with cast ($cast)"; break],
-	    [ac_cv_func___builtin_setjmp=no])
+	    [ac_cv_func___builtin_setjmp="yes with cast ($cast)"])
 	])
+	test "$ac_cv_func___builtin_setjmp" = no || break
     done])
 
 # we don't use _setjmp if _longjmp doesn't exist.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45512)
+++ ChangeLog	(revision 45513)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Apr  4 07:13:44 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (ac_cv_func___builtin_setjmp): should not skip
+	  flags restoration in RUBY_WERROR_FLAG by `break`.
+	  [ruby-dev:48086] [Bug #9698]
+
 Wed Apr  2 21:50:06 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* configure.in (ac_cv_func___builtin_setjmp): __builtin_longjmp() in

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]