[cfe-dev] always_inline with -fno-inline

Greg Fitzgerald gregf at codeaurora.org
Thu Jun 7 17:39:57 PDT 2012


Hi!

 

When clang is invoked with the '-fno-inline' flag and the C function is
prefixed by '__attribute__((always_inline))', clang does not inline the
function whereas GCC does.  GCC's behavior seems more intuitive to me - that
the file-level annotation should override the command-line flag.  Do you
agree?  Can we make clang match gcc?

 

Thanks,

Greg

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120607/919127c5/attachment.html>


More information about the cfe-dev mailing list