On Mar 22, 2015, at 14:36, Dimitry Andric d...@freebsd.org wrote:
On 22 Mar 2015, at 22:32, Craig Rodrigues rodr...@freebsd.org wrote:
On Sun, Mar 22, 2015 at 2:29 PM, Dimitry Andric d...@freebsd.org wrote:
Ah right, that was on i386, on amd64 it does result in -2^63. It is indeed
On 22 Mar 2015, at 22:32, Craig Rodrigues rodr...@freebsd.org wrote:
On Sun, Mar 22, 2015 at 2:29 PM, Dimitry Andric d...@freebsd.org wrote:
Ah right, that was on i386, on amd64 it does result in -2^63. It is indeed
caused by reliance on signed integer wrapping.
This diff should fix
On Sun, Mar 22, 2015 at 2:29 PM, Dimitry Andric d...@freebsd.org wrote:
Ah right, that was on i386, on amd64 it does result in -2^63. It is
indeed caused by reliance on signed integer wrapping.
This diff should fix it, without rewriting the utility:
Index: bin/expr/Makefile
On Mar 22, 2015, at 15:01, Craig Rodrigues rodr...@freebsd.org wrote:
...
OK, converting expr.y to use unsigned integers would require a bit of work.
Can you commit your patch to the Makefile? It fixes the problem for now.
+1
I’d still like to know why clang 3.5 doesn’t have this behavior
On Sun, Mar 22, 2015 at 2:36 PM, Dimitry Andric d...@freebsd.org wrote:
On 22 Mar 2015, at 22:32, Craig Rodrigues rodr...@freebsd.org wrote:
On Sun, Mar 22, 2015 at 2:29 PM, Dimitry Andric d...@freebsd.org wrote:
Ah right, that was on i386, on amd64 it does result in -2^63. It is
On 22 Mar 2015, at 23:04, Garrett Cooper yaneurab...@gmail.com wrote:
On Mar 22, 2015, at 15:01, Craig Rodrigues rodr...@freebsd.org wrote:
...
OK, converting expr.y to use unsigned integers would require a bit of work.
Can you commit your patch to the Makefile? It fixes the problem