Project

General

Profile

Bug #9692 » ruby-configure-builtin_longjmp.patch

marxin (Martin Liška), 04/01/2014 03:05 PM

View differences:

configure.in
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);}],
jmp_buf jb; __attribute__ ((used)) void t(v) int v; {__builtin_longjmp(jb, v);}],
[__builtin_setjmp(jb);],
[ac_cv_func___builtin_setjmp=yes],
[ac_cv_func___builtin_setjmp=no])
    (1-1/1)