delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/04/16/00:14:19

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: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Message-ID: <022601c0c62b$b79fcb10$0200a8c0@lifelesswks>
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: <cygwin-apps AT cygwin DOT com>
Cc: <newlib AT sources DOT redhat DOT com>
References: <01b301c0c621$063e4ae0$0200a8c0 AT lifelesswks> <200104160327 DOT XAA06356 AT envy DOT delorie DOT com> <01dc01c0c628$23c1f880$0200a8c0 AT lifelesswks> <20010416000543 DOT B28133 AT redhat DOT com>
Subject: Re: next porting question for gcj
Date: Mon, 16 Apr 2001 14:14:21 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 16 Apr 2001 04:07:04.0240 (UTC) FILETIME=[B1ED0300:01C0C62A]

----- Original Message -----
From: "Christopher Faylor" <cgf AT redhat DOT com>
To: <cygwin-apps AT cygwin DOT com>
Cc: <newlib AT sources DOT redhat DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019