From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1660 invoked by alias); 13 Jun 2015 20:25:57 -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 1645 invoked by uid 89); 13 Jun 2015 20:25:57 -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.6 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.6 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-yh0-f43.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:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ozsd/lRM6hDeHeARTOdZWVzNC+HcsuOowcd2RK9aPNU=; b=DcDJm6/BWagZw+Ax1rJv88dLvTx9TcCNU+Ef4/h7VZqagEOIQ0NYhuMYpTJWZ79+nQ xlazaMLAKdEAQ3mibarIzvKyjzQT9IR6WvxxYrhXE71vIvArYWKE6srYz1HWvpQIc7S0 r/UiiExH1q/KxqWE2byjPGTVpeeqlTj6tsEBGdTGphLuQpqBpt5Dy+RL5M4SahmMAxlQ y/A2A8Ef4ZvTC63Jj/YA1wvKmUAcvkXiDl4xhLYdmww8EMgygy+rpspEUzoIm/9SeGlS EISDVcMnjWf2kSyksZ6MrugDVFeVEHj81PrstK8Z/dkEasHdHKYa5/Oz+VoSBvhY0ZuQ jYVQ== X-Gm-Message-State: ALoCoQlQ39sYzK6PS5iGuMNdE2Zz/EVx66vqJwpfv4DZdTC9fJG/r2CMRQCUoe/JmNzqdE0Z7+5j MIME-Version: 1.0 X-Received: by 10.170.39.210 with SMTP id 201mr26189653ykh.29.1434227153586; Sat, 13 Jun 2015 13:25:53 -0700 (PDT) In-Reply-To: <1434054685.12727.205.camel@surprise> References: <1434054685.12727.205.camel@surprise> Date: Thu, 01 Jan 2015 00:00:00 -0000 Message-ID: Subject: Re: Basic blocks, jump targets and locals From: Dibyendu Majumdar To: David Malcolm Cc: jit@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-q2/txt/msg00051.txt.bz2 On 11 June 2015 at 21:31, David Malcolm wrote: > Local variables in libgccjit are local to a *function*; there's no > association between them and blocks. Blocks in libgccjit relate to > control flow, not to scope. > > Note that any initialization of a local variable has to be done > explicitly, by adding an assignment statement. Typically that > assignment statement would be added to the initial block, as in the > example above (so I suppose that's an association of sorts between > locals and the entry block). > Can an assignment statement be added to a block that is already terminated? Regards Dibyendu