Re: [PATCH] Remove current_function_decl usage from get_polymorphic_call_info

2014-08-15 Thread Jan Hubicka
> Hi, > > Testing 'mpx' branch after merge with trunk I got a segfault in ipa-devirt.c. > It appears that cgraph_node cloning with indirect edge causes call to > get_polymorphic_call_info which uses current_function_decl. It happens in > IPA pass and therefore current_function_decl is NULL wh

Re: [PATCH] Remove current_function_decl usage from get_polymorphic_call_info

2014-08-13 Thread Richard Biener
On Wed, Aug 13, 2014 at 4:17 PM, Ilya Enkovich wrote: > Hi, > > Testing 'mpx' branch after merge with trunk I got a segfault in ipa-devirt.c. > It appears that cgraph_node cloning with indirect edge causes call to > get_polymorphic_call_info which uses current_function_decl. It happens in > I

[PATCH] Remove current_function_decl usage from get_polymorphic_call_info

2014-08-13 Thread Ilya Enkovich
Hi, Testing 'mpx' branch after merge with trunk I got a segfault in ipa-devirt.c. It appears that cgraph_node cloning with indirect edge causes call to get_polymorphic_call_info which uses current_function_decl. It happens in IPA pass and therefore current_function_decl is NULL which causes s