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

            Bug ID: 91671
           Summary: [10 Regression] gfortran.dg/direct_io_10.f fails at
                    runtime with -O3
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: janus at gcc dot gnu.org
  Target Milestone: ---

Running the gfortran testsuite on today's trunk I see:

FAIL: gfortran.dg/direct_io_10.f   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions  execution test
FAIL: gfortran.dg/direct_io_10.f   -O3 -g  execution test

In particular the test case seems to fail with -O3, but not with -O2:

$ gfortran-10 -O3 direct_io_10.f 
$ ./a.out 
STOP 3
$ gfortran-10 -O2 direct_io_10.f 
$ ./a.out 
$ 

This is on Ubuntu 19.04 (x86_64) and my configure line includes
"--with-arch=haswell".

Reply via email to