From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 956EF3858D28; Tue, 23 Nov 2021 18:55:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 956EF3858D28 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/103389] New: [9/10/11/12 Regression] ICE in estimate_move_cost, at tree-inline.c:4191 Date: Tue, 23 Nov 2021 18:55:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2021 18:55:30 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103389 Bug ID: 103389 Summary: [9/10/11/12 Regression] ICE in estimate_move_cost, at tree-inline.c:4191 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Starts with r7 (changed in r9 between 20190127 and 20190203) : $ cat z1.f90 program p type t real, allocatable :: a(:) end type type(t) :: y call s((y)) contains subroutine s(x) class(*) :: x end end $ gfortran-9-20190127 -c z1.f90 $ $ gfortran-12-20211121 -c z1.f90 during GIMPLE pass: local-fnsummary z1.f90:6:14: 6 | call s((y)) | ^ internal compiler error: in estimate_move_cost, at tree-inline.c:4191 0xdccbff estimate_move_cost(tree_node*, bool) ../../gcc/tree-inline.c:4191 0xdcd054 estimate_num_insns(gimple*, eni_weights*) ../../gcc/tree-inline.c:4421 0xb2c7fc analyze_function_body ../../gcc/ipa-fnsummary.c:2746 0xb2f6cf compute_fn_summary(cgraph_node*, bool) ../../gcc/ipa-fnsummary.c:3191 0xb2fe4c compute_fn_summary_for_current ../../gcc/ipa-fnsummary.c:3221 0xb2fe4c execute ../../gcc/ipa-fnsummary.c:4829=