This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libgfortran] Fix SPU link failures (Re: Set close-on-exec flag when opening files)
- From: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>
- To: Ulrich Weigand <uweigand at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Tue, 18 Mar 2014 10:35:22 +0100
- Subject: Re: [patch, libgfortran] Fix SPU link failures (Re: Set close-on-exec flag when opening files)
- Authentication-results: sourceware.org; auth=none
Ulrich Weigand wrote:
> Janne Blomqvist wrote:
> > * io/unix.c (set_close_on_exec): New function.
>
> Since this patch, most Fortran tests fail on spu-elf since the system
> libraries do not support fcntl on the SPU.
>
> The patch below fixes this by using an autoconf check to verify
> fcntl is present before using it, as is already done for many
> other routines in io/unix.c.
>
> Tested on spu-elf, fixes the Fortran problems there.
> Also verified on an older powerpc64-linux build that we still
> use fcntl there.
>
> OK for mainline?
Looks good to me and it rather obvious.
Thanks for the patch!
Tobias