Can't compile kernel with -O0

Jeroen Ruigrok/asmodai asmodai at wxs.nl
Mon Jul 19 00:06:15 PDT 2004


-On [20040719 08:52], Joerg Sonnenberger (joerg at xxxxxxxxxxxxxxxxx) wrote:
>I don't think support -O0 is worse the effort. But the usage of
>"extern inline" should perhaps be changed to "static inline", which
>is IIRC the C99 version of the GNU extension.

Worth the effort?  Shouldn't it just work?

Yes, normally you do:

extern int function(i);

inline int function(int i)
{
	return(i * i);
}

As far as I understand the specification of the C language you are *NOT*
allowed to even use extern or static on inline.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
Free Tibet! http://www.savetibet.org/ | http://www.tibet.nu/
http://www.tendra.org/   | http://diary.in-nomine.org/
Weep for the lives your wishes never lead...





More information about the Bugs mailing list