From owner-freebsd-current@FreeBSD.ORG Fri Sep 5 09:56:07 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 7321A16A4BF for ; Fri, 5 Sep 2003 09:56:07 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BB9543FBF for ; Fri, 5 Sep 2003 09:56:06 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h85GtwjR003421; Fri, 5 Sep 2003 09:55:58 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h85GtwcI000675; Fri, 5 Sep 2003 09:55:58 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h85GtvDv000674; Fri, 5 Sep 2003 09:55:57 -0700 (PDT) (envelope-from marcel) Date: Fri, 5 Sep 2003 09:55:57 -0700 From: Marcel Moolenaar To: Alexander Leidinger Message-ID: <20030905165557.GB566@dhcp01.pn.xcllnt.net> References: <20030904180448.021a1b6b.Alexander@Leidinger.net> <20030904162858.GI98381@dan.emsphone.com> <20030905001411.3a9030b3.Alexander@Leidinger.net> <20030904225123.GB39916@dan.emsphone.com> <3F584B85.AAC3A11D@mindspring.com> <20030905105507.51ba3183.Alexander@Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030905105507.51ba3183.Alexander@Leidinger.net> User-Agent: Mutt/1.5.4i 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 16:56:07 -0000 On Fri, Sep 05, 2003 at 10:55:07AM +0200, Alexander Leidinger wrote: > > > > It does, according to my reading of it. They may have an issue with > > dead code removal or element aliasing. The way to find out would be > > to see what they emit for "[]"... 0 lenth, or 1? > > % char array[]; > > % nm icc.o > 00000001 C array Interesting, What does icc do with: struct { int tag; char obj[]; } foo; And what does the sizeof() operator give. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net