X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Fcp%2Fdecl2.c;h=e7fb0f5235aab67e26e2da405679146a506970f4;hb=960bfb6929fa5c463267b962b9ff9dabdb6df3f3;hp=212feeae313811b56028b10e7fc998f3edfd20e3;hpb=30d1ab7583da1d36deae5885fe9c92608cb6e929;p=gcc.git diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 212feeae313..e7fb0f5235a 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1898,7 +1898,7 @@ maybe_emit_vtables (tree ctype) { current = varpool_node (vtbl); if (last) - last->same_comdat_group = current; + last->symbol.same_comdat_group = (symtab_node) current; last = current; if (!first) first = current; @@ -1906,7 +1906,7 @@ maybe_emit_vtables (tree ctype) } if (first != last) - last->same_comdat_group = first; + last->symbol.same_comdat_group = (symtab_node)first; /* Since we're writing out the vtable here, also write the debug info. */ @@ -3491,7 +3491,7 @@ collect_candidates_for_java_method_aliases (void) for (node = cgraph_nodes; node ; node = node->next) { - tree fndecl = node->decl; + tree fndecl = node->symbol.decl; if (DECL_CONTEXT (fndecl) && TYPE_P (DECL_CONTEXT (fndecl)) @@ -3525,7 +3525,7 @@ build_java_method_aliases (struct pointer_set_t *candidates) for (node = cgraph_nodes; node ; node = node->next) { - tree fndecl = node->decl; + tree fndecl = node->symbol.decl; if (TREE_ASM_WRITTEN (fndecl) && pointer_set_contains (candidates, fndecl)) @@ -3706,7 +3706,7 @@ collect_all_refs (const char *source_file) static bool clear_decl_external (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED) { - DECL_EXTERNAL (node->decl) = 0; + DECL_EXTERNAL (node->symbol.decl) = 0; return false; } @@ -3945,10 +3945,10 @@ cp_write_global_declarations (void) /* If we mark !DECL_EXTERNAL one of the symbols in some comdat group, we need to mark all symbols in the same comdat group that way. */ - if (node->same_comdat_group) - for (next = node->same_comdat_group; + if (node->symbol.same_comdat_group) + for (next = cgraph (node->symbol.same_comdat_group); next != node; - next = next->same_comdat_group) + next = cgraph (next->symbol.same_comdat_group)) cgraph_for_node_and_aliases (next, clear_decl_external, NULL, true); }