aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.h
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2019-11-20 20:54:31 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2019-11-20 20:54:31 +0000
commitc013852d6138f35314ea14f5772f57a975064d4d (patch)
tree83fb65f82b6e23672eb2a171f303d5c3f4803fcd /gcc/function.h
parentaeebd94c77c45cd60d44b87a00403cbe1edd8e62 (diff)
downloadgcc-c013852d6138f35314ea14f5772f57a975064d4d.zip
gcc-c013852d6138f35314ea14f5772f57a975064d4d.tar.gz
gcc-c013852d6138f35314ea14f5772f57a975064d4d.tar.bz2
drop attempt to reuse cgraph callees for -fcallgraph-info
The information in cgraph callees is released long before we get to the point in which -fcallgraph-info edges are dumped, or even expanded. It doesn't make sense to retain it longer: the edges created for -fcallgraph-info are much smaller, and they don't even coexist, so not even peak use grows. for gcc/ChangeLog * function.h (CALLEE_FROM_CGRAPH_P): Remove. * function.c (record_final_call): Record even calls that might have been in the cgraph. * toplev.c (dump_final_node_vcg): Skip iteration over cgraph callees. From-SVN: r278529
Diffstat (limited to 'gcc/function.h')
-rw-r--r--gcc/function.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/function.h b/gcc/function.h
index 14794c4..beb5c7d 100644
--- a/gcc/function.h
+++ b/gcc/function.h
@@ -192,15 +192,12 @@ public:
poly_int64 length;
};
-/* Describe emitted builtin calls for -fcallgraph-info. Those that
- are not builtin are taken from cgraph edges. */
+/* Describe emitted calls for -fcallgraph-info. */
struct GTY(()) callinfo_callee
{
location_t location;
tree decl;
};
-#define CALLEE_FROM_CGRAPH_P(T) \
- (!fndecl_built_in_p (T) && !DECL_IS_BUILTIN (T))
/* Describe dynamic allocation for -fcallgraph-info=da. */
struct GTY(()) callinfo_dalloc