aboutsummaryrefslogtreecommitdiff
path: root/bfd/ieee.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-12 16:23:25 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-12 16:23:25 +0000
commitae115e5114deb0326333c80f7af9e689b2e7d01f (patch)
tree2c592646411768ec9a95b17070181cb5b068cf9c /bfd/ieee.c
parentd8586e35caeb6ffea7058bce844023ec19140cc7 (diff)
downloadgdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.zip
gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.tar.gz
gdb-ae115e5114deb0326333c80f7af9e689b2e7d01f.tar.bz2
Extensive minor changes to avoid various gcc warnings. Also:
* Makefile.in (BFD32_BACKENDS): Remove coff-arm.o. * archures.c (bfd_arch_info_type): Change mach field from long to unsigned long. (bfd_lookup_arch): Change machine parameter from long to unsigned long.
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r--bfd/ieee.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c
index fc4be70..4256ffd 100644
--- a/bfd/ieee.c
+++ b/bfd/ieee.c
@@ -543,7 +543,8 @@ parse_expression (ieee, value, symbol, pcrel, extra, section)
#define ieee_seek(abfd, offset) \
IEEE_DATA(abfd)->h.input_p = IEEE_DATA(abfd)->h.first_byte + offset
-#define ieee_pos(abfd) IEEE_DATA(abfd)->h.input_p -IEEE_DATA(abfd)->h.first_byte
+#define ieee_pos(abfd) \
+ (IEEE_DATA(abfd)->h.input_p - IEEE_DATA(abfd)->h.first_byte)
static unsigned int last_index;
static char last_type; /* is the index for an X or a D */
@@ -1133,7 +1134,7 @@ ieee_archive_p (abfd)
/* Make sure that we don't go over the end of the buffer */
- if (ieee_pos (abfd) > sizeof (buffer) / 2)
+ if ((size_t) ieee_pos (abfd) > sizeof (buffer) / 2)
{
/* Past half way, reseek and reprime */
buffer_offset += ieee_pos (abfd);
@@ -1936,7 +1937,7 @@ do_with_relocs (abfd, s)
bfd_set_error (bfd_error_no_memory);
return false;
}
- memset ((PTR) stream, 0, s->_raw_size);
+ memset ((PTR) stream, 0, (size_t) s->_raw_size);
}
while (current_byte_index < s->_raw_size)
{
@@ -2116,7 +2117,7 @@ flush ()
{
if (bfd_write ((PTR) (output_ptr_start), 1, output_ptr - output_ptr_start,
output_bfd)
- != output_ptr - output_ptr_start)
+ != (bfd_size_type) (output_ptr - output_ptr_start))
abort ();
output_ptr = output_ptr_start;
output_buffer++;