[cfe-commits] [patch] Add the returns_twice attribute to know functions
Rafael Ávila de Espíndola
respindola at mozilla.com
Tue Oct 11 07:53:01 PDT 2011
This patch makes clang add the returns_twice attribute to functions that
are known to have it.
The list of functions is taken from llvm's callsFunctionThatReturnsTwice
plus the __sigsetjmp as reported Khaled.
The hope is that we can simplify callsFunctionThatReturnsTwice to check
only for the attribute.
Is the patch OK?
Would a patch dropping the list from callsFunctionThatReturnsTwice be OK
for 3.0 or 3.1?
Thanks,
Rafael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: returns_twice.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111011/d39a6d33/attachment.ksh>
More information about the cfe-commits
mailing list