[LLVMbugs] [Bug 22720] 'inline' function not generated at -O0
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 26 16:14:28 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22720
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang is following the C99 standard; your version of GCC is following the GNU
inline semantics. Recent versions of GCC behave the same as Clang here.
See http://clang.llvm.org/compatibility.html#inline
One correct way of writing this is to use 'static inline' in the place of
'inline' here.
--
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/20150227/388f65db/attachment.html>
More information about the llvm-bugs
mailing list