This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C tree inlining problem with Linux kernel
- From: Jakub Jelinek <jakub at redhat dot com>
- To: rth at redhat dot com, aoliva at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Nov 2001 06:07:53 -0500
- Subject: C tree inlining problem with Linux kernel
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
Below is simplified asm-ia64/io.h. C frontend with rtl inlining outputs just
main, while current C frontend outputs foo too (which in the Linux kernel
has e.g. the effect of putting a bunch of static routines into each single
file including that header and furthermore prevents its print-offsets from
linking).
static inline int
foo (void)
{
extern int x;
return x;
}
static inline int
bar (void)
{
if (foo == foo)
return 1;
else
return foo ();
}
int main (void)
{
}
Jakub