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

ruby-changes:33424

From: nobu <ko1@a...>
Date: Wed, 2 Apr 2014 17:43:22 +0900 (JST)
Subject: [ruby-changes:33424] nobu:r45503 (trunk): configure.in: do not use a variable for longjmp

nobu	2014-04-02 17:43:18 +0900 (Wed, 02 Apr 2014)

  New Revision: 45503

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

  Log:
    configure.in: do not use a variable for longjmp
    
    * configure.in (ac_cv_func___builtin_setjmp): gcc 4.9 disallows a
      variable as the second argument of __builtin_longjmp().
      [ruby-core:61800] [Bug #9692]

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
Index: configure.in
===================================================================
--- configure.in	(revision 45502)
+++ configure.in	(revision 45503)
@@ -2076,8 +2076,13 @@ AC_CACHE_CHECK(for sigsetjmp as a macro https://github.com/ruby/ruby/blob/trunk/configure.in#L2076
 
 AC_CACHE_CHECK(for __builtin_setjmp, ac_cv_func___builtin_setjmp,
 [AC_TRY_LINK([@%:@include <setjmp.h>
-    jmp_buf jb; void t(v) int v; {__builtin_longjmp(jb, v);}],
-    [__builtin_setjmp(jb);],
+    @%:@include <stdio.h>
+    jmp_buf jb;
+    void t(void) {__builtin_longjmp(jb, 1);}],
+    [
+    void (*volatile f)(void) = t;
+    if (!__builtin_setjmp(jb)) printf("%d\n", f != 0);
+    ],
     [ac_cv_func___builtin_setjmp=yes],
     [ac_cv_func___builtin_setjmp=no])
 ])
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45502)
+++ ChangeLog	(revision 45503)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Apr  2 17:43:17 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (ac_cv_func___builtin_setjmp): gcc 4.9 disallows a
+	  variable as the second argument of __builtin_longjmp().
+	  [ruby-core:61800] [Bug #9692]
+
 Wed Apr  2 15:12:18 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* common.mk: Use redmine-2.x url for DeveloperHowto wiki.

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

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