This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [fortran, patch] IEEE intrinsic modules (ping)
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: FX <fxcoudert at gmail dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Fortran List <fortran at gcc dot gnu dot org>
- Date: Tue, 24 Jun 2014 12:19:47 -0700
- Subject: Re: [fortran, patch] IEEE intrinsic modules (ping)
- Authentication-results: sourceware.org; auth=none
- References: <DA02C71A-3BF9-4283-B260-60A676855A3E at gmail dot com> <CAFULd4YZFk7KWC_EovkPGQtZ+8jmNzJmywGzNHBvVX+qfSXTDQ at mail dot gmail dot com> <B14E8314-8E99-49AE-8B98-A7EA599757A6 at gmail dot com> <EF496829-9ECB-42D8-9366-F8A14A6D6505 at gmail dot com> <20140623192339 dot GA25679 at troutmask dot apl dot washington dot edu> <20140623202005 dot GA31501 at troutmask dot apl dot washington dot edu> <6CA4B0CC-09B5-439C-A766-B27664B2DB12 at gmail dot com> <20140624164936 dot GA38820 at troutmask dot apl dot washington dot edu> <20140624174601 dot GA39016 at troutmask dot apl dot washington dot edu> <53A9C4AF dot 6020700 at net-b dot de>
On Tue, Jun 24, 2014 at 08:34:23PM +0200, Tobias Burnus wrote:
> Steve Kargl wrote:
> > On FreeBSD (and perhaps other *BSD), there is no fpsetsticky(). The function is fpresetsticky().
>
> Solaris has fpsetsticky() (requires ieeefp.h) and BSD has
> fpresetsticky() ? thus, like at other places in that file, one needs to
> conditionally enable one or the other.
>
I suppose I don't understand the logic in libgfortran/configure.host.
It is picking the wrong config/fpu*.h file.
gmake |& tee sgk.log
shows (long lines wrapped)
cp ../../../gcc4x/libgfortran/config/fpu-sysv.h fpu-target.h
grep '^#define GFC_FPE_' < ../../../gcc4x/libgfortran/../gcc/fortran/\
libgfortran.h > fpu-target.inc || true
grep '^#define GFC_FPE_' < ../../../gcc4x/libgfortran/libgfortran.h \
>> fpu-target.inc || true
gmake all-am
FreeBSD (and the other *BSD) have both feenbleexcept() and
fpsetmask(), but neither check is correct. It seems the check
for feenableexcept assumes glibc and fpsetmask assumes SysV
system.
--
Steve
- References:
- Re: [fortran, patch] IEEE intrinsic modules
- Re: [fortran, patch] IEEE intrinsic modules
- [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)
- Re: [fortran, patch] IEEE intrinsic modules (ping)