aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Eckhardt <jle@rice.edu>2003-07-30 21:10:12 +0000
committerJason Eckhardt <jle@rice.edu>2003-07-30 21:10:12 +0000
commit7f8a68cd1964e99259a193786bf73d400a14ecb0 (patch)
tree175a4f417fe71806d6931b08f751e189fcc34e9b
parentc48a845bff656d9f07bf53c0004bb0fed62891ae (diff)
downloadgdb-7f8a68cd1964e99259a193786bf73d400a14ecb0.zip
gdb-7f8a68cd1964e99259a193786bf73d400a14ecb0.tar.gz
gdb-7f8a68cd1964e99259a193786bf73d400a14ecb0.tar.bz2
2003-07-30 Jason Eckhardt <jle@rice.edu>
* i860-dis.c: Convert to ISO C90. Remove superflous prototypes.
-rw-r--r--opcodes/ChangeLog4
-rw-r--r--opcodes/i860-dis.c17
2 files changed, 7 insertions, 14 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index c470eb5..389dbef 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-30 Jason Eckhardt <jle@rice.edu>
+
+ * i860-dis.c: Convert to ISO C90. Remove superflous prototypes.
+
2003-07-30 Nick Clifton <nickc@redhat.com>
* po/ro.po: Updated Romanian translation.
diff --git a/opcodes/i860-dis.c b/opcodes/i860-dis.c
index a3e87b0..d95c7e9 100644
--- a/opcodes/i860-dis.c
+++ b/opcodes/i860-dis.c
@@ -44,10 +44,6 @@ static const char *const crnames[] =
"p0", "p1", "p2", "p3", "--", "--", "--", "--" };
-/* Prototypes. */
-static int sign_ext PARAMS((unsigned int, int));
-static void print_br_address PARAMS((disassemble_info *, bfd_vma, long));
-
/* True if opcode is xor, xorh, and, andh, or, orh, andnot, andnoth. */
#define BITWISE_OP(op) ((op) == 0x30 || (op) == 0x31 \
@@ -60,9 +56,7 @@ static void print_br_address PARAMS((disassemble_info *, bfd_vma, long));
/* Sign extend N-bit number. */
static int
-sign_ext (x, n)
- unsigned int x;
- int n;
+sign_ext (unsigned int x, int n)
{
int t;
t = x >> (n - 1);
@@ -74,10 +68,7 @@ sign_ext (x, n)
/* Print a PC-relative branch offset. VAL is the sign extended value
from the branch instruction. */
static void
-print_br_address (info, memaddr, val)
- disassemble_info *info;
- bfd_vma memaddr;
- long val;
+print_br_address (disassemble_info *info, bfd_vma memaddr, long val)
{
long adj = (long)memaddr + 4 + (val << 2);
@@ -96,9 +87,7 @@ print_br_address (info, memaddr, val)
/* Print one instruction. */
int
-print_insn_i860 (memaddr, info)
- bfd_vma memaddr;
- disassemble_info *info;
+print_insn_i860 (bfd_vma memaddr, disassemble_info *info)
{
bfd_byte buff[4];
unsigned int insn, i;