aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1999-10-17 23:21:41 +0000
committerJeff Law <law@redhat.com>1999-10-17 23:21:41 +0000
commit7a7191b720a22a575834fb8fa8b15ec224b30775 (patch)
treeaedded46c9f5a43909c080df8ce7473aedd40b94
parent476cdcb88ff3d7bc36f32b8a856d64a29243de9d (diff)
downloadgdb-7a7191b720a22a575834fb8fa8b15ec224b30775.zip
gdb-7a7191b720a22a575834fb8fa8b15ec224b30775.tar.gz
gdb-7a7191b720a22a575834fb8fa8b15ec224b30775.tar.bz2
* libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/libhppa.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6037a1c..134f41d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+Sun Oct 17 17:19:00 1999 Jeffrey A Law (law@cygnus.com)
+
+ * libhppa.h (bfd_hppa_insn2fmt): Change to return an int.
+
1999-10-08 Ian Lance Taylor <ian@zembu.com>
* elflink.h (elf_merge_symbol): When overriding a weak symbol with
diff --git a/bfd/libhppa.h b/bfd/libhppa.h
index 1518108..b971364 100644
--- a/bfd/libhppa.h
+++ b/bfd/libhppa.h
@@ -72,7 +72,7 @@ static INLINE void low_sign_unext (unsigned int, unsigned int, unsigned int *)
static INLINE unsigned long hppa_field_adjust (unsigned long, unsigned long,
unsigned short)
__attribute__ ((__unused__));
-static INLINE char bfd_hppa_insn2fmt (unsigned long)
+static INLINE int bfd_hppa_insn2fmt (unsigned long)
__attribute__ ((__unused__));
static INLINE unsigned long hppa_rebuild_insn (bfd *, unsigned long,
unsigned long, unsigned long)
@@ -579,11 +579,11 @@ hppa_field_adjust (value, constant_value, r_field)
FIXME: opcodes which do not map to a known format
should return an error of some sort. */
-static INLINE char
+static INLINE int
bfd_hppa_insn2fmt (insn)
unsigned long insn;
{
- char fmt = -1;
+ char int = -1;
unsigned char op = get_opcode (insn);
switch (op)