This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cp/cdecl.c


On Sat, Dec 22, 2001 at 03:28:43PM -0500, Jeff Sturm wrote:
> On Sat, 22 Dec 2001, Jeffrey Turner wrote:
> > BTW, if it is C++ why does it have old K&R function syntax?
> 
> Good question... cp/decl.c (along with the rest of cp/*.c) is intended to
> be compiled by gcc (and only gcc, try it with an ISO C compiler).  I don't
> understand the adherence to K&R myself.

The goal -- toward which we're slowly but surely moving -- is to have more
code shared by the C family of front-ends, which means they all need to
be written in the same language variant.

Right now the language variant is K&R C.  We're pushing to have this
(outdated overly restrictive) rule changed to require only a C89 bootstrap
compiler.  Any platform for which only a K&R C compiler is available needs
to die^W^W^Wcan build GCC 3.0 to start with, and more recent versions can
be built with /that/ in turn.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]