This is the mail archive of the gcc-patches@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]

C tree inlining problem with Linux kernel


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


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