This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug in local spilling code


On Fri, Oct 30, 1998 at 01:09:16PM +0100, Andi Kleen wrote:
> Now w.x and w.y are valid. IMHO a very useful feature, similar to the
> anonymous unions in C++, which eliminates the ugly macro cascades usually
> used to make nested structures/unions accesses more readable. Unfortunately
> it seems the proposal didn't make it into the draft standard.

That's a shame, cause it would be useful.

> The document explicitely references GNU C as prior art, but I wasn't able
> to find any traces of this feature in egcs 1.1. Does it exists/was it removed?

Such a thing does not exist; I don't know if it ever did.  There is a
thing called a transparent union, which is different from c++ anonymous
unions.

I have somewhere a half-done patch for this feature, done with
__attribute__((anonymous)) attached to structures and unions,
but it certainly isn't in the compiler.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]