From 8427c424251eeb9dfd53b39b54e77d6e8e7d4ba6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 7 Jul 2003 01:34:04 +0000 Subject: * ppc-opc.c: Remove NULL pointer checks. Formatting. Remove extraneous ATTRIBUTE_UNUSED. * ppc-dis.c (print_insn_powerpc): Always pass a valid address to operand->extract. --- opcodes/ppc-dis.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'opcodes/ppc-dis.c') diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index 3df7dc16b06..b8b8b1ad592 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -1,5 +1,6 @@ /* ppc-dis.c -- Disassemble PowerPC instructions - Copyright 1994, 1995, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1994, 1995, 2000, 2001, 2002, 2003 + Free Software Foundation, Inc. Written by Ian Lance Taylor, Cygnus Support This file is part of GDB, GAS, and the GNU binutils. @@ -214,7 +215,7 @@ print_insn_powerpc (memaddr, info, bigendian, dialect) /* Extract the value from the instruction. */ if (operand->extract) - value = (*operand->extract) (insn, dialect, (int *) NULL); + value = (*operand->extract) (insn, dialect, &invalid); else { value = (insn >> operand->shift) & ((1 << operand->bits) - 1); -- cgit v1.2.1