[cfe-commits] [patch] Add the returns_twice attribute to know functions

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Tue Oct 11 07:58:26 PDT 2011

I have sent this from the wrong address, sorry if you have two copies.

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?


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: returns_twice.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111011/be7aa361/attachment.ksh>

More information about the cfe-commits mailing list