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

--- Comment #8 from janus at gcc dot gnu.org ---
(In reply to janus from comment #7)
> This alternative patch fixes the ICE as well:

Unfortunately it causes a few regressions:

FAIL: gfortran.dg/allocate_with_source_14.f03   -O   scan-tree-dump-times
original "__builtin_malloc" 22
FAIL: gfortran.dg/allocate_with_source_14.f03   -O   scan-tree-dump-times
original "__builtin_free" 29
FAIL: gfortran.dg/auto_dealloc_2.f90   -O   scan-tree-dump-times original
"__builtin_free" 4
FAIL: gfortran.dg/class_19.f03   -O0   scan-tree-dump-times original
"__builtin_free" 12
FAIL: gfortran.dg/class_19.f03   -O1   scan-tree-dump-times original
"__builtin_free" 12
FAIL: gfortran.dg/class_19.f03   -O2   scan-tree-dump-times original
"__builtin_free" 12
FAIL: gfortran.dg/class_19.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions   scan-tree-dump-times original
"__builtin_free" 12
FAIL: gfortran.dg/class_19.f03   -O3 -g   scan-tree-dump-times original
"__builtin_free" 12
FAIL: gfortran.dg/class_19.f03   -Os   scan-tree-dump-times original
"__builtin_free" 12
FAIL: gfortran.dg/class_allocate_16.f90   -O   scan-tree-dump-times original
"__builtin_free" 4
FAIL: gfortran.dg/class_allocate_17.f90   -O   scan-tree-dump-times original
"fini_coarray" 1
FAIL: gfortran.dg/class_array_15.f03   -O0   scan-tree-dump-times original
"builtin_free" 12
FAIL: gfortran.dg/class_array_15.f03   -O1   scan-tree-dump-times original
"builtin_free" 12
FAIL: gfortran.dg/class_array_15.f03   -O2   scan-tree-dump-times original
"builtin_free" 12
FAIL: gfortran.dg/class_array_15.f03   -O3 -fomit-frame-pointer -funroll-loops
-fpeel-loops -ftracer -finline-functions   scan-tree-dump-times original
"builtin_free" 12
FAIL: gfortran.dg/class_array_15.f03   -O3 -g   scan-tree-dump-times original
"builtin_free" 12
FAIL: gfortran.dg/class_array_15.f03   -Os   scan-tree-dump-times original
"builtin_free" 12
FAIL: gfortran.dg/finalize_21.f90   -O   scan-tree-dump original "static struct
__vtype__STAR __vtab__STAR = {._hash=0, ._size=., ._extends=0B, ._def_init=0B,
._copy=0B, ._final=0B, ._deallocate=0B};"
FAIL: gfortran.dg/finalize_28.f90   -O   scan-tree-dump-times original
"__builtin_free" 3


However, it seems like all of these are just related to scanning the tree-dump,
which has changed because we don't generate a finalizer function any more in
some cases (hopefully these are only cases where it's not needed).

Reply via email to