[cfe-commits] [PATCH] Fix sigsetjmp builtin
Dimitry Andric
dimitry at andric.com
Fri Nov 4 16:53:36 PDT 2011
On 2011-11-04 23:11, Dimitry Andric wrote:
> 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.
And now of course I see there's also a __sigsetjmp declaration in the
same file. I presume this will have the same arguments as sigsetjmp, so
here is a revised patch that includes both.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-sigsetjmp-builtin-2.diff
Type: text/x-diff
Size: 1029 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111105/a6d34719/attachment.diff>
More information about the cfe-commits
mailing list