From 9477ccb2b1e059f639abf2483893f2b950d34fed Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl@gcc.gnu.org>
Date: Fri, 23 Jul 2010 07:37:21 -0700
Subject: [PATCH] Cast to unsigned long.

2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>

	PR bootstrap/45042
	* lto-plugin.c (translate): Cast to unsigned long.

From-SVN: r162465
---
 lto-plugin/ChangeLog    | 7 ++++++-
 lto-plugin/lto-plugin.c | 3 ++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index a8f7461298c2..e3e965371c44 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,4 +1,9 @@
-2010-07-10   Andi Kleen <ak@linux.intel.com>
+2010-07-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR bootstrap/45042
+	* lto-plugin.c (translate): Cast to unsigned long.
+
+2010-07-23   Andi Kleen <ak@linux.intel.com>
 
 	PR lto/44992
 	* lto-plugin.c (sym_aux): Add.
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 314759bc4621..f2ca90ccf743 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -212,7 +212,8 @@ translate (Elf_Data *symtab, struct plugin_symtab *out)
       data = parse_table_entry (data, &syms[n], &aux[n]);
     }
 
-  fprintf (stderr, "n = %d len = %d end-data=%lu\n", n, len, end-data);
+  fprintf (stderr, "n = %d len = %d end-data=%lu\n", n, len,
+	   (unsigned long) (end - data));
   assert(n < len);
 
   out->nsyms = n;
-- 
GitLab