https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104187

            Bug ID: 104187
           Summary: Call site specific attribute to control inliner
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.bolvansky at gmail dot com
  Target Milestone: ---

It could be useful to have more control over inlining. Use cases:



int foo();

void bar();

int g; 

void test()
{
 g = __builtin_always_inline(foo()); // force inlining of foo() here
 __builtin_noinline(bar()); // never inline bar to this function
}

Reply via email to