This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Regarding anonymous unions, etc.
- To: Sam Lantinga <slouken@devolution.com>
- Subject: Re: Regarding anonymous unions, etc.
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Tue, 31 Aug 1999 22:13:08 -0500
- cc: Dan Kegel <dank@alumni.caltech.edu>, gcc@gcc.gnu.org
Sam Lantinga <slouken@devolution.com> writes:
>
> FYI, the new patches from Mumit Khan, which appear to be integrated
> into the latest CVS version of gcc/egcs, solve many of our problems
> with anonymous structures and so forth.
>
If you're referring to C++ anon aggregates, it's Jason's and it has
been in the "mainline" for a while now, though not in the release
branch. If you're referring to C anon aggregates, my patch is certainly
not integrated; in fact, I don't believe maintainers have yet looked
at it, and I have yet to see any feedback (other than Richard Henderson's
initial "Yuk!" reaction to one of the "features" ;-)
I've incorporated both of these in the gcc-2.95 binaries I distribute
for windows32 however, and it's easy enough to get these out of my
patchset available from:
ftp://ftp.xraylith.wisc.edu/~khan/software/gnu-win32/cygwin/gcc-2.95/patches/
The patches of interest are:
C anon aggregates:
gcc-2.95-anon-struct-union.diff ....... Anonymous structs/unions in C.
C++ anon structs:
gcc-2.95-c++-tidy.diff ................ Jason's C++ "tidying" patch.
Prereq for all other C++ patches.
gcc-2.95-c++-anon-struct.diff ....... Anonymous structs in C++.
gcc-2.95-c++-anon-struct2.diff ....... small tweak.
As usual, unsupported in every way imaginable.
Regards,
Mumit