diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 35c5e7a473a01f9ad4350e18531d79e0c8ddf5d1..4c73ad81454ea0b51f3d53870dc9dd68fba3d7b3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-27  Dirk Mueller  <dmueller@suse.de>
+
+	* cgraphunit.c (decide_is_function_needed): Fix wrong
+	PR reference.
+
 2006-05-26  Ulrich Weigand  <uweigand@de.ibm.com>
 
 	PR rtl-optimization/27661
@@ -974,7 +979,7 @@
 
 2006-05-08  Jan Hubicka  <jh@suse.cz>
 
-	PR middle-end/25962
+	PR middle-end/24561
 	* cgraphunit.c (decide_is_function_needed): When not optimizing even
 	unused static functions are needed.
 
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 8a4d0ec69eb2658303d595d2661f4cd4d9b3506b..4cb88430820dad3dd3333462776fb3d3a8c3b61e 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -219,7 +219,7 @@ decide_is_function_needed (struct cgraph_node *node, tree decl)
      COMDAT functions that must be output only when they are needed.
 
      When not optimizing, also output the static functions. (see
-     PR25962), but don't do so for always_inline functions, functions
+     PR24561), but don't do so for always_inline functions, functions
      declared inline and nested functions.  These was optimized out
      in the original implementation and it is unclear whether we want
      to change the behaviour here.  */