15 Mar
2023
15 Mar
'23
11:07 p.m.
Hi Richy,
Unfortunately, when I build this with CC="gcc -ftrapv" CXX="g++ -ftrapv", I find that it invokes undefined behaviour (due to signed integer overflow during left-shifting). It means that compilers can miscompile this code as they see fit. The fix is to change the bit() macro. Of course I would like to do this fix before the next release. But before doing that, I need to increase the test coverage (more 'exam_*' tests), to make sure that the change doesn't break things. Then only I'll test on the umpteen various architectures. It will take a couple of weeks (because I'm also busy with other packages). Bruno