diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 39f7cd74cbc14f4961b2a8583ca36a548572bb42..f24894038554a1ef0efb6746a866d07e8b2b0ee5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	PR testsuite/23239
+	* gcc.dg/tree-prof/val-prof-5.c: Fix scan-tree-dump regexp.
+
 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
 
 	* gcc.dg/20050811-1.c: New test.
diff --git a/gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c b/gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c
index 41a43c3a965c962d2750d2138c120ba4a6003c1d..095fb06b4613c6df1186e03746230219c17fe930 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/val-prof-5.c
@@ -11,7 +11,7 @@ main()
 			a[i]/=b;
 	return 0;
 }
-/* { dg-final-use { scan-tree-dump "Div.mod by constant b..=997 transformation on insn" "tree_profile"} } */
+/* { dg-final-use { scan-tree-dump "Div.mod by constant b.*=997 transformation on insn" "tree_profile"} } */
 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
 /* { dg-final-use { cleanup-tree-dump "optimized" } } */
 /* { dg-final-use { cleanup-tree-dump "tree_profile" } } */