next porting question for gcj

Robert Collins robert.collins@itdomain.com.au
Sun Apr 15 21:05:00 GMT 2001


----- Original Message -----
From: "DJ Delorie" <dj@delorie.com>
To: <robert.collins@itdomain.com.au>
Cc: <cygwin-apps@sources.redhat.com>
Sent: Monday, April 16, 2001 2:00 PM
Subject: Re: next porting question for gcj


>
> 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.
>

All the same, the bootstrapped stage 3 g++ failed to find alloca.
__builtin_alloca was found easily enough.

Rob



More information about the Cygwin-apps mailing list