Nick Clifton wrote:
> > Shifting into and out of the sign bit of an integer is undefined,
> > and this loop unconditionally does both. The below patch should fix
> > it.
>
> Patch approved and applied. Thanks for reporting this.
Thanks!
This idiom also appears in newlib and in various versions
Shifting into and out of the sign bit of an integer is undefined, and
this loop unconditionally does both. The below patch should fix it. My
analysis here applies:
https://marc.info/?l=openbsd-tech&m=145377854103866&w=2
Thanks for your time,
Michael
diff --git a/opcodes/cgen-dis.c b/opcodes/cge