[cfe-commits] [PATCH] Fix sigsetjmp builtin

Eli Friedman eli.friedman at gmail.com
Fri Nov 4 15:21:36 PDT 2011

On Fri, Nov 4, 2011 at 3:11 PM, Dimitry Andric <dimitry at andric.com> wrote:
> Hi,
> The prototype for the built-in function sigsetjmp is incorrect, which
> leads to warnings like (when compiling with -Wsystem-headers):
>  In file included from ssjtest.c:1:
>  /usr/include/setjmp.h:58:5: warning: incompatible redeclaration of library function 'sigsetjmp'
>  int     sigsetjmp(sigjmp_buf, int);
>          ^
>  /usr/include/setjmp.h:58:5: note: 'sigsetjmp' is a builtin with type 'int (struct _jmp_buf *, int)'
> On both Linux and BSD the real prototype for sigsetjmp(3) actually is:
>  int sigsetjmp(sigjmp_buf, int);
> The attached patch corrects the LIBBUILTIN macro in Builtins.def.

Looks fine.


More information about the cfe-commits mailing list