[PATCH] Disallow inlining if static vars in that function contain addresses of that function's labels (PR tree-optimization/29484)

Mark Mitchell mark@codesourcery.com
Sun Dec 30 20:28:00 GMT 2007


Joseph S. Myers wrote:
> On Wed, 26 Dec 2007, Mark Mitchell wrote:
> 
>> would succeed.  Function pointers are guaranteed unique, and labels seem
>> quite similar at first blush, though I understand that they can only be
>> used from within the function itself.
>>
>> Joseph, as a C maintainer, what do you think about this?
> 
> Existing practice for this extension has the labels only valid for 
> computed goto, with the actual values unspecified and no requirements for 
> comparability.

OK, it sounds like everyone agrees that the intended semantics are as
Jakub suggests.  Jakub, would you mind updating the documentation to
reflect that?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list