When a nested inline function calls another nested inline function the latter 
is never inlined (even if marked always_inline).  This breaks glibc. 
 
void f (void) 
{ 
  auto inline __attribute__ ((always_inline)) void h (void) { } 
  auto inline __attribute__ ((always_inline)) void g (void) { h (); } 
  g (); 
}

-- 
           Summary: [4.0 regression] Nested inline function not inlined
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18231

Reply via email to