DragonFly BSD
DragonFly bugs List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Can't compile kernel with -O0

From: Jeroen Ruigrok/asmodai <asmodai@xxxxxx>
Date: Mon, 19 Jul 2004 09:04:00 +0200

-On [20040719 08:52], Joerg Sonnenberger (joerg@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...

[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]