This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: next porting question for gcj


----- Original Message -----
From: "Christopher Faylor" <cgf@redhat.com>
To: <cygwin-apps@cygwin.com>
Cc: <newlib@sources.redhat.com>
Sent: Monday, April 16, 2001 2:05 PM
Subject: Re: next porting question for gcj


> On Mon, Apr 16, 2001 at 01:48:45PM +1000, Robert Collins wrote:
> >I've done some debug tracking and patched gcj to apparently work
> >correctly under cygwin. libjava just seems to have some header
issues.
> >
> >Would inserting  the __builtin_alloca define be a reasonable
workaround?
> >(__CYGWIN__ protected of course).
>
> IMO, newlib's stdlib.h should have something like this in it:
>
> #ifdef __GNUC__
> # define alloca __builtin_alloca
> #endif
>
> Does this make sense?  Or is this a little too generic for newlib?
> It may be that some platforms, supported by newlib and gcc, do not
> support __builtin_alloca.
>
> The alternative would be to do something like:
>
> #if defined(__GNU__) && defined(_USE_BUILTIN_ALLOCA)
> # define alloca __builtin_alloca
> #endif
>
> and have features.h:
> #define _USE_BUILTIN_ALLOCA
>
> Comments?
>
> cgf
>

As the problem I was reporting occurs when building make bootstrap with
gcc 3.0, I don't know if newlib's stdlib affects this.  Of course if it
doesn, then either of those options make sense to me.

Rob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]