This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Link tests after GCC_NO_EXECUTABLES
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Mark Mitchell <mark at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, fortran at gcc dot gnu dot org, java-patches at gcc dot gnu dot org, rsandifo at nildram dot co dot uk
- Date: Fri, 7 Dec 2007 16:17:59 +0100
- Subject: Re: Link tests after GCC_NO_EXECUTABLES
- References: <87d4tqu4nv.fsf@firetop.home> <20071201115252.GS17368@sygehus.dk> <20071201120251.GT17368@sygehus.dk> <jesl2mlen1.fsf@sykes.suse.de> <20071201223447.GU17368@sygehus.dk> <47531F54.6010802@codesourcery.com> <20071205172224.GM17368@sygehus.dk> <47574456.1070108@codesourcery.com> <20071206175819.GO17368@sygehus.dk> <87abomzqvw.fsf@firetop.home>
On Fri, Dec 07, 2007 at 11:27:31AM +0000, Richard Sandiford wrote:
> OK, I'm not doing a good job of staying out of this discussion as
> promised, but I was hoping someone else would raise this point...
>
> My main concern with applying this patch in its current state is that,
> while we have (intentionally) only been talking about *-elf so far,
> newlib != *-elf. Cygwin is also an important newlib user, and I don't
> remember anyone explicitly mentioning it so far in this thread.
What is a good way of detecting the bare-metal targets? *-elf*, *-eabi*?
> While I'm here, I noticed a very minor nit. The patch has:
>
> > +ac_cv_func_fork=${ac_cv_func_fork=no}
> > +ac_cv_func_fork=${ac_cv_func_fork=yes}
Well spotted. The nit is real enough. What happens is this (with
unpatched mainline):
Checking multilib configuration for libgfortran...
mkdir -p -- v850-unknown-elf/libgfortran
Configuring in v850-unknown-elf/libgfortran
configure: creating cache ./config.cache
[...]
checking for access... yes
checking for fork... yes
checking for execl... no
[...]
The same tests with fr30-unknown-elf:
checking for access... no
checking for fork... no
checking for execl... no
Other examples: gettimeofday, link, mkstemp, pipe, stat, time and wait.
--
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year