svn commit: r286519 - head/contrib/binutils/gas/config

2015-08-09 Thread Dimitry Andric
Author: dim Date: Sun Aug 9 11:06:40 2015 New Revision: 286519 URL: https://svnweb.freebsd.org/changeset/base/286519 Log: In GNU as, avoid left-shifting negative integers, which is undefined. MFC after:3 days Modified: head/contrib/binutils/gas/config/tc-i386.c Modified: head/contr

Re: svn commit: r286519 - head/contrib/binutils/gas/config

2015-08-09 Thread Warner Losh
Since when is LEFT shifting a signed number undefined. It is RIGHT shifting that’s undefined… Warner > On Aug 9, 2015, at 5:06 AM, Dimitry Andric wrote: > > Author: dim > Date: Sun Aug 9 11:06:40 2015 > New Revision: 286519 > URL: https://svnweb.freebsd.org/changeset/base/286519 > > Log: >

Re: svn commit: r286519 - head/contrib/binutils/gas/config

2015-08-09 Thread Bruce Evans
On Sun, 9 Aug 2015, Warner Losh wrote: Since when is LEFT shifting a signed number undefined. It is RIGHT shifting that???s undefined??? Always. It always shifts out the sign bit in the usual 2's complement representation, so must be undefined in that case. It is undefined by definition in o