On 12/11/2014 02:19 PM, Jason Merrill wrote:
On 12/11/2014 12:44 PM, Aldy Hernandez wrote:
This context then gets changed here:
/* For local statics lookup proper context die. */
if (TREE_STATIC (decl)
&& DECL_CONTEXT (decl)
&& TREE_CODE (DECL_CONTEXT (decl)) == FUNCTION_DECL)
context_die = lookup_decl_die (DECL_CONTEXT (decl));
Can we remove this and just leave the context as NULL until it gets
fixed up?
Never mind, it looks like that'll require more work in gen_variable_die.
Your patch looks fine.
Jason