This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18231] New: [4.0 regression] Nested inline function not inlined
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Oct 2004 18:46:09 -0000
- Subject: [Bug middle-end/18231] New: [4.0 regression] Nested inline function not inlined
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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