[llvm-bugs] [Bug 26853] __attribute__((naked)) and inline do not work well together

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 10 14:56:20 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26853

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rnk at google.com
         Resolution|---                         |INVALID

--- Comment #2 from Reid Kleckner <rnk at google.com> ---
We do not support inlining naked functions, for obvious reasons. Inlining the
ret would not work.

Your program does not link due to the usual confusion between C99 and gnu89
inline semantics: http://clang.llvm.org/compatibility.html#inline Consider
adding 'static'.

-- 
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/20160310/9aa87509/attachment.html>


More information about the llvm-bugs mailing list