static inline function body is missing

Nemanja Popov nemanja.popov@micronasnit.com
Fri Feb 24 10:08:00 GMT 2006


Hi all,

In my GCC 4.02 port for DLX cpu I'm expiriencing strange problem.
When compiling following example:

static inline int bar(void)
{
  return 1;
}

int main()
{
  int i = 0;

  i = bar();

  return i;
}


with the following line
dlx-elf-gcc -S foo.c

there is no bar() function body, but there is call of that function in 
main().

Code is correct (bar() function body is there) when compiling with the 
following line:

dlx-elf-gcc -S foo.c -funit-at-a-time

Is it possible to workaround this problem in my port files.

Thanks in advance,
Nemanja Popov 



More information about the Gcc mailing list