generalized lvalues -- patch outline

Michael Matz matz@suse.de
Tue Nov 23 15:09:00 GMT 2004


Hi,

On Tue, 23 Nov 2004, Nathan Sidwell wrote:

> > FWIW, this extension is used in at least (determined from just looking at
> > the compiler errors):
> > wine, elfutils, rpm, freeglut, dietlibc, openswan, xv, xine and 50 other
> > packages.
> ok, that's quite a big list, thank you.  I don't suppose you know which
> version of this extension they're using? :)

I did not look at all those packages, but from looking at some of them, 
and listening to my guts this would mostly by of the form

 *((T*)p)++ = x;

And sometimes also "(T*)p = x", especially in C code implementing 
something type-generic with macros (like all kinds of iterators).

> Will Ziemowit's restriction to pointers satisfy them?

I don't know for sure, but would be willing to try a patch in our build 
system.


Ciao,
Michael.



More information about the Gcc mailing list