From owner-freebsd-current@FreeBSD.ORG Thu Sep 4 15:12:38 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 851F116A4BF for ; Thu, 4 Sep 2003 15:12:38 -0700 (PDT) Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DA6E43F3F for ; Thu, 4 Sep 2003 15:12:37 -0700 (PDT) (envelope-from Alexander@Leidinger.net) Received: from fwd06.aul.t-online.de by mailout05.sul.t-online.com with smtp id 19v2LB-0001OD-00; Fri, 05 Sep 2003 00:12:33 +0200 Received: from Andro-Beta.Leidinger.net (JOzqCrZ-QeYDL9ImcIpPGBPVAwyebmJrawgtFKzErKiNz8nqvVqGkx@[217.83.31.76]) by fmrl06.sul.t-online.com with esmtp id 19v2L0-1kDqO80; Fri, 5 Sep 2003 00:12:22 +0200 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) h84MDONt015091; Fri, 5 Sep 2003 00:13:24 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.9/8.12.9) with SMTP id h84MEBu2064381; Fri, 5 Sep 2003 00:14:11 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Fri, 5 Sep 2003 00:14:11 +0200 From: Alexander Leidinger To: Dan Nelson Message-Id: <20030905001411.3a9030b3.Alexander@Leidinger.net> In-Reply-To: <20030904162858.GI98381@dan.emsphone.com> References: <20030904180448.021a1b6b.Alexander@Leidinger.net> <20030904162858.GI98381@dan.emsphone.com> X-Mailer: Sylpheed version 0.9.3claws (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Seen: false X-ID: JOzqCrZ-QeYDL9ImcIpPGBPVAwyebmJrawgtFKzErKiNz8nqvVqGkx@t-dialin.net cc: current@freebsd.org Subject: Re: Question about genassym, locore.s and 0-sized arrays (showstopper for an icc compiled kernel) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2003 22:12:38 -0000 On Thu, 4 Sep 2003 11:28:58 -0500 Dan Nelson wrote: > If you're talking FreeBSD 5, you should be able to simply subsitute a > C99 "flexible array member" (basically replace "[0]" with "[]") and get > the same effect. 0-length arrays are a gcc extension: > > http://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > > Under FreeBSD 4.x, you can't use them because gcc 2.95 only supports > the gcc extension. Intel has added support for a lot of gcc extensions > recently; they may be willing to add this to the list. Please read my mail again, icc already supports my_array[0], but the resulting array in the binary has size '1'. The actual showstopper is the output of genassym.sh. To me it seems it's just a genassym.sh issue, but I don't really know what's going on in the kernel, so I ask here. Bye, Alexander. -- Weird enough for government work. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7