Re: smart gcc inliner...

From: Adrian Bunk
Date: Fri Mar 30 2007 - 15:32:33 EST


On Tue, Mar 27, 2007 at 07:55:38PM -0700, Jeremy Fitzhardinge wrote:
> Andi Kleen wrote:
> > init functions should only ever be called from other init functions.
> >
> > So this should not happen. If it happens the annotations need to be fixed.
>
> I've seen some versions of gcc inline weak functions too.

Please be more precise:
- gcc version
- example code
- bug number in the gcc Bugzilla

This would also help understanding what you are talking about:
- Did gcc inline a global function?
- Or was a static function declared as weak (which might be an error
by the programmer)?
- ...

> J

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/