Subject: Re: build failure of -current for pc532
To: None <port-pc532@netbsd.org>
From: Ben Elliston <bje@wasabisystems.com>
List: port-pc532
Date: 03/01/2004 10:42:17
Eyal Lebedinsky <eyal@eyal.emu.id.au> writes:

> @@ -1640,9 +1640,9 @@
>    /* Build a hashtable of the instructions.  */
>    const struct ns32k_opcode *ptr;
>    const char *stat;
> -  inst_hash_handle = hash_new ();
>    const struct ns32k_opcode *endop;
>  
> +  inst_hash_handle = hash_new ();
>    endop = ns32k_opcodes + sizeof (ns32k_opcodes) / sizeof (ns32k_opcodes[0]);
>    for (ptr = ns32k_opcodes; ptr < endop; ptr++)
>      {

I just checked and the FSF binutils tree never had this problem.  It has:

  const struct ns32k_opcode *ptr;
  const char *stat;
  const struct ns32k_opcode *endop;

  inst_hash_handle = hash_new ();

  endop = ns32k_opcodes + sizeof (ns32k_opcodes) / sizeof (ns32k_opcodes[0]);

I suspect a merge botch in the NetBSD tree.

Cheers, Ben