Weird problem

Dibyendu Majumdar mobile@majumdar.org.uk
Thu Jan 1 00:00:00 GMT 2015


On 29 June 2015 at 22:25, Dibyendu Majumdar <mobile@majumdar.org.uk> wrote:
> On 29 June 2015 at 22:08, David Malcolm <dmalcolm@redhat.com> wrote:
>> Does it help if you introduce an intermediate to hold the result of the
>> call to luaV_tonumber_ before comparing it against zero?  It
>> *shouldn't*, but maybe we have a libgccjit bug.
>>

Tried this - did not help. The print I put in shows that the address
that luaV_number() is getting is not the same.

number 0x7ffce864f5e0 = 0.000000 before call to luaV_number
set *0x7ffce864f5e8 to 6.200000
number ok = 0.000000

And yet it is the address of the same variable being passed.

I cannot see what I am doing wrong - perhaps you can spot in the
reproducer dump.

Thanks and Regards
Dibyendu



More information about the Jit mailing list