This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Link tests after GCC_NO_EXECUTABLES
- From: Richard Sandiford <rsandifo at nildram dot co dot uk>
- To: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- Cc: 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
- Date: Fri, 07 Dec 2007 11:27:31 +0000
- Subject: Re: Link tests after GCC_NO_EXECUTABLES
- References: <4750559E.2090800@codesourcery.com> <20071130211005.GQ17368@sygehus.dk> <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>
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. Is this
patch really safe there? Cygwin's newlib provides all sorts of POSIXy
stuff that you don't get in your typical *-elf target (see libc/posix)
so things like:
> +ac_cv_func_execl=${ac_cv_func_execl=no}
> +ac_cv_func_execve=${ac_cv_func_execve=no}
> +ac_cv_func_execvp=${ac_cv_func_execvp=no}
(just a sample) might unintentionally limit the functionality of
libgfortran on that target. I think the same thing could apply
to targets like Newlib/Linux, if GCC supports it.
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}
where the last line is redundant (though harmless).
Richard