Re: test failure on FreeBSD 12.0

2020-05-03 Thread Paul Eggert
On 5/2/20 6:06 PM, Bruno Haible wrote: > The attached patch (for the 'branch-1.4' branch) fixes the issue. I think the actual bug lies elsewhere: m4 is written as if int32_t arithmetic wraps around silently, but that's not what C does. If I'm right, the bug is not in the FreeBSD C compiler, it's i

Re: test failure on FreeBSD 12.0

2020-05-03 Thread Bruno Haible
Hi Paul, > > The attached patch (for the 'branch-1.4' branch) fixes the issue. > > I think the actual bug lies elsewhere: m4 is written as if int32_t arithmetic > wraps around silently, but that's not what C does. If I'm right, the bug is > not > in the FreeBSD C compiler, it's in m4. OK, let's

test failure on AIX

2020-05-03 Thread Bruno Haible
On AIX 7.2, the m4-1.4.18 build fails in "make check": Checking ../../checks/006.command_li @ ../doc/m4.texi:1000: Origin of test ../../checks/006.command_li: stderr mismatch --- m4-tmp.23068986/m4-xerr 2020-05-03 06:30:35.0 -0500 +++ m4-tmp.23068986/m4-err 2020-05-03 06:30:35.000

Re: test failure on FreeBSD 12.0

2020-05-03 Thread Paul Eggert
On 5/3/20 2:58 AM, Bruno Haible wrote: > Unfortunately, this patch does not fix the test failure on FreeBSD 12.0. There are some other places where the m4 code assumes wrapv arithmetic (or worse, where it messes up in other ways on integer overflow). Attached is a patch that fixes some of the prob