Silly bug in tc-i386.c

Daniel Jacobowitz drow@mvista.com
Wed Jul 2 20:13:00 GMT 2003


In tc_x86_regname_to_dw2regnum:

      regnames_count = sizeof (regnames_32);


  for (regnum = 0; regnum < regnames_count; regnum++)
    if (strcmp (regname, regnames[regnum]) == 0)
      return regnum;

There's a missing '/ sizeof (regnames[0])' there...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list