What to do with the transparent_union attribute

Andrew Pinski pinskia@physics.uc.edu
Mon Jan 24 15:43:00 GMT 2005


On Jan 24, 2005, at 9:20 AM, Daniel Jacobowitz wrote:

> On Mon, Jan 24, 2005 at 09:09:16AM -0500, Andrew Pinski wrote:
>>
>> On Jan 24, 2005, at 9:08 AM, Steven Bosscher wrote:
>>
>>> Hi,
>>>
>>> So I was thinking, should we keep this attribute, or can it perhaps
>>> be deprecated for GCC 4.0 and removed in 4.1?  Or is this attribute
>>> still useful?
>>
>> This attribute is useful it is used all over glibc.
>
> Where "all over" is defined as "in four places, but they're all in
> installed headers".
>
> It appears that glibc uses this as a hack to allow redefinitions with
> any union member to be accepted.  Does that still work?  I have no
> idea.  Deprecating the extension eventually might be goodness, but it
> will have to wait a long long time.

Well considering wait is just a lot in different places and there
have been no reports of it not working I assume it still works.

-- Pinski



More information about the Gcc mailing list