[llvm-commits] [PATCH] Allow inline when calling returns_twice

Joerg Sonnenberger joerg at britannica.bec.de
Tue Dec 13 17:09:49 PST 2011


Hi all,
I hit a case in NetBSD that LLVM currently doesn't allow. The RUMP
framework basically wants to wrap vfork(2) and for that purpose, the
wrapper naturally has to be inline to work. At the moment, this can't
work with LLVM, since calling a returns_twice function explicitly
disables inlining. I want to turn this off, if the function itself is
also marked with that attribute. Reasoning is that the behavior
discussed in the comment (volatile for local variables) is already
needed in that case, so it doesn't change anything.

Comments?

Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline-returns_twice.diff
Type: text/x-diff
Size: 1173 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111214/52566284/attachment.diff>


More information about the llvm-commits mailing list