Le vendredi 16 novembre 2012 22:07:52, Thomas Preud'homme a écrit :
> Le jeudi 15 novembre 2012 18:34:51, grischka a écrit :
> 
> > Compare
> > 
> >       put_sym_attr(s1, sym_index, got_offset, s1->got->data_offset);
> > 
> > with
> > 
> >       alloc_sym_attr(s1, sym_index)->got_offset = s1->got->data_offset;

> > 
> > Is this C?  Note that not just GCC and TCC might be used to compile
> > tcc.  (E.g. more recent MS compilers from the VCExpress editions used
> > to work)
> 
> I thought so but it seems I've been intoxicated by gccism. I checked the
> C99 standard and it's not inside. In this case it can easily be changed by
> void * while still keeping sym_attrs an anonymous struct.

Except that it doesn't work for alloc_sym_attr. To be able to do ->got_offset 
the type returned must be the one of sym_attrs.

I thus propose to create struct sym_attr.

> 
> > Thanks,
> > 
> > --- grischka
> 
> Tom

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to