[Patch] Fix gas crash (when compiled with clang)

Tristan Gingold gingold@adacore.com
Tue Dec 3 16:36:00 GMT 2013


On 03 Dec 2013, at 17:22, H.J. Lu <hjl.tools@gmail.com> wrote:

> On Tue, Dec 3, 2013 at 8:11 AM, Tristan Gingold <gingold@adacore.com> wrote:
>> Hi,
>> 
>> when compiled with clang (llvm 3.3), gas crashes on the intelbad test.
>> I suppose this is due to use of overflow on pointer arithmetic.
>> 
>> Fixed by the following patch, no gas regression for x86_64-pc-mingw32.
>> 
>> Ok for trunk ?
>> 
>> Tristan.
>> 
>> gas/
>> 2013-12-03  Tristan Gingold  <gingold@adacore.com>
>> 
>>        * config/tc-i386-intel.c (i386_intel_simplify): Avoid arithmetic
>>        overflow on pointers.

[..]

> OK.  Thanks.

Very quick!

Just committed.

Thanks, Tristan.


More information about the Binutils mailing list