From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12863 invoked by alias); 29 Jun 2015 20:49:22 -0000 Mailing-List: contact jit-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Subscribe: Sender: jit-owner@gcc.gnu.org Received: (qmail 12852 invoked by uid 89); 29 Jun 2015 20:49:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.98.7 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: mail-yk0-f171.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=sWwiFR8hq6CrHyphRjmx2Krm8I7abUJcZlENhctIWNU=; b=jKw5D7hlGXVrzgQtYVJcj2P9T/D0iuGKIe+W19RccBrMktfBe7IFDMVftghJOCMhB+ 1yN4GCtxYxH6sdq/qAapL/q/jB0DAowcp3fYzfc2KXGEsMKNuxOk2H1YpoLkc3yKLQjS eyKc5AMkWfLm01S1r/2IGU500BLdS3mcjrHA2HipBPb1yqlh+bREsb0rdHtTFYPB4w5g AYbJO/wxwZcqow3KX0Z1FJCZplYYy923Dk9Di/cwvpxIxuvBd5MoGQ4xzyeD5yps7cLI LEXY8ZeO4OgbwC0Q2PPvpfSOa+ZJ3Lll3FXAqOMFtTXPIAylhC/cPfWYWj0107bLKV8t 7N6w== X-Gm-Message-State: ALoCoQl3Hyyppc5vcn4P1BGaJIuJAYRoKcU7Vxiu2n2PyGD620IQrMJ4NQhxqlJpY2IAsOi8rqeV MIME-Version: 1.0 X-Received: by 10.170.82.131 with SMTP id y125mr21011134yky.115.1435610959089; Mon, 29 Jun 2015 13:49:19 -0700 (PDT) Date: Thu, 01 Jan 2015 00:00:00 -0000 Message-ID: Subject: Weird problem From: Dibyendu Majumdar To: jit@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-q2/txt/msg00131.txt.bz2 Hi Dave, I am trying to debug a problem I am having with one piece of code. The generated code (snippet) is shown below: double OP_RAVI_TOFLT_n_2_8; bool comparison_0_12; comparison_0_12 = luaV_tonumber_ (&base[(int)0], &OP_RAVI_TOFLT_n_2_8) == (int)0; if (comparison_0_12) goto OP_RAVI_TOFLT_if_conversion_failed_2_13; else goto OP_RAVI_TOFLT_if_conversion_ok_2_14; OP_RAVI_TOFLT_if_conversion_ok_2_14: (void)printf ("number ok = %f\ ", OP_RAVI_TOFLT_n_2_8); The printf output says that value of OP_RAVI_TOFLT_n_2_8 is 0.0. Yet the called function luaV_tonumber_() set this to a different value: Output from luaV_tonumber_(): set *0x7ffe1bb8d298 to 5.600000 Output from JIT code above: number ok = 0.000000 >From the dump it seems that the address of the local variable OP_RAVI_TOFLT_n_2_8 is being passed to the function. And yet the value of the variable is its original value which was 0.0. Any tips on what I should be looking for? Thanks and Regards Dibyendu