https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106561

            Bug ID: 106561
           Summary: gfortran.dg/ieee/signaling_1.f90 fails with
                    --with-long-double-format=ieee
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: seurer at gcc dot gnu.org
  Target Milestone: ---

g:492954263e39346287a5a2a32bcc5312466a0ee1, gcc-12-6404-g492954263e

make  -k check-fortran RUNTESTFLAGS="ieee.exp=gfortran.dg/ieee/signaling_1.f90"
FAIL: gfortran.dg/ieee/signaling_1.f90   -O0  (test for excess errors)
FAIL: gfortran.dg/ieee/signaling_1.f90   -O1  (test for excess errors)
FAIL: gfortran.dg/ieee/signaling_1.f90   -O2  (test for excess errors)
FAIL: gfortran.dg/ieee/signaling_1.f90   -O3 -fomit-frame-pointer
-funroll-loops -fpeel-loops -ftracer -finline-functions  (test for excess
errors)
FAIL: gfortran.dg/ieee/signaling_1.f90   -O3 -g  (test for excess errors)
FAIL: gfortran.dg/ieee/signaling_1.f90   -Os  (test for excess errors)

This happens for both gcc 12 and 13 (trunk) and started when the test case was
added.

It occurs on powerpc64 LE with the compiler configured with
--with-long-double-format=ieee on Fedora 36 which is the first powerpc64 distro
built with --with-long-double-format=ieee.  It works fine on other distros even
with --with-long-double-format=ieee so it could be a problem with the distro
compiler, gcc version 12.1.1 20220507 (Red Hat 12.1.1-1) (GCC), or maybe the
libraries.


spawn -ignore SIGHUP
/home/seurer/gcc/git/build/gcc-12-test/gcc/testsuite/gfortran2/../../gfortran
-B/home/seurer/gcc/git/build/gcc-12-test/gcc/testsuite/gfortran2/../../
-B/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libgfortran/
/home/seurer/gcc/git/gcc-12-test/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90
-fdiagnostics-plain-output -fdiagnostics-plain-output -O0 -fsignaling-nans
/home/seurer/gcc/git/gcc-12-test/gcc/testsuite/gfortran.dg/ieee/signaling_1_c.c
-dumpbase 
-B/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libgfortran/.libs
-L/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libgfortran/.libs
-L/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libgfortran/.libs
-L/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libatomic/.libs
-B/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libquadmath/.libs
-L/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libquadmath/.libs
-L/home/seurer/gcc/git/build/gcc-12-test/powerpc64le-unknown-linux-gnu/./libquadmath/.libs
-lm -o ./signaling_1.exe
/home/seurer/gcc/git/gcc-12-test/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90:8:20:
Fatal Error: Cannot find an intrinsic module named 'ieee_arithmetic' at (1)
compilation terminated.
compiler exited with status 1
FAIL: gfortran.dg/ieee/signaling_1.f90   -O0  (test for excess errors)
Excess errors:
/home/seurer/gcc/git/gcc-12-test/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90:8:20:
Fatal Error: Cannot find an intrinsic module named 'ieee_arithmetic' at (1)
compilation terminated.


commit 492954263e39346287a5a2a32bcc5312466a0ee1 (HEAD)
Author: Francois-Xavier Coudert <fxcoud...@gcc.gnu.org>
Date:   Sun Jan 2 11:36:23 2022 +0100

    Fortran: Allow IEEE_CLASS to identify signaling NaNs

Reply via email to