[PATCH] D15998: Implement __attribute__((gc_leaf_function)).

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 12 07:01:08 PST 2016


aaron.ballman added a comment.

Can you point me to some documentation on what the semantics of this attribute are? For instance, how does it play with other attributes (like naked or dllexport), is there a reason it shouldn't apply to Objective-C methods, etc?


================
Comment at: include/clang/Basic/Attr.td:2175
@@ +2174,3 @@
+def GcLeafFunction : InheritableAttr {
+  let Spellings = [GNU<"gc_leaf_function">];
+  let Subjects = SubjectList<[Function]>;
----------------
Any particular reason for this to not have a C++11 spelling under the clang namespace, in addition to the GNU-style spelling?


http://reviews.llvm.org/D15998





More information about the cfe-commits mailing list