Fix partition WRT static variables taking address of labels

Jason Merrill jason@redhat.com
Mon Mar 30 14:05:00 GMT 2015


On 03/30/2015 05:32 AM, Richard Biener wrote:
> IMHO that's bogus.  But I thought we decided that functions with
> non-local labels shouldn't be cloned?

Yes, why isn't copy_forbidden flagging this function?  It has a check 
for exactly this situation.

> And cloning static vars looks bogus
> as well as the addresses of the vars need to compare equal

We aren't cloning the static var, that's why its decl_function_context 
is the abstract function.

Jason



More information about the Gcc-patches mailing list