From c3382fba044e3329de8822ffb8751163642b5c7b Mon Sep 17 00:00:00 2001
From: Bernhard Fischer <aldot@gcc.gnu.org>
Date: Mon, 18 Sep 2006 00:13:26 +0200
Subject: [PATCH] dg-cmp-results.sh (compare-$$.awk): Print name[old] and not
 non-existing nm[old].

2006-09-18  Bernhard Fischer  <aldot@gcc.gnu.org>

	* dg-cmp-results.sh (compare-$$.awk): Print name[old]
	and not non-existing nm[old].

From-SVN: r117006
---
 contrib/ChangeLog         | 5 +++++
 contrib/dg-cmp-results.sh | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 35d29b96f126..c0b3f98ca620 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-18  Bernhard Fischer  <aldot@gcc.gnu.org>
+
+	* dg-cmp-results.sh (compare-$$.awk): Print name[old]
+	and not non-existing nm[old].
+
 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
 
 	Port to hosts whose 'sort' and 'tail' implementations
diff --git a/contrib/dg-cmp-results.sh b/contrib/dg-cmp-results.sh
index f5a4f09a616b..753005db2048 100755
--- a/contrib/dg-cmp-results.sh
+++ b/contrib/dg-cmp-results.sh
@@ -135,7 +135,7 @@ function compare(st, nm) {
 	# Compare this new test to the first queued old one.
 	if (verbose >= 4) {
 	    printf("Comparing two lines:\n O:%s:%s\n N:%s:%s\n",
-	     status[old], nm[old], st, nm)
+	     status[old], name[old], st, nm)
 	}
         if (name[old] != nm) {
 	    # The old test wasn't run this time and