----- Original Message -----
From: Bernhard Held <bernhard@...>
Sent: Thursday, October 18, 2001 11:48 AM
Subject: Re: [sdcc-devel] Arrays + memory modifier + parameter
> > I didn't touch the ARRAY declarator but reshaped compareType() itself a
> > little. Now the complete type chain is checked. It could use some more
> > testing though.
> > Bernhard, please close the bug if you agree.
> Yes, but please give me some time.
> > Unfortunatly this breaks the regression tests and malloc.c
> > Could some one look at that?
> In malloc.c a "MEMHEADER xdata *" is returned, while the return type is
> "void xdata *". I think this should go without any warning by an automatic
No, the MEMHEADER's unsigned char mem was returned.
The array get's converted to a gpointer for ds390, a fpointer for
model-large and a pointer for all others. The function returns a fpointer,
so in model-large everything is fine. It would produce bogus code in all
others. Instead of allowing this, I fixed malloc.c itself. Would be nice if
someone could test malloc.