From owner-freebsd-hackers Fri Aug 7 16:08:18 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA16019 for freebsd-hackers-outgoing; Fri, 7 Aug 1998 16:08:18 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp03.primenet.com (smtp03.primenet.com [206.165.6.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA15997 for ; Fri, 7 Aug 1998 16:08:11 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id QAA07554; Fri, 7 Aug 1998 16:07:54 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp03.primenet.com, id smtpd007529; Fri Aug 7 16:07:50 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id QAA03789; Fri, 7 Aug 1998 16:07:48 -0700 (MST) From: Terry Lambert Message-Id: <199808072307.QAA03789@usr02.primenet.com> Subject: Re: C and static initialization with unions To: seggers@semyam.dinoco.de (Stefan Eggers) Date: Fri, 7 Aug 1998 23:07:47 +0000 (GMT) Cc: tlambert@primenet.com, seggers@semyam.dinoco.de, freebsd-hackers@FreeBSD.ORG In-Reply-To: <199808071949.VAA15427@semyam.dinoco.de> from "Stefan Eggers" at Aug 7, 98 09:49:34 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Is it allowed in FreeBSD? Is all FreeBSD C source code portable? > > > > Good question; I don't know the answer. > > We have at least a little bit of unportable code in swap_pager.c where > arrays of runtime computed size (array size depends on one of the > parameters of the function) get used. Works great with gcc but not > with an unsuspecting ANSI C compiler. I thought this was an ANSI-ism (you are talking about the sizing of the stack allocations based on count in swap_pager_getpages() and swap_pager_getpages(), right?); my bad. > What's the official opinion on using gcc extensions? Should this have > been avoided or is it OK to use them in the kernel? I'd like this clarified, as well. I'm getting very tempted by this thread to "do what it takes" to make TenDRA work... 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message