This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch, libgfortran] Fix SPU link failures (Re: Set close-on-exec flag when opening files)


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


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