This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC-4.1.0 size optimization bug for MIPS architecture...
- From: Andi Kleen <ak at suse dot de>
- To: "Steven J. Hill" <sjhill at realitydiluted dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 29 Jun 2005 13:04:33 +0200
- Subject: Re: GCC-4.1.0 size optimization bug for MIPS architecture...
- References: <42C22AA3.9070104@realitydiluted.com>
"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