GCC-4.1.0 size optimization bug for MIPS architecture...

Andi Kleen ak@suse.de
Wed Jun 29 11:04:00 GMT 2005


"Steven J. Hill" <sjhill@realitydiluted.com> writes:

> I have discovered what appears to be an optimization bug with '-Os'
> in GCC-4.1.0 for the MIPS architecture. It appears that functions
> which are declared as 'inline' are being ignored and instead turned
> into to function calls which is breaking the dynamic linker loader
> for uClibc on MIPS.

You should mark the functions that absolutely need to be inlined
with __attribute__((always_inline)). Or just 
-Dinline="__attribute__((always_inline))" 

-Andi



More information about the Gcc mailing list