[llvm-bugs] [Bug 24556] naked functions with parameters are impossible to use correctly
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 14 16:44:54 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=24556
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WONTFIX
--- Comment #2 from Reid Kleckner <rnk at google.com> ---
I think this is working as intended for now. We reject these parameter usages
up front:
t.cpp:34:13: error: parameter references not allowed in naked functions
, "l"(aSignal), "l"(aInfo), "l"(aContext)
^
t.cpp:19:16: note: attribute is here
__attribute__((naked)) void
^
It's not as helpful as we could hypothetically be, but at least the user knows
what to do: refer to the parameters manually by register or memory location.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190514/3095d3b2/attachment.html>
More information about the llvm-bugs
mailing list