aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-12 16:39:12 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-12 16:39:12 +0000
commit746cffcf6adbda2a7a69f783ac97c84e25f089fd (patch)
tree119af4e3f0c6347804f0b3cbcbe87b42aa06ed42 /binutils
parentb75d0928b1562f84d27910ceddf43fd7b12364c6 (diff)
downloadgdb-746cffcf6adbda2a7a69f783ac97c84e25f089fd.zip
gdb-746cffcf6adbda2a7a69f783ac97c84e25f089fd.tar.gz
gdb-746cffcf6adbda2a7a69f783ac97c84e25f089fd.tar.bz2
* objdump.c (disassemble_data): Add casts to avoid gcc warnings.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/objdump.c10
2 files changed, 9 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index e10af9f..84ca36b 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+Tue Sep 12 12:37:39 1995 Ian Lance Taylor <ian@cygnus.com>
+
+ * objdump.c (disassemble_data): Add casts to avoid gcc warnings.
+
Thu Sep 7 12:12:17 1995 Ian Lance Taylor <ian@cygnus.com>
* config.in: Rename from config.h.in.
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 3114852..64cba47 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -18,7 +18,6 @@ along with this program; if not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "bfd.h"
-#include "sysdep.h"
#include "getopt.h"
#include "progress.h"
#include "bucomm.h"
@@ -31,8 +30,9 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define BYTES_IN_WORD 32
#include "aout/aout64.h"
-#ifndef FPRINTF_ALREADY_DECLARED
-extern int fprintf PARAMS ((FILE *, CONST char *, ...));
+#ifdef NEED_DECLARATION_FPRINTF
+/* This is needed by INIT_DISASSEMBLE_INFO. */
+extern int fprintf ();
#endif
char *default_target = NULL; /* default at runtime */
@@ -870,8 +870,8 @@ disassemble_data (abfd)
&& (section->flags & SEC_RELOC) != 0)
{
while (relpp < relppend
- && ((*relpp)->address >= i
- && (*relpp)->address < i + bytes))
+ && ((*relpp)->address >= (bfd_vma) i
+ && (*relpp)->address < (bfd_vma) i + bytes))
{
arelent *q;
const char *sym_name;