[llvm-bugs] [Bug 43517] New: warn when __attribute__((__always_inline__)) may not be inlineable

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 30 15:31:20 PDT 2019


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

            Bug ID: 43517
           Summary: warn when __attribute__((__always_inline__)) may not
                    be inlineable
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

https://godbolt.org/z/_V5im1 


__attribute__((always_inline))
void foo (void){}

static void (*bar)(void) = foo;

void baz(void) {
    bar();
}

warns in GCC but not Clang

-- 
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/20190930/f0dd6a69/attachment.html>


More information about the llvm-bugs mailing list