From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 01:33:31 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 590BD16A4BF for ; Fri, 5 Sep 2003 01:33:31 -0700 (PDT) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE60943FCB for ; Fri, 5 Sep 2003 01:33:29 -0700 (PDT) (envelope-from Alexander@Leidinger.net) Received: from fwd11.aul.t-online.de by mailout11.sul.t-online.com with smtp id 19vC1x-00012h-07; Fri, 05 Sep 2003 10:33:21 +0200 Received: from Andro-Beta.Leidinger.net (r47QXcZLoe3kc4m8+-egBiJNs56GTC1hN2aOHA1Bf0LnWlSTxtAYsx@[217.83.31.76]) by fmrl11.sul.t-online.com with esmtp id 19vC1j-1ZSSgq0; Fri, 5 Sep 2003 10:33:07 +0200 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) h858Y6Nt016894; Fri, 5 Sep 2003 10:34:07 +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 h858YrvY000781; Fri, 5 Sep 2003 10:34:53 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Fri, 5 Sep 2003 10:34:53 +0200 From: Alexander Leidinger To: Marcel Moolenaar Message-Id: <20030905103453.2263774c.Alexander@Leidinger.net> In-Reply-To: <20030904225731.GA48910@ns1.xcllnt.net> References: <20030904180448.021a1b6b.Alexander@Leidinger.net> <20030904162858.GI98381@dan.emsphone.com> <20030905001411.3a9030b3.Alexander@Leidinger.net> <20030904225123.GB39916@dan.emsphone.com> <20030904225731.GA48910@ns1.xcllnt.net> 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: r47QXcZLoe3kc4m8+-egBiJNs56GTC1hN2aOHA1Bf0LnWlSTxtAYsx@t-dialin.net cc: Dan Nelson 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: Fri, 05 Sep 2003 08:33:31 -0000 On Thu, 4 Sep 2003 15:57:31 -0700 Marcel Moolenaar wrote: > On Thu, Sep 04, 2003 at 05:51:23PM -0500, Dan Nelson wrote: > > > > I guess the correct question to be asking is "does the ELF format allow > > 0-length symbols?" > > Of course. What size do you think a label should have otherwise? After mentioning the difference between gcc and icc I've got this response: ---snip--- Regarding the zero size array issue: Objects with zero size are incomplete objects and cannot be used in any meaningful way. Zero length arrays are explicitly prohibited by the Standard. We allowed zero length arrays as a feature request. We set their size to one so operations involving them can make some kind of sense. ---snip--- Can you please give me "something" a compiler developer should understand (an URL, a reference into some standard, a description, ...)? As long as we can provide strong evidence that gcc doesn't do the wrong thing Intel will change icc to be compatible with gcc. Bye, Alexander. -- Give a man a fish and you feed him for a day; teach him to use the Net and he won't bother you for weeks. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7