summaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-23 14:37:21 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-23 14:37:21 +0000
commit6c359b3cc2eef224fc0af22432d32736b62eb0ce (patch)
tree8db7b6242f7f55b992e2167d7b726d991c186f89 /lto-plugin
parentf739ab33426870e999f7bee9aeb0c5c68daf49a0 (diff)
downloadgcc-6c359b3cc2eef224fc0af22432d32736b62eb0ce.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/ChangeLog7
-rw-r--r--lto-plugin/lto-plugin.c3
2 files changed, 8 insertions, 2 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index a8f7461298c..e3e965371c4 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 314759bc462..f2ca90ccf74 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;