[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-fortran
Subject:    Re: [patch, libgfortran] Fix SPU link failures (Re: Set close-on-exec flag when opening files)
From:       Tobias Burnus <tobias.burnus () physik ! fu-berlin ! de>
Date:       2014-03-18 9:35:22
Message-ID: 20140318093522.GA22226 () physik ! fu-berlin ! de
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic