From c005c66cca2fd392f49a29861001bcc413cc7050 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 26 Sep 1992 05:41:54 +0000 Subject: * i960-pinsn.c: Change bzero to memset. * sparc-pinsn.c: Change index to strchr. --- binutils/ChangeLog | 10 ++++++++++ binutils/i960-pinsn.c | 4 ++-- binutils/sparc-pinsn.c | 8 ++++---- 3 files changed, 16 insertions(+), 6 deletions(-) (limited to 'binutils') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index bfe2e60..4254b54 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,13 @@ +Fri Sep 25 22:41:08 1992 John Gilmore (gnu@cygnus.com) + + * i960-pinsn.c: Change bzero to memset. + * sparc-pinsn.c: Change index to strchr. + +Mon Sep 21 14:39:56 1992 Ian Lance Taylor (ian@cygnus.com) + + * m68k-pinsn (print_insn_arg, fetch_arg): added support for + operands to memory management instructions, from WRS. + Tue Sep 15 15:26:38 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in (install): if $(tooldir) exists, install nm and diff --git a/binutils/i960-pinsn.c b/binutils/i960-pinsn.c index 25acb1f..107bed8 100644 --- a/binutils/i960-pinsn.c +++ b/binutils/i960-pinsn.c @@ -321,7 +321,7 @@ mem( memaddr, word1, word2, noprint ) if ( mem_tab == NULL ){ mem_tab = (struct tabent *) xmalloc( MEM_SIZ ); - bzero( (void *) mem_tab, MEM_SIZ ); + memset( (void *) mem_tab, 0, MEM_SIZ ); for ( i = 0; mem_init[i].opcode != 0; i++ ){ j = mem_init[i].opcode - MEM_MIN; mem_tab[j].name = mem_init[i].name; @@ -579,7 +579,7 @@ reg( word1 ) if ( reg_tab == NULL ){ reg_tab = (struct tabent *) xmalloc( REG_SIZ ); - bzero( (void *) reg_tab, REG_SIZ ); + memset( (void *) reg_tab, 0, REG_SIZ ); for ( i = 0; reg_init[i].opcode != 0; i++ ){ j = reg_init[i].opcode - REG_MIN; reg_tab[j].name = reg_init[i].name; diff --git a/binutils/sparc-pinsn.c b/binutils/sparc-pinsn.c index a512c77..b639d86 100644 --- a/binutils/sparc-pinsn.c +++ b/binutils/sparc-pinsn.c @@ -162,12 +162,12 @@ memcpy(&insn,buffer, sizeof (insn)); && insn.rs1 == insn.rd) imm_added_to_rs1 = 1; - if (index (opcode->args, 'S') != 0) + if (strchr (opcode->args, 'S') != 0) /* Reject the special case for `set'. The real `sethi' will match. */ continue; if (insn.rs1 != insn.rd - && index (opcode->args, 'r') != 0) + && strchr (opcode->args, 'r') != 0) /* Can't do simple format if source and dest are different. */ continue; @@ -557,8 +557,8 @@ compare_opcodes (a, b) /* Put 1+i before i+1. */ { - char *p0 = (char *) index(op0->args, '+'); - char *p1 = (char *) index(op1->args, '+'); + char *p0 = (char *) strchr(op0->args, '+'); + char *p1 = (char *) strchr(op1->args, '+'); if (p0 && p1) { -- cgit v1.1