This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Last argument of lang_hooks_for_callgraph.analzye_tree unused?
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "Jan Hubicka" <jh at suse dot cz>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 1 Nov 2007 11:32:20 -0400
- Subject: Last argument of lang_hooks_for_callgraph.analzye_tree unused?
Jan, I'm converting the call graph builder code for tuples and in the
process I ran into calls to lang_hooks.callgraph.analyze_expr(). From
what I've seen:
1- The third argument to that function (DECL), is not used by any callback.
2- In fact, if it was used, we'd ICE because the function signature expects
a tree and we are calling it with a callgraph node.
I'm tempted to just delete the argument. Unless you have a future use for it?
Thanks.