diff options
Diffstat (limited to 'gcc/tree-nested.c')
-rw-r--r-- | gcc/tree-nested.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/tree-nested.c b/gcc/tree-nested.c index 433f37f..788883f 100644 --- a/gcc/tree-nested.c +++ b/gcc/tree-nested.c @@ -45,6 +45,7 @@ #include "alloc-pool.h" #include "tree-nested.h" #include "symbol-summary.h" +#include "symtab-thunks.h" /* Summary of nested functions. */ static function_summary <nested_function_info *> @@ -937,7 +938,7 @@ create_nesting_tree (struct cgraph_node *cgn) info->mem_refs = new hash_set<tree *>; info->suppress_expansion = BITMAP_ALLOC (&nesting_info_bitmap_obstack); info->context = cgn->decl; - info->thunk_p = cgn->thunk.thunk_p; + info->thunk_p = cgn->thunk; for (cgn = first_nested_function (cgn); cgn; cgn = next_nested_function (cgn)) @@ -3047,7 +3048,7 @@ convert_all_function_calls (struct nesting_info *root) if (n->thunk_p) { tree decl = n->context; - tree alias = cgraph_node::get (decl)->thunk.alias; + tree alias = thunk_info::get (cgraph_node::get (decl))->alias; DECL_STATIC_CHAIN (decl) = DECL_STATIC_CHAIN (alias); } @@ -3083,7 +3084,7 @@ convert_all_function_calls (struct nesting_info *root) if (n->thunk_p) { tree decl = n->context; - tree alias = cgraph_node::get (decl)->thunk.alias; + tree alias = thunk_info::get (cgraph_node::get (decl))->alias; DECL_STATIC_CHAIN (decl) = DECL_STATIC_CHAIN (alias); } } @@ -3638,7 +3639,7 @@ gimplify_all_functions (struct cgraph_node *root) gimplify_function_tree (root->decl); for (iter = first_nested_function (root); iter; iter = next_nested_function (iter)) - if (!iter->thunk.thunk_p) + if (!iter->thunk) gimplify_all_functions (iter); } |