This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix wrong refactoring in cgraph_node::function_symbol
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Ilya Enkovich <enkovich dot gnu at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Aug 2014 20:51:06 +0200
- Subject: Re: [PATCH] Fix wrong refactoring in cgraph_node::function_symbol
- Authentication-results: sourceware.org; auth=none
- References: <20140813122549 dot GA29331 at msticlxl57 dot ims dot intel dot com>
> 2014-08-13 Ilya Enkovich <ilya.enkovich@intel.com>
>
> * cgraph.c (cgraph_node::function_symbol): Fix wrong
> cgraph_function_node to cgraph_node::function_symbol
> refactoring.
OK, thanks1
Honza
>
> diff --git a/gcc/cgraph.c b/gcc/cgraph.c
> index 5a0b903..370a96a 100644
> --- a/gcc/cgraph.c
> +++ b/gcc/cgraph.c
> @@ -3000,11 +3000,11 @@ cgraph_node::verify_cgraph_nodes (void)
> cgraph_node *
> cgraph_node::function_symbol (enum availability *availability)
> {
> - cgraph_node *node = NULL;
> + cgraph_node *node = this;
>
> do
> {
> - node = ultimate_alias_target (availability);
> + node = node->ultimate_alias_target (availability);
> if (node->thunk.thunk_p)
> {
> node = node->callees->callee;