+2019-10-31 Martin Liska <mliska@suse.cz>
+
+ * config/arm/arm.c (arm_get_pcs_model): Remove usage
+ of cgraph_local_info and use local_info_node instead.
+ * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
+ (bfin_function_ok_for_sibcall): Likewise.
+ * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
+ (must_reload_pic_reg_p): Likewise.
+
2019-10-31 Jakub Jelinek <jakub@redhat.com>
PR c++/90947
so we are free to use whatever conventions are
appropriate. */
/* FIXME: remove CONST_CAST_TREE when cgraph is constified. */
- cgraph_local_info *i = cgraph_node::local_info (CONST_CAST_TREE(decl));
- if (i && i->local)
+ cgraph_node *local_info_node
+ = cgraph_node::local_info_node (CONST_CAST_TREE (decl));
+ if (local_info_node && local_info_node->local)
return ARM_PCS_AAPCS_LOCAL;
}
}
static rtx
bfin_load_pic_reg (rtx dest)
{
- struct cgraph_local_info *i = NULL;
rtx addr;
-
- i = cgraph_node::local_info (current_function_decl);
-
+
+ cgraph_node *local_info_node
+ = cgraph_node::local_info_node (current_function_decl);
+
/* Functions local to the translation unit don't need to reload the
pic reg, since the caller always passes a usable one. */
- if (i && i->local)
+ if (local_info_node && local_info_node->local)
return pic_offset_table_rtx;
if (global_options_set.x_bfin_library_id)
bfin_function_ok_for_sibcall (tree decl ATTRIBUTE_UNUSED,
tree exp ATTRIBUTE_UNUSED)
{
- struct cgraph_local_info *this_func, *called_func;
+ cgraph_node *this_func, *called_func;
e_funkind fkind = funkind (TREE_TYPE (current_function_decl));
if (fkind != SUBROUTINE)
return false;
if (!decl)
/* Not enough information. */
return false;
-
- this_func = cgraph_node::local_info (current_function_decl);
- called_func = cgraph_node::local_info (decl);
+
+ this_func = cgraph_node::local_info_node (current_function_decl);
+ called_func = cgraph_node::local_info_node (decl);
if (!called_func)
return false;
return !called_func->local || this_func->local;
/* When compiling for DSBT, the calling function must be local,
so that when we reload B14 in the sibcall epilogue, it will
not change its value. */
- struct cgraph_local_info *this_func;
if (!decl)
/* Not enough information. */
return false;
- this_func = cgraph_node::local_info (current_function_decl);
+ cgraph_node *this_func
+ = cgraph_node::local_info_node (current_function_decl);
return this_func->local;
}
static bool
must_reload_pic_reg_p (void)
{
- struct cgraph_local_info *i = NULL;
-
if (!TARGET_DSBT)
return false;
- i = cgraph_node::local_info (current_function_decl);
-
- if ((crtl->uses_pic_offset_table || !crtl->is_leaf) && !i->local)
+ cgraph_node *local_info_node
+ = cgraph_node::local_info_node (current_function_decl);
+ if ((crtl->uses_pic_offset_table || !crtl->is_leaf)
+ && !local_info_node->local)
return true;
return false;
}