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

            Bug ID: 67923
           Summary: [6 Regression] ICEs in the gfortran test suite with
                    -flto after r228680
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: hubicka at gcc dot gnu.org, pault at gcc dot gnu.org,
                    rguenth at gcc dot gnu.org
  Target Milestone: ---

Compiling the following tests with -flto on top of the other options gives ICEs

FAIL: gfortran.dg/allocatable_function_1.f90   -g -flto  (internal compiler
error)
FAIL: gfortran.dg/forall_10.f90   -g -flto  (internal compiler error)
FAIL: gfortran.dg/pr56015.f90   -g -flto  (internal compiler error)
FAIL: gfortran.dg/transfer_simplify_2.f90   -g -flto  (internal compiler error)
FAIL: gfortran.dg/trim_optimize_3.f90   -g -flto  (internal compiler error)
FAIL: gfortran.dg/trim_optimize_7.f90   -g -flto  (internal compiler error)

for both -m32 and -m64. The test

FAIL: gfortran.dg/pr46804.f90   -g -flto  (internal compiler error)

fails only with -m32.

The ICEs are of the kind

[Book15] f90/bug% gfc /opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr56015.f90
-flto -Ofast -fno-inline
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr56015.f90: In function 'foo':
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr56015.f90:12:0: error: type
mismatch in pointer plus expression
   subroutine foo (p)
^
complex double[10] *

complex double[10] * restrict

long int

_85 = p_5(D) + 32;
/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr56015.f90:12:0: internal compiler
error: verify_gimple failed

/opt/gcc/_clean/gcc/testsuite/gfortran.dg/pr56015.f90:12:0: internal compiler
error: Abort trap: 6
gfc: internal compiler error: Abort trap: 6 (program lto1)

Reply via email to