This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/18231] New: [4.0 regression] Nested inline function not inlined


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]