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

Marcel Moolenaar marcel at xcllnt.net
Fri Sep 5 09:56:07 PDT 2003


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


More information about the freebsd-current mailing list