This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GCC-4.1.0 size optimization bug for MIPS architecture...
- From: Richard Henderson <rth at redhat dot com>
- To: "Steven J. Hill" <sjhill at realitydiluted dot com>
- Cc: binutils at sources dot redhat dot com, gcc at gcc dot gnu dot org, uclibc at uclibc dot org
- Date: Wed, 29 Jun 2005 02:03:32 -0700
- Subject: Re: GCC-4.1.0 size optimization bug for MIPS architecture...
- References: <42C22AA3.9070104@realitydiluted.com>
On Tue, Jun 28, 2005 at 11:59:15PM -0500, Steven J. Hill wrote:
> 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 ...
Not a bug. The inline marker is merely suggestive. You told
the compiler to optimize for size, and it is doing that.
If you absolutely have to have the function inlined, then you
need to use __attribute__((__always_inline__)).
r~