[PATCH 1/7] Fix GTY markup of u2

Richard Sandiford rdsandiford@googlemail.com
Mon May 12 10:54:00 GMT 2014


Michael Matz <matz@suse.de> writes:
> Hi,
>
> On Sat, 10 May 2014, Mike Stump wrote:
>
>> > The rtx u2 field currently uses a desc/tag pair for GTY.  This seems
>> > unnecessary though,
>> 
>> > OK to install?
>> 
>> Ick.  I don’t favor skip.  The change feels like a premature 
>> optimization that doesn’t net any code gen benefit.  I’ll defer to a gty 
>> person if they prefer skip.
>
> The skip is necessary, otherwise union members of GTY structs are required 
> to have a 'desc' (and their members in turn are required to have a 'tag').  
> So it's either the skip or the desc/tag pair.  The code-gen difference is 
> one empty (but two-cased) switch statement less.

Yeah, but the reason I'm removing the desc/tag pair isn't so much to get
rid of that (the compiler should do it for us) but because marking it
anything other than "skip" gives the impression that we want to allow
GC pointers in the union.

Richard



More information about the Gcc-patches mailing list