From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 958F63944426; Wed, 18 Mar 2020 12:40:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 958F63944426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584535241; bh=Khpa78AMPMbU5QqOl0c4QgMzM2PHsRd1IYh9dekncOw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KfRuKz8bTuljojunAI8C0vfF+MAzGxW+uze9lq0LT+JCSTJL+/2taV/CbdaPEtnZF xn7TYi5ExAkfK0d04o7srVCKWH4yBAsHWc+108ZSA4fNCppOySN/rTsb61kIq1gpAc 1S7SroB3RRJOH1Fwz2VhnNbl6f2GOB3qpEGM9lUg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/94029] [9/10 Regression] gcc crash in coverage.c:655 since r9-4216-g390e529e2b98983d Date: Wed, 18 Mar 2020 12:40:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: 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: Wed, 18 Mar 2020 12:40:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94029 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #10 from Jakub Jelinek --- Created attachment 48053 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D48053&action=3Dedit gcc10-pr94029.patch The problem is that C FE finish_function uses input_location as cfun->function_end_locus, but input_location isn't really updated very ofte= n in the C FE anymore, mostly in the line change hooks but that doesn't trigger = here because the macro arguments span across newline. So, either like in the completely untested patch we can update input_locati= on somewhat more often, or we'd need to propagate the location_t of the closin= g } from c_parser_compound_statement_nostart to the callers.=