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: FX <fxcoudert at gmail dot com>
- Cc: "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 09:49:36 -0700
- Subject: Re: [fortran, patch] IEEE intrinsic modules (ping)
- Authentication-results: sourceware.org; auth=none
- References: <CAFULd4bPn3QaPa4MKpOO+iAMo5esVCx3Cn-XptFGe=g69rxptA at mail dot gmail dot com> <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>
On Tue, Jun 24, 2014 at 10:11:32AM +0200, FX wrote:
> Here?s a patch fixing the diff issue with configure.host and the doc (which apparently is only triggered by some versions of texinfo).
> Apart from that, functionnaly identical, so I?ll paste here the ?history? of the patch:
>
> ---------------------------------------------------
>
> Since last time, I incorporated Uros? comments on the libgfortran/config/fpu-387.h part, and add some documentation to the manual (list of supported targets, and required compilation flags for full IEE support).
>
> OK to commit?
>
Not yet.
On i386-*-freebsd
In file included from ../../../gcc4x/libgfortran/runtime/fpu.c:29:0:
./fpu-target.h: In function 'set_fpu_trap_exceptions':
./fpu-target.h:31:3: error: unknown type name 'fp_except'
fp_except cw = fpgetmask();
...
gmake[3]: *** [fpu.lo] Error 1
gmake[3]: Leaving directory `/usr/home/kargl/gcc/obj4x/i386-unknown-freebsd11.0/libgfortran'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/home/kargl/gcc/obj4x/i386-unknown-freebsd11.0/libgfortran'
gmake[1]: *** [all-target-libgfortran] Error 2
gmake[1]: Leaving directory `/usr/home/kargl/gcc/obj4x'
Looking at the libgfortran/config.log shows that there is an error
in the config test for fp_except_t.
configure:26048: checking for fp_except
configure:26048: /home/kargl/gcc/obj4x/./gcc/xgcc -B/home/kargl/gcc/obj4x/./gcc/ -B/home/kargl/work/i386-unknown-freebsd11.0/bin/ -B/home/kargl/work/i386-unknown-freebsd11.0/lib/ -isystem /home/kargl/work/i386-unknown-freebsd11.0/include -isystem /home/kargl/work/i386-unknown-freebsd11.0/sys-include -c -std=gnu11 -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:261:13: error: 'fp_except' undeclared (first use in this function)
if (sizeof (fp_except))
^
conftest.c:261:13: note: each undeclared identifier is reported only once for each function it appears in
configure:26048: $? = 1
configure: failed program was:
...
configure:26061: /home/kargl/gcc/obj4x/./gcc/xgcc -B/home/kargl/gcc/obj4x/./gcc/ -B/home/kargl/work/i386-unknown-freebsd11.0/bin/ -B/home/kargl/work/i386-unknown-freebsd11.0/lib/ -isystem /home/kargl/work/i386-unknown-freebsd11.0/include -isystem /home/kargl/work/i386-unknown-freebsd11.0/sys-include -c -std=gnu11 -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:261:26: error: expected expression before ')' token
if (sizeof ((fp_except_t)))
^
configure:26061: $? = 1
configure: failed program was:
| /* confdefs.h */