From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5660 invoked by alias); 13 Apr 2004 13:38:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 5653 invoked from network); 13 Apr 2004 13:38:45 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 13 Apr 2004 13:38:45 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i3DDceu6004129; Tue, 13 Apr 2004 09:38:40 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i3DDcej06651; Tue, 13 Apr 2004 09:38:40 -0400 Received: from free.redhat.lsd.ic.unicamp.br (vpn50-50.rdu.redhat.com [172.16.50.50]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id i3DDcW0s006227; Tue, 13 Apr 2004 09:38:38 -0400 Received: from free.redhat.lsd.ic.unicamp.br (free.redhat.lsd.ic.unicamp.br [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.11/8.12.11) with ESMTP id i3DDcRt6028544; Tue, 13 Apr 2004 10:38:28 -0300 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.11/8.12.11/Submit) id i3DDcPIo028541; Tue, 13 Apr 2004 10:38:25 -0300 To: Agri Cc: gcc-help@gcc.gnu.org Subject: Re: alloca within inline function References: <20040413130752.342fc7cd@agri-home> From: Alexandre Oliva Organization: Red Hat Global Engineering Services Compiler Team Date: Tue, 13 Apr 2004 13:38:00 -0000 In-Reply-To: <20040413130752.342fc7cd@agri-home> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-04/txt/msg00158.txt.bz2 On Apr 13, 2004, Agri wrote: > As wrote at the libc manual > * A variable size array's space is freed at the end of the scope of > the name of the array. The space allocated with `alloca' remains > until the end of the function. > What about inline function? Functions that call alloca are not inlined. -- Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}