Re: RFC: handle cached local static DIEs

2014-12-11 Thread Jason Merrill
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)) == FUN

Re: RFC: handle cached local static DIEs

2014-12-11 Thread Aldy Hernandez
On 12/11/14 11:23, Jason Merrill wrote: 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)

Re: RFC: handle cached local static DIEs

2014-12-11 Thread Jason Merrill
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