aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphbuild.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2007-11-02 07:12:30 -0400
committerDiego Novillo <dnovillo@gcc.gnu.org>2007-11-02 07:12:30 -0400
commitc4e622b658b4cdf6cf75c783aade44f53ce0b4b6 (patch)
treec14fee97147f36fd4337182298671d592eaed5cb /gcc/cgraphbuild.c
parentef3b7b176100495d541b40439b1f3b9e672d071d (diff)
downloadgcc-c4e622b658b4cdf6cf75c783aade44f53ce0b4b6.zip
gcc-c4e622b658b4cdf6cf75c783aade44f53ce0b4b6.tar.gz
gcc-c4e622b658b4cdf6cf75c783aade44f53ce0b4b6.tar.bz2
langhooks.h (struct lang_hooks_for_callgraph): Remove third argument from function pointer ANALYZE_EXPR.
* langhooks.h (struct lang_hooks_for_callgraph): Remove third argument from function pointer ANALYZE_EXPR. Update all users. * cgraph.c (debug_cgraph_node): New. (debug_cgraph): New. From-SVN: r129845
Diffstat (limited to 'gcc/cgraphbuild.c')
-rw-r--r--gcc/cgraphbuild.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cgraphbuild.c b/gcc/cgraphbuild.c
index 1e3e5da..2f8d3b0 100644
--- a/gcc/cgraphbuild.c
+++ b/gcc/cgraphbuild.c
@@ -35,7 +35,7 @@ along with GCC; see the file COPYING3. If not see
Called via walk_tree: TP is pointer to tree to be examined. */
static tree
-record_reference (tree *tp, int *walk_subtrees, void *data)
+record_reference (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED)
{
tree t = *tp;
@@ -46,8 +46,7 @@ record_reference (tree *tp, int *walk_subtrees, void *data)
{
varpool_mark_needed_node (varpool_node (t));
if (lang_hooks.callgraph.analyze_expr)
- return lang_hooks.callgraph.analyze_expr (tp, walk_subtrees,
- data);
+ return lang_hooks.callgraph.analyze_expr (tp, walk_subtrees);
}
break;
@@ -73,7 +72,7 @@ record_reference (tree *tp, int *walk_subtrees, void *data)
}
if ((unsigned int) TREE_CODE (t) >= LAST_AND_UNUSED_TREE_CODE)
- return lang_hooks.callgraph.analyze_expr (tp, walk_subtrees, data);
+ return lang_hooks.callgraph.analyze_expr (tp, walk_subtrees);
break;
}