Re: Question about genassym, locore.s and 0-sized arrays(showstopper for an icc compiled kernel)

From: Marcel Moolenaar <marcel_at_xcllnt.net>
Date: Fri, 5 Sep 2003 09:55:57 -0700
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?
> 
> % <icc.c 
> 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_at_xcllnt.net
Received on Fri Sep 05 2003 - 07:56:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:21 UTC