[PATCH] D12547: Add support for function attribute "disable_tail_calls"

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 9 08:41:52 PST 2015


ahatanak updated this revision to Diff 39702.
ahatanak added a comment.

I ended up making a few more changes based on the feedback on the not_tail_called attribute:

- Changed wording in docs and added a code example.
- Made changes to detect both (naked,disable_tail_calls) and (disable_tail_calls,naked) on a function.
- Added test cases that check disable_tail_calls is not on variables and doesn't take arguments.


http://reviews.llvm.org/D12547

Files:
  include/clang/Basic/Attr.td
  include/clang/Basic/AttrDocs.td
  lib/CodeGen/CGCall.cpp
  lib/Sema/SemaDeclAttr.cpp
  test/CodeGen/attr-disable-tail-calls.c
  test/Sema/disable-tail-calls-attr.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12547.39702.patch
Type: text/x-patch
Size: 6166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151109/a0c95339/attachment.bin>


More information about the cfe-commits mailing list