[cfe-commits] [PATCH] Fix sigsetjmp builtin

Dimitry Andric dimitry at andric.com
Fri Nov 4 15:11:43 PDT 2011


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-sigsetjmp-builtin-1.diff
Type: text/x-diff
Size: 882 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111104/328244f5/attachment.diff>


More information about the cfe-commits mailing list