From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11164 invoked by alias); 15 Jun 2015 20:09:01 -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 11152 invoked by uid 89); 15 Jun 2015 20:09:00 -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,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-Spam-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS 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: mx1.redhat.com Message-ID: <1434398489.14663.18.camel@surprise> Subject: Re: Labeling of blocks and locals From: David Malcolm To: Dibyendu Majumdar Cc: jit@gcc.gnu.org Date: Thu, 01 Jan 2015 00:00:00 -0000 In-Reply-To: References: <1434339718.3192.37.camel@surprise> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-SW-Source: 2015-q2/txt/msg00072.txt.bz2 On Mon, 2015-06-15 at 20:21 +0100, Dibyendu Majumdar wrote: > On 15 June 2015 at 04:41, David Malcolm wrote: > > > (BTW, the "const char > > *" is copied, so you can build them up using snprintf into an on-stack > > temporary buffer: > > char buf[16]; > > snprintf(buf, sizeof(buf), "op%i", idx); > > or somesuch). > > > > You anticipated my question! ...and fwiw it also applies to basically every place where the API takes a const char *. I'm working on a patch for the docs to clarify this.