In gcc-4.6.0 cgraph.c: - /* Return local info for the compiled function. */ + /* Return global info for the compiled function. */ struct cgraph_global_info * cgraph_global_info (tree decl) { struct cgraph_node *node; gcc_assert (TREE_CODE (decl) == FUNCTION_DECL && cgraph_global_info_ready); node = cgraph_node (decl); return &node->global; } - /* Return local info for the compiled function. */ + /* Return rtl info for the compiled function. */ struct cgraph_rtl_info * cgraph_rtl_info (tree decl) { struct cgraph_node *node; gcc_assert (TREE_CODE (decl) == FUNCTION_DECL); node = cgraph_node (decl); if (decl != current_function_decl && !TREE_ASM_WRITTEN (node->decl)) return NULL; return &node->rtl; }
Lemme fix that..
Fixed in master, note cgraph_global_info is gone.