This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix compile time warning building RX target.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 9 Dec 2015 12:05:25 -0000
- Subject: [binutils-gdb] Fix compile time warning building RX target.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c192dad24398767edd64ab7e5e3a72df9265bda0
commit c192dad24398767edd64ab7e5e3a72df9265bda0
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Dec 9 12:01:19 2015 +0000
Fix compile time warning building RX target.
Diff:
---
gas/ChangeLog | 4 ++++
gas/config/tc-rx.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4dcb9cd..c08c8b3 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-09 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-rx.c (rx_relax_frag): Fix compile time warning.
+
2015-12-08 Jan Beulich <jbeulich@suse.com>
* read.c (in_bss): New.
diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c
index 4697e95..82e94a7 100644
--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -1552,7 +1552,7 @@ rx_relax_frag (segT segment ATTRIBUTE_UNUSED, fragS * fragP, long stretch)
if (fragP->fr_subtype >= next_size)
fragP->fr_subtype = 0;
tprintf ("\033[34m -> mypc %lu next_size %u new %d old %d delta %d (fetchalign)\033[0m\n",
- mypc & 7,
+ (unsigned long) (mypc & 7),
next_size, fragP->fr_subtype, oldsize, fragP->fr_subtype-oldsize);
newsize = fragP->fr_subtype;