Re: static inline function body is missing

2006-02-27 Thread Jim Wilson
Nemanja Popov wrote: dlx-elf-gcc -S foo.c -funit-at-a-time Mike's suggestions are good in general, but there is another thing you should be looking at. Since you are explicitly asking for -funit-at-a-time, I would suggest looking in cgraph. cgraph has code to optimize away unused static fu

Re: static inline function body is missing

2006-02-27 Thread Nemanja Popov
Thanks on answer. I'll try to do something similar. Cheers - Original Message - From: "Mike Stump" <[EMAIL PROTECTED]> To: "Nemanja Popov" <[EMAIL PROTECTED]> Cc: "GCC Development" Sent: Friday, February 24, 2006 10:31 PM Subject: Re: s

Re: static inline function body is missing

2006-02-24 Thread Mike Stump
On Feb 24, 2006, at 2:08 AM, Nemanja Popov wrote: Is it possible to workaround this problem in my port files. Sounds like a bug, I'd recommend just finding and fixing the bug. Can't imagine it is more than a line to fix. Watch for TREE_USED, SYMBOL_REF_USED, mark_referenced, mark_decl_re

static inline function body is missing

2006-02-24 Thread Nemanja Popov
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 i