Re: build failure of -current for pc532

Ben Elliston <[email protected]> 01 Mar 2004 10:42:17 +1100
Newsgroups gmane.os.netbsd.ports.pc532
Message-ID <[email protected]>
Eyal Lebedinsky <[email protected]> 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