From owner-freebsd-hackers Thu Aug 6 20:49:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA15761 for freebsd-hackers-outgoing; Thu, 6 Aug 1998 20:49:27 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA15748 for ; Thu, 6 Aug 1998 20:49:25 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id UAA29774; Thu, 6 Aug 1998 20:49:05 -0700 (PDT) (envelope-from jdp) Message-Id: <199808070349.UAA29774@austin.polstra.com> To: Terry Lambert cc: Nicolas.Souchu@prism.uvsq.fr, hackers@FreeBSD.ORG Subject: Re: C and static initialization with unions In-reply-to: Your message of "Fri, 07 Aug 1998 01:36:31 -0000." <199808070136.SAA24978@usr06.primenet.com> Date: Thu, 06 Aug 1998 20:49:05 -0700 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > GCC extensions are occasionally used in FreeBSD. However, they > > are virtually always optional and for the purpose of (a) better > > efficiency, or (b) better compiler warnings. When GCC extensions are > > used, they are protected by "#ifdef __GNUC__", and an alternative > > portable implementation is provided in the "#else" clause. For case > > (a) the alternative implementation is less efficient; for case (b), > > it's a no-op. See for some examples of (b). > > This is not quite correct. The defined __P(), for > example, and this appears to have been deprecated despite its > ability to ensure portability; which is really bizarre, because > "const", "volatile", and __CONCAT() all haven't, and it the same > portability barrier that all 4 address (non-ANSI K&R compilers). I was talking about GCC extensions (extra-ANSI), and you are talking about K&R vs. ANSI. Those are different topics. -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message