Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com List-Subscribe: List-Archive: List-Post: List-Help: , Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com Date: Mon, 16 Apr 2001 00:06:40 -0400 From: Christopher Faylor To: cygwin-apps AT cygwin DOT com Subject: Re: next porting question for gcj Message-ID: <20010416000640.C28133@redhat.com> Reply-To: cygwin-apps AT cygwin DOT com Mail-Followup-To: cygwin-apps AT cygwin DOT com References: <01b301c0c621$063e4ae0$0200a8c0 AT lifelesswks> <200104160327 DOT XAA06356 AT envy DOT delorie DOT com> <01dc01c0c628$23c1f880$0200a8c0 AT lifelesswks> <200104160400 DOT AAA06732 AT envy DOT delorie DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <200104160400.AAA06732@envy.delorie.com>; from dj@delorie.com on Mon, Apr 16, 2001 at 12:00:07AM -0400 On Mon, Apr 16, 2001 at 12:00:07AM -0400, DJ Delorie wrote: >A simple test will show you: > >main() >{ > char *b = alloca(500); > return b[3]; >} > >Compile with gcc, and you'll see that alloca is implemented directly, >without function calls. > >__builtin_alloca is the internal way gcc implements it; either works >just fine but __builtin_alloca is more immune to being #define'd to >something else. It's not specific to Cygwin. We did have to: #define alloca __builtin_alloca at one point in winsup/... at one point, though. cgf