Add nbits = 0 case to copy_bits to compensate for division bug in gcc.
authorGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Thu, 20 Sep 1990 03:02:26 +0000 (03:02 +0000)
committerGuillermo J. Rozas <edu/mit/csail/zurich/gjr>
Thu, 20 Sep 1990 03:02:26 +0000 (03:02 +0000)
commitd337a1c8b940dfcd1bcf2cad5bd6475d4c2b6192
treeccead335387b90d68637485e995bf383d340cf1d
parentf59b0e2946fc27311326b261e7fb2ee782c4a0ec
Add nbits = 0 case to copy_bits to compensate for division bug in gcc.
The bug arises when dividing by OBJECT_LENGTH inside
BIT_STRING_INDEX_TO_WORD.  The division is optimized into an unsigned
left shift that works for non-negative values, but not for -1, used
when the number of bits is 0!
v7/src/microcode/bitstr.c