aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cgraphunit.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 656781e..2896c08 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-06-06 Eric Botcazou <ebotcazou@libertysurf.fr>
+
+ * cgraphunit.c (cgraph_decide_inlining): Adjust dump lines in
+ always_inline pass.
+
2004-06-05 David S. Miller <davem@nuts.davemloft.net>
* config/sparc/linux.h (TARGET_C99_FUNCTIONS): Set.
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index cbb924c..80fe8ce 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1482,7 +1482,7 @@ cgraph_decide_inlining (void)
if (cgraph_dump_file)
fprintf (cgraph_dump_file,
"\nConsidering %s %i insns (always inline)\n",
- cgraph_node_name (e->callee), e->callee->global.insns);
+ cgraph_node_name (node), node->global.insns);
old_insns = overall_insns;
for (e = node->callers; e; e = next)
{
@@ -1496,8 +1496,8 @@ cgraph_decide_inlining (void)
if (cgraph_dump_file)
fprintf (cgraph_dump_file,
" Inlined into %s which now has %i insns.\n",
- cgraph_node_name (node->callees->caller),
- node->callees->caller->global.insns);
+ cgraph_node_name (e->caller),
+ e->caller->global.insns);
}
if (cgraph_dump_file)
fprintf (cgraph_dump_file,