Subject: Re: K&R vs. ANSI call conventions (was Re: a new KNF)
To: None <tech-toolchain@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-toolchain
Date: 02/16/2000 16:59:55
In article <Pine.NEB.4.21.0002151532090.26218-100000@shark.int.duh.org>
tv@pobox.com writes:

> The funny thing is, we are already using a completely broken ABI, from K&R's
> perspective.  GCC has been generating ANSI-assuming code all along, simply
> because we're prototyping all of them (-Wstrict-prototypes, y'know...  ;).

gcc is not an ANSI C.  Try gcc -pedantic.

See info of gcc and follow
	* C Extensions::
	    * Function Prototypes::
and you will find the description about the behaviour.

Such an "extension" might be useful for building applications,
but the library and kernel (for LKM) should not depend on this,
in my opinion.

-- 
ITOH, Yasufumi <itohy@netbsd.org>