Fix partition WRT static variables taking address of labels
Jason Merrill
jason@redhat.com
Mon Mar 30 18:44:00 GMT 2015
On 03/30/2015 02:36 PM, Jan Hubicka wrote:
> Will there be only one copy even on targets that do not support aliases?
Yes, on those targets we use thunks.
> Still, it would be great if we can make context to be the actual function.
That sounds messy.
> Otherwise I will need to figure out some way to represent the link in between
> static variable and function it takes label of...
Check DECL_ORIGIN of the label's function?
Jason
More information about the Gcc-patches
mailing list