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

Reply via email to