From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E79443860017; Tue, 23 Jun 2020 19:11:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E79443860017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1592939480; bh=24UGkMhzfyZKnFBAy40rCi96ZCodNi35oLvgnjXMSUs=; h=From:To:Subject:Date:From; b=hEMkTnX6kom/9DJaHE5FLzYnilSPB4WeLHleFquhiXnK96lDE5zMPAO7o17C+YCLK U8hArzQ96N+xiNr0lQNr95Um0SPBa3bW6vAgFWS+8QmQ0s2qQAqduCRwz9XKyzmoci WrlScMrNd8XPw1WdUi/HGHGet2/lOfqML6zKnz6A= From: "olebole at debian dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/95847] New: Internal error when processing pFUnit generated files with --coverage Date: Tue, 23 Jun 2020 19:11:20 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: olebole at debian dot org 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 attachments.created 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 Jun 2020 19:11:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95847 Bug ID: 95847 Summary: Internal error when processing pFUnit generated files with --coverage Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: olebole at debian dot org Target Milestone: --- Created attachment 48776 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48776&action=3Dedit Source file that reproduces the bug With gcc 9 and 10, compiling the attached file with coverage info raises an internal error: $ gfortran-10 -c --coverage funit-bug.f90=20 during IPA pass: profile funit-bug.f90:8:0: 8 | use foo |=20 internal compiler error: in coverage_begin_function, at coverage.c:656 0x7f6c0275ae0a __libc_start_main ../csu/libc-start.c:308 [=E2=80=A6] $ gfortran-10 --version GNU Fortran (Debian 10.1.0-3) 10.1.0 [=E2=80=A6] $ gfortran-9 --version GNU Fortran (Debian 9.3.0-14) 9.3.0 This does not happen with gfortran-8, so it is a regression: $ gfortran-8 -c --coverage funit-bug.f90 $ gfortran-8 --version GNU Fortran (Debian 8.4.0-4) 8.4.0 System is Debian 11 testing. The attached file is derived from a pFUnit generated file where this was originally observed .=